//
// MessagesProfilePage::create from 0x4c1a70 to 0x4c1b98 (296 bytes)
//
// 3 xrefs:
// > MessagesProfilePage::onSentMessages @ 0x4c1bce
// > MessagesProfilePage::onClose @ 0x4c1c4e
// > ProfilePage::onMessages @ 0x4c4f08
//
// 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
//
MessagesProfilePage *MessagesProfilePage::create(bool a1)
{
MessagesProfilePage *v2; // r4
MessagesProfilePage_vtbl *v3; // r3
MessagesProfilePage *v4; // r0
v2 = (MessagesProfilePage *)operator new(0x244u);
cocos2d::CCLayerColor::CCLayerColor(v2);
v2->m_controlConnected = -1;
v2->m_joystickConnected = -1;
v2->m_buttonMenu = nullptr;
v2->m_alertProtocol = nullptr;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (MessagesProfilePage_vtbl *)&off_A73880;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A73B30;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A73B68;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A73B74;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A73B84;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A73B94;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A73BA8;
v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A73BE8;
v2->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_A73BF8;
v2->UploadActionDelegate::__vftable = (UploadActionDelegate_vtbl *)&off_A73C04;
v2->MessageListDelegate::__vftable = (MessageListDelegate_vtbl *)&off_A73C20;
v2->m_scene = nullptr;
v2->m_reverseKeyBack = 0;
v2->m_mainLayer = nullptr;
v2->m_ZOrder = 0;
v2->m_noElasticity = 0;
v2->m_button1 = nullptr;
v2->m_button2 = nullptr;
v2->m_scrollingLayer = nullptr;
v2->m_containsBorder = 0;
v2->m_noAction = 0;
v2->m_forcePrioRegistered = 0;
v2->UploadPopupDelegate::__vftable = (UploadPopupDelegate_vtbl *)&off_A73C14;
v2->m_sentMessages = 0;
v2->m_messageKey.m_data.m_data = (stl::StringData::Internal *)&unk_ACDDA8;
v2->m_levelsLabel = nullptr;
v2->m_errorLabel = nullptr;
v2->m_listLayer = nullptr;
v2->m_loadingCircle = nullptr;
v2->m_actionPopup = nullptr;
v2->m_unkPtr = nullptr;
v2->m_nextButton = nullptr;
v2->m_prevButton = nullptr;
v2->m_itemCount = 0;
v2->m_pageStartIdx = 0;
v2->m_pageEndIdx = 0;
v2->m_page = 0;
v2->m_toggledAll = 0;
if ( MessagesProfilePage::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
v3 = v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v4 = v2;
v2 = nullptr;
v3->~MessagesProfilePage_0(v4);
}
return v2;
}