//
// sub_77AD14 from 0x77ad14 to 0x77ad78 (100 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
//
int __fastcall sub_77AD14(int a1, int a2, int a3, char a4, int a5)
{
int v6; // r5
char v7; // r3
v6 = a5;
v7 = a4 & 1;
*(_DWORD *)(a1 + 16) = 0;
*(_DWORD *)(a1 + 20) = 0;
if ( a5 )
v6 = 1;
*(_DWORD *)(a1 + 4) = v6;
if ( !a3 )
v7 = 0;
*(_DWORD *)a1 = &off_AB0B78;
*(_BYTE *)(a1 + 12) = v7;
if ( !a3 )
a3 = ctype_ + 1;
*(_DWORD *)(a1 + 24) = a3;
memset((void *)(a1 + 29), 0, 0x100u);
*(_BYTE *)(a1 + 28) = 0;
memset((void *)(a1 + 285), 0, 0x100u);
*(_BYTE *)(a1 + 541) = 0;
return a1;
}