//
// __report_gsfailure from 0x1800e580c to 0x1800e58df (211 bytes)
//
// 3 xrefs:
// > __security_check_cookie @ 0x1800e4bb9
// > ??> @ 0x1801c55f8
// > ??> @ 0x1801c5604
//
// 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:38 +0000
//
void __cdecl __noreturn _report_gsfailure(uintptr_t StackCookie)
{
DWORD64 retaddr; // [rsp+38h] [rbp+0h]
DWORD64 v2; // [rsp+40h] [rbp+8h] BYREF
v2 = StackCookie;
if ( IsProcessorFeaturePresent(0x17u) )
__fastfail(2u);
capture_previous_context(&ContextRecord);
ContextRecord.Rip = retaddr;
ContextRecord.Rsp = (DWORD64)&v2;
qword_1801B67A0 = retaddr;
ContextRecord.Rcx = v2;
dword_1801B6790 = -1073740791;
dword_1801B6794 = 1;
dword_1801B67A8 = 1;
unk_1801B67B0 = 2;
_raise_securityfailure((struct _EXCEPTION_POINTERS *)&ExceptionInfo);
}