//
// std::__ndk1::__throw_system_error from 0xf86578 to 0xf86620 (168 bytes)
//
// 25 xrefs:
// > GManager::saveGMTo @ 0x6a906c
// > LevelEditorLayer::doAutoSave @ 0x7a8154
// > LevelEditorLayer::doAutoBackup @ 0x7a88ec
// > sub_D1CDF0 @ 0xd1ce64
// > std::__ndk1::chrono::system_clock::now @ 0xf41be4
// > std::__ndk1::chrono::steady_clock::now @ 0xf41cb4
// > std::__ndk1::condition_variable::wait @ 0xf41d64
// > std::__ndk1::condition_variable::wait @ 0xf41d80
// > std::__ndk1::condition_variable::__do_timed_wait @ 0xf41dd8
// > std::__ndk1::condition_variable::__do_timed_wait @ 0xf41e40
// > std::__ndk1::mutex::lock @ 0xf79c40
// > std::__ndk1::recursive_mutex::recursive_mutex @ 0xf79d14
// > std::__ndk1::recursive_mutex::lock @ 0xf79d78
// > std::__ndk1::timed_mutex::~timed_mutex @ 0xf79e14
// > std::__ndk1::timed_mutex::lock @ 0xf79e9c
// > std::__ndk1::timed_mutex::unlock @ 0xf79f88
// > std::__ndk1::recursive_timed_mutex::~recursive_timed_mutex @ 0xf7a014
// > std::__ndk1::recursive_timed_mutex::lock @ 0xf7a0ac
// > std::__ndk1::recursive_timed_mutex::lock @ 0xf7a0d8
// > std::__ndk1::recursive_timed_mutex::unlock @ 0xf7a22c
// > std::__ndk1::random_device::random_device @ 0xf7a530
// > std::__ndk1::random_device::operator @ 0xf7a5f4
// > std::__ndk1::random_device::operator @ 0xf7a630
// > std::__ndk1::__assoc_sub_state::__sub_wait @ 0xf87864
// > ??> @ 0xd3d38
//
// This function is hookable on this platform (idp: arm, 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 13:13:53 +0000
//
void __fastcall __noreturn std::__throw_system_error(unsigned int a1, const char *a2)
{
void *exception; // x0
unsigned __int8 v5; // w8
void *v6; // x19
exception = _cxa_allocate_exception(0x20u);
v5 = atomic_load((unsigned __int8 *)&byte_1565E88);
v6 = exception;
if ( (v5 & 1) == 0 )
{
if ( _cxa_guard_acquire((__guard *)&byte_1565E88) )
{
qword_1565E80 = (__int64)&off_1535D88;
_cxa_guard_release((__guard *)&byte_1565E88);
}
}
std::system_error::system_error((__int64)v6, a1, (__int64)&qword_1565E80, a2);
_cxa_throw(
v6,
(struct type_info *)&`typeinfo for'std::system_error,
(void (*)(void *))std::system_error::~system_error);
}