//
// __report_securityfailure from 0x1404d08fc to 0x1404d0998 (156 bytes)
//
// 2 xrefs:
// > __report_rangecheckfailure @ 0x1404d08f1
// > ??> @ 0x1406dd688
//
// 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 __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_1406C0AD0 = retaddr;
dword_1406C0AC0 = -1073740791;
dword_1406C0AC4 = 1;
dword_1406C0AD8 = 1;
unk_1406C0AE0 = v2;
_raise_securityfailure((struct _EXCEPTION_POINTERS *)&ExceptionInfo);
}