{"type": "func", "start": 11529212, "end": 11529420, "name": "CreateParticlePopup::updateSliderForType", "pseudocode": "// \n// CreateParticlePopup::updateSliderForType from 0xafebfc to 0xafeccc (208 bytes)\n// \n// 24 xrefs:\n// > CreateParticlePopup::textChanged @ 0xafedb4\n// > CreateParticlePopup::createParticleSlider @ 0xb004e4\n// > CreateParticlePopup::onDuplicateColor @ 0xb009dc\n// > CreateParticlePopup::onDuplicateColor @ 0xb009e8\n// > CreateParticlePopup::onDuplicateColor @ 0xb009f4\n// > CreateParticlePopup::colorSelectClosed @ 0xb00c0c\n// > CreateParticlePopup::colorSelectClosed @ 0xb00c18\n// > CreateParticlePopup::colorSelectClosed @ 0xb00c24\n// > CreateParticlePopup::colorSelectClosed @ 0xb00cd0\n// > CreateParticlePopup::colorSelectClosed @ 0xb00cdc\n// > CreateParticlePopup::colorSelectClosed @ 0xb00ce8\n// > CreateParticlePopup::onDurationForever @ 0xb00d80\n// > CreateParticlePopup::onMaxEmission @ 0xb00dc8\n// > CreateParticlePopup::onCalcEmission @ 0xb00e68\n// > CreateParticlePopup::sliderChanged @ 0xb00f30\n// > CreateParticlePopup::ccTouchMoved @ 0xb010e0\n// > CreateParticlePopup::ccTouchMoved @ 0xb010f8\n// > CreateParticlePopup::ccTouchMoved @ 0xb01194\n// > CreateParticlePopup::ccTouchMoved @ 0xb01228\n// > CreateParticlePopup::ccTouchMoved @ 0xb0128c\n// > CreateParticlePopup::ccTouchMoved @ 0xb012f4\n// > CreateParticlePopup::ccTouchMoved @ 0xb0130c\n// > CreateParticlePopup::ccTouchMoved @ 0xb01378\n// > <???> @ 0x104560\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:01:19 +0000\n// \n\n__int64 __fastcall CreateParticlePopup::updateSliderForType(cocos2d::CCArray **a1, unsigned int a2)\n{\n  cocos2d::CCDictionary *PageSliders; // x0\n  __int64 result; // x0\n  Slider *v6; // x21\n  float v7; // s8\n  float v8; // s9\n  float v9; // s0\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((__int64)a1, a2);\n    v8 = CreateParticlePopup::minSliderValueForType((__int64)a1, a2);\n    v9 = (float)(v7 - v8) / (float)(CreateParticlePopup::maxSliderValueForType((__int64)a1, a2) - v8);\n    if ( v9 >= 1.0 )\n    {\n      v9 = 1.0;\n      return Slider::setValue(v6, v9);\n    }\n    if ( v9 > 0.0 )\n      return Slider::setValue(v6, v9);\n    return Slider::setValue(v6, 0.0);\n  }\n  return result;\n}", "assembly": "; \n; CreateParticlePopup::updateSliderForType from 0xafebfc to 0xafeccc (208 bytes)\n; \n; 24 xrefs:\n; > CreateParticlePopup::textChanged @ 0xafedb4\n; > CreateParticlePopup::createParticleSlider @ 0xb004e4\n; > CreateParticlePopup::onDuplicateColor @ 0xb009dc\n; > CreateParticlePopup::onDuplicateColor @ 0xb009e8\n; > CreateParticlePopup::onDuplicateColor @ 0xb009f4\n; > CreateParticlePopup::colorSelectClosed @ 0xb00c0c\n; > CreateParticlePopup::colorSelectClosed @ 0xb00c18\n; > CreateParticlePopup::colorSelectClosed @ 0xb00c24\n; > CreateParticlePopup::colorSelectClosed @ 0xb00cd0\n; > CreateParticlePopup::colorSelectClosed @ 0xb00cdc\n; > CreateParticlePopup::colorSelectClosed @ 0xb00ce8\n; > CreateParticlePopup::onDurationForever @ 0xb00d80\n; > CreateParticlePopup::onMaxEmission @ 0xb00dc8\n; > CreateParticlePopup::onCalcEmission @ 0xb00e68\n; > CreateParticlePopup::sliderChanged @ 0xb00f30\n; > CreateParticlePopup::ccTouchMoved @ 0xb010e0\n; > CreateParticlePopup::ccTouchMoved @ 0xb010f8\n; > CreateParticlePopup::ccTouchMoved @ 0xb01194\n; > CreateParticlePopup::ccTouchMoved @ 0xb01228\n; > CreateParticlePopup::ccTouchMoved @ 0xb0128c\n; > CreateParticlePopup::ccTouchMoved @ 0xb012f4\n; > CreateParticlePopup::ccTouchMoved @ 0xb0130c\n; > CreateParticlePopup::ccTouchMoved @ 0xb01378\n; > <???> @ 0x104560\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:01:19 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xafebfc\nMOV             X29, SP                                                ; +0x4, 0xafec00\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xafec04\nSTP             D8, D9, [SP,#0x40+var_18]                              ; +0xc, 0xafec08\nMOV             W19, W1                                                ; +0x10, 0xafec0c\nMOV             W1, #0; int                                            ; +0x14, 0xafec10\nSTR             X21, [SP,#0x40+var_20]                                 ; +0x18, 0xafec14\nMOV             X20, X0                                                ; +0x1c, 0xafec18\nBL              _ZN19CreateParticlePopup14getPageSlidersEi; CreateParticlePopup::getPageSliders(int) ; +0x20, 0xafec1c\nMOV             W1, W19; __int64                                       ; +0x24, 0xafec20\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEl; cocos2d::CCDictionary::objectForKey(long) ; +0x28, 0xafec24\nMOV             X21, X0                                                ; +0x2c, 0xafec28\nCBZ             X0, loc_AFEC94                                         ; +0x30, 0xafec2c\nMOV             X0, X20                                                ; +0x34, 0xafec30\nMOV             W1, W19                                                ; +0x38, 0xafec34\nBL              _ZN19CreateParticlePopup21valueForParticleValueE15gjParticleValue; CreateParticlePopup::valueForParticleValue(gjParticleValue) ; +0x3c, 0xafec38\nFMOV            S8, S0                                                 ; +0x40, 0xafec3c\nMOV             X0, X20                                                ; +0x44, 0xafec40\nMOV             W1, W19                                                ; +0x48, 0xafec44\nBL              _ZN19CreateParticlePopup21minSliderValueForTypeE15gjParticleValue; CreateParticlePopup::minSliderValueForType(gjParticleValue) ; +0x4c, 0xafec48\nFMOV            S9, S0                                                 ; +0x50, 0xafec4c\nMOV             X0, X20                                                ; +0x54, 0xafec50\nMOV             W1, W19                                                ; +0x58, 0xafec54\nBL              _ZN19CreateParticlePopup21maxSliderValueForTypeE15gjParticleValue; CreateParticlePopup::maxSliderValueForType(gjParticleValue) ; +0x5c, 0xafec58\nFSUB            S8, S8, S9                                             ; +0x60, 0xafec5c\nFSUB            S0, S0, S9                                             ; +0x64, 0xafec60\nFMOV            S1, #1.0                                               ; +0x68, 0xafec64\nFDIV            S0, S8, S0                                             ; +0x6c, 0xafec68\nFCMPE           S0, S1                                                 ; +0x70, 0xafec6c\nB.MI            loc_AFECA8                                             ; +0x74, 0xafec70\nB.MI            loc_AFEC7C                                             ; +0x78, 0xafec74\nFMOV            S0, S1; float                                          ; +0x7c, 0xafec78\nLDP             D8, D9, [SP,#0x40+var_18]                              ; +0x80, 0xafec7c\nMOV             X0, X21; this                                          ; +0x84, 0xafec80\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x88, 0xafec84\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x8c, 0xafec88\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x90, 0xafec8c\nB               _ZN6Slider8setValueEf; Slider::setValue(float)         ; +0x94, 0xafec90\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x98, 0xafec94\nLDP             D8, D9, [SP,#0x40+var_18]                              ; +0x9c, 0xafec98\nLDR             X21, [SP,#0x40+var_20]                                 ; +0xa0, 0xafec9c\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xa4, 0xafeca0\nRET                                                                    ; +0xa8, 0xafeca4\nFCMPE           S0, #0.0                                               ; +0xac, 0xafeca8\nB.GT            loc_AFEC7C                                             ; +0xb0, 0xafecac\nLDP             D8, D9, [SP,#0x40+var_18]                              ; +0xb4, 0xafecb0\nFMOV            S0, WZR; float                                         ; +0xb8, 0xafecb4\nMOV             X0, X21; this                                          ; +0xbc, 0xafecb8\nLDR             X21, [SP,#0x40+var_20]                                 ; +0xc0, 0xafecbc\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xc4, 0xafecc0\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xc8, 0xafecc4\nB               _ZN6Slider8setValueEf; Slider::setValue(float)         ; +0xcc, 0xafecc8", "xrefs": ["CreateParticlePopup::textChanged @ 0xafedb4", "CreateParticlePopup::createParticleSlider @ 0xb004e4", "CreateParticlePopup::onDuplicateColor @ 0xb009dc", "CreateParticlePopup::onDuplicateColor @ 0xb009e8", "CreateParticlePopup::onDuplicateColor @ 0xb009f4", "CreateParticlePopup::colorSelectClosed @ 0xb00c0c", "CreateParticlePopup::colorSelectClosed @ 0xb00c18", "CreateParticlePopup::colorSelectClosed @ 0xb00c24", "CreateParticlePopup::colorSelectClosed @ 0xb00cd0", "CreateParticlePopup::colorSelectClosed @ 0xb00cdc", "CreateParticlePopup::colorSelectClosed @ 0xb00ce8", "CreateParticlePopup::onDurationForever @ 0xb00d80", "CreateParticlePopup::onMaxEmission @ 0xb00dc8", "CreateParticlePopup::onCalcEmission @ 0xb00e68", "CreateParticlePopup::sliderChanged @ 0xb00f30", "CreateParticlePopup::ccTouchMoved @ 0xb010e0", "CreateParticlePopup::ccTouchMoved @ 0xb010f8", "CreateParticlePopup::ccTouchMoved @ 0xb01194", "CreateParticlePopup::ccTouchMoved @ 0xb01228", "CreateParticlePopup::ccTouchMoved @ 0xb0128c", "CreateParticlePopup::ccTouchMoved @ 0xb012f4", "CreateParticlePopup::ccTouchMoved @ 0xb0130c", "CreateParticlePopup::ccTouchMoved @ 0xb01378", "<???> @ 0x104560"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}