//
// GJWriteMessagePopup::create from 0x1002a8280 to 0x1002a8416 (406 bytes)
//
// 3 xrefs:
// > GJUserCell::onSendMessage @ 0x1002567fc
// > GJMessagePopup::onReply @ 0x1002a7e53
// > ProfilePage::onSendMessage @ 0x1007bda47
//
// 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 *__fastcall GJWriteMessagePopup::create(int a1, int a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x308u);
cocos2d::CCLayerColor::CCLayerColor(v2);
*((_QWORD *)v2 + 72) = 0;
*((_DWORD *)v2 + 146) = 0;
v2[588] = 0;
*((_OWORD *)v2 + 34) = 0;
*(_OWORD *)(v2 + 553) = 0;
*((_OWORD *)v2 + 37) = 0;
*((_QWORD *)v2 + 76) = 0;
*((_DWORD *)v2 + 154) = -1;
*((_WORD *)v2 + 310) = 0;
*((_DWORD *)v2 + 156) = -1;
v2[628] = 0;
*(_QWORD *)v2 = off_1008FB140;
*((_QWORD *)v2 + 40) = off_1008FB6A8;
*((_QWORD *)v2 + 41) = &off_1008FB718;
*((_QWORD *)v2 + 42) = off_1008FB730;
*((_QWORD *)v2 + 43) = off_1008FB750;
*((_QWORD *)v2 + 44) = off_1008FB770;
*((_QWORD *)v2 + 51) = off_1008FB798;
*((_QWORD *)v2 + 54) = off_1008FB818;
*((_QWORD *)v2 + 79) = off_1008FB838;
*((_QWORD *)v2 + 80) = off_1008FB880;
*((_QWORD *)v2 + 81) = &off_1008FB8A0;
*((_QWORD *)v2 + 82) = &off_1008FB8B8;
*(_QWORD *)(v2 + 668) = 0;
*(_OWORD *)(v2 + 753) = 0;
*(_OWORD *)(v2 + 744) = 0;
*(_OWORD *)(v2 + 728) = 0;
*(_OWORD *)(v2 + 712) = 0;
*(_OWORD *)(v2 + 696) = 0;
*(_OWORD *)(v2 + 680) = 0;
if ( GJWriteMessagePopup::init((GJWriteMessagePopup *)v2, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (GJWriteMessagePopup *)v2;
}