// // cocos2d::CCSpriteBatchNode::sortAllChildren from 0x7f2594 to 0x7f2656 (194 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:01:05 +0000 // cocos2d::CCArray **__fastcall cocos2d::CCSpriteBatchNode::sortAllChildren( cocos2d::CCArray **this, int (__fastcall *a2)(_DWORD), int (__fastcall *a3)(_DWORD)) { cocos2d::CCArray **v3; // r4 cocos2d::CCArray *v4; // r3 cocos2d::CCArray *v5; // r3 _DWORD *v6; // r2 cocos2d::CCArray ***v7; // r7 cocos2d::CCArray ***v8; // r5 cocos2d::CCArray **v9; // t1 _DWORD *v10; // r2 cocos2d::CCSprite **v11; // r7 cocos2d::CCSprite **v12; // r5 cocos2d::CCSprite *v13; // r1 cocos2d::CCSprite *v14; // t1 int v15[2]; // [sp+0h] [bp-8h] BYREF v15[0] = (int)this; v15[1] = (int)a2; v3 = this; if ( *((_BYTE *)this + 240) && (!*((_BYTE *)this + 284) || *((_BYTE *)this + 285)) ) { if ( *((_BYTE *)this + 260) ) cocos2d::CCNode::sortAllChildrenWithIndex((int)this, a2, a3); else cocos2d::CCNode::sortAllChildrenNoIndex((int)this); this = (cocos2d::CCArray **)cocos2d::CCArray::count(v3[48]); if ( this ) { v4 = v3[48]; if ( v4 ) { v6 = *((_DWORD **)v4 + 13); if ( *v6 ) { v7 = (cocos2d::CCArray ***)v6[3]; v8 = &(&v7[*v6])[-1]; while ( v7 <= v8 ) { v9 = *v7++; this = v9; if ( !v9 ) break; this = (cocos2d::CCArray **)(*((int (__fastcall **)(cocos2d::CCArray **))*this + 75))(this); } } } v15[0] = 0; v5 = v3[48]; if ( v5 ) { v10 = *((_DWORD **)v5 + 13); if ( *v10 ) { v11 = (cocos2d::CCSprite **)v10[3]; v12 = &v11[*v10] + 0x3FFFFFFF; while ( v11 <= v12 ) { v14 = *v11++; v13 = v14; if ( !v14 ) break; this = (cocos2d::CCArray **)cocos2d::CCSpriteBatchNode::updateAtlasIndex( (cocos2d::CCSpriteBatchNode *)v3, v13, v15); } } } } *((_BYTE *)v3 + 240) = 0; *((_BYTE *)v3 + 285) = 0; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source