{"type": "func", "start": 4943584, "end": 4943778, "name": "ConfigureHSVWidget::sliderChanged", "pseudocode": "// \n// ConfigureHSVWidget::sliderChanged from 0x4b6ee0 to 0x4b6fa2 (194 bytes)\n// \n// 0 xrefs:\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  float Value; // s16\n  int v5; // r0\n  const char *v6; // r1\n  cocos2d::CCString *v7; // r0\n  float v8; // r0\n  float v9; // s15\n  cocos2d::CCString *v10; // r0\n  float v11; // r0\n  float v12; // s15\n  HSVWidgetDelegate *m_delegate; // r0\n\n  Value = SliderThumb::getValue((SliderThumb *)a2);\n  v5 = a2->getTag(a2);\n  switch ( v5 )\n  {\n    case 2:\n      v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%0.2f\", v6, Value);\n      v8 = cocos2d::CCString::floatValue(v7);\n      v9 = v8 + v8;\n      if ( a1->m_hsv.absoluteSaturation )\n        v9 = v9 - 1.0;\n      a1->m_hsv.s = v9;\n      break;\n    case 3:\n      v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%0.2f\", v6, Value);\n      v11 = cocos2d::CCString::floatValue(v10);\n      v12 = v11 + v11;\n      if ( a1->m_hsv.absoluteBrightness )\n        v12 = v12 - 1.0;\n      a1->m_hsv.v = v12;\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 0x4b6ee0 to 0x4b6fa2 (194 bytes)\n; \n; 0 xrefs:\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\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x4b6ee0\nMOV             R4, R0                                                 ; +0x2, 0x4b6ee2\nVPUSH           {D8}                                                   ; +0x4, 0x4b6ee4\nMOV             R0, R1; this                                           ; +0x8, 0x4b6ee8\nMOV             R5, R1                                                 ; +0xa, 0x4b6eea\nBL              _ZN11SliderThumb8getValueEv; SliderThumb::getValue(void) ; +0xc, 0x4b6eec\nLDR             R3, [R5]                                               ; +0x10, 0x4b6ef0\nLDR             R3, [R3,#0x20]                                         ; +0x12, 0x4b6ef2\nVMOV            S16, R0                                                ; +0x14, 0x4b6ef4\nMOV             R0, R5                                                 ; +0x18, 0x4b6ef8\nBLX             R3                                                     ; +0x1a, 0x4b6efa\nCMP             R0, #2                                                 ; +0x1c, 0x4b6efc\nBEQ             loc_4B6F22                                             ; +0x1e, 0x4b6efe\nCMP             R0, #3                                                 ; +0x20, 0x4b6f00\nBEQ             loc_4B6F52                                             ; +0x22, 0x4b6f02\nCMP             R0, #1                                                 ; +0x24, 0x4b6f04\nBNE             loc_4B6F80                                             ; +0x26, 0x4b6f06\nVLDR            S15, =180.0                                            ; +0x28, 0x4b6f08\nVLDR            S14, =360.0                                            ; +0x2c, 0x4b6f0c\nVNMLS.F32       S15, S16, S14                                          ; +0x30, 0x4b6f10\nVCVT.S32.F32    S15, S15                                               ; +0x34, 0x4b6f14\nVCVT.F32.S32    S15, S15                                               ; +0x38, 0x4b6f18\nVSTR            S15, [R4,#0x124]                                       ; +0x3c, 0x4b6f1c\nB               loc_4B6F80                                             ; +0x40, 0x4b6f20\nVCVT.F64.F32    D7, S16                                                ; +0x42, 0x4b6f22\nLDR             R0, =(a02f - 0x4B6F2C); \"%0.2f\"                        ; +0x46, 0x4b6f26\nADD             R0, PC; \"%0.2f\"                                        ; +0x48, 0x4b6f28\nVMOV            R2, R3, D7                                             ; +0x4a, 0x4b6f2a\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x4e, 0x4b6f2e\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x52, 0x4b6f32\nLDRB.W          R3, [R4,#0x130]                                        ; +0x56, 0x4b6f36\nVMOV            S15, R0                                                ; +0x5a, 0x4b6f3a\nVADD.F32        S15, S15, S15                                          ; +0x5e, 0x4b6f3e\nCBZ             R3, loc_4B6F4C                                         ; +0x62, 0x4b6f42\nVMOV.F32        S14, #1.0                                              ; +0x64, 0x4b6f44\nVSUB.F32        S15, S15, S14                                          ; +0x68, 0x4b6f48\nVSTR            S15, [R4,#0x128]                                       ; +0x6c, 0x4b6f4c\nB               loc_4B6F80                                             ; +0x70, 0x4b6f50\nVCVT.F64.F32    D7, S16                                                ; +0x72, 0x4b6f52\nLDR             R0, =(a02f - 0x4B6F5C); \"%0.2f\"                        ; +0x76, 0x4b6f56\nADD             R0, PC; \"%0.2f\"                                        ; +0x78, 0x4b6f58\nVMOV            R2, R3, D7                                             ; +0x7a, 0x4b6f5a\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x7e, 0x4b6f5e\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x82, 0x4b6f62\nLDRB.W          R3, [R4,#0x131]                                        ; +0x86, 0x4b6f66\nVMOV            S15, R0                                                ; +0x8a, 0x4b6f6a\nVADD.F32        S15, S15, S15                                          ; +0x8e, 0x4b6f6e\nCBZ             R3, loc_4B6F7C                                         ; +0x92, 0x4b6f72\nVMOV.F32        S14, #1.0                                              ; +0x94, 0x4b6f74\nVSUB.F32        S15, S15, S14                                          ; +0x98, 0x4b6f78\nVSTR            S15, [R4,#0x12C]                                       ; +0x9c, 0x4b6f7c\nMOV             R0, R4; this                                           ; +0xa0, 0x4b6f80\nBL              _ZN18ConfigureHSVWidget12updateLabelsEv; ConfigureHSVWidget::updateLabels(void) ; +0xa2, 0x4b6f82\nLDR.W           R0, [R4,#0x138]                                        ; +0xa6, 0x4b6f86\nCBZ             R0, loc_4B6F9C                                         ; +0xaa, 0x4b6f8a\nVPOP            {D8}                                                   ; +0xac, 0x4b6f8c\nMOV             R1, R4                                                 ; +0xb0, 0x4b6f90\nLDR             R3, [R0]                                               ; +0xb2, 0x4b6f92\nPOP.W           {R4-R6,LR}                                             ; +0xb4, 0x4b6f94\nLDR             R3, [R3,#4]                                            ; +0xb8, 0x4b6f98\nBX              R3                                                     ; +0xba, 0x4b6f9a\nVPOP            {D8}                                                   ; +0xbc, 0x4b6f9c\nPOP             {R4-R6,PC}                                             ; +0xc0, 0x4b6fa0", "xrefs": [], "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"}