//
// BonusDropdown::init from 0x2e0d74 to 0x2e0f46 (466 bytes)
//
// 1 xrefs:
// > BonusDropdown::create @ 0x2e0fb6
//
// 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
//
int __fastcall BonusDropdown::init(float *a1, int a2, int a3)
{
cocos2d::CCDirector *v5; // r0
cocos2d::CCSprite *v6; // r0
float v7; // s17
cocos2d::CCSprite *v8; // r5
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7
int v10; // r0
int v11; // r0
float width; // r1
float v13; // s15
int v14; // r0
float v15; // r3
int v16; // r7
void (__fastcall *v17)(int, cocos2d::CCPoint *); // r11
PriceLabel *v18; // r7
int v19; // r11
void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11
cocos2d::CCLabelBMFont *v21; // r7
void (__fastcall *v22)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10
int v23; // r5
void (__fastcall *v24)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r5
void (__fastcall *v26)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+4h] [bp-28h]
cocos2d::CCSize v27; // [sp+Ch] [bp-20h] BYREF
cocos2d::CCPoint v28; // [sp+14h] [bp-18h] BYREF
cocos2d::CCPoint v29; // [sp+1Ch] [bp-10h] BYREF
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v27, v5);
v6 = cocos2d::CCSprite::createWithSpriteFrameName("shopTabBG_001.png");
v7 = v27.width * 0.5;
v8 = v6;
setPosition = v6->setPosition;
v10 = (int)v6->getContentSize(v6);
cocos2d::CCPoint::CCPoint(&v29, v7, *(float *)(v10 + 4) * 0.5);
setPosition(v8, &v29);
((void (__fastcall *)(cocos2d::CCSprite *, int))v8->setScaleX)(v8, 1072064102);
v11 = (int)v8->getContentSize(v8);
width = v27.width;
v13 = *(float *)(v11 + 4);
v29.x = 0.0;
a1[67] = v13 - 2.0;
v14 = cocos2d::CCLayerColor::create(
(cocos2d::CCLayerColor *)&v29,
(const cocos2d::_ccColor4B *)LODWORD(width),
v13 - 2.0,
0.0);
v15 = *a1;
*((_DWORD *)a1 + 66) = v14;
(*(void (__fastcall **)(float *, int))(LODWORD(v15) + 220))(a1, v14);
v16 = *((_DWORD *)a1 + 66);
v17 = *(void (__fastcall **)(int, cocos2d::CCPoint *))(*(_DWORD *)v16 + 92);
cocos2d::CCPoint::CCPoint(&v29, 0.0, v27.height);
v17(v16, &v29);
(*(void (__fastcall **)(int, cocos2d::CCSprite *))(**((_DWORD **)a1 + 66) + 220))(*((_DWORD *)a1 + 66), v8);
v18 = PriceLabel::create(a3);
v26 = v18->setPosition;
v19 = (int)v8->getPosition(v8);
cocos2d::CCPoint::CCPoint(&v28, 100.0, -4.0);
cocos2d::CCPoint::operator+(&v29, v19, &v28);
v26(v18, &v29);
setAnchorPoint = v18->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v29, 1.0, 0.5);
setAnchorPoint(v18, &v29);
((void (__fastcall *)(PriceLabel *, int))v18->setScale)(v18, 1063675494);
(*(void (__fastcall **)(int, PriceLabel *))(**((_DWORD **)a1 + 66) + 220))(*((_DWORD *)a1 + 66), v18);
v21 = cocos2d::CCLabelBMFont::create();
v22 = v21->setPosition;
v23 = (int)v8->getPosition(v8);
cocos2d::CCPoint::CCPoint(&v28, -134.0, -1.0);
cocos2d::CCPoint::operator+(&v29, v23, &v28);
v22(v21, &v29);
v24 = v21->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v29, 0.0, 0.5);
v24(v21, &v29);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v21->setScale)(v21, 1063675494);
(*(void (__fastcall **)(int, cocos2d::CCLabelBMFont *, int))(**((_DWORD **)a1 + 66) + 224))(
*((_DWORD *)a1 + 66),
v21,
2);
return 1;
}