//
// sub_10063FCE0 from 0x10063fce0 to 0x10063fd78 (152 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
//
unsigned __int64 __fastcall sub_10063FCE0(__int64 *a1, __int64 a2)
{
__int64 v2; // rax
const char *v3; // rdi
unsigned __int8 *v4; // rax
__int64 v5; // rdx
_BOOL8 v6; // rcx
int v7; // edx
unsigned __int8 v8; // al
v2 = *a1;
if ( !*a1 )
return a2;
if ( (*(_DWORD *)v2 & 6) != 2 )
{
v2 = *(_QWORD *)(v2 + 32);
if ( !v2 )
return a2;
while ( (*(_DWORD *)v2 & 6) != 2 )
{
v2 = *(_QWORD *)(v2 + 48);
if ( !v2 )
return a2;
}
}
v3 = *(const char **)(v2 + 24);
if ( !v3 )
return a2;
v4 = *(unsigned __int8 **)(v2 + 24);
do
v5 = *v4++;
while ( (a7_0[v5] & 8) != 0 );
v6 = (_BYTE)v5 == 45;
v7 = 10;
if ( v4[v6 - 1] == 48 )
{
v8 = v4[v6];
v7 = 16;
if ( v8 != 120 )
{
v7 = 10;
if ( v8 == 88 )
v7 = 16;
}
}
return strtoull(v3, nullptr, v7);
}