// // GJNotificationCell::loadFromNotification from 0x74a074 to 0x74add0 (3420 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x74d0fc // > @ 0xce080 // // 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 12:52:51 +0000 // __int64 __fastcall GJNotificationCell::loadFromNotification(GJNotificationCell *this, GJNotification *a2) { cocos2d::CCObject *v4; // x0 __int64 v5; // x2 cocos2d::CCMenu *v6; // x0 cocos2d::CCNode *v7; // x25 __int64 v8; // x28 float v9; // s9 float v10; // s8 unsigned int v11; // w21 size_t v12; // x1 float v13; // s8 EmoteSprite *v14; // x0 int v15; // w0 __int64 *v16; // x0 size_t v17; // x2 char *v18; // x1 EmoteSprite *v19; // x0 int v20; // w0 __int64 *v21; // x0 int v22; // w23 EmoteSprite *v23; // x0 int v24; // w0 _QWORD *v25; // x21 void (__fastcall *v26)(_QWORD *, __int64 *); // x28 void (__fastcall *v27)(_QWORD *, __int64 *); // x28 __int64 v28; // x0 int v29; // w1 size_t v30; // x2 void *v31; // x1 void *v32; // x2 __int64 v33; // x0 __int64 v34; // x1 __int64 v35; // t2 cocos2d::CCSprite *v36; // x0 cocos2d::CCSprite *v37; // x28 float v38; // s0 long double v39; // q1 void (__fastcall *v40)(cocos2d::CCSprite *, __int64 *); // x22 __int64 v41; // x0 const char *v42; // x2 cocos2d::CCLabelBMFont *v43; // x0 cocos2d::CCLabelBMFont *v44; // x28 void (__fastcall *v45)(cocos2d::CCLabelBMFont *, __int64 *); // x22 void (__fastcall *v46)(cocos2d::CCLabelBMFont *, __int64 *); // x22 float v47; // s8 float v48; // s0 __int64 v49; // x0 const char *v50; // x1 float v51; // s10 cocos2d::CCString *v52; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v54; // x2 __int64 v55; // x28 void (__fastcall *v56)(__int64, __int64 *); // x22 void (__fastcall *v57)(__int64, __int64 *); // x23 const char *v58; // x6 __int64 v59; // x0 int v60; // w1 __int64 v61; // x21 __int64 v62; // x22 __int64 *v63; // x0 __int64 v64; // x22 void (__fastcall *v65)(__int64, __int64 *); // x23 void (__fastcall *v66)(__int64, __int64 *); // x22 float v67; // s8 __int64 v68; // x0 __int64 v69; // x23 cocos2d::CCNode *v70; // x26 void (__fastcall *v71)(__int64, __int64 *); // x24 const char *v72; // x1 __int64 v73; // x21 __int64 v74; // x23 float v75; // s2 float v76; // s0 void (__fastcall *v77)(__int64, __int64 *); // x24 cocos2d::CCNode *v78; // x20 char *v80; // x0 size_t v81; // x0 __int64 v82; // x0 __int64 (__fastcall *v83)(GJNotificationCell *, cocos2d::CCObject *); // x3 _DWORD *v84; // x23 void (__fastcall *v85)(_DWORD *, __int64 *); // x24 cocos2d::CCNode *v86; // x26 __int64 v87; // x28 void (__fastcall *v88)(__int64, __int64 *); // x22 char *v89; // x0 size_t v90; // x0 __int64 v91; // x0 char *v92; // [xsp+A8h] [xbp+A8h] char *v93; // [xsp+A8h] [xbp+A8h] int v94; // [xsp+B4h] [xbp+B4h] unsigned int v95; // [xsp+B8h] [xbp+B8h] float v96; // [xsp+BCh] [xbp+BCh] _BYTE v97[8]; // [xsp+C0h] [xbp+C0h] BYREF __int64 v98; // [xsp+C8h] [xbp+C8h] BYREF __int64 v99; // [xsp+D0h] [xbp+D0h] BYREF __int64 v100; // [xsp+D8h] [xbp+D8h] BYREF size_t v101; // [xsp+E0h] [xbp+E0h] void *v102; // [xsp+E8h] [xbp+E8h] __int64 v103; // [xsp+F0h] [xbp+F0h] BYREF size_t v104; // [xsp+F8h] [xbp+F8h] void *v105; // [xsp+100h] [xbp+100h] __int64 v106; // [xsp+108h] [xbp+108h] BYREF size_t v107; // [xsp+110h] [xbp+110h] void *v108; // [xsp+118h] [xbp+118h] __int64 v109; // [xsp+120h] [xbp+120h] BYREF size_t v110; // [xsp+128h] [xbp+128h] void *v111; // [xsp+130h] [xbp+130h] __int64 v112; // [xsp+138h] [xbp+138h] BYREF size_t v113; // [xsp+140h] [xbp+140h] void *v114; // [xsp+148h] [xbp+148h] __int64 v115; // [xsp+150h] [xbp+150h] BYREF __int64 v116; // [xsp+158h] [xbp+158h] void *v117; // [xsp+160h] [xbp+160h] __int64 v118[2]; // [xsp+168h] [xbp+168h] BYREF void *v119; // [xsp+178h] [xbp+178h] __int64 v120; // [xsp+180h] [xbp+180h] BYREF size_t v121; // [xsp+188h] [xbp+188h] void *v122; // [xsp+190h] [xbp+190h] (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 66) + 1168LL))(*((_QWORD *)this + 66), 0xFFFFFFFFLL); cocos2d::CCObject::retain(a2); v4 = *((cocos2d::CCObject **)this + 70); if ( v4 ) cocos2d::CCObject::release(v4); v5 = *((_QWORD *)this + 67); *((_QWORD *)this + 70) = a2; *((_QWORD *)this + 71) = 0; v6 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 584LL))(v5, 1); v7 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v6); (*(void (__fastcall **)(_QWORD, cocos2d::CCNode *, __int64))(**((_QWORD **)this + 67) + 464LL))( *((_QWORD *)this + 67), v7, 2); v8 = *((_QWORD *)this + 70); v9 = *((float *)this + 131) - 15.0; v96 = v9 - 4.0; if ( *(int *)(v8 + 168) > 0 && *(_DWORD *)(v8 + 164) ) { v95 = 1; LABEL_6: v10 = 70.0; v11 = 1; goto LABEL_7; } v95 = 0; if ( *(int *)(v8 + 208) > 0 ) goto LABEL_6; v11 = 0; v10 = 14.0; LABEL_7: if ( *(int *)(v8 + 216) > 0 ) v10 = v10 + 32.0; v12 = *(_BYTE *)(v8 + 112) >> 1; v13 = (float)(*((float *)this + 130) - 36.0) - v10; if ( (*(_BYTE *)(v8 + 112) & 1) != 0 ) v12 = *(_QWORD *)(v8 + 120); GameToolbox::singleLineSnippet(v8 + 112, v12, (__int64)&v100); v103 = 0; v104 = 0; v105 = nullptr; if ( (v100 & 1) != 0 ) { std::string::__init(&v103, v102, v101); } else { v105 = v102; v103 = v100; v104 = v101; } v106 = 0; v107 = 0; v108 = nullptr; if ( (v103 & 1) != 0 ) { std::string::__init(&v106, v105, v104); } else { v108 = v105; v106 = v103; v107 = v104; } v14 = (EmoteSprite *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v99, 0.0, 1.0); v15 = EmoteSprite::maxEmotesComment(v14); v16 = (__int64 *)TextArea::create( (char *)&v106, "chatFont.fnt", (const cocos2d::CCPoint *)&v99, 0, v15, 1.0, v13 / 0.54, 20.0); if ( v11 >= (unsigned __int8)sub_749E58(v16, &v103) ) { v94 = 0; if ( (v106 & 1) != 0 ) operator delete(v108); } else { if ( (v106 & 1) != 0 ) operator delete(v108); v13 = (float)(*((float *)this + 130) - 36.0) - 70.0; if ( (v100 & 1) != 0 ) { v18 = (char *)v102; v17 = v101; } else { v17 = (unsigned __int8)v100 >> 1; v18 = (char *)&v100 + 1; } std::string::assign(&v103, v18, v17); v109 = 0; v110 = 0; v111 = nullptr; if ( (v103 & 1) != 0 ) { std::string::__init(&v109, v105, v104); } else { v109 = v103; v110 = v104; v111 = v105; } v19 = (EmoteSprite *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v99, 0.0, 1.0); v20 = EmoteSprite::maxEmotesComment(v19); v21 = (__int64 *)TextArea::create( (char *)&v109, "chatFont.fnt", (const cocos2d::CCPoint *)&v99, 0, v20, 1.0, v13 / 0.54, 20.0); sub_749E58(v21, &v103); if ( (v109 & 1) != 0 ) operator delete(v111); v94 = 1; } v22 = 0; v112 = 0; v113 = 0; v114 = nullptr; if ( (v103 & 1) != 0 ) goto LABEL_39; LABEL_26: v114 = v105; v112 = v103; v113 = v104; while ( 1 ) { v23 = (EmoteSprite *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v99, 0.0, 1.0); v24 = EmoteSprite::maxEmotesComment(v23); v25 = (_QWORD *)TextArea::create( (char *)&v112, "chatFont.fnt", (const cocos2d::CCPoint *)&v99, 0, v24, 1.0, v13 / 0.54, 20.0); if ( (v112 & 1) != 0 ) operator delete(v114); v26 = *(void (__fastcall **)(_QWORD *, __int64 *))(*v25 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v99, 0.0, 1.0); v26(v25, &v99); (*(void (__fastcall **)(_QWORD *, float))(*v25 + 160LL))(v25, 0.54); v27 = *(void (__fastcall **)(_QWORD *, __int64 *))(*v25 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v99, (float)((float)v22 * 0.5) + 36.0, (float)(v9 - 10.0) - (float)((float)v22 * 0.5)); v27(v25, &v99); if ( v22 ) { TextArea::colorAllLabels((__int64)v25, 0); (*(void (__fastcall **)(_QWORD *, __int64))(*v25 + 912LL))(v25, 100); v91 = *(_QWORD *)(v25[76] + 624LL); if ( v91 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v91 + 344LL))(v91, 0); } (*(void (__fastcall **)(_QWORD, _QWORD *, _QWORD))(**((_QWORD **)this + 67) + 464LL))( *((_QWORD *)this + 67), v25, (unsigned int)(1 - v22)); if ( v22 ) break; v22 = 1; v112 = 0; v113 = 0; v114 = nullptr; if ( (v103 & 1) == 0 ) goto LABEL_26; LABEL_39: std::string::__init(&v112, v105, v104); } v28 = *((_QWORD *)this + 70); v29 = *(unsigned __int8 *)(v28 + 64); if ( (v29 & 1) != 0 ) { v30 = *(_QWORD *)(v28 + 72); if ( v30 ) { v31 = *(void **)(v28 + 80); v115 = 0; v116 = 0; v117 = nullptr; std::string::__init(&v115, v31, v30); goto LABEL_42; } } else if ( v29 >> 1 ) { v32 = *(void **)(v28 + 80); v35 = v28 + 64; v33 = *(_QWORD *)(v28 + 64); v34 = *(_QWORD *)(v35 + 8); v117 = v32; v115 = v33; v116 = v34; goto LABEL_42; } v80 = sub_7334D4(*(_DWORD *)(v28 + 60)); v115 = 0; v92 = v80; v116 = 0; v117 = nullptr; v81 = strlen(v80); std::string::__init(&v115, v92, v81); LABEL_42: v36 = EmoteSprite::createWithName((char *)&v115); v37 = v36; if ( v36 ) { LABEL_43: v38 = EmoteSprite::heightFactor(v36); LODWORD(v39) = 1067198710; EmoteSprite::fitToHeight(v37, v38 * 18.0, v39); v40 = *(void (__fastcall **)(cocos2d::CCSprite *, __int64 *))(*(_QWORD *)v37 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v99, 18.0, v96); v40(v37, &v99); (*(void (__fastcall **)(_QWORD, cocos2d::CCSprite *, __int64))(**((_QWORD **)this + 67) + 464LL))( *((_QWORD *)this + 67), v37, 1); goto LABEL_44; } v89 = sub_7334D4(*(_DWORD *)(*((_QWORD *)this + 70) + 60LL)); v118[0] = 0; v93 = v89; v118[1] = 0; v119 = nullptr; v90 = strlen(v89); std::string::__init(v118, v93, v90); v37 = EmoteSprite::createWithName((char *)v118); v36 = (cocos2d::CCSprite *)LOBYTE(v118[0]); if ( (v118[0] & 1) != 0 ) { operator delete(v119); if ( v37 ) goto LABEL_43; } else if ( v37 ) { goto LABEL_43; } LABEL_44: v41 = *((_QWORD *)this + 70); v42 = (const char *)(v41 + 88); if ( (*(_BYTE *)(v41 + 88) & 1) != 0 ) v43 = *(cocos2d::CCLabelBMFont **)(v41 + 104); else v43 = (cocos2d::CCLabelBMFont *)(v41 + 89); v44 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v43, "bigFont.fnt", v42); cocos2d::CCLabelBMFont::limitLabelWidth(v44, v13 - 60.0, 0.5, 0.2); v45 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v44 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v99, 0.0, 0.5); v45(v44, &v99); v46 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v44 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v99, 36.0, v9 + 3.0); v46(v44, &v99); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64))(**((_QWORD **)this + 67) + 464LL))( *((_QWORD *)this + 67), v44, 1); v47 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v44 + 328LL))(v44); v48 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v44 + 168LL))(v44); v49 = *((_QWORD *)this + 70); v50 = (const char *)(v49 + 137); v51 = (float)((float)(v47 * v48) + 36.0) + 6.0; if ( (*(_BYTE *)(v49 + 136) & 1) != 0 ) v50 = *(const char **)(v49 + 152); v52 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s ago", v50, v49 + 136); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v52); v55 = cocos2d::CCLabelBMFont::create(CString, "chatFont.fnt", v54); v56 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v55 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v99, 0.0, 0.5); v56(v55, &v99); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v55 + 160LL))(v55, 0.5); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v55 + 1072LL))(v55, &qword_113C0F0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v55 + 1024LL))(v55, 4294967190LL); v57 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v55 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v99, v51, (float)(v9 + 3.0) - 1.0); v57(v55, &v99); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))(*((_QWORD *)this + 67), v55, 1); v59 = *((_QWORD *)this + 70); if ( *(_BYTE *)(v59 + 160) ) { v87 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"d_ball_01_001.png", (const char *)*(unsigned __int8 *)(v59 + 160)); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v87 + 960LL))(v87, &unk_113C0F8); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v87 + 160LL))(v87, 0.214); v88 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v87 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v99, 6.0, v96 + 9.0); v88(v87, &v99); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))( *((_QWORD *)this + 67), v87, 10); v59 = *((_QWORD *)this + 70); } v60 = *(_DWORD *)(v59 + 208); if ( v60 > 0 ) { LODWORD(v59) = *(_DWORD *)(v59 + 212); if ( (int)v59 <= 0 ) v59 = 1; else v59 = (unsigned int)v59; v61 = GJChestSprite::create((GJChestSprite *)v59, v60); GJChestSprite::switchToState(v61, 2, 1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v61 + 160LL))(v61, 0.234); v62 = CCMenuItemSpriteExtra::create(v61, 0, (__int64)this, (__int64)GJNotificationCell::onClaimReward, 0); *((_QWORD *)this + 71) = v62; v120 = 0; v121 = 0; v122 = nullptr; std::string::__init(&v120, "chestClick.ogg", 0xEu); v63 = (__int64 *)(v62 + 440); if ( (__int64 *)(v62 + 440) != &v120 ) { if ( (v120 & 1) != 0 ) std::string::assign(v63, v122, v121); else std::string::assign(v63, (char *)&v120 + 1, (unsigned __int8)v120 >> 1); } if ( (v120 & 1) != 0 ) operator delete(v122); v64 = *((_QWORD *)this + 71); v65 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v64 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v99, 23.4, 18.72); v65(v64, &v99); v66 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v61 + 184LL); v67 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 71) + 328LL))(*((_QWORD *)this + 71)) * 0.5; v68 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 71) + 328LL))(*((_QWORD *)this + 71)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v99, v67, *(float *)(v68 + 4) * 0.5); v66(v61, &v99); *(_BYTE *)(*((_QWORD *)this + 71) + 408LL) = 0; *(_BYTE *)(*((_QWORD *)this + 71) + 409LL) = 1; (*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v7 + 456LL))(v7, *((_QWORD *)this + 71)); v69 = *((_QWORD *)this + 71); v70 = *((cocos2d::CCNode **)this + 67); v71 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v69 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v97, *((float *)this + 130) - 34.0, *((float *)this + 131) * 0.5); cocos2d::CCNode::convertToWorldSpace(&v98, v70, (const cocos2d::CCPoint *)v97); cocos2d::CCNode::convertToNodeSpace(&v99, v7, (const cocos2d::CCPoint *)&v98); v71(v69, &v99); GJNotificationCell::refreshChest(this); goto LABEL_60; } if ( v94 || (v72 = (const char *)v95, v95) ) { v82 = ButtonSprite::create( (ButtonSprite *)"View", (const char *)&dword_30 + 2, 0, 0, 0.6, "bigFont.fnt", "GJ_button_01.png", v58, 25.0); if ( v95 ) v83 = GJNotificationCell::onViewTarget; else v83 = GJNotificationCell::onShowBody; v84 = (_DWORD *)CCMenuItemSpriteExtra::create(v82, 0, (__int64)this, (__int64)v83, 0); (*(void (__fastcall **)(_DWORD *, float))(*(_QWORD *)v84 + 160LL))(v84, 0.8); v84[101] = 1061997773; CCMenuItemSpriteExtra::setSizeMult((__int64)v84, 1.1); (*(void (__fastcall **)(cocos2d::CCNode *, _DWORD *))(*(_QWORD *)v7 + 456LL))(v7, v84); v85 = *(void (__fastcall **)(_DWORD *, __int64 *))(*(_QWORD *)v84 + 184LL); v86 = *((cocos2d::CCNode **)this + 67); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v97, *((float *)this + 130) - 34.0, *((float *)this + 131) * 0.5); cocos2d::CCNode::convertToWorldSpace(&v98, v86, (const cocos2d::CCPoint *)v97); cocos2d::CCNode::convertToNodeSpace(&v99, v7, (const cocos2d::CCPoint *)&v98); v85(v84, &v99); LABEL_60: v59 = *((_QWORD *)this + 70); } if ( *(int *)(v59 + 216) > 0 ) { v73 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"accountBtn_notifications_001.png", v72); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v73 + 160LL))(v73, 0.5); v74 = CCMenuItemSpriteExtra::create(v73, 0, (__int64)this, (__int64)GJNotificationCell::onMute, 0); CCMenuItemSpriteExtra::setSizeMult(v74, 1.2); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v7 + 456LL))(v7, v74); v75 = *((float *)this + 131); v76 = *((float *)this + 130) - 74.0; v77 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v74 + 184LL); v78 = *((cocos2d::CCNode **)this + 67); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v97, v76, v75 * 0.5); cocos2d::CCNode::convertToWorldSpace(&v98, v78, (const cocos2d::CCPoint *)v97); cocos2d::CCNode::convertToNodeSpace(&v99, v7, (const cocos2d::CCPoint *)&v98); v77(v74, &v99); } if ( (v115 & 1) != 0 ) operator delete(v117); if ( (v103 & 1) != 0 ) operator delete(v105); if ( (v100 & 1) != 0 ) operator delete(v102); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source