// // ProfilePage::followUserFinished from 0xa5c8ec to 0xa5cb40 (596 bytes) // // 3 xrefs: // > `non-virtual thunk to'ProfilePage::followUserFinished @ 0xa5cb50 // > @ 0xd66a8 // > @ 0x148cfd8 // // 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:00:12 +0000 // __int64 __fastcall ProfilePage::followUserFinished(ProfilePage *this, int a2, unsigned __int8 a3) { int v4; // w22 __int64 v7; // x0 __int64 v8; // x2 int v9; // w0 int v10; // w1 const char *v11; // x1 void (__fastcall *v12)(ProfilePage *, __int64, __int64); // x23 size_t v13; // x0 __int64 v14; // x0 __int64 v15; // x0 GameManager *v16; // x0 int v17; // w21 GameManager *v18; // x0 GameManager *v19; // x0 GameManager *v20; // x0 GameManager *v21; // x0 GameManager *v22; // x0 GameManager *v23; // x0 GameManager *v24; // x0 int v25; // w1 char *v26; // [xsp+58h] [xbp+58h] __int64 v27[2]; // [xsp+68h] [xbp+68h] BYREF void *v28; // [xsp+78h] [xbp+78h] __int64 v29[2]; // [xsp+80h] [xbp+80h] BYREF void *v30; // [xsp+90h] [xbp+90h] v4 = a3; if ( a3 ) { v15 = GameLevelManager::sharedState(_stack_chk_guard); v16 = (GameManager *)cocos2d::CCDictionary::count(*(cocos2d::CCDictionary **)(v15 + 776)); v17 = (int)v16; v18 = (GameManager *)GameManager::sharedState(v16); v19 = (GameManager *)GameManager::reportAchievementWithID(v18, "geometry.ach.followCreator", 100, 0); v20 = (GameManager *)GameManager::sharedState(v19); v21 = (GameManager *)GameManager::reportAchievementWithID( v20, "geometry.ach.followCreator02", vcvtms_s32_f32((float)((float)v17 / 10.0) * 100.0), 0); v22 = (GameManager *)GameManager::sharedState(v21); v23 = (GameManager *)GameManager::reportAchievementWithID( v22, "geometry.ach.followCreator03", vcvtms_s32_f32((float)((float)v17 / 25.0) * 100.0), 0); v24 = (GameManager *)GameManager::sharedState(v23); GameManager::reportAchievementWithID( v24, "geometry.ach.followCreator04", vcvtms_s32_f32((float)((float)v17 / 50.0) * 100.0), 0); } if ( *((_DWORD *)this + 184) == a2 ) { v7 = *((_QWORD *)this + 91); if ( v7 ) { *(_BYTE *)(v7 + 720) = v4; v8 = *((_QWORD *)this + 91); v9 = *(_DWORD *)(v8 + 712); if ( v4 ) { v10 = v9 + 1; if ( v9 + 1 < 0 ) v10 = 0; *(_DWORD *)(v8 + 712) = v10; ProfilePage::loadPageFromUserInfo(this, *((GJUserScore **)this + 91)); v11 = "Following"; v12 = *(void (__fastcall **)(ProfilePage *, __int64, __int64))(*(_QWORD *)this + 464LL); } else { v25 = v9 - 1; if ( v9 - 1 < 0 ) v25 = 0; *(_DWORD *)(v8 + 712) = v25; ProfilePage::loadPageFromUserInfo(this, *((GJUserScore **)this + 91)); v11 = "Unfollowed"; v12 = *(void (__fastcall **)(ProfilePage *, __int64, __int64))(*(_QWORD *)this + 464LL); } v26 = (char *)v11; v27[0] = 0; v27[1] = 0; v28 = nullptr; v13 = strlen(v11); std::string::__init(v27, v26, v13); v29[0] = 0; v29[1] = 0; v30 = nullptr; std::string::__init(v29, &byte_11B8890, 0); v14 = TextAlertPopup::create((char *)v27, 150, (char *)v29, 0.5, 0.6); v12(this, v14, 100); if ( (v29[0] & 1) != 0 ) operator delete(v30); if ( (v27[0] & 1) != 0 ) operator delete(v28); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source