//
// cocos2d::CCTextureAtlas::insertQuads from 0x5f4740 to 0x5f47a6 (102 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void cocos2d::CCTextureAtlas::insertQuads(
cocos2d::CCTextureAtlas *a1,
cocos2d::ccV3F_C4B_T2F_Quad *a2,
unsigned int a3,
unsigned int a4)
{
unsigned int m_uMaxQuads; // r1
unsigned int v8; // r2
unsigned int v9; // r6
signed int v10; // r2
unsigned int v11; // r7
cocos2d::ccV3F_C4B_T2F_Quad *v12; // r8
cocos2d::ccV3F_C4B_T2F_Quad *v13; // r1
cocos2d::ccV3F_C4B_T2F_Quad *v14; // r0
m_uMaxQuads = a1->m_uMaxQuads;
v8 = a1->m_uTotalQuads + a4;
a1->m_uTotalQuads = v8;
v9 = a4 + a3;
if ( m_uMaxQuads < v8 )
a1->m_uMaxQuads = v8;
else
a1->m_uMaxQuads = m_uMaxQuads;
v10 = v8 + ~a3 - a4;
if ( v10 > 0 )
memmove(&a1->m_pQuads[v9], &a1->m_pQuads[a3], 96 * v10);
v11 = a3;
v12 = &a2[-a3];
while ( a3 < v9 )
{
v13 = &v12[v11];
++a3;
v14 = &a1->m_pQuads[v11++];
memcpy(v14, v13, sizeof(cocos2d::ccV3F_C4B_T2F_Quad));
}
a1->m_bDirty = 1;
}