//
// sub_180050030 from 0x180050030 to 0x180050084 (84 bytes)
//
// 2 xrefs:
// > sub_18004A3A0 @ 0x18004a654
// > ??> @ 0x1801f88e0
//
// 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_180050030(__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 0;
}
return result;
}