//
// std::__ndk1::locale::use_facet from 0xf6def8 to 0xf6dfcc (212 bytes)
//
// 159 xrefs:
// > std::__ndk1::basic_istream>::sentry::sentry @ 0x835234
// > std::__ndk1::basic_ostream>::operator<< @ 0x8b79b4
// > std::__ndk1::basic_ostream>::operator<< @ 0x8b7a74
// > std::__ndk1::__put_character_sequence> @ 0x8b7e28
// > cocos2d::ZipUtils::hexToChar @ 0xd9c7a0
// > std::__ndk1::basic_filebuf>::imbue @ 0xdb56b8
// > std::__ndk1::basic_filebuf>::basic_filebuf @ 0xdb7e34
// > std::__ndk1::basic_ostream>::operator<< @ 0xdb8224
// > std::__ndk1::basic_ostream>::operator<< @ 0xdb82c4
// > std::__ndk1::basic_istream>::sentry::sentry @ 0xddc624
// > sub_F42F14 @ 0xf42f58
// > sub_F42FBC @ 0xf42ff4
// > sub_F43268 @ 0xf432a4
// > sub_F43A68 @ 0xf43aac
// > sub_F43B10 @ 0xf43b48
// > sub_F43D20 @ 0xf43d5c
// > std::__ndk1::basic_istream>::operator>> @ 0xf45194
// > std::__ndk1::basic_istream>::operator>> @ 0xf452d0
// > std::__ndk1::basic_istream>::operator>> @ 0xf4544c
// > std::__ndk1::basic_istream>::operator>> @ 0xf45588
// > std::__ndk1::basic_istream>::operator>> @ 0xf45708
// > std::__ndk1::basic_istream>::operator>> @ 0xf45844
// > std::__ndk1::basic_istream>::operator>> @ 0xf45980
// > std::__ndk1::basic_istream>::operator>> @ 0xf45abc
// > std::__ndk1::basic_istream>::operator>> @ 0xf45bf8
// > std::__ndk1::basic_istream>::operator>> @ 0xf45d34
// > std::__ndk1::basic_istream>::operator>> @ 0xf45e70
// > std::__ndk1::basic_istream>::operator>> @ 0xf45fac
// > std::__ndk1::basic_istream>::operator>> @ 0xf460e8
// > std::__ndk1::basic_istream>::get @ 0xf46350
// > std::__ndk1::basic_istream>::get @ 0xf465cc
// > std::__ndk1::basic_istream>::getline @ 0xf46840
// > std::__ndk1::basic_istream>::operator>> @ 0xf47aa0
// > std::__ndk1::basic_istream>::operator>> @ 0xf47bdc
// > std::__ndk1::basic_istream>::operator>> @ 0xf47d58
// > std::__ndk1::basic_istream>::operator>> @ 0xf47e94
// > std::__ndk1::basic_istream>::operator>> @ 0xf48014
// > std::__ndk1::basic_istream>::operator>> @ 0xf48150
// > std::__ndk1::basic_istream>::operator>> @ 0xf4828c
// > std::__ndk1::basic_istream>::operator>> @ 0xf483c8
// > std::__ndk1::basic_istream>::operator>> @ 0xf48504
// > std::__ndk1::basic_istream>::operator>> @ 0xf48640
// > std::__ndk1::basic_istream>::operator>> @ 0xf4877c
// > std::__ndk1::basic_istream>::operator>> @ 0xf488b8
// > std::__ndk1::basic_istream>::operator>> @ 0xf489f4
// > std::__ndk1::basic_istream>::get @ 0xf48c5c
// > std::__ndk1::basic_istream>::get @ 0xf48ed0
// > std::__ndk1::basic_istream>::getline @ 0xf49144
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a1e8
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a22c
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a3c0
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a404
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a5b0
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a5f4
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a780
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a7c4
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a950
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a994
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4ab20
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4ab64
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4acf0
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4ad34
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4aec0
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4af04
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4b094
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4b0d8
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4b268
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4b2ac
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4b438
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4b47c
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4c23c
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4c280
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4c414
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4c458
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4c604
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4c648
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4c7dc
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4c820
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4c9cc
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4ca10
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4cb9c
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4cbe0
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4cd6c
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4cdb0
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4cf3c
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4cf80
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4d10c
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4d150
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4d2e0
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4d324
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4d4b8
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4d4fc
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4d68c
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4d6d0
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4d85c
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4d8a0
// > sub_F4EE78 @ 0xf4ef0c
// > sub_F4EFB0 @ 0xf4f044
// > sub_F4F0E8 @ 0xf4f16c
// > sub_F4F1E8 @ 0xf4f26c
// > sub_F4F364 @ 0xf4f384
// > sub_F4F730 @ 0xf4f750
// > sub_F4FB24 @ 0xf4fb50
// > sub_F4FE58 @ 0xf4fe84
// > std::__ndk1::num_get>>::do_get @ 0xf506e0
// > std::__ndk1::num_get>>::do_get @ 0xf50708
// > std::__ndk1::num_get>>::do_get @ 0xf52d64
// > std::__ndk1::num_get>>::do_get @ 0xf536f8
// > std::__ndk1::num_get>>::do_get @ 0xf53720
// > std::__ndk1::num_get>>::do_get @ 0xf55d88
// > std::__ndk1::__num_get::__stage2_int_prep @ 0xf564a0
// > std::__ndk1::__num_get::__stage2_int_prep @ 0xf564cc
// > std::__ndk1::__num_get::__stage2_float_prep @ 0xf5658c
// > std::__ndk1::__num_get::__stage2_float_prep @ 0xf565b8
// > std::__ndk1::__num_get::__stage2_int_prep @ 0xf56a9c
// > std::__ndk1::__num_get::__stage2_int_prep @ 0xf56ac8
// > std::__ndk1::__num_get::__stage2_float_prep @ 0xf56b88
// > std::__ndk1::__num_get::__stage2_float_prep @ 0xf56bb4
// > std::__ndk1::num_put>>::do_put @ 0xf56f90
// > std::__ndk1::__num_put::__widen_and_group_int @ 0xf57524
// > std::__ndk1::__num_put::__widen_and_group_int @ 0xf57538
// > std::__ndk1::__num_put::__widen_and_group_float @ 0xf58524
// > std::__ndk1::__num_put::__widen_and_group_float @ 0xf58538
// > std::__ndk1::num_put>>::do_put @ 0xf58f40
// > std::__ndk1::num_put>>::do_put @ 0xf5911c
// > std::__ndk1::__num_put::__widen_and_group_int @ 0xf594e0
// > std::__ndk1::__num_put::__widen_and_group_int @ 0xf594f4
// > std::__ndk1::__num_put::__widen_and_group_float @ 0xf5a478
// > std::__ndk1::__num_put::__widen_and_group_float @ 0xf5a48c
// > std::__ndk1::num_put>>::do_put @ 0xf5ae9c
// > std::__ndk1::time_get>>::get @ 0xf5b038
// > std::__ndk1::time_get>>::do_get_weekday @ 0xf5b580
// > std::__ndk1::time_get>>::do_get_monthname @ 0xf5b764
// > std::__ndk1::time_get>>::do_get_year @ 0xf5b930
// > std::__ndk1::time_get>>::do_get @ 0xf5ba90
// > std::__ndk1::time_get>>::get @ 0xf5cb7c
// > std::__ndk1::time_get>>::do_get_weekday @ 0xf5d0b0
// > std::__ndk1::time_get>>::do_get_monthname @ 0xf5d294
// > std::__ndk1::time_get>>::do_get_year @ 0xf5d460
// > std::__ndk1::time_get>>::do_get @ 0xf5d5c0
// > std::__ndk1::time_put>>::put @ 0xf600fc
// > std::__ndk1::time_put>>::put @ 0xf60998
// > std::__ndk1::money_get>>::do_get @ 0xf62e64
// > std::__ndk1::money_get>>::do_get @ 0xf64244
// > std::__ndk1::__money_get::__gather_info @ 0xf645f4
// > std::__ndk1::__money_get::__gather_info @ 0xf64640
// > std::__ndk1::money_get>>::do_get @ 0xf64c5c
// > std::__ndk1::money_get>>::do_get @ 0xf6605c
// > std::__ndk1::__money_get::__gather_info @ 0xf66420
// > std::__ndk1::__money_get::__gather_info @ 0xf66470
// > std::__ndk1::money_put>>::do_put @ 0xf66a84
// > std::__ndk1::__money_put::__gather_info @ 0xf66da8
// > std::__ndk1::__money_put::__gather_info @ 0xf66df8
// > std::__ndk1::money_put>>::do_put @ 0xf6777c
// > std::__ndk1::money_put>>::do_put @ 0xf67be4
// > std::__ndk1::__money_put::__gather_info @ 0xf67f10
// > std::__ndk1::__money_put::__gather_info @ 0xf67f64
// > std::__ndk1::money_put>>::do_put @ 0xf68940
// > ??> @ 0x8f5a8
//
// 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:38 +0000
//
__int64 __fastcall std::locale::use_facet(std::locale *this, std::locale::id *a2)
{
__int64 v3; // x20
__int64 v4; // x8
unsigned __int64 v5; // x9
__int64 result; // x0
std::bad_cast *exception; // x19
_QWORD v8[3]; // [xsp+0h] [xbp-40h] BYREF
_QWORD *v9; // [xsp+18h] [xbp-28h] BYREF
_QWORD v10[2]; // [xsp+20h] [xbp-20h] BYREF
v10[1] = *(_QWORD *)(_ReadStatusReg(TPIDR_EL0) + 40);
v3 = *(_QWORD *)this;
v8[0] = a2;
v8[1] = std::locale::id::__init;
v8[2] = 0;
if ( *(_QWORD *)a2 != -1 )
{
v9 = v10;
v10[0] = v8;
std::__call_once((volatile unsigned __int64 *)a2, &v9, (void (*)(void *))sub_F78A94);
}
v4 = *(_QWORD *)(v3 + 16);
v5 = *((int *)a2 + 2) - 1LL;
if ( (*(_QWORD *)(v3 + 24) - v4) >> 3 <= v5 || (result = *(_QWORD *)(v4 + 8 * v5)) == 0 )
{
exception = (std::bad_cast *)_cxa_allocate_exception(8u);
std::bad_cast::bad_cast(exception);
_cxa_throw(exception, (struct type_info *)&`typeinfo for'std::bad_cast, (void (*)(void *))std::bad_cast::~bad_cast);
}
_ReadStatusReg(TPIDR_EL0);
return result;
}