// // SetupItemCompareTriggerPopup::updateFormulaLabel from 0x6b8828 to 0x6b8d14 (1260 bytes) // // 4 xrefs: // > SetupItemCompareTriggerPopup::onCustomToggleTriggerValue @ 0x6b8e96 // > SetupItemCompareTriggerPopup::valueDidChange @ 0x6b8eb4 // > SetupItemCompareTriggerPopup::init @ 0x6ba8be // > SetupItemCompareTriggerPopup::onOpButton @ 0x6baad2 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:56:44 +0000 // int __fastcall SetupItemCompareTriggerPopup::updateFormulaLabel(SetupItemCompareTriggerPopup *this) { int v2; // s16 int v3; // r5 int v4; // r9 int v5; // r11 int v6; // r7 int v7; // s15 int v8; // r6 float v9; // r0 int v10; // s18 float v11; // r0 int v12; // r1 _BOOL4 v13; // r5 float v14; // s17 float v15; // s16 char *v16; // r1 size_t v17; // r2 char *v18; // r1 size_t v19; // r2 char *v20; // r1 size_t v21; // r2 char *v22; // r1 size_t v23; // r2 const char *v24; // r1 cocos2d::CCString *v25; // r0 char *CString; // r0 char *v27; // r1 size_t v28; // r2 const char *v29; // r1 char *v30; // r1 size_t v31; // r2 char *v32; // r1 size_t v33; // r2 char *v34; // r1 size_t v35; // r2 char *v36; // r1 size_t v37; // r2 cocos2d::CCString *v38; // r0 char *v39; // r0 char *v40; // r1 int v42; // [sp+4h] [bp-98h] int v43; // [sp+8h] [bp-94h] signed int v44; // [sp+Ch] [bp-90h] signed int v45; // [sp+10h] [bp-8Ch] int v46[3]; // [sp+1Ch] [bp-80h] BYREF int v47[3]; // [sp+28h] [bp-74h] BYREF int v48[2]; // [sp+34h] [bp-68h] BYREF char *v49; // [sp+3Ch] [bp-60h] int v50[3]; // [sp+40h] [bp-5Ch] BYREF int v51[3]; // [sp+4Ch] [bp-50h] BYREF int v52[3]; // [sp+58h] [bp-44h] BYREF int v53[3]; // [sp+64h] [bp-38h] BYREF int v54[3]; // [sp+70h] [bp-2Ch] BYREF int v55[3]; // [sp+7Ch] [bp-20h] BYREF int v56[3]; // [sp+88h] [bp-14h] BYREF v2 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemCompareTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 80)); v3 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemCompareTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 95)); v4 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemCompareTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 476)); v5 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemCompareTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 477)); v6 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemCompareTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 480)); v7 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemCompareTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 481)); v8 = v7; v9 = COERCE_FLOAT((*(int (__fastcall **)(SetupItemCompareTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 482)); if ( v6 <= 0 ) v6 = 3; if ( v7 <= 0 ) v8 = 3; v10 = (int)v9; v42 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemCompareTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 485)); v43 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemCompareTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 486)); v44 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemCompareTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 578)); v11 = COERCE_FLOAT((*(int (__fastcall **)(SetupItemCompareTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 579)); v12 = v4; if ( v4 < 1 ) v12 = 1; v45 = (int)v11; getItemVarName(v46, v12, v2); getItemVarName(v47, v5, v3); if ( v5 ) v13 = v3 > 0 || isSpecialItemType(v5); else v13 = 0; v14 = COERCE_FLOAT((*(int (__fastcall **)(SetupItemCompareTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 479)); v15 = COERCE_FLOAT((*(int (__fastcall **)(SetupItemCompareTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 483)); v48[0] = 0; v48[1] = 0; v49 = nullptr; std::string::__init(v48, &unk_B6B226, 0); if ( v44 > 0 ) { signKeyToString(v50, v44, 0); if ( (v50[0] & 1) != 0 ) { v16 = (char *)v50[2]; v17 = v50[1]; } else { v17 = (int)LOBYTE(v50[0]) >> 1; v16 = (char *)v50 + 1; } std::string::append(v48, v16, v17); std::string::~string((int)v50); std::string::append(v48, "("); } if ( v42 > 0 ) { roundKeyToString(v51, v42, 0); if ( (v51[0] & 1) != 0 ) { v18 = (char *)v51[2]; v19 = v51[1]; } else { v19 = (int)LOBYTE(v51[0]) >> 1; v18 = (char *)v51 + 1; } std::string::append(v48, v18, v19); std::string::~string((int)v51); std::string::append(v48, "("); } if ( (v46[0] & 1) != 0 ) { v20 = (char *)v46[2]; v21 = v46[1]; } else { v21 = (int)LOBYTE(v46[0]) >> 1; v20 = (char *)v46 + 1; } std::string::append(v48, v20, v21); if ( isOpValid(v6, v14) ) { std::string::append(v48, " "); opKeyToString(v52, v6); if ( (v52[0] & 1) != 0 ) { v22 = (char *)v52[2]; v23 = v52[1]; } else { v23 = (int)LOBYTE(v52[0]) >> 1; v22 = (char *)v52 + 1; } std::string::append(v48, v22, v23); std::string::~string((int)v52); std::string::append(v48, " "); v25 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.03f", v24, v14); CString = (char *)cocos2d::CCString::getCString(v25); std::string::append(v48, CString); } if ( v42 > 0 ) std::string::append(v48, ")"); if ( v44 > 0 ) std::string::append(v48, ")"); std::string::append(v48, " "); compKeyToString(v53, v10); if ( (v53[0] & 1) != 0 ) { v27 = (char *)v53[2]; v28 = v53[1]; } else { v28 = (int)LOBYTE(v53[0]) >> 1; v27 = (char *)v53 + 1; } std::string::append(v48, v27, v28); std::string::~string((int)v53); std::string::append(v48, " "); if ( v45 > 0 ) { signKeyToString(v54, v45, 0); if ( (v54[0] & 1) != 0 ) { v30 = (char *)v54[2]; v31 = v54[1]; } else { v31 = (int)LOBYTE(v54[0]) >> 1; v30 = (char *)v54 + 1; } std::string::append(v48, v30, v31); std::string::~string((int)v54); std::string::append(v48, "("); } if ( v43 > 0 ) { roundKeyToString(v55, v43, 0); if ( (v55[0] & 1) != 0 ) { v32 = (char *)v55[2]; v33 = v55[1]; } else { v33 = (int)LOBYTE(v55[0]) >> 1; v32 = (char *)v55 + 1; } std::string::append(v48, v32, v33); std::string::~string((int)v55); std::string::append(v48, "("); } if ( !v13 ) goto LABEL_53; if ( (v47[0] & 1) != 0 ) { v34 = (char *)v47[2]; v35 = v47[1]; } else { v35 = (int)LOBYTE(v47[0]) >> 1; v34 = (char *)v47 + 1; } std::string::append(v48, v34, v35); if ( isOpValid(v8, v15) ) { std::string::append(v48, " "); opKeyToString(v56, v8); if ( (v56[0] & 1) != 0 ) { v36 = (char *)v56[2]; v37 = v56[1]; } else { v37 = (int)LOBYTE(v56[0]) >> 1; v36 = (char *)v56 + 1; } std::string::append(v48, v36, v37); std::string::~string((int)v56); std::string::append(v48, " "); LABEL_53: v38 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.03f", v29, v15); v39 = (char *)cocos2d::CCString::getCString(v38); std::string::append(v48, v39); } if ( v43 > 0 ) std::string::append(v48, ")"); if ( v45 > 0 ) std::string::append(v48, ")"); if ( (v48[0] & 1) != 0 ) v40 = v49; else v40 = (char *)v48 + 1; (*(void (__fastcall **)(_DWORD, char *, int))(**((_DWORD **)this + 178) + 464))( *((_DWORD *)this + 178), v40, LOBYTE(v48[0]) << 31); cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 178), 230.0, 0.7, 0.0); std::string::~string((int)v48); std::string::~string((int)v47); return std::string::~string((int)v46); }
GD Web Decomp Icon

GD Web Decomp

Raw Source