//
// sub_10073473C from 0x10073473c to 0x100734914 (472 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009c5250
//
// 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:14 +0000
//
__int64 __fastcall sub_10073473C(__int64 a1, int a2, unsigned int *a3)
{
__int64 v6; // x19
int v7; // w23
__int64 v8; // x27
__int64 v9; // x28
__int64 v10; // x8
void ***v11; // x28
_QWORD *v12; // x0
__int64 v13; // x27
void **v14; // x0
_BYTE v16[8]; // [xsp+8h] [xbp-68h] BYREF
__int64 v17; // [xsp+10h] [xbp-60h]
__int64 v18; // [xsp+18h] [xbp-58h]
v6 = sub_10071B748((__int64)&unk_1009C51D0);
if ( v6 )
{
if ( (int)sub_100704BB4(a3) < 1 )
return v6;
v7 = 0;
while ( 1 )
{
v8 = sub_100704BC8((__int64)a3, v7);
v9 = *(_QWORD *)(v8 + 8);
if ( !strncmp((const char *)v9, "permitted", 9u) && *(_BYTE *)(v9 + 9) )
{
v10 = v9 + 10;
v11 = (void ***)v6;
}
else
{
if ( strncmp((const char *)v9, "excluded", 8u) || !*(_BYTE *)(v9 + 8) )
{
sub_100706FB0(34, 147, 143, (__int64)"v3_ncons.c", 130);
v13 = 0;
goto LABEL_21;
}
v10 = v9 + 9;
v11 = (void ***)(v6 + 8);
}
v17 = v10;
v18 = *(_QWORD *)(v8 + 16);
v12 = (_QWORD *)sub_10071B748((__int64)&unk_1009C52E8);
v13 = (__int64)v12;
if ( !v12 )
break;
if ( !sub_10072FB64(*v12, a1, a2, (__int64)v16) )
goto LABEL_21;
v14 = *v11;
if ( !*v11 )
{
v14 = (void **)sub_10070460C();
*v11 = v14;
if ( !v14 )
goto LABEL_20;
}
if ( !(unsigned int)sub_100704974(v14, v13) )
goto LABEL_20;
if ( ++v7 >= (int)sub_100704BB4(a3) )
return v6;
}
v13 = 0;
}
else
{
v13 = 0;
}
LABEL_20:
sub_100706FB0(34, 147, 65, (__int64)"v3_ncons.c", 149);
LABEL_21:
if ( v6 )
sub_10071BCFC(v6, (__int64)&unk_1009C51D0);
if ( v13 )
sub_10071BCFC(v13, (__int64)&unk_1009C52E8);
return 0;
}