//
// std::__ndk1::system_error::system_error from 0x97e6a4 to 0x97e764 (192 bytes)
//
// 0 xrefs:
//
// 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_errorC1EiRKNS_14error_categoryEPKc'
std::system_error *__fastcall std::system_error::system_error(
std::system_error *this,
int a2,
const std::error_category *a3,
const char *a4)
{
size_t v8; // r0
int v10[2]; // [sp+0h] [bp-30h] BYREF
void *v11; // [sp+8h] [bp-28h]
_DWORD v12[2]; // [sp+Ch] [bp-24h] BYREF
void *v13[3]; // [sp+14h] [bp-1Ch] BYREF
v12[0] = a2;
v12[1] = a3;
v11 = nullptr;
v10[0] = 0;
v10[1] = 0;
v8 = strlen(a4);
std::string::__init(v10, a4, v8);
std::system_error::__init(v13, (int)v12, v10);
std::runtime_error::runtime_error(this, (int)v13);
if ( ((int)v13[0] & 1) != 0 )
operator delete(v13[2]);
if ( (v10[0] & 1) != 0 )
operator delete(v11);
*(_DWORD *)this = &off_D14C6C;
*((_DWORD *)this + 2) = a2;
*((_DWORD *)this + 3) = a3;
return this;
}