//
// cocos2d::CCTextureAtlas::removeQuadAtIndex from 0xda4b14 to 0xda4b88 (116 bytes)
//
// 3 xrefs:
// > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0xd89534
// > cocos2d::CCTMXLayer::removeTileAt @ 0xdac608
// > ??> @ 0x72cd0
//
// 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:31 +0000
//
__int64 __fastcall cocos2d::CCTextureAtlas::removeQuadAtIndex(cocos2d::CCTextureAtlas *this, unsigned int a2)
{
int v3; // w0
v3 = *((_DWORD *)this + 19) - 1;
if ( v3 != a2 )
{
memmove(
(void *)(*((_QWORD *)this + 12) + 96LL * a2),
(const void *)(*((_QWORD *)this + 12) + 96LL * (a2 + 1)),
96LL * (v3 - a2));
v3 = *((_DWORD *)this + 19) - 1;
}
*((_DWORD *)this + 19) = v3;
*((_BYTE *)this + 72) = 1;
return 1;
}