//
// ItemInfoPopup::create from 0x10036ee70 to 0x10036efa4 (308 bytes)
//
// 4 xrefs:
// > GJPathPage::onIconInfo @ 0x100300cee
// > GJGarageLayer::showUnlockPopupNew @ 0x10036ee58
// > GJGarageLayer::showUnlockPopup @ 0x10036f465
// > ShardsPage::onIconInfo @ 0x1004c768c
//
// 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
//
ItemInfoPopup *__fastcall ItemInfoPopup::create(int a1, UnlockType a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x288u);
cocos2d::CCLayerColor::CCLayerColor(v2);
*((_QWORD *)v2 + 72) = 0;
*((_DWORD *)v2 + 146) = 0;
v2[588] = 0;
*((_OWORD *)v2 + 34) = 0;
*(_OWORD *)(v2 + 553) = 0;
*((_OWORD *)v2 + 37) = 0;
*((_QWORD *)v2 + 76) = 0;
*((_DWORD *)v2 + 154) = -1;
*((_WORD *)v2 + 310) = 0;
*((_DWORD *)v2 + 156) = -1;
v2[628] = 0;
*(_QWORD *)v2 = off_10091C928;
*((_QWORD *)v2 + 40) = off_10091CE48;
*((_QWORD *)v2 + 41) = &off_10091CEB8;
*((_QWORD *)v2 + 42) = off_10091CED0;
*((_QWORD *)v2 + 43) = off_10091CEF0;
*((_QWORD *)v2 + 44) = off_10091CF10;
*((_QWORD *)v2 + 51) = off_10091CF38;
*((_QWORD *)v2 + 54) = off_10091CFB8;
*((_QWORD *)v2 + 79) = 0;
if ( ItemInfoPopup::init((ItemInfoPopup *)v2, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (ItemInfoPopup *)v2;
}