//
// sub_F4EFB0 from 0xf4efb0 to 0xf4f0e8 (312 bytes)
//
// 1 xrefs:
// > std::__ndk1::ios_base::Init::Init @ 0xf4eb90
//
// 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
//
void __fastcall sub_F4EFB0(__int64 a1, __int64 a2, __int64 a3)
{
const std::locale *v4; // x20
__int64 v7; // x0
int v8; // w0
_QWORD *v9; // x8
unsigned __int8 v10; // w0
int v11; // w8
_QWORD v12[2]; // [xsp+0h] [xbp-40h] BYREF
v4 = (const std::locale *)(a1 + 8);
v12[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 + 64) = a2;
*(_QWORD *)(a1 + 80) = a3;
*(_DWORD *)(a1 + 92) = -1;
*(_QWORD *)a1 = off_1533248;
*(_BYTE *)(a1 + 96) = 0;
std::locale::locale((std::locale *)v12, v4);
v7 = std::locale::use_facet((std::locale *)v12, (std::locale::id *)&std::codecvt::id);
*(_QWORD *)(a1 + 72) = v7;
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 48LL))(v7);
v9 = *(_QWORD **)(a1 + 72);
*(_DWORD *)(a1 + 88) = v8;
v10 = (unsigned __int8)(*(_QWORD *(__fastcall **)(_QWORD *__return_ptr, _QWORD *))(*v9 + 56LL))(v9, v9);
v11 = *(_DWORD *)(a1 + 88);
*(_BYTE *)(a1 + 97) = v10 & 1;
if ( v11 >= 9 )
std::__throw_runtime_error("unsupported locale for standard input");
std::locale::~locale((std::locale *)v12);
_ReadStatusReg(TPIDR_EL0);
}