//
// sub_18001F6B8 from 0x18001f6b8 to 0x18001f718 (96 bytes)
//
// 3 xrefs:
// > __GSHandlerCheck @ 0x18001f6a6
// > __GSHandlerCheck_EH4 @ 0x180020257
// > ??> @ 0x18004d130
//
// 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 sub_18001F6B8(__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;
}