//
// sub_ABC78 from 0xabc78 to 0xabcb4 (60 bytes)
//
// 2 xrefs:
// > sub_A724C @ 0xa72c2
// > sub_A724C @ 0xa72d2
//
// 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_ABC78(int a1, _BYTE *a2, int a3)
{
int v4; // r0
int v5; // r2
if ( a3 )
{
if ( !a2[530] )
{
a2[530] = 1;
v4 = *(_DWORD *)(a1 + 128);
v5 = *(_DWORD *)(v4 + 67160) + 1;
LABEL_6:
*(_DWORD *)(v4 + 67160) = v5;
}
}
else if ( a2[530] )
{
memset(a2, 0, 0x214u);
v4 = *(_DWORD *)(a1 + 128);
v5 = *(_DWORD *)(v4 + 67160) - 1;
goto LABEL_6;
}
return 0;
}