//
// std::__ndk1::ctype::do_tolower from 0xf6f43c to 0xf6f4e0 (164 bytes)
//
// 2 xrefs:
// > ??> @ 0xeaeb0
// > ??> @ 0x1534200
//
// 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:38 +0000
//
__int64 __fastcall std::ctype::do_tolower(__int64 a1, unsigned __int8 a2)
{
unsigned int v2; // w19
unsigned __int8 v3; // w8
v2 = a2;
if ( ((char)a2 & 0x80000000) == 0 )
{
v3 = atomic_load((unsigned __int8 *)&byte_1564978);
if ( (v3 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_1564978) )
{
qword_1564970 = newlocale();
_cxa_guard_release((__guard *)&byte_1564978);
}
if ( (unsigned int)isupper_l() )
v2 += 32;
}
return v2;
}