//
// sub_1005F5230 from 0x1005f5230 to 0x1005f5388 (344 bytes)
//
// 1 xrefs:
// > sub_1005F1BE4 @ 0x1005f1c20
//
// 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
//
__int64 __fastcall sub_1005F5230(__int64 a1, int a2)
{
unsigned __int8 *v3; // x0
unsigned __int8 *v4; // x19
__int64 v5; // x21
__int64 v6; // x22
unsigned __int8 *v7; // x25
unsigned __int8 *i; // x24
unsigned __int8 *v9; // x8
int v10; // w8
int v11; // w8
v3 = (unsigned __int8 *)sub_1005FF6A4(a2, nullptr);
v4 = v3;
v5 = 0;
if ( !v3 )
return v5;
if ( !*v3 )
{
sub_100588C44(v3);
return 1;
}
v6 = (__int64)(v3 + 1);
v7 = v3;
for ( i = v3 + 1; ; i = v9 )
{
v10 = *i;
if ( *i )
{
if ( v10 != 47 )
goto LABEL_16;
if ( (unsigned int)i[1] - 65 > 0x19 )
goto LABEL_4;
v11 = i[2];
if ( v11 != 61 && ((unsigned int)(v11 - 65) > 0x19 || i[3] != 61) )
goto LABEL_4;
}
if ( (unsigned int)sub_1005DA72C(a1, v6, (unsigned int)((_DWORD)i - v6)) != (_DWORD)i - (_DWORD)v6 )
goto LABEL_19;
v6 = (__int64)(i + 1);
if ( *i )
break;
v10 = 0;
LABEL_16:
if ( !v10 )
{
v5 = 1;
goto LABEL_20;
}
LABEL_4:
v9 = v7 + 2;
v7 = i;
}
if ( (unsigned int)sub_1005DA72C(a1, (__int64)", ", 2) == 2 )
{
v10 = *i;
goto LABEL_16;
}
LABEL_19:
sub_1005E0E48(11, 117, 7, (__int64)"t_x509.c", 551);
v5 = 0;
LABEL_20:
sub_100588C44(v4);
return v5;
}