//
// cocos2d::tgaLoadHeader from 0x7f7bc2 to 0x7f7bf8 (54 bytes)
//
// 1 xrefs:
// > cocos2d::tgaLoad @ 0x7f7d12
//
// 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:11 +0000
//
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;
}