//
// cocos2d::CCTextureAtlas::insertQuad from 0x5f46f8 to 0x5f4740 (72 bytes)
//
// 3 xrefs:
// > cocos2d::CCSpriteBatchNode::insertChild @ 0x5e804e
// > cocos2d::CCSpriteBatchNode::appendChild @ 0x5e821e
// > cocos2d::CCSpriteBatchNode::insertQuadFromSprite @ 0x5e8558
//
// 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::insertQuad(cocos2d::CCTextureAtlas *a1, cocos2d::ccV3F_C4B_T2F_Quad *a2, unsigned int a3)
{
unsigned int m_uMaxQuads; // r1
unsigned int m_uTotalQuads; // r2
unsigned int v8; // r3
unsigned int v9; // r2
m_uMaxQuads = a1->m_uMaxQuads;
m_uTotalQuads = a1->m_uTotalQuads;
v8 = m_uTotalQuads + 1;
if ( m_uMaxQuads < m_uTotalQuads + 1 )
a1->m_uMaxQuads = v8;
else
a1->m_uMaxQuads = m_uMaxQuads;
v9 = m_uTotalQuads - a3;
a1->m_uTotalQuads = v8;
if ( v9 )
memmove(&a1->m_pQuads[a3 + 1], &a1->m_pQuads[a3], 96 * v9);
memcpy(&a1->m_pQuads[a3], a2, sizeof(a1->m_pQuads[a3]));
a1->m_bDirty = 1;
}