//
// sub_100140348 from 0x100140348 to 0x100140390 (72 bytes)
//
// 4 xrefs:
// > sub_100140284 @ 0x100140290
// > sub_100140330 @ 0x10014033c
// > sub_1001412C4 @ 0x1001412d0
// > sub_100141340 @ 0x10014134c
//
// 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_100140348(__int64 a1, __int64 a2)
{
void *v2; // x19
v2 = *(void **)a1;
*(_QWORD *)a1 = a2;
if ( v2 )
{
if ( *(_BYTE *)(a1 + 16) == 1 )
sub_10013F8B0((__int64)v2 + 16);
operator delete(v2);
}
}