//
// cocos2d::CCTileMapAtlas::loadTGAfile from 0xdb095c to 0xdb09f4 (152 bytes)
//
// 2 xrefs:
// > cocos2d::CCTileMapAtlas::initWithTileFile @ 0xdb0a30
// > ??> @ 0x5c260
//
// 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 13:08:39 +0000
//
__int64 __fastcall cocos2d::CCTileMapAtlas::loadTGAfile(cocos2d::CCTileMapAtlas *this, const char *a2)
{
__int64 v3; // x0
cocos2d *v4; // x0
cocos2d *v7[2]; // [xsp+40h] [xbp+40h] BYREF
cocos2d *v8; // [xsp+50h] [xbp+50h]
v3 = cocos2d::CCFileUtils::sharedFileUtils(_stack_chk_guard);
(*(void (__fastcall **)(cocos2d **__return_ptr, __int64, const char *, _QWORD))(*(_QWORD *)v3 + 48LL))(v7, v3, a2, 0);
v4 = (cocos2d *)((char *)v7 + 1);
if ( ((__int64)v7[0] & 1) != 0 )
v4 = v8;
*((_QWORD *)this + 51) = cocos2d::tgaLoad(v4, (const char *)LOBYTE(v7[0]));
if ( ((__int64)v7[0] & 1) != 0 )
operator delete(v8);
return _stack_chk_guard;
}