//
// sub_10063F9E0 from 0x10063f9e0 to 0x10063fa75 (149 bytes)
//
// 0 xrefs:
//
// 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_10063F9E0(__int64 *a1, unsigned int a2)
{
__int64 result; // rax
__int64 v3; // rcx
const char *v4; // rdi
unsigned __int8 *v5; // rax
__int64 v6; // rdx
_BOOL8 v7; // rcx
int v8; // edx
unsigned __int8 v9; // al
result = a2;
v3 = *a1;
if ( *a1 )
{
if ( (*(_DWORD *)v3 & 6) != 2 )
{
v3 = *(_QWORD *)(v3 + 32);
if ( !v3 )
return result;
while ( (*(_DWORD *)v3 & 6) != 2 )
{
v3 = *(_QWORD *)(v3 + 48);
if ( !v3 )
return result;
}
}
v4 = *(const char **)(v3 + 24);
if ( v4 )
{
v5 = *(unsigned __int8 **)(v3 + 24);
do
v6 = *v5++;
while ( (a7_0[v6] & 8) != 0 );
v7 = (_BYTE)v6 == 45;
v8 = 10;
if ( v5[v7 - 1] == 48 )
{
v9 = v5[v7];
v8 = 16;
if ( v9 != 120 )
{
v8 = 10;
if ( v9 == 88 )
v8 = 16;
}
}
return strtol(v4, nullptr, v8);
}
}
return result;
}