//
// ProfilePage::create from 0x1403be660 to 0x1403be838 (472 bytes)
//
// 16 xrefs:
// > LevelCell::onViewProfile @ 0x1400b1a3d
// > CommentCell::onViewProfile @ 0x1400b81a8
// > GJScoreCell::onViewProfile @ 0x1400b9a51
// > GJLevelScoreCell::onViewProfile @ 0x1400bab3c
// > GJRequestCell::onViewProfile @ 0x1400bb51c
// > GJMessageCell::onViewProfile @ 0x1400bdf7c
// > LevelListCell::onViewProfile @ 0x1400c0227
// > FRequestProfilePage::onClose @ 0x14013ede7
// > FriendsProfilePage::onClose @ 0x140140c8f
// > ItemInfoPopup::onCredit @ 0x14027d800
// > InfoLayer::onMore @ 0x1402bd506
// > LevelInfoLayer::onViewProfile @ 0x1402fef3c
// > LevelListLayer::onViewProfile @ 0x14030770c
// > MenuLayer::onMyProfile @ 0x140335656
// > MessagesProfilePage::onClose @ 0x140337b27
// > ??> @ 0x1406d7718
//
// 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
//
// Hidden C++ exception states: #wind=1
ProfilePage *ProfilePage::create(int a1, bool a2)
{
ProfilePage *v4; // rsi
v4 = (ProfilePage *)operator new(0x358u);
FLAlertLayer::FLAlertLayer(v4);
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ProfilePage_vtbl *)&ProfilePage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&ProfilePage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&ProfilePage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&ProfilePage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&ProfilePage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&ProfilePage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&ProfilePage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&ProfilePage::`vftable';
v4->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&ProfilePage::`vftable';
v4->LevelCommentDelegate::__vftable = (LevelCommentDelegate_vtbl *)&ProfilePage::`vftable';
v4->CommentUploadDelegate::__vftable = (CommentUploadDelegate_vtbl *)&ProfilePage::`vftable';
v4->UserInfoDelegate::__vftable = (UserInfoDelegate_vtbl *)&ProfilePage::`vftable';
v4->UploadActionDelegate::__vftable = (UploadActionDelegate_vtbl *)&ProfilePage::`vftable';
v4->UploadPopupDelegate::__vftable = (UploadPopupDelegate_vtbl *)&ProfilePage::`vftable';
v4->LeaderboardManagerDelegate::__vftable = (LeaderboardManagerDelegate_vtbl *)&ProfilePage::`vftable';
v4->m_score = nullptr;
v4->m_accountID = 0;
v4->m_ownProfile = 0;
v4->m_profileKey.m_data.0 = 0;
v4->m_profileKey.m_data.m_size = 0;
v4->m_profileKey.m_data.m_capacity = 15;
v4->m_profileKey.m_data.m_smallStorage._Elems[0] = 0;
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;
*(_QWORD *)&v4->m_itemCount = 0;
*(_QWORD *)&v4->m_pageEndIdx = 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
{
((void (__fastcall *)(ProfilePage *, __int64))v4->~ProfilePage)(v4, 1);
return nullptr;
}
}