//
// __GSHandlerCheck_EH4 from 0x180020224 to 0x1800202a3 (127 bytes)
//
// 21 xrefs:
// > ??> @ 0x18002f518
// > ??> @ 0x18002f5e8
// > ??> @ 0x18002f688
// > ??> @ 0x18002f6c0
// > ??> @ 0x18002f760
// > ??> @ 0x18002f798
// > ??> @ 0x18002fa64
// > ??> @ 0x18002fc90
// > ??> @ 0x18002fcf4
// > ??> @ 0x18002fd30
// > ??> @ 0x18002fe14
// > ??> @ 0x18002fe8c
// > ??> @ 0x1800306ac
// > ??> @ 0x180030c28
// > ??> @ 0x180030c90
// > ??> @ 0x180031674
// > ??> @ 0x180031784
// > ??> @ 0x180031ad4
// > ??> @ 0x180031be4
// > ??> @ 0x18003207c
// > ??> @ 0x18004d25c
//
// 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 12:15:45 +0000
//
__int64 __fastcall _GSHandlerCheck_EH4(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v4; // rbx
__int64 result; // rax
v4 = *(_QWORD *)(a4 + 56);
sub_18001F6B8(a2, a4);
result = 1;
if ( ((((*(_DWORD *)(a1 + 4) & 0x66) != 0) + 1) & *(_DWORD *)(v4 + 4)) != 0 )
return _CxxFrameHandler4();
return result;
}