//
// std::__ndk1::locale::locale from 0x96ed30 to 0x96edf0 (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:05:51 +0000
//
// Alternative name is '_ZNSt6__ndk16localeC1ERKS0_PKci'
std::locale *__fastcall std::locale::locale(std::locale *this, const std::locale *a2, const char *a3, char a4)
{
std::__shared_count *v8; // r5
int v9; // r4
size_t v10; // r0
std::runtime_error *exception; // r5
int v13[4]; // [sp+0h] [bp-20h] BYREF
if ( !a3 )
{
exception = (std::runtime_error *)_cxa_allocate_exception(8u);
std::runtime_error::runtime_error(exception, "locale constructed with null");
_cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))std::runtime_error::~runtime_error);
}
v8 = (std::__shared_count *)operator new(0xA0u);
v9 = *(_DWORD *)a2;
memset(v13, 0, 12);
v10 = strlen(a3);
std::string::__init(v13, a3, v10);
sub_96DDD0((int)v8, v9, (int)v13, a4);
std::string::~string((int)v13);
*(_DWORD *)this = v8;
std::__shared_count::__add_shared(v8);
return this;
}