{"type": "func", "start": 6443097328, "end": 6443097368, "name": "sub_18009DCF0", "pseudocode": "// \n// sub_18009DCF0 from 0x18009dcf0 to 0x18009dd18 (40 bytes)\n// \n// 1 xrefs:\n// > cocos2d::CCNode::qsortAllChildrenWithIndex @ 0x18000457c\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 sub_18009DCF0(int *a1)\n{\n  __int64 v1; // r10\n  int v2; // r9d\n  __int64 i; // rax\n  __int64 v4; // r8\n\n  v1 = *a1;\n  v2 = 0;\n  if ( v1 > 0 )\n  {\n    for ( i = 0; i < v1; ++i )\n    {\n      v4 = *(_QWORD *)(*((_QWORD *)a1 + 2) + 8 * i);\n      *(_DWORD *)(v4 + 36) = v2++;\n    }\n  }\n}", "assembly": "; \n; sub_18009DCF0 from 0x18009dcf0 to 0x18009dd18 (40 bytes)\n; \n; 1 xrefs:\n; > cocos2d::CCNode::qsortAllChildrenWithIndex @ 0x18000457c\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\nmovsxd  r10, dword ptr [rcx]                                           ; +0x0, 0x18009dcf0\nxor     r9d, r9d                                                       ; +0x3, 0x18009dcf3\ntest    r10, r10                                                       ; +0x6, 0x18009dcf6\njle     short locret_18009DD17                                         ; +0x9, 0x18009dcf9\nmov     eax, r9d                                                       ; +0xb, 0x18009dcfb\nxchg    ax, ax                                                         ; +0xe, 0x18009dcfe\nmov     rdx, [rcx+10h]                                                 ; +0x10, 0x18009dd00\nmov     r8, [rdx+rax*8]                                                ; +0x14, 0x18009dd04\ninc     rax                                                            ; +0x18, 0x18009dd08\nmov     [r8+24h], r9d                                                  ; +0x1b, 0x18009dd0b\ninc     r9d                                                            ; +0x1f, 0x18009dd0f\ncmp     rax, r10                                                       ; +0x22, 0x18009dd12\njl      short loc_18009DD00                                            ; +0x25, 0x18009dd15\nretn                                                                   ; +0x27, 0x18009dd17", "xrefs": ["cocos2d::CCNode::qsortAllChildrenWithIndex @ 0x18000457c"], "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"}