//
// FriendsProfilePage::onSwitchList from 0x100735ae0 to 0x100735b61 (129 bytes)
//
// 4 xrefs:
// > FriendsProfilePage::init @ 0x10073512d
// > FriendsProfilePage::init @ 0x1007351e5
// > FriendsProfilePage::init @ 0x100735298
// > FriendsProfilePage::init @ 0x10073534b
//
// 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 12:36:24 +0000
//
__int64 __fastcall FriendsProfilePage::onSwitchList(__int64 a1, __int64 a2)
{
__int64 result; // rax
unsigned int v3; // r14d
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // rax
__int64 v7; // rax
char *v8; // rax
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result != *(_DWORD *)(a1 + 816) )
{
v3 = result;
v4 = cocos2d::CCDirector::sharedDirector();
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 160LL))(v4);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, *(_QWORD *)(a1 + 832));
v6 = cocos2d::CCDirector::sharedDirector();
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 160LL))(v6);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, a1);
v8 = FriendsProfilePage::create(v3);
(*(void (__fastcall **)(char *))(*(_QWORD *)v8 + 1312LL))(v8);
return PagedListPopup::onClose(a1, 0);
}
return result;
}