//
// ProfilePage::updateFollowButton from 0x140557c50 to 0x140557ccb (123 bytes)
//
// 6 xrefs:
// > ProfilePage::loadPageFromUserInfo @ 0x140552f1a
// > ProfilePage::onFollow @ 0x140557c2a
// > ProfilePage::followUserFailed @ 0x140558534
// > ??> @ 0x1408da508
// > ??> @ 0x1408da518
// > ??> @ 0x14092bf10
//
// 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:11 +0000
//
void __fastcall ProfilePage::updateFollowButton(__int64 a1, char a2)
{
__int64 v2; // rcx
const char *v4; // rbx
__int64 v5; // rdx
__int64 v6; // rcx
__int64 *v7; // rsi
__int64 v8; // rdi
cocos2d::CCSpriteFrameCache *v9; // rax
struct cocos2d::CCSpriteFrame *v10; // rax
v2 = *(_QWORD *)(a1 + 816);
if ( v2 )
{
v4 = "followBtnOff_001.png";
v7 = (__int64 *)(*(__int64 (**)(void))(*(_QWORD *)v2 + 952LL))();
v8 = *v7;
if ( a2 )
v4 = "followBtnOn_001.png";
v9 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v6, v5);
v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, v4);
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v8 + 1008))(v7, v10);
}
}