// // GJCommentListLayer::init from 0x100372898 to 0x100372bd4 (828 bytes) // // 1 xrefs: // > GJCommentListLayer::create @ 0x100372844 // // This function is hookable on this platform (idp: arm, 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:03:23 +0000 // __int64 __fastcall GJCommentListLayer::init(__int64 a1, __int64 a2, float a3, float a4, __int64 a5, __int32 a6, int a7) { __int64 v12; // x19 __int64 v13; // x0 __int64 v14; // x0 char *v15; // x1 char *v16; // x22 void **v17; // x0 unsigned __int8 *v18; // x22 void **v19; // x0 void *v20; // x22 void **v21; // x0 float *v22; // x22 void **v23; // x0 unsigned __int8 *v24; // x23 float v26; // [xsp+0h] [xbp-90h] BYREF void *__p[2]; // [xsp+8h] [xbp-88h] BYREF char v28; // [xsp+1Fh] [xbp-71h] void *v29[2]; // [xsp+20h] [xbp-70h] BYREF char v30; // [xsp+37h] [xbp-59h] __int32 v31; // [xsp+3Ch] [xbp-54h] BYREF v31 = a6; v12 = cocos2d::CCLayerColor::initWithColor_1((_WORD *)a1, &v31, a3, a4); if ( (_DWORD)v12 ) { v13 = cocos2d::CCDirector::sharedDirector(); v14 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 160LL))(v13); cocos2d::CCTouchDispatcher::registerForcePrio(v14, a1, 2, 2); if ( a7 ) v15 = "GJ_commentTop2_001.png"; else v15 = "GJ_commentTop_001.png"; if ( a7 ) v16 = "GJ_commentSide2_001.png"; else v16 = "GJ_commentSide_001.png"; sub_100009900(v29, v15); sub_100009900(__p, v16); if ( v30 >= 0 ) v17 = v29; else v17 = (void **)v29[0]; v18 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)v17); cocos2d::CCSprite::setFlipY(v18, 1); sub_1000262BC(&v26, a3 * 0.5, 4.0); (*(void (__fastcall **)(unsigned __int8 *, float *))(*(_QWORD *)v18 + 184LL))(v18, &v26); (*(void (__fastcall **)(__int64, unsigned __int8 *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v18, 10); if ( v30 >= 0 ) v19 = v29; else v19 = (void **)v29[0]; v20 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v19); sub_1000262BC(&v26, a3 * 0.5, a4 + -4.0); (*(void (__fastcall **)(void *, float *))(*(_QWORD *)v20 + 184LL))(v20, &v26); sub_1000262BC(&v26, 0.5, 0.5); (*(void (__fastcall **)(void *, float *))(*(_QWORD *)v20 + 296LL))(v20, &v26); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v20, 10); if ( v28 >= 0 ) v21 = __p; else v21 = (void **)__p[0]; v22 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)v21); sub_1000262BC(&v26, 0.0, 0.0); (*(void (__fastcall **)(float *, float *))(*(_QWORD *)v22 + 296LL))(v22, &v26); (*(void (__fastcall **)(__int64, float *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v22, 9); sub_1000262BC(&v26, -7.0, 0.0); (*(void (__fastcall **)(float *, float *))(*(_QWORD *)v22 + 184LL))(v22, &v26); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v22 + 144LL))(v22, (float)(a4 + -5.0) / v22[109]); if ( v28 >= 0 ) v23 = __p; else v23 = (void **)__p[0]; v24 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)v23); sub_1000262BC(&v26, 1.0, 0.0); (*(void (__fastcall **)(unsigned __int8 *, float *))(*(_QWORD *)v24 + 296LL))(v24, &v26); (*(void (__fastcall **)(__int64, unsigned __int8 *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v24, 9); sub_1000262BC(&v26, a3 + 7.0, 0.0); (*(void (__fastcall **)(unsigned __int8 *, float *))(*(_QWORD *)v24 + 184LL))(v24, &v26); (*(void (__fastcall **)(float *))(*(_QWORD *)v22 + 152LL))(v22); (*(void (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v24 + 144LL))(v24); cocos2d::CCSprite::setFlipX(v24, 1); if ( a2 ) { *(_QWORD *)(a1 + 544) = a2; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, a2, 6); } if ( v28 < 0 ) operator delete(__p[0]); if ( v30 < 0 ) operator delete(v29[0]); } return v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source