//
// sub_1003B5970 from 0x1003b5970 to 0x1003b5a0c (156 bytes)
//
// 2 xrefs:
// > sub_1003B58D8 @ 0x1003b591c
// > sub_1003B5924 @ 0x1003b5968
//
// 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_1003B5970(__int64 a1, __int64 a2)
{
int v2; // w19
__int64 v4; // x0
void *v5; // x0
__int64 CString; // x21
void *v7; // x0
__int64 v8; // x22
void *v9; // x0
void *v10; // x0
v2 = a2;
*(_BYTE *)(a1 + 1001) = 0;
v4 = *(_QWORD *)(a1 + 560);
if ( v4 )
GJBaseGameLayer::asyncGLoaded(v4, a2);
if ( *(_DWORD *)(a1 + 984) )
{
v5 = sub_1003065B0("groundSquare_%02d_001.png", *(_DWORD *)(a1 + 984));
CString = cocos2d::CCString::getCString((__int64)v5);
v7 = sub_1003065B0("groundSquare_%02d_2_001.png", *(_DWORD *)(a1 + 984));
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 + 984) = v2;
}