// // SetupItemEditTriggerPopup::updateFormulaLabel from 0x6b7f98 to 0x6b85f6 (1630 bytes) // // 4 xrefs: // > SetupItemEditTriggerPopup::onCustomToggleTriggerValue @ 0x6b8808 // > SetupItemEditTriggerPopup::valueDidChange @ 0x6b8822 // > SetupItemEditTriggerPopup::init @ 0x6b9a70 // > SetupItemEditTriggerPopup::onOpButton @ 0x6b9c56 // // 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 SetupItemEditTriggerPopup::updateFormulaLabel(SetupItemEditTriggerPopup *this) { int v2; // s17 int v3; // r10 int v4; // r9 int v5; // r5 int v6; // r7 int v7; // r6 int v8; // r3 int v9; // r3 int v10; // r8 signed int v11; // s16 int v12; // r7 char *v13; // r1 size_t v14; // r2 int v15; // r9 int v16; // r8 float v17; // s16 int v18; // r0 const char *v19; // r1 int v20; // r6 char *v21; // r1 size_t v22; // r2 char *v23; // r1 size_t v24; // r2 char *v25; // r1 size_t v26; // r2 char *v27; // r1 char *v29; // r1 size_t v30; // r2 char *v31; // r1 size_t v32; // r2 char *v33; // r1 size_t v34; // r2 char *v35; // r1 size_t v36; // r2 char *v37; // r1 size_t v38; // r2 cocos2d::CCString *v39; // r0 char *CString; // r1 char *v41; // r1 size_t v42; // r2 const char *v43; // r1 cocos2d::CCString *v44; // r0 int v45; // [sp+0h] [bp-A4h] int v46; // [sp+4h] [bp-A0h] int v47; // [sp+8h] [bp-9Ch] int v48; // [sp+Ch] [bp-98h] signed int v49; // [sp+10h] [bp-94h] int v50[2]; // [sp+18h] [bp-8Ch] BYREF char *v51; // [sp+20h] [bp-84h] int v52[3]; // [sp+24h] [bp-80h] BYREF int v53[3]; // [sp+30h] [bp-74h] BYREF int v54[3]; // [sp+3Ch] [bp-68h] BYREF int v55[3]; // [sp+48h] [bp-5Ch] BYREF int v56[3]; // [sp+54h] [bp-50h] BYREF int v57[3]; // [sp+60h] [bp-44h] BYREF int v58[3]; // [sp+6Ch] [bp-38h] BYREF int v59[3]; // [sp+78h] [bp-2Ch] BYREF int v60[3]; // [sp+84h] [bp-20h] BYREF int v61[3]; // [sp+90h] [bp-14h] BYREF v50[0] = 0; v50[1] = 0; v51 = nullptr; std::string::__init(v50, &unk_B6B226, 0); v2 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemEditTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 80)); v3 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemEditTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 95)); v4 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemEditTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 51)); v47 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemEditTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 476)); v5 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemEditTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 477)); v6 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemEditTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 478)); v7 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemEditTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 480)); v8 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemEditTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 481)); if ( v8 < 1 ) v8 = 1; v46 = v8; v9 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemEditTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 482)); if ( v9 < 3 ) v9 = 3; v45 = v9; v48 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemEditTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 485)); v10 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemEditTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 486)); v49 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupItemEditTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 578)); v11 = (int)(*(float (__fastcall **)(SetupItemEditTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 579); if ( v6 <= 0 ) { if ( v4 <= 0 ) { LABEL_8: std::string::assign(v50, "Select a target"); goto LABEL_48; } v6 = 1; } else if ( v4 <= 0 && v6 != 3 ) { goto LABEL_8; } getItemVarName(v52, v47, v2); getItemVarName(v53, v5, v3); getItemVarName(v54, v6, v4); if ( v47 && (v2 > 0 || isSpecialItemType(v47)) ) { if ( !v5 ) { LABEL_53: v5 = 0; LABEL_54: v12 = 1; goto LABEL_19; } if ( v3 > 0 ) goto LABEL_92; v12 = 1; LABEL_17: if ( !isSpecialItemType(v5) ) { v5 = 0; goto LABEL_19; } if ( !v12 ) goto LABEL_95; LABEL_92: v5 = 1; goto LABEL_54; } if ( v5 ) { if ( v3 > 0 ) { LABEL_95: std::string::operator=((unsigned __int8 *)v52, (unsigned __int8 *)v53); goto LABEL_53; } v12 = 0; goto LABEL_17; } v12 = 0; LABEL_19: std::string::operator=((unsigned __int8 *)v50, (unsigned __int8 *)v54); std::string::append(v50, " "); std::string::append(v50, "= "); if ( v11 <= 0 ) { v15 = 0; } else { if ( !v7 ) { if ( v10 > 0 ) { v15 = 0; v16 = 0; } else { v16 = 0; v15 = 0; } goto LABEL_27; } signKeyToString(v55, v11, 0); if ( (v55[0] & 1) != 0 ) { v13 = (char *)v55[2]; v14 = v55[1]; } else { v14 = (int)LOBYTE(v55[0]) >> 1; v13 = (char *)v55 + 1; } std::string::append(v50, v13, v14); std::string::~string((int)v55); std::string::append(v50, "("); v15 = 1; } if ( v10 <= 0 ) { v16 = 0; if ( !v7 ) goto LABEL_27; } else { if ( !v7 ) { v16 = 0; goto LABEL_27; } roundKeyToString(v56, v10, 0); if ( (v56[0] & 1) != 0 ) { v29 = (char *)v56[2]; v30 = v56[1]; } else { v30 = (int)LOBYTE(v56[0]) >> 1; v29 = (char *)v56 + 1; } std::string::append(v50, v29, v30); std::string::~string((int)v56); std::string::append(v50, "("); v16 = 1; } if ( (v54[0] & 1) != 0 ) { v31 = (char *)v54[2]; v32 = v54[1]; } else { v32 = (int)LOBYTE(v54[0]) >> 1; v31 = (char *)v54 + 1; } std::string::append(v50, v31, v32); std::string::append(v50, " "); opKeyToString(v57, v7); if ( (v57[0] & 1) != 0 ) { v33 = (char *)v57[2]; v34 = v57[1]; } else { v34 = (int)LOBYTE(v57[0]) >> 1; v33 = (char *)v57 + 1; } std::string::append(v50, v33, v34); std::string::~string((int)v57); std::string::append(v50, " "); LABEL_27: if ( v49 > 0 ) { signKeyToString(v58, v49, 0); if ( (v58[0] & 1) != 0 ) { v35 = (char *)v58[2]; v36 = v58[1]; } else { v36 = (int)LOBYTE(v58[0]) >> 1; v35 = (char *)v58 + 1; } std::string::append(v50, v35, v36); std::string::~string((int)v58); std::string::append(v50, "("); } if ( v48 > 0 ) { roundKeyToString(v59, v48, 0); if ( (v59[0] & 1) != 0 ) { v37 = (char *)v59[2]; v38 = v59[1]; } else { v38 = (int)LOBYTE(v59[0]) >> 1; v37 = (char *)v59 + 1; } std::string::append(v50, v37, v38); std::string::~string((int)v59); std::string::append(v50, "("); } v17 = COERCE_FLOAT((*(int (__fastcall **)(SetupItemEditTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 479)); v18 = isOpValid(v45, v17); v20 = v18; if ( v5 ) { if ( !v18 ) { if ( !v12 ) goto LABEL_34; goto LABEL_31; } std::string::append(v50, "("); } if ( v12 ) { LABEL_31: if ( (v52[0] & 1) != 0 ) { v21 = (char *)v52[2]; v22 = v52[1]; } else { v22 = (int)LOBYTE(v52[0]) >> 1; v21 = (char *)v52 + 1; } std::string::append(v50, v21, v22); if ( !v5 ) { if ( !v20 ) goto LABEL_39; goto LABEL_78; } LABEL_34: std::string::append(v50, " "); opKeyToString(v60, v46); if ( (v60[0] & 1) != 0 ) { v23 = (char *)v60[2]; v24 = v60[1]; } else { v24 = (int)LOBYTE(v60[0]) >> 1; v23 = (char *)v60 + 1; } std::string::append(v50, v23, v24); std::string::~string((int)v60); std::string::append(v50, " "); if ( (v53[0] & 1) != 0 ) { v25 = (char *)v53[2]; v26 = v53[1]; } else { v26 = (int)LOBYTE(v53[0]) >> 1; v25 = (char *)v53 + 1; } std::string::append(v50, v25, v26); if ( !v20 ) goto LABEL_39; std::string::append(v50, ")"); LABEL_78: std::string::append(v50, " "); opKeyToString(v61, v45); if ( (v61[0] & 1) != 0 ) { v41 = (char *)v61[2]; v42 = v61[1]; } else { v42 = (int)LOBYTE(v61[0]) >> 1; v41 = (char *)v61 + 1; } std::string::append(v50, v41, v42); std::string::~string((int)v61); std::string::append(v50, " "); v44 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.03f", v43, v17); CString = (char *)cocos2d::CCString::getCString(v44); goto LABEL_76; } if ( v5 ) goto LABEL_34; v39 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.03f", v19, v17); CString = (char *)cocos2d::CCString::getCString(v39); LABEL_76: std::string::append(v50, CString); LABEL_39: if ( v48 > 0 ) std::string::append(v50, ")"); if ( v49 > 0 ) std::string::append(v50, ")"); if ( v16 ) std::string::append(v50, ")"); if ( v15 ) std::string::append(v50, ")"); std::string::~string((int)v54); std::string::~string((int)v53); std::string::~string((int)v52); LABEL_48: if ( (v50[0] & 1) != 0 ) v27 = v51; else v27 = (char *)v50 + 1; (*(void (__fastcall **)(_DWORD, char *, int))(**((_DWORD **)this + 178) + 464))( *((_DWORD *)this + 178), v27, LOBYTE(v50[0]) << 31); cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 178), 400.0, 0.8, 0.0); return std::string::~string((int)v50); }
GD Web Decomp Icon

GD Web Decomp

Raw Source