//
// GJWriteMessagePopup::create from 0x4af264 to 0x4af33c (216 bytes)
//
// 3 xrefs:
// > GJUserCell::onSendMessage @ 0x32fc62
// > GJMessagePopup::onReply @ 0x4af3f0
// > ProfilePage::onSendMessage @ 0x4c6d66
//
// 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
//
GJWriteMessagePopup *GJWriteMessagePopup::create(int a1, int a2)
{
GJWriteMessagePopup *v4; // r4
GJWriteMessagePopup_vtbl *v5; // r3
GJWriteMessagePopup *v6; // r0
v4 = (GJWriteMessagePopup *)operator new(0x22Cu);
FLAlertLayer::FLAlertLayer(v4);
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJWriteMessagePopup_vtbl *)&off_A6DD48;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A6DFFC;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A6E034;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A6E040;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A6E050;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A6E060;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A6E074;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A6E0B4;
v4->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&off_A6E0C4;
v4->UploadMessageDelegate::__vftable = (UploadMessageDelegate_vtbl *)&off_A6E0E8;
v4->UploadPopupDelegate::__vftable = (UploadPopupDelegate_vtbl *)&off_A6E0F8;
v4->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_A6E104;
v4->m_messageID = 0;
v4->m_accountID = 0;
v4->m_messageText.m_data.m_data = (stl::StringData::Internal *)&unk_ACDDA8;
v4->m_subjectText.m_data.m_data = (stl::StringData::Internal *)&unk_ACDDA8;
v4->m_messageInput = nullptr;
v4->m_subjectInput = nullptr;
v4->m_messageCountLabel = nullptr;
v4->m_subjectCountLabel = nullptr;
v4->m_uploadPopup = nullptr;
v4->m_uploadSuccess = 0;
if ( GJWriteMessagePopup::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->~GJWriteMessagePopup_0(v6);
}
return v4;
}