//
// sub_F42FBC from 0xf42fbc to 0xf43054 (152 bytes)
//
// 0 xrefs:
//
// 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:08 +0000
//
__int64 __fastcall sub_F42FBC(__int64 a1, unsigned int a2)
{
__int64 v3; // x0
unsigned int v4; // w19
_QWORD v6[2]; // [xsp+0h] [xbp-20h] BYREF
v6[1] = *(_QWORD *)(_ReadStatusReg(TPIDR_EL0) + 40);
std::locale::locale((std::locale *)v6, (const std::locale *)(a1 + 48));
v3 = std::locale::use_facet((std::locale *)v6, (std::locale::id *)&std::ctype::id);
v4 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 56LL))(v3, a2);
std::locale::~locale((std::locale *)v6);
_ReadStatusReg(TPIDR_EL0);
return v4;
}