//
// sub_180003F20 from 0x180003f20 to 0x180003f6d (77 bytes)
//
// 2 xrefs:
// > sub_180017E70 @ 0x180017e98
// > sub_1800180F0 @ 0x18001824a
//
// 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_180003F20(__int64 a1)
{
__int64 v1; // rdx
if ( !a1 )
return 0xFFFFFFFFLL;
if ( !*(_QWORD *)a1 )
return 0xFFFFFFFFLL;
v1 = *(_QWORD *)(*(_QWORD *)a1 + 32LL);
if ( !v1 )
return 0xFFFFFFFFLL;
*(_QWORD *)(a1 + 24) = -1;
*(_QWORD *)(a1 + 36) = 0;
*(_QWORD *)(a1 + 48) = -1;
*(_QWORD *)(a1 + 56) = -1;
*(_QWORD *)(a1 + 64) = -1;
*(_DWORD *)(a1 + 32) = *(int *)(v1 + 4) >> 1;
return 0;
}