//
// GameManager::finishedLoadingBGAsync from 0x412f30 to 0x412f80 (80 bytes)
//
// 0 xrefs:
//
// 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:38 +0000
//
int __fastcall GameManager::finishedLoadingBGAsync(int this, cocos2d::CCObject *a2)
{
int v2; // r5
GJBaseGameLayer *v4; // r6
int v5; // r0
const char *v6; // r1
cocos2d::CCString *v7; // r0
cocos2d::CCTextureCache *CString; // r6
cocos2d::CCTextureCache *v9; // r0
v2 = this;
*(_BYTE *)(this + 788) = 0;
if ( a2 )
{
v4 = *(GJBaseGameLayer **)(this + 412);
if ( v4 )
{
v5 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
GJBaseGameLayer::asyncBGLoaded(v4, v5);
}
v6 = *(const char **)(v2 + 768);
if ( v6 )
{
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"game_bg_%02d_001.png", v6);
CString = (cocos2d::CCTextureCache *)cocos2d::CCString::getCString(v7);
v9 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(CString);
cocos2d::CCTextureCache::removeTextureForKey(v9, (const char *)CString);
}
this = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
*(_DWORD *)(v2 + 768) = this;
}
return this;
}