//
// sub_10062B178 from 0x10062b178 to 0x10062b228 (176 bytes)
//
// 5 xrefs:
// > sub_100624A7C @ 0x100624adc
// > sub_100624DDC @ 0x100624ef8
// > sub_10062790C @ 0x100627958
// > sub_100627C90 @ 0x100627da4
// > sub_10062A5F4 @ 0x10062a6a4
//
// 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
//
_QWORD *__fastcall sub_10062B178(__int64 a1)
{
int v1; // w8
_QWORD *result; // x0
__int64 v3; // x9
__int16 v4; // w1
int v5; // w3
char *v6; // x8
if ( a1 )
{
v1 = sub_10058AE10(a1);
}
else
{
v6 = (char *)sub_10062B3EC(0);
result = &unk_100869E80;
if ( !v6 || !*v6 )
return result;
v1 = sub_10058B8EC(v6);
if ( !v1 )
{
v4 = 107;
v5 = 151;
goto LABEL_7;
}
}
result = &unk_100869E68;
if ( !off_100869E70 )
{
LABEL_6:
v4 = 106;
v5 = 160;
LABEL_7:
sub_100624720(103, v4, (__int64)"gost_crypt.c", v5);
return nullptr;
}
while ( *(_DWORD *)result != v1 )
{
v3 = result[4];
result += 3;
if ( !v3 )
goto LABEL_6;
}
return result;
}