//
// sub_1800E4B2C from 0x1800e4b2c to 0x1800e4b8c (96 bytes)
//
// 3 xrefs:
// > __GSHandlerCheck @ 0x1800e4b1a
// > __GSHandlerCheck_EH4 @ 0x1800e4c1f
// > ??> @ 0x1801c5484
//
// 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 11:22:37 +0000
//
__int64 __fastcall sub_1800E4B2C(__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;
}