//
// FRequestProfilePage::updateModeButtons from 0xa4c58c to 0xa4c774 (488 bytes)
//
// 3 xrefs:
// > FRequestProfilePage::init @ 0xa4e620
// > FRequestProfilePage::onSelectMode @ 0xa4f078
// > ??> @ 0xc8920
//
// 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:03 +0000
//
__int64 __fastcall FRequestProfilePage::updateModeButtons(FRequestProfilePage *this)
{
int v2; // w22
cocos2d::CCDirector *v3; // x0
float v4; // s8
__int64 *v5; // x20
int v6; // w28
unsigned int i; // w19
char *v9; // x0
__int64 v10; // x0
__int64 v11; // x27
cocos2d::CCNode *v12; // [xsp+80h] [xbp+80h]
void (__fastcall *v13)(__int64, __int64 *); // [xsp+88h] [xbp+88h]
__int64 v14; // [xsp+90h] [xbp+90h] BYREF
_BYTE v15[8]; // [xsp+98h] [xbp+98h] BYREF
__int64 v16; // [xsp+A0h] [xbp+A0h] BYREF
v2 = 1;
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
cocos2d::CCDirector::getWinSize(&v14, v3);
v4 = (float)((float)(*(float *)&v14 * 0.5) + -220.0) + 26.0;
if ( !*((_BYTE *)this + 704) )
{
if ( *((_BYTE *)this + 705) )
v2 = 2;
else
v2 = 0;
}
v5 = (__int64 *)((char *)this + 840);
v6 = 0;
for ( i = 0; i != 3; ++i )
{
if ( *v5 )
{
GameToolbox::setOnOffSprite(*v5, i == v2);
}
else
{
if ( i == 1 )
{
v9 = "threadBtn_sentOn_001.png";
}
else if ( i == 2 )
{
v9 = "threadBtn_ignoreOn_001.png";
}
else
{
v9 = "threadBtn_inboxOn_001.png";
}
v10 = GameToolbox::createOnOffSprite((GameToolbox *)v9, (const char *)(i == v2));
*v5 = v10;
v11 = CCMenuItemSpriteExtra::create(v10, 0, (__int64)this, (__int64)FRequestProfilePage::onSelectMode, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v11 + 72LL))(v11, i);
CCMenuItemSpriteExtra::setSizeMult(v11, 1.2);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v11);
v13 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v11 + 184LL);
v12 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v15,
v4,
(float)((float)(*((float *)&v14 + 1) * 0.5) + 68.0) - (float)v6);
cocos2d::CCNode::convertToNodeSpace(&v16, v12, (const cocos2d::CCPoint *)v15);
v13(v11, &v16);
}
++v5;
v6 += 37;
}
return _stack_chk_guard;
}