//
// ProfilePage::create from 0x4c7c74 to 0x4c7d88 (276 bytes)
//
// 17 xrefs:
// > MenuLayer::onMyProfile @ 0x30a03e
// > LevelCell::onViewProfile @ 0x32ee56
// > LevelListCell::onViewProfile @ 0x32ee78
// > GJLevelScoreCell::onViewProfile @ 0x32ee9c
// > GJUserCell::onViewProfile @ 0x32eec0
// > GJRequestCell::onViewProfile @ 0x32eee4
// > GJMessageCell::onViewProfile @ 0x32ef08
// > CommentCell::onViewProfile @ 0x32ef28
// > GJScoreCell::onViewProfile @ 0x32f81a
// > GJScoreCell::onMoreLevels @ 0x338038
// > LevelInfoLayer::onViewProfile @ 0x3b1606
// > ItemInfoPopup::onCredit @ 0x402312
// > InfoLayer::onMore @ 0x42f7f2
// > MessagesProfilePage::onClose @ 0x4c1c3e
// > FRequestProfilePage::onClose @ 0x4c317c
// > FriendsProfilePage::onClose @ 0x4c3e14
// > LevelListLayer::onViewProfile @ 0x58fa96
//
// 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
//
ProfilePage *ProfilePage::create(int a1, bool a2)
{
ProfilePage *v4; // r4
ProfilePage_vtbl *v5; // r3
ProfilePage *v6; // r0
v4 = (ProfilePage *)operator new(0x260u);
FLAlertLayer::FLAlertLayer(v4);
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ProfilePage_vtbl *)&off_A744D0;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A7479C;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A747D4;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A747E0;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A747F0;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A74800;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A74814;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A74854;
v4->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_A74864;
v4->LevelCommentDelegate::__vftable = (LevelCommentDelegate_vtbl *)&off_A74870;
v4->CommentUploadDelegate::__vftable = (CommentUploadDelegate_vtbl *)&off_A74888;
v4->UserInfoDelegate::__vftable = (UserInfoDelegate_vtbl *)&off_A7489C;
v4->UploadActionDelegate::__vftable = (UploadActionDelegate_vtbl *)&off_A748B0;
v4->UploadPopupDelegate::__vftable = (UploadPopupDelegate_vtbl *)&off_A748C0;
v4->LeaderboardManagerDelegate::__vftable = (LeaderboardManagerDelegate_vtbl *)&off_A748CC;
v4->m_score = nullptr;
v4->m_accountID = 0;
v4->m_ownProfile = 0;
v4->m_profileKey.m_data.m_data = (stl::StringData::Internal *)&unk_ACDDA8;
v4->m_somethingWentWrong = nullptr;
v4->m_usernameLabel = nullptr;
v4->m_list = nullptr;
v4->m_rightArrow = nullptr;
v4->m_leftArrow = nullptr;
v4->m_followBtn = nullptr;
v4->m_unk = 0;
v4->m_buttons = nullptr;
v4->m_itemCount = 0;
v4->m_pageStartIdx = 0;
v4->m_pageEndIdx = 0;
v4->m_page = 0;
v4->m_circle = nullptr;
v4->m_popupDelegate = nullptr;
v4->m_unk2 = 0;
if ( ProfilePage::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
v5 = v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v6 = v4;
v4 = nullptr;
v5->~ProfilePage_0(v6);
}
return v4;
}