//
// __crt_seh_guarded_call::operator from 0x180138b04 to 0x180138b75 (113 bytes)
//
// 3 xrefs:
// > sub_180138B78 @ 0x180138bf2
// > ??> @ 0x1802036ec
// > ??> @ 0x1802036f8
//
// 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:01 +0000
//
__int64 __fastcall __crt_seh_guarded_call::operator()<_lambda_751a882b2c74d4b022dec766aa51a29a_,_lambda_628dfdc04ba53c8bfc02c9951375f3f5_ &,_lambda_f6c7be5f7998530c34de24c7437d6b54_>(
__int64 a1,
int *a2,
int **a3,
int *a4)
{
unsigned int v6; // ebx
sub_180136164(*a2);
if ( (*(_BYTE *)(qword_1801F5160[(__int64)**a3 >> 6] + 72LL * (**a3 & 0x3F) + 56) & 1) != 0 )
{
v6 = close_nolock();
}
else
{
*errno() = 9;
v6 = -1;
}
sub_18013618C(*a4);
return v6;
}