// // cocos2d::CCSpriteBatchNode::rebuildIndexInOrder from 0x5e7e1e to 0x5e7ee0 (194 bytes) // // 2 xrefs: // > cocos2d::CCSpriteBatchNode::rebuildIndexInOrder @ 0x5e7eb6 // > cocos2d::CCSpriteBatchNode::rebuildIndexInOrder @ 0x5e7ed2 // // 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 // unsigned int cocos2d::CCSpriteBatchNode::rebuildIndexInOrder( cocos2d::CCSpriteBatchNode *a1, cocos2d::CCSprite *a2, unsigned int a3) { cocos2d::CCArray *v6; // r0 cocos2d::CCArray *v7; // r8 cocos2d::ccArray *data; // r2 cocos2d::CCObject **arr; // r5 cocos2d::CCObject **v10; // r9 cocos2d::CCSprite *v11; // r10 cocos2d::CCSprite *v12; // t1 cocos2d::ccArray *v13; // r2 cocos2d::CCObject **v14; // r6 cocos2d::CCObject **v15; // r5 cocos2d::CCSprite *v16; // r8 cocos2d::CCSprite *v17; // t1 v6 = a2->getChildren(a2); v7 = v6; if ( v6 ) { if ( cocos2d::CCArray::count(v6) ) { data = v7->data; if ( data->num ) { arr = data->arr; v10 = &arr[data->num] + 0x3FFFFFFF; while ( arr <= v10 ) { v12 = (cocos2d::CCSprite *)*arr++; v11 = v12; if ( !v12 ) break; if ( v11->getZOrder(v11) < 0 ) a3 = cocos2d::CCSpriteBatchNode::rebuildIndexInOrder(a1, v11, a3); } } } } if ( !((int (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteBatchNode *))a2->isEqual)(a2, a1) ) a2->m_uAtlasIndex = a3++; if ( v7 ) { if ( cocos2d::CCArray::count(v7) ) { v13 = v7->data; if ( v13->num ) { v14 = v13->arr; v15 = &v14[v13->num] + 0x3FFFFFFF; while ( v14 <= v15 ) { v17 = (cocos2d::CCSprite *)*v14++; v16 = v17; if ( !v17 ) break; if ( v16->getZOrder(v16) >= 0 ) a3 = cocos2d::CCSpriteBatchNode::rebuildIndexInOrder(a1, v16, a3); } } } } return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source