//
// sub_1005BE0AC from 0x1005be0ac to 0x1005be160 (180 bytes)
//
// 1 xrefs:
// > sub_1005BF230 @ 0x1005bf244
//
// 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_1005BE0AC(__int64 a1, __int64 a2)
{
__int64 v3; // x0
__int64 v4; // x19
__int64 v5; // x20
v3 = sub_1005BE160(a1, 0);
v4 = v3;
if ( v3 )
{
v5 = sub_1005F6170(v3, a2, &unk_100839AA0);
if ( (_DWORD)v5 )
{
sub_1005F5B94(v4, &unk_100839AA0);
}
else
{
sub_1005E0E48(16, 191, 121, "ec_asn1.c", 1006);
sub_1005F5B94(v4, &unk_100839AA0);
return 0;
}
}
else
{
sub_1005E0E48(16, 191, 120, "ec_asn1.c", 1002);
return 0;
}
return v5;
}