{"type": "func", "start": 6707164, "end": 6707302, "name": "CreateParticlePopup::updateSliderForType", "pseudocode": "// \n// CreateParticlePopup::updateSliderForType from 0x6657dc to 0x665866 (138 bytes)\n// \n// 19 xrefs:\n// > CreateParticlePopup::textChanged @ 0x665f0e\n// > CreateParticlePopup::onDuplicateColor @ 0x6665c4\n// > CreateParticlePopup::onDuplicateColor @ 0x6665cc\n// > CreateParticlePopup::onDuplicateColor @ 0x6665d4\n// > CreateParticlePopup::colorSelectClosed @ 0x666746\n// > CreateParticlePopup::colorSelectClosed @ 0x66674e\n// > CreateParticlePopup::colorSelectClosed @ 0x666756\n// > CreateParticlePopup::colorSelectClosed @ 0x66681a\n// > CreateParticlePopup::colorSelectClosed @ 0x666822\n// > CreateParticlePopup::colorSelectClosed @ 0x66682a\n// > CreateParticlePopup::onDurationForever @ 0x666872\n// > CreateParticlePopup::onMaxEmission @ 0x6668a2\n// > CreateParticlePopup::onCalcEmission @ 0x666926\n// > CreateParticlePopup::sliderChanged @ 0x6669c4\n// > CreateParticlePopup::ccTouchMoved @ 0x666adc\n// > CreateParticlePopup::ccTouchMoved @ 0x666b3a\n// > CreateParticlePopup::ccTouchMoved @ 0x666c60\n// > CreateParticlePopup::ccTouchMoved @ 0x666c70\n// > CreateParticlePopup::createParticleSlider @ 0x66702e\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:55:40 +0000\n// \n\nint __fastcall CreateParticlePopup::updateSliderForType(cocos2d::CCArray **a1, int a2)\n{\n  cocos2d::CCDictionary *PageSliders; // r0\n  int result; // r0\n  Slider *v6; // r6\n  float v7; // s16\n  float v8; // s17\n  float v9; // s15\n\n  PageSliders = (cocos2d::CCDictionary *)CreateParticlePopup::getPageSliders(a1, 0);\n  result = cocos2d::CCDictionary::objectForKey(PageSliders, a2);\n  v6 = (Slider *)result;\n  if ( result )\n  {\n    v7 = CreateParticlePopup::valueForParticleValue((int)a1, a2);\n    v8 = COERCE_FLOAT(CreateParticlePopup::minSliderValueForType((int)a1, a2));\n    v9 = (float)(v7 - v8) / (float)(COERCE_FLOAT(CreateParticlePopup::maxSliderValueForType((int)a1, a2)) - v8);\n    if ( v9 >= 1.0 )\n    {\n      v9 = 1.0;\n    }\n    else if ( v9 <= 0.0 )\n    {\n      v9 = 0.0;\n    }\n    return Slider::setValue(v6, v9);\n  }\n  return result;\n}", "assembly": "; \n; CreateParticlePopup::updateSliderForType from 0x6657dc to 0x665866 (138 bytes)\n; \n; 19 xrefs:\n; > CreateParticlePopup::textChanged @ 0x665f0e\n; > CreateParticlePopup::onDuplicateColor @ 0x6665c4\n; > CreateParticlePopup::onDuplicateColor @ 0x6665cc\n; > CreateParticlePopup::onDuplicateColor @ 0x6665d4\n; > CreateParticlePopup::colorSelectClosed @ 0x666746\n; > CreateParticlePopup::colorSelectClosed @ 0x66674e\n; > CreateParticlePopup::colorSelectClosed @ 0x666756\n; > CreateParticlePopup::colorSelectClosed @ 0x66681a\n; > CreateParticlePopup::colorSelectClosed @ 0x666822\n; > CreateParticlePopup::colorSelectClosed @ 0x66682a\n; > CreateParticlePopup::onDurationForever @ 0x666872\n; > CreateParticlePopup::onMaxEmission @ 0x6668a2\n; > CreateParticlePopup::onCalcEmission @ 0x666926\n; > CreateParticlePopup::sliderChanged @ 0x6669c4\n; > CreateParticlePopup::ccTouchMoved @ 0x666adc\n; > CreateParticlePopup::ccTouchMoved @ 0x666b3a\n; > CreateParticlePopup::ccTouchMoved @ 0x666c60\n; > CreateParticlePopup::ccTouchMoved @ 0x666c70\n; > CreateParticlePopup::createParticleSlider @ 0x66702e\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:55:40 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x6657dc\nMOV             R4, R1                                                 ; +0x2, 0x6657de\nVPUSH           {D8}                                                   ; +0x4, 0x6657e0\nMOVS            R1, #0; int                                            ; +0x8, 0x6657e4\nMOV             R5, R0                                                 ; +0xa, 0x6657e6\nBL              _ZN19CreateParticlePopup14getPageSlidersEi; CreateParticlePopup::getPageSliders(int) ; +0xc, 0x6657e8\nMOV             R1, R4; int                                            ; +0x10, 0x6657ec\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x12, 0x6657ee\nMOV             R6, R0                                                 ; +0x16, 0x6657f2\nCBZ             R0, loc_665860                                         ; +0x18, 0x6657f4\nMOV             R1, R4                                                 ; +0x1a, 0x6657f6\nMOV             R0, R5                                                 ; +0x1c, 0x6657f8\nBL              _ZN19CreateParticlePopup21valueForParticleValueE15gjParticleValue; CreateParticlePopup::valueForParticleValue(gjParticleValue) ; +0x1e, 0x6657fa\nMOV             R1, R4                                                 ; +0x22, 0x6657fe\nVMOV            S16, R0                                                ; +0x24, 0x665800\nMOV             R0, R5                                                 ; +0x28, 0x665804\nBL              _ZN19CreateParticlePopup21minSliderValueForTypeE15gjParticleValue; CreateParticlePopup::minSliderValueForType(gjParticleValue) ; +0x2a, 0x665806\nMOV             R1, R4                                                 ; +0x2e, 0x66580a\nVMOV            S17, R0                                                ; +0x30, 0x66580c\nMOV             R0, R5                                                 ; +0x34, 0x665810\nBL              _ZN19CreateParticlePopup21maxSliderValueForTypeE15gjParticleValue; CreateParticlePopup::maxSliderValueForType(gjParticleValue) ; +0x36, 0x665812\nVMOV.F32        S14, #1.0                                              ; +0x3a, 0x665816\nVSUB.F32        S16, S16, S17                                          ; +0x3e, 0x66581a\nVMOV            S15, R0                                                ; +0x42, 0x66581e\nVSUB.F32        S17, S15, S17                                          ; +0x46, 0x665822\nVDIV.F32        S15, S16, S17                                          ; +0x4a, 0x665826\nVCMPE.F32       S15, S14                                               ; +0x4e, 0x66582a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x52, 0x66582e\nBPL             loc_665848                                             ; +0x56, 0x665832\nVCMPE.F32       S15, #0.0                                              ; +0x58, 0x665834\nVLDR            S14, =0.0                                              ; +0x5c, 0x665838\nVMRS            APSR_nzcv, FPSCR                                       ; +0x60, 0x66583c\nIT LE                                                                  ; +0x64, 0x665840\nVMOVLE.F32      S15, S14                                               ; +0x66, 0x665842\nB               loc_66584E                                             ; +0x6a, 0x665846\nIT PL                                                                  ; +0x6c, 0x665848\nVMOVPL.F32      S15, S14                                               ; +0x6e, 0x66584a\nVPOP            {D8}                                                   ; +0x72, 0x66584e\nMOV             R0, R6; this                                           ; +0x76, 0x665852\nVMOV            R1, S15; float                                         ; +0x78, 0x665854\nPOP.W           {R4-R6,LR}                                             ; +0x7c, 0x665858\nB.W             _ZN6Slider8setValueEf; Slider::setValue(float)         ; +0x80, 0x66585c\nVPOP            {D8}                                                   ; +0x84, 0x665860\nPOP             {R4-R6,PC}                                             ; +0x88, 0x665864", "xrefs": ["CreateParticlePopup::textChanged @ 0x665f0e", "CreateParticlePopup::onDuplicateColor @ 0x6665c4", "CreateParticlePopup::onDuplicateColor @ 0x6665cc", "CreateParticlePopup::onDuplicateColor @ 0x6665d4", "CreateParticlePopup::colorSelectClosed @ 0x666746", "CreateParticlePopup::colorSelectClosed @ 0x66674e", "CreateParticlePopup::colorSelectClosed @ 0x666756", "CreateParticlePopup::colorSelectClosed @ 0x66681a", "CreateParticlePopup::colorSelectClosed @ 0x666822", "CreateParticlePopup::colorSelectClosed @ 0x66682a", "CreateParticlePopup::onDurationForever @ 0x666872", "CreateParticlePopup::onMaxEmission @ 0x6668a2", "CreateParticlePopup::onCalcEmission @ 0x666926", "CreateParticlePopup::sliderChanged @ 0x6669c4", "CreateParticlePopup::ccTouchMoved @ 0x666adc", "CreateParticlePopup::ccTouchMoved @ 0x666b3a", "CreateParticlePopup::ccTouchMoved @ 0x666c60", "CreateParticlePopup::ccTouchMoved @ 0x666c70", "CreateParticlePopup::createParticleSlider @ 0x66702e"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}