//
// GameManager::finishedLoadingGAsync from 0x10036ce60 to 0x10036cefe (158 bytes)
//
// 2 xrefs:
// > sub_10036CDE0 @ 0x10036ce0d
// > GameManager::finishedLoadingGAsync2 @ 0x10036ce4d
//
// 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:01 +0000
//
void __fastcall GameManager::finishedLoadingGAsync(__int64 a1, unsigned 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 + 1001) = 0;
v4 = *(_QWORD *)(a1 + 560);
if ( v4 )
GJBaseGameLayer::asyncGLoaded(v4, a2, a3);
if ( *(_DWORD *)(a1 + 984) )
{
v5 = sub_10088E820("groundSquare_%02d_001.png", v11);
CString = cocos2d::CCString::getCString(v5);
v7 = sub_10088E820("groundSquare_%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 + 984) = a2;
}