//
// GameManager::getBGTexture from 0x1003b5a0c to 0x1003b5a58 (76 bytes)
//
// 5 xrefs:
// > LoadingLayer::init @ 0x10026e5fc
// > GJBaseGameLayer::createBackground @ 0x100278198
// > GauntletLayer::init @ 0x1002ce3ec
// > LevelAreaLayer::init @ 0x1003e2480
// > MenuGameLayer::init @ 0x100441bbc
//
// 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 11:03:56 +0000
//
__int64 __fastcall GameManager::getBGTexture(_DWORD *a1, int a2)
{
int v2; // w8
int v3; // w19
void *v4; // x0
if ( a2 >= 59 )
v2 = 59;
else
v2 = a2;
if ( v2 <= 1 )
v3 = 1;
else
v3 = v2;
sub_1003B51A8(a1, v3);
v4 = sub_1003065B0("game_bg_%02d_001.png", v3);
return cocos2d::CCString::getCString((__int64)v4);
}