//
// std::__ndk1::locale::id::__get from 0xf6de6c to 0xf6def8 (140 bytes)
//
// 1 xrefs:
// > ??> @ 0xa7638
//
// 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
//
__int64 __fastcall std::locale::id::__get(std::locale::id *this)
{
__int64 v2; // x8
_QWORD v4[3]; // [xsp+0h] [xbp-40h] BYREF
_QWORD *v5; // [xsp+18h] [xbp-28h] BYREF
_QWORD v6[2]; // [xsp+20h] [xbp-20h] BYREF
v6[1] = *(_QWORD *)(_ReadStatusReg(TPIDR_EL0) + 40);
v4[0] = this;
v4[1] = std::locale::id::__init;
v4[2] = 0;
if ( *(_QWORD *)this != -1 )
{
v5 = v6;
v6[0] = v4;
std::__call_once((volatile unsigned __int64 *)this, &v5, (void (*)(void *))sub_F78A94);
}
v2 = *((int *)this + 2);
_ReadStatusReg(TPIDR_EL0);
return v2 - 1;
}