//
// GJUserMessage::create_1 from 0x140173ed0 to 0x140173ff9 (297 bytes)
//
// 5 xrefs:
// > GJUserMessage::create @ 0x1401739c7
// > GJMessagePopup::onReply @ 0x1402984a3
// > GJWriteMessagePopup::closeMessagePopup @ 0x14029a5ac
// > ??> @ 0x1406caed8
// > ??> @ 0x1406caee4
//
// 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
GJUserMessage *GJUserMessage::create_1()
{
GJUserMessage *v0; // rbx
bool (__fastcall *init)(cocos2d::CCNode *); // rdx
v0 = (GJUserMessage *)operator new(0x1D8u);
cocos2d::CCNode::CCNode(v0);
v0->__vftable = (GJUserMessage_vtbl *)&GJUserMessage::`vftable';
*(_QWORD *)&v0->m_messageID = 0;
v0->m_userID = 0;
v0->m_title.m_data.0 = 0;
v0->m_title.m_data.m_size = 0;
v0->m_title.m_data.m_capacity = 15;
v0->m_title.m_data.m_smallStorage._Elems[0] = 0;
v0->m_content.m_data.0 = 0;
v0->m_content.m_data.m_size = 0;
v0->m_content.m_data.m_capacity = 15;
v0->m_content.m_data.m_smallStorage._Elems[0] = 0;
v0->m_username.m_data.0 = 0;
v0->m_username.m_data.m_size = 0;
v0->m_username.m_data.m_capacity = 15;
v0->m_username.m_data.m_smallStorage._Elems[0] = 0;
v0->m_uploadDate.m_data.0 = 0;
v0->m_uploadDate.m_data.m_size = 0;
v0->m_uploadDate.m_data.m_capacity = 15;
v0->m_uploadDate.m_data.m_smallStorage._Elems[0] = 0;
*(_WORD *)&v0->m_read = 0;
v0->m_toggled = 0;
init = (bool (__fastcall *)(cocos2d::CCNode *))v0->init;
if ( init == CCNodeContainer::init )
{
if ( !cocos2d::CCNode::init(v0) )
{
LABEL_3:
((void (__fastcall *)(GJUserMessage *, __int64))v0->~GJUserMessage)(v0, 1);
return nullptr;
}
}
else if ( !init(v0) )
{
goto LABEL_3;
}
cocos2d::CCObject::autorelease(v0);
return v0;
}