{"type": "func", "start": 4299286428, "end": 4299286684, "name": "ColorSelectPopup::sliderChanged", "pseudocode": "// \n// ColorSelectPopup::sliderChanged from 0x10041e79c to 0x10041e89c (256 bytes)\n// \n// 2 xrefs:\n// > ColorSelectPopup::init @ 0x10041c99c\n// > ColorSelectPopup::init @ 0x10041cb30\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 __fastcall ColorSelectPopup::sliderChanged(ColorSelectPopup *a1, cocos2d::CCObject *a2)\n{\n  float Value; // s8\n  cocos2d::CCString *v5; // x0\n  float v6; // s0\n  float v7; // s1\n\n  Value = SliderThumb::getValue((SliderThumb *)a2);\n  if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1 )\n  {\n    a1->m_fadeTime = Value * 10.0;\n    ColorSelectPopup::updateDuration(a1);\n    ColorSelectPopup::updateDurLabel(a1);\n  }\n  else if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 2 )\n  {\n    v5 = (cocos2d::CCString *)sub_100268F4C(\"%.02f\", Value);\n    v6 = cocos2d::CCString::floatValue(v5);\n    a1->m_opacity = v6;\n    v7 = 0.0;\n    if ( v6 <= 0.02 || (v7 = 1.0, v6 >= 0.98) )\n      a1->m_opacity = v7;\n    ColorSelectPopup::updateOpacity(a1);\n    ColorSelectPopup::updateOpacityLabel(a1);\n  }\n}", "assembly": "; \n; ColorSelectPopup::sliderChanged from 0x10041e79c to 0x10041e89c (256 bytes)\n; \n; 2 xrefs:\n; > ColorSelectPopup::init @ 0x10041c99c\n; > ColorSelectPopup::init @ 0x10041cb30\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x10041e79c\nSTP             D9, D8, [SP,#0x30+var_20]                              ; +0x4, 0x10041e7a0\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10041e7a4\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10041e7a8\nADD             X29, SP, #0x30                                         ; +0x10, 0x10041e7ac\nMOV             X20, X1                                                ; +0x14, 0x10041e7b0\nMOV             X19, X0                                                ; +0x18, 0x10041e7b4\nMOV             X0, X1                                                 ; +0x1c, 0x10041e7b8\nBL              SliderThumb__getValue                                  ; +0x20, 0x10041e7bc\nFMOV            S8, S0                                                 ; +0x24, 0x10041e7c0\nLDR             X8, [X20]                                              ; +0x28, 0x10041e7c4\nLDR             X8, [X8,#0x40]                                         ; +0x2c, 0x10041e7c8\nMOV             X0, X20                                                ; +0x30, 0x10041e7cc\nBLR             X8                                                     ; +0x34, 0x10041e7d0\nCMP             W0, #1                                                 ; +0x38, 0x10041e7d4\nB.NE            loc_10041E808                                          ; +0x3c, 0x10041e7d8\nFMOV            S0, #10.0                                              ; +0x40, 0x10041e7dc\nFMUL            S0, S8, S0                                             ; +0x44, 0x10041e7e0\nSTR             S0, [X19,#0x420]                                       ; +0x48, 0x10041e7e4\nMOV             X0, X19                                                ; +0x4c, 0x10041e7e8\nBL              ColorSelectPopup__updateDuration                       ; +0x50, 0x10041e7ec\nMOV             X0, X19                                                ; +0x54, 0x10041e7f0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x58, 0x10041e7f4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x5c, 0x10041e7f8\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0x60, 0x10041e7fc\nADD             SP, SP, #0x40 ; '@'                                    ; +0x64, 0x10041e800\nB               ColorSelectPopup__updateDurLabel                       ; +0x68, 0x10041e804\nLDR             X8, [X20]                                              ; +0x6c, 0x10041e808\nLDR             X8, [X8,#0x40]                                         ; +0x70, 0x10041e80c\nMOV             X0, X20                                                ; +0x74, 0x10041e810\nBLR             X8                                                     ; +0x78, 0x10041e814\nCMP             W0, #2                                                 ; +0x7c, 0x10041e818\nB.NE            loc_10041E888                                          ; +0x80, 0x10041e81c\nFCVT            D0, S8                                                 ; +0x84, 0x10041e820\nSTR             D0, [SP,#0x30+var_30]                                  ; +0x88, 0x10041e824\nADRL            X0, a02f_0; \"%.02f\"                                    ; +0x8c, 0x10041e828\nBL              sub_100268F4C                                          ; +0x94, 0x10041e830\nBL              cocos2d__CCString__floatValue                          ; +0x98, 0x10041e834\nSTR             S0, [X19,#0x42C]                                       ; +0x9c, 0x10041e838\nFMOV            S1, WZR                                                ; +0xa0, 0x10041e83c\nADRP            X8, #dword_100635548@PAGE                              ; +0xa4, 0x10041e840\nLDR             S2, [X8,#dword_100635548@PAGEOFF]                      ; +0xa8, 0x10041e844\nFCMP            S0, S2                                                 ; +0xac, 0x10041e848\nB.LS            loc_10041E864                                          ; +0xb0, 0x10041e84c\nFMOV            S1, #1.0                                               ; +0xb4, 0x10041e850\nADRP            X8, #dword_10063554C@PAGE                              ; +0xb8, 0x10041e854\nLDR             S2, [X8,#dword_10063554C@PAGEOFF]                      ; +0xbc, 0x10041e858\nFCMP            S0, S2                                                 ; +0xc0, 0x10041e85c\nB.LT            loc_10041E868                                          ; +0xc4, 0x10041e860\nSTR             S1, [X19,#0x42C]                                       ; +0xc8, 0x10041e864\nMOV             X0, X19                                                ; +0xcc, 0x10041e868\nBL              ColorSelectPopup__updateOpacity                        ; +0xd0, 0x10041e86c\nMOV             X0, X19                                                ; +0xd4, 0x10041e870\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xd8, 0x10041e874\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xdc, 0x10041e878\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0xe0, 0x10041e87c\nADD             SP, SP, #0x40 ; '@'                                    ; +0xe4, 0x10041e880\nB               ColorSelectPopup__updateOpacityLabel                   ; +0xe8, 0x10041e884\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xec, 0x10041e888\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xf0, 0x10041e88c\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0xf4, 0x10041e890\nADD             SP, SP, #0x40 ; '@'                                    ; +0xf8, 0x10041e894\nRET                                                                    ; +0xfc, 0x10041e898", "xrefs": ["ColorSelectPopup::init @ 0x10041c99c", "ColorSelectPopup::init @ 0x10041cb30"], "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"}