//
// ProfilePage::followUserFailed from 0x5f6fc8 to 0x5f7040 (120 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'ProfilePage::followUserFailed @ 0x5f7054
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:31 +0000
//
ProfilePage *__fastcall ProfilePage::followUserFailed(ProfilePage *this, int a2, int a3)
{
GameToolbox *updated; // r0
int *v4; // r0
int v5[3]; // [sp+8h] [bp-10h] BYREF
if ( a2 == *((_DWORD *)this + 139) )
{
updated = (GameToolbox *)ProfilePage::updateFollowButton(this, a3 ^ 1);
this = (ProfilePage *)GameToolbox::lastResponseHadServerPopup(updated);
if ( !this )
{
memset(v5, 0, sizeof(v5));
std::string::__init(v5, "Something went wrong, please try again later.", 0x2Du);
v4 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Error", (int)v5, (ButtonSprite *)"OK", nullptr);
(*(void (__fastcall **)(int *))(*v4 + 656))(v4);
return (ProfilePage *)std::string::~string((int)v5);
}
}
return this;
}