//
// std::logic_error::logic_error from 0x977818 to 0x977878 (96 bytes)
//
// 29 xrefs:
// > std::__ndk1::stoul @ 0x97bb76
// > std::__ndk1::stoul @ 0x97bbac
// > std::__ndk1::stoul @ 0x97bd0c
// > std::__ndk1::stoul @ 0x97bd42
// > std::__ndk1::stoll @ 0x97bea6
// > std::__ndk1::stoll @ 0x97bedc
// > std::__ndk1::stoll @ 0x97c040
// > std::__ndk1::stoll @ 0x97c076
// > std::__ndk1::stoull @ 0x97c1da
// > std::__ndk1::stoull @ 0x97c210
// > std::__ndk1::stoull @ 0x97c374
// > std::__ndk1::stoull @ 0x97c3aa
// > std::__ndk1::stof @ 0x97c514
// > std::__ndk1::stof @ 0x97c54a
// > std::__ndk1::stof @ 0x97c69e
// > std::__ndk1::stof @ 0x97c6d4
// > std::__ndk1::stod @ 0x97c832
// > std::__ndk1::stod @ 0x97c868
// > std::__ndk1::stod @ 0x97c9c8
// > std::__ndk1::stod @ 0x97c9fe
// > std::__ndk1::stold @ 0x97cb5e
// > std::__ndk1::stold @ 0x97cb94
// > std::__ndk1::stold @ 0x97ccf4
// > std::__ndk1::stold @ 0x97cd2a
// > sub_97DDE4 @ 0x97de88
// > sub_97DDE4 @ 0x97dec0
// > sub_97DF30 @ 0x97dfd6
// > sub_97DF30 @ 0x97e00e
// > std::__ndk1::future_error::future_error @ 0x97eff0
//
// 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:05:59 +0000
//
// Alternative name is '_ZNSt11logic_errorC1ERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE'
_DWORD *__fastcall std::logic_error::logic_error(_DWORD *a1, int a2)
{
const char *v3; // r5
size_t v4; // r6
_DWORD *v5; // r0
_DWORD *v6; // r4
*a1 = &off_D153F8;
v3 = *(const char **)(a2 + 8);
if ( (*(_BYTE *)a2 & 1) == 0 )
v3 = (const char *)(a2 + 1);
v4 = strlen(v3);
v5 = operator new(v4 + 13);
v6 = v5 + 3;
*v5 = v4;
v5[1] = v4;
v5[2] = 0;
qmemcpy(v5 + 3, v3, v4 + 1);
a1[1] = v6;
return a1;
}