//
// ProfilePage::followUserFailed from 0x140558510 to 0x14055863d (301 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407d87a0
// > ??> @ 0x14092bf40
//
// This function is hookable on this platform (idp: pc, 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:34:12 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall ProfilePage::followUserFailed(__int64 a1, int a2, char a3)
{
__int64 v3; // rcx
__int64 v4; // rax
cocos2d::CCObject *v5; // rbx
__int128 v6; // [rsp+50h] [rbp-48h] BYREF
__int64 v7; // [rsp+60h] [rbp-38h]
__int64 v8; // [rsp+68h] [rbp-30h]
_BYTE v9[40]; // [rsp+70h] [rbp-28h] BYREF
v3 = a1 - 720;
if ( a2 == *(_DWORD *)(v3 + 736) )
{
ProfilePage::updateFollowButton(v3, a3 ^ 1);
if ( !byte_1409097D9 )
{
v6 = 0;
*(_QWORD *)&v6 = sub_14003D460(0x30u);
v7 = 45;
v8 = 47;
strcpy((char *)v6, "Something went wrong, please try again later.");
v4 = sub_14003F4F0((__int64)v9, (__int64)&v6);
v5 = FLAlertLayer::create(0, (int)"Error", v4, (__int64)"OK", 0, 1132068864, 0, 0, 1065353216);
sub_14003D310((__int64)&v6);
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v5 + 1064LL))(v5);
}
}
}