//
// cocos2d::tgaLoadHeader from 0xd9286c to 0xd928cc (96 bytes)
//
// 2 xrefs:
// > cocos2d::tgaLoad @ 0xd92b04
// > ??> @ 0x8c2c0
//
// 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:19 +0000
//
__int64 __fastcall cocos2d::tgaLoadHeader(__int64 a1, unsigned __int64 a2, __int64 a3)
{
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;
*(_DWORD *)(a3 + 24) = (*(_BYTE *)(a1 + 17) & 0x20) != 0;
return 1;
}