//
// sub_1003B5620 from 0x1003b5620 to 0x1003b56bc (156 bytes)
//
// 2 xrefs:
// > sub_1003B5588 @ 0x1003b55cc
// > sub_1003B55D4 @ 0x1003b5618
//
// This function is hookable on this platform (idp: arm, 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:03:56 +0000
//
void __fastcall sub_1003B5620(__int64 a1, int a2)
{
__int64 v4; // x0
void *v5; // x0
__int64 CString; // x21
void *v7; // x0
__int64 v8; // x22
void *v9; // x0
void *v10; // x0
*(_BYTE *)(a1 + 1002) = 0;
v4 = *(_QWORD *)(a1 + 560);
if ( v4 )
GJBaseGameLayer::asyncMGLoaded(v4, a2);
if ( *(_DWORD *)(a1 + 988) )
{
v5 = sub_1003065B0("fg_%02d_001.png", *(_DWORD *)(a1 + 988));
CString = cocos2d::CCString::getCString((__int64)v5);
v7 = sub_1003065B0("fg_%02d_2_001.png", *(_DWORD *)(a1 + 988));
v8 = cocos2d::CCString::getCString((__int64)v7);
v9 = cocos2d::CCTextureCache::sharedTextureCache();
cocos2d::CCTextureCache::removeTextureForKey((__int64)v9, CString);
v10 = cocos2d::CCTextureCache::sharedTextureCache();
cocos2d::CCTextureCache::removeTextureForKey((__int64)v10, v8);
}
*(_DWORD *)(a1 + 988) = a2;
}