//
// __crt_seh_guarded_call::operator from 0x180134fc4 to 0x180135023 (95 bytes)
//
// 2 xrefs:
// > destroy_ptd_array @ 0x1801351e9
// > ??> @ 0x180203314
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:55:00 +0000
//
void __fastcall __crt_seh_guarded_call::operator()<_lambda_46352004c1216016012b18bd6f87e700_,_lambda_3bd07e1a1191394380780325891bf33f_ &,_lambda_334532d3f185bcaa59b5be82d7d22bff_>(
__int64 a1,
int *a2,
__int64 a3,
int *a4)
{
void *v6; // rcx
sub_1801346AC(*a2);
v6 = *(void **)(**(_QWORD **)a3 + 136LL);
if ( v6 && _InterlockedExchangeAdd((volatile signed __int32 *)v6, 0xFFFFFFFF) == 1 && v6 != &unk_1801B1A50 )
free_base(v6);
sub_180134700(*a4);
}