//
// ProfilePage::followUserFinished from 0x10022fc24 to 0x10022fdc4 (416 bytes)
//
// 2 xrefs:
// > sub_10022FDF8 @ 0x10022fdfc
// > ??> @ 0x1008ff6d8
//
// 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:01:16 +0000
//
void __fastcall ProfilePage::followUserFinished(__int64 a1, int a2, int a3)
{
__int64 v6; // x0
__int64 v7; // x0
int v8; // w22
__int64 v9; // x0
__int64 v10; // x0
__int64 v11; // x0
__int64 v12; // x2
__int64 v13; // x0
__int64 v14; // x0
__int64 v15; // x2
__int64 v16; // x0
__int64 v17; // x0
__int64 v18; // x2
__int64 v19; // x1
int v20; // w8
int v21; // w8
char *v22; // x20
__int64 v23; // x0
void *__p[2]; // [xsp+0h] [xbp-60h] BYREF
char v25; // [xsp+17h] [xbp-49h]
void *v26[2]; // [xsp+18h] [xbp-48h] BYREF
char v27; // [xsp+2Fh] [xbp-31h]
if ( a3 )
{
v6 = GameLevelManager::sharedState();
v7 = cocos2d::CCDictionary::count(*(_QWORD *)(v6 + 776));
v8 = v7;
v9 = GameManager::sharedState(v7);
v10 = GameManager::reportAchievementWithID(v9, "geometry.ach.followCreator", 100, 0);
v11 = GameManager::sharedState(v10);
LODWORD(v12) = vcvtms_s32_f32((float)((float)v8 / 10.0) * 100.0);
v13 = GameManager::reportAchievementWithID(v11, "geometry.ach.followCreator02", v12, 0);
v14 = GameManager::sharedState(v13);
LODWORD(v15) = vcvtms_s32_f32((float)((float)v8 / 25.0) * 100.0);
v16 = GameManager::reportAchievementWithID(v14, "geometry.ach.followCreator03", v15, 0);
v17 = GameManager::sharedState(v16);
LODWORD(v18) = vcvtms_s32_f32((float)((float)v8 / 50.0) * 100.0);
GameManager::reportAchievementWithID(v17, "geometry.ach.followCreator04", v18, 0);
}
if ( *(_DWORD *)(a1 + 736) == a2 )
{
v19 = *(_QWORD *)(a1 + 728);
if ( v19 )
{
*(_BYTE *)(v19 + 720) = a3;
v20 = *(_DWORD *)(v19 + 712);
if ( a3 )
v21 = v20 + 1;
else
v21 = v20 - 1;
*(_DWORD *)(v19 + 712) = v21 & ~(v21 >> 31);
if ( a3 )
v22 = "Following";
else
v22 = "Unfollowed";
ProfilePage::loadPageFromUserInfo(a1, v19);
sub_100009900(v26, v22);
sub_100009900(__p, "");
v23 = TextAlertPopup::create(v26, 150, __p, 0.5, 0.6);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v23, 100);
if ( v25 < 0 )
operator delete(__p[0]);
if ( v27 < 0 )
operator delete(v26[0]);
}
}
}