//
// sub_1800186C0 from 0x1800186c0 to 0x1800186fb (59 bytes)
//
// 2 xrefs:
// > sub_18001848C @ 0x180018493
// > ??> @ 0x1801ae830
//
// 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
//
void *__fastcall sub_1800186C0(__int64 a1, char a2)
{
void *v2; // rdi
v2 = (void *)(a1 - 176);
sub_180018350(a1 - 176);
if ( (a2 & 1) != 0 )
j_j_free_0(v2);
return v2;
}