//
// std::__ndk1::codecvt::do_max_length from 0xf710e8 to 0xf71158 (112 bytes)
//
// 3 xrefs:
// > ??> @ 0xe3b00
// > ??> @ 0x1534050
// > ??> @ 0x1534378
//
// 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:39 +0000
//
__int64 __fastcall std::codecvt::do_max_length(__int64 a1)
{
__int64 v1; // x19
unsigned int mb_cur_max; // w20
if ( *(_QWORD *)(a1 + 16) )
{
v1 = uselocale();
mb_cur_max = __ctype_get_mb_cur_max();
if ( v1 )
uselocale();
}
else
{
return 1;
}
return mb_cur_max;
}