//
// ProfilePage::followUserFailed from 0xa55634 to 0xa55718 (228 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'ProfilePage::followUserFailed @ 0xa5571c
// > ??> @ 0x93c28
// > ??> @ 0x148cfe0
//
// 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::followUserFailed(ProfilePage *this, int a2, char a3)
{
GameToolbox *updated; // x0
__int64 v5; // x0
__int64 v6[2]; // [xsp+20h] [xbp+20h] BYREF
void *v7; // [xsp+30h] [xbp+30h]
if ( *((_DWORD *)this + 184) == a2 )
{
updated = (GameToolbox *)ProfilePage::updateFollowButton(this, a3 ^ 1u);
if ( !(unsigned __int8)GameToolbox::lastResponseHadServerPopup(updated) )
{
v6[0] = 0;
v6[1] = 0;
v7 = nullptr;
std::string::__init(v6, "Something went wrong, please try again later.", 0x2Du);
v5 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Error", (char *)v6, (ButtonSprite *)"OK", nullptr);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
if ( (v6[0] & 1) != 0 )
operator delete(v7);
}
}
return _stack_chk_guard;
}