//
// std::__ndk1::codecvt::codecvt from 0x96cba4 to 0x96cc88 (228 bytes)
//
// 4 xrefs:
// > sub_96CB8C @ 0x96cb90
// > sub_96CCA0 @ 0x96ccb6
// > sub_96D650 @ 0x96d7b2
// > sub_96DDD0 @ 0x96df46
//
// 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:49 +0000
//
// Alternative name is '_ZNSt6__ndk17codecvtIwc9mbstate_tEC1EPKcj'
_DWORD *__fastcall std::codecvt::codecvt(_DWORD *a1, char *a2, int a3)
{
int v5; // r0
void *exception; // r8
size_t v8; // r0
_DWORD *v9; // r0
int v10; // r5
int v11; // r6
int v12[4]; // [sp+0h] [bp-30h] BYREF
_DWORD v13[4]; // [sp+10h] [bp-20h] BYREF
*a1 = &off_D13FB8;
a1[1] = a3 - 1;
v5 = sub_992EBC(8127, a2);
a1[2] = v5;
if ( !v5 )
{
exception = _cxa_allocate_exception(8u);
memset(v12, 0, 12);
v8 = strlen(a2);
std::string::__init(v12, a2, v8);
v9 = std::string::insert(
v12,
0,
"codecvt_byname::codecvt_byname failed to construct for ");
v10 = v9[1];
v11 = v9[2];
v13[0] = *v9;
v13[1] = v10;
v13[2] = v11;
*v9 = 0;
v9[1] = 0;
v9[2] = 0;
std::runtime_error::runtime_error(exception, v13);
_cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))std::runtime_error::~runtime_error);
}
return a1;
}