//
// sub_E17318 from 0xe17318 to 0xe17400 (232 bytes)
//
// 1 xrefs:
// > ??> @ 0x13fc2c8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:09:42 +0000
//
__int64 __fastcall sub_E17318(__int64 *a1)
{
__int64 v1; // x19
int v2; // w1
__int64 result; // x0
int v4; // w2
v1 = a1[195];
v2 = sub_DE8F40(a1);
result = 42;
if ( !v2 )
{
if ( !v1 )
return 0;
v4 = *(_DWORD *)(v1 + 8);
if ( v4 == -100 )
return 0;
if ( v4 == 2 )
return 69;
if ( v4 <= 2 )
{
if ( v4 == -98 )
return 7;
if ( v4 <= -98 )
{
result = 28;
if ( v4 == -99 )
return result;
return 42;
}
if ( v4 )
{
result = 68;
if ( v4 == 1 )
return result;
return 42;
}
}
else
{
if ( v4 == 5 )
return 72;
if ( v4 > 5 )
{
result = 73;
if ( v4 == 6 )
return result;
result = 74;
if ( v4 == 7 )
return result;
return 42;
}
result = 70;
if ( v4 == 3 )
return result;
}
return 71;
}
return result;
}