//
// __GSHandlerCheck_EH4 from 0x18002031c to 0x18002039b (127 bytes)
//
// 21 xrefs:
// > ??> @ 0x18002cea8
// > ??> @ 0x18002cf9c
// > ??> @ 0x18002d03c
// > ??> @ 0x18002d06c
// > ??> @ 0x18002d110
// > ??> @ 0x18002d148
// > ??> @ 0x18002d4b4
// > ??> @ 0x18002d6bc
// > ??> @ 0x18002d720
// > ??> @ 0x18002d75c
// > ??> @ 0x18002d840
// > ??> @ 0x18002d8b4
// > ??> @ 0x18002e1e8
// > ??> @ 0x18002e740
// > ??> @ 0x18002e7a8
// > ??> @ 0x18002f0b0
// > ??> @ 0x18002f1c8
// > ??> @ 0x18002f4d8
// > ??> @ 0x18002f5e4
// > ??> @ 0x18002fae0
// > ??> @ 0x18004b31c
//
// 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
//
__int64 __fastcall _GSHandlerCheck_EH4(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v4; // rbx
__int64 result; // rax
v4 = *(_QWORD *)(a4 + 56);
_GSHandlerCheckCommon(a2, a4);
result = 1;
if ( ((((*(_DWORD *)(a1 + 4) & 0x66) != 0) + 1) & *(_DWORD *)(v4 + 4)) != 0 )
return _CxxFrameHandler4();
return result;
}