//
// BoomListLayer::init from 0x594bc8 to 0x594f4c (900 bytes)
//
// 2 xrefs:
// > BoomListLayer::create @ 0x594fe8
// > ??> @ 0xbc238
//
// 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
//
bool BoomListLayer::init(BoomListLayer *a1, BoomListView *a2, const char *a3)
{
bool v5; // w25
cocos2d::CCSprite *v6; // x22
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23
cocos2d::CCSprite *v8; // x24
void (__fastcall *v9)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22
void (__fastcall *setAnchorPoint)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22
cocos2d::CCSprite *v11; // x23
cocos2d::CCSprite *v12; // x22
cocos2d::CCSprite *v13; // x0
float (__fastcall *getScaleY)(cocos2d::CCNode *__hidden); // x1
void (__fastcall *setScaleY)(cocos2d::CCSprite *__hidden, float); // x23
cocos2d::CCSprite *v16; // x22
void (__fastcall *v17)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23
float *v18; // x0
cocos2d::CCLabelBMFont *v19; // x23
cocos2d::CCSprite *v20; // x0
const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1
void (__fastcall *v22)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22
__int64 v23; // x24
void (__fastcall *v25)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [xsp+88h] [xbp+88h]
void (__fastcall *v26)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [xsp+88h] [xbp+88h]
void (__fastcall *v27)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [xsp+88h] [xbp+88h]
__int64 v28; // [xsp+98h] [xbp+98h] BYREF
cocos2d::CCPoint v29; // [xsp+A0h] [xbp+A0h] BYREF
v29.x = -2.2909e38;
v5 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::ccColor4B *)&v29, 300.0, 280.0);
if ( v5 )
{
v6 = cocos2d::CCSprite::createWithSpriteFrameName("blueBottomBar_001.png");
setPosition = v6->setPosition;
cocos2d::CCPoint::CCPoint(&v29, 150.0, -10.0);
setPosition(v6, &v29);
a1->addChild_0(a1, v6, 10);
v8 = cocos2d::CCSprite::createWithSpriteFrameName("highscore_hr_top_001.png");
v9 = v8->setPosition;
cocos2d::CCPoint::CCPoint(&v29, 150.0, 280.0);
v9(v8, &v29);
setAnchorPoint = v8->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v29, 0.5, 1.0);
setAnchorPoint(v8, &v29);
a1->addChild_0(a1, v8, 10);
v11 = cocos2d::CCSprite::createWithSpriteFrameName("highscore_hr_side_001.png");
v25 = v11->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v29, 0.0, 0.0);
v25(v11, &v29);
a1->addChild_0(a1, v11, 9);
v11->setScaleY(v11, 280.0 / v11->m_obRect.size.height);
v12 = cocos2d::CCSprite::createWithSpriteFrameName("highscore_hr_side_001.png");
v26 = v12->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v29, 1.0, 0.0);
v26(v12, &v29);
a1->addChild_0(a1, v12, 9);
v27 = v12->setPosition;
cocos2d::CCPoint::CCPoint(&v29, 300.0, 0.0);
v27(v12, &v29);
v13 = v11;
getScaleY = v11->getScaleY;
setScaleY = v12->setScaleY;
getScaleY(v13);
((void (__fastcall *)(cocos2d::CCSprite *))setScaleY)(v12);
cocos2d::CCSprite::setFlipX(v12, 1);
v16 = cocos2d::CCSprite::createWithSpriteFrameName("fullTabBG_001.png");
a1->addChild(a1, v16);
v17 = v16->setPosition;
v18 = (float *)v8->getPosition(v8);
cocos2d::CCPoint::CCPoint(&v29, *v18, 293.0);
v17(v16, &v29);
v19 = cocos2d::CCLabelBMFont::create();
a1->addChild(a1, v19);
v20 = v16;
getPosition = v16->getPosition;
v22 = v19->setPosition;
v23 = (__int64)getPosition(v20);
cocos2d::CCPoint::CCPoint(&v29, 0.0, -1.0);
cocos2d::CCPoint::operator+(&v28, v23, &v29);
v22(v19, (const cocos2d::CCPoint *)&v28);
a1->addChild_0(a1, a2, 6);
}
return v5;
}