// // SetupMoveCommandPopup::valueDidChange from 0x14038fa60 to 0x14038ff10 (1200 bytes) // // 2 xrefs: // > @ 0x140772d08 // > @ 0x140922f58 // // This function is hookable on this platform (idp: pc, 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 11:31:10 +0000 // void __fastcall SetupMoveCommandPopup::valueDidChange(__int64 a1, int a2, float a3) { int v4; // edx int v5; // edx int v6; // edx int v7; // edx __int64 v8; // rdx __int64 v9; // rdx int v10; // edx int v11; // edx int v12; // edx __int64 v13; // rdx if ( a2 <= 142 ) { if ( a2 == 142 ) { if ( a3 != 0.0 ) { if ( cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 752), 59) ) (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1152LL))(a1, 59, 0); else SetupTriggerPopup::updateValueControls(a1, 59); v8 = 59; goto LABEL_52; } } else { v4 = a2 - 58; if ( v4 ) { v5 = v4 - 1; if ( v5 ) { v6 = v5 - 41; if ( v6 ) { v7 = v6 - 38; if ( v7 ) { if ( v7 != 3 ) return; if ( a3 == 0.0 ) goto LABEL_53; if ( cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 752), 58) ) (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1152LL))(a1, 58, 0); else SetupTriggerPopup::updateValueControls(a1, 58); v8 = 58; goto LABEL_52; } if ( a3 == 0.0 ) return; if ( cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 752), 200) ) (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1152LL))(a1, 200, 0); else SetupTriggerPopup::updateValueControls(a1, 200); v9 = 200; LABEL_69: SetupTriggerPopup::valueChanged(a1, v9); if ( cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 752), 71) ) (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1152LL))(a1, 71, 0); else SetupTriggerPopup::updateValueControls(a1, 71); v13 = 71; LABEL_73: SetupTriggerPopup::valueChanged(a1, v13); return; } if ( a3 != 0.0 ) { if ( cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 752), 394) ) (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1152LL))(a1, 394, 0); else SetupTriggerPopup::updateValueControls(a1, 394); v8 = 394; LABEL_52: SetupTriggerPopup::valueChanged(a1, v8); } } else if ( a3 != 0.0 ) { if ( cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 752), 142) ) (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1152LL))(a1, 142, 0); else SetupTriggerPopup::updateValueControls(a1, 142); v8 = 142; goto LABEL_52; } } else if ( a3 != 0.0 ) { if ( cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 752), 141) ) (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1152LL))(a1, 141, 0); else SetupTriggerPopup::updateValueControls(a1, 141); v8 = 141; goto LABEL_52; } } LABEL_53: SetupMoveCommandPopup::updateControlVisibility(a1); return; } v10 = a2 - 200; if ( !v10 ) { if ( a3 == 0.0 ) return; if ( cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 752), 138) ) (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1152LL))(a1, 138, 0); else SetupTriggerPopup::updateValueControls(a1, 138); v9 = 138; goto LABEL_69; } v11 = v10 - 193; if ( !v11 ) { *(_BYTE *)(a1 + 1000) = a3 != 0.0; if ( cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 752), 28) ) (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1152LL))(a1, 28, 0); else SetupTriggerPopup::updateValueControls(a1, 28); SetupTriggerPopup::valueChanged(a1, 28); if ( cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 752), 29) ) (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1152LL))(a1, 29, 0); else SetupTriggerPopup::updateValueControls(a1, 29); SetupTriggerPopup::valueChanged(a1, 29); if ( cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 752), 396) ) (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1152LL))(a1, 396, 0); else SetupTriggerPopup::updateValueControls(a1, 396); v13 = 396; goto LABEL_73; } v12 = v11 - 1; if ( !v12 ) { if ( a3 != 0.0 ) { if ( cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 752), 100) ) (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1152LL))(a1, 100, 0); else SetupTriggerPopup::updateValueControls(a1, 100); v8 = 100; goto LABEL_52; } goto LABEL_53; } if ( v12 == 150 && a3 != 0.0 ) { if ( cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 752), 10) ) (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1152LL))(a1, 10, 0); else SetupTriggerPopup::updateValueControls(a1, 10); v13 = 10; goto LABEL_73; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source