//
// GJListLayer::init from 0x14027f8d0 to 0x14027fef1 (1569 bytes)
//
// 4 xrefs:
// > GJListLayer::create @ 0x14027f884
// > ??> @ 0x140687b5c
// > ??> @ 0x140687bd4
// > ??> @ 0x1406d1358
//
// 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 GJListLayer::init(
GJListLayer *a1,
BoomListView *a2,
const char *a3,
cocos2d::ccColor4B a4,
float a5,
float a6,
int a7)
{
float v7; // xmm0_4
float v9; // xmm9_4
bool result; // al
const char *v13; // rcx
const char *v14; // rdi
float v15; // xmm8_4
struct cocos2d::CCSprite *v16; // rsi
cocos2d::CCSprite_vtbl *v17; // rbx
double v18; // xmm0_8
const cocos2d::CCPoint *v19; // rax
struct cocos2d::CCSprite *v20; // r15
cocos2d::CCSprite_vtbl *v21; // rbx
__int64 v22; // rax
float v23; // xmm0_4
cocos2d::CCSprite_vtbl *v24; // rbx
double v25; // xmm0_8
const cocos2d::CCPoint *v26; // rax
int v27; // edi
float v28; // xmm0_4
cocos2d::CCSprite_vtbl *v29; // rbx
const cocos2d::CCPoint *v30; // rax
float v31; // xmm0_4
cocos2d::CCSprite_vtbl *v32; // rbx
double v33; // xmm0_8
const cocos2d::CCPoint *v34; // rax
struct cocos2d::CCSprite *v35; // rsi
cocos2d::CCSprite_vtbl *v36; // rbx
const cocos2d::CCPoint *v37; // rax
cocos2d::CCSprite_vtbl *v38; // rbx
const cocos2d::CCPoint *v39; // rax
cocos2d::CCSprite_vtbl *v40; // rbx
const cocos2d::CCPoint *v41; // rax
cocos2d::CCSprite_vtbl *v42; // rbx
const cocos2d::CCPoint *v43; // rax
struct cocos2d::CCSprite *v44; // rsi
cocos2d::CCSprite_vtbl *v45; // rbx
const cocos2d::CCPoint *v46; // rax
float v47; // xmm0_4
cocos2d::CCSprite_vtbl *v48; // rbx
__int64 v49; // rax
double v50; // xmm0_8
struct cocos2d::CCSprite *v51; // rdi
cocos2d::CCSprite_vtbl *v52; // rbx
const cocos2d::CCPoint *v53; // rax
float v54; // xmm0_4
cocos2d::CCSprite_vtbl *v55; // rbx
const cocos2d::CCPoint *v56; // rax
cocos2d::CCSprite_vtbl *v57; // rbx
double v58; // xmm0_8
struct cocos2d::CCLabelBMFont *v59; // rdi
__int64 v60; // rax
cocos2d::CCPoint v61; // [rsp+20h] [rbp-B8h] BYREF
cocos2d::ccColor4B v62; // [rsp+F8h] [rbp+20h] BYREF
v62 = a4;
v9 = a5;
result = cocos2d::CCLayerColor::initWithColor(a1, &v62, a5, a6);
if ( result )
{
v13 = "GJ_table_bottom_001.png";
if ( a7 == 1 )
{
v13 = "GJ_table_side_001.png";
v14 = "GJ_table_side_001.png";
}
else
{
v14 = "GJ_table_top02_001.png";
if ( a3 )
v14 = "GJ_table_top_001.png";
}
v15 = v9 * 0.5;
v16 = cocos2d::CCSprite::createWithSpriteFrameName(v13);
v17 = v16->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v18 = cocos2d::CCPoint::CCPoint(v7, v9 * 0.5);
v17->setPosition_0(v16, v19);
a1->addChild_0(a1, v16, 10);
v20 = cocos2d::CCSprite::createWithSpriteFrameName(v14);
v21 = v20->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(*(float *)&v18, v9 * 0.5);
v23 = ((float (__fastcall *)(struct cocos2d::CCSprite *, __int64))v21->setPosition_0)(v20, v22);
v24 = v20->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v25 = cocos2d::CCPoint::CCPoint(v23, 0.5);
v24->setAnchorPoint(v20, v26);
a1->addChild_0(a1, v20, 10);
v27 = 0;
if ( a7 == 1 )
{
((void (__fastcall *)(struct cocos2d::CCSprite *))v20->setScaleY)(v20);
v28 = ((float (__fastcall *)(struct cocos2d::CCSprite *))v20->setRotation)(v20);
v29 = v20->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v28, v15);
v29->setPosition_0(v20, v30);
((void (__fastcall *)(struct cocos2d::CCSprite *))v16->setScaleY)(v16);
v31 = ((float (__fastcall *)(struct cocos2d::CCSprite *))v16->setRotation)(v16);
v32 = v16->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v33 = cocos2d::CCPoint::CCPoint(v31, v15);
v32->setPosition_0(v16, v34);
while ( 1 )
{
while ( 1 )
{
while ( 1 )
{
v35 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_table_corner_001.png");
a1->addChild_0(a1, v35, 11);
if ( v27 )
break;
v40 = v35->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v33 = cocos2d::CCPoint::CCPoint(*(float *)&v33, -5.0);
v40->setPosition_0(v35, v41);
v27 = 1;
}
if ( v27 != 1 )
break;
v38 = v35->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v33 = cocos2d::CCPoint::CCPoint(*(float *)&v33, v9 + 5.0);
v38->setPosition_0(v35, v39);
cocos2d::CCSprite::setFlipX(v35, 1);
v27 = 2;
}
if ( v27 != 2 )
break;
v36 = v35->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v33 = cocos2d::CCPoint::CCPoint(*(float *)&v33, -5.0);
v36->setPosition_0(v35, v37);
cocos2d::CCSprite::setFlipY(v35, 1);
v27 = 3;
}
v42 = v35->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v25 = cocos2d::CCPoint::CCPoint(*(float *)&v33, v9 + 5.0);
v42->setPosition_0(v35, v43);
cocos2d::CCSprite::setFlipX(v35, 1);
cocos2d::CCSprite::setFlipY(v35, 1);
}
v44 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_table_side_001.png");
v45 = v44->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(*(float *)&v25, 0.0);
v45->setAnchorPoint(v44, v46);
v47 = ((float (__fastcall *)(GJListLayer *, struct cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v44, 9);
v48 = v44->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v47, -20.0);
v50 = ((double (__fastcall *)(struct cocos2d::CCSprite *, __int64))v48->setPosition_0)(v44, v49);
((void (__fastcall *)(struct cocos2d::CCSprite *))v44->setScaleY)(v44);
v51 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_table_side_001.png");
v52 = v51->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(*(float *)&v50, 1.0);
v52->setAnchorPoint(v51, v53);
v54 = ((float (__fastcall *)(GJListLayer *, struct cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v51, 9);
v55 = v51->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v54, v9 + 20.0);
v55->setPosition_0(v51, v56);
v57 = v51->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v58 = ((double (__fastcall *)(struct cocos2d::CCSprite *))v44->getScaleY)(v44);
((void (__fastcall *)(struct cocos2d::CCSprite *))v57->setScaleY)(v51);
cocos2d::CCSprite::setFlipX(v51, 1);
if ( a3 )
{
v59 = cocos2d::CCLabelBMFont::create(a3, (const char *)&qword_14052A4D8);
a1->addChild_0(a1, v59, 11);
cocos2d::CCLabelBMFont::limitLabelWidth(v59, 280.0, 0.80000001, 0.0);
cocos2d::CCPoint::CCPoint(*(float *)&v58, 0.0);
v60 = (__int64)v20->getPosition_0(v20);
cocos2d::CCPoint::operator+(v60, &v61);
v59->setPosition_0(v59, &v61);
}
if ( a2 )
{
a1->m_listView = a2;
cocos2d::CCObject::retain(a2);
a1->addChild_0(a1, a1->m_listView, 6);
a1->m_listView->setTag(a1->m_listView, 9);
}
return 1;
}
return result;
}