//
// GameManager::getMGTexture from 0x100318cd4 to 0x100318d20 (76 bytes)
//
// 1 xrefs:
// > GJMGLayer::init @ 0x10002c948
//
// 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
//
const char *__fastcall GameManager::getMGTexture(GameManager *a1, int a2)
{
int v2; // w8
int v3; // w19
cocos2d::CCString *v4; // x0
if ( a2 >= 3 )
v2 = 3;
else
v2 = a2;
if ( v2 <= 1 )
v3 = 1;
else
v3 = v2;
GameManager::loadMiddleground(a1, v3);
v4 = (cocos2d::CCString *)sub_100268F4C("fg_%02d_001.png", v3);
return cocos2d::CCString::getCString(v4);
}