//
// PurchaseItemPopup::create from 0x10014c384 to 0x10014c42c (168 bytes)
//
// 2 xrefs:
// > GJShopLayer::onSelectItem @ 0x10014bdd0
// > GJPathPage::onUnlock @ 0x1003ba304
//
// 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
//
PurchaseItemPopup *__fastcall PurchaseItemPopup::create(GJStoreItem *a1)
{
char *v2; // x19
v2 = (char *)operator new(0x288u);
FLAlertLayer::FLAlertLayer((FLAlertLayer *)v2);
*(_QWORD *)v2 = off_100798E80;
*((_QWORD *)v2 + 40) = off_1007993A0;
*((_QWORD *)v2 + 41) = &off_100799410;
*((_QWORD *)v2 + 42) = off_100799428;
*((_QWORD *)v2 + 43) = off_100799448;
*((_QWORD *)v2 + 44) = off_100799468;
*((_QWORD *)v2 + 51) = off_100799490;
*((_QWORD *)v2 + 54) = off_100799510;
*(_OWORD *)(v2 + 632) = 0u;
if ( PurchaseItemPopup::init((PurchaseItemPopup *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (PurchaseItemPopup *)v2;
}