//
// FRequestProfilePage::updateModeButtons from 0x5f1110 to 0x5f1266 (342 bytes)
//
// 2 xrefs:
// > FRequestProfilePage::init @ 0x5f26b0
// > FRequestProfilePage::onSelectMode @ 0x5f2ede
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:27 +0000
//
int __fastcall FRequestProfilePage::updateModeButtons(cocos2d::CCPoint **this)
{
bool v2; // r2
float v3; // s16
int v4; // r9
int *v5; // r7
int i; // r4
int result; // r0
char *v8; // r0
int v9; // r0
int v10; // r6
int (__fastcall *v11)(int, _BYTE *); // [sp+Ch] [bp-40h]
cocos2d::CCPoint *v12; // [sp+1Ch] [bp-30h]
float v13[2]; // [sp+24h] [bp-28h] BYREF
_BYTE v14[8]; // [sp+2Ch] [bp-20h] BYREF
_BYTE v15[8]; // [sp+34h] [bp-18h] BYREF
_DWORD (*v16)(FRequestProfilePage *__hidden, cocos2d::CCObject *); // [sp+3Ch] [bp-10h]
int v17; // [sp+40h] [bp-Ch]
cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v13);
v3 = (float)((float)(v13[0] * 0.5) - 220.0) + 26.0;
if ( *((_BYTE *)this + 540) )
{
v4 = 1;
}
else if ( *((_BYTE *)this + 541) )
{
v4 = 2;
}
else
{
v4 = 0;
}
v5 = (int *)(this + 152);
for ( i = 0; i != 3; ++i )
{
if ( *v5 )
{
result = GameToolbox::setOnOffSprite(*v5, i == v4);
}
else
{
if ( i == 1 )
{
v8 = "threadBtn_sentOn_001.png";
}
else if ( i == 2 )
{
v8 = "threadBtn_ignoreOn_001.png";
}
else
{
v8 = "threadBtn_inboxOn_001.png";
}
v9 = GameToolbox::createOnOffSprite((GameToolbox *)v8, (const char *)(i == v4), v2);
v17 = 0;
v16 = FRequestProfilePage::onSelectMode;
*v5 = v9;
v10 = CCMenuItemSpriteExtra::create(v9, 0, (int)this, (int)FRequestProfilePage::onSelectMode, 0);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 36))(v10, i);
CCMenuItemSpriteExtra::setSizeMult(v10, 1.2);
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v10);
v11 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v10 + 92);
v12 = *(this + 111);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v3, (float)((float)(v13[1] * 0.5) + 68.0) - (float)(37 * i));
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v15, v12);
result = v11(v10, v15);
}
++v5;
}
return result;
}