{"type": "func", "start": 5369912832, "end": 5369913593, "name": "ColorSelectLiveOverlay::sliderChanged", "pseudocode": "// \n// ColorSelectLiveOverlay::sliderChanged from 0x140125e00 to 0x1401260f9 (761 bytes)\n// \n// 5 xrefs:\n// > ColorSelectLiveOverlay::init @ 0x140125398\n// > ColorSelectLiveOverlay::init @ 0x140125489\n// > ColorSelectLiveOverlay::init @ 0x140125577\n// > ColorSelectLiveOverlay::init @ 0x140125665\n// > <???> @ 0x140916964\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:26:58 +0000\n// \n\n__int64 __fastcall ColorSelectLiveOverlay::sliderChanged(__int64 a1, float *a2)\n{\n  float Value; // xmm0_4\n  int v5; // eax\n  int v6; // eax\n  int v7; // eax\n  bool v8; // zf\n  __int64 v9; // rax\n  __int64 v10; // rax\n  __int64 v11; // xmm1_8\n  __m128d *v12; // rax\n  double v13; // xmm1_8\n  double v14; // xmm2_8\n  __m128d *v15; // rax\n  void (__fastcall ***v16)(_QWORD, char *); // rcx\n  double v17; // xmm1_8\n  double v18; // xmm2_8\n  __int128 v19; // xmm0\n  __m128d *v20; // rax\n  void (__fastcall ***v21)(_QWORD, char *); // rcx\n  double v22; // xmm1_8\n  double v23; // xmm2_8\n  __int64 v24; // rdi\n  __int64 (__fastcall **v25)(__int64, __int64); // rbx\n  __int64 v26; // rax\n  __int64 result; // rax\n  __int64 v28; // rcx\n  __int16 v29; // ax\n  __int64 v30; // rcx\n  _BYTE v31[24]; // [rsp+20h] [rbp-68h] BYREF\n  _BYTE v32[32]; // [rsp+40h] [rbp-48h] BYREF\n  char v33; // [rsp+90h] [rbp+8h] BYREF\n  char v34; // [rsp+91h] [rbp+9h]\n  char v35; // [rsp+92h] [rbp+Ah]\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      v7 = v6 - 1;\n      if ( v7 )\n      {\n        if ( v7 == 1 )\n        {\n          v8 = *(_BYTE *)(a1 + 746) == 0;\n          *(float *)(a1 + 728) = Value;\n          if ( v8 )\n          {\n            v9 = *(_QWORD *)(a1 + 664);\n            if ( v9 )\n            {\n              *(float *)(v9 + 1472) = Value;\n            }\n            else\n            {\n              if ( *(_BYTE *)(a1 + 856) )\n                v10 = *(_QWORD *)(a1 + 696);\n              else\n                v10 = *(_QWORD *)(a1 + 688);\n              *(float *)(v10 + 96) = Value;\n            }\n          }\n        }\n      }\n      else\n      {\n        *(double *)(a1 + 840) = Value;\n      }\n    }\n    else\n    {\n      *(double *)(a1 + 832) = Value;\n    }\n  }\n  else\n  {\n    *(double *)(a1 + 824) = (float)(Value * 360.0);\n  }\n  v11 = *(_QWORD *)(a1 + 840);\n  *(_OWORD *)v31 = *(_OWORD *)(a1 + 824);\n  *(_QWORD *)&v31[16] = v11;\n  v12 = (__m128d *)cocos2d::extension::CCControlUtils::RGBfromHSV(v32, v31);\n  v13 = _mm_unpackhi_pd(*v12, *v12).m128d_f64[0] * 255.0;\n  v14 = v12[1].m128d_f64[0] * 255.0;\n  *(_BYTE *)(a1 + 710) = (int)(v12->m128d_f64[0] * 255.0);\n  *(_BYTE *)(a1 + 711) = (int)v13;\n  *(_BYTE *)(a1 + 712) = (int)v14;\n  (**(void (__fastcall ***)(__int64, __int64))(*(_QWORD *)(a1 + 784) + 320LL))(*(_QWORD *)(a1 + 784) + 320LL, a1 + 710);\n  *(_QWORD *)v31 = *(_QWORD *)(a1 + 824);\n  *(_OWORD *)&v31[8] = xmmword_140836C50;\n  v15 = (__m128d *)cocos2d::extension::CCControlUtils::RGBfromHSV(v32, v31);\n  v16 = (void (__fastcall ***)(_QWORD, char *))(*(_QWORD *)(a1 + 800) + 320LL);\n  v17 = _mm_unpackhi_pd(*v15, *v15).m128d_f64[0] * 255.0;\n  v18 = v15[1].m128d_f64[0] * 255.0;\n  v33 = (int)(v15->m128d_f64[0] * 255.0);\n  v34 = (int)v17;\n  v35 = (int)v18;\n  (**v16)(v16, &v33);\n  v19 = *(_OWORD *)(a1 + 824);\n  *(_QWORD *)&v31[16] = 0x3FF0000000000000LL;\n  *(_OWORD *)v31 = v19;\n  v20 = (__m128d *)cocos2d::extension::CCControlUtils::RGBfromHSV(v32, v31);\n  v21 = (void (__fastcall ***)(_QWORD, char *))(*(_QWORD *)(a1 + 808) + 320LL);\n  v22 = _mm_unpackhi_pd(*v20, *v20).m128d_f64[0];\n  v23 = v20[1].m128d_f64[0] * 255.0;\n  v33 = (int)(v20->m128d_f64[0] * 255.0);\n  v34 = (int)(v22 * 255.0);\n  v35 = (int)v23;\n  (**v21)(v21, &v33);\n  v24 = *(_QWORD *)(a1 + 816);\n  v25 = *(__int64 (__fastcall ***)(__int64, __int64))(v24 + 320);\n  v26 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a1 + 808) + 320LL) + 8LL))(*(_QWORD *)(a1 + 808) + 320LL);\n  result = (*v25)(v24 + 320, v26);\n  if ( !*(_BYTE *)(a1 + 746) )\n  {\n    v28 = *(_QWORD *)(a1 + 664);\n    v29 = *(_WORD *)(a1 + 710);\n    if ( v28 )\n    {\n      *(_WORD *)(v28 + 1465) = v29;\n      result = *(unsigned __int8 *)(a1 + 712);\n      *(_BYTE *)(v28 + 1467) = result;\n    }\n    else\n    {\n      if ( *(_BYTE *)(a1 + 856) )\n        v30 = *(_QWORD *)(a1 + 696);\n      else\n        v30 = *(_QWORD *)(a1 + 688);\n      *(_WORD *)(v30 + 72) = v29;\n      result = *(unsigned __int8 *)(a1 + 712);\n      *(_BYTE *)(v30 + 74) = result;\n    }\n  }\n  return result;\n}", "assembly": "; \n; ColorSelectLiveOverlay::sliderChanged from 0x140125e00 to 0x1401260f9 (761 bytes)\n; \n; 5 xrefs:\n; > ColorSelectLiveOverlay::init @ 0x140125398\n; > ColorSelectLiveOverlay::init @ 0x140125489\n; > ColorSelectLiveOverlay::init @ 0x140125577\n; > ColorSelectLiveOverlay::init @ 0x140125665\n; > <???> @ 0x140916964\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:26:58 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140125e00\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140125e05\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x140125e0a\npush    r14                                                            ; +0xf, 0x140125e0f\nsub     rsp, 80h                                                       ; +0x11, 0x140125e11\nmov     rsi, rcx                                                       ; +0x18, 0x140125e18\nmovaps  [rsp+88h+var_18], xmm6                                         ; +0x1b, 0x140125e1b\nmov     rcx, rdx                                                       ; +0x20, 0x140125e20\nmovaps  [rsp+88h+var_28], xmm7                                         ; +0x23, 0x140125e23\nmov     rbx, rdx                                                       ; +0x28, 0x140125e28\ncall    SliderThumb__getValue                                          ; +0x2b, 0x140125e2b\nmov     rax, [rbx]                                                     ; +0x30, 0x140125e30\nmov     rcx, rbx                                                       ; +0x33, 0x140125e33\nmovaps  xmm6, xmm0                                                     ; +0x36, 0x140125e36\ncall    qword ptr [rax+38h]                                            ; +0x39, 0x140125e39\nsub     eax, 1                                                         ; +0x3c, 0x140125e3c\njz      loc_140125EC6                                                  ; +0x3f, 0x140125e3f\nsub     eax, 1                                                         ; +0x45, 0x140125e45\njz      short loc_140125EB5                                            ; +0x48, 0x140125e48\nsub     eax, 1                                                         ; +0x4a, 0x140125e4a\njz      short loc_140125EA4                                            ; +0x4d, 0x140125e4d\ncmp     eax, 1                                                         ; +0x4f, 0x140125e4f\njnz     loc_140125EDD                                                  ; +0x52, 0x140125e52\ncmp     byte ptr [rsi+2EAh], 0                                         ; +0x58, 0x140125e58\nmovss   dword ptr [rsi+2D8h], xmm6                                     ; +0x5f, 0x140125e5f\njnz     short loc_140125EDD                                            ; +0x67, 0x140125e67\nmov     rax, [rsi+298h]                                                ; +0x69, 0x140125e69\ntest    rax, rax                                                       ; +0x70, 0x140125e70\njz      short loc_140125E7F                                            ; +0x73, 0x140125e73\nmovss   dword ptr [rax+5C0h], xmm6                                     ; +0x75, 0x140125e75\njmp     short loc_140125EDD                                            ; +0x7d, 0x140125e7d\ncmp     byte ptr [rsi+358h], 0                                         ; +0x7f, 0x140125e7f\njz      short loc_140125E96                                            ; +0x86, 0x140125e86\nmov     rax, [rsi+2B8h]                                                ; +0x88, 0x140125e88\nmovss   dword ptr [rax+60h], xmm6                                      ; +0x8f, 0x140125e8f\njmp     short loc_140125EDD                                            ; +0x94, 0x140125e94\nmov     rax, [rsi+2B0h]                                                ; +0x96, 0x140125e96\nmovss   dword ptr [rax+60h], xmm6                                      ; +0x9d, 0x140125e9d\njmp     short loc_140125EDD                                            ; +0xa2, 0x140125ea2\nxorps   xmm0, xmm0                                                     ; +0xa4, 0x140125ea4\ncvtss2sd xmm0, xmm6                                                    ; +0xa7, 0x140125ea7\nmovsd   qword ptr [rsi+348h], xmm0                                     ; +0xab, 0x140125eab\njmp     short loc_140125EDD                                            ; +0xb3, 0x140125eb3\nxorps   xmm0, xmm0                                                     ; +0xb5, 0x140125eb5\ncvtss2sd xmm0, xmm6                                                    ; +0xb8, 0x140125eb8\nmovsd   qword ptr [rsi+340h], xmm0                                     ; +0xbc, 0x140125ebc\njmp     short loc_140125EDD                                            ; +0xc4, 0x140125ec4\nmulss   xmm6, cs:Y                                                     ; +0xc6, 0x140125ec6\nxorps   xmm0, xmm0                                                     ; +0xce, 0x140125ece\ncvtss2sd xmm0, xmm6                                                    ; +0xd1, 0x140125ed1\nmovsd   qword ptr [rsi+338h], xmm0                                     ; +0xd5, 0x140125ed5\nmovups  xmm0, xmmword ptr [rsi+338h]                                   ; +0xdd, 0x140125edd\nlea     rdx, [rsp+88h+var_68]                                          ; +0xe4, 0x140125ee4\nmovsd   xmm1, qword ptr [rsi+348h]                                     ; +0xe9, 0x140125ee9\nlea     rcx, [rsp+88h+var_48]                                          ; +0xf1, 0x140125ef1\nmovaps  [rsp+88h+var_68], xmm0                                         ; +0xf6, 0x140125ef6\nmovsd   [rsp+88h+var_58], xmm1                                         ; +0xfb, 0x140125efb\ncall    cs:?RGBfromHSV@CCControlUtils@extension@cocos2d@@SA?AURGBA@23@UHSV@23@@Z; cocos2d::extension::CCControlUtils::RGBfromHSV(cocos2d::extension::HSV) ; +0x101, 0x140125f01\nmovsd   xmm7, cs:qword_140835428                                       ; +0x107, 0x140125f07\nlea     r14, [rsi+2C6h]                                                ; +0x10f, 0x140125f0f\nmov     rdx, r14                                                       ; +0x116, 0x140125f16\nmovups  xmm1, xmmword ptr [rax]                                        ; +0x119, 0x140125f19\nmovups  xmm2, xmmword ptr [rax+10h]                                    ; +0x11c, 0x140125f1c\nmovaps  xmm0, xmm1                                                     ; +0x120, 0x140125f20\nunpckhpd xmm1, xmm1                                                    ; +0x123, 0x140125f23\nmulsd   xmm0, xmm7                                                     ; +0x127, 0x140125f27\nmulsd   xmm1, xmm7                                                     ; +0x12b, 0x140125f2b\nmulsd   xmm2, xmm7                                                     ; +0x12f, 0x140125f2f\ncvttsd2si eax, xmm0                                                    ; +0x133, 0x140125f33\nmov     [r14], al                                                      ; +0x137, 0x140125f37\ncvttsd2si eax, xmm1                                                    ; +0x13a, 0x140125f3a\nmov     [r14+1], al                                                    ; +0x13e, 0x140125f3e\ncvttsd2si eax, xmm2                                                    ; +0x142, 0x140125f42\nmov     [r14+2], al                                                    ; +0x146, 0x140125f46\nmov     rcx, [rsi+310h]                                                ; +0x14a, 0x140125f4a\nadd     rcx, 140h                                                      ; +0x151, 0x140125f51\nmov     rax, [rcx]                                                     ; +0x158, 0x140125f58\ncall    qword ptr [rax]                                                ; +0x15b, 0x140125f5b\nmovsd   xmm0, qword ptr [rsi+338h]                                     ; +0x15d, 0x140125f5d\nlea     rdx, [rsp+88h+var_68]                                          ; +0x165, 0x140125f65\nmovaps  xmm6, cs:xmmword_140836C50                                     ; +0x16a, 0x140125f6a\nlea     rcx, [rsp+88h+var_48]                                          ; +0x171, 0x140125f71\nmovsd   qword ptr [rsp+88h+var_68], xmm0                               ; +0x176, 0x140125f76\nmovups  [rsp+88h+var_68+8], xmm6                                       ; +0x17c, 0x140125f7c\ncall    cs:?RGBfromHSV@CCControlUtils@extension@cocos2d@@SA?AURGBA@23@UHSV@23@@Z; cocos2d::extension::CCControlUtils::RGBfromHSV(cocos2d::extension::HSV) ; +0x181, 0x140125f81\nmov     rcx, [rsi+320h]                                                ; +0x187, 0x140125f87\nlea     rdx, [rsp+88h+arg_0]                                           ; +0x18e, 0x140125f8e\nadd     rcx, 140h                                                      ; +0x196, 0x140125f96\nmovups  xmm1, xmmword ptr [rax]                                        ; +0x19d, 0x140125f9d\nmovups  xmm2, xmmword ptr [rax+10h]                                    ; +0x1a0, 0x140125fa0\nmovaps  xmm0, xmm1                                                     ; +0x1a4, 0x140125fa4\nunpckhpd xmm1, xmm1                                                    ; +0x1a7, 0x140125fa7\nmulsd   xmm0, xmm7                                                     ; +0x1ab, 0x140125fab\nmulsd   xmm1, xmm7                                                     ; +0x1af, 0x140125faf\nmulsd   xmm2, xmm7                                                     ; +0x1b3, 0x140125fb3\ncvttsd2si eax, xmm0                                                    ; +0x1b7, 0x140125fb7\nmov     [rsp+88h+arg_0], al                                            ; +0x1bb, 0x140125fbb\ncvttsd2si eax, xmm1                                                    ; +0x1c2, 0x140125fc2\nmov     [rsp+88h+arg_1], al                                            ; +0x1c6, 0x140125fc6\ncvttsd2si eax, xmm2                                                    ; +0x1cd, 0x140125fcd\nmov     [rsp+88h+arg_2], al                                            ; +0x1d1, 0x140125fd1\nmov     rax, [rcx]                                                     ; +0x1d8, 0x140125fd8\ncall    qword ptr [rax]                                                ; +0x1db, 0x140125fdb\nmovups  xmm0, xmmword ptr [rsi+338h]                                   ; +0x1dd, 0x140125fdd\nlea     rdx, [rsp+88h+var_68]                                          ; +0x1e4, 0x140125fe4\nlea     rcx, [rsp+88h+var_48]                                          ; +0x1e9, 0x140125fe9\nmovsd   [rsp+88h+var_58], xmm6                                         ; +0x1ee, 0x140125fee\nmovaps  [rsp+88h+var_68], xmm0                                         ; +0x1f4, 0x140125ff4\ncall    cs:?RGBfromHSV@CCControlUtils@extension@cocos2d@@SA?AURGBA@23@UHSV@23@@Z; cocos2d::extension::CCControlUtils::RGBfromHSV(cocos2d::extension::HSV) ; +0x1f9, 0x140125ff9\nmov     rcx, [rsi+328h]                                                ; +0x1ff, 0x140125fff\nlea     rdx, [rsp+88h+arg_0]                                           ; +0x206, 0x140126006\nadd     rcx, 140h                                                      ; +0x20e, 0x14012600e\nmovups  xmm1, xmmword ptr [rax]                                        ; +0x215, 0x140126015\nmovups  xmm2, xmmword ptr [rax+10h]                                    ; +0x218, 0x140126018\nmovaps  xmm0, xmm1                                                     ; +0x21c, 0x14012601c\nunpckhpd xmm1, xmm1                                                    ; +0x21f, 0x14012601f\nmulsd   xmm0, xmm7                                                     ; +0x223, 0x140126023\nmulsd   xmm1, xmm7                                                     ; +0x227, 0x140126027\nmulsd   xmm2, xmm7                                                     ; +0x22b, 0x14012602b\ncvttsd2si eax, xmm0                                                    ; +0x22f, 0x14012602f\nmov     [rsp+88h+arg_0], al                                            ; +0x233, 0x140126033\ncvttsd2si eax, xmm1                                                    ; +0x23a, 0x14012603a\nmov     [rsp+88h+arg_1], al                                            ; +0x23e, 0x14012603e\ncvttsd2si eax, xmm2                                                    ; +0x245, 0x140126045\nmov     [rsp+88h+arg_2], al                                            ; +0x249, 0x140126049\nmov     rax, [rcx]                                                     ; +0x250, 0x140126050\ncall    qword ptr [rax]                                                ; +0x253, 0x140126053\nmov     rcx, [rsi+328h]                                                ; +0x255, 0x140126055\nmov     rdi, [rsi+330h]                                                ; +0x25c, 0x14012605c\nadd     rcx, 140h                                                      ; +0x263, 0x140126063\nmov     rax, [rcx]                                                     ; +0x26a, 0x14012606a\nmov     rbx, [rdi+140h]                                                ; +0x26d, 0x14012606d\ncall    qword ptr [rax+8]                                              ; +0x274, 0x140126074\nmov     rdx, rax                                                       ; +0x277, 0x140126077\nlea     rcx, [rdi+140h]                                                ; +0x27a, 0x14012607a\ncall    qword ptr [rbx]                                                ; +0x281, 0x140126081\ncmp     byte ptr [rsi+2EAh], 0                                         ; +0x283, 0x140126083\njnz     short loc_1401260D5                                            ; +0x28a, 0x14012608a\nmov     rcx, [rsi+298h]                                                ; +0x28c, 0x14012608c\nmovzx   eax, word ptr [r14]                                            ; +0x293, 0x140126093\ntest    rcx, rcx                                                       ; +0x297, 0x140126097\njz      short loc_1401260B0                                            ; +0x29a, 0x14012609a\nmov     [rcx+5B9h], ax                                                 ; +0x29c, 0x14012609c\nmovzx   eax, byte ptr [r14+2]                                          ; +0x2a3, 0x1401260a3\nmov     [rcx+5BBh], al                                                 ; +0x2a8, 0x1401260a8\njmp     short loc_1401260D5                                            ; +0x2ae, 0x1401260ae\ncmp     byte ptr [rsi+358h], 0                                         ; +0x2b0, 0x1401260b0\njz      short loc_1401260C2                                            ; +0x2b7, 0x1401260b7\nmov     rcx, [rsi+2B8h]                                                ; +0x2b9, 0x1401260b9\njmp     short loc_1401260C9                                            ; +0x2c0, 0x1401260c0\nmov     rcx, [rsi+2B0h]                                                ; +0x2c2, 0x1401260c2\nmov     [rcx+48h], ax                                                  ; +0x2c9, 0x1401260c9\nmovzx   eax, byte ptr [r14+2]                                          ; +0x2cd, 0x1401260cd\nmov     [rcx+4Ah], al                                                  ; +0x2d2, 0x1401260d2\nmovaps  xmm6, [rsp+88h+var_18]                                         ; +0x2d5, 0x1401260d5\nlea     r11, [rsp+88h+var_8]                                           ; +0x2da, 0x1401260da\nmov     rbx, [r11+18h]                                                 ; +0x2e2, 0x1401260e2\nmov     rsi, [r11+20h]                                                 ; +0x2e6, 0x1401260e6\nmov     rdi, [r11+28h]                                                 ; +0x2ea, 0x1401260ea\nmovaps  xmm7, [rsp+88h+var_28]                                         ; +0x2ee, 0x1401260ee\nmov     rsp, r11                                                       ; +0x2f3, 0x1401260f3\npop     r14                                                            ; +0x2f6, 0x1401260f6\nretn                                                                   ; +0x2f8, 0x1401260f8", "xrefs": ["ColorSelectLiveOverlay::init @ 0x140125398", "ColorSelectLiveOverlay::init @ 0x140125489", "ColorSelectLiveOverlay::init @ 0x140125577", "ColorSelectLiveOverlay::init @ 0x140125665", "<???> @ 0x140916964"], "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"}