// // cocos2d::CCNode::setUseChildIndex from 0x180005120 to 0x180005187 (103 bytes) // // 2 xrefs: // > @ 0x18014cf68 // > @ 0x1801b7654 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:21:18 +0000 // void __fastcall cocos2d::CCNode::setUseChildIndex(cocos2d::CCNode *this, char a2) { cocos2d::CCArray *v3; // rcx int v4; // edx int *v5; // rcx __int64 v6; // r8 __int64 v7; // r9 __int64 i; // rcx __int64 v9; // rax if ( *((_BYTE *)this + 312) != a2 ) { *((_BYTE *)this + 312) = a2; if ( a2 ) { v3 = *((cocos2d::CCArray **)this + 26); if ( v3 ) { if ( cocos2d::CCArray::count(v3) ) { v4 = 0; v5 = *(int **)(*((_QWORD *)this + 26) + 56LL); v6 = *v5; v7 = *((_QWORD *)v5 + 2); if ( v6 > 0 ) { for ( i = 0; i < v6; ++i ) { v9 = *(_QWORD *)(v7 + 8 * i); *(_DWORD *)(v9 + 36) = v4++; } } } } } } }