//
// GameManager::finishedLoadingMGAsync from 0x10036cb10 to 0x10036cbae (158 bytes)
//
// 2 xrefs:
// > sub_10036CA90 @ 0x10036cabd
// > GameManager::finishedLoadingMGAsync2 @ 0x10036cafd
//
// 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:00 +0000
//
void __fastcall GameManager::finishedLoadingMGAsync(__int64 a1, int a2, double a3)
{
__int64 v4; // rdi
__int64 v5; // rax
__int64 CString; // r15
__int64 v7; // rdi
__int64 v8; // r12
__int64 v9; // rdi
__int64 v10; // rax
char v11; // [rsp+0h] [rbp-20h]
char v12; // [rsp+0h] [rbp-20h]
*(_BYTE *)(a1 + 1002) = 0;
v4 = *(_QWORD *)(a1 + 560);
if ( v4 )
GJBaseGameLayer::asyncMGLoaded(v4, a2, a3);
if ( *(_DWORD *)(a1 + 988) )
{
v5 = sub_10088E820("fg_%02d_001.png", v11);
CString = cocos2d::CCString::getCString(v5);
v7 = sub_10088E820("fg_%02d_2_001.png", v12);
v8 = cocos2d::CCString::getCString(v7);
v9 = cocos2d::CCTextureCache::sharedTextureCache(v7);
cocos2d::CCTextureCache::removeTextureForKey(v9, CString);
v10 = cocos2d::CCTextureCache::sharedTextureCache(v9);
cocos2d::CCTextureCache::removeTextureForKey(v10, v8);
}
*(_DWORD *)(a1 + 988) = a2;
}