{"type": "func", "start": 6442482528, "end": 6442482830, "name": "cocos2d::extension::CCControlColourPicker::hueSliderValueChanged", "pseudocode": "// \n// cocos2d::extension::CCControlColourPicker::hueSliderValueChanged from 0x180007b60 to 0x180007c8e (302 bytes)\n// \n// 3 xrefs:\n// > cocos2d::extension::CCControlColourPicker::init @ 0x180007867\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b780\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 12:15:36 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCControlColourPicker::hueSliderValueChanged(\n        cocos2d::extension::CCControlColourPicker *this,\n        struct cocos2d::CCObject *a2)\n{\n  __int64 v3; // xmm1_8\n  __m128d *v4; // rax\n  double v5; // xmm2_8\n  double v6; // xmm3_8\n  __int64 *v7; // rcx\n  __int64 v8; // xmm1_8\n  __int64 v9; // rax\n  __int64 v10; // rcx\n  void (__fastcall ***v11)(_QWORD, __int16 *); // rcx\n  __int128 v12; // [rsp+20h] [rbp-48h] BYREF\n  __int64 v13; // [rsp+30h] [rbp-38h]\n  _BYTE v14[40]; // [rsp+40h] [rbp-28h] BYREF\n  __int16 v15; // [rsp+70h] [rbp+8h] BYREF\n  char v16; // [rsp+72h] [rbp+Ah]\n\n  *((double *)this + 60) = *((float *)a2 + 118);\n  v3 = *((_QWORD *)this + 62);\n  v12 = *((_OWORD *)this + 30);\n  v13 = v3;\n  v4 = (__m128d *)cocos2d::extension::CCControlUtils::RGBfromHSV(v14, &v12);\n  v5 = _mm_unpackhi_pd(*v4, *v4).m128d_f64[0] * 255.0;\n  v6 = v4[1].m128d_f64[0] * 255.0;\n  *((_BYTE *)this + 472) = (int)(v4->m128d_f64[0] * 255.0);\n  *((_BYTE *)this + 473) = (int)v5;\n  *((_BYTE *)this + 474) = (int)v6;\n  (*(void (__fastcall **)(cocos2d::extension::CCControlColourPicker *, __int64))(*(_QWORD *)this + 1088LL))(this, 256);\n  (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 64) + 1128LL))(*((_QWORD *)this + 64));\n  v7 = *((__int64 **)this + 63);\n  v8 = *((_QWORD *)this + 62);\n  v9 = *v7;\n  v12 = *((_OWORD *)this + 30);\n  v13 = v8;\n  (*(void (__fastcall **)(__int64 *, __int128 *))(v9 + 1136))(v7, &v12);\n  v10 = *((_QWORD *)this + 66);\n  if ( v10 )\n    (**(void (__fastcall ***)(__int64, char *))(v10 + 320))(v10 + 320, (char *)this + 472);\n  v11 = *((void (__fastcall ****)(_QWORD, __int16 *))this + 67);\n  if ( v11 )\n  {\n    v15 = *((_WORD *)this + 236);\n    v16 = *((_BYTE *)this + 474);\n    (**v11)(v11, &v15);\n  }\n}", "assembly": "; \n; cocos2d::extension::CCControlColourPicker::hueSliderValueChanged from 0x180007b60 to 0x180007c8e (302 bytes)\n; \n; 3 xrefs:\n; > cocos2d::extension::CCControlColourPicker::init @ 0x180007867\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b780\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 12:15:36 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180007b60\npush    rdi                                                            ; +0x5, 0x180007b65\nsub     rsp, 60h                                                       ; +0x6, 0x180007b66\nmovss   xmm0, dword ptr [rdx+1D8h]                                     ; +0xa, 0x180007b6a\nmov     rdi, rcx                                                       ; +0x12, 0x180007b72\ncvtps2pd xmm0, xmm0                                                    ; +0x15, 0x180007b75\nlea     rdx, [rsp+68h+var_48]                                          ; +0x18, 0x180007b78\nmovsd   qword ptr [rcx+1E0h], xmm0                                     ; +0x1d, 0x180007b7d\nmovups  xmm0, xmmword ptr [rcx+1E0h]                                   ; +0x25, 0x180007b85\nmovsd   xmm1, qword ptr [rcx+1F0h]                                     ; +0x2c, 0x180007b8c\nlea     rcx, [rsp+68h+var_28]                                          ; +0x34, 0x180007b94\nmovaps  [rsp+68h+var_48], xmm0                                         ; +0x39, 0x180007b99\nmovsd   [rsp+68h+var_38], xmm1                                         ; +0x3e, 0x180007b9e\ncall    ?RGBfromHSV@CCControlUtils@extension@cocos2d@@SA?AURGBA@23@UHSV@23@@Z; cocos2d::extension::CCControlUtils::RGBfromHSV(cocos2d::extension::HSV) ; +0x44, 0x180007ba4\nmovsd   xmm1, cs:qword_18002BC38                                       ; +0x49, 0x180007ba9\nlea     rbx, [rdi+1D8h]                                                ; +0x51, 0x180007bb1\nmov     edx, 100h                                                      ; +0x58, 0x180007bb8\nmov     rcx, rdi                                                       ; +0x5d, 0x180007bbd\nmovups  xmm2, xmmword ptr [rax]                                        ; +0x60, 0x180007bc0\nmovups  xmm3, xmmword ptr [rax+10h]                                    ; +0x63, 0x180007bc3\nmovaps  xmm0, xmm2                                                     ; +0x67, 0x180007bc7\nunpckhpd xmm2, xmm2                                                    ; +0x6a, 0x180007bca\nmulsd   xmm0, xmm1                                                     ; +0x6e, 0x180007bce\nmulsd   xmm2, xmm1                                                     ; +0x72, 0x180007bd2\nmulsd   xmm3, xmm1                                                     ; +0x76, 0x180007bd6\ncvttsd2si eax, xmm0                                                    ; +0x7a, 0x180007bda\nmov     [rbx], al                                                      ; +0x7e, 0x180007bde\ncvttsd2si eax, xmm2                                                    ; +0x80, 0x180007be0\nmov     [rbx+1], al                                                    ; +0x84, 0x180007be4\ncvttsd2si eax, xmm3                                                    ; +0x87, 0x180007be7\nmov     [rbx+2], al                                                    ; +0x8b, 0x180007beb\nmov     rax, [rdi]                                                     ; +0x8e, 0x180007bee\ncall    qword ptr [rax+440h]                                           ; +0x91, 0x180007bf1\nmov     rcx, [rdi+200h]                                                ; +0x97, 0x180007bf7\nmovsd   xmm1, qword ptr [rdi+1E0h]                                     ; +0x9e, 0x180007bfe\ncvtpd2ps xmm1, xmm1                                                    ; +0xa6, 0x180007c06\nmov     rax, [rcx]                                                     ; +0xaa, 0x180007c0a\ncall    qword ptr [rax+468h]                                           ; +0xad, 0x180007c0d\nmov     rcx, [rdi+1F8h]                                                ; +0xb3, 0x180007c13\nlea     rdx, [rsp+68h+var_48]                                          ; +0xba, 0x180007c1a\nmovups  xmm0, xmmword ptr [rdi+1E0h]                                   ; +0xbf, 0x180007c1f\nmovsd   xmm1, qword ptr [rdi+1F0h]                                     ; +0xc6, 0x180007c26\nmov     rax, [rcx]                                                     ; +0xce, 0x180007c2e\nmovaps  [rsp+68h+var_48], xmm0                                         ; +0xd1, 0x180007c31\nmovsd   [rsp+68h+var_38], xmm1                                         ; +0xd6, 0x180007c36\ncall    qword ptr [rax+470h]                                           ; +0xdc, 0x180007c3c\nmov     rcx, [rdi+210h]                                                ; +0xe2, 0x180007c42\ntest    rcx, rcx                                                       ; +0xe9, 0x180007c49\njz      short loc_180007C5D                                            ; +0xec, 0x180007c4c\nadd     rcx, 140h                                                      ; +0xee, 0x180007c4e\nmov     rdx, rbx                                                       ; +0xf5, 0x180007c55\nmov     rax, [rcx]                                                     ; +0xf8, 0x180007c58\ncall    qword ptr [rax]                                                ; +0xfb, 0x180007c5b\nmov     rcx, [rdi+218h]                                                ; +0xfd, 0x180007c5d\ntest    rcx, rcx                                                       ; +0x104, 0x180007c64\njz      short loc_180007C83                                            ; +0x107, 0x180007c67\nmovzx   eax, word ptr [rbx]                                            ; +0x109, 0x180007c69\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x10c, 0x180007c6c\nmov     [rsp+68h+arg_0], ax                                            ; +0x111, 0x180007c71\nmovzx   eax, byte ptr [rbx+2]                                          ; +0x116, 0x180007c76\nmov     [rsp+68h+arg_2], al                                            ; +0x11a, 0x180007c7a\nmov     rax, [rcx]                                                     ; +0x11e, 0x180007c7e\ncall    qword ptr [rax]                                                ; +0x121, 0x180007c81\nmov     rbx, [rsp+68h+arg_8]                                           ; +0x123, 0x180007c83\nadd     rsp, 60h                                                       ; +0x128, 0x180007c88\npop     rdi                                                            ; +0x12c, 0x180007c8c\nretn                                                                   ; +0x12d, 0x180007c8d", "xrefs": ["cocos2d::extension::CCControlColourPicker::init @ 0x180007867", "<???> @ 0x180032408", "<???> @ 0x18004b780"], "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"}