{"type": "func", "start": 6443112832, "end": 6443112872, "name": "sub_1800A1980", "pseudocode": "// \n// sub_1800A1980 from 0x1800a1980 to 0x1800a19a8 (40 bytes)\n// \n// 1 xrefs:\n// > cocos2d::CCNode::qsortAllChildrenWithIndex @ 0x18000464c\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:22:13 +0000\n// \n\nvoid __fastcall sub_1800A1980(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_1800A1980 from 0x1800a1980 to 0x1800a19a8 (40 bytes)\n; \n; 1 xrefs:\n; > cocos2d::CCNode::qsortAllChildrenWithIndex @ 0x18000464c\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:22:13 +0000\n; \nmovsxd  r10, dword ptr [rcx]                                           ; +0x0, 0x1800a1980\nxor     r9d, r9d                                                       ; +0x3, 0x1800a1983\ntest    r10, r10                                                       ; +0x6, 0x1800a1986\njle     short locret_1800A19A7                                         ; +0x9, 0x1800a1989\nmov     eax, r9d                                                       ; +0xb, 0x1800a198b\nxchg    ax, ax                                                         ; +0xe, 0x1800a198e\nmov     rdx, [rcx+10h]                                                 ; +0x10, 0x1800a1990\nmov     r8, [rdx+rax*8]                                                ; +0x14, 0x1800a1994\ninc     rax                                                            ; +0x18, 0x1800a1998\nmov     [r8+24h], r9d                                                  ; +0x1b, 0x1800a199b\ninc     r9d                                                            ; +0x1f, 0x1800a199f\ncmp     rax, r10                                                       ; +0x22, 0x1800a19a2\njl      short loc_1800A1990                                            ; +0x25, 0x1800a19a5\nretn                                                                   ; +0x27, 0x1800a19a7", "xrefs": ["cocos2d::CCNode::qsortAllChildrenWithIndex @ 0x18000464c"], "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"}