{"type": "func", "start": 8793236, "end": 8793468, "name": "ColorSelectPopup::sliderChanged", "pseudocode": "// \n// ColorSelectPopup::sliderChanged from 0x862c94 to 0x862d7c (232 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x68fc8\n// > ColorSelectPopup::init @ 0x86431c\n// > ColorSelectPopup::init @ 0x865f9c\n// > <???> @ 0x1542920\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 12:55:37 +0000\n// \n\n__int64 __fastcall ColorSelectPopup::sliderChanged(ColorSelectPopup *this, cocos2d::CCObject *a2)\n{\n  float Value; // s8\n  __int64 result; // x0\n  const char *v6; // x1\n  cocos2d::CCString *v7; // x0\n  float v8; // s0\n\n  Value = SliderThumb::getValue(a2);\n  if ( (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) == 1 )\n  {\n    *((float *)this + 282) = Value * 10.0;\n    ColorSelectPopup::updateDuration(this);\n    return ColorSelectPopup::updateDurLabel(this);\n  }\n  else\n  {\n    result = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);\n    if ( (_DWORD)result == 2 )\n    {\n      v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%.02f\", v6, Value);\n      cocos2d::CCString::floatValue(v7);\n      if ( v8 > 0.02 )\n      {\n        if ( v8 >= 0.98 )\n          v8 = 1.0;\n        *((float *)this + 285) = v8;\n      }\n      else\n      {\n        *((_DWORD *)this + 285) = 0;\n      }\n      ColorSelectPopup::updateOpacity(this);\n      return ColorSelectPopup::updateOpacityLabel((__int64)this);\n    }\n  }\n  return result;\n}", "assembly": "; \n; ColorSelectPopup::sliderChanged from 0x862c94 to 0x862d7c (232 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x68fc8\n; > ColorSelectPopup::init @ 0x86431c\n; > ColorSelectPopup::init @ 0x865f9c\n; > <???> @ 0x1542920\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 12:55:37 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x862c94\nMOV             X29, SP                                                ; +0x4, 0x862c98\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x862c9c\nMOV             X19, X1                                                ; +0xc, 0x862ca0\nMOV             X20, X0                                                ; +0x10, 0x862ca4\nMOV             X0, X1; this                                           ; +0x14, 0x862ca8\nSTR             D8, [SP,#0x30+var_10]                                  ; +0x18, 0x862cac\nBL              _ZN11SliderThumb8getValueEv; SliderThumb::getValue(void) ; +0x1c, 0x862cb0\nLDR             X1, [X19]                                              ; +0x20, 0x862cb4\nMOV             X0, X19                                                ; +0x24, 0x862cb8\nFMOV            S8, S0                                                 ; +0x28, 0x862cbc\nLDR             X1, [X1,#0x40]                                         ; +0x2c, 0x862cc0\nBLR             X1                                                     ; +0x30, 0x862cc4\nCMP             W0, #1                                                 ; +0x34, 0x862cc8\nB.EQ            loc_862CF8                                             ; +0x38, 0x862ccc\nLDR             X1, [X19]                                              ; +0x3c, 0x862cd0\nMOV             X0, X19                                                ; +0x40, 0x862cd4\nLDR             X1, [X1,#0x40]                                         ; +0x44, 0x862cd8\nBLR             X1                                                     ; +0x48, 0x862cdc\nCMP             W0, #2                                                 ; +0x4c, 0x862ce0\nB.EQ            loc_862D20                                             ; +0x50, 0x862ce4\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x54, 0x862ce8\nLDR             D8, [SP,#0x30+var_10]                                  ; +0x58, 0x862cec\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x5c, 0x862cf0\nRET                                                                    ; +0x60, 0x862cf4\nFMOV            S1, #10.0                                              ; +0x64, 0x862cf8\nMOV             X0, X20; this                                          ; +0x68, 0x862cfc\nFMUL            S8, S8, S1                                             ; +0x6c, 0x862d00\nSTR             S8, [X20,#0x468]                                       ; +0x70, 0x862d04\nBL              _ZN16ColorSelectPopup14updateDurationEv; ColorSelectPopup::updateDuration(void) ; +0x74, 0x862d08\nLDR             D8, [SP,#0x30+var_10]                                  ; +0x78, 0x862d0c\nMOV             X0, X20; this                                          ; +0x7c, 0x862d10\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x80, 0x862d14\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x84, 0x862d18\nB               _ZN16ColorSelectPopup14updateDurLabelEv; ColorSelectPopup::updateDurLabel(void) ; +0x88, 0x862d1c\nFCVT            D0, S8                                                 ; +0x8c, 0x862d20\nADRL            X0, a02f_0; \"%.02f\"                                    ; +0x90, 0x862d24\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x98, 0x862d2c\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x9c, 0x862d30\nLDR             S1, =0x3CA3D70A                                        ; +0xa0, 0x862d34\nFCMPE           S0, S1                                                 ; +0xa4, 0x862d38\nB.HI            loc_862D64                                             ; +0xa8, 0x862d3c\nFMOV            S0, WZR                                                ; +0xac, 0x862d40\nSTR             S0, [X20,#0x474]                                       ; +0xb0, 0x862d44\nMOV             X0, X20; this                                          ; +0xb4, 0x862d48\nBL              _ZN16ColorSelectPopup13updateOpacityEv; ColorSelectPopup::updateOpacity(void) ; +0xb8, 0x862d4c\nLDR             D8, [SP,#0x30+var_10]                                  ; +0xbc, 0x862d50\nMOV             X0, X20; this                                          ; +0xc0, 0x862d54\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xc4, 0x862d58\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xc8, 0x862d5c\nB               _ZN16ColorSelectPopup18updateOpacityLabelEv; ColorSelectPopup::updateOpacityLabel(void) ; +0xcc, 0x862d60\nLDR             S1, =0x3F7AE148                                        ; +0xd0, 0x862d64\nFCMPE           S0, S1                                                 ; +0xd4, 0x862d68\nB.LT            loc_862D74                                             ; +0xd8, 0x862d6c\nFMOV            S0, #1.0                                               ; +0xdc, 0x862d70\nSTR             S0, [X20,#0x474]                                       ; +0xe0, 0x862d74\nB               loc_862D48                                             ; +0xe4, 0x862d78", "xrefs": ["<???> @ 0x68fc8", "ColorSelectPopup::init @ 0x86431c", "ColorSelectPopup::init @ 0x865f9c", "<???> @ 0x1542920"], "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"}