// // SetupItemEditTriggerPopup::updateFormulaLabel from 0xb7b138 to 0xb7bb00 (2504 bytes) // // 5 xrefs: // > SetupItemEditTriggerPopup::onCustomToggleTriggerValue @ 0xb7bc30 // > SetupItemEditTriggerPopup::valueDidChange @ 0xb7bda0 // > SetupItemEditTriggerPopup::init @ 0xb7d7a0 // > SetupItemEditTriggerPopup::onOpButton @ 0xb7dd28 // > @ 0x7bef8 // // 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:25 +0000 // __int64 __fastcall SetupItemEditTriggerPopup::updateFormulaLabel(SetupItemEditTriggerPopup *this) { float v2; // w25 float v3; // s14 signed int v4; // w28 float v5; // s15 float v6; // s13 int v7; // w27 float v8; // s12 int v9; // w23 int v10; // w22 float v11; // s10 float v12; // s8 float v13; // s11 float v14; // s9 char *v15; // x1 signed int v17; // w25 int v18; // w24 unsigned int v19; // w27 size_t v20; // x2 char *v21; // x1 unsigned __int8 v22; // w2 int v23; // w26 size_t v24; // x2 char *v25; // x1 bool v26; // w24 int v27; // w25 size_t v28; // x2 char *v29; // x1 int v30; // w24 size_t v31; // x2 char *v32; // x1 float v33; // s8 unsigned __int8 v34; // w0 const char *v35; // x1 size_t v36; // x2 char *v37; // x1 char *v38; // x1 size_t v39; // x2 size_t v40; // x2 char *v41; // x1 char *v42; // x1 size_t v43; // x2 char *v44; // x1 size_t v45; // x2 cocos2d::CCString *v46; // x0 size_t v47; // x0 char *v48; // x1 size_t v49; // x2 char *v50; // x1 size_t v51; // x2 char *v52; // x1 size_t v53; // x2 int v54; // [xsp+B8h] [xbp+B8h] char *CString; // [xsp+B8h] [xbp+B8h] int v56; // [xsp+C0h] [xbp+C0h] int v57; // [xsp+CCh] [xbp+CCh] __int64 v58[2]; // [xsp+D0h] [xbp+D0h] BYREF void *v59; // [xsp+E0h] [xbp+E0h] __int64 v60[2]; // [xsp+E8h] [xbp+E8h] BYREF void *v61; // [xsp+F8h] [xbp+F8h] __int64 v62; // [xsp+100h] [xbp+100h] BYREF size_t v63; // [xsp+108h] [xbp+108h] void *v64; // [xsp+110h] [xbp+110h] __int64 v65; // [xsp+118h] [xbp+118h] BYREF size_t v66; // [xsp+120h] [xbp+120h] void *v67; // [xsp+128h] [xbp+128h] __int64 v68[2]; // [xsp+130h] [xbp+130h] BYREF void *v69; // [xsp+140h] [xbp+140h] __int64 v70[2]; // [xsp+148h] [xbp+148h] BYREF void *v71; // [xsp+158h] [xbp+158h] __int64 v72[2]; // [xsp+160h] [xbp+160h] BYREF void *v73; // [xsp+170h] [xbp+170h] __int64 v74[2]; // [xsp+178h] [xbp+178h] BYREF void *v75; // [xsp+188h] [xbp+188h] __int64 v76[2]; // [xsp+190h] [xbp+190h] BYREF void *v77; // [xsp+1A0h] [xbp+1A0h] __int64 v78[2]; // [xsp+1A8h] [xbp+1A8h] BYREF void *v79; // [xsp+1B8h] [xbp+1B8h] __int64 v80[2]; // [xsp+1C0h] [xbp+1C0h] BYREF void *v81; // [xsp+1D0h] [xbp+1D0h] v58[0] = 0; v58[1] = 0; v59 = nullptr; std::string::__init(v58, &byte_11B8890, 0); v2 = (*(float (__fastcall **)(SetupItemEditTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 80); v3 = (*(float (__fastcall **)(SetupItemEditTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 95); v4 = (int)(*(float (__fastcall **)(SetupItemEditTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 51); v5 = (*(float (__fastcall **)(SetupItemEditTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 476); v6 = (*(float (__fastcall **)(SetupItemEditTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 477); v7 = (int)(*(float (__fastcall **)(SetupItemEditTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 478); v8 = (*(float (__fastcall **)(SetupItemEditTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 480); v9 = (int)(*(float (__fastcall **)(SetupItemEditTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 481); if ( v9 <= 0 ) v9 = 1; v10 = (int)(*(float (__fastcall **)(SetupItemEditTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 482); if ( v10 <= 2 ) v10 = 3; v11 = (*(float (__fastcall **)(SetupItemEditTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 485); v12 = (*(float (__fastcall **)(SetupItemEditTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 486); v13 = (*(float (__fastcall **)(SetupItemEditTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 578); v14 = (*(float (__fastcall **)(SetupItemEditTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 579); if ( v7 <= 0 ) { v7 = 1; } else if ( v7 == 3 ) { goto LABEL_14; } if ( v4 <= 0 ) { std::string::assign(v58, "Select a target"); goto LABEL_9; } LABEL_14: v17 = (int)v2; getItemVarName((int)v5, v17, v60); v18 = (int)v6; getItemVarName((int)v6, (int)v3, &v62); getItemVarName(v7, v4, &v65); if ( (int)v5 ) { v19 = 1; if ( v17 <= 0 ) v19 = isSpecialItemType((int)v5); if ( !v18 ) goto LABEL_25; } else { v19 = 0; if ( !v18 ) { LABEL_25: v23 = 0; goto LABEL_26; } } if ( (int)v3 <= 0 && !isSpecialItemType(v18) ) goto LABEL_25; if ( !v19 ) { if ( (v62 & 1) != 0 ) { v21 = (char *)v64; v20 = v63; } else { v20 = (unsigned __int8)v62 >> 1; v21 = (char *)&v62 + 1; } std::string::assign(v60, v21, v20); v22 = v65; v23 = 0; v19 = 1; if ( (v65 & 1) != 0 ) goto LABEL_27; LABEL_23: v24 = v22 >> 1; v25 = (char *)&v65 + 1; goto LABEL_28; } v19 = 1; v23 = 1; LABEL_26: v22 = v65; if ( (v65 & 1) == 0 ) goto LABEL_23; LABEL_27: v25 = (char *)v67; v24 = v66; LABEL_28: std::string::assign(v58, v25, v24); std::string::append((__int64)v58, &byte_11E1A70, 1u); std::string::append((__int64)v58, "= ", 2u); v26 = (int)v8 != 0; v57 = v26 && (int)v14 > 0; if ( v26 && (int)v14 > 0 ) { signKeyToString((int)v14, 0, v68); if ( (v68[0] & 1) != 0 ) { v52 = (char *)v69; v53 = v68[1]; } else { v53 = LOBYTE(v68[0]) >> 1; v52 = (char *)v68 + 1; } std::string::append((__int64)v58, v52, v53); if ( (v68[0] & 1) != 0 ) operator delete(v69); std::string::append((__int64)v58, "(", 1u); } v56 = v26 && (int)v12 > 0; if ( v26 && (int)v12 > 0 ) { roundKeyToString((int)v12, 0, v70); if ( (v70[0] & 1) != 0 ) { v38 = (char *)v71; v39 = v70[1]; } else { v39 = LOBYTE(v70[0]) >> 1; v38 = (char *)v70 + 1; } std::string::append((__int64)v58, v38, v39); if ( (v70[0] & 1) != 0 ) operator delete(v71); std::string::append((__int64)v58, "(", 1u); } else if ( !(int)v8 ) { goto LABEL_31; } if ( (v65 & 1) != 0 ) { v41 = (char *)v67; v40 = v66; } else { v40 = (unsigned __int8)v65 >> 1; v41 = (char *)&v65 + 1; } std::string::append((__int64)v58, v41, v40); std::string::append((__int64)v58, &byte_11E1A70, 1u); opKeyToString((int)v8, v72); if ( (v72[0] & 1) != 0 ) { v42 = (char *)v73; v43 = v72[1]; } else { v43 = LOBYTE(v72[0]) >> 1; v42 = (char *)v72 + 1; } std::string::append((__int64)v58, v42, v43); if ( (v72[0] & 1) != 0 ) operator delete(v73); std::string::append((__int64)v58, &byte_11E1A70, 1u); LABEL_31: v27 = (int)v13; if ( (int)v13 > 0 ) { signKeyToString(v27, 0, v74); if ( (v74[0] & 1) != 0 ) { v29 = (char *)v75; v28 = v74[1]; } else { v28 = LOBYTE(v74[0]) >> 1; v29 = (char *)v74 + 1; } std::string::append((__int64)v58, v29, v28); if ( (v74[0] & 1) != 0 ) operator delete(v75); std::string::append((__int64)v58, "(", 1u); } v30 = (int)v11; if ( (int)v11 > 0 ) { roundKeyToString(v30, 0, v76); if ( (v76[0] & 1) != 0 ) { v32 = (char *)v77; v31 = v76[1]; } else { v31 = LOBYTE(v76[0]) >> 1; v32 = (char *)v76 + 1; } std::string::append((__int64)v58, v32, v31); if ( (v76[0] & 1) != 0 ) operator delete(v77); std::string::append((__int64)v58, "(", 1u); } v33 = (*(float (__fastcall **)(SetupItemEditTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 479); v34 = isOpValid(v10, v33); v54 = v34; if ( v34 && v23 ) std::string::append((__int64)v58, "(", 1u); if ( v19 ) { if ( (v60[0] & 1) != 0 ) { v37 = (char *)v61; v36 = v60[1]; } else { v36 = LOBYTE(v60[0]) >> 1; v37 = (char *)v60 + 1; } std::string::append((__int64)v58, v37, v36); } if ( v23 ) { std::string::append((__int64)v58, &byte_11E1A70, 1u); opKeyToString(v9, v78); if ( (v78[0] & 1) != 0 ) { v48 = (char *)v79; v49 = v78[1]; } else { v49 = LOBYTE(v78[0]) >> 1; v48 = (char *)v78 + 1; } std::string::append((__int64)v58, v48, v49); if ( (v78[0] & 1) != 0 ) operator delete(v79); std::string::append((__int64)v58, &byte_11E1A70, 1u); if ( (v62 & 1) != 0 ) { v50 = (char *)v64; v51 = v63; } else { v51 = (unsigned __int8)v62 >> 1; v50 = (char *)&v62 + 1; } std::string::append((__int64)v58, v50, v51); if ( !v54 ) goto LABEL_53; std::string::append((__int64)v58, ")", 1u); } if ( v19 >= (v23 ^ 1u) ) { if ( !v54 ) goto LABEL_53; std::string::append((__int64)v58, &byte_11E1A70, 1u); opKeyToString(v10, v80); if ( (v80[0] & 1) != 0 ) { v44 = (char *)v81; v45 = v80[1]; } else { v45 = LOBYTE(v80[0]) >> 1; v44 = (char *)v80 + 1; } std::string::append((__int64)v58, v44, v45); if ( (v80[0] & 1) != 0 ) operator delete(v81); std::string::append((__int64)v58, &byte_11E1A70, 1u); } v46 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.03f", v35, v33); CString = (char *)cocos2d::CCString::getCString(v46); v47 = strlen(CString); std::string::append((__int64)v58, CString, v47); LABEL_53: if ( v30 > 0 ) std::string::append((__int64)v58, ")", 1u); if ( v27 > 0 ) std::string::append((__int64)v58, ")", 1u); if ( v56 ) std::string::append((__int64)v58, ")", 1u); if ( v57 ) std::string::append((__int64)v58, ")", 1u); if ( (v65 & 1) != 0 ) { operator delete(v67); if ( (v62 & 1) == 0 ) goto LABEL_63; } else if ( (v62 & 1) == 0 ) { goto LABEL_63; } operator delete(v64); LABEL_63: if ( (v60[0] & 1) != 0 ) operator delete(v61); LABEL_9: v15 = (char *)v58 + 1; if ( (v58[0] & 1) != 0 ) v15 = (char *)v59; (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 127) + 928LL))(*((_QWORD *)this + 127), v15); cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 127), 400.0, 0.8, 0.0); if ( (v58[0] & 1) != 0 ) operator delete(v59); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source