// // GJMessageCell::loadFromMessage from 0x73f458 to 0x73fdd8 (2432 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x74d3e8 // > @ 0xdfae0 // // 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:43 +0000 // __int64 __fastcall GJMessageCell::loadFromMessage(GJMessageCell *this, GJUserMessage *a2) { cocos2d::CCObject *v4; // x0 __int64 v5; // x0 const char *v6; // x2 __int64 v7; // x1 char *v8; // x0 cocos2d::CCLabelBMFont *v9; // x21 void (__fastcall *v10)(cocos2d::CCLabelBMFont *, __int64 *); // x22 void (__fastcall *v11)(cocos2d::CCLabelBMFont *, __int64 *); // x22 const char *v12; // x6 __int64 v13; // x27 cocos2d::CCMenu *v14; // x22 cocos2d::CCNode *v15; // x22 __int64 v16; // x0 float v17; // s11 __int64 (__fastcall *v18)(__int64); // x1 void (__fastcall *v19)(cocos2d::CCNode *, __int64 *); // x27 float *v20; // x0 const char *v21; // x6 _QWORD *v22; // x23 __int64 v23; // x27 void (__fastcall *v24)(__int64, __int64 *); // x28 __int64 v25; // x23 void (__fastcall *v26)(__int64, __int64 *); // x27 const char *v27; // x1 const char *v28; // x23 size_t v29; // x0 __int64 v30; // x0 __int64 v31; // x2 __int64 v32; // x0 __int64 v33; // x1 char *v34; // x2 cocos2d::CCString *v35; // x0 const char *v36; // x2 cocos2d::CCLabelBMFont *CString; // x23 cocos2d::CCLabelBMFont *v38; // x23 __int64 v39; // x28 float v40; // s8 float v41; // s0 __int64 v42; // x23 void (__fastcall *v43)(__int64, __int64 *); // x27 __int64 v44; // x1 __int64 v45; // x2 void *v46; // x1 __int64 v47; // x4 __int64 v48; // x5 __int64 v49; // x23 __int64 v50; // x0 __int64 v51; // x1 char *v52; // x1 cocos2d::CCString *v53; // x0 cocos2d::CCLabelBMFont *v54; // x0 const char *v55; // x2 __int64 v56; // x23 void (__fastcall *v57)(__int64, __int64 *); // x27 void (__fastcall *v58)(__int64, __int64 *); // x27 float *v59; // x0 __int64 v60; // x23 const char *v61; // x1 __int64 v62; // x27 CCMenuItemToggler *v63; // x0 __int64 v64; // x1 __int64 v65; // x23 void (__fastcall *v66)(__int64, __int64 *); // x27 const char *v67; // x2 __int64 v68; // x0 __int64 v69; // x22 void (__fastcall *v70)(__int64, __int64 *); // x23 void (__fastcall *v71)(__int64, __int64 *); // x19 __int64 v72; // x23 float v73; // s8 float v74; // s0 __int64 v76; // [xsp+80h] [xbp+80h] char *v77; // [xsp+80h] [xbp+80h] __int64 v78; // [xsp+90h] [xbp+90h] BYREF _BYTE v79[8]; // [xsp+98h] [xbp+98h] BYREF __int64 v80; // [xsp+A0h] [xbp+A0h] BYREF __int64 v81[2]; // [xsp+A8h] [xbp+A8h] BYREF void *v82; // [xsp+B8h] [xbp+B8h] __int64 v83; // [xsp+C0h] [xbp+C0h] BYREF __int64 v84; // [xsp+C8h] [xbp+C8h] void *v85; // [xsp+D0h] [xbp+D0h] __int64 v86; // [xsp+D8h] [xbp+D8h] BYREF __int64 v87; // [xsp+E0h] [xbp+E0h] void *v88; // [xsp+E8h] [xbp+E8h] __int64 v89; // [xsp+F0h] [xbp+F0h] BYREF __int64 v90; // [xsp+F8h] [xbp+F8h] char *v91; // [xsp+100h] [xbp+100h] (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 584LL))(*((_QWORD *)this + 67), 1); if ( a2 ) { v4 = *((cocos2d::CCObject **)this + 72); if ( v4 ) cocos2d::CCObject::release(v4); *((_QWORD *)this + 72) = a2; cocos2d::CCObject::retain(a2); v89 = 0; v5 = *((_QWORD *)this + 72); v90 = 0; v91 = nullptr; v6 = (const char *)(v5 + 328); if ( (*(_BYTE *)(v5 + 328) & 1) != 0 ) { std::string::__init(&v89, *(void **)(v5 + 344), *(_QWORD *)(v5 + 336)); } else { v7 = *(_QWORD *)(v5 + 336); v89 = *(_QWORD *)v6; v90 = v7; v91 = *(char **)(v5 + 344); } v8 = (char *)&v89 + 1; if ( (v89 & 1) != 0 ) v8 = v91; v9 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v8, "bigFont.fnt", v6); if ( (v89 & 1) != 0 ) operator delete(v91); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))( *((_QWORD *)this + 67), v9); v10 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v9 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, 0.0, 0.5); v10(v9, &v80); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v9 + 160LL))(v9, 1.0); v11 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v9 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, 38.0, (float)(*((float *)this + 131) * 0.5) + 14.0); v11(v9, &v80); cocos2d::CCLabelBMFont::limitLabelWidth(v9, 180.0, 0.5, 0.0); v13 = ButtonSprite::create( (ButtonSprite *)"View", (const char *)&dword_30 + 2, 0, 0, 0.6, "bigFont.fnt", "GJ_button_01.png", v12, 25.0); v14 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create( v13, 0, (__int64)this, (__int64)GJMessageCell::onViewMessage, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v14, 1.1); v15 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v14, nullptr); (*(void (__fastcall **)(_QWORD, cocos2d::CCNode *))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v15); v16 = v13; v17 = *((float *)this + 130); v18 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 328LL); v19 = *(void (__fastcall **)(cocos2d::CCNode *, __int64 *))(*(_QWORD *)v15 + 184LL); v20 = (float *)v18(v16); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v80, (float)(v17 - (float)(*v20 * 0.5)) - 45.0, *((float *)this + 131) * 0.5); v19(v15, &v80); v22 = (_QWORD *)ButtonSprite::create( (ButtonSprite *)"X", (const char *)&dword_30 + 2, 0, 0, 0.6, "bigFont.fnt", "GJ_button_06.png", v21, 31.25); (*(void (__fastcall **)(_QWORD *, float))(*v22 + 160LL))(v22, 0.8); v23 = v22[78]; v24 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v23 + 184LL); v76 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v23 + 192LL))(v23); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v79, 1.5, -0.5); cocos2d::CCPoint::operator+(&v80, v76); v24(v23, &v80); v25 = CCMenuItemSpriteExtra::create((__int64)v22, 0, (__int64)this, (__int64)GJMessageCell::onDeleteMessage, 0); CCMenuItemSpriteExtra::setSizeMult(v25, 1.1); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v15 + 456LL))(v15, v25); v26 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v25 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v79, *((float *)this + 130) - 22.0, *((float *)this + 131) * 0.5); cocos2d::CCNode::convertToNodeSpace(&v80, v15, (const cocos2d::CCPoint *)v79); v26(v25, &v80); if ( *(_BYTE *)(*((_QWORD *)this + 72) + 425LL) ) v27 = "To:"; else v27 = "From:"; v77 = (char *)v27; v81[0] = 0; v81[1] = 0; v28 = (char *)v81 + 1; v82 = nullptr; v29 = strlen(v27); std::string::__init(v81, v77, v29); if ( (v81[0] & 1) != 0 ) v28 = (const char *)v82; v30 = *((_QWORD *)this + 72); v83 = 0; v31 = v30 + 376; v84 = 0; LOBYTE(v30) = *(_BYTE *)(v30 + 376); v85 = nullptr; if ( (v30 & 1) != 0 ) { std::string::__init(&v83, *(void **)(v31 + 16), *(_QWORD *)(v31 + 8)); } else { v32 = *(_QWORD *)v31; v33 = *(_QWORD *)(v31 + 8); v85 = *(void **)(v31 + 16); v83 = v32; v84 = v33; } v34 = (char *)&v83 + 1; if ( (v83 & 1) != 0 ) v34 = (char *)v85; v35 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s %s", v28, v34); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v35); if ( (v83 & 1) != 0 ) operator delete(v85); v38 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v36); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v38 + 160LL))(v38, 1.0); cocos2d::CCLabelBMFont::limitLabelWidth(v38, 140.0, 0.5, 0.0); v39 = (*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v9 + 192LL))(v9); v40 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v38 + 328LL))(v38) * 0.5; v41 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v38 + 168LL))(v38); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, (float)(v40 * v41) + 1.0, -15.0); cocos2d::CCPoint::operator+(&v78, v39); v42 = CCMenuItemSpriteExtra::create((__int64)v38, 0, (__int64)this, (__int64)GJMessageCell::onViewProfile, 0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v15 + 456LL))(v15, v42); v43 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v42 + 184LL); cocos2d::CCNode::convertToNodeSpace(&v80, v15, (const cocos2d::CCPoint *)&v78); v43(v42, &v80); v44 = *((_QWORD *)this + 72); v86 = 0; v45 = v44 + 400; v87 = 0; LOBYTE(v44) = *(_BYTE *)(v44 + 400); v88 = nullptr; if ( (v44 & 1) != 0 ) { std::string::__init(&v86, *(void **)(v45 + 16), *(_QWORD *)(v45 + 8)); } else { v46 = *(void **)(v45 + 16); v47 = *(_QWORD *)v45; v48 = *(_QWORD *)(v45 + 8); v88 = v46; v86 = v47; v87 = v48; } v49 = (unsigned __int8)v86 >> 1; if ( (v86 & 1) != 0 ) { v49 = v87; operator delete(v88); } if ( v49 ) { v50 = *((_QWORD *)this + 72); v89 = 0; v90 = 0; v91 = nullptr; if ( (*(_BYTE *)(v50 + 400) & 1) != 0 ) { std::string::__init(&v89, *(void **)(v50 + 416), *(_QWORD *)(v50 + 408)); } else { v51 = *(_QWORD *)(v50 + 408); v89 = *(_QWORD *)(v50 + 400); v90 = v51; v91 = *(char **)(v50 + 416); } v52 = (char *)&v89 + 1; if ( (v89 & 1) != 0 ) v52 = v91; v53 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s ago", v52); v54 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v53); v56 = cocos2d::CCLabelBMFont::create(v54, "chatFont.fnt", v55); if ( (v89 & 1) != 0 ) operator delete(v91); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))( *((_QWORD *)this + 67), v56, 1); v57 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v56 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, 0.0, 0.5); v57(v56, &v80); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v56 + 160LL))(v56, 0.5); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v56 + 1072LL))(v56, &qword_113C0F0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v56 + 1024LL))(v56, 125); v58 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v56 + 184LL); v59 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v9 + 192LL))(v9); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, *v59 + 3.0, 10.0); v58(v56, &v80); } v60 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", (const char *)v46); v62 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOff_001.png", v61); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v60 + 160LL))(v60, 0.7); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v62 + 160LL))(v62, 0.7); v63 = (CCMenuItemToggler *)CCMenuItemToggler::create(v62, v60, (__int64)this, (__int64)GJMessageCell::onToggle, 0); v64 = *((_QWORD *)this + 72); *((_QWORD *)this + 74) = v63; CCMenuItemToggler::toggle(v63, *(_BYTE *)(v64 + 426)); (*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v15 + 456LL))(v15, *((_QWORD *)this + 74)); v65 = *((_QWORD *)this + 74); v66 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v65 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v79, 20.0, *((float *)this + 131) * 0.5); cocos2d::CCNode::convertToNodeSpace(&v80, v15, (const cocos2d::CCPoint *)v79); v66(v65, &v80); CCMenuItemToggler::setSizeMult(*((CCMenuItemToggler **)this + 74), 1.2); v68 = *((_QWORD *)this + 72); if ( !*(_BYTE *)(v68 + 424) && !*(_BYTE *)(v68 + 425) ) { v69 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"!", "bigFont.fnt", v67); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v69 + 1072LL))(v69, &unk_113C0F8); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v69 + 160LL))(v69, 0.5); v70 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v69 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, 0.0, 0.5); v70(v69, &v80); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))( *((_QWORD *)this + 67), v69, 10); v71 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v69 + 184LL); v72 = (*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v9 + 192LL))(v9); v73 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v9 + 328LL))(v9); v74 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v9 + 168LL))(v9); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v79, (float)(v73 * v74) + 5.0, 0.0); cocos2d::CCPoint::operator+(&v80, v72); v71(v69, &v80); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v69 + 72LL))(v69, 100); } if ( (v81[0] & 1) != 0 ) operator delete(v82); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source