//
// sub_100728FE4 from 0x100728fe4 to 0x100729118 (308 bytes)
//
// 4 xrefs:
// > sub_100647030 @ 0x1006470c4
// > sub_10064A8B0 @ 0x10064a9d0
// > sub_100652D7C @ 0x100652e24
// > sub_10065B140 @ 0x10065b804
//
// 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:09 +0000
//
__int64 __fastcall sub_100728FE4(__int64 a1, _BYTE *a2)
{
_BYTE *v4; // x20
int v5; // w8
unsigned int v6; // w9
int v7; // w11
unsigned int v8; // w10
int v9; // w12
int v10; // w11
__int64 v11; // x21
int v12; // w0
int v14; // [xsp+Ch] [xbp-24h] BYREF
if ( !a1 )
return 0;
v4 = a2;
if ( !a2 )
{
v4 = sub_100725258(a1);
if ( !v4 )
return 0;
}
v5 = *(_DWORD *)v4;
if ( (unsigned int)(*(_DWORD *)v4 - 811) >= 2 )
v6 = 0;
else
v6 = 80;
if ( v5 == 408 )
v7 = 88;
else
v7 = 0;
if ( v5 == 116 )
v8 = 18;
else
v8 = v7;
if ( v5 == 28 )
v9 = 68;
else
v9 = 0;
if ( v5 == 6 )
v10 = 49;
else
v10 = v9;
if ( v5 <= 115 )
v8 = v10;
if ( v5 <= 810 )
v11 = v8;
else
v11 = v6;
v12 = sub_1006B0F78(**(_QWORD **)(a1 + 8));
v14 = v12;
if ( v12 && (unsigned int)sub_1006B21E0(v12, nullptr, &v14) )
{
if ( v14 > 407 )
{
if ( v14 == 408 )
v11 = (unsigned int)v11 | 0x400;
}
else if ( v14 > 66 )
{
if ( v14 == 67 || v14 == 116 )
v11 = (unsigned int)v11 | 0x200;
}
else if ( v14 == 6 || v14 == 19 )
{
v11 = (unsigned int)v11 | 0x100;
}
}
if ( !a2 )
sub_10070FBF4((__int64)v4);
return v11;
}