{"type": "func", "start": 6442468848, "end": 6442468955, "name": "cocos2d::CCNode::qsortAllChildrenWithIndex", "pseudocode": "// \n// cocos2d::CCNode::qsortAllChildrenWithIndex from 0x1800045f0 to 0x18000465b (107 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCNode::sortAllChildren @ 0x18000525b\n// > cocos2d::CCNode::sortAllChildrenWithIndex @ 0x180005390\n// > <???> @ 0x180139c48\n// > <???> @ 0x180139c58\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b74b0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:17 +0000\n// \n\nvoid __fastcall cocos2d::CCNode::qsortAllChildrenWithIndex(cocos2d::CCNode *this)\n{\n  char *v1; // rbx\n\n  if ( *((_BYTE *)this + 288) )\n  {\n    v1 = (char *)this + 208;\n    if ( *((_BYTE *)this + 312) )\n      sub_1800A1D70(*(_QWORD *)(*(_QWORD *)v1 + 56LL));\n    sub_1800023B0(\n      *(char **)(*(_QWORD *)(*(_QWORD *)v1 + 56LL) + 16LL),\n      (__int64 *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)v1 + 56LL) + 16LL) + 8LL\n                                                                        * **(unsigned int **)(*(_QWORD *)v1 + 56LL)),\n      **(unsigned int **)(*(_QWORD *)v1 + 56LL),\n      (unsigned __int8 (__fastcall *)(__int64, __int64))sub_1800041E0);\n    sub_1800A1980(*(_QWORD *)(*(_QWORD *)v1 + 56LL));\n  }\n}", "assembly": "; \n; cocos2d::CCNode::qsortAllChildrenWithIndex from 0x1800045f0 to 0x18000465b (107 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCNode::sortAllChildren @ 0x18000525b\n; > cocos2d::CCNode::sortAllChildrenWithIndex @ 0x180005390\n; > <???> @ 0x180139c48\n; > <???> @ 0x180139c58\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b74b0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:17 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x1800045f0\ncmp     byte ptr [rcx+120h], 0                                         ; +0x4, 0x1800045f4\njz      short loc_180004656                                            ; +0xb, 0x1800045fb\ncmp     byte ptr [rcx+138h], 0                                         ; +0xd, 0x1800045fd\nmov     [rsp+28h+var_8], rbx                                           ; +0x14, 0x180004604\nlea     rbx, [rcx+0D0h]                                                ; +0x19, 0x180004609\njz      short loc_18000461E                                            ; +0x20, 0x180004610\nmov     rcx, [rbx]                                                     ; +0x22, 0x180004612\nmov     rcx, [rcx+38h]                                                 ; +0x25, 0x180004615\ncall    sub_1800A1D70                                                  ; +0x29, 0x180004619\nmov     rax, [rbx]                                                     ; +0x2e, 0x18000461e\nlea     r9, sub_1800041E0                                              ; +0x31, 0x180004621\nmov     rdx, [rax+38h]                                                 ; +0x38, 0x180004628\nmov     rcx, [rdx+10h]                                                 ; +0x3c, 0x18000462c\nmov     r8d, [rdx]                                                     ; +0x40, 0x180004630\nlea     rdx, [rcx+r8*8]                                                ; +0x43, 0x180004633\ncall    sub_1800023B0                                                  ; +0x47, 0x180004637\nmov     rcx, [rbx]                                                     ; +0x4c, 0x18000463c\nmov     rcx, [rcx+38h]                                                 ; +0x4f, 0x18000463f\nmov     rbx, [rsp+28h+var_8]                                           ; +0x53, 0x180004643\nadd     rsp, 28h                                                       ; +0x58, 0x180004648\njmp     sub_1800A1980                                                  ; +0x5c, 0x18000464c\nmov     rbx, [rsp+28h+var_8]                                           ; +0x61, 0x180004651\nadd     rsp, 28h                                                       ; +0x66, 0x180004656\nretn                                                                   ; +0x6a, 0x18000465a", "xrefs": ["cocos2d::CCNode::sortAllChildren @ 0x18000525b", "cocos2d::CCNode::sortAllChildrenWithIndex @ 0x180005390", "<???> @ 0x180139c48", "<???> @ 0x180139c58", "<???> @ 0x18014cf68", "<???> @ 0x1801b74b0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}