//
// sub_100717580 from 0x100717580 to 0x1007175e8 (104 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
//
__int64 __fastcall sub_100717580(__int64 a1, __int64 a2)
{
const char *v2; // rdi
const char *v3; // rax
__int64 v4; // rdx
_BOOL8 v5; // rcx
int v6; // edx
unsigned __int8 v7; // al
if ( !*(_QWORD *)a1 )
return a2;
v2 = *(const char **)(*(_QWORD *)a1 + 16LL);
if ( !v2 )
return a2;
v3 = v2;
do
v4 = *(unsigned __int8 *)v3++;
while ( (a7_0[v4] & 8) != 0 );
v5 = (_BYTE)v4 == 45;
v6 = 10;
if ( v3[v5 - 1] == 48 )
{
v7 = v3[v5];
v6 = 16;
if ( v7 != 120 )
{
v6 = 10;
if ( v7 == 88 )
v6 = 16;
}
}
return strtoll(v2, nullptr, v6);
}