//
// cocos2d::CCTextureAtlas::moveQuadsFromIndex from 0xda4e08 to 0xda4f18 (272 bytes)
//
// 2 xrefs:
// > cocos2d::CCParticleBatchNode::reorderChild @ 0xd72c68
// > ??> @ 0xbf7a0
//
// 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::moveQuadsFromIndex(
__int64 this,
unsigned int a2,
unsigned int a3,
unsigned int a4)
{
__int64 v4; // x21
size_t v6; // x22
void *v9; // x0
__int64 v10; // x26
void *v11; // x23
__int64 v12; // x20
__int64 v13; // x0
__int64 v14; // x24
__int64 v15; // x19
if ( a2 != a4 )
{
v4 = this;
v6 = 96LL * a3;
v9 = malloc(v6);
v10 = *(_QWORD *)(v4 + 96);
v11 = v9;
memcpy(v9, (const void *)(v10 + 96LL * a2), v6);
if ( a2 > a4 )
{
v13 = a4;
v14 = a4 + a3;
v15 = a2 - a4;
v12 = 96 * v13;
memmove((void *)(v10 + 96 * v13), (const void *)(v10 + 96 * v14), 96 * v15);
}
else
{
memmove((void *)(v10 + 96LL * a2), (const void *)(v10 + 96LL * (a2 + a3)), 96LL * (a4 - a2));
v12 = 96LL * a4;
}
memcpy((void *)(*(_QWORD *)(v4 + 96) + v12), v11, v6);
free(v11);
this = 1;
*(_BYTE *)(v4 + 72) = 1;
}
return this;
}