//
// GJBigSprite::loadSpriteAsync from 0x97f3ac to 0x97f42c (128 bytes)
//
// 2 xrefs:
// > GJBigSprite::updateSpriteVisibility @ 0x97facc
// > ??> @ 0xbc1a8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJBigSprite::loadSpriteAsync(__int64 a1, const char **a2, int a3)
{
unsigned __int64 v3; // x4
__int64 v4; // x6
__int64 v5; // x7
__int64 v6; // x3
cocos2d::CCTextureCache *v9; // x0
cocos2d::SEL_MenuHandler v11; // 0:x3.16
v3 = (unsigned __int64)a3 >> 6;
v4 = *(_QWORD *)(a1 + 320);
v5 = *(_QWORD *)(v4 + 8 * v3);
v6 = 1LL << (a3 & 0x3F);
if ( (v5 & v6) == 0 )
{
*(_QWORD *)(v4 + 8 * v3) = v5 | v6;
v9 = cocos2d::CCTextureCache::sharedTextureCache();
v11.adj = 0;
v11.ptr = (void (__cdecl *)(cocos2d::CCObject *))GJBigSprite::finishedLoadingSpriteAsync;
cocos2d::CCTextureCache::addImageAsync(v9, *a2, (cocos2d::CCObject *)a1, v11, a3, kCCTexture2DPixelFormat_RGB888);
}
}