//
// GameManager::finishedLoadingGAsync from 0x14027e260 to 0x14027e320 (192 bytes)
//
// 5 xrefs:
// > GameManager::finishedLoadingGAsync1 @ 0x14027e20c
// > GameManager::finishedLoadingGAsync2 @ 0x14027e24c
// > ??> @ 0x1408ade8c
// > ??> @ 0x1408ade9c
// > ??> @ 0x14091cf88
//
// 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:59 +0000
//
void __fastcall GameManager::finishedLoadingGAsync(__int64 a1, __int64 a2)
{
__int64 v2; // rbx
int v3; // ebp
int v5; // edx
cocos2d::CCString *v6; // rax
const char *CString; // rdi
cocos2d::CCString *v8; // rax
const char *v9; // rbx
cocos2d::CCTextureCache *v10; // rax
cocos2d::CCTextureCache *v11; // rax
v2 = *(_QWORD *)(a1 + 576);
v3 = a2;
*(_BYTE *)(a1 + 1033) = 0;
if ( v2 )
{
GJBaseGameLayer::createGroundLayer(v2, a2, 0);
GJBaseGameLayer::updateLevelColors(v2);
}
v5 = *(_DWORD *)(a1 + 1016);
if ( v5 )
{
v6 = cocos2d::CCString::createWithFormat("groundSquare_%02d_001.png", v5);
CString = cocos2d::CCString::getCString(v6);
v8 = cocos2d::CCString::createWithFormat("groundSquare_%02d_2_001.png", *(_DWORD *)(a1 + 1016));
v9 = cocos2d::CCString::getCString(v8);
v10 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache();
cocos2d::CCTextureCache::removeTextureForKey(v10, CString);
v11 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache();
cocos2d::CCTextureCache::removeTextureForKey(v11, v9);
}
*(_DWORD *)(a1 + 1016) = v3;
}