{"type": "func", "start": 9311664, "end": 9311936, "name": "ConfigureHSVWidget::sliderChanged", "pseudocode": "// \n// ConfigureHSVWidget::sliderChanged from 0x8e15b0 to 0x8e16c0 (272 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0xb4540\n// > ConfigureHSVWidget::init @ 0x8e1958\n// > ConfigureHSVWidget::init @ 0x8e1a74\n// > ConfigureHSVWidget::init @ 0x8e1b94\n// > <???> @ 0x122e418\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 ConfigureHSVWidget::sliderChanged(ConfigureHSVWidget *a1, cocos2d::CCObject *a2)\n{\n  int v3; // w0\n  const char *v4; // x1\n  HSVWidgetDelegate *m_delegate; // x0\n  cocos2d::CCString *v6; // x0\n  float v7; // s0\n  float v8; // s0\n  cocos2d::CCString *v9; // x0\n  float v10; // s0\n  float v11; // s0\n  float Value; // [xsp+30h] [xbp+30h]\n\n  Value = SliderThumb::getValue((SliderThumb *)a2);\n  v3 = a2->getTag(a2);\n  switch ( v3 )\n  {\n    case 2:\n      v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%0.2f\", v4, Value);\n      v10 = cocos2d::CCString::floatValue(v9);\n      if ( a1->m_hsv.absoluteSaturation )\n        v11 = (float)(v10 * 2.0) + -1.0;\n      else\n        v11 = v10 + v10;\n      a1->m_hsv.s = v11;\n      break;\n    case 3:\n      v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%0.2f\", v4, Value);\n      v7 = cocos2d::CCString::floatValue(v6);\n      if ( a1->m_hsv.absoluteBrightness )\n        v8 = (float)(v7 * 2.0) + -1.0;\n      else\n        v8 = v7 + v7;\n      a1->m_hsv.v = v8;\n      break;\n    case 1:\n      a1->m_hsv.h = (float)(int)(float)((float)(Value * 360.0) + -180.0);\n      break;\n  }\n  ConfigureHSVWidget::updateLabels(a1);\n  m_delegate = a1->m_delegate;\n  if ( m_delegate )\n    m_delegate->hsvChanged(m_delegate, a1);\n}", "assembly": "; \n; ConfigureHSVWidget::sliderChanged from 0x8e15b0 to 0x8e16c0 (272 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0xb4540\n; > ConfigureHSVWidget::init @ 0x8e1958\n; > ConfigureHSVWidget::init @ 0x8e1a74\n; > ConfigureHSVWidget::init @ 0x8e1b94\n; > <???> @ 0x122e418\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_40]!                                ; +0x0, 0x8e15b0\nMOV             X29, SP                                                ; +0x4, 0x8e15b4\nSTR             X19, [SP,#0x40+var_30]                                 ; +0x8, 0x8e15b8\nMOV             X19, X0                                                ; +0xc, 0x8e15bc\nMOV             X0, X1; this                                           ; +0x10, 0x8e15c0\nSTR             X1, [X29,#0x40+var_18]                                 ; +0x14, 0x8e15c4\nBL              _ZN11SliderThumb8getValueEv; SliderThumb::getValue(void) ; +0x18, 0x8e15c8\nLDR             X1, [X29,#0x40+var_18]                                 ; +0x1c, 0x8e15cc\nSTR             Q0, [X29,#0x40+var_10]                                 ; +0x20, 0x8e15d0\nMOV             X0, X1                                                 ; +0x24, 0x8e15d4\nLDR             X2, [X1]                                               ; +0x28, 0x8e15d8\nLDR             X1, [X2,#0x40]                                         ; +0x2c, 0x8e15dc\nBLR             X1                                                     ; +0x30, 0x8e15e0\nCMP             W0, #2                                                 ; +0x34, 0x8e15e4\nLDR             Q0, [X29,#0x40+var_10]                                 ; +0x38, 0x8e15e8\nB.EQ            loc_8E1678                                             ; +0x3c, 0x8e15ec\nCMP             W0, #3                                                 ; +0x40, 0x8e15f0\nB.EQ            loc_8E1648                                             ; +0x44, 0x8e15f4\nCMP             W0, #1                                                 ; +0x48, 0x8e15f8\nB.EQ            loc_8E162C                                             ; +0x4c, 0x8e15fc\nMOV             X0, X19; this                                          ; +0x50, 0x8e1600\nBL              _ZN18ConfigureHSVWidget12updateLabelsEv; ConfigureHSVWidget::updateLabels(void) ; +0x54, 0x8e1604\nLDR             X0, [X19,#0x190]                                       ; +0x58, 0x8e1608\nCBZ             X0, loc_8E1620                                         ; +0x5c, 0x8e160c\nLDR             X2, [X0]                                               ; +0x60, 0x8e1610\nMOV             X1, X19                                                ; +0x64, 0x8e1614\nLDR             X2, [X2,#8]                                            ; +0x68, 0x8e1618\nBLR             X2                                                     ; +0x6c, 0x8e161c\nLDR             X19, [SP,#0x40+var_30]                                 ; +0x70, 0x8e1620\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x74, 0x8e1624\nRET                                                                    ; +0x78, 0x8e1628\nLDR             S1, =0xC3340000                                        ; +0x7c, 0x8e162c\nLDR             S2, =0x43B40000                                        ; +0x80, 0x8e1630\nFMADD           S0, S0, S2, S1                                         ; +0x84, 0x8e1634\nFCVTZS          W0, S0                                                 ; +0x88, 0x8e1638\nSCVTF           S0, W0                                                 ; +0x8c, 0x8e163c\nSTR             S0, [X19,#0x178]                                       ; +0x90, 0x8e1640\nB               loc_8E1600                                             ; +0x94, 0x8e1644\nFCVT            D0, S0                                                 ; +0x98, 0x8e1648\nADRL            X0, a02f; \"%0.2f\"                                      ; +0x9c, 0x8e164c\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xa4, 0x8e1654\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0xa8, 0x8e1658\nLDRB            W0, [X19,#0x185]                                       ; +0xac, 0x8e165c\nCBZ             W0, loc_8E16B4                                         ; +0xb0, 0x8e1660\nFMOV            S1, #-1.0                                              ; +0xb4, 0x8e1664\nFMOV            S2, #2.0                                               ; +0xb8, 0x8e1668\nFMADD           S0, S0, S2, S1                                         ; +0xbc, 0x8e166c\nSTR             S0, [X19,#0x180]                                       ; +0xc0, 0x8e1670\nB               loc_8E1600                                             ; +0xc4, 0x8e1674\nFCVT            D0, S0                                                 ; +0xc8, 0x8e1678\nADRL            X0, a02f; \"%0.2f\"                                      ; +0xcc, 0x8e167c\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xd4, 0x8e1684\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0xd8, 0x8e1688\nLDRB            W0, [X19,#0x184]                                       ; +0xdc, 0x8e168c\nCBZ             W0, loc_8E16A8                                         ; +0xe0, 0x8e1690\nFMOV            S1, #-1.0                                              ; +0xe4, 0x8e1694\nFMOV            S2, #2.0                                               ; +0xe8, 0x8e1698\nFMADD           S0, S0, S2, S1                                         ; +0xec, 0x8e169c\nSTR             S0, [X19,#0x17C]                                       ; +0xf0, 0x8e16a0\nB               loc_8E1600                                             ; +0xf4, 0x8e16a4\nFADD            S0, S0, S0                                             ; +0xf8, 0x8e16a8\nSTR             S0, [X19,#0x17C]                                       ; +0xfc, 0x8e16ac\nB               loc_8E1600                                             ; +0x100, 0x8e16b0\nFADD            S0, S0, S0                                             ; +0x104, 0x8e16b4\nSTR             S0, [X19,#0x180]                                       ; +0x108, 0x8e16b8\nB               loc_8E1600                                             ; +0x10c, 0x8e16bc", "xrefs": ["<???> @ 0xb4540", "ConfigureHSVWidget::init @ 0x8e1958", "ConfigureHSVWidget::init @ 0x8e1a74", "ConfigureHSVWidget::init @ 0x8e1b94", "<???> @ 0x122e418"], "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"}