//
// sub_10072AC3C from 0x10072ac3c to 0x10072ade8 (428 bytes)
//
// 3 xrefs:
// > sub_10072AB5C @ 0x10072abd0
// > sub_10072AF94 @ 0x10072b070
// > sub_10072B224 @ 0x10072b454
//
// 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:10 +0000
//
__int64 __fastcall sub_10072AC3C(__int64 a1, __int64 a2, int a3)
{
void *v6; // x0
_QWORD *v7; // x0
_DWORD *v8; // x19
__int64 v9; // x22
__int64 v10; // x21
__int16 v11; // w2
int v12; // w4
__int64 v13; // x0
__int16 v14; // w2
int v15; // w4
__int16 v16; // w0
if ( !a2 )
return 1;
v6 = sub_100701918();
v7 = sub_1007005EC((__int64)v6);
v8 = v7;
if ( !v7 || sub_100700CE0(v7, 108, 3, a2) <= 0 )
{
v11 = 2;
v12 = 137;
goto LABEL_8;
}
if ( a3 != 2 )
{
if ( a3 != 1 )
{
v14 = 100;
v15 = 173;
LABEL_19:
sub_100706FB0(11, 111, v14, (__int64)"by_file.c", v15);
v10 = 0;
LABEL_24:
sub_1007006BC(v8);
return v10;
}
v13 = sub_1007249E4((__int64)v8, 0, 0, 0);
v10 = 0;
while ( 1 )
{
v9 = v13;
if ( !v13 )
break;
if ( !(unsigned int)sub_1007296AC(*(_QWORD *)(a1 + 24), v13) )
{
v10 = 0;
goto LABEL_16;
}
v10 = (unsigned int)(v10 + 1);
sub_100719E08(v9);
v13 = sub_1007249E4((__int64)v8, 0, 0, 0);
}
v16 = sub_1007075D4();
if ( (int)v10 >= 1 && (v16 & 0xFFF) == 0x6C )
{
sub_1007072C0();
goto LABEL_23;
}
v11 = 9;
v12 = 150;
LABEL_8:
sub_100706FB0(11, 111, v11, (__int64)"by_file.c", v12);
v10 = 0;
goto LABEL_23;
}
v9 = sub_10072A2BC((__int64)v8, 0);
if ( !v9 )
{
v14 = 13;
v15 = 165;
goto LABEL_19;
}
v10 = sub_1007296AC(*(_QWORD *)(a1 + 24), v9);
LABEL_16:
sub_100719E08(v9);
LABEL_23:
if ( v8 )
goto LABEL_24;
return v10;
}