// // cocos2d::CCNode::sortAllChildrenNoIndex from 0xaccc00 to 0xaccd5c (348 bytes) // // 3 xrefs: // > cocos2d::CCNode::sortAllChildren @ 0xacde9c // > cocos2d::CCSpriteBatchNode::sortAllChildren @ 0xb1765c // > @ 0x97488 // // 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 cocos2d::CCNode::sortAllChildrenNoIndex(cocos2d::CCNode *a1) { cocos2d::ccArray *data; // x0 cocos2d::CCObject **arr; // x26 cocos2d::CCObject **v3; // x24 __int64 v4; // x25 __int64 v5; // x23 cocos2d::CCObject *v6; // x20 int v7; // w21 __int64 v8; // x22 cocos2d::CCObject **v9; // x19 int v10; // w27 int v11; // w27 unsigned int v12; // w27 data = a1->m_pChildren->data; arr = data->arr; if ( (int)data->num > 1 ) { v3 = data->arr; v4 = data->num - 2 + 1LL; v5 = 0; do { LABEL_3: v6 = v3[1]; v7 = v5; v8 = v5; v9 = v3; if ( (v5 & 0x80000000) == 0 ) { while ( 1 ) { --v7; v10 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v6->__vftable[1].isEqual)(v6); if ( v10 >= ((int (__fastcall *)(cocos2d::CCObject *))(*v9)->__vftable[1].isEqual)(*v9) ) { v11 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v6->__vftable[1].isEqual)(v6); if ( v11 != ((unsigned int (__fastcall *)(cocos2d::CCObject *))(*v9)->__vftable[1].isEqual)(*v9) ) break; v12 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v6->__vftable[5].copyWithZone)(v6); if ( v12 >= ((unsigned int (__fastcall *)(cocos2d::CCObject *))(*v9)->__vftable[5].copyWithZone)(*v9) ) break; } v9[1] = *v9; --v8; --v9; if ( v7 == -1 ) { ++v5; ++v3; *arr = v6; if ( v5 != v4 ) goto LABEL_3; return; } } } ++v5; ++v3; arr[v8 + 1] = v6; } while ( v5 != v4 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source