//
// _wassert from 0x180131550 to 0x1801315c3 (115 bytes)
//
// 4 xrefs:
// > sub_18011FA00 @ 0x18011fa89
// > sub_18011FB60 @ 0x18011fbde
// > sub_18011FCA0 @ 0x18011fd5b
// > ??> @ 0x180202ed0
//
// 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 10:54:58 +0000
//
void __cdecl __noreturn wassert(const wchar_t *Message, const wchar_t *File, unsigned int Line)
{
int v6; // eax
LPCWSTR retaddr; // [rsp+28h] [rbp+0h]
v6 = set_error_mode(3);
if ( v6 == 1 || !v6 && (unsigned int)sub_180138EF0() == 1 )
common_assert_to_stderr((__int64)Message, (__int64)File, Line);
common_assert_to_message_box((wchar_t *)Message, (wchar_t *)File, Line, retaddr);
}