//
// sub_1005FF128 from 0x1005ff128 to 0x1005ff20c (228 bytes)
//
// 6 xrefs:
// > sub_10053E9B8 @ 0x10053e9e4
// > sub_1005453A8 @ 0x10054542c
// > sub_1005454EC @ 0x100545524
// > sub_1005454EC @ 0x100545548
// > sub_1005454EC @ 0x1005455d0
// > sub_100615850 @ 0x100615a08
//
// 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
//
bool __fastcall sub_1005FF128(__int64 a1, _DWORD *a2)
{
_BYTE *v3; // x0
__int64 v4; // x19
int v5; // w0
int v6; // w20
__int16 v7; // w2
int v8; // w4
if ( !a1 || !*(_QWORD *)a1 || (v3 = sub_1005F2C50(*(_QWORD *)(*(_QWORD *)a1 + 48LL)), (v4 = (__int64)v3) == 0) )
{
sub_1005E0E48(11, 128, 117, (__int64)"x509_cmp.c", 346);
return 0;
}
v5 = sub_1005E95E8((__int64)v3, a2);
v6 = v5;
switch ( v5 )
{
case 0:
v7 = 116;
v8 = 340;
goto LABEL_11;
case -1:
v7 = 115;
v8 = 343;
LABEL_11:
sub_1005E0E48(11, 128, v7, (__int64)"x509_cmp.c", v8);
break;
case -2:
v7 = 117;
v8 = 346;
goto LABEL_11;
}
sub_1005E9A8C(v4);
return v6 > 0;
}