//
// sub_100697618 from 0x100697618 to 0x1006976d8 (192 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009b1af8
//
// 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 11:11:35 +0000
//
__int64 __fastcall sub_100697618(__int64 *a1)
{
__int64 v1; // x19
__int64 result; // x0
int v3; // w8
v1 = a1[167];
if ( (unsigned int)sub_100670304(a1) )
return 42;
if ( !v1 )
return 0;
v3 = *(_DWORD *)(v1 + 8);
if ( v3 < 0 )
{
if ( v3 != -100 )
{
if ( v3 == -99 )
return 28;
if ( v3 == -98 )
return 7;
return 42;
}
return 0;
}
result = 68;
switch ( v3 )
{
case 0:
case 4:
result = 71;
break;
case 1:
return result;
case 2:
result = 69;
break;
case 3:
result = 70;
break;
case 5:
result = 72;
break;
case 6:
result = 73;
break;
case 7:
result = 74;
break;
default:
return 42;
}
return result;
}