//
// GameManager::getBGTexture from 0x100383b20 to 0x100383b63 (67 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::createBackground @ 0x100114413
// > LevelAreaLayer::init @ 0x100277a96
// > GauntletLayer::init @ 0x100392b1a
// > LoadingLayer::init @ 0x1003a2756
// > MenuGameLayer::init @ 0x1004f9a5c
//
// 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::getBGTexture(GameManager *a1, int a2)
{
char v2; // al
int v3; // ebx
cocos2d::CCString *v4; // rax
char v6; // [rsp-8h] [rbp-10h]
v6 = v2;
v3 = a2;
if ( a2 >= 59 )
v3 = 59;
if ( v3 < 2 )
v3 = 1;
GameManager::loadBackground(a1, v3);
v4 = (cocos2d::CCString *)sub_1007AB580("game_bg_%02d_001.png", v6);
return cocos2d::CCString::getCString(v4);
}