//
// sub_1007391C0 from 0x1007391c0 to 0x1007392a4 (228 bytes)
//
// 1 xrefs:
// > sub_1006A90A0 @ 0x1006a90bc
//
// 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:16 +0000
//
__int64 __fastcall sub_1007391C0(void *a1, char *a2, char a3)
{
__int64 v6; // x19
void *v7; // x21
__int64 v8; // x22
v6 = sub_1007377BC(0);
if ( v6 )
{
v7 = a1;
if ( !a1 )
{
v7 = (void *)sub_1007392A4();
if ( !v7 )
{
v8 = 0;
v7 = nullptr;
LABEL_14:
sub_1006AEDAC(v7);
goto LABEL_15;
}
}
if ( (int)sub_100737814(v6) <= 0 )
{
if ( (a3 & 0x10) != 0 )
{
if ( (sub_1007075D4() & 0xFFF) == 0x72 )
{
sub_1007072C0();
v8 = 1;
}
else
{
v8 = 0;
}
}
else
{
v8 = 0;
}
}
else
{
v8 = sub_100738CEC(v6, a2, a3);
}
}
else
{
v7 = nullptr;
v8 = 0;
}
if ( !a1 )
goto LABEL_14;
LABEL_15:
sub_100737800(v6);
return v8;
}