// // cocos2d::CCSpriteBatchNode::rebuildIndexInOrder from 0xd88c74 to 0xd88e0c (408 bytes) // // 3 xrefs: // > cocos2d::CCSpriteBatchNode::rebuildIndexInOrder @ 0xd88d38 // > cocos2d::CCSpriteBatchNode::rebuildIndexInOrder @ 0xd88db4 // > @ 0x9b1a0 // // This function is hookable on this platform (idp: arm, 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 13:08:14 +0000 // __int64 __fastcall cocos2d::CCSpriteBatchNode::rebuildIndexInOrder( cocos2d::CCSpriteBatchNode *this, cocos2d::CCSprite *a2, unsigned int a3) { cocos2d::CCArray *v6; // x0 cocos2d::CCArray *v7; // x25 unsigned int *v8; // x1 cocos2d::CCSprite **v9; // x19 __int64 v10; // x0 char *v11; // x21 unsigned int *v13; // x1 cocos2d::CCSprite **v14; // x21 __int64 v15; // x0 char *v16; // x24 cocos2d::CCSprite *v17; // x22 cocos2d::CCSprite *v18; // [xsp+58h] [xbp+58h] v6 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)a2 + 488LL))(a2); v7 = v6; if ( v6 ) { if ( (unsigned int)cocos2d::CCArray::count(v6) ) { v13 = *((unsigned int **)v7 + 7); if ( *v13 ) { v14 = *((cocos2d::CCSprite ***)v13 + 2); v15 = 8LL * *v13 - 8; v16 = (char *)v14 + v15; if ( v14 <= (cocos2d::CCSprite **)((char *)v14 + v15) ) { do { v17 = *v14; if ( !*v14 ) break; if ( ((*(__int64 (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v17 + 104LL))(*v14) & 0x80000000) != 0 ) a3 = cocos2d::CCSpriteBatchNode::rebuildIndexInOrder(this, v17, a3); ++v14; } while ( v16 >= (char *)v14 ); } } } if ( !(*(unsigned __int8 (__fastcall **)(cocos2d::CCSprite *, cocos2d::CCSpriteBatchNode *))(*(_QWORD *)a2 + 24LL))( a2, this) ) *((_DWORD *)a2 + 90) = a3++; if ( (unsigned int)cocos2d::CCArray::count(v7) ) { v8 = *((unsigned int **)v7 + 7); if ( *v8 ) { v9 = *((cocos2d::CCSprite ***)v8 + 2); v10 = 8LL * *v8 - 8; v11 = (char *)v9 + v10; if ( v9 <= (cocos2d::CCSprite **)((char *)v9 + v10) ) { do { if ( !*v9 ) break; v18 = *v9; if ( ((*(__int64 (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)*v9 + 104LL))(*v9) & 0x80000000) == 0 ) a3 = cocos2d::CCSpriteBatchNode::rebuildIndexInOrder(this, v18, a3); ++v9; } while ( v11 >= (char *)v9 ); } } } return a3; } if ( (*(unsigned __int8 (__fastcall **)(cocos2d::CCSprite *, cocos2d::CCSpriteBatchNode *))(*(_QWORD *)a2 + 24LL))( a2, this) ) { return a3; } *((_DWORD *)a2 + 90) = a3; return a3 + 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source