//
// sub_8438E8 from 0x8438e8 to 0x84395a (114 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 12:02:22 +0000
//
int __fastcall sub_8438E8(int *a1)
{
int v1; // r4
int result; // r0
int v3; // r3
v1 = a1[272];
result = sub_82167C(a1);
if ( result )
return 42;
if ( !v1 )
return 0;
v3 = *(_DWORD *)(v1 + 8);
if ( v3 != -100 )
{
if ( v3 == 2 )
return 69;
if ( v3 <= 2 )
{
if ( v3 == -98 )
return 7;
if ( v3 <= -98 )
{
if ( v3 != -99 )
return 42;
return 28;
}
if ( v3 )
{
if ( v3 != 1 )
return 42;
return 68;
}
}
else
{
if ( v3 == 5 )
return 72;
if ( v3 > 5 )
{
if ( v3 != 6 )
{
if ( v3 == 7 )
return 74;
return 42;
}
return 73;
}
if ( v3 == 3 )
return 70;
}
return 71;
}
return result;
}