//
// cocos2d::CCTextureAtlas::insertQuadFromIndex from 0x80032a to 0x800388 (94 bytes)
//
// 0 xrefs:
//
// 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::insertQuadFromIndex(_DWORD *this, unsigned int a2, unsigned int a3)
{
unsigned int v3; // r9
unsigned int v4; // r10
_DWORD *v5; // r6
int v7; // r7
int v8; // r11
_BYTE v9[96]; // [sp+0h] [bp-64h] BYREF
v5 = this;
if ( a2 != a3 )
{
v7 = *(this + 20);
if ( a2 > a3 )
v4 = a3 + 1;
else
v3 = a2 + 1;
v8 = a2 - a3;
if ( a2 > a3 )
v3 = a3;
else
v4 = a2;
memcpy(v9, (const void *)(v7 + 96 * a2), sizeof(v9));
memmove((void *)(v7 + 96 * v4), (const void *)(v7 + 96 * v3), 96 * v8);
this = memcpy((void *)(v5[20] + 96 * a3), v9, 0x60u);
*((_BYTE *)v5 + 64) = 1;
}
return this;
}