//
// sub_1005BD7E0 from 0x1005bd7e0 to 0x1005bd8d4 (244 bytes)
//
// 1 xrefs:
// > sub_1005BF270 @ 0x1005bf2bc
//
// 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_1005BD7E0(char **a1, __int64 *a2, __int64 a3)
{
__int64 v5; // x0
__int64 v6; // x20
__int64 v7; // x22
__int64 v8; // x0
__int64 v10; // [xsp+8h] [xbp-28h] BYREF
v10 = *a2;
v5 = sub_1005F6E34(0, &v10, a3, &unk_100839AA0);
v6 = v5;
if ( !v5 )
{
sub_1005E0E48(16, 145, 117, "ec_asn1.c", 976);
v8 = 0;
LABEL_10:
sub_1005F5B94(v8, &unk_100839AA0);
return 0;
}
v7 = sub_1005BD8D4(v5);
if ( !v7 )
{
sub_1005E0E48(16, 145, 127, "ec_asn1.c", 982);
v8 = v6;
goto LABEL_10;
}
if ( a1 )
{
if ( *a1 )
sub_1005B7278(*a1);
*a1 = (char *)v7;
}
sub_1005F5B94(v6, &unk_100839AA0);
*a2 = v10;
return v7;
}