//
// sub_833964 from 0x833964 to 0x8339e4 (128 bytes)
//
// 2 xrefs:
// > sub_828FD8 @ 0x829296
// > sub_83CCC8 @ 0x83ce28
//
// 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 12:02:10 +0000
//
int __fastcall sub_833964(int a1)
{
int v2; // r3
if ( *(_WORD *)a1 != 10 )
return 0;
v2 = _byteswap_ushort(*(_WORD *)(a1 + 8)) & 0xFFC0;
if ( v2 == 65152 )
return 1;
if ( v2 == 65216 )
return 2;
if ( v2 )
return 0;
if ( *(unsigned __int8 *)(a1 + 9)
| *(unsigned __int8 *)(a1 + 10)
| *(unsigned __int8 *)(a1 + 11)
| *(unsigned __int8 *)(a1 + 12)
| *(unsigned __int8 *)(a1 + 13)
| *(unsigned __int8 *)(a1 + 14)
| *(unsigned __int8 *)(a1 + 15)
| *(unsigned __int8 *)(a1 + 16)
| *(unsigned __int8 *)(a1 + 17)
| *(unsigned __int8 *)(a1 + 18)
| *(unsigned __int8 *)(a1 + 19)
| *(unsigned __int8 *)(a1 + 20)
| *(unsigned __int8 *)(a1 + 21)
| *(unsigned __int8 *)(a1 + 22) )
{
return 0;
}
if ( *(_BYTE *)(a1 + 23) == 1 )
return 3;
return 0;
}