//
// sub_10072D0E0 from 0x10072d0e0 to 0x10072d22c (332 bytes)
//
// 5 xrefs:
// > sub_10071FA68 @ 0x10071fd98
// > sub_10072D478 @ 0x10072d494
// > sub_1007308B0 @ 0x1007308b4
// > sub_10073091C @ 0x100730968
// > sub_100730D9C @ 0x100731020
//
// 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:11 +0000
//
_DWORD *__fastcall sub_10072D0E0(__int64 a1, unsigned __int8 *a2)
{
unsigned __int8 *v2; // x19
int v3; // w21
_BOOL4 v4; // w20
int v5; // w0
__int16 v6; // w2
int v7; // w4
_DWORD *v8; // x19
void *v10; // [xsp+8h] [xbp-28h] BYREF
v2 = a2;
v10 = nullptr;
if ( !a2 )
{
v6 = 109;
v7 = 182;
goto LABEL_12;
}
v10 = sub_1006D0E9C();
v3 = *v2;
v4 = v3 == 45;
if ( v3 == 45 )
++v2;
if ( *v2 == 48 && (v2[1] | 0x20) == 0x78 )
{
v2 += 2;
v5 = sub_1006D3910((__int64 *)&v10, v2);
}
else
{
v5 = sub_1006D3B20((__int64 *)&v10, v2);
}
if ( !v5 || v2[v5] )
{
sub_1006D0E38(v10);
v6 = 100;
v7 = 205;
LABEL_12:
sub_100706FB0(34, 108, v6, (__int64)"v3_utl.c", v7);
return nullptr;
}
if ( v3 == 45 )
{
if ( !*((_DWORD *)v10 + 2) )
v4 = 0;
}
else
{
v4 = 0;
}
v8 = sub_100716208((__int64)v10, nullptr);
sub_1006D0E38(v10);
if ( !v8 )
{
v6 = 101;
v7 = 216;
goto LABEL_12;
}
if ( v4 )
v8[1] |= 0x100u;
return v8;
}