//
// ProfilePage::setupComments from 0xa542b0 to 0xa544d4 (548 bytes)
//
// 2 xrefs:
// > ProfilePage::init @ 0xa5bfe4
// > ??> @ 0xec488
//
// 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:06 +0000
//
__int64 __fastcall ProfilePage::setupComments(ProfilePage *this)
{
cocos2d::CCDirector *v2; // x0
float v3; // s8
const char *v4; // x1
__int64 v5; // x20
__int64 v6; // x0
__int64 v7; // x24
cocos2d::CCNode *v8; // x26
void (__fastcall *v9)(__int64, __int64 *); // x25
const char *v10; // x1
cocos2d::CCSprite *v11; // x23
__int64 v12; // x0
__int64 v13; // x23
cocos2d::CCNode *v14; // x25
void (__fastcall *v15)(__int64, __int64 *); // x24
__int64 v17; // [xsp+70h] [xbp+70h] BYREF
_BYTE v18[8]; // [xsp+78h] [xbp+78h] BYREF
__int64 v19; // [xsp+80h] [xbp+80h] BYREF
v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
cocos2d::CCDirector::getWinSize(&v17, v2);
v3 = (float)(*((float *)&v17 + 1) * 0.5) + -53.0;
v5 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v4);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 160LL))(v5, 0.8);
v6 = CCMenuItemSpriteExtra::create(v5, 0, (__int64)this, (__int64)ProfilePage::onPrevPage, 0);
*((_QWORD *)this + 100) = v6;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v6);
v7 = *((_QWORD *)this + 100);
v8 = *((cocos2d::CCNode **)this + 69);
v9 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v7 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, (float)(*(float *)&v17 * 0.5) + -195.0, v3);
cocos2d::CCNode::convertToNodeSpace(&v19, v8, (const cocos2d::CCPoint *)v18);
v9(v7, &v19);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 100), 2.0);
v11 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_arrow_01_001.png",
v10);
cocos2d::CCSprite::setFlipX(v11, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v11 + 160LL))(v11, 0.8);
v12 = CCMenuItemSpriteExtra::create((__int64)v11, 0, (__int64)this, (__int64)ProfilePage::onNextPage, 0);
*((_QWORD *)this + 99) = v12;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v12);
v13 = *((_QWORD *)this + 99);
v14 = *((cocos2d::CCNode **)this + 69);
v15 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v13 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, (float)(*(float *)&v17 * 0.5) + 195.0, v3);
cocos2d::CCNode::convertToNodeSpace(&v19, v14, (const cocos2d::CCPoint *)v18);
v15(v13, &v19);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 99), 2.0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 100) + 344LL))(*((_QWORD *)this + 100), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 99) + 344LL))(*((_QWORD *)this + 99), 0);
return _stack_chk_guard;
}