// // GJListLayer::init from 0x515170 to 0x515566 (1014 bytes) // // 1 xrefs: // > GJListLayer::create @ 0x5155f6 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:51:36 +0000 // int __fastcall GJListLayer::init( _DWORD *a1, cocos2d::CCObject *a2, cocos2d::CCLabelBMFont *a3, int a4, float a5, float a6, int a7) { float v10; // s16 const char *v11; // r1 char *v12; // r8 char *v13; // r0 float *v14; // r11 void (__fastcall *v15)(float *, _BYTE *); // r5 const char *v16; // r1 float *v17; // r5 void (__fastcall *v18)(float *, _BYTE *); // r8 void (__fastcall *v19)(float *, _BYTE *); // r8 const char *v20; // r1 int v21; // r8 void (__fastcall *v22)(float *, _BYTE *); // r7 void (__fastcall *v23)(float *, _BYTE *); // r7 cocos2d::CCSprite *v24; // r7 float v25; // r11 float *v26; // r7 const char *v27; // r1 cocos2d::CCSprite *v28; // r8 void (__fastcall *v29)(cocos2d::CCSprite *, int); // r11 int v30; // r0 const char *v31; // r2 cocos2d::CCLabelBMFont *v32; // r7 void (__fastcall *v33)(cocos2d::CCLabelBMFont *, _BYTE *); // r8 int v34; // r10 int v36; // [sp+0h] [bp-2Ch] void (__fastcall *v37)(cocos2d::CCSprite *, _BYTE *); // [sp+8h] [bp-24h] void (__fastcall *v38)(float *, _BYTE *); // [sp+8h] [bp-24h] void (__fastcall *v39)(float *, _BYTE *); // [sp+8h] [bp-24h] void (__fastcall *v40)(cocos2d::CCSprite *, _BYTE *); // [sp+8h] [bp-24h] void (__fastcall *v41)(cocos2d::CCSprite *, _BYTE *); // [sp+8h] [bp-24h] int v42; // [sp+Ch] [bp-20h] BYREF _BYTE v43[8]; // [sp+14h] [bp-18h] BYREF _BYTE v44[8]; // [sp+1Ch] [bp-10h] BYREF v42 = a4; v10 = a6; v36 = cocos2d::CCLayerColor::initWithColor(a1, &v42, LODWORD(a5), LODWORD(a6)); if ( v36 ) { if ( a7 == 1 ) { v12 = "GJ_table_side_001.png"; v13 = "GJ_table_side_001.png"; } else { if ( a3 ) v12 = "GJ_table_top_001.png"; else v12 = "GJ_table_top02_001.png"; v13 = "GJ_table_bottom_001.png"; } v14 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v13, v11); v15 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v14 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, a5 * 0.5, -10.0); v15(v14, v44); (*(void (__fastcall **)(_DWORD *, float *, int))(*a1 + 232))(a1, v14, 10); v17 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v12, v16); v18 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v17 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, a5 * 0.5, (float)(a6 - 5.0) + 20.0); v18(v17, v44); v19 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v17 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, 0.5, 0.5); v19(v17, v44); (*(void (__fastcall **)(_DWORD *, float *, int))(*a1 + 232))(a1, v17, 10); if ( a7 == 1 ) { v21 = 0; (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v17 + 72))(v17, (float)(a5 - 2.0) / v17[87]); (*(void (__fastcall **)(float *, int))(*(_DWORD *)v17 + 180))(v17, 1119092736); v22 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v17 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, a5 * 0.5, (float)(a6 - 14.0) + 20.0); v22(v17, v44); (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v14 + 72))(v14, (float)(a5 - 2.0) / v14[87]); (*(void (__fastcall **)(float *, int))(*(_DWORD *)v14 + 180))(v14, -1028390912); v23 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v14 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, a5 * 0.5, -6.0); v23(v14, v44); while ( 1 ) { v24 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_table_corner_001.png", v20); (*(void (__fastcall **)(_DWORD *, cocos2d::CCSprite *, int))(*a1 + 232))(a1, v24, 11); v37 = *(void (__fastcall **)(cocos2d::CCSprite *, _BYTE *))(*(_DWORD *)v24 + 92); if ( v21 == 2 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, -5.0, -6.0); v37(v24, v44); } else { if ( v21 != 3 ) { if ( v21 == 1 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, a5 + 5.0, a6 + 6.0); v37(v24, v44); cocos2d::CCSprite::setFlipX(v24, 1); } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, -5.0, a6 + 6.0); v37(v24, v44); } goto LABEL_18; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, a5 + 5.0, -6.0); v37(v24, v44); cocos2d::CCSprite::setFlipX(v24, 1); } cocos2d::CCSprite::setFlipY(v24, 1); LABEL_18: if ( ++v21 == 4 ) { v10 = a6 - 2.0; v25 = 1.0; goto LABEL_21; } } } v25 = 0.0; LABEL_21: v26 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_table_side_001.png", v20); v38 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v26 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, 0.0, 0.0); v38(v26, v44); (*(void (__fastcall **)(_DWORD *, float *, int))(*a1 + 232))(a1, v26, 9); v39 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v26 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, -20.0, v25); v39(v26, v44); (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v26 + 72))(v26, v10 / v26[87]); v28 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_table_side_001.png", v27); v40 = *(void (__fastcall **)(cocos2d::CCSprite *, _BYTE *))(*(_DWORD *)v28 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, 1.0, 0.0); v40(v28, v44); (*(void (__fastcall **)(_DWORD *, cocos2d::CCSprite *, int))(*a1 + 232))(a1, v28, 9); v41 = *(void (__fastcall **)(cocos2d::CCSprite *, _BYTE *))(*(_DWORD *)v28 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, a5 + 20.0, v25); v41(v28, v44); v29 = *(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v28 + 72); v30 = (*(int (__fastcall **)(float *))(*(_DWORD *)v26 + 76))(v26); v29(v28, v30); cocos2d::CCSprite::setFlipX(v28, 1); if ( a3 ) { v32 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(a3, "bigFont.fnt", v31); (*(void (__fastcall **)(_DWORD *, cocos2d::CCLabelBMFont *, int))(*a1 + 232))(a1, v32, 11); cocos2d::CCLabelBMFont::limitLabelWidth(v32, 280.0, 0.8, 0.0); v33 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v32 + 92); v34 = (*(int (__fastcall **)(float *))(*(_DWORD *)v17 + 96))(v17); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, 0.0, 3.0); cocos2d::CCPoint::operator+(v43, v34, v44); v33(v32, v43); } if ( a2 ) { a1[110] = a2; cocos2d::CCObject::retain(a2); (*(void (__fastcall **)(_DWORD *, _DWORD, int))(*a1 + 232))(a1, a1[110], 6); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)a1[110] + 36))(a1[110], 9); } } return v36; }
GD Web Decomp Icon

GD Web Decomp

Raw Source