//
// FriendPickerPopup::onToggleSelectedView from 0x1400e7980 to 0x1400e79d3 (83 bytes)
//
// 2 xrefs:
// > FriendPickerPopup::init @ 0x1400e744a
// > ??> @ 0x140914d38
//
// 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 11:26:33 +0000
//
__int64 __fastcall FriendPickerPopup::onToggleSelectedView(__int64 a1)
{
char v1; // r8
__int64 v3; // rcx
__int64 v4; // rcx
__int64 v5; // rdx
v1 = *(_BYTE *)(a1 + 864);
*(_BYTE *)(a1 + 864) = v1 == 0;
v3 = *(_QWORD *)(a1 + 888);
if ( v3 )
{
v4 = v3 + 320;
v5 = 140;
if ( !v1 )
v5 = 255;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 40LL))(v4, v5);
}
return FriendPickerPopup::buildRows(a1);
}