//
// ProfilePage::setupComments from 0x1007b92c0 to 0x1007b94b9 (505 bytes)
//
// 1 xrefs:
// > ProfilePage::init @ 0x1007b8d2f
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall ProfilePage::setupComments(ProfilePage *a1)
{
cocos2d::CCDirector *v2; // rsi
cocos2d::CCSprite *v3; // r15
CCMenuItemSpriteExtra *v4; // rax
CCMenuItemSpriteExtra *m_leftArrow; // r15
cocos2d::CCMenu *m_buttonMenu; // r12
cocos2d::CCSprite *v7; // r14
CCMenuItemSpriteExtra *v8; // rax
CCMenuItemSpriteExtra *m_rightArrow; // r14
cocos2d::CCMenu *v10; // r15
char v11; // [rsp+Ch] [rbp-44h] BYREF
float v12[2]; // [rsp+14h] [rbp-3Ch] BYREF
float v13[2]; // [rsp+1Ch] [rbp-34h] BYREF
float v14; // [rsp+24h] [rbp-2Ch]
double v15; // 0:xmm0_8.8
double v16; // 0:xmm0_8.8
v2 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v13);
v14 = (float)(v13[1] * 0.5) + -53.0;
v3 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCDirector *, float))v3->setScale)(v3, v2, 0.80000001);
v4 = CCMenuItemSpriteExtra::create(
v3,
nullptr,
a1,
(cocos2d::SEL_MenuHandler)(unsigned __int64)ProfilePage::onPrevPage);
a1->m_leftArrow = v4;
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v4);
m_leftArrow = a1->m_leftArrow;
m_buttonMenu = a1->m_buttonMenu;
sub_10028CBE0(v12, (float)(v13[0] * 0.5) + -195.0, v14);
*(cocos2d::CCPoint *)&v15 = cocos2d::CCNode::convertToNodeSpace(
(cocos2d::CCNode *)&v11,
(const cocos2d::CCPoint *)m_buttonMenu);
((void (__fastcall *)(CCMenuItemSpriteExtra *, char *, double))m_leftArrow->setPosition)(m_leftArrow, &v11, v15);
CCMenuItemSpriteExtra::setSizeMult(a1->m_leftArrow, 2.0);
v7 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
cocos2d::CCSprite::setFlipX(v7, 1);
((void (__fastcall *)(cocos2d::CCSprite *, float))v7->setScale)(v7, 0.80000001);
v8 = CCMenuItemSpriteExtra::create(
v7,
nullptr,
a1,
(cocos2d::SEL_MenuHandler)(unsigned __int64)ProfilePage::onNextPage);
a1->m_rightArrow = v8;
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v8);
m_rightArrow = a1->m_rightArrow;
v10 = a1->m_buttonMenu;
sub_10028CBE0(v12, (float)(0.5 * v13[0]) + 195.0, v14);
*(cocos2d::CCPoint *)&v16 = cocos2d::CCNode::convertToNodeSpace(
(cocos2d::CCNode *)&v11,
(const cocos2d::CCPoint *)v10);
((void (__fastcall *)(CCMenuItemSpriteExtra *, char *, double))m_rightArrow->setPosition)(m_rightArrow, &v11, v16);
CCMenuItemSpriteExtra::setSizeMult(a1->m_rightArrow, 2.0);
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_leftArrow->setVisible)(a1->m_leftArrow, 0);
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_rightArrow->setVisible)(a1->m_rightArrow, 0);
}