//
// sub_966A2 from 0x966a2 to 0x966a8 (6 bytes)
//
// 0 xrefs:
//
// 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 11:41:28 +0000
//
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;
}