//
// sub_1800190B0 from 0x1800190b0 to 0x180019108 (88 bytes)
//
// 10 xrefs:
// > sub_180020EA0 @ 0x180020ea7
// > int `Concurrency::task_completion_event::set @ 0x180020eb3
// > int `std::_Locinfo::_Locinfo @ 0x180020f49
// > sub_180020F4E @ 0x180020f59
// > sub_18002111E @ 0x180021129
// > int `std::_Locinfo::_Locinfo @ 0x180021159
// > sub_18002115E @ 0x180021169
// > ??> @ 0x18002f230
// > ??> @ 0x18002f236
// > ??> @ 0x18004abc0
//
// 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_1800190B0(__int64 a1)
{
_QWORD *v2; // rcx
__int64 result; // rax
v2 = *(_QWORD **)a1;
if ( v2 )
{
if ( *(_QWORD *)(a1 + 16) - (_QWORD)v2 >= 0x1000u )
{
if ( (unsigned __int64)v2 - *(v2 - 1) - 8 > 0x1F )
invalid_parameter_noinfo_noreturn();
v2 = (_QWORD *)*(v2 - 1);
}
j_j_free(v2);
result = 0;
*(_QWORD *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0;
*(_QWORD *)(a1 + 16) = 0;
}
return result;
}