//
// cocos2d::CCTextureAtlas::removeQuadAtIndex from 0x800388 to 0x8003b6 (46 bytes)
//
// 2 xrefs:
// > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x7f2b72
// > cocos2d::CCTMXLayer::removeTileAt @ 0x804b5e
//
// 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:19 +0000
//
_DWORD *__fastcall cocos2d::CCTextureAtlas::removeQuadAtIndex(_DWORD *this, unsigned int a2)
{
_DWORD *v2; // r4
int v3; // r2
v2 = this;
v3 = *(this + 17) - 1 - a2;
if ( v3 )
this = memmove((void *)(96 * a2 + *(this + 20)), (const void *)(96 * a2 + 96 + *(this + 20)), 96 * v3);
--v2[17];
*((_BYTE *)v2 + 64) = 1;
return this;
}