//
// std::__ndk1::codecvt::codecvt from 0xf68e40 to 0xf68f8c (332 bytes)
//
// 6 xrefs:
// > sub_F68E10 @ 0xf68e20
// > sub_F68F8C @ 0xf68fac
// > sub_F6A1A8 @ 0xf6a558
// > sub_F6B1B0 @ 0xf6b534
// > ??> @ 0x465a0
// > ??> @ 0x84c10
//
// 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:35 +0000
//
// Alternative name is '_ZNSt6__ndk17codecvtIwc9mbstate_tEC1EPKcm'
__int64 __fastcall std::codecvt::codecvt(_QWORD *a1, char *a2, __int64 a3)
{
__int64 result; // x0
void *exception; // x20
size_t v7; // x0
_QWORD *v8; // x0
__int64 v9[3]; // [xsp+8h] [xbp-58h] BYREF
__int128 v10; // [xsp+20h] [xbp-40h] BYREF
__int64 v11; // [xsp+30h] [xbp-30h]
__int64 v12; // [xsp+38h] [xbp-28h]
v12 = *(_QWORD *)(_ReadStatusReg(TPIDR_EL0) + 40);
*a1 = &off_1534330;
a1[1] = a3 - 1;
result = newlocale();
a1[2] = result;
if ( !result )
{
exception = _cxa_allocate_exception(0x10u);
memset(v9, 0, sizeof(v9));
v7 = strlen(a2);
std::string::__init(v9, a2, v7);
v8 = std::string::insert(v9, 0, "codecvt_byname::codecvt_byname failed to construct for ");
v11 = v8[2];
v10 = *(_OWORD *)v8;
v8[1] = 0;
v8[2] = 0;
*v8 = 0;
std::runtime_error::runtime_error(exception, &v10);
_cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))std::overflow_error::~overflow_error);
}
_ReadStatusReg(TPIDR_EL0);
return result;
}