//
// sub_180050090 from 0x180050090 to 0x1800500ef (95 bytes)
//
// 3 xrefs:
// > sub_180049440 @ 0x18004966b
// > sub_18004C5B0 @ 0x18004c703
// > ??> @ 0x1801f88ec
//
// 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_180050090(__int64 a1, __int64 a2)
{
__int64 v4; // rdx
__int64 v5; // rdx
__int64 result; // rax
if ( *(_DWORD *)(a2 + 48) )
{
v4 = *(_QWORD *)(a2 + 40);
if ( v4 )
sub_180033C90(a1, v4);
v5 = *(_QWORD *)(a2 + 8);
if ( v5 )
sub_180033C90(a1, v5);
*(_OWORD *)a2 = 0;
*(_OWORD *)(a2 + 16) = 0;
*(_OWORD *)(a2 + 32) = 0;
*(_QWORD *)(a2 + 48) = 0;
return sub_180033C90(a1, a2);
}
return result;
}