//
// __report_gsfailure from 0x18001fbd8 to 0x18001fcaa (210 bytes)
//
// 3 xrefs:
// > __security_check_cookie @ 0x18001f1c9
// > ??> @ 0x18004b280
// > ??> @ 0x18004b28c
//
// 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
//
void __cdecl __noreturn _report_gsfailure(uintptr_t StackCookie)
{
DWORD64 retaddr; // [rsp+38h] [rbp+0h]
uintptr_t 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_180048050 = retaddr;
ContextRecord.Rcx = v2;
dword_180048040 = -1073740791;
dword_180048044 = 1;
dword_180048058 = 1;
unk_180048060 = 2;
_raise_securityfailure((struct _EXCEPTION_POINTERS *)&ExceptionInfo);
}