{"type": "func", "start": 5443828, "end": 5443966, "name": "CreateParticlePopup::updateSliderForType", "pseudocode": "// \n// CreateParticlePopup::updateSliderForType from 0x5310f4 to 0x53117e (138 bytes)\n// \n// 19 xrefs:\n// > CreateParticlePopup::textChanged @ 0x5311fc\n// > CreateParticlePopup::createParticleSlider @ 0x531682\n// > CreateParticlePopup::onDuplicateColor @ 0x5319f4\n// > CreateParticlePopup::onDuplicateColor @ 0x5319fc\n// > CreateParticlePopup::onDuplicateColor @ 0x531a04\n// > CreateParticlePopup::colorSelectClosed @ 0x531b76\n// > CreateParticlePopup::colorSelectClosed @ 0x531b7e\n// > CreateParticlePopup::colorSelectClosed @ 0x531b86\n// > CreateParticlePopup::colorSelectClosed @ 0x531c4a\n// > CreateParticlePopup::colorSelectClosed @ 0x531c52\n// > CreateParticlePopup::colorSelectClosed @ 0x531c5a\n// > CreateParticlePopup::onDurationForever @ 0x531ca2\n// > CreateParticlePopup::onMaxEmission @ 0x531cd2\n// > CreateParticlePopup::onCalcEmission @ 0x531d56\n// > CreateParticlePopup::sliderChanged @ 0x531df4\n// > CreateParticlePopup::ccTouchMoved @ 0x531f0c\n// > CreateParticlePopup::ccTouchMoved @ 0x531f6a\n// > CreateParticlePopup::ccTouchMoved @ 0x532090\n// > CreateParticlePopup::ccTouchMoved @ 0x5320a0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CreateParticlePopup::updateSliderForType(CreateParticlePopup *a1, gjParticleValue a2)\n{\n  cocos2d::CCDictionary *PageSliders; // r0\n  Slider *v5; // r6\n  float v6; // s16\n  float v7; // s17\n  float v8; // s15\n\n  PageSliders = CreateParticlePopup::getPageSliders(a1, 0);\n  v5 = (Slider *)cocos2d::CCDictionary::objectForKey(PageSliders, a2);\n  if ( v5 )\n  {\n    v6 = CreateParticlePopup::valueForParticleValue(a1, a2);\n    v7 = CreateParticlePopup::minSliderValueForType(a1, a2);\n    v8 = (float)(v6 - v7) / (float)(CreateParticlePopup::maxSliderValueForType(a1, a2) - v7);\n    if ( v8 >= 1.0 )\n    {\n      v8 = 1.0;\n    }\n    else if ( v8 <= 0.0 )\n    {\n      v8 = 0.0;\n    }\n    Slider::setValue(v5, v8);\n  }\n}", "assembly": "; \n; CreateParticlePopup::updateSliderForType from 0x5310f4 to 0x53117e (138 bytes)\n; \n; 19 xrefs:\n; > CreateParticlePopup::textChanged @ 0x5311fc\n; > CreateParticlePopup::createParticleSlider @ 0x531682\n; > CreateParticlePopup::onDuplicateColor @ 0x5319f4\n; > CreateParticlePopup::onDuplicateColor @ 0x5319fc\n; > CreateParticlePopup::onDuplicateColor @ 0x531a04\n; > CreateParticlePopup::colorSelectClosed @ 0x531b76\n; > CreateParticlePopup::colorSelectClosed @ 0x531b7e\n; > CreateParticlePopup::colorSelectClosed @ 0x531b86\n; > CreateParticlePopup::colorSelectClosed @ 0x531c4a\n; > CreateParticlePopup::colorSelectClosed @ 0x531c52\n; > CreateParticlePopup::colorSelectClosed @ 0x531c5a\n; > CreateParticlePopup::onDurationForever @ 0x531ca2\n; > CreateParticlePopup::onMaxEmission @ 0x531cd2\n; > CreateParticlePopup::onCalcEmission @ 0x531d56\n; > CreateParticlePopup::sliderChanged @ 0x531df4\n; > CreateParticlePopup::ccTouchMoved @ 0x531f0c\n; > CreateParticlePopup::ccTouchMoved @ 0x531f6a\n; > CreateParticlePopup::ccTouchMoved @ 0x532090\n; > CreateParticlePopup::ccTouchMoved @ 0x5320a0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x5310f4\nMOV             R4, R1                                                 ; +0x2, 0x5310f6\nVPUSH           {D8}                                                   ; +0x4, 0x5310f8\nMOVS            R1, #0; int                                            ; +0x8, 0x5310fc\nMOV             R5, R0                                                 ; +0xa, 0x5310fe\nBL              _ZN19CreateParticlePopup14getPageSlidersEi; CreateParticlePopup::getPageSliders(int) ; +0xc, 0x531100\nMOV             R1, R4; int                                            ; +0x10, 0x531104\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x12, 0x531106\nMOV             R6, R0                                                 ; +0x16, 0x53110a\nCBZ             R0, loc_531178                                         ; +0x18, 0x53110c\nMOV             R1, R4                                                 ; +0x1a, 0x53110e\nMOV             R0, R5                                                 ; +0x1c, 0x531110\nBL              _ZN19CreateParticlePopup21valueForParticleValueE15gjParticleValue; CreateParticlePopup::valueForParticleValue(gjParticleValue) ; +0x1e, 0x531112\nMOV             R1, R4                                                 ; +0x22, 0x531116\nVMOV            S16, R0                                                ; +0x24, 0x531118\nMOV             R0, R5                                                 ; +0x28, 0x53111c\nBL              _ZN19CreateParticlePopup21minSliderValueForTypeE15gjParticleValue; CreateParticlePopup::minSliderValueForType(gjParticleValue) ; +0x2a, 0x53111e\nMOV             R1, R4                                                 ; +0x2e, 0x531122\nVMOV            S17, R0                                                ; +0x30, 0x531124\nMOV             R0, R5                                                 ; +0x34, 0x531128\nBL              _ZN19CreateParticlePopup21maxSliderValueForTypeE15gjParticleValue; CreateParticlePopup::maxSliderValueForType(gjParticleValue) ; +0x36, 0x53112a\nVMOV.F32        S14, #1.0                                              ; +0x3a, 0x53112e\nVSUB.F32        S16, S16, S17                                          ; +0x3e, 0x531132\nVMOV            S15, R0                                                ; +0x42, 0x531136\nVSUB.F32        S17, S15, S17                                          ; +0x46, 0x53113a\nVDIV.F32        S15, S16, S17                                          ; +0x4a, 0x53113e\nVCMPE.F32       S15, S14                                               ; +0x4e, 0x531142\nVMRS            APSR_nzcv, FPSCR                                       ; +0x52, 0x531146\nBPL             loc_531160                                             ; +0x56, 0x53114a\nVCMPE.F32       S15, #0.0                                              ; +0x58, 0x53114c\nVLDR            S14, =0.0                                              ; +0x5c, 0x531150\nVMRS            APSR_nzcv, FPSCR                                       ; +0x60, 0x531154\nIT LE                                                                  ; +0x64, 0x531158\nVMOVLE.F32      S15, S14                                               ; +0x66, 0x53115a\nB               loc_531166                                             ; +0x6a, 0x53115e\nIT PL                                                                  ; +0x6c, 0x531160\nVMOVPL.F32      S15, S14                                               ; +0x6e, 0x531162\nVPOP            {D8}                                                   ; +0x72, 0x531166\nMOV             R0, R6; this                                           ; +0x76, 0x53116a\nVMOV            R1, S15; float                                         ; +0x78, 0x53116c\nPOP.W           {R4-R6,LR}                                             ; +0x7c, 0x531170\nB.W             _ZN6Slider8setValueEf; Slider::setValue(float)         ; +0x80, 0x531174\nVPOP            {D8}                                                   ; +0x84, 0x531178\nPOP             {R4-R6,PC}                                             ; +0x88, 0x53117c", "xrefs": ["CreateParticlePopup::textChanged @ 0x5311fc", "CreateParticlePopup::createParticleSlider @ 0x531682", "CreateParticlePopup::onDuplicateColor @ 0x5319f4", "CreateParticlePopup::onDuplicateColor @ 0x5319fc", "CreateParticlePopup::onDuplicateColor @ 0x531a04", "CreateParticlePopup::colorSelectClosed @ 0x531b76", "CreateParticlePopup::colorSelectClosed @ 0x531b7e", "CreateParticlePopup::colorSelectClosed @ 0x531b86", "CreateParticlePopup::colorSelectClosed @ 0x531c4a", "CreateParticlePopup::colorSelectClosed @ 0x531c52", "CreateParticlePopup::colorSelectClosed @ 0x531c5a", "CreateParticlePopup::onDurationForever @ 0x531ca2", "CreateParticlePopup::onMaxEmission @ 0x531cd2", "CreateParticlePopup::onCalcEmission @ 0x531d56", "CreateParticlePopup::sliderChanged @ 0x531df4", "CreateParticlePopup::ccTouchMoved @ 0x531f0c", "CreateParticlePopup::ccTouchMoved @ 0x531f6a", "CreateParticlePopup::ccTouchMoved @ 0x532090", "CreateParticlePopup::ccTouchMoved @ 0x5320a0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}