// // ProfilePage::onFollow from 0xa55508 to 0xa55634 (300 bytes) // // 3 xrefs: // > @ 0xc51b8 // > ProfilePage::init @ 0xa5c2f8 // > @ 0x1545c38 // // 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:07 +0000 // __int64 __fastcall ProfilePage::onFollow(ProfilePage *this, cocos2d::CCObject *a2) { __int64 v3; // x0 GameLevelManager *v4; // x0 GameLevelManager *v5; // x0 _BOOL8 isFollowingUser; // x0 bool v7; // w21 GameLevelManager *v8; // x0 unsigned __int8 v9; // w21 GameLevelManager *v10; // x0 __int64 v12; // x0 __int64 v13[2]; // [xsp+30h] [xbp+30h] BYREF void *v14; // [xsp+40h] [xbp+40h] v3 = GJAccountManager::sharedState(_stack_chk_guard); v4 = (GameLevelManager *)(unsigned int)(*(_DWORD *)(v3 + 352) - *(_DWORD *)(v3 + 356)); if ( (int)v4 <= 0 ) { v13[0] = 0; v13[1] = 0; v14 = nullptr; std::string::__init(v13, "You need an account to follow this user.", 0x30u); v12 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Follow", (char *)v13, (ButtonSprite *)"OK", nullptr); (*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 1312LL))(v12); if ( (v13[0] & 1) != 0 ) operator delete(v14); } else { v5 = (GameLevelManager *)GameLevelManager::sharedState(v4); isFollowingUser = GameLevelManager::isFollowingUser(v5, (const char *)*((unsigned int *)this + 184)); v7 = isFollowingUser; v8 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)isFollowingUser); v9 = !v7; *((_QWORD *)v8 + 58) = (char *)this + 720; v10 = (GameLevelManager *)GameLevelManager::sharedState(v8); if ( (unsigned __int8)GameLevelManager::followUserOnline(v10, (const char *)*((unsigned int *)this + 184), v9) ) ProfilePage::updateFollowButton(this, v9); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source