//
// sub_1005FA7EC from 0x1005fa7ec to 0x1005fa8b0 (196 bytes)
//
// 1 xrefs:
// > sub_1005F9900 @ 0x1005f9e88
//
// 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_1005FA7EC(char *__str, int a2, int *a3)
{
unsigned __int64 v6; // x0
__int64 v8; // x20
__int16 v9; // w2
int v10; // w4
char *__endptr; // [xsp+8h] [xbp-28h] BYREF
if ( !__str )
return 0;
v6 = strtoul(__str, &__endptr, 10);
if ( __endptr )
{
if ( *__endptr && __endptr != &__str[a2] )
return 0;
}
if ( (v6 & 0x8000000000000000LL) != 0 )
{
v9 = 187;
v10 = 823;
goto LABEL_12;
}
v8 = 1;
if ( !(unsigned int)sub_1005EEA6C(a3, v6, 1) )
{
v9 = 65;
v10 = 827;
LABEL_12:
sub_1005E0E48(13, 180, v9, (__int64)"asn1_gen.c", v10);
return 0;
}
return v8;
}