//
// sub_1800C4A70 from 0x1800c4a70 to 0x1800c4af4 (132 bytes)
//
// 2 xrefs:
// > sub_1800C3960 @ 0x1800c39e4
// > ??> @ 0x1801fde90
//
// 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_1800C4A70(__int64 a1, __int64 a2)
{
_QWORD *v2; // rbx
__int64 v4; // rcx
_DWORD *v5; // rdx
v2 = *(_QWORD **)(a2 + 40);
if ( v2 )
{
if ( *v2 )
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)*v2 + 88LL))(*v2);
v4 = v2[1];
if ( v4 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);
if ( *v2 )
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)*v2 + 16LL))(*v2);
v5 = *(_DWORD **)(a2 + 40);
if ( v5 )
{
sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v5);
*(_QWORD *)(a2 + 40) = 0;
}
}
return 0;
}