//
// cocos2d::CCTextureAtlas::moveQuadsFromIndex from 0x8004e2 to 0x800556 (116 bytes)
//
// 1 xrefs:
// > cocos2d::CCParticleBatchNode::reorderChild @ 0x7e5cfc
//
// 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
//
void __fastcall cocos2d::CCTextureAtlas::moveQuadsFromIndex(
cocos2d::CCTextureAtlas *this,
unsigned int a2,
unsigned int a3,
unsigned int a4)
{
size_t v8; // r9
void *v9; // r0
int v10; // r11
void *v11; // r10
void *v12; // r0
int v13; // r1
int v14; // r2
if ( a2 != a4 )
{
v8 = 96 * a3;
v9 = malloc(96 * a3);
v10 = *((_DWORD *)this + 20);
v11 = v9;
v12 = memcpy(v9, (const void *)(v10 + 96 * a2), v8);
if ( a4 >= a2 )
{
v13 = a2 + a3;
v14 = a4 - a2;
v12 = (void *)(v10 + 96 * a2);
}
else
{
v13 = a4 + a3;
v14 = a2 - a4;
}
if ( a4 < a2 )
v12 = (void *)(v10 + 96 * a4);
memmove(v12, (const void *)(v10 + 96 * v13), 96 * v14);
memcpy((void *)(*((_DWORD *)this + 20) + 96 * a4), v11, v8);
free(v11);
*((_BYTE *)this + 64) = 1;
}
}