//
// sub_10071C6B0 from 0x10071c6b0 to 0x10071c745 (149 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:36:11 +0000
//
unsigned __int64 __fastcall sub_10071C6B0(__int64 *a1, unsigned int a2)
{
unsigned __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 strtoul(v4, nullptr, v8);
}
}
return result;
}