//
// sub_100640B00 from 0x100640b00 to 0x100640b45 (69 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
//
_QWORD *__fastcall sub_100640B00(_QWORD *a1)
{
_QWORD *result; // rax
__int64 v2; // rcx
__int64 v3; // rcx
__int64 v4; // rcx
result = a1;
if ( *a1 )
{
v2 = *(_QWORD *)(*a1 + 40LL);
if ( !*(_QWORD *)(v2 + 48) )
v2 = 0;
*a1 = v2;
}
else
{
v3 = a1[1];
if ( v3 && (v4 = *(_QWORD *)(v3 + 32)) != 0 )
*a1 = *(_QWORD *)(v4 + 40);
else
*a1 = 0;
}
return result;
}