//
// GJMessagePopup::create from 0x1002da1bc to 0x1002da288 (204 bytes)
//
// 2 xrefs:
// > GJMessageCell::onViewMessage @ 0x1001126c4
// > GJWriteMessagePopup::closeMessagePopup @ 0x1002dcf58
//
// 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 *v2; // x19
v2 = (char *)operator new(0x2C8u);
FLAlertLayer::FLAlertLayer((FLAlertLayer *)v2);
*(_QWORD *)v2 = off_1007DAFB8;
*((_QWORD *)v2 + 40) = off_1007DB508;
*((_QWORD *)v2 + 41) = &off_1007DB578;
*((_QWORD *)v2 + 42) = off_1007DB590;
*((_QWORD *)v2 + 43) = off_1007DB5B0;
*((_QWORD *)v2 + 44) = off_1007DB5D0;
*((_QWORD *)v2 + 51) = off_1007DB5F8;
*((_QWORD *)v2 + 54) = off_1007DB678;
*((_QWORD *)v2 + 79) = off_1007DB698;
*((_QWORD *)v2 + 80) = &off_1007DB6B8;
*((_QWORD *)v2 + 81) = &off_1007DB6D0;
*((_QWORD *)v2 + 82) = off_1007DB6E8;
v2[664] = 0;
*(_OWORD *)(v2 + 680) = 0u;
*(_OWORD *)(v2 + 696) = 0u;
if ( GJMessagePopup::init((GJMessagePopup *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (GJMessagePopup *)v2;
}