//
// sub_100640530 from 0x100640530 to 0x100640615 (229 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
//
__int64 *__fastcall sub_100640530(__int64 *a1, int a2)
{
__int64 v2; // r15
__int64 v3; // rcx
__int64 v4; // rdx
char v6[128]; // [rsp+0h] [rbp-B0h] BYREF
v2 = *a1;
if ( *a1 )
{
v3 = *(_QWORD *)v2 & 6LL;
if ( v3 == 2 )
goto LABEL_10;
v4 = *(_QWORD *)(v2 + 32);
if ( v4 )
{
while ( (*(_DWORD *)v4 & 6) != 2 )
{
v4 = *(_QWORD *)(v4 + 48);
if ( !v4 )
goto LABEL_6;
}
v2 = v4;
goto LABEL_10;
}
LABEL_6:
if ( !v3 )
{
v2 = sub_10063C200(*a1, *(__int64 **)(*(_QWORD *)v2 & 0xFFFFFFFFFFFFFFE0LL), 3);
if ( v2 )
{
LABEL_10:
sprintf(v6, "%u", a2);
sub_10063B180((const char **)(v2 + 24), (__int64 *)v2, 8, v6);
}
}
}
return a1;
}