// // GJListLayer::init from 0x14038dcc0 to 0x14038e2f3 (1587 bytes) // // 4 xrefs: // > GJListLayer::create @ 0x14038dc74 // > @ 0x1408be210 // > @ 0x1408be288 // > @ 0x140922ec8 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:31:10 +0000 // bool __fastcall GJListLayer::init( cocos2d::CCLayerColor *a1, cocos2d::CCObject *a2, const char *a3, int a4, float a5, float a6, int a7) { float v8; // xmm7_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 __int64 v17; // rbx __int64 v18; // rax struct cocos2d::CCSprite *v19; // r15 __int64 v20; // rbx __int64 v21; // rax __int64 v22; // rbx __int64 v23; // rax int v24; // edi bool v25; // zf __int64 v26; // rbx __int64 v27; // rax __int64 v28; // rbx __int64 v29; // rax struct cocos2d::CCSprite *v30; // rsi __int64 v31; // rbx __int64 v32; // rax __int64 v33; // rbx __int64 v34; // rax __int64 v35; // rbx __int64 v36; // rax __int64 v37; // rbx __int64 v38; // rax float v39; // xmm6_4 struct cocos2d::CCSprite *v40; // rsi __int64 v41; // rbx __int64 v42; // rax __int64 v43; // rbx __int64 v44; // rax struct cocos2d::CCSprite *v45; // rdi __int64 v46; // rbx __int64 v47; // rax __int64 v48; // rbx __int64 v49; // rax __int64 v50; // rbx cocos2d::CCLabelBMFont *v51; // rdi __int64 v52; // rax __int64 v53; // rbx __int64 v54; // rax _BYTE v55[8]; // [rsp+20h] [rbp-B8h] BYREF _BYTE v56[8]; // [rsp+28h] [rbp-B0h] BYREF _BYTE v57[16]; // [rsp+30h] [rbp-A8h] BYREF int v58; // [rsp+F8h] [rbp+20h] BYREF v58 = a4; v8 = a6; v9 = a5; result = cocos2d::CCLayerColor::initWithColor(a1, (const struct cocos2d::_ccColor4B *)&v58, 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 = *(_QWORD *)v16; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v55, v9 * 0.5, -10.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v17 + 184))(v16, v18); (*(void (__fastcall **)(cocos2d::CCLayerColor *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))( a1, v16, 10); v19 = cocos2d::CCSprite::createWithSpriteFrameName(v14); v20 = *(_QWORD *)v19; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v55, v9 * 0.5, (float)(v8 - 5.0) + 20.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v20 + 184))(v19, v21); v22 = *(_QWORD *)v19; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v55, 0.5, 0.5); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v22 + 288))(v19, v23); (*(void (__fastcall **)(cocos2d::CCLayerColor *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))( a1, v19, 10); v24 = 0; v25 = a7 == 1; if ( a7 == 1 ) { (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v19 + 136LL))(v19); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v19 + 352LL))(v19); v26 = *(_QWORD *)v19; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v55, v15, (float)(v8 - 14.0) + 20.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v26 + 184))(v19, v27); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v16 + 136LL))(v16); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v16 + 352LL))(v16); v28 = *(_QWORD *)v16; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v55, v15, -6.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v28 + 184))(v16, v29); while ( 1 ) { while ( 1 ) { while ( 1 ) { v30 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_table_corner_001.png"); (*(void (__fastcall **)(cocos2d::CCLayerColor *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))( a1, v30, 11); if ( v24 ) break; v35 = *(_QWORD *)v30; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, -5.0, v8 + 6.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v35 + 184))(v30, v36); v24 = 1; } if ( v24 != 1 ) break; v33 = *(_QWORD *)v30; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, v9 + 5.0, v8 + 6.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v33 + 184))(v30, v34); cocos2d::CCSprite::setFlipX(v30, 1); v24 = 2; } if ( v24 != 2 ) break; v31 = *(_QWORD *)v30; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v55, -5.0, -6.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v31 + 184))(v30, v32); cocos2d::CCSprite::setFlipY(v30, 1); v24 = 3; } v37 = *(_QWORD *)v30; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, v9 + 5.0, -6.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v37 + 184))(v30, v38); cocos2d::CCSprite::setFlipX(v30, 1); cocos2d::CCSprite::setFlipY(v30, 1); v25 = a7 == 1; } v39 = (float)v25; v40 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_table_side_001.png"); v41 = *(_QWORD *)v40; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, 0.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v41 + 288))(v40, v42); (*(void (__fastcall **)(cocos2d::CCLayerColor *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))( a1, v40, 9); v43 = *(_QWORD *)v40; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, -20.0, v39); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v43 + 184))(v40, v44); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v40 + 136LL))(v40); v45 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_table_side_001.png"); v46 = *(_QWORD *)v45; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, 1.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v46 + 288))(v45, v47); (*(void (__fastcall **)(cocos2d::CCLayerColor *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))( a1, v45, 9); v48 = *(_QWORD *)v45; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, v9 + 20.0, v39); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v48 + 184))(v45, v49); v50 = *(_QWORD *)v45; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v40 + 144LL))(v40); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v50 + 136))(v45); cocos2d::CCSprite::setFlipX(v45, 1); if ( a3 ) { v51 = cocos2d::CCLabelBMFont::create(a3, (const char *)&qword_140704F78); (*(void (__fastcall **)(cocos2d::CCLayerColor *, cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a1 + 456LL))( a1, v51, 11); cocos2d::CCLabelBMFont::limitLabelWidth(v51, 280.0, 0.80000001, 0.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, 0.0, 3.0); v53 = v52; v54 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v19 + 200LL))(v19); cocos2d::CCPoint::operator+(v54, v55, v53); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v51 + 184LL))(v51, v55); } if ( a2 ) { *((_QWORD *)a1 + 68) = a2; cocos2d::CCObject::retain(a2); (*(void (__fastcall **)(cocos2d::CCLayerColor *, _QWORD, __int64))(*(_QWORD *)a1 + 456LL))( a1, *((_QWORD *)a1 + 68), 6); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)a1 + 68) + 64LL))(*((_QWORD *)a1 + 68), 9); } return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source