{"type": "func", "start": 6442471712, "end": 6442471815, "name": "cocos2d::CCNode::setUseChildIndex", "pseudocode": "// \n// cocos2d::CCNode::setUseChildIndex from 0x180005120 to 0x180005187 (103 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b7654\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:18 +0000\n// \n\nvoid __fastcall cocos2d::CCNode::setUseChildIndex(cocos2d::CCNode *this, char a2)\n{\n  cocos2d::CCArray *v3; // rcx\n  int v4; // edx\n  int *v5; // rcx\n  __int64 v6; // r8\n  __int64 v7; // r9\n  __int64 i; // rcx\n  __int64 v9; // rax\n\n  if ( *((_BYTE *)this + 312) != a2 )\n  {\n    *((_BYTE *)this + 312) = a2;\n    if ( a2 )\n    {\n      v3 = *((cocos2d::CCArray **)this + 26);\n      if ( v3 )\n      {\n        if ( cocos2d::CCArray::count(v3) )\n        {\n          v4 = 0;\n          v5 = *(int **)(*((_QWORD *)this + 26) + 56LL);\n          v6 = *v5;\n          v7 = *((_QWORD *)v5 + 2);\n          if ( v6 > 0 )\n          {\n            for ( i = 0; i < v6; ++i )\n            {\n              v9 = *(_QWORD *)(v7 + 8 * i);\n              *(_DWORD *)(v9 + 36) = v4++;\n            }\n          }\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCNode::setUseChildIndex from 0x180005120 to 0x180005187 (103 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b7654\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:18 +0000\n; \npush    rbx                                                            ; +0x0, 0x180005120\nsub     rsp, 20h                                                       ; +0x2, 0x180005122\nmov     rbx, rcx                                                       ; +0x6, 0x180005126\ncmp     [rcx+138h], dl                                                 ; +0x9, 0x180005129\njz      short loc_180005181                                            ; +0xf, 0x18000512f\nmov     [rcx+138h], dl                                                 ; +0x11, 0x180005131\ntest    dl, dl                                                         ; +0x17, 0x180005137\njz      short loc_180005181                                            ; +0x19, 0x180005139\nmov     rcx, [rcx+0D0h]; this                                          ; +0x1b, 0x18000513b\ntest    rcx, rcx                                                       ; +0x22, 0x180005142\njz      short loc_180005181                                            ; +0x25, 0x180005145\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x27, 0x180005147\ntest    eax, eax                                                       ; +0x2c, 0x18000514c\njz      short loc_180005181                                            ; +0x2e, 0x18000514e\nmov     rax, [rbx+0D0h]                                                ; +0x30, 0x180005150\nxor     edx, edx                                                       ; +0x37, 0x180005157\nmov     rcx, [rax+38h]                                                 ; +0x39, 0x180005159\nmovsxd  r8, dword ptr [rcx]                                            ; +0x3d, 0x18000515d\nmov     r9, [rcx+10h]                                                  ; +0x40, 0x180005160\ntest    r8, r8                                                         ; +0x44, 0x180005164\njle     short loc_180005181                                            ; +0x47, 0x180005167\nmov     ecx, edx                                                       ; +0x49, 0x180005169\nnop     dword ptr [rax+rax+00h]                                        ; +0x4b, 0x18000516b\nmov     rax, [r9+rcx*8]                                                ; +0x50, 0x180005170\ninc     rcx                                                            ; +0x54, 0x180005174\nmov     [rax+24h], edx                                                 ; +0x57, 0x180005177\ninc     edx                                                            ; +0x5a, 0x18000517a\ncmp     rcx, r8                                                        ; +0x5c, 0x18000517c\njl      short loc_180005170                                            ; +0x5f, 0x18000517f\nadd     rsp, 20h                                                       ; +0x61, 0x180005181\npop     rbx                                                            ; +0x65, 0x180005185\nretn                                                                   ; +0x66, 0x180005186", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801b7654"], "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"}