//
// GameManager::finishedLoadingBGAsync from 0x10036c820 to 0x10036c8a8 (136 bytes)
//
// 1 xrefs:
// > GameManager::loadBackgroundAsync @ 0x10036c7f2
//
// 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
//
__int64 __fastcall GameManager::finishedLoadingBGAsync(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v4; // r15
unsigned int v5; // eax
__int64 v6; // rdx
__int64 v7; // rdi
__int64 CString; // r15
__int64 v9; // rax
char v10; // [rsp-28h] [rbp-28h]
*(_BYTE *)(a1 + 1000) = 0;
if ( a2 )
{
v10 = result;
v4 = *(_QWORD *)(a1 + 560);
if ( v4 )
{
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
GJBaseGameLayer::asyncBGLoaded(v4, v5, v6);
}
if ( *(_DWORD *)(a1 + 980) )
{
v7 = sub_10088E820("game_bg_%02d_001.png", v10);
CString = cocos2d::CCString::getCString(v7);
v9 = cocos2d::CCTextureCache::sharedTextureCache(v7);
cocos2d::CCTextureCache::removeTextureForKey(v9, CString);
}
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
*(_DWORD *)(a1 + 980) = result;
}
return result;
}