// // cocos2d::CCNode::sortAllChildrenNoIndex from 0x10023bcf0 to 0x10023be00 (272 bytes) // // 2 xrefs: // > cocos2d::CCSpriteBatchNode::sortAllChildren @ 0x1001d7884 // > cocos2d::CCNode::sortAllChildren @ 0x10023bcd8 // // 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::sortAllChildrenNoIndex(cocos2d::CCNode *a1) { cocos2d::ccArray *data; // x8 __int64 num; // x21 cocos2d::CCObject **arr; // x22 __int64 i; // x23 cocos2d::CCObject *v5; // x19 __int64 v6; // x24 __int64 v7; // x25 int v8; // w20 int v9; // w20 unsigned int v10; // w20 data = a1->m_pChildren->data; num = data->num; if ( (int)num >= 2 ) { arr = data->arr; for ( i = 1; i != num; ++i ) { v5 = arr[i]; v6 = i; while ( 1 ) { v7 = v6 - 1; v8 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v5->__vftable[1].isEqual)(v5); if ( v8 >= ((int (__fastcall *)(cocos2d::CCObject *))arr[(unsigned int)v7]->__vftable[1].isEqual)(arr[(unsigned int)v7]) ) { v9 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v5->__vftable[1].isEqual)(v5); if ( v9 != ((unsigned int (__fastcall *)(cocos2d::CCObject *))arr[(unsigned int)v7]->__vftable[1].isEqual)(arr[(unsigned int)v7]) ) break; v10 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v5->__vftable[5].copyWithZone)(v5); if ( v10 >= ((unsigned int (__fastcall *)(cocos2d::CCObject *))arr[(unsigned int)v7]->__vftable[5].copyWithZone)(arr[(unsigned int)v7]) ) break; } arr[v6--] = arr[(unsigned int)v7]; if ( v7 + 1 <= 1 ) { LODWORD(v6) = 0; break; } } arr[(int)v6] = v5; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source