//
// ProfilePage::followUserFailed from 0x1008a5600 to 0x1008a56ee (238 bytes)
//
// 2 xrefs:
// > sub_1008A5710 @ 0x1008a571c
// > ??> @ 0x100ba9bb8
//
// 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 12:37:16 +0000
//
void __fastcall ProfilePage::followUserFailed(__int64 a1, int a2, char a3)
{
__int64 v3; // rdi
__int64 v5; // rbx
__int64 v6; // rax
const char *v7; // rsi
__int64 v8; // rax
__int64 v9; // rax
__int128 v10; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
if ( *(_DWORD *)(a1 + 736) == a2 )
{
v3 = *(_QWORD *)(a1 + 808);
if ( v3 )
{
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1072LL))(v3);
v6 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v7 = "followBtnOn_001.png";
if ( a3 )
v7 = "followBtnOff_001.png";
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, v7);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 1160LL))(v5, v8);
}
if ( !(unsigned __int8)sub_1004E9BA0() )
{
__p = operator new(0x30u);
*(_QWORD *)&v10 = 49;
*((_QWORD *)&v10 + 1) = 45;
strcpy((char *)__p, "Something went wrong, please try again later.");
v9 = sub_100493AB0(0, (__int64)"Error", &v10, (__int64)"OK", 0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9);
if ( (v10 & 1) != 0 )
operator delete(__p);
}
}
}