// // std::__ndk1::locale::global from 0xf6dc14 to 0xf6ddb4 (416 bytes) // // 1 xrefs: // > @ 0xb07e8 // // 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 // void __usercall std::locale::global(std::__shared_count **this@, _QWORD *a2@) { unsigned __int8 v5; // w9 std::__shared_count **v6; // x22 std::__shared_count *v7; // x0 _QWORD *v8; // x1 unsigned __int64 v9; // x8 int v10; // w20 const char *v11; // x1 char v12; // [xsp+8h] [xbp-58h] BYREF _BYTE v13[23]; // [xsp+9h] [xbp-57h] BYREF _BYTE v14[8]; // [xsp+20h] [xbp-40h] BYREF unsigned __int64 v15; // [xsp+28h] [xbp-38h] __int64 v16; // [xsp+38h] [xbp-28h] v16 = *(_QWORD *)(_ReadStatusReg(TPIDR_EL0) + 40); v5 = atomic_load((unsigned __int8 *)&byte_15649A8); if ( (v5 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_15649A8) ) { sub_F6D62C(); qword_15649A0 = (__int64)&qword_1564998; _cxa_guard_release((__guard *)&byte_15649A8); } v6 = (std::__shared_count **)qword_15649A0; v7 = *(std::__shared_count **)qword_15649A0; *a2 = *(_QWORD *)qword_15649A0; std::__shared_count::__add_shared(v7); std::__shared_count::__add_shared(*this); std::__shared_count::__release_shared(*v6); v8 = (_QWORD *)((char *)*this + 288); *v6 = *this; std::string::basic_string((unsigned __int64)v14, v8); if ( (v14[0] & 1) != 0 ) v9 = v15; else v9 = (unsigned __int64)v14[0] >> 1; if ( v9 == 1 ) { v10 = std::string::compare((__int64)v14, 0, 0xFFFFFFFFFFFFFFFFLL, "*", 1u); std::string::~string((__int64)v14); if ( !v10 ) goto LABEL_15; } else { std::string::~string((__int64)v14); } std::string::basic_string((unsigned __int64)&v12, (_QWORD *)*v6 + 36); if ( (v12 & 1) != 0 ) v11 = *(const char **)&v13[15]; else v11 = v13; setlocale(6, v11); std::string::~string((__int64)&v12); LABEL_15: _ReadStatusReg(TPIDR_EL0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source