//
// GJBigSprite::loadSpriteAsync from 0x100254340 to 0x1002543bd (125 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:27:25 +0000
//
__int64 __fastcall GJBigSprite::loadSpriteAsync(__int64 a1, __int64 a2, unsigned int a3)
{
unsigned __int64 v5; // rcx
__int64 result; // rax
__int64 v7; // rdx
unsigned __int64 v8; // rdi
__int64 v9; // r8
__int64 v10; // rax
__int64 v11; // rsi
v5 = (int)a3;
result = *(_QWORD *)(a1 + 320);
v7 = 1LL << a3;
v8 = v5 >> 6;
v9 = *(_QWORD *)(result + 8 * (v5 >> 6));
if ( !_bittest64(&v9, v5) )
{
*(_QWORD *)(result + 8 * v8) = v7 | v9;
v10 = cocos2d::CCTextureCache::sharedTextureCache(v8);
if ( (*(_BYTE *)a2 & 1) != 0 )
v11 = *(_QWORD *)(a2 + 16);
else
v11 = a2 + 1;
return cocos2d::CCTextureCache::addImageAsync(v10, v11, a1, GJBigSprite::finishedLoadingSpriteAsync, 0, a3, 1);
}
return result;
}