//
// cocos2d::CCTileMapAtlas::loadTGAfile from 0x10022cc00 to 0x10022cc5d (93 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCTileMapAtlas::loadTGAfile(cocos2d::CCTileMapAtlas *a1, const char *a2)
{
cocos2d::CCFileUtils *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 *, cocos2d::CCFileUtils *, const char *, _QWORD))v3->createCCArrayWithContentsOfFile)(
&v5,
v3,
a2,
0);
if ( (v5 & 1) != 0 )
v4 = (char *)__p;
else
v4 = &v6;
a1->m_pTGAInfo = (cocos2d::sImageTGA *)sub_1002BA5A0(v4);
if ( (v5 & 1) != 0 )
operator delete(__p);
}