//
// cocos2d::CCTileMapAtlas::loadTGAfile from 0x8075d0 to 0x807628 (88 bytes)
//
// 1 xrefs:
// > cocos2d::CCTileMapAtlas::initWithTileFile @ 0x807644
//
// 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:26 +0000
//
void __fastcall cocos2d::CCTileMapAtlas::loadTGAfile(cocos2d::CCTileMapAtlas *this, const char *a2)
{
int v4; // r0
const char *v5; // r1
cocos2d *v6; // r0
_DWORD *v7; // r0
bool v8; // nf
char v9; // [sp+0h] [bp-14h] BYREF
char v10; // [sp+1h] [bp-13h] BYREF
cocos2d *v11; // [sp+8h] [bp-Ch]
v4 = cocos2d::CCFileUtils::sharedFileUtils(this);
(*(void (__fastcall **)(char *, int, const char *, _DWORD))(*(_DWORD *)v4 + 24))(&v9, v4, a2, 0);
if ( (v9 & 1) != 0 )
v6 = v11;
else
v6 = (cocos2d *)&v10;
v7 = cocos2d::tgaLoad(v6, v5);
v8 = (v9 & 1) != 0;
*((_DWORD *)this + 83) = v7;
if ( v8 )
operator delete(v11);
}