//
// std::__ndk1::locale::classic from 0x96dcb8 to 0x96dd10 (88 bytes)
//
// 3 xrefs:
// > sub_96D650 @ 0x96d682
// > sub_96EB50 @ 0x96eb54
// > std::__ndk1::locale::__global @ 0x96eb8a
//
// 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::classic(std::locale *this)
{
char v1; // r0
v1 = byte_D332E4;
__dmb(0xBu);
if ( (v1 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_D332E4) )
{
sub_96CDFC((int)&unk_D33AE0, 1);
dword_D332DC = (int)&unk_D33AE0;
dword_D332E0 = (int)&dword_D332DC;
_cxa_guard_release((__guard *)&byte_D332E4);
}
return dword_D332E0;
}