//
// GameManager::getBGTexture from 0x10036cf00 to 0x10036cf43 (67 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::createBackground @ 0x1000f06b3
// > LevelAreaLayer::init @ 0x100264096
// > GauntletLayer::init @ 0x10037da7a
// > LoadingLayer::init @ 0x10038bd66
// > MenuGameLayer::init @ 0x1004f88ec
//
// This function is hookable on this platform (idp: pc, 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:29:01 +0000
//
__int64 __fastcall GameManager::getBGTexture(__int64 a1, int a2)
{
char v2; // al
int v3; // ebx
__int64 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 = sub_10088E820("game_bg_%02d_001.png", v6);
return cocos2d::CCString::getCString(v4);
}