//
// __GSHandlerCheckCommon from 0x1800202c0 to 0x18002031b (91 bytes)
//
// 3 xrefs:
// > __GSHandlerCheck @ 0x1800202ae
// > __GSHandlerCheck_EH4 @ 0x18002034f
// > ??> @ 0x18004b310
//
// 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 _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;
}