//
// GameManager::getMGTexture from 0x414bd4 to 0x414bfe (42 bytes)
//
// 1 xrefs:
// > GJMGLayer::init @ 0x54690a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:47:39 +0000
//
int __fastcall GameManager::getMGTexture(const char **this, const char *a2)
{
const char *v2; // r4
cocos2d::CCString *v3; // r0
if ( (int)a2 <= 0 )
{
v2 = (_BYTE *)(&dword_0 + 1);
}
else
{
if ( (int)a2 >= 3 )
a2 = (_BYTE *)(&dword_0 + 3);
v2 = a2;
}
GameManager::loadMiddleground(this, (unsigned int)v2);
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"fg_%02d_001.png", v2);
return cocos2d::CCString::getCString(v3);
}