//
// std::__ndk1::locale::__global from 0x96eb6c to 0x96ebc0 (84 bytes)
//
// 2 xrefs:
// > std::__ndk1::locale::locale @ 0x96ebe2
// > std::__ndk1::locale::global @ 0x96eef2
//
// 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:50 +0000
//
int __fastcall std::locale::__global(std::locale *this)
{
char v1; // r0
std::locale *v2; // r0
v1 = byte_D332F0;
__dmb(0xBu);
if ( (v1 & 1) == 0 )
{
v2 = (std::locale *)_cxa_guard_acquire((__guard *)&byte_D332F0);
if ( v2 )
{
dword_D332E8 = *(_DWORD *)std::locale::classic(v2);
std::__shared_count::__add_shared((std::__shared_count *)dword_D332E8);
dword_D332EC = (int)&dword_D332E8;
_cxa_guard_release((__guard *)&byte_D332F0);
}
}
return dword_D332EC;
}