//
// sub_10062CF48 from 0x10062cf48 to 0x10062d068 (288 bytes)
//
// 1 xrefs:
// > sub_10062CB98 @ 0x10062cd00
//
// 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_10062CF48(__int64 a1, char *__s1, char *a3)
{
size_t v6; // x0
__darwin_ct_rune_t v7; // w0
int v8; // w20
__darwin_ct_rune_t v9; // w0
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 ( (unsigned int)(v7 - 65) < 3 )
{
v8 = v7 + 771;
LABEL_17:
*(_DWORD *)sub_1005EC8F8(a1) = v8;
return 1;
}
return 0;
}
LABEL_12:
v10 = sub_10058B8EC(a3);
v8 = v10;
if ( !v10 )
return 0;
v11 = (int *)&unk_100869FB0;
do
{
v13 = *v11;
v11 += 8;
v12 = v13;
}
while ( v13 && v12 != v10 );
if ( v12 )
goto LABEL_17;
sub_100624720(127, 112, (__int64)"gost_pmeth.c", 177);
return 0;
}
if ( v6 != 1 )
goto LABEL_12;
v9 = __toupper((unsigned __int8)*a3);
if ( (unsigned int)(v9 - 65) < 4 )
{
v8 = v9 + 767;
goto LABEL_17;
}
return 0;
}