//
// ProfilePage::setupComments from 0x140558640 to 0x14055883e (510 bytes)
//
// 2 xrefs:
// > ProfilePage::init @ 0x140551296
// > ??> @ 0x14092bf4c
//
// 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:34:12 +0000
//
__int64 __fastcall ProfilePage::setupComments(_QWORD *a1)
{
__int64 v2; // rax
float v3; // xmm9_4
struct cocos2d::CCSprite *v4; // rax
int v5; // ebx
cocos2d::CCObject *v6; // rax
__int64 v7; // rcx
__int64 *v8; // rsi
__int64 v9; // rbx
__int64 v10; // rdi
__int64 v11; // rax
__int64 v12; // rax
cocos2d::CCSprite *v13; // rbx
cocos2d::CCObject *v14; // rax
__int64 v15; // rcx
__int64 *v16; // rsi
__int64 v17; // rbx
__int64 v18; // rdi
__int64 v19; // rax
__int64 v20; // rax
float v22; // [rsp+50h] [rbp+8h] BYREF
float v23; // [rsp+54h] [rbp+Ch]
char v24; // [rsp+58h] [rbp+10h] BYREF
char v25; // [rsp+60h] [rbp+18h] BYREF
v2 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v2, &v22);
v3 = (float)(v23 * 0.5) - 53.0;
v4 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
v5 = (int)v4;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v4 + 160LL))(v4);
v6 = CCMenuItemSpriteExtra::create(v5, 0, (int)a1, (__int64)ProfilePage::onPrevPage);
v7 = a1[69];
a1[101] = v6;
(*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v7 + 464LL))(v7, v6);
v8 = (__int64 *)a1[101];
v9 = a1[69];
v10 = *v8;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, (float)(v22 * 0.5) - 195.0, v3);
cocos2d::CCNode::convertToNodeSpace(v9, &v25, v11);
(*(void (__fastcall **)(__int64 *, __int64))(v10 + 184))(v8, v12);
*(_DWORD *)(a1[101] + 372LL) = 0x40000000;
v13 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
cocos2d::CCSprite::setFlipX(v13, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v13 + 160LL))(v13);
v14 = CCMenuItemSpriteExtra::create((int)v13, 0, (int)a1, (__int64)ProfilePage::onNextPage);
v15 = a1[69];
a1[100] = v14;
(*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v15 + 464LL))(v15, v14);
v16 = (__int64 *)a1[100];
v17 = a1[69];
v18 = *v16;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, (float)(v22 * 0.5) + 195.0, v3);
cocos2d::CCNode::convertToNodeSpace(v17, &v25, v19);
(*(void (__fastcall **)(__int64 *, __int64))(v18 + 184))(v16, v20);
*(_DWORD *)(a1[100] + 372LL) = 0x40000000;
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)a1[101] + 336LL))(a1[101], 0);
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)a1[100] + 336LL))(a1[100], 0);
}