//
// sub_10005C1F0 from 0x10005c1f0 to 0x10005c252 (98 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:19:40 +0000
//
__int64 __fastcall sub_10005C1F0(__int64 a1, _QWORD *a2)
{
_QWORD *v2; // rax
_QWORD *v3; // rax
__int64 result; // rax
__int64 v5; // rcx
v2 = *(_QWORD **)(a1 + 48);
if ( v2 == a2 )
{
*(_QWORD *)(a1 + 48) = v2[9];
v3 = *(_QWORD **)(a1 + 56);
if ( v3 != a2 )
{
LABEL_3:
result = a2[8];
v5 = a2[9];
if ( !result )
goto LABEL_5;
goto LABEL_4;
}
}
else
{
v3 = *(_QWORD **)(a1 + 56);
if ( v3 != a2 )
goto LABEL_3;
}
*(_QWORD *)(a1 + 56) = v3[8];
result = a2[8];
v5 = a2[9];
if ( result )
LABEL_4:
*(_QWORD *)(result + 72) = v5;
LABEL_5:
if ( v5 )
*(_QWORD *)(v5 + 64) = result;
a2[2] = 0;
return result;
}