//
// sub_85BF4 from 0x85bf4 to 0x85c28 (52 bytes)
//
// 1 xrefs:
// > sub_853A2 @ 0x853a8
//
// 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:20 +0000
//
int __fastcall sub_85BF4(int a1, int a2, _DWORD *a3, int *a4)
{
unsigned __int16 *v4; // r1
int v5; // r0
if ( a3 )
*a3 = 0;
if ( a4 )
{
*a4 = 64;
v4 = *(unsigned __int16 **)(a1 + 380);
if ( v4 && (*v4 | 2) != 3 )
{
v5 = v4[9];
if ( !v4[9] )
return 0;
}
else if ( *(_DWORD *)(a1 + 96) == 2 )
{
v5 = 64;
}
else
{
v5 = 0;
}
*a4 = v5;
}
return 0;
}