(bind-func xtm_model_child (lambda (model:XTMModel* idx:i32) (let ((num_children (tref model 3)) (models (tref model 4))) (if (< idx num_children) (pref-ptr models idx) null))))