{"type": "func", "start": 7586360, "end": 7586592, "name": "ColorSelectPopup::sliderChanged", "pseudocode": "// \n// ColorSelectPopup::sliderChanged from 0x73c238 to 0x73c320 (232 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x4a808\n// > ColorSelectPopup::init @ 0x73d730\n// > ColorSelectPopup::init @ 0x73f3d4\n// > <???> @ 0x122a610\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 ColorSelectPopup::sliderChanged(ColorSelectPopup *a1, cocos2d::CCObject *a2)\n{\n  float Value; // s8\n  const char *v5; // x1\n  cocos2d::CCString *v6; // x0\n  float v7; // s0\n\n  Value = SliderThumb::getValue((SliderThumb *)a2);\n  if ( a2->getTag(a2) == 1 )\n  {\n    a1->m_fadeTime = Value * 10.0;\n    ColorSelectPopup::updateDuration(a1);\n    ColorSelectPopup::updateDurLabel(a1);\n  }\n  else if ( a2->getTag(a2) == 2 )\n  {\n    v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%.02f\", v5, Value);\n    v7 = cocos2d::CCString::floatValue(v6);\n    if ( v7 > 0.02 )\n    {\n      if ( v7 >= 0.98 )\n        v7 = 1.0;\n      a1->m_opacity = v7;\n    }\n    else\n    {\n      a1->m_opacity = 0.0;\n    }\n    ColorSelectPopup::updateOpacity(a1);\n    ColorSelectPopup::updateOpacityLabel(a1);\n  }\n}", "assembly": "; \n; ColorSelectPopup::sliderChanged from 0x73c238 to 0x73c320 (232 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x4a808\n; > ColorSelectPopup::init @ 0x73d730\n; > ColorSelectPopup::init @ 0x73f3d4\n; > <???> @ 0x122a610\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x73c238\nMOV             X29, SP                                                ; +0x4, 0x73c23c\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x73c240\nMOV             X19, X1                                                ; +0xc, 0x73c244\nMOV             X20, X0                                                ; +0x10, 0x73c248\nMOV             X0, X1; this                                           ; +0x14, 0x73c24c\nSTR             D8, [SP,#0x30+var_10]                                  ; +0x18, 0x73c250\nBL              _ZN11SliderThumb8getValueEv; SliderThumb::getValue(void) ; +0x1c, 0x73c254\nLDR             X1, [X19]                                              ; +0x20, 0x73c258\nMOV             X0, X19                                                ; +0x24, 0x73c25c\nFMOV            S8, S0                                                 ; +0x28, 0x73c260\nLDR             X1, [X1,#0x40]                                         ; +0x2c, 0x73c264\nBLR             X1                                                     ; +0x30, 0x73c268\nCMP             W0, #1                                                 ; +0x34, 0x73c26c\nB.EQ            loc_73C29C                                             ; +0x38, 0x73c270\nLDR             X1, [X19]                                              ; +0x3c, 0x73c274\nMOV             X0, X19                                                ; +0x40, 0x73c278\nLDR             X1, [X1,#0x40]                                         ; +0x44, 0x73c27c\nBLR             X1                                                     ; +0x48, 0x73c280\nCMP             W0, #2                                                 ; +0x4c, 0x73c284\nB.EQ            loc_73C2C4                                             ; +0x50, 0x73c288\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x54, 0x73c28c\nLDR             D8, [SP,#0x30+var_10]                                  ; +0x58, 0x73c290\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x5c, 0x73c294\nRET                                                                    ; +0x60, 0x73c298\nFMOV            S1, #10.0                                              ; +0x64, 0x73c29c\nMOV             X0, X20; this                                          ; +0x68, 0x73c2a0\nFMUL            S8, S8, S1                                             ; +0x6c, 0x73c2a4\nSTR             S8, [X20,#0x438]                                       ; +0x70, 0x73c2a8\nBL              _ZN16ColorSelectPopup14updateDurationEv; ColorSelectPopup::updateDuration(void) ; +0x74, 0x73c2ac\nLDR             D8, [SP,#0x30+var_10]                                  ; +0x78, 0x73c2b0\nMOV             X0, X20; this                                          ; +0x7c, 0x73c2b4\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x80, 0x73c2b8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x84, 0x73c2bc\nB               _ZN16ColorSelectPopup14updateDurLabelEv; ColorSelectPopup::updateDurLabel(void) ; +0x88, 0x73c2c0\nFCVT            D0, S8                                                 ; +0x8c, 0x73c2c4\nADRL            X0, (aScaley02f+8); this                               ; +0x90, 0x73c2c8\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x98, 0x73c2d0\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x9c, 0x73c2d4\nLDR             S1, =0x3CA3D70A                                        ; +0xa0, 0x73c2d8\nFCMPE           S0, S1                                                 ; +0xa4, 0x73c2dc\nB.HI            loc_73C308                                             ; +0xa8, 0x73c2e0\nFMOV            S0, WZR                                                ; +0xac, 0x73c2e4\nSTR             S0, [X20,#0x444]                                       ; +0xb0, 0x73c2e8\nMOV             X0, X20; this                                          ; +0xb4, 0x73c2ec\nBL              _ZN16ColorSelectPopup13updateOpacityEv; ColorSelectPopup::updateOpacity(void) ; +0xb8, 0x73c2f0\nLDR             D8, [SP,#0x30+var_10]                                  ; +0xbc, 0x73c2f4\nMOV             X0, X20; this                                          ; +0xc0, 0x73c2f8\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xc4, 0x73c2fc\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xc8, 0x73c300\nB               _ZN16ColorSelectPopup18updateOpacityLabelEv; ColorSelectPopup::updateOpacityLabel(void) ; +0xcc, 0x73c304\nLDR             S1, =0x3F7AE148                                        ; +0xd0, 0x73c308\nFCMPE           S0, S1                                                 ; +0xd4, 0x73c30c\nB.LT            loc_73C318                                             ; +0xd8, 0x73c310\nFMOV            S0, #1.0                                               ; +0xdc, 0x73c314\nSTR             S0, [X20,#0x444]                                       ; +0xe0, 0x73c318\nB               loc_73C2EC                                             ; +0xe4, 0x73c31c", "xrefs": ["<???> @ 0x4a808", "ColorSelectPopup::init @ 0x73d730", "ColorSelectPopup::init @ 0x73f3d4", "<???> @ 0x122a610"], "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"}