//
// cocos2d::CCTMXLayer::atlasIndexForNewZ from 0x5f7248 to 0x5f7266 (30 bytes)
//
// 1 xrefs:
// > cocos2d::CCTMXLayer::insertTileForGID @ 0x5f7a00
//
// 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
//
unsigned int cocos2d::CCTMXLayer::atlasIndexForNewZ(cocos2d::CCTMXLayer *a1, int a2)
{
float m_fScaleX; // r3
unsigned int result; // r0
m_fScaleX = a1[1].m_fScaleX;
for ( result = 0;
result != *(_DWORD *)LODWORD(m_fScaleX) && *(_DWORD *)(*(_DWORD *)(LODWORD(m_fScaleX) + 12) + 4 * result) <= a2;
++result )
{
;
}
return result;
}