// // cocos2d::CCNode::setUseChildIndex from 0x180005030 to 0x180005097 (103 bytes) // // 2 xrefs: // > @ 0x1801438a8 // > @ 0x1801ad630 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall cocos2d::CCNode::setUseChildIndex(cocos2d::CCNode *this, bool a2) { cocos2d::CCArray *m_pChildren; // rcx int v4; // edx cocos2d::ccArray *data; // rcx __int64 num; // r8 cocos2d::CCObject **arr; // r9 __int64 i; // rcx cocos2d::CCObject *v9; // rax if ( this->m_bUseChildIndex != a2 ) { this->m_bUseChildIndex = a2; if ( a2 ) { m_pChildren = this->m_pChildren; if ( m_pChildren ) { if ( cocos2d::CCArray::count(m_pChildren) ) { v4 = 0; data = this->m_pChildren->data; num = (int)data->num; arr = data->arr; if ( num > 0 ) { for ( i = 0; i < num; ++i ) { v9 = arr[i]; v9->m_uUnknown = v4++; } } } } } } }