//
// GameManager::getGTexture from 0x717044 to 0x717090 (76 bytes)
//
// 2 xrefs:
// > GJGroundLayer::init @ 0x916c48
// > ??> @ 0x73c60
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:52:16 +0000
//
__int64 __fastcall GameManager::getGTexture(GameManager *this, int a2)
{
unsigned int v2; // w19
cocos2d::CCString *v3; // x0
if ( a2 <= 0 )
{
v2 = 1;
}
else if ( a2 > 22 )
{
v2 = 22;
}
else
{
v2 = a2;
}
GameManager::loadGround((__int64)this, v2);
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"groundSquare_%02d_001.png",
(const char *)v2);
return cocos2d::CCString::getCString(v3);
}