{"type": "func", "start": 5369330096, "end": 5369330370, "name": "ConfigureHSVWidget::sliderChanged", "pseudocode": "// \n// ConfigureHSVWidget::sliderChanged from 0x1400979b0 to 0x140097ac2 (274 bytes)\n// \n// 4 xrefs:\n// > ConfigureHSVWidget::init @ 0x140096ccf\n// > ConfigureHSVWidget::init @ 0x140096e67\n// > ConfigureHSVWidget::init @ 0x140096fee\n// > <???> @ 0x1406c72fc\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; // xmm0_4\n  int v5; // eax\n  int v6; // eax\n  cocos2d::CCString *v7; // rax\n  float v8; // xmm0_4\n  float v9; // xmm0_4\n  cocos2d::CCString *v10; // rax\n  float v11; // xmm0_4\n  float v12; // xmm0_4\n  HSVWidgetDelegate *m_delegate; // rcx\n\n  Value = SliderThumb::getValue((SliderThumb *)a2);\n  v5 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) - 1;\n  if ( v5 )\n  {\n    v6 = v5 - 1;\n    if ( v6 )\n    {\n      if ( v6 == 1 )\n      {\n        v7 = cocos2d::CCString::createWithFormat(\"%0.2f\", Value);\n        v8 = cocos2d::CCString::floatValue(v7);\n        v9 = v8 + v8;\n        if ( a1->m_hsv.absoluteBrightness )\n          v9 = v9 - 1.0;\n        a1->m_hsv.v = v9;\n      }\n    }\n    else\n    {\n      v10 = cocos2d::CCString::createWithFormat(\"%0.2f\", Value);\n      v11 = cocos2d::CCString::floatValue(v10);\n      v12 = v11 + v11;\n      if ( a1->m_hsv.absoluteSaturation )\n        v12 = v12 - 1.0;\n      a1->m_hsv.s = v12;\n    }\n  }\n  else\n  {\n    a1->m_hsv.h = (float)(int)(float)((float)(Value * 360.0) - 180.0);\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 0x1400979b0 to 0x140097ac2 (274 bytes)\n; \n; 4 xrefs:\n; > ConfigureHSVWidget::init @ 0x140096ccf\n; > ConfigureHSVWidget::init @ 0x140096e67\n; > ConfigureHSVWidget::init @ 0x140096fee\n; > <???> @ 0x1406c72fc\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400979b0\npush    rdi                                                            ; +0x5, 0x1400979b5\nsub     rsp, 30h                                                       ; +0x6, 0x1400979b6\nmov     rdi, rcx                                                       ; +0xa, 0x1400979ba\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xd, 0x1400979bd\nmov     rcx, rdx                                                       ; +0x12, 0x1400979c2\nmov     rbx, rdx                                                       ; +0x15, 0x1400979c5\ncall    SliderThumb__getValue                                          ; +0x18, 0x1400979c8\nmov     rax, [rbx]                                                     ; +0x1d, 0x1400979cd\nmov     rcx, rbx                                                       ; +0x20, 0x1400979d0\nmovaps  xmm6, xmm0                                                     ; +0x23, 0x1400979d3\ncall    qword ptr [rax+38h]                                            ; +0x26, 0x1400979d6\nsub     eax, 1                                                         ; +0x29, 0x1400979d9\njz      loc_140097A72                                                  ; +0x2c, 0x1400979dc\nsub     eax, 1                                                         ; +0x32, 0x1400979e2\njz      short loc_140097A31                                            ; +0x35, 0x1400979e5\ncmp     eax, 1                                                         ; +0x37, 0x1400979e7\njnz     loc_140097A95                                                  ; +0x3a, 0x1400979ea\nxorps   xmm1, xmm1                                                     ; +0x40, 0x1400979f0\nlea     rcx, a02f_0; \"%0.2f\"                                           ; +0x43, 0x1400979f3\ncvtss2sd xmm1, xmm6                                                    ; +0x4a, 0x1400979fa\nmovq    rdx, xmm1                                                      ; +0x4e, 0x1400979fe\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x53, 0x140097a03\nmov     rcx, rax                                                       ; +0x59, 0x140097a09\ncall    cs:?floatValue@CCString@cocos2d@@QEBAMXZ; cocos2d::CCString::floatValue(void) ; +0x5c, 0x140097a0c\ncmp     byte ptr [rdi+185h], 0                                         ; +0x62, 0x140097a12\naddss   xmm0, xmm0                                                     ; +0x69, 0x140097a19\njz      short loc_140097A27                                            ; +0x6d, 0x140097a1d\nsubss   xmm0, cs:flt_140622C24                                         ; +0x6f, 0x140097a1f\nmovss   dword ptr [rdi+180h], xmm0                                     ; +0x77, 0x140097a27\njmp     short loc_140097A95                                            ; +0x7f, 0x140097a2f\nxorps   xmm1, xmm1                                                     ; +0x81, 0x140097a31\nlea     rcx, a02f_0; \"%0.2f\"                                           ; +0x84, 0x140097a34\ncvtss2sd xmm1, xmm6                                                    ; +0x8b, 0x140097a3b\nmovq    rdx, xmm1                                                      ; +0x8f, 0x140097a3f\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x94, 0x140097a44\nmov     rcx, rax                                                       ; +0x9a, 0x140097a4a\ncall    cs:?floatValue@CCString@cocos2d@@QEBAMXZ; cocos2d::CCString::floatValue(void) ; +0x9d, 0x140097a4d\ncmp     byte ptr [rdi+184h], 0                                         ; +0xa3, 0x140097a53\naddss   xmm0, xmm0                                                     ; +0xaa, 0x140097a5a\njz      short loc_140097A68                                            ; +0xae, 0x140097a5e\nsubss   xmm0, cs:flt_140622C24                                         ; +0xb0, 0x140097a60\nmovss   dword ptr [rdi+17Ch], xmm0                                     ; +0xb8, 0x140097a68\njmp     short loc_140097A95                                            ; +0xc0, 0x140097a70\nmulss   xmm6, cs:flt_14062346C                                         ; +0xc2, 0x140097a72\nsubss   xmm6, cs:dword_1406233A4                                       ; +0xca, 0x140097a7a\ncvttss2si eax, xmm6                                                    ; +0xd2, 0x140097a82\nmovd    xmm0, eax                                                      ; +0xd6, 0x140097a86\ncvtdq2ps xmm0, xmm0                                                    ; +0xda, 0x140097a8a\nmovss   dword ptr [rdi+178h], xmm0                                     ; +0xdd, 0x140097a8d\nmov     rcx, rdi                                                       ; +0xe5, 0x140097a95\ncall    ConfigureHSVWidget__updateLabels                               ; +0xe8, 0x140097a98\nmov     rcx, [rdi+190h]                                                ; +0xed, 0x140097a9d\ntest    rcx, rcx                                                       ; +0xf4, 0x140097aa4\njz      short loc_140097AB2                                            ; +0xf7, 0x140097aa7\nmov     rax, [rcx]                                                     ; +0xf9, 0x140097aa9\nmov     rdx, rdi                                                       ; +0xfc, 0x140097aac\ncall    qword ptr [rax+8]                                              ; +0xff, 0x140097aaf\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x102, 0x140097ab2\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x107, 0x140097ab7\nadd     rsp, 30h                                                       ; +0x10c, 0x140097abc\npop     rdi                                                            ; +0x110, 0x140097ac0\nretn                                                                   ; +0x111, 0x140097ac1", "xrefs": ["ConfigureHSVWidget::init @ 0x140096ccf", "ConfigureHSVWidget::init @ 0x140096e67", "ConfigureHSVWidget::init @ 0x140096fee", "<???> @ 0x1406c72fc"], "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"}