//
// sub_1004B555C from 0x1004b555c to 0x1004b55cc (112 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
//
void __fastcall sub_1004B555C(__int64 a1, __int64 a2)
{
_QWORD *v2; // x8
__int64 v3; // x9
v2 = *(_QWORD **)(a2 + 48);
if ( v2[9] == a2 )
{
v2[9] = *(_QWORD *)(a2 + 72);
v3 = *(_QWORD *)(a2 + 72);
if ( !v3 )
goto LABEL_10;
goto LABEL_9;
}
v3 = *(_QWORD *)(a2 + 72);
if ( v2[7] != a2 )
{
v2[8] = v3;
if ( !v3 )
goto LABEL_10;
goto LABEL_8;
}
v2[7] = v3;
if ( v3 )
{
LABEL_8:
*(_DWORD *)(v3 + 24) &= ~0x10u;
LABEL_9:
*(_QWORD *)(v3 + 48) = v2;
}
LABEL_10:
*(_QWORD *)(a2 + 48) = 0;
*(_QWORD *)(a2 + 72) = 0;
*(_DWORD *)(a2 + 24) &= ~0x10u;
}