//
// sub_10062D2BC from 0x10062d2bc to 0x10062d418 (348 bytes)
//
// 1 xrefs:
// > sub_10062CB98 @ 0x10062cc4c
//
// 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_10062D2BC(__int64 a1, char *__s1, char *a3)
{
__int64 result; // x0
size_t v6; // x0
__darwin_ct_rune_t v7; // w0
int v8; // w20
__darwin_ct_rune_t v9; // w8
int v10; // w0
int *v11; // x8
int v12; // w9
int v13; // t1
if ( strcmp(__s1, "paramset") )
return 4294967294LL;
if ( !a3 )
return 0;
v6 = strlen(a3);
if ( v6 == 2 )
{
if ( __toupper((unsigned __int8)*a3) == 88 )
{
v7 = __toupper((unsigned __int8)a3[1]);
if ( v7 == 65 )
{
v8 = 843;
}
else
{
if ( v7 != 66 )
return 0;
v8 = 844;
}
goto LABEL_29;
}
goto LABEL_13;
}
if ( v6 != 1 )
{
LABEL_13:
v10 = sub_10058B8EC(a3);
v8 = v10;
if ( !v10 )
return 0;
v11 = (int *)&unk_10086A0B0;
do
{
v13 = *v11;
v11 += 14;
v12 = v13;
}
while ( v13 && v12 != v10 );
if ( !v12 )
{
sub_100624720(126, 112, (__int64)"gost_pmeth.c", 238);
return 0;
}
goto LABEL_29;
}
v9 = __toupper((unsigned __int8)*a3);
result = 0;
if ( v9 > 65 )
{
if ( v9 == 67 )
{
v8 = 842;
}
else
{
if ( v9 != 66 )
return result;
v8 = 841;
}
}
else if ( v9 == 48 )
{
v8 = 839;
}
else
{
if ( v9 != 65 )
return result;
v8 = 840;
}
LABEL_29:
*(_DWORD *)sub_1005EC8F8(a1) = v8;
return 1;
}