//
// sub_100717470 from 0x100717470 to 0x1007174e5 (117 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:08 +0000
//
unsigned __int64 __fastcall sub_100717470(__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;
}