//
// cocos2d::CCTextureAtlas::removeQuadAtIndex from 0x10030809c to 0x1003080f8 (92 bytes)
//
// 1 xrefs:
// > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x10026fc58
//
// 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 11:03:09 +0000
//
_DWORD *__fastcall cocos2d::CCTextureAtlas::removeQuadAtIndex(_DWORD *result, unsigned int a2)
{
_DWORD *v2; // x19
int v3; // w8
v2 = result;
v3 = result[20];
if ( v3 + ~a2 )
{
result = memmove(
(void *)(*((_QWORD *)result + 12) + 96LL * a2),
(const void *)(*((_QWORD *)result + 12) + 96LL * (a2 + 1)),
96LL * (v3 + ~a2));
v3 = v2[20];
}
v2[20] = v3 - 1;
*((_BYTE *)v2 + 76) = 1;
return result;
}