//
// sub_100733120 from 0x100733120 to 0x1007331d8 (184 bytes)
//
// 1 xrefs:
// > sub_100725BF8 @ 0x1007263ec
//
// 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_100733120(__int64 a1)
{
__int64 v2; // x8
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 72);
if ( (v2 & 0x100) == 0 )
{
sub_1006AE2F8(9, 3, (__int64)"v3_purp.c", 581);
sub_100732A50(a1);
sub_1006AE2F8(10, 3, (__int64)"v3_purp.c", 583);
v2 = *(_QWORD *)(a1 + 72);
}
if ( (v2 & 2) != 0 && (*(_BYTE *)(a1 + 80) & 4) == 0 )
return 0;
if ( (v2 & 1) != 0 )
return ((unsigned int)v2 >> 4) & 1;
if ( (v2 & 0x2040) == 0x2040 )
result = 3;
else
result = 4;
if ( (v2 & 0x2040) != 0x2040 && (v2 & 2) == 0 )
{
if ( (v2 & 8) != 0 && (*(_BYTE *)(a1 + 96) & 7) != 0 )
return 5;
return 0;
}
return result;
}