//
// FriendsProfilePage::onSwitchList from 0xa514f0 to 0xa51584 (148 bytes)
//
// 3 xrefs:
// > ??> @ 0x8f968
// > FriendsProfilePage::init @ 0xa509a0
// > ??> @ 0x1543d28
//
// 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:05 +0000
//
__int64 __fastcall FriendsProfilePage::onSwitchList(cocos2d::CCObject **this, cocos2d::CCObject *a2)
{
int v3; // w20
__int64 result; // x0
__int64 v5; // x0
cocos2d::CCTouchDispatcher *v6; // x0
cocos2d::CCDirector *v7; // x0
__int64 v8; // x0
cocos2d::CCTouchDispatcher *v9; // x0
__int64 v10; // x0
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
result = *((unsigned int *)this + 204);
if ( (_DWORD)result != v3 )
{
v5 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)result);
v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);
v7 = (cocos2d::CCDirector *)cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, *(this + 104));
v8 = cocos2d::CCDirector::sharedDirector(v7);
v9 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 160LL))(v8);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v9, (cocos2d::CCObject *)this);
v10 = FriendsProfilePage::create(v3);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 1312LL))(v10);
return PagedListPopup::onClose((PagedListPopup *)this, nullptr);
}
return result;
}