//
// sub_10060E428 from 0x10060e428 to 0x10060e5c8 (416 bytes)
//
// 1 xrefs:
// > ??> @ 0x100841af0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
_QWORD *__fastcall sub_10060E428(__int64 a1, __int64 a2, unsigned int *a3)
{
_QWORD *v4; // x19
int v5; // w22
_QWORD *v6; // x21
__int64 v7; // x25
const char *v8; // x26
__int64 v9; // x0
_QWORD *v10; // x1
__int64 v11; // x1
__int64 v12; // x2
__int64 v13; // x3
__int64 v14; // x4
__int64 v15; // x5
__int64 v16; // x6
__int64 v17; // x7
v4 = (_QWORD *)sub_1005F55E0((__int64)&unk_100841A70);
if ( !v4 )
{
sub_1005E0E48(34, 146, 65, (__int64)"v3_pcons.c", 112);
return nullptr;
}
if ( (int)sub_1005DEA4C(a3) <= 0 )
{
v6 = v4 + 1;
LABEL_13:
if ( !*v6 && !*v4 )
{
sub_1005E0E48(34, 146, 151, (__int64)"v3_pcons.c", 131);
goto LABEL_17;
}
return v4;
}
v5 = 0;
v6 = v4 + 1;
while ( 1 )
{
v7 = sub_1005DEA60((__int64)a3, v5);
v8 = *(const char **)(v7 + 8);
if ( !strcmp(v8, "requireExplicitPolicy") )
{
v9 = v7;
v10 = v4;
goto LABEL_8;
}
if ( strcmp(v8, "inhibitPolicyMapping") )
break;
v9 = v7;
v10 = v4 + 1;
LABEL_8:
if ( !(unsigned int)sub_100607310(v9, v10) )
goto LABEL_17;
if ( ++v5 >= (int)sub_1005DEA4C(a3) )
goto LABEL_13;
}
sub_1005E0E48(34, 146, 106, (__int64)"v3_pcons.c", 124);
sub_1005E19F0(6, v11, v12, v13, v14, v15, v16, v17, (char)"section:");
LABEL_17:
sub_1005F5B94((__int64)v4, (__int64)&unk_100841A70);
return nullptr;
}