// // GJMessageCell::loadFromMessage from 0x10012f324 to 0x10012fbac (2184 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x1001261e4 // // 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 10:59:22 +0000 // void __fastcall GJMessageCell::loadFromMessage(__int64 a1, __int64 a2) { _DWORD *v4; // x0 __int64 v5; // x8 __int64 v6; // x8 void **v7; // x0 __int64 v8; // x20 void *v9; // x23 __int64 v10; // x21 __int64 v11; // x21 float v12; // s11 float *v13; // x0 _QWORD *v14; // x22 __int64 v15; // x23 float32x2_t *v16; // x24 double v17; // d0 __int64 v18; // x22 __n128 v19; // q0 __n128 v20; // q0 char *v21; // x1 void **v22; // x22 __int64 v23; // x8 __int64 v24; // x8 void **v25; // x8 __int64 v26; // x0 __int64 CString; // x22 __int64 v28; // x22 __n128 v29; // q0 float32x2_t *v30; // x23 float v31; // s8 float v32; // s0 __int64 v33; // x22 __n128 v34; // q0 __int64 v35; // x8 void *v36; // x22 __int64 v37; // x8 void **v38; // x8 __int64 v39; // x0 __int64 v40; // x0 __int64 v41; // x22 float *v42; // x0 __int64 v43; // x22 __int64 v44; // x23 __int64 v45; // x0 __int64 v46; // x22 __n128 v47; // q0 __int64 v48; // x8 __int64 v49; // x21 float32x2_t *v50; // x19 float v51; // s8 float v52; // s0 double v53; // d0 float32x2_t v54; // [xsp+10h] [xbp-A0h] BYREF float32x2_t v55; // [xsp+18h] [xbp-98h] BYREF void *__dst[2]; // [xsp+20h] [xbp-90h] BYREF __int64 v57; // [xsp+30h] [xbp-80h] void *__p[2]; // [xsp+40h] [xbp-70h] BYREF __int64 v59; // [xsp+50h] [xbp-60h] (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 584LL))(*(_QWORD *)(a1 + 536), 1); if ( !a2 ) return; v4 = *(_DWORD **)(a1 + 576); if ( v4 ) { cocos2d::CCObject::release(v4); *(_QWORD *)(a1 + 576) = 0; } *(_QWORD *)(a1 + 576) = a2; cocos2d::CCObject::retain(a2); v5 = *(_QWORD *)(a1 + 576); if ( *(char *)(v5 + 351) < 0 ) { sub_1000097D0(__p, *(void **)(v5 + 328), *(_QWORD *)(v5 + 336)); } else { v6 = v5 + 328; *(_OWORD *)__p = *(_OWORD *)v6; v59 = *(_QWORD *)(v6 + 16); } if ( v59 >= 0 ) v7 = __p; else v7 = (void **)__p[0]; v8 = cocos2d::CCLabelBMFont::create_1(v7, "bigFont.fnt"); if ( SHIBYTE(v59) < 0 ) operator delete(__p[0]); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v8); sub_1000262BC((float *)__p, 0.0, 0.5); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v8 + 296LL))(v8, __p); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 160LL))(v8, 1.0); sub_1000262BC((float *)__p, 38.0, (float)(*(float *)(a1 + 524) * 0.5) + 14.0); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v8 + 184LL))(v8, __p); cocos2d::CCLabelBMFont::limitLabelWidth(v8, 180.0, 0.5, 0.0); v9 = ButtonSprite::create_1((__int64)"View", 50, 0, 0, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.6, 25.0); v10 = CCMenuItemSpriteExtra::create(v9, 0, a1, GJMessageCell::onViewMessage, 0); CCMenuItemSpriteExtra::setSizeMult(1.1); v11 = sub_100270434(v10); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v11); v12 = *(float *)(a1 + 520); v13 = (float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v9 + 328LL))(v9); sub_1000262BC((float *)__p, (float)(v12 + (float)(*v13 * -0.5)) + -45.0, *(float *)(a1 + 524) * 0.5); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v11 + 184LL))(v11, __p); v14 = ButtonSprite::create_1((__int64)"X", 50, 0, 0, (__int64)"bigFont.fnt", (__int64)"GJ_button_06.png", 0.6, 31.25); (*(void (__fastcall **)(_QWORD *, float))(*v14 + 160LL))(v14, 0.8); v15 = v14[78]; v16 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 192LL))(v15); sub_1000262BC((float *)__dst, 1.5, -0.5); *(float32x2_t *)&v17 = sub_100026318(v16, (float32x2_t *)__dst, (float32x2_t *)__p); (*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v15 + 184LL))(v15, __p, v17); v18 = CCMenuItemSpriteExtra::create(v14, 0, a1, sub_10013AF0C, 0); v19 = CCMenuItemSpriteExtra::setSizeMult(1.1); (*(void (__fastcall **)(__int64, __int64, __n128))(*(_QWORD *)v11 + 456LL))(v11, v18, v19); sub_1000262BC((float *)__dst, *(float *)(a1 + 520) + -22.0, *(float *)(a1 + 524) * 0.5); cocos2d::CCNode::convertToNodeSpace(__p, v11, __dst, v20); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v18 + 184LL))(v18, __p); if ( *(_BYTE *)(*(_QWORD *)(a1 + 576) + 425LL) ) v21 = "To:"; else v21 = "From:"; sub_100009900(__p, v21); if ( v59 >= 0 ) v22 = __p; else v22 = (void **)__p[0]; v23 = *(_QWORD *)(a1 + 576); if ( *(char *)(v23 + 399) < 0 ) { sub_1000097D0(__dst, *(void **)(v23 + 376), *(_QWORD *)(v23 + 384)); } else { v24 = v23 + 376; *(_OWORD *)__dst = *(_OWORD *)v24; v57 = *(_QWORD *)(v24 + 16); } v25 = __dst; if ( v57 < 0 ) v25 = (void **)__dst[0]; v26 = sub_1003065B0("%s %s", (const char *)v22, (const char *)v25); CString = cocos2d::CCString::getCString(v26); if ( SHIBYTE(v57) < 0 ) operator delete(__dst[0]); v28 = cocos2d::CCLabelBMFont::create_1(CString, "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v28 + 160LL))(v28, 1.0); v29 = cocos2d::CCLabelBMFont::limitLabelWidth(v28, 140.0, 0.5, 0.0); v30 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v8 + 192LL))(v8, v29); v31 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v28 + 328LL))(v28); v32 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v28 + 168LL))(v28); sub_1000262BC((float *)__dst, (float)((float)(v31 * 0.5) * v32) + 1.0, -15.0); sub_100026318(v30, (float32x2_t *)__dst, &v55); v33 = CCMenuItemSpriteExtra::create(v28, 0, a1, sub_10013AFEC, 0); v34.n128_f64[0] = (*(double (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 456LL))(v11, v33); cocos2d::CCNode::convertToNodeSpace(__dst, v11, &v55, v34); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v33 + 184LL))(v33, __dst); v35 = *(_QWORD *)(a1 + 576); if ( *(char *)(v35 + 423) < 0 ) { sub_1000097D0(__dst, *(void **)(v35 + 400), *(_QWORD *)(v35 + 408)); } else { *(_OWORD *)__dst = *(_OWORD *)(v35 + 400); v57 = *(_QWORD *)(v35 + 416); } if ( SHIBYTE(v57) < 0 ) { v36 = __dst[1]; operator delete(__dst[0]); if ( !v36 ) goto LABEL_40; LABEL_32: v37 = *(_QWORD *)(a1 + 576); if ( *(char *)(v37 + 423) < 0 ) { sub_1000097D0(__dst, *(void **)(v37 + 400), *(_QWORD *)(v37 + 408)); } else { *(_OWORD *)__dst = *(_OWORD *)(v37 + 400); v57 = *(_QWORD *)(v37 + 416); } v38 = __dst; if ( v57 < 0 ) v38 = (void **)__dst[0]; v39 = sub_1003065B0("%s ago", (const char *)v38); v40 = cocos2d::CCString::getCString(v39); v41 = cocos2d::CCLabelBMFont::create_1(v40, "chatFont.fnt"); if ( SHIBYTE(v57) < 0 ) operator delete(__dst[0]); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 536) + 464LL))(*(_QWORD *)(a1 + 536), v41, 1); sub_1000262BC((float *)__dst, 0.0, 0.5); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v41 + 296LL))(v41, __dst); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v41 + 160LL))(v41, 0.5); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v41 + 1072LL))(v41, algn_10075DFC6); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v41 + 1024LL))(v41, 125); v42 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 192LL))(v8); sub_1000262BC((float *)__dst, *v42 + 3.0, 10.0); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v41 + 184LL))(v41, __dst); goto LABEL_40; } if ( HIBYTE(v57) ) goto LABEL_32; LABEL_40: v43 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png"); v44 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v43 + 160LL))(v43, 0.7); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v44 + 160LL))(v44, 0.7); v45 = CCMenuItemToggler::create(v44, v43, a1, sub_10013B024, 0); *(_QWORD *)(a1 + 592) = v45; CCMenuItemToggler::toggle(v45, *(unsigned __int8 *)(*(_QWORD *)(a1 + 576) + 426LL)); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v11 + 456LL))(v11, *(_QWORD *)(a1 + 592)); v46 = *(_QWORD *)(a1 + 592); sub_1000262BC((float *)&v54, 20.0, *(float *)(a1 + 524) * 0.5); cocos2d::CCNode::convertToNodeSpace(__dst, v11, &v54, v47); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v46 + 184LL))(v46, __dst); CCMenuItemToggler::setSizeMult(*(_QWORD *)(a1 + 592), 1.2); v48 = *(_QWORD *)(a1 + 576); if ( (*(_BYTE *)(v48 + 424) & 1) == 0 && (*(_BYTE *)(v48 + 425) & 1) == 0 ) { v49 = cocos2d::CCLabelBMFont::create_1("!", "bigFont.fnt"); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v49 + 1072LL))(v49, &unk_10075DFC9); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v49 + 160LL))(v49, 0.5); sub_1000262BC((float *)__dst, 0.0, 0.5); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v49 + 296LL))(v49, __dst); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 536) + 464LL))(*(_QWORD *)(a1 + 536), v49, 10); v50 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 192LL))(v8); v51 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 328LL))(v8); v52 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v8 + 168LL))(v8); sub_1000262BC((float *)&v54, (float)(v51 * v52) + 5.0, 0.0); *(float32x2_t *)&v53 = sub_100026318(v50, &v54, (float32x2_t *)__dst); (*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v49 + 184LL))(v49, __dst, v53); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v49 + 72LL))(v49, 100); } if ( SHIBYTE(v59) < 0 ) operator delete(__p[0]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source