//
// sub_1005F2B68 from 0x1005f2b68 to 0x1005f2c50 (232 bytes)
//
// 2 xrefs:
// > sub_100624A7C @ 0x100624ca0
// > sub_10062790C @ 0x100627b28
//
// 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_1005F2B68(__int64 *a1, __int64 a2)
{
__int64 v4; // x0
__int64 v5; // x19
__int64 v6; // x8
unsigned int (__fastcall *v7)(__int64, __int64); // x8
__int16 v9; // w2
int v10; // w4
if ( !a1 )
return 0;
v4 = sub_1005F55E0(&unk_10083E2B8);
v5 = v4;
if ( !v4 )
return 0;
v6 = *(_QWORD *)(a2 + 16);
if ( !v6 )
{
v9 = 111;
v10 = 111;
LABEL_12:
sub_1005E0E48(11, 120, v9, (__int64)"x_pubkey.c", v10);
sub_1005F5B94(v5, &unk_10083E2B8);
return 0;
}
v7 = *(unsigned int (__fastcall **)(__int64, __int64))(v6 + 40);
if ( !v7 )
{
v9 = 124;
v10 = 107;
goto LABEL_12;
}
if ( !v7(v4, a2) )
{
v9 = 126;
v10 = 103;
goto LABEL_12;
}
if ( *a1 )
sub_1005F5B94(*a1, &unk_10083E2B8);
*a1 = v5;
return 1;
}