//
// ProfilePage::create from 0x8fe9d0 to 0x8feb80 (432 bytes)
//
// 18 xrefs:
// > MenuLayer::onMyProfile @ 0x5c2278
// > LevelCell::onViewProfile @ 0x60a27c
// > LevelListCell::onViewProfile @ 0x60a2b0
// > GJLevelScoreCell::onViewProfile @ 0x60a2e8
// > GJUserCell::onViewProfile @ 0x60a320
// > GJRequestCell::onViewProfile @ 0x60a358
// > GJMessageCell::onViewProfile @ 0x60a390
// > CommentCell::onViewProfile @ 0x60a3c0
// > GJScoreCell::onViewProfile @ 0x60bf8c
// > GJScoreCell::onMoreLevels @ 0x61a3c4
// > LevelInfoLayer::onViewProfile @ 0x6d57cc
// > ItemInfoPopup::onCredit @ 0x78ff50
// > InfoLayer::onMore @ 0x7e2974
// > MessagesProfilePage::onClose @ 0x8f3e04
// > FRequestProfilePage::onClose @ 0x8f62e4
// > FriendsProfilePage::onClose @ 0x8f7654
// > LevelListLayer::onViewProfile @ 0xa72678
// > ??> @ 0xbecf8
//
// 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; // x19
v4 = (ProfilePage *)operator new(0x340u);
cocos2d::CCLayerColor::CCLayerColor(v4);
v4->m_buttonMenu = nullptr;
v4->m_controlConnected = -1;
v4->m_joystickConnected = -1;
v4->m_alertProtocol = nullptr;
v4->m_scene = nullptr;
v4->m_reverseKeyBack = 0;
v4->m_mainLayer = nullptr;
v4->m_ZOrder = 0;
v4->m_noElasticity = 0;
v4->m_button1 = nullptr;
v4->m_button2 = nullptr;
v4->m_scrollingLayer = nullptr;
v4->m_containsBorder = 0;
v4->m_noAction = 0;
v4->m_forcePrioRegistered = 0;
v4->m_score = nullptr;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ProfilePage_vtbl *)&off_11A6490;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_11A6A28;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_11A6A98;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_11A6AB0;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_11A6AD0;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_11A6AF0;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_11A6B18;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_11A6B98;
v4->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_11A6BB8;
v4->LevelCommentDelegate::__vftable = (LevelCommentDelegate_vtbl *)&off_11A6BD0;
v4->CommentUploadDelegate::__vftable = (CommentUploadDelegate_vtbl *)&off_11A6C00;
v4->UserInfoDelegate::__vftable = (UserInfoDelegate_vtbl *)&off_11A6C28;
v4->LeaderboardManagerDelegate::__vftable = (LeaderboardManagerDelegate_vtbl *)off_11A6C88;
v4->UploadActionDelegate::__vftable = (UploadActionDelegate_vtbl *)off_11A6C50;
v4->UploadPopupDelegate::__vftable = (UploadPopupDelegate_vtbl *)&off_11A6C70;
v4->m_accountID = 0;
v4->m_ownProfile = 0;
v4->m_somethingWentWrong = nullptr;
v4->m_usernameLabel = nullptr;
v4->m_profileKey.m_data.m_data = (stl::StringData::Internal *)&byte_124B6C8;
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);
return v4;
}
else
{
v4->~ProfilePage_0(v4);
return nullptr;
}
}