//
// sub_100733708 from 0x100733708 to 0x1007337c0 (184 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009ecc38
//
// 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:13:13 +0000
//
__int64 __fastcall sub_100733708(__int64 a1, __int64 a2, int a3)
{
__int64 v3; // x8
__int64 result; // x0
__int64 v5; // x8
__int64 v6; // x9
unsigned int v7; // w9
v3 = *(_QWORD *)(a2 + 72);
if ( (v3 & 4) != 0 && (*(_BYTE *)(a2 + 88) & 4) == 0 )
return 0;
if ( a3 )
{
if ( (v3 & 2) != 0 && (*(_BYTE *)(a2 + 80) & 4) == 0 )
return 0;
if ( (v3 & 1) != 0 )
{
result = ((unsigned int)v3 >> 4) & 1;
}
else
{
if ( (*(_QWORD *)(a2 + 72) & 0x2040LL) == 0x2040 )
result = 3;
else
result = 4;
if ( (*(_QWORD *)(a2 + 72) & 0x2040LL) != 0x2040 && (v3 & 2) == 0 )
{
if ( (v3 & 8) == 0 )
return 0;
v5 = *(_QWORD *)(a2 + 96);
if ( (v5 & 7) == 0 )
return 0;
LABEL_21:
if ( (v5 & 2) != 0 )
return 5;
return 0;
}
}
if ( (_DWORD)result )
{
if ( (_DWORD)result != 5 )
return result;
v5 = *(_QWORD *)(a2 + 96);
goto LABEL_21;
}
return 0;
}
if ( (v3 & 8) != 0 )
{
v6 = *(_QWORD *)(a2 + 96);
if ( (v6 & 0x20) != 0 )
{
result = 1;
}
else
{
v7 = (unsigned int)v6 >> 6;
if ( (v7 & 2) == 0 )
return 0;
result = v7 & 2;
}
}
else
{
result = 1;
}
if ( (v3 & 2) != 0 && (*(_BYTE *)(a2 + 80) & 0x20) == 0 )
return 0;
return result;
}