// // GJCommentListLayer::init from 0x5d9444 to 0x5d96c0 (636 bytes) // // 1 xrefs: // > GJCommentListLayer::create @ 0x5d9750 // // 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:54:10 +0000 // cocos2d::CCDirector *__fastcall GJCommentListLayer::init( cocos2d::CCObject *a1, int a2, int a3, int a4, float a5, float a6, char a7) { cocos2d::CCDirector *v9; // r0 int v10; // r0 cocos2d::CCTouchDispatcher *v11; // r0 const char *v12; // r6 size_t v13; // r0 const char *v14; // r6 size_t v15; // r0 const char *v16; // r1 cocos2d::CCSprite *v17; // r0 cocos2d::CCSprite *v18; // r6 void (__fastcall *v19)(cocos2d::CCSprite *, _BYTE *); // r7 cocos2d::CCSprite *v20; // r0 int v21; // r6 void (__fastcall *v22)(int, _BYTE *); // r7 void (__fastcall *v23)(int, _BYTE *); // r7 const char *v24; // r1 cocos2d::CCSprite *v25; // r0 float *v26; // r6 void (__fastcall *v27)(float *, _BYTE *); // r7 void (__fastcall *v28)(float *, _BYTE *); // r7 const char *v29; // r1 cocos2d::CCSprite *v30; // r0 cocos2d::CCSprite *v31; // r7 void (__fastcall *v32)(cocos2d::CCSprite *, _BYTE *); // r11 void (__fastcall *v33)(cocos2d::CCSprite *, _BYTE *); // r11 void (__fastcall *v34)(cocos2d::CCSprite *, int); // r4 int v35; // r0 int v36; // r3 cocos2d::CCDirector *v38; // [sp+4h] [bp-38h] int v39; // [sp+Ch] [bp-30h] BYREF _BYTE v40[8]; // [sp+14h] [bp-28h] BYREF int v41[2]; // [sp+1Ch] [bp-20h] BYREF cocos2d::CCSprite *v42; // [sp+24h] [bp-18h] int v43[2]; // [sp+28h] [bp-14h] BYREF cocos2d::CCSprite *v44; // [sp+30h] [bp-Ch] v39 = a4; v9 = (cocos2d::CCDirector *)cocos2d::CCLayerColor::initWithColor(a1, &v39, LODWORD(a5), LODWORD(a6)); v38 = v9; if ( v9 ) { v10 = cocos2d::CCDirector::sharedDirector(v9); v11 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v10 + 80))(v10); cocos2d::CCTouchDispatcher::registerForcePrio(v11, a1, 2, 2); if ( a7 ) v12 = "GJ_commentTop2_001.png"; else v12 = "GJ_commentTop_001.png"; v41[0] = 0; v41[1] = 0; v42 = nullptr; v13 = strlen(v12); std::string::__init(v41, v12, v13); if ( a7 ) v14 = "GJ_commentSide2_001.png"; else v14 = "GJ_commentSide_001.png"; v43[0] = 0; v43[1] = 0; v44 = nullptr; v15 = strlen(v14); std::string::__init(v43, v14, v15); if ( (v41[0] & 1) != 0 ) v17 = v42; else v17 = (cocos2d::CCSprite *)((char *)v41 + 1); v18 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v17, v16); cocos2d::CCSprite::setFlipY(v18, 1); v19 = *(void (__fastcall **)(cocos2d::CCSprite *, _BYTE *))(*(_DWORD *)v18 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, a5 * 0.5, 4.0); v19(v18, v40); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCSprite *, int))(*(_DWORD *)a1 + 232))(a1, v18, 10); if ( (v41[0] & 1) != 0 ) v20 = v42; else v20 = (cocos2d::CCSprite *)((char *)v41 + 1); v21 = cocos2d::CCSprite::createWithSpriteFrameName(v20, (const char *)(LOBYTE(v41[0]) << 31)); v22 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v21 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, a5 * 0.5, a6 - 4.0); v22(v21, v40); v23 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v21 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, 0.5, 0.5); v23(v21, v40); (*(void (__fastcall **)(cocos2d::CCObject *, int, int))(*(_DWORD *)a1 + 232))(a1, v21, 10); if ( (v43[0] & 1) != 0 ) v25 = v44; else v25 = (cocos2d::CCSprite *)((char *)v43 + 1); v26 = (float *)cocos2d::CCSprite::createWithSpriteFrameName(v25, v24); v27 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v26 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, 0.0, 0.0); v27(v26, v40); (*(void (__fastcall **)(cocos2d::CCObject *, float *, int))(*(_DWORD *)a1 + 232))(a1, v26, 9); v28 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v26 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, -7.0, 0.0); v28(v26, v40); (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v26 + 72))(v26, (float)(a6 - 5.0) / v26[87]); if ( (v43[0] & 1) != 0 ) v30 = v44; else v30 = (cocos2d::CCSprite *)((char *)v43 + 1); v31 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v30, v29); v32 = *(void (__fastcall **)(cocos2d::CCSprite *, _BYTE *))(*(_DWORD *)v31 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, 1.0, 0.0); v32(v31, v40); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCSprite *, int))(*(_DWORD *)a1 + 232))(a1, v31, 9); v33 = *(void (__fastcall **)(cocos2d::CCSprite *, _BYTE *))(*(_DWORD *)v31 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, a5 + 7.0, 0.0); v33(v31, v40); v34 = *(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v31 + 72); v35 = (*(int (__fastcall **)(float *))(*(_DWORD *)v26 + 76))(v26); v34(v31, v35); cocos2d::CCSprite::setFlipX(v31, 1); if ( a2 ) { v36 = *(_DWORD *)a1; *((_DWORD *)a1 + 110) = a2; (*(void (__fastcall **)(cocos2d::CCObject *, int, int))(v36 + 232))(a1, a2, 6); } std::string::~string((int)v43); std::string::~string((int)v41); } return v38; }
GD Web Decomp Icon

GD Web Decomp

Raw Source