//
// sub_180017820 from 0x180017820 to 0x18001785c (60 bytes)
//
// 2 xrefs:
// > ??> @ 0x180143838
// > ??> @ 0x1801ae6e0
//
// 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
//
__int64 __fastcall sub_180017820(__int64 a1, __int64 a2)
{
*(_QWORD *)a1 = &std::exception::`vftable';
*(_OWORD *)(a1 + 8) = 0;
_std_exception_copy(a2 + 8);
*(_QWORD *)a1 = &std::bad_cast::`vftable';
return a1;
}