//
// sub_10063A7C0 from 0x10063a7c0 to 0x10063a835 (117 bytes)
//
// 4 xrefs:
// > DS_Dictionary::checkCompatibility @ 0x10017ab16
// > DS_Dictionary::loadRootSubDictFromFile @ 0x10017adf9
// > DS_Dictionary::loadRootSubDictFromCompressedFile @ 0x10017b142
// > DS_Dictionary::loadRootSubDictFromString @ 0x10017b3e8
//
// 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_10063A7C0(__int64 a1, unsigned int a2)
{
__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 strtol(v3, nullptr, v7);
}
}
return result;
}