//
// sub_F4F730 from 0xf4f730 to 0xf4f7b0 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x1533258
//
// 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
//
_QWORD *__fastcall sub_F4F730(__int64 a1, std::locale *a2)
{
__int64 v3; // x0
int v4; // w0
_QWORD *v5; // x8
_QWORD *result; // x0
int v7; // w8
v3 = std::locale::use_facet(a2, (std::locale::id *)&std::codecvt::id);
*(_QWORD *)(a1 + 72) = v3;
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 48LL))(v3);
v5 = *(_QWORD **)(a1 + 72);
*(_DWORD *)(a1 + 88) = v4;
result = (*(_QWORD *(__fastcall **)(_QWORD *__return_ptr, _QWORD *))(*v5 + 56LL))(v5, v5);
v7 = *(_DWORD *)(a1 + 88);
*(_BYTE *)(a1 + 97) = (unsigned __int8)result & 1;
if ( v7 >= 9 )
std::__throw_runtime_error("unsupported locale for standard input");
return result;
}