//
// std::__ndk1::locale::has_facet from 0xf6ddb4 to 0xf6de6c (184 bytes)
//
// 2 xrefs:
// > std::__ndk1::basic_filebuf>::basic_filebuf @ 0xdb7e0c
// > ??> @ 0x7a170
//
// 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:37 +0000
//
bool __fastcall std::locale::has_facet(std::locale *this, std::locale::id *a2)
{
__int64 v3; // x20
__int64 v4; // x8
unsigned __int64 v5; // x9
_BOOL8 result; // x0
_QWORD v7[3]; // [xsp+0h] [xbp-40h] BYREF
_QWORD *v8; // [xsp+18h] [xbp-28h] BYREF
_QWORD v9[2]; // [xsp+20h] [xbp-20h] BYREF
v9[1] = *(_QWORD *)(_ReadStatusReg(TPIDR_EL0) + 40);
v3 = *(_QWORD *)this;
v7[0] = a2;
v7[1] = std::locale::id::__init;
v7[2] = 0;
if ( *(_QWORD *)a2 != -1 )
{
v8 = v9;
v9[0] = v7;
std::__call_once((volatile unsigned __int64 *)a2, &v8, (void (*)(void *))sub_F78A94);
}
v4 = *(_QWORD *)(v3 + 16);
v5 = *((int *)a2 + 2) - 1LL;
result = (*(_QWORD *)(v3 + 24) - v4) >> 3 > v5 && *(_QWORD *)(v4 + 8 * v5) != 0;
_ReadStatusReg(TPIDR_EL0);
return result;
}