// // SetupItemCompareTriggerPopup::onOpButton from 0xa4e414 to 0xa4e514 (256 bytes) // // 3 xrefs: // > @ 0x94680 // > SetupItemCompareTriggerPopup::init @ 0xa4d8b4 // > @ 0x122d130 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void SetupItemCompareTriggerPopup::onOpButton(SetupItemCompareTriggerPopup *a1, cocos2d::CCObject *a2) { int v4; // w19 int v5; // w2 float v6; // s0 int v7; // [xsp+38h] [xbp+38h] v4 = a2->getTag(a2); v5 = (int)a1->getValue(a1, v4) + 1; if ( v4 == 482 ) { if ( v5 > 5 ) { v6 = 0.0; v5 = 0; goto LABEL_8; } goto LABEL_11; } if ( (unsigned int)(v4 - 485) <= 1 ) { if ( v5 <= 3 ) goto LABEL_5; goto LABEL_10; } if ( (unsigned int)(v4 - 578) <= 1 ) { if ( v5 <= 2 ) goto LABEL_5; LABEL_10: v5 = (unsigned int)(v4 - 480) <= 1; LABEL_11: v6 = (float)v5; goto LABEL_8; } if ( v5 > 4 ) goto LABEL_10; LABEL_5: if ( (unsigned int)(v4 - 480) > 1 || v5 > 0 ) goto LABEL_11; v6 = 1.0; v5 = 1; LABEL_8: v7 = v5; SetupTriggerPopup::updateValue(a1, v4, v6); SetupItemCompareTriggerPopup::updateOpButton(a1, (CCMenuItemSpriteExtra *)a2, v7, v4); SetupItemCompareTriggerPopup::updateFormulaLabel(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source