// // GJCommentListLayer::init from 0x1002890d0 to 0x100289440 (880 bytes) // // 1 xrefs: // > GJCommentListLayer::create @ 0x100289085 // // 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 12:27:46 +0000 // __int64 __fastcall GJCommentListLayer::init( _QWORD *a1, __int64 a2, double a3, float a4, __int64 a5, int a6, unsigned __int8 a7) { unsigned int v9; // eax unsigned int v10; // ebx __int64 v11; // rax __int64 v12; // rax const char *v13; // rsi __int64 v14; // rbx size_t v15; // rdx _BYTE *v16; // r12 const char *v17; // r13 char *v18; // r14 __int64 v19; // r15 unsigned __int8 *v20; // rax unsigned __int8 *v21; // r13 double v22; // xmm0_8 char *v23; // r12 char *v24; // r13 char *v25; // rdi float *v26; // r12 double v27; // xmm0_8 unsigned __int8 *v28; // r13 __int64 v30; // [rsp+8h] [rbp-88h] char v32; // [rsp+18h] [rbp-78h] _BYTE __dst[15]; // [rsp+19h] [rbp-77h] BYREF _BYTE *v34; // [rsp+28h] [rbp-68h] int v35; // [rsp+30h] [rbp-60h] BYREF float v36; // [rsp+34h] [rbp-5Ch] _QWORD v37[2]; // [rsp+38h] [rbp-58h] BYREF void *__p; // [rsp+48h] [rbp-48h] float v39; // [rsp+54h] [rbp-3Ch] float v40; // [rsp+58h] [rbp-38h] float v41[2]; // [rsp+5Ch] [rbp-34h] BYREF unsigned __int8 v42; // [rsp+67h] [rbp-29h] v35 = a6; v40 = *(float *)&a3; v39 = a4; v9 = cocos2d::CCLayerColor::initWithColor_1(a1, &v35); v10 = v9; if ( (_BYTE)v9 ) { v42 = v9; v11 = cocos2d::CCDirector::sharedDirector(a1, &v35); v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 160LL))(v11); cocos2d::CCTouchDispatcher::registerForcePrio(v12, a1, 2, 2); v13 = "GJ_commentTop_001.png"; if ( a7 ) v13 = "GJ_commentTop2_001.png"; v14 = a7; v15 = a7 + 21LL; v32 = 2 * v15; v16 = __dst; memcpy(__dst, v13, v15); *((_BYTE *)&v34 + v14 + 6) = 0; v17 = "GJ_commentSide_001.png"; if ( (_BYTE)v14 ) v17 = "GJ_commentSide2_001.png"; v30 = a2; if ( (_BYTE)v14 ) { v18 = (char *)operator new(0x1Au); __p = v18; v37[0] = 27; v37[1] = 23; v19 = 23; } else { LOBYTE(v37[0]) = 44; v19 = 22; v18 = (char *)v37 + 1; } memcpy(v18, v17, v14 + 22); v18[v19] = 0; v20 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)__dst, a3); v10 = v42; v21 = v20; cocos2d::CCSprite::setFlipY(v20, 1u); HIDWORD(v22) = 0; *(float *)&v22 = 0.5 * v40; v36 = 0.5 * v40; sub_100278250(v41, 0.5 * v40, 4.0); (*(void (__fastcall **)(unsigned __int8 *, float *))(*(_QWORD *)v21 + 184LL))(v21, v41); (*(void (__fastcall **)(_QWORD *, unsigned __int8 *, __int64))(*a1 + 464LL))(a1, v21, 10); if ( (v32 & 1) != 0 ) v16 = v34; v23 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v16, v22); sub_100278250(v41, v36, v39 + -4.0); (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v23 + 184LL))(v23, v41); sub_100278250(v41, 0.5, 0.5); (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v23 + 296LL))(v23, v41); (*(void (__fastcall **)(_QWORD *, char *, __int64))(*a1 + 464LL))(a1, v23, 10); v24 = (char *)v37 + 1; v25 = (char *)v37 + 1; if ( (v37[0] & 1) != 0 ) v25 = (char *)__p; v26 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)v25, COERCE_DOUBLE(1056964608)); sub_100278250(v41, 0.0, 0.0); (*(void (__fastcall **)(float *, float *))(*(_QWORD *)v26 + 296LL))(v26, v41); (*(void (__fastcall **)(_QWORD *, float *, __int64))(*a1 + 464LL))(a1, v26, 9); sub_100278250(v41, -7.0, 0.0); (*(void (__fastcall **)(float *, float *))(*(_QWORD *)v26 + 184LL))(v26, v41); *(_QWORD *)&v27 = LODWORD(v39); *(float *)&v27 = (float)(v39 + -5.0) / v26[109]; (*(void (__fastcall **)(float *, float))(*(_QWORD *)v26 + 144LL))(v26, *(float *)&v27); if ( (v37[0] & 1) != 0 ) v24 = (char *)__p; v28 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)v24, v27); sub_100278250(v41, 1.0, 0.0); (*(void (__fastcall **)(unsigned __int8 *, float *))(*(_QWORD *)v28 + 296LL))(v28, v41); (*(void (__fastcall **)(_QWORD *, unsigned __int8 *, __int64))(*a1 + 464LL))(a1, v28, 9); sub_100278250(v41, v40 + 7.0, 0.0); (*(void (__fastcall **)(unsigned __int8 *, float *))(*(_QWORD *)v28 + 184LL))(v28, v41); (*(void (__fastcall **)(float *))(*(_QWORD *)v26 + 152LL))(v26); (*(void (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v28 + 144LL))(v28); cocos2d::CCSprite::setFlipX(v28, 1u); if ( v30 ) { a1[68] = v30; (*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v30, 6); } if ( (v37[0] & 1) != 0 ) operator delete(__p); if ( (v32 & 1) != 0 ) operator delete(v34); } return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source