//
// sub_100686D94 from 0x100686d94 to 0x100686e68 (212 bytes)
//
// 2 xrefs:
// > sub_10067D2FC @ 0x10067d76c
// > sub_100691008 @ 0x100691404
//
// 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:25 +0000
//
__int64 __fastcall sub_100686D94(_BYTE *a1)
{
char v1; // w9
int v2; // w8
if ( a1[1] == 30 )
{
v1 = a1[9];
v2 = v1 & 0xC0 | ((unsigned __int8)a1[8] << 8);
if ( v2 )
{
if ( v2 == 65152 )
return 1;
if ( v2 == 65216 )
return 2;
}
else if ( !((unsigned __int8)(a1[10]
| v1
| a1[11]
| a1[12]
| a1[13]
| a1[14]
| a1[15]
| a1[16]
| a1[17]
| a1[18]
| a1[19]
| a1[20]
| a1[21])
| a1[22])
&& a1[23] == 1 )
{
return 3;
}
}
return 0;
}