//
// BoomListLayer::init from 0x10046dfe0 to 0x10046e2c0 (736 bytes)
//
// 1 xrefs:
// > BoomListLayer::create @ 0x10046df97
//
// 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 __fastcall BoomListLayer::init(BoomListLayer *a1, BoomListView *a2, const char *a3)
{
bool result; // al
cocos2d::CCSprite *v5; // rbx
cocos2d::CCSprite *v6; // r12
cocos2d::CCSprite *v7; // r13
cocos2d::CCSprite *v8; // rbx
cocos2d::CCSprite *v9; // rbx
float *v10; // rax
cocos2d::CCLabelBMFont *v11; // r15
unsigned __int64 *v12; // rbx
unsigned __int64 v13; // [rsp+0h] [rbp-50h] BYREF
BoomListView *v14; // [rsp+8h] [rbp-48h]
const char *v15; // [rsp+10h] [rbp-40h]
double v16; // [rsp+1Ch] [rbp-34h] BYREF
bool v17; // [rsp+27h] [rbp-29h]
LODWORD(v16) = -13870943;
result = cocos2d::CCLayerColor::initWithColor_1(a1, (const cocos2d::ccColor4B *)&v16, 300.0, 280.0);
if ( result )
{
v17 = result;
v14 = a2;
v5 = cocos2d::CCSprite::createWithSpriteFrameName("blueBottomBar_001.png");
sub_10028CBE0((float *)&v16, 150.0, -10.0);
((void (__fastcall *)(cocos2d::CCSprite *, double *))v5->setPosition)(v5, &v16);
((void (__fastcall *)(BoomListLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v5, 10);
v6 = cocos2d::CCSprite::createWithSpriteFrameName("highscore_hr_top_001.png");
sub_10028CBE0((float *)&v16, 150.0, 280.0);
((void (__fastcall *)(cocos2d::CCSprite *, double *))v6->setPosition)(v6, &v16);
sub_10028CBE0((float *)&v16, 0.5, 1.0);
((void (__fastcall *)(cocos2d::CCSprite *, double *))v6->setAnchorPoint)(v6, &v16);
((void (__fastcall *)(BoomListLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v6, 10);
v7 = cocos2d::CCSprite::createWithSpriteFrameName("highscore_hr_side_001.png");
v15 = a3;
sub_10028CBE0((float *)&v16, 0.0, 0.0);
((void (__fastcall *)(cocos2d::CCSprite *, double *))v7->setAnchorPoint)(v7, &v16);
((void (__fastcall *)(BoomListLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v7, 9);
((void (__fastcall *)(cocos2d::CCSprite *, float))v7->setScaleY)(v7, 280.0 / v7->m_obRect.size.height);
v8 = cocos2d::CCSprite::createWithSpriteFrameName("highscore_hr_side_001.png");
sub_10028CBE0((float *)&v16, 1.0, 0.0);
((void (__fastcall *)(cocos2d::CCSprite *, double *))v8->setAnchorPoint)(v8, &v16);
((void (__fastcall *)(BoomListLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v8, 9);
sub_10028CBE0((float *)&v16, 300.0, 0.0);
((void (__fastcall *)(cocos2d::CCSprite *, double *))v8->setPosition)(v8, &v16);
((void (__fastcall *)(cocos2d::CCSprite *))v7->getScaleY)(v7);
((void (__fastcall *)(cocos2d::CCSprite *))v8->setScaleY)(v8);
cocos2d::CCSprite::setFlipX(v8, 1);
v9 = cocos2d::CCSprite::createWithSpriteFrameName("fullTabBG_001.png");
((void (__fastcall *)(BoomListLayer *, cocos2d::CCSprite *))a1->addChild)(a1, v9);
v10 = (float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v6->getPosition)(v6);
sub_10028CBE0((float *)&v16, *v10, 293.0);
((void (__fastcall *)(cocos2d::CCSprite *, double *))v9->setPosition)(v9, &v16);
v11 = cocos2d::CCLabelBMFont::create_3(a3, "goldFont.fnt");
((void (__fastcall *)(BoomListLayer *, cocos2d::CCLabelBMFont *))a1->addChild)(a1, v11);
v12 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v9->getPosition)(v9);
sub_10028CBE0((float *)&v13, 0.0, -1.0);
sub_10028CCE0(&v16, v12, &v13);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v11->setPosition)(v11, &v16);
((void (__fastcall *)(BoomListLayer *, BoomListView *, __int64))a1->addChild_0)(a1, v14, 6);
return v17;
}
return result;
}