//
// GameManager::finishedLoadingBGAsync from 0x140182950 to 0x1401829f1 (161 bytes)
//
// 4 xrefs:
// > ArtTriggerGameObject::triggerObject @ 0x1404c2779
// > ??> @ 0x140677ac0
// > ??> @ 0x140677ad0
// > ??> @ 0x1406cb490
//
// 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
//
void GameManager::finishedLoadingBGAsync(GameManager *a1, cocos2d::CCObject *a2)
{
int v4; // eax
GJBaseGameLayer *m_gameLayer; // rbx
int m_loadedBgID; // edx
cocos2d::CCString *v7; // rax
const char *CString; // rbx
cocos2d::CCTextureCache *v9; // rax
a1->m_loadingBG = 0;
if ( a2 )
{
if ( a1->m_gameLayer )
{
v4 = a2->getTag(a2);
m_gameLayer = a1->m_gameLayer;
GJBaseGameLayer::createBackground(m_gameLayer, v4);
GJBaseGameLayer::updateLevelColors(m_gameLayer);
}
m_loadedBgID = a1->m_loadedBgID;
if ( m_loadedBgID )
{
v7 = cocos2d::CCString::createWithFormat("game_bg_%02d_001.png", m_loadedBgID);
CString = cocos2d::CCString::getCString(v7);
v9 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache();
cocos2d::CCTextureCache::removeTextureForKey(v9, CString);
}
a1->m_loadedBgID = a2->getTag(a2);
}
}