//
// sub_10051B0F8 from 0x10051b0f8 to 0x10051b164 (108 bytes)
//
// 11 xrefs:
// > FriendsProfilePage::init @ 0x1002721ec
// > sub_1002722F8 @ 0x1002723a0
// > FriendsProfilePage::forceReloadList @ 0x100273864
// > FriendPickerPopup::init @ 0x100503684
// > sub_1005037D4 @ 0x100503890
// > MemberListPopup::init @ 0x100507064
// > InvitesPopup::init @ 0x10050eae0
// > InvitesPopup::threadUpdateFailed @ 0x100510aec
// > sub_10051AFD0 @ 0x10051b068
// > AccountReviewPopup::reviewChoicePicked @ 0x10054a438
// > sub_10054A744 @ 0x10054a88c
//
// 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 11:07:08 +0000
//
__int64 __fastcall sub_10051B0F8(__int64 a1)
{
__int64 v2; // x0
_DWORD *v3; // x0
_QWORD *v4; // x0
v2 = *(_QWORD *)(a1 + 696);
if ( v2 )
{
LoadingCircle::fadeAndRemove(v2);
v3 = *(_DWORD **)(a1 + 696);
if ( v3 )
{
cocos2d::CCObject::release(v3);
*(_QWORD *)(a1 + 696) = 0;
}
}
v4 = LoadingCircle::create();
*(_QWORD *)(a1 + 696) = v4;
v4[69] = *(_QWORD *)(a1 + 584);
*((_BYTE *)v4 + 560) = 0;
cocos2d::CCObject::retain((__int64)v4);
LoadingCircle::show(*(_QWORD *)(a1 + 696));
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(*(_QWORD *)(a1 + 696) + 544LL) + 184LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 696) + 544LL),
a1 + 712);
}