// // SetupItemCompareTriggerPopup::updateFormulaLabel from 0xb7bda4 to 0xb7c588 (2020 bytes) // // 5 xrefs: // > SetupItemCompareTriggerPopup::onCustomToggleTriggerValue @ 0xb7c730 // > SetupItemCompareTriggerPopup::valueDidChange @ 0xb7c77c // > SetupItemCompareTriggerPopup::init @ 0xb7ee24 // > SetupItemCompareTriggerPopup::onOpButton @ 0xb7f3c8 // > @ 0xd4dd0 // // 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 13:02:26 +0000 // __int64 __fastcall SetupItemCompareTriggerPopup::updateFormulaLabel(SetupItemCompareTriggerPopup *this) { signed int v2; // w23 int v3; // w25 int v4; // w20 int v5; // w21 int v6; // w22 float v7; // s0 int v8; // w26 int v9; // w24 int v10; // w27 float v11; // s0 int v12; // w0 int v13; // w25 float v14; // s8 float v15; // s9 size_t v16; // x2 char *v17; // x1 size_t v18; // x2 char *v19; // x1 char *v20; // x1 size_t v21; // x2 char *v22; // x1 size_t v23; // x2 const char *v24; // x1 size_t v25; // x2 char *v26; // x1 size_t v27; // x2 char *v28; // x1 size_t v29; // x2 char *v30; // x1 char *v31; // x1 size_t v33; // x2 char *v34; // x1 cocos2d::CCString *v35; // x0 size_t v36; // x0 size_t v37; // x2 char *v38; // x1 const char *v39; // x1 cocos2d::CCString *v40; // x0 size_t v41; // x0 int v42; // [xsp+74h] [xbp+74h] unsigned int v43; // [xsp+78h] [xbp+78h] _BOOL4 v44; // [xsp+78h] [xbp+78h] char *v45; // [xsp+88h] [xbp+88h] char *CString; // [xsp+88h] [xbp+88h] __int64 v47[2]; // [xsp+98h] [xbp+98h] BYREF void *v48; // [xsp+A8h] [xbp+A8h] __int64 v49[2]; // [xsp+B0h] [xbp+B0h] BYREF void *v50; // [xsp+C0h] [xbp+C0h] __int64 v51[2]; // [xsp+C8h] [xbp+C8h] BYREF void *v52; // [xsp+D8h] [xbp+D8h] __int64 v53[2]; // [xsp+E0h] [xbp+E0h] BYREF void *v54; // [xsp+F0h] [xbp+F0h] __int64 v55[2]; // [xsp+F8h] [xbp+F8h] BYREF void *v56; // [xsp+108h] [xbp+108h] __int64 v57[2]; // [xsp+110h] [xbp+110h] BYREF void *v58; // [xsp+120h] [xbp+120h] __int64 v59[2]; // [xsp+128h] [xbp+128h] BYREF void *v60; // [xsp+138h] [xbp+138h] __int64 v61[2]; // [xsp+140h] [xbp+140h] BYREF void *v62; // [xsp+150h] [xbp+150h] __int64 v63[2]; // [xsp+158h] [xbp+158h] BYREF void *v64; // [xsp+168h] [xbp+168h] __int64 v65[2]; // [xsp+170h] [xbp+170h] BYREF void *v66; // [xsp+180h] [xbp+180h] v43 = (int)(*(float (__fastcall **)(SetupItemCompareTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 80); v2 = (int)(*(float (__fastcall **)(SetupItemCompareTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 95); v3 = (int)(*(float (__fastcall **)(SetupItemCompareTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 476); v4 = (int)(*(float (__fastcall **)(SetupItemCompareTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 477); v5 = (int)(*(float (__fastcall **)(SetupItemCompareTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 480); v6 = (int)(*(float (__fastcall **)(SetupItemCompareTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 481); v7 = (*(float (__fastcall **)(SetupItemCompareTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 482); if ( v5 <= 0 ) v5 = 3; if ( v6 <= 0 ) v6 = 3; v42 = (int)v7; v8 = (int)(*(float (__fastcall **)(SetupItemCompareTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 485); v9 = (int)(*(float (__fastcall **)(SetupItemCompareTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 486); v10 = (int)(*(float (__fastcall **)(SetupItemCompareTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 578); (*(void (__fastcall **)(SetupItemCompareTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 579); if ( v3 <= 0 ) v12 = 1; else v12 = v3; v13 = (int)v11; getItemVarName(v12, v43, v47); getItemVarName(v4, v2, v49); if ( v4 ) { v44 = 1; if ( v2 <= 0 ) v44 = isSpecialItemType(v4); } else { v44 = 0; } v14 = (*(float (__fastcall **)(SetupItemCompareTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 479); v15 = (*(float (__fastcall **)(SetupItemCompareTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 483); v51[0] = 0; v51[1] = 0; v52 = nullptr; std::string::__init(v51, &byte_11B8890, 0); if ( v10 > 0 ) { signKeyToString(v10, 0, v53); if ( (v53[0] & 1) != 0 ) { v17 = (char *)v54; v16 = v53[1]; } else { v16 = LOBYTE(v53[0]) >> 1; v17 = (char *)v53 + 1; } std::string::append((__int64)v51, v17, v16); if ( (v53[0] & 1) != 0 ) operator delete(v54); std::string::append((__int64)v51, "(", 1u); } if ( v8 > 0 ) { roundKeyToString(v8, 0, v55); if ( (v55[0] & 1) != 0 ) { v19 = (char *)v56; v18 = v55[1]; } else { v18 = LOBYTE(v55[0]) >> 1; v19 = (char *)v55 + 1; } std::string::append((__int64)v51, v19, v18); if ( (v55[0] & 1) != 0 ) operator delete(v56); std::string::append((__int64)v51, "(", 1u); } if ( (v47[0] & 1) != 0 ) { v20 = (char *)v48; v21 = v47[1]; } else { v21 = LOBYTE(v47[0]) >> 1; v20 = (char *)v47 + 1; } std::string::append((__int64)v51, v20, v21); if ( (unsigned __int8)isOpValid(v5, v14) ) { std::string::append((__int64)v51, &byte_11E1A70, 1u); opKeyToString(v5, v57); if ( (v57[0] & 1) != 0 ) { v38 = (char *)v58; v37 = v57[1]; } else { v37 = LOBYTE(v57[0]) >> 1; v38 = (char *)v57 + 1; } std::string::append((__int64)v51, v38, v37); if ( (v57[0] & 1) != 0 ) operator delete(v58); std::string::append((__int64)v51, &byte_11E1A70, 1u); v40 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.03f", v39, v14); CString = (char *)cocos2d::CCString::getCString(v40); v41 = strlen(CString); std::string::append((__int64)v51, CString, v41); } if ( v8 > 0 ) std::string::append((__int64)v51, ")", 1u); if ( v10 > 0 ) std::string::append((__int64)v51, ")", 1u); std::string::append((__int64)v51, &byte_11E1A70, 1u); compKeyToString(v42, v59); if ( (v59[0] & 1) != 0 ) { v22 = (char *)v60; v23 = v59[1]; } else { v23 = LOBYTE(v59[0]) >> 1; v22 = (char *)v59 + 1; } std::string::append((__int64)v51, v22, v23); if ( (v59[0] & 1) != 0 ) operator delete(v60); std::string::append((__int64)v51, &byte_11E1A70, 1u); if ( v13 > 0 ) { signKeyToString(v13, 0, v61); if ( (v61[0] & 1) != 0 ) { v26 = (char *)v62; v25 = v61[1]; } else { v25 = LOBYTE(v61[0]) >> 1; v26 = (char *)v61 + 1; } std::string::append((__int64)v51, v26, v25); if ( (v61[0] & 1) != 0 ) operator delete(v62); std::string::append((__int64)v51, "(", 1u); } if ( v9 > 0 ) { roundKeyToString(v9, 0, v63); if ( (v63[0] & 1) != 0 ) { v28 = (char *)v64; v27 = v63[1]; } else { v27 = LOBYTE(v63[0]) >> 1; v28 = (char *)v63 + 1; } std::string::append((__int64)v51, v28, v27); if ( (v63[0] & 1) != 0 ) operator delete(v64); std::string::append((__int64)v51, "(", 1u); } if ( !v44 ) goto LABEL_76; if ( (v49[0] & 1) != 0 ) { v30 = (char *)v50; v29 = v49[1]; } else { v29 = LOBYTE(v49[0]) >> 1; v30 = (char *)v49 + 1; } std::string::append((__int64)v51, v30, v29); if ( (unsigned __int8)isOpValid(v6, v15) ) { std::string::append((__int64)v51, &byte_11E1A70, 1u); opKeyToString(v6, v65); if ( (v65[0] & 1) != 0 ) { v34 = (char *)v66; v33 = v65[1]; } else { v33 = LOBYTE(v65[0]) >> 1; v34 = (char *)v65 + 1; } std::string::append((__int64)v51, v34, v33); if ( (v65[0] & 1) != 0 ) operator delete(v66); std::string::append((__int64)v51, &byte_11E1A70, 1u); LABEL_76: v35 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.03f", v24, v15); v45 = (char *)cocos2d::CCString::getCString(v35); v36 = strlen(v45); std::string::append((__int64)v51, v45, v36); } if ( v9 > 0 ) std::string::append((__int64)v51, ")", 1u); if ( v13 > 0 ) std::string::append((__int64)v51, ")", 1u); if ( (v51[0] & 1) != 0 ) v31 = (char *)v52; else v31 = (char *)v51 + 1; (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 127) + 928LL))(*((_QWORD *)this + 127), v31); cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 127), 230.0, 0.7, 0.0); if ( (v51[0] & 1) != 0 ) operator delete(v52); if ( (v49[0] & 1) != 0 ) operator delete(v50); if ( (v47[0] & 1) != 0 ) operator delete(v48); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source