// // cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas from 0x7f2b40 to 0x7f2c0e (206 bytes) // // 5 xrefs: // > cocos2d::CCSprite::removeChild @ 0x7f1d76 // > cocos2d::CCSprite::removeAllChildrenWithCleanup @ 0x7f1de8 // > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x7f2bfe // > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x7f2c06 // > cocos2d::CCSpriteBatchNode::removeChild @ 0x7f2f7c // // 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:06 +0000 // cocos2d::CCArray **__fastcall cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas( cocos2d::CCArray **this, cocos2d::CCSprite *a2) { cocos2d::CCArray **v2; // r5 unsigned int v4; // r7 unsigned int v5; // r6 cocos2d::CCArray **v6; // r4 cocos2d::CCArray *v7; // r2 cocos2d::CCSprite **v8; // r6 cocos2d::CCSprite **v9; // r4 cocos2d::CCSprite *v10; // r1 cocos2d::CCSprite *v11; // t1 cocos2d::CCArray **v12; // r4 cocos2d::CCArray *v13; // r2 cocos2d::CCSprite **v14; // r6 cocos2d::CCSprite **v15; // r4 cocos2d::CCSprite *v16; // r1 cocos2d::CCSprite *v17; // t1 v2 = this; if ( *((_BYTE *)a2 + 471) ) { this = (cocos2d::CCArray **)(*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 244))(a2); v12 = this; if ( this ) { this = (cocos2d::CCArray **)cocos2d::CCArray::count((cocos2d::CCArray *)this); if ( this ) { v13 = v12[13]; if ( *(_DWORD *)v13 ) { v14 = *((cocos2d::CCSprite ***)v13 + 3); v15 = &v14[*(_DWORD *)v13] + 0x3FFFFFFF; while ( v14 <= v15 ) { v17 = *v14++; v16 = v17; if ( !v17 ) break; this = (cocos2d::CCArray **)cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas( (cocos2d::CCSpriteBatchNode *)v2, v16); } } } } } else { v4 = *((_DWORD *)a2 + 9); if ( v4 != -1 ) { v5 = cocos2d::CCArray::count(*(this + 70)) - 1; if ( v4 < v5 ) cocos2d::CCSpriteBatchNode::swap((cocos2d::CCSpriteBatchNode *)v2, v4, v5); cocos2d::CCTextureAtlas::removeQuadAtIndex(v2[67], v5); *((_BYTE *)v2 + 240) = 1; (*(void (__fastcall **)(cocos2d::CCSprite *, _DWORD))(*(_DWORD *)a2 + 560))(a2, 0); cocos2d::ccArrayRemoveObjectAtIndexBatch(*((_DWORD *)v2[70] + 13), **((_DWORD **)v2[70] + 13) - 1, 1); this = (cocos2d::CCArray **)(*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 244))(a2); v6 = this; if ( this ) { this = (cocos2d::CCArray **)cocos2d::CCArray::count((cocos2d::CCArray *)this); if ( this ) { v7 = v6[13]; if ( *(_DWORD *)v7 ) { v8 = *((cocos2d::CCSprite ***)v7 + 3); v9 = &v8[*(_DWORD *)v7] + 0x3FFFFFFF; while ( v8 <= v9 ) { v11 = *v8++; v10 = v11; if ( !v11 ) break; this = (cocos2d::CCArray **)cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas( (cocos2d::CCSpriteBatchNode *)v2, v10); } } } } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source