//
// cocos2d::CCTextureCache::reloadTexture from 0x8023f0 to 0x80249e (174 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:21 +0000
//
int __fastcall cocos2d::CCTextureCache::reloadTexture(cocos2d::CCTextureCache *this, const char *a2, char *a3, int a4)
{
int v6; // r0
int v7; // r3
int v8; // r5
cocos2d::CCTexture2D *v9; // r7
char *v10; // r1
cocos2d::CCImage *v11; // r5
char *v12; // r1
cocos2d::CCTextureCache *v14; // [sp+0h] [bp-10h] BYREF
const char *v15; // [sp+4h] [bp-Ch]
char *v16; // [sp+8h] [bp-8h]
int v17; // [sp+Ch] [bp-4h]
v14 = this;
v15 = a2;
v16 = a3;
v17 = a4;
v6 = cocos2d::CCFileUtils::sharedFileUtils(this);
(*(void (__fastcall **)(cocos2d::CCTextureCache **, int, const char *, _DWORD))(*(_DWORD *)v6 + 24))(&v14, v6, a2, 0);
if ( ((unsigned __int8)v14 & 1) != 0 )
v7 = (int)v15;
else
v7 = (int)(unsigned __int8)v14 >> 1;
if ( !v7 )
{
LABEL_5:
v8 = 0;
goto LABEL_16;
}
v9 = (cocos2d::CCTexture2D *)cocos2d::CCDictionary::objectForKey(*((_DWORD *)this + 13), (int)&v14);
if ( v9 )
{
v11 = (cocos2d::CCImage *)operator new(0x48u);
cocos2d::CCImage::CCImage(v11);
if ( ((unsigned __int8)v14 & 1) != 0 )
v12 = v16;
else
v12 = (char *)&v14 + 1;
if ( cocos2d::CCImage::initWithImageFile(v11, (int)v12, 1) )
{
v8 = cocos2d::CCTexture2D::initWithImage(v9, v11);
goto LABEL_16;
}
goto LABEL_5;
}
if ( ((unsigned __int8)v14 & 1) != 0 )
v10 = v16;
else
v10 = (char *)&v14 + 1;
v8 = cocos2d::CCTextureCache::addImage(this, v10, 0) != 0;
LABEL_16:
std::string::~string((int)&v14);
return v8;
}