// // std::__ndk1::__shared_weak_count::lock from 0xf799d0 to 0xf79a14 (68 bytes) // // 1 xrefs: // > @ 0x49450 // // 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:44 +0000 // __int64 __fastcall std::__shared_weak_count::lock(__int64 this) { unsigned __int64 *v1; // x8 unsigned __int64 v2; // x9 unsigned __int64 v3; // x10 v1 = (unsigned __int64 *)(this + 8); v2 = atomic_load((unsigned __int64 *)(this + 8)); if ( v2 != -1 ) { do { v3 = __ldaxr(v1); if ( v3 == v2 ) { if ( !__stlxr(v2 + 1, v1) ) return this; } else { __clrex(); } v2 = v3; } while ( v3 != -1 ); } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source