//
// sub_10063A840 from 0x10063a840 to 0x10063a8b5 (117 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_10063A840(__int64 a1, unsigned int a2)
{
unsigned __int64 result; // rax
const char *v3; // rdi
const char *v4; // rax
__int64 v5; // rdx
_BOOL8 v6; // rcx
int v7; // edx
unsigned __int8 v8; // al
result = a2;
if ( *(_QWORD *)a1 )
{
v3 = *(const char **)(*(_QWORD *)a1 + 16LL);
if ( v3 )
{
v4 = v3;
do
v5 = *(unsigned __int8 *)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 strtoul(v3, nullptr, v7);
}
}
return result;
}