//
// cocos2d::CCTextureAtlas::setupIndices from 0xb32ee0 to 0xb32f50 (112 bytes)
//
// 3 xrefs:
// > cocos2d::CCTextureAtlas::initWithTexture @ 0xb330c8
// > cocos2d::CCTextureAtlas::resizeCapacity @ 0xb337c0
// > ??> @ 0x56130
//
// 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::setupIndices(cocos2d::CCTextureAtlas *a1)
{
unsigned int m_uCapacity; // w9
GLushort *m_pIndices; // x2
__int16 v3; // w1
int v4; // w0
int v5; // w4
m_uCapacity = a1->m_uCapacity;
if ( m_uCapacity )
{
m_pIndices = a1->m_pIndices;
v3 = 2;
v4 = 0;
v5 = 0;
do
{
m_pIndices[v4] = 4 * v5;
m_pIndices[v4 + 1] = v3 - 1;
m_pIndices[v4 + 2] = v3;
m_pIndices[v4 + 3] = v3 + 1;
++v5;
m_pIndices[v4 + 4] = v3;
m_pIndices[v4 + 5] = v3 - 1;
v4 += 6;
v3 += 4;
}
while ( v5 != m_uCapacity );
}
}