//
// cocos2d::tgaLoadHeader from 0x5ecb7a to 0x5ecbb0 (54 bytes)
//
// 1 xrefs:
// > cocos2d::tgaLoad @ 0x5eccca
//
// 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
//
int __fastcall cocos2d::tgaLoadHeader(int a1, unsigned int a2, int a3)
{
int result; // r0
char v4; // r3
if ( a2 <= 2 )
return 0;
*(_BYTE *)(a3 + 4) = *(_BYTE *)(a1 + 2);
if ( a2 <= 0x10 )
return 0;
*(_WORD *)(a3 + 6) = *(_WORD *)(a1 + 12);
*(_WORD *)(a3 + 8) = *(_WORD *)(a1 + 14);
*(_BYTE *)(a3 + 5) = *(_BYTE *)(a1 + 16);
if ( a2 == 17 )
return 0;
v4 = *(_BYTE *)(a1 + 17);
result = 1;
*(_DWORD *)(a3 + 16) = (v4 & 0x20) != 0;
return result;
}