//
// sub_966A2 from 0x966a2 to 0x966a8 (6 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_966A2(int *a1, int a2, _DWORD *a3, int *a4, _BYTE *a5)
{
int result; // r0
int v6; // r0
_DWORD *v7; // r0
int v8; // r0
v8 = *a1;
if ( a2 == 2 )
{
if ( *(_BYTE *)(v8 + 3377) )
v7 = dword_10A8C0;
else
v7 = (_DWORD *)(v8 + 376);
*a3 = v7;
v6 = 292;
}
else
{
if ( a2 != 1 )
return 31;
*a3 = v8 + 3380;
v6 = 128;
}
*a4 = v6;
result = 0;
if ( a5 )
*a5 = 0;
return result;
}