//
// FRequestProfilePage::onSelectMode from 0xa4eff4 to 0xa4f0cc (216 bytes)
//
// 3 xrefs:
// > ??> @ 0xa8f10
// > FRequestProfilePage::updateModeButtons @ 0xa4c6bc
// > ??> @ 0x1544c18
//
// 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:04 +0000
//
__int64 __fastcall FRequestProfilePage::onSelectMode(FRequestProfilePage *this, cocos2d::CCObject *a2)
{
int v3; // w0
int v4; // w20
int v5; // w21
__int64 v6; // x0
const char *v7; // x1
__int64 result; // x0
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = v3 == 1;
v5 = v3 == 2;
if ( *((unsigned __int8 *)this + 704) != v4 || (result = *((unsigned __int8 *)this + 705), (_DWORD)result != v5) )
{
FRequestProfilePage::exitGlobalMode((__int64)this);
*((_BYTE *)this + 704) = v4;
v6 = *((_QWORD *)this + 96);
*((_BYTE *)this + 705) = v5;
if ( v4 )
{
v7 = "Sent Requests";
}
else if ( v5 )
{
v7 = "Ignored Requests";
}
else
{
v7 = "Friend Requests";
}
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v6 + 928LL))(v6, v7);
cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 96), 185.0, 0.8, 0.0);
FRequestProfilePage::updateModeButtons(this);
return FRequestProfilePage::loadPage(this, 0);
}
return result;
}