//
// __report_securityfailure from 0x1406776cc to 0x140677769 (157 bytes)
//
// 3 xrefs:
// > sub_1406776B8 @ 0x1406776c1
// > ??> @ 0x140932684
// > ??> @ 0x140932690
//
// 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:36:00 +0000
//
void __fastcall __noreturn _report_securityfailure(unsigned int a1)
{
DWORD64 retaddr; // [rsp+28h] [rbp+0h]
unsigned int v2; // [rsp+30h] [rbp+8h] BYREF
v2 = a1;
if ( IsProcessorFeaturePresent(0x17u) )
__fastfail(v2);
capture_current_context(&ContextRecord);
ContextRecord.Rip = retaddr;
ContextRecord.Rsp = (DWORD64)&v2;
qword_140909190 = retaddr;
dword_140909180 = -1073740791;
dword_140909184 = 1;
dword_140909198 = 1;
unk_1409091A0 = v2;
_raise_securityfailure((struct _EXCEPTION_POINTERS *)&ExceptionInfo);
}