{"type": "func", "start": 6442464928, "end": 6442465005, "name": "cocos2d::CCNode::insertChild", "pseudocode": "// \n// cocos2d::CCNode::insertChild from 0x1800036a0 to 0x1800036ed (77 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ad2dc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall cocos2d::CCNode::insertChild(cocos2d::CCNode *this, struct cocos2d::CCNode *a2, unsigned int a3)\n{\n  cocos2d::CCArray *m_pChildren; // rax\n  bool v5; // zf\n  cocos2d::ccArray *data; // rcx\n\n  m_pChildren = this->m_pChildren;\n  v5 = !this->m_bUseChildIndex;\n  this->m_bReorderChildDirty = 1;\n  data = m_pChildren->data;\n  if ( v5 )\n    sub_18009D610(data, a2);\n  else\n    sub_18009D6F0(data, a2);\n  ((void (__fastcall *)(struct cocos2d::CCNode *, _QWORD))a2->_setZOrder)(a2, a3);\n}", "assembly": "; \n; cocos2d::CCNode::insertChild from 0x1800036a0 to 0x1800036ed (77 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ad2dc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800036a0\npush    rdi                                                            ; +0x5, 0x1800036a5\nsub     rsp, 20h                                                       ; +0x6, 0x1800036a6\nmov     rax, [rcx+0D0h]                                                ; +0xa, 0x1800036aa\nmov     edi, r8d                                                       ; +0x11, 0x1800036b1\ncmp     byte ptr [rcx+138h], 0                                         ; +0x14, 0x1800036b4\nmov     rbx, rdx                                                       ; +0x1b, 0x1800036bb\nmov     byte ptr [rcx+120h], 1                                         ; +0x1e, 0x1800036be\nmov     rcx, [rax+38h]                                                 ; +0x25, 0x1800036c5\njz      short loc_1800036D2                                            ; +0x29, 0x1800036c9\ncall    sub_18009D6F0                                                  ; +0x2b, 0x1800036cb\njmp     short loc_1800036D7                                            ; +0x30, 0x1800036d0\ncall    sub_18009D610                                                  ; +0x32, 0x1800036d2\nmov     rax, [rbx]                                                     ; +0x37, 0x1800036d7\nmov     edx, edi                                                       ; +0x3a, 0x1800036da\nmov     rcx, rbx                                                       ; +0x3c, 0x1800036dc\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3f, 0x1800036df\nadd     rsp, 20h                                                       ; +0x44, 0x1800036e4\npop     rdi                                                            ; +0x48, 0x1800036e8\njmp     qword ptr [rax+58h]                                            ; +0x49, 0x1800036e9", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801ad2dc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}