//
// GJPromoPopup::create from 0x5defb8 to 0x5df082 (202 bytes)
//
// 1 xrefs:
// > CreatorLayer::onAdventureMap @ 0x4939c8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:54:14 +0000
//
FLAlertLayer *__fastcall GJPromoPopup::create(int a1)
{
FLAlertLayer *v2; // r4
int v3; // r7
int v4; // r3
FLAlertLayer *v5; // r0
int v7[3]; // [sp+0h] [bp-14h] BYREF
v2 = (FLAlertLayer *)operator new(0x214u);
FLAlertLayer::FLAlertLayer(v2);
*(_DWORD *)v2 = &off_CBC7A8;
*((_DWORD *)v2 + 66) = &off_CBCA50;
*((_DWORD *)v2 + 67) = &off_CBCA88;
*((_DWORD *)v2 + 68) = &off_CBCA94;
*((_DWORD *)v2 + 69) = &off_CBCAA4;
*((_DWORD *)v2 + 70) = &off_CBCAB8;
*((_DWORD *)v2 + 79) = &off_CBCAD0;
*((_DWORD *)v2 + 83) = &off_CBCB10;
*((_DWORD *)v2 + 110) = &off_CBCB20;
*((_DWORD *)v2 + 130) = 0;
*((_DWORD *)v2 + 131) = 0;
*((_DWORD *)v2 + 132) = 0;
std::string::basic_string(v7, a1);
v3 = GJPromoPopup::init((int)v2, (unsigned __int8 *)v7);
std::string::~string((int)v7);
if ( v3 )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
v4 = *(_DWORD *)v2;
v5 = v2;
v2 = nullptr;
(*(void (__fastcall **)(FLAlertLayer *))(v4 + 8))(v5);
}
return v2;
}