// // sub_1003B524C from 0x1003b524c to 0x1003b52f8 (172 bytes) // // 1 xrefs: // > GJBaseGameLayer::swapBackground @ 0x100278358 // // 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_1003B524C(__int64 a1, int a2) { int v2; // w8 __int64 v3; // x20 void *v5; // x21 void *v6; // x0 char *CString; // x1 if ( a2 >= 59 ) v2 = 59; else v2 = a2; if ( v2 <= 1 ) v3 = 1; else v3 = (unsigned int)v2; if ( (*(_BYTE *)(a1 + 1000) & 1) == 0 && (_DWORD)v3 != *(_DWORD *)(a1 + 980) ) { *(_BYTE *)(a1 + 1000) = 1; v5 = cocos2d::CCTextureCache::sharedTextureCache(); v6 = sub_1003065B0("game_bg_%02d_001.png", v3); CString = (char *)cocos2d::CCString::getCString((__int64)v6); cocos2d::CCTextureCache::addImageAsync((__int64)v5, CString, a1, (unsigned __int64)sub_1003B52F8, 0, v3, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source