// // OptionsCell::loadFromObject from 0x74880c to 0x748c98 (1164 bytes) // // 3 xrefs: // > CustomListView::reloadAll @ 0x748e2c // > CustomListView::loadCell @ 0x74d2c4 // > @ 0x968e0 // // 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:49 +0000 // __int64 __fastcall OptionsCell::loadFromObject(OptionsCell *this, OptionsObject *a2) { __int64 v4; // x2 const char *v5; // x2 int v6; // w24 cocos2d::CCLabelBMFont *v7; // x0 __int64 v8; // x19 void (__fastcall *v9)(__int64, __int64 *); // x25 void (__fastcall *v10)(__int64, __int64 *); // x25 const char *v11; // x1 int v12; // w0 size_t v13; // x2 char *v14; // x1 const char *v15; // x2 cocos2d::CCLabelBMFont *v16; // x0 __int64 v17; // x22 void (__fastcall *v18)(__int64, __int64 *); // x24 void (__fastcall *v19)(__int64, __int64 *); // x24 __int64 v20; // x25 float v21; // s9 float v22; // s0 char *v23; // x0 __int64 v24; // x19 cocos2d::CCMenu *v25; // x19 __int64 v26; // x19 float v27; // s1 void (__fastcall *v28)(__int64, __int64 *); // x20 void (__fastcall *v30)(__int64, __int64 *); // x3 __int64 v31; // x0 __int64 v32; // x0 void (__fastcall *v33)(__int64, __int64 *); // x3 void (__fastcall *v34)(__int64, __int64 *); // x3 _BYTE v35[8]; // [xsp+68h] [xbp+68h] BYREF __int64 v36; // [xsp+70h] [xbp+70h] BYREF __int64 v37[2]; // [xsp+78h] [xbp+78h] BYREF cocos2d::CCLabelBMFont *v38; // [xsp+88h] [xbp+88h] unsigned __int64 v39[2]; // [xsp+90h] [xbp+90h] BYREF void *v40; // [xsp+A0h] [xbp+A0h] v4 = *((_QWORD *)this + 67); *((_QWORD *)this + 69) = a2; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 584LL))(v4, 1); v6 = *((_DWORD *)a2 + 25); v7 = (OptionsObject *)((char *)a2 + 65); if ( (*((_BYTE *)a2 + 64) & 1) != 0 ) v7 = *((cocos2d::CCLabelBMFont **)a2 + 10); v8 = cocos2d::CCLabelBMFont::create(v7, "bigFont.fnt", v5); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))(*((_QWORD *)this + 67), v8, 2); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 160LL))(v8, 0.4); v9 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, 0.0, 0.5); v9(v8, &v36); v10 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, 40.0, *((float *)this + 131) * 0.5); v10(v8, &v36); v12 = *((_DWORD *)a2 + 24); if ( v12 ) { if ( v12 == 1 ) { v31 = *((_QWORD *)a2 + 13); if ( v31 ) { v32 = *(_QWORD *)(v31 + 1840); v11 = (const char *)*(unsigned __int8 *)(v32 + 465); if ( *(_BYTE *)(v32 + 465) ) { v34 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 1072LL); LOWORD(v36) = -1; BYTE2(v36) = -106; v34(v8, &v36); } else if ( *(_BYTE *)(v32 + 464) ) { v33 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 1072LL); LOWORD(v36) = -17991; BYTE2(v36) = -46; v33(v8, &v36); } } } } else if ( v6 ) { if ( v6 > 0 ) { v37[0] = 0; v37[1] = 0; v38 = nullptr; std::string::__init(v37, "[ ", 2u); GameToolbox::intToString(v39, (GameToolbox *)(unsigned int)v6); if ( (v39[0] & 1) != 0 ) { v14 = (char *)v40; v13 = v39[1]; } else { v13 = LOBYTE(v39[0]) >> 1; v14 = (char *)v39 + 1; } std::string::append((__int64)v37, v14, v13); if ( (v39[0] & 1) != 0 ) operator delete(v40); std::string::append((__int64)v37, " ]", 2u); v16 = (cocos2d::CCLabelBMFont *)((char *)v37 + 1); if ( (v37[0] & 1) != 0 ) v16 = v38; v17 = cocos2d::CCLabelBMFont::create(v16, "chatFont.fnt", v15); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))( *((_QWORD *)this + 67), v17, 2); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 160LL))(v17, 0.6); v18 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v17 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, 0.0, 0.5); v18(v17, &v36); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v17 + 1072LL))(v17, &qword_113C0F0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 1024LL))(v17, 4294967215LL); v19 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v17 + 184LL); v20 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 192LL))(v8); v21 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 328LL))(v8); v22 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v8 + 168LL))(v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, (float)(v21 * v22) + 8.0, 0.0); cocos2d::CCPoint::operator+(&v36, v20); v19(v17, &v36); if ( (v37[0] & 1) != 0 ) operator delete(v38); } } else { v30 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 1072LL); LOWORD(v36) = -26986; BYTE2(v36) = -106; v30(v8, &v36); } if ( *(_BYTE *)(*((_QWORD *)this + 69) + 60LL) ) v23 = "GJ_checkOn_001.png"; else v23 = "GJ_checkOff_001.png"; v24 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v23, v11); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v24 + 160LL))(v24, 0.6); v25 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v24, 0, (__int64)this, (__int64)OptionsCell::onToggleOption, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v25, 1.5); v26 = cocos2d::CCMenu::create(v25, nullptr); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))(*((_QWORD *)this + 67), v26, 3); v27 = *((float *)this + 131) * 0.5; v28 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v26 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, 20.0, v27); v28(v26, &v36); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source