//
// sub_1005DB6C4 from 0x1005db6c4 to 0x1005db734 (112 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 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 11:09:37 +0000
//
void __fastcall sub_1005DB6C4(__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;
}