//
// std::__ndk1::system_error::system_error from 0x97e45c to 0x97e518 (188 bytes)
//
// 6 xrefs:
// > std::__ndk1::ios_base::clear @ 0x9549c0
// > std::__ndk1::ios_base::failure::failure @ 0x95c51a
// > std::__ndk1::__throw_system_error @ 0x97e86c
// > std::__ndk1::thread::join @ 0x97e8ec
// > std::__ndk1::thread::detach @ 0x97e952
// > std::__ndk1::__thread_specific_ptr::__thread_specific_ptr @ 0x97eaca
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:06:05 +0000
//
// Alternative name is '_ZNSt6__ndk112system_errorC1ENS_10error_codeEPKc'
int __fastcall std::system_error::system_error(int a1, unsigned int a2, unsigned int a3, const char *a4)
{
size_t v6; // r0
int v8[2]; // [sp+0h] [bp-30h] BYREF
void *v9; // [sp+8h] [bp-28h]
void *v10[3]; // [sp+Ch] [bp-24h] BYREF
unsigned __int64 v11; // [sp+18h] [bp-18h] BYREF
v11 = __PAIR64__(a3, a2);
v9 = nullptr;
v8[0] = 0;
v8[1] = 0;
v6 = strlen(a4);
std::string::__init(v8, a4, v6);
std::system_error::__init(v10, (int)&v11, v8);
std::runtime_error::runtime_error((_DWORD *)a1, (int)v10);
if ( ((int)v10[0] & 1) != 0 )
operator delete(v10[2]);
if ( (v8[0] & 1) != 0 )
operator delete(v9);
*(_DWORD *)a1 = &off_D14C6C;
*(_QWORD *)(a1 + 8) = v11;
return a1;
}