//
// GJMessagePopup::create from 0x1002a6b40 to 0x1002a6ca7 (359 bytes)
//
// 2 xrefs:
// > GJMessageCell::onViewMessage @ 0x1002585ba
// > GJWriteMessagePopup::closeMessagePopup @ 0x1002aa2d1
//
// 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
//
GJMessagePopup *__fastcall GJMessagePopup::create(GJUserMessage *a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x2C8u);
cocos2d::CCLayerColor::CCLayerColor(v1);
*((_QWORD *)v1 + 72) = 0;
*((_DWORD *)v1 + 146) = 0;
v1[588] = 0;
*((_OWORD *)v1 + 34) = 0;
*(_OWORD *)(v1 + 553) = 0;
*((_OWORD *)v1 + 37) = 0;
*((_QWORD *)v1 + 76) = 0;
*((_DWORD *)v1 + 154) = -1;
*((_WORD *)v1 + 310) = 0;
*((_DWORD *)v1 + 156) = -1;
v1[628] = 0;
*(_QWORD *)v1 = off_1008FA9F0;
*((_QWORD *)v1 + 40) = off_1008FAF40;
*((_QWORD *)v1 + 41) = &off_1008FAFB0;
*((_QWORD *)v1 + 42) = off_1008FAFC8;
*((_QWORD *)v1 + 43) = off_1008FAFE8;
*((_QWORD *)v1 + 44) = off_1008FB008;
*((_QWORD *)v1 + 51) = off_1008FB030;
*((_QWORD *)v1 + 54) = off_1008FB0B0;
*((_QWORD *)v1 + 79) = off_1008FB0D0;
*((_QWORD *)v1 + 80) = &off_1008FB0F0;
*((_QWORD *)v1 + 81) = &off_1008FB108;
*((_QWORD *)v1 + 82) = off_1008FB120;
v1[664] = 0;
*(_OWORD *)(v1 + 696) = 0;
*(_OWORD *)(v1 + 680) = 0;
if ( GJMessagePopup::init((GJMessagePopup *)v1, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return (GJMessagePopup *)v1;
}