//
// sub_10022E1F8 from 0x10022e1f8 to 0x10022e260 (104 bytes)
//
// 3 xrefs:
// > sub_10022AD00 @ 0x10022ad74
// > ProfilePage::loadPageFromUserInfo @ 0x10022b48c
// > ProfilePage::followUserFailed @ 0x10022fe20
//
// 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 11:01:15 +0000
//
__int64 __fastcall sub_10022E1F8(__int64 a1, int a2)
{
__int64 result; // x0
__int64 v4; // x20
__int64 v5; // x0
const char *v6; // x1
__int64 v7; // x1
result = *(_QWORD *)(a1 + 808);
if ( result )
{
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 1072LL))(result);
v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v4);
if ( a2 )
v6 = "followBtnOn_001.png";
else
v6 = "followBtnOff_001.png";
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v6);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 1160LL))(v4, v7);
}
return result;
}