//
// sub_180018700 from 0x180018700 to 0x18001873b (59 bytes)
//
// 2 xrefs:
// > sub_180018498 @ 0x18001849f
// > ??> @ 0x1801ae83c
//
// 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_180018700(__int64 a1, char a2)
{
void *v2; // rdi
v2 = (void *)(a1 - 168);
sub_1800183C0(a1 - 168);
if ( (a2 & 1) != 0 )
j_j_free_0(v2);
return v2;
}