//
// GJBigSprite::loadSpriteAsync from 0xac2344 to 0xac23d4 (144 bytes)
//
// 2 xrefs:
// > GJBigSprite::updateSpriteVisibility @ 0xac36b4
// > ??> @ 0xf61a8
//
// 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 13:01:05 +0000
//
cocos2d::CCTextureCache *__fastcall GJBigSprite::loadSpriteAsync(cocos2d::CCTextureCache *result, __int64 a2, int a3)
{
unsigned __int64 v3; // x4
__int64 v4; // x6
__int64 v5; // x3
__int64 v6; // x7
int v8; // w0
char *v9; // x1
v3 = (unsigned __int64)a3 >> 6;
v4 = *((_QWORD *)result + 40);
v5 = 1LL << (a3 & 0x3F);
v6 = *(_QWORD *)(v4 + 8 * v3);
if ( (v6 & v5) == 0 )
{
*(_QWORD *)(v4 + 8 * v3) = v6 | v5;
v8 = cocos2d::CCTextureCache::sharedTextureCache(result);
v9 = (char *)(a2 + 1);
if ( (*(_BYTE *)a2 & 1) != 0 )
v9 = *(char **)(a2 + 16);
return (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::addImageAsync(v8, v9);
}
return result;
}