// // cocos2d::CCSpriteBatchNode::rebuildIndexInOrder from 0xb17794 to 0xb1792c (408 bytes) // // 3 xrefs: // > cocos2d::CCSpriteBatchNode::rebuildIndexInOrder @ 0xb17858 // > cocos2d::CCSpriteBatchNode::rebuildIndexInOrder @ 0xb178d4 // > @ 0x73818 // // 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; // x0 cocos2d::CCArray *v7; // x25 cocos2d::ccArray *v8; // x1 cocos2d::CCSprite **v9; // x19 __int64 v10; // x0 char *v11; // x21 cocos2d::ccArray *data; // x1 cocos2d::CCSprite **arr; // x21 __int64 v15; // x0 char *v16; // x24 cocos2d::CCSprite *v17; // x22 cocos2d::CCSprite *v18; // [xsp+58h] [xbp+58h] v6 = a2->getChildren(a2); v7 = v6; if ( v6 ) { if ( (unsigned int)cocos2d::CCArray::count(v6) ) { data = v7->data; if ( data->num ) { arr = (cocos2d::CCSprite **)data->arr; v15 = 8LL * data->num - 8; v16 = (char *)arr + v15; if ( arr <= (cocos2d::CCSprite **)((char *)arr + v15) ) { do { v17 = *arr; if ( !*arr ) break; if ( (((__int64 (__fastcall *)(cocos2d::CCSprite *))v17->getZOrder)(*arr) & 0x80000000) != 0 ) a3 = cocos2d::CCSpriteBatchNode::rebuildIndexInOrder(a1, v17, a3); ++arr; } while ( v16 >= (char *)arr ); } } } if ( !a2->isEqual(a2, a1) ) a2->m_uAtlasIndex = a3++; if ( (unsigned int)cocos2d::CCArray::count(v7) ) { v8 = v7->data; if ( v8->num ) { v9 = (cocos2d::CCSprite **)v8->arr; v10 = 8LL * v8->num - 8; v11 = (char *)v9 + v10; if ( v9 <= (cocos2d::CCSprite **)((char *)v9 + v10) ) { do { if ( !*v9 ) break; v18 = *v9; if ( (((__int64 (__fastcall *)(cocos2d::CCSprite *))(*v9)->getZOrder)(*v9) & 0x80000000) == 0 ) a3 = cocos2d::CCSpriteBatchNode::rebuildIndexInOrder(a1, v18, a3); ++v9; } while ( v11 >= (char *)v9 ); } } } return a3; } if ( a2->isEqual(a2, a1) ) return a3; a2->m_uAtlasIndex = a3; return a3 + 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source