//
// _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!
//
// 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 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);
}