//
// cocos2d::CCTileMapAtlas::loadTGAfile from 0x100211030 to 0x10021108d (93 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:26:58 +0000
//
void __fastcall cocos2d::CCTileMapAtlas::loadTGAfile(__int64 a1, __int64 a2)
{
__int64 v3; // rax
char *v4; // rdi
char v5; // [rsp+8h] [rbp-28h] BYREF
char v6; // [rsp+9h] [rbp-27h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
v3 = cocos2d::CCFileUtils::sharedFileUtils();
(*(void (__fastcall **)(char *, __int64, __int64, _QWORD))(*(_QWORD *)v3 + 48LL))(&v5, v3, a2, 0);
if ( (v5 & 1) != 0 )
v4 = (char *)__p;
else
v4 = &v6;
*(_QWORD *)(a1 + 408) = sub_1002A8580(v4);
if ( (v5 & 1) != 0 )
operator delete(__p);
}