//
// std::__ndk1::__shared_count::__add_shared from 0xf798a8 to 0xf798c0 (24 bytes)
//
// 24 xrefs:
// > sub_F6A1A8 @ 0xf6a2dc
// > sub_F6B084 @ 0xf6b114
// > sub_F6B1B0 @ 0xf6b2a8
// > sub_F6BF98 @ 0xf6c08c
// > sub_F6D268 @ 0xf6d2f0
// > sub_F6D268 @ 0xf6d328
// > sub_F6D408 @ 0xf6d428
// > sub_F6D62C @ 0xf6d6a4
// > std::__ndk1::locale::locale @ 0xf6d7b0
// > std::__ndk1::locale::locale @ 0xf6d7d8
// > std::__ndk1::locale::operator= @ 0xf6d800
// > std::__ndk1::locale::locale @ 0xf6d89c
// > std::__ndk1::locale::locale @ 0xf6d97c
// > std::__ndk1::locale::locale @ 0xf6da20
// > std::__ndk1::locale::locale @ 0xf6db10
// > std::__ndk1::locale::locale @ 0xf6db78
// > std::__ndk1::locale::__install_ctor @ 0xf6dbfc
// > std::__ndk1::locale::global @ 0xf6dc90
// > std::__ndk1::locale::global @ 0xf6dc98
// > sub_F86AE4 @ 0xf86b2c
// > std::__ndk1::__thread_struct::__make_ready_at_thread_exit @ 0xf86c80
// > std::__ndk1::future::future @ 0xf87a38
// > std::__ndk1::shared_future::operator= @ 0xf88258
// > ??> @ 0x511d8
//
// 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_count::__add_shared(__int64 this)
{
unsigned __int64 *v1; // x8
unsigned __int64 v2; // x9
v1 = (unsigned __int64 *)(this + 8);
do
v2 = __ldxr(v1);
while ( __stxr(v2 + 1, v1) );
return this;
}