//
// FriendsProfilePage::onSwitchList from 0x100272264 to 0x1002722f8 (148 bytes)
//
// 1 xrefs:
// > FriendsProfilePage::init @ 0x100271b50
//
// 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:47 +0000
//
__int64 __fastcall FriendsProfilePage::onSwitchList(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 v4; // x20
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x0
char *v9; // x0
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result != *(_DWORD *)(a1 + 816) )
{
v4 = result;
v5 = cocos2d::CCDirector::sharedDirector();
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, *(_QWORD *)(a1 + 832));
v7 = cocos2d::CCDirector::sharedDirector();
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 160LL))(v7);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v8, a1);
v9 = FriendsProfilePage::create(v4);
(*(void (__fastcall **)(char *))(*(_QWORD *)v9 + 1312LL))(v9);
return PagedListPopup::onClose(a1, 0);
}
return result;
}