//
// sub_954E28 from 0x954e28 to 0x954e8e (102 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:27 +0000
//
int __fastcall sub_954E28(int a1)
{
int v2; // r5
std::locale *v3; // r0
int v4; // r0
int v6; // [sp+0h] [bp-10h] BYREF
v2 = *(_DWORD *)(a1 + 76);
if ( v2 == -1 )
{
v3 = (std::locale *)std::locale::locale((std::locale *)&v6, (const std::locale *)(a1 + 28));
v4 = std::locale::use_facet(v3, (std::locale::id *)&std::ctype::id);
v2 = (*(int (__fastcall **)(int, int))(*(_DWORD *)v4 + 28))(v4, 32);
std::locale::~locale((std::locale *)&v6);
*(_DWORD *)(a1 + 76) = v2;
}
return (unsigned __int8)v2;
}