//
// FriendsProfilePage::onSwitchList from 0x5f47b8 to 0x5f480c (84 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:30 +0000
//
cocos2d::CCDirector *__fastcall FriendsProfilePage::onSwitchList(cocos2d::CCObject **this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *result; // r0
int v4; // r5
int v5; // r0
cocos2d::CCTouchDispatcher *v6; // r0
cocos2d::CCDirector *v7; // r0
int v8; // r0
cocos2d::CCTouchDispatcher *v9; // r0
int *v10; // r0
result = (cocos2d::CCDirector *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v4 = (int)result;
if ( result != *(this + 154) )
{
v5 = cocos2d::CCDirector::sharedDirector(result);
v6 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v5 + 80))(v5);
v7 = (cocos2d::CCDirector *)cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, *(this + 156));
v8 = cocos2d::CCDirector::sharedDirector(v7);
v9 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v8 + 80))(v8);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v9, (cocos2d::CCObject *)this);
v10 = FriendsProfilePage::create(v4);
(*(void (__fastcall **)(int *))(*v10 + 656))(v10);
return (cocos2d::CCDirector *)PagedListPopup::onClose((PagedListPopup *)this, nullptr);
}
return result;
}