//
// GJWriteMessagePopup::create from 0x1402990b0 to 0x14029923f (399 bytes)
//
// 4 xrefs:
// > GJUserCell::onSendMessage @ 0x1400bbb4c
// > GJMessagePopup::onReply @ 0x1402986e6
// > ProfilePage::onSendMessage @ 0x1403c3d00
// > ??> @ 0x1406d1cdc
//
// 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
GJWriteMessagePopup *GJWriteMessagePopup::create(int a1, int a2)
{
char *v4; // rsi
v4 = (char *)operator new(0x318u);
FLAlertLayer::FLAlertLayer((FLAlertLayer *)v4);
*(_QWORD *)v4 = &GJWriteMessagePopup::`vftable';
*((_QWORD *)v4 + 40) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)v4 + 41) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)v4 + 42) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)v4 + 43) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)v4 + 44) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)v4 + 51) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)v4 + 54) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)v4 + 79) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)v4 + 80) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)v4 + 81) = &GJWriteMessagePopup::`vftable';
*((_QWORD *)v4 + 82) = &GJWriteMessagePopup::`vftable';
*(_QWORD *)(v4 + 668) = 0;
*((_QWORD *)v4 + 85) = 0;
*((_QWORD *)v4 + 86) = 0;
*(_OWORD *)(v4 + 696) = 0;
*((_QWORD *)v4 + 89) = 0;
*((_QWORD *)v4 + 90) = 15;
v4[696] = 0;
*(_OWORD *)(v4 + 728) = 0;
*((_QWORD *)v4 + 93) = 0;
*((_QWORD *)v4 + 94) = 15;
v4[728] = 0;
*((_QWORD *)v4 + 95) = 0;
*((_QWORD *)v4 + 96) = 0;
*((_QWORD *)v4 + 97) = 0;
v4[784] = 0;
if ( GJWriteMessagePopup::init((GJWriteMessagePopup *)v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return (GJWriteMessagePopup *)v4;
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);
return nullptr;
}
}