{"type": "func", "start": 6442468640, "end": 6442468747, "name": "cocos2d::CCNode::qsortAllChildrenWithIndex", "pseudocode": "// \n// cocos2d::CCNode::qsortAllChildrenWithIndex from 0x180004520 to 0x18000458b (107 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCNode::sortAllChildren @ 0x18000516b\n// > cocos2d::CCNode::sortAllChildrenWithIndex @ 0x180005290\n// > <???> @ 0x180130ddc\n// > <???> @ 0x180130dec\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ad48c\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::qsortAllChildrenWithIndex(cocos2d::CCNode *this)\n{\n  cocos2d::CCArray **p_m_pChildren; // rbx\n\n  if ( this->m_bReorderChildDirty )\n  {\n    p_m_pChildren = &this->m_pChildren;\n    if ( this->m_bUseChildIndex )\n      sub_18009E0E0((*p_m_pChildren)->data);\n    sub_1800023F0(\n      (char *)(*p_m_pChildren)->data->arr,\n      (__int64 *)&(*p_m_pChildren)->data->arr[(*p_m_pChildren)->data->num],\n      (*p_m_pChildren)->data->num,\n      (unsigned __int8 (__fastcall *)(__int64, __int64))sub_180004150);\n    sub_18009DCF0((*p_m_pChildren)->data);\n  }\n}", "assembly": "; \n; cocos2d::CCNode::qsortAllChildrenWithIndex from 0x180004520 to 0x18000458b (107 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCNode::sortAllChildren @ 0x18000516b\n; > cocos2d::CCNode::sortAllChildrenWithIndex @ 0x180005290\n; > <???> @ 0x180130ddc\n; > <???> @ 0x180130dec\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ad48c\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\nsub     rsp, 28h                                                       ; +0x0, 0x180004520\ncmp     byte ptr [rcx+120h], 0                                         ; +0x4, 0x180004524\njz      short loc_180004586                                            ; +0xb, 0x18000452b\ncmp     byte ptr [rcx+138h], 0                                         ; +0xd, 0x18000452d\nmov     [rsp+28h+var_8], rbx                                           ; +0x14, 0x180004534\nlea     rbx, [rcx+0D0h]                                                ; +0x19, 0x180004539\njz      short loc_18000454E                                            ; +0x20, 0x180004540\nmov     rcx, [rbx]                                                     ; +0x22, 0x180004542\nmov     rcx, [rcx+38h]                                                 ; +0x25, 0x180004545\ncall    sub_18009E0E0                                                  ; +0x29, 0x180004549\nmov     rax, [rbx]                                                     ; +0x2e, 0x18000454e\nlea     r9, sub_180004150                                              ; +0x31, 0x180004551\nmov     rdx, [rax+38h]                                                 ; +0x38, 0x180004558\nmov     rcx, [rdx+10h]                                                 ; +0x3c, 0x18000455c\nmov     r8d, [rdx]                                                     ; +0x40, 0x180004560\nlea     rdx, [rcx+r8*8]                                                ; +0x43, 0x180004563\ncall    sub_1800023F0                                                  ; +0x47, 0x180004567\nmov     rcx, [rbx]                                                     ; +0x4c, 0x18000456c\nmov     rcx, [rcx+38h]                                                 ; +0x4f, 0x18000456f\nmov     rbx, [rsp+28h+var_8]                                           ; +0x53, 0x180004573\nadd     rsp, 28h                                                       ; +0x58, 0x180004578\njmp     sub_18009DCF0                                                  ; +0x5c, 0x18000457c\nmov     rbx, [rsp+28h+var_8]                                           ; +0x61, 0x180004581\nadd     rsp, 28h                                                       ; +0x66, 0x180004586\nretn                                                                   ; +0x6a, 0x18000458a", "xrefs": ["cocos2d::CCNode::sortAllChildren @ 0x18000516b", "cocos2d::CCNode::sortAllChildrenWithIndex @ 0x180005290", "<???> @ 0x180130ddc", "<???> @ 0x180130dec", "<???> @ 0x1801438a8", "<???> @ 0x1801ad48c"], "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"}