//
// sub_F4F1E8 from 0xf4f1e8 to 0xf4f2e8 (256 bytes)
//
// 2 xrefs:
// > std::__ndk1::ios_base::Init::Init @ 0xf4ec40
// > std::__ndk1::ios_base::Init::Init @ 0xf4ed18
//
// 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:16 +0000
//
__int64 __fastcall sub_F4F1E8(__int64 a1, __int64 a2, __int64 a3)
{
const std::locale *v4; // x21
__int64 v7; // x22
__int64 result; // x0
_QWORD v9[2]; // [xsp+0h] [xbp-40h] BYREF
v4 = (const std::locale *)(a1 + 8);
v9[1] = *(_QWORD *)(_ReadStatusReg(TPIDR_EL0) + 40);
*(_QWORD *)a1 = off_1532CE8;
std::locale::locale((std::locale *)(a1 + 8));
*(_QWORD *)(a1 + 48) = 0;
*(_QWORD *)(a1 + 56) = 0;
*(_QWORD *)(a1 + 32) = 0;
*(_QWORD *)(a1 + 40) = 0;
*(_QWORD *)(a1 + 16) = 0;
*(_QWORD *)(a1 + 24) = 0;
*(_QWORD *)a1 = off_1533388;
*(_QWORD *)(a1 + 64) = a2;
std::locale::locale((std::locale *)v9, v4);
v7 = std::locale::use_facet((std::locale *)v9, (std::locale::id *)&std::codecvt::id);
std::locale::~locale((std::locale *)v9);
*(_QWORD *)(a1 + 72) = v7;
*(_QWORD *)(a1 + 80) = a3;
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 56LL))(v7);
*(_BYTE *)(a1 + 88) = result & 1;
_ReadStatusReg(TPIDR_EL0);
return result;
}