{"type": "func", "start": 5369957312, "end": 5369957594, "name": "ConfigureHSVWidget::sliderChanged", "pseudocode": "// \n// ConfigureHSVWidget::sliderChanged from 0x140130bc0 to 0x140130cda (282 bytes)\n// \n// 4 xrefs:\n// > ConfigureHSVWidget::init @ 0x14012fda5\n// > ConfigureHSVWidget::init @ 0x14012ff3c\n// > ConfigureHSVWidget::init @ 0x1401300c2\n// > <???> @ 0x140916e80\n// \n// This function is hookable on this platform (idp: pc, 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 11:27:03 +0000\n// \n\n__int64 __fastcall ConfigureHSVWidget::sliderChanged(__int64 a1, float *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  __int64 result; // rax\n  __int64 v14; // rcx\n\n  Value = SliderThumb::getValue(a2);\n  v5 = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)a2 + 56LL))(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 ( *(_BYTE *)(a1 + 389) )\n          v9 = v9 - 1.0;\n        *(float *)(a1 + 384) = 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 ( *(_BYTE *)(a1 + 388) )\n        v12 = v12 - 1.0;\n      *(float *)(a1 + 380) = v12;\n    }\n  }\n  else\n  {\n    *(float *)(a1 + 376) = (float)(int)(float)((float)(Value * 360.0) - 180.0);\n  }\n  ConfigureHSVWidget::updateLabels(a1);\n  result = ConfigureHSVWidget::updateColorPreview(a1);\n  v14 = *(_QWORD *)(a1 + 400);\n  if ( v14 )\n    return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 8LL))(v14, a1);\n  return result;\n}", "assembly": "; \n; ConfigureHSVWidget::sliderChanged from 0x140130bc0 to 0x140130cda (282 bytes)\n; \n; 4 xrefs:\n; > ConfigureHSVWidget::init @ 0x14012fda5\n; > ConfigureHSVWidget::init @ 0x14012ff3c\n; > ConfigureHSVWidget::init @ 0x1401300c2\n; > <???> @ 0x140916e80\n; \n; This function is hookable on this platform (idp: pc, 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 11:27:03 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140130bc0\npush    rdi                                                            ; +0x5, 0x140130bc5\nsub     rsp, 30h                                                       ; +0x6, 0x140130bc6\nmov     rdi, rcx                                                       ; +0xa, 0x140130bca\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xd, 0x140130bcd\nmov     rcx, rdx                                                       ; +0x12, 0x140130bd2\nmov     rbx, rdx                                                       ; +0x15, 0x140130bd5\ncall    SliderThumb__getValue                                          ; +0x18, 0x140130bd8\nmov     rax, [rbx]                                                     ; +0x1d, 0x140130bdd\nmov     rcx, rbx                                                       ; +0x20, 0x140130be0\nmovaps  xmm6, xmm0                                                     ; +0x23, 0x140130be3\ncall    qword ptr [rax+38h]                                            ; +0x26, 0x140130be6\nsub     eax, 1                                                         ; +0x29, 0x140130be9\njz      loc_140130C82                                                  ; +0x2c, 0x140130bec\nsub     eax, 1                                                         ; +0x32, 0x140130bf2\njz      short loc_140130C41                                            ; +0x35, 0x140130bf5\ncmp     eax, 1                                                         ; +0x37, 0x140130bf7\njnz     loc_140130CA5                                                  ; +0x3a, 0x140130bfa\nxorps   xmm1, xmm1                                                     ; +0x40, 0x140130c00\nlea     rcx, a02f_0; \"%0.2f\"                                           ; +0x43, 0x140130c03\ncvtss2sd xmm1, xmm6                                                    ; +0x4a, 0x140130c0a\nmovq    rdx, xmm1                                                      ; +0x4e, 0x140130c0e\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x53, 0x140130c13\nmov     rcx, rax                                                       ; +0x59, 0x140130c19\ncall    cs:?floatValue@CCString@cocos2d@@QEBAMXZ; cocos2d::CCString::floatValue(void) ; +0x5c, 0x140130c1c\ncmp     byte ptr [rdi+185h], 0                                         ; +0x62, 0x140130c22\naddss   xmm0, xmm0                                                     ; +0x69, 0x140130c29\njz      short loc_140130C37                                            ; +0x6d, 0x140130c2d\nsubss   xmm0, cs:flt_140835080                                         ; +0x6f, 0x140130c2f\nmovss   dword ptr [rdi+180h], xmm0                                     ; +0x77, 0x140130c37\njmp     short loc_140130CA5                                            ; +0x7f, 0x140130c3f\nxorps   xmm1, xmm1                                                     ; +0x81, 0x140130c41\nlea     rcx, a02f_0; \"%0.2f\"                                           ; +0x84, 0x140130c44\ncvtss2sd xmm1, xmm6                                                    ; +0x8b, 0x140130c4b\nmovq    rdx, xmm1                                                      ; +0x8f, 0x140130c4f\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x94, 0x140130c54\nmov     rcx, rax                                                       ; +0x9a, 0x140130c5a\ncall    cs:?floatValue@CCString@cocos2d@@QEBAMXZ; cocos2d::CCString::floatValue(void) ; +0x9d, 0x140130c5d\ncmp     byte ptr [rdi+184h], 0                                         ; +0xa3, 0x140130c63\naddss   xmm0, xmm0                                                     ; +0xaa, 0x140130c6a\njz      short loc_140130C78                                            ; +0xae, 0x140130c6e\nsubss   xmm0, cs:flt_140835080                                         ; +0xb0, 0x140130c70\nmovss   dword ptr [rdi+17Ch], xmm0                                     ; +0xb8, 0x140130c78\njmp     short loc_140130CA5                                            ; +0xc0, 0x140130c80\nmulss   xmm6, cs:Y                                                     ; +0xc2, 0x140130c82\nsubss   xmm6, cs:dword_1408358B8                                       ; +0xca, 0x140130c8a\ncvttss2si eax, xmm6                                                    ; +0xd2, 0x140130c92\nmovd    xmm0, eax                                                      ; +0xd6, 0x140130c96\ncvtdq2ps xmm0, xmm0                                                    ; +0xda, 0x140130c9a\nmovss   dword ptr [rdi+178h], xmm0                                     ; +0xdd, 0x140130c9d\nmov     rcx, rdi                                                       ; +0xe5, 0x140130ca5\ncall    ConfigureHSVWidget__updateLabels                               ; +0xe8, 0x140130ca8\nmov     rcx, rdi                                                       ; +0xed, 0x140130cad\ncall    ConfigureHSVWidget__updateColorPreview                         ; +0xf0, 0x140130cb0\nmov     rcx, [rdi+190h]                                                ; +0xf5, 0x140130cb5\ntest    rcx, rcx                                                       ; +0xfc, 0x140130cbc\njz      short loc_140130CCA                                            ; +0xff, 0x140130cbf\nmov     rax, [rcx]                                                     ; +0x101, 0x140130cc1\nmov     rdx, rdi                                                       ; +0x104, 0x140130cc4\ncall    qword ptr [rax+8]                                              ; +0x107, 0x140130cc7\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x10a, 0x140130cca\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x10f, 0x140130ccf\nadd     rsp, 30h                                                       ; +0x114, 0x140130cd4\npop     rdi                                                            ; +0x118, 0x140130cd8\nretn                                                                   ; +0x119, 0x140130cd9", "xrefs": ["ConfigureHSVWidget::init @ 0x14012fda5", "ConfigureHSVWidget::init @ 0x14012ff3c", "ConfigureHSVWidget::init @ 0x1401300c2", "<???> @ 0x140916e80"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}