//
// BonusDropdown::init from 0x56b4f0 to 0x56b7d0 (736 bytes)
//
// 2 xrefs:
// > BonusDropdown::create @ 0x56b858
// > ??> @ 0x5ddc8
//
// 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
//
__int64 __fastcall BonusDropdown::init(float *a1, __int64 a2, int a3)
{
cocos2d::CCDirector *v4; // x0
cocos2d::CCSprite *v5; // x20
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22
__int64 v7; // x0
float height; // s1
float v9; // s1
const cocos2d::_ccColor4B *v10; // x1
__int64 v11; // x0
__int64 v12; // x3
__int64 v13; // x22
void (__fastcall *v14)(__int64, cocos2d::CCPoint *); // x26
PriceLabel *v15; // x22
void (__fastcall *v16)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26
__int64 v17; // x27
void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26
cocos2d::CCLabelBMFont *v19; // x22
cocos2d::CCSprite *v20; // x0
const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1
void (__fastcall *v22)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x20
__int64 v23; // x25
void (__fastcall *v24)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x20
float v27; // [xsp+90h] [xbp+90h]
float v28; // [xsp+94h] [xbp+94h]
cocos2d::CCPoint v29; // [xsp+98h] [xbp+98h] BYREF
cocos2d::CCPoint v30; // [xsp+A0h] [xbp+A0h] BYREF
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v4);
v5 = cocos2d::CCSprite::createWithSpriteFrameName("shopTabBG_001.png");
setPosition = v5->setPosition;
v7 = (__int64)v5->getContentSize(v5);
cocos2d::CCPoint::CCPoint(&v30, v27 * 0.5, *(float *)(v7 + 4) * 0.5);
setPosition(v5, &v30);
v5->setScaleX(v5, 1.8);
height = v5->getContentSize(v5)->height;
v30.x = 0.0;
v9 = height - 2.0;
a1[82] = v9;
v11 = cocos2d::CCLayerColor::create((cocos2d::CCLayerColor *)&v30, v10, v27, v9);
v12 = *(_QWORD *)a1;
*((_QWORD *)a1 + 40) = v11;
(*(void (__fastcall **)(float *))(v12 + 440))(a1);
v13 = *((_QWORD *)a1 + 40);
v14 = *(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v13 + 184LL);
cocos2d::CCPoint::CCPoint(&v30, 0.0, v28);
v14(v13, &v30);
(*(void (__fastcall **)(__int64, cocos2d::CCSprite *))(**((_QWORD **)a1 + 40) + 440LL))(*((_QWORD *)a1 + 40), v5);
v15 = PriceLabel::create(a3);
v16 = v15->setPosition;
v17 = (__int64)v5->getPosition(v5);
cocos2d::CCPoint::CCPoint(&v29, 100.0, -4.0);
cocos2d::CCPoint::operator+(&v30, v17, &v29);
v16(v15, &v30);
setAnchorPoint = v15->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v30, 1.0, 0.5);
setAnchorPoint(v15, &v30);
v15->setScale(v15, 0.9);
(*(void (__fastcall **)(__int64, PriceLabel *))(**((_QWORD **)a1 + 40) + 440LL))(*((_QWORD *)a1 + 40), v15);
v19 = cocos2d::CCLabelBMFont::create();
v20 = v5;
getPosition = v5->getPosition;
v22 = v19->setPosition;
v23 = (__int64)getPosition(v20);
cocos2d::CCPoint::CCPoint(&v29, -134.0, -1.0);
cocos2d::CCPoint::operator+(&v30, v23, &v29);
v22(v19, &v30);
v24 = v19->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v30, 0.0, 0.5);
v24(v19, &v30);
v19->setScale(v19, 0.9);
(*(void (__fastcall **)(__int64, cocos2d::CCLabelBMFont *, __int64))(**((_QWORD **)a1 + 40) + 448LL))(
*((_QWORD *)a1 + 40),
v19,
2);
return 1;
}