//
// cocos2d::CCTextureCache::textureForKey from 0x10013d434 to 0x10013d4e0 (172 bytes)
//
// 2 xrefs:
// > cocos2d::CCSprite::setTexture @ 0x1002d630c
// > GameManager::loadIcon @ 0x1003b4898
//
// 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 10:59:30 +0000
//
__int64 __fastcall cocos2d::CCTextureCache::textureForKey(__int64 a1, char *a2)
{
__int64 v4; // x20
__int64 v5; // x0
__int64 v6; // x20
__int64 v7; // x20
__int64 v8; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v11; // [xsp+1Fh] [xbp-21h]
v4 = *(_QWORD *)(a1 + 56);
sub_100009900(__p, a2);
v5 = cocos2d::CCDictionary::objectForKey(v4, __p);
v6 = v5;
if ( v11 < 0 )
{
operator delete(__p[0]);
if ( v6 )
return v6;
}
else if ( v5 )
{
return v6;
}
v7 = *(_QWORD *)(a1 + 56);
v8 = cocos2d::CCFileUtils::sharedFileUtils(v5);
(*(void (__fastcall **)(void **__return_ptr, __int64, char *, _QWORD))(*(_QWORD *)v8 + 48LL))(__p, v8, a2, 0);
v6 = cocos2d::CCDictionary::objectForKey(v7, __p);
if ( v11 < 0 )
operator delete(__p[0]);
return v6;
}