//
// PurchaseItemPopup::create from 0x100325450 to 0x100325571 (289 bytes)
//
// 2 xrefs:
// > GJPathPage::onUnlock @ 0x100300e1b
// > GJShopLayer::onSelectItem @ 0x100324c4c
//
// 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 *v1; // rbx
v1 = (char *)operator new(0x288u);
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_100913CD0;
*((_QWORD *)v1 + 40) = off_1009141F0;
*((_QWORD *)v1 + 41) = &off_100914260;
*((_QWORD *)v1 + 42) = off_100914278;
*((_QWORD *)v1 + 43) = off_100914298;
*((_QWORD *)v1 + 44) = off_1009142B8;
*((_QWORD *)v1 + 51) = off_1009142E0;
*((_QWORD *)v1 + 54) = off_100914360;
*(_OWORD *)(v1 + 632) = 0;
if ( PurchaseItemPopup::init((PurchaseItemPopup *)v1, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return (PurchaseItemPopup *)v1;
}