//
// __GSHandlerCheckCommon from 0x18011feac to 0x18011ff07 (91 bytes)
//
// 3 xrefs:
// > __GSHandlerCheck @ 0x18011fe9a
// > __GSHandlerCheck_EH @ 0x1801426bf
// > ??> @ 0x1802023fc
//
// 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:54:52 +0000
//
__int64 __fastcall _GSHandlerCheckCommon(__int64 a1, __int64 a2)
{
__int64 v2; // rcx
__int64 result; // rax
v2 = *(unsigned int *)(*(_QWORD *)(a2 + 16) + 8LL);
result = *(_QWORD *)(a2 + 8);
if ( (*(_BYTE *)(v2 + result + 3) & 0xF) != 0 )
return *(_BYTE *)(v2 + result + 3) & 0xF0;
return result;
}