//
// GameManager::finishedLoadingBGAsync from 0x14027ddc0 to 0x14027de61 (161 bytes)
//
// 4 xrefs:
// > ArtTriggerGameObject::triggerObject @ 0x1406633af
// > ??> @ 0x1408addfc
// > ??> @ 0x1408ade0c
// > ??> @ 0x14091cec8
//
// 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 11:28:58 +0000
//
void __fastcall GameManager::finishedLoadingBGAsync(__int64 a1, __int64 a2)
{
unsigned int v4; // eax
__int64 v5; // rbx
int v6; // edx
cocos2d::CCString *v7; // rax
const char *CString; // rbx
cocos2d::CCTextureCache *v9; // rax
*(_BYTE *)(a1 + 1032) = 0;
if ( a2 )
{
if ( *(_QWORD *)(a1 + 576) )
{
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v5 = *(_QWORD *)(a1 + 576);
GJBaseGameLayer::createBackground(v5, v4);
GJBaseGameLayer::updateLevelColors(v5);
}
v6 = *(_DWORD *)(a1 + 1012);
if ( v6 )
{
v7 = cocos2d::CCString::createWithFormat("game_bg_%02d_001.png", v6);
CString = cocos2d::CCString::getCString(v7);
v9 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache();
cocos2d::CCTextureCache::removeTextureForKey(v9, CString);
}
*(_DWORD *)(a1 + 1012) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
}
}