{"type": "func", "start": 6442491328, "end": 6442491470, "name": "cocos2d::extension::CCControlSaturationBrightnessPicker::updateDraggerWithHSV", "pseudocode": "// \n// cocos2d::extension::CCControlSaturationBrightnessPicker::updateDraggerWithHSV from 0x180009dc0 to 0x180009e4e (142 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180025968\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x180049a80\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\n__int64 __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::updateDraggerWithHSV(\n        __int64 a1,\n        __int64 a2)\n{\n  __int64 v3; // rax\n  char v5; // [rsp+30h] [rbp+8h] BYREF\n  char v6; // [rsp+38h] [rbp+10h] BYREF\n\n  cocos2d::CCPoint::CCPoint(\n    (cocos2d::CCPoint *)&v5,\n    (1.0 - *(double *)(a2 + 8)) * (double)*(int *)(a1 + 524) + (float)((float)*(int *)(a1 + 520) + *(float *)(a1 + 512)),\n    (float)((float)*(int *)(a1 + 520) + *(float *)(a1 + 516)) + (double)*(int *)(a1 + 524) * *(double *)(a2 + 16));\n  v3 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v6, (const struct cocos2d::CCPoint *)&v5);\n  return cocos2d::extension::CCControlSaturationBrightnessPicker::updateSliderPosition(a1, v3);\n}", "assembly": "; \n; cocos2d::extension::CCControlSaturationBrightnessPicker::updateDraggerWithHSV from 0x180009dc0 to 0x180009e4e (142 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180025968\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x180049a80\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    rbx                                                            ; +0x0, 0x180009dc0\nsub     rsp, 20h                                                       ; +0x2, 0x180009dc2\nmovd    xmm5, dword ptr [rcx+208h]                                     ; +0x6, 0x180009dc6\nmov     rbx, rcx                                                       ; +0xe, 0x180009dce\nmovd    xmm4, dword ptr [rcx+20Ch]                                     ; +0x11, 0x180009dd1\nmovsd   xmm3, cs:qword_180029530                                       ; +0x19, 0x180009dd9\nsubsd   xmm3, qword ptr [rdx+8]                                        ; +0x21, 0x180009de1\ncvtdq2ps xmm5, xmm5                                                    ; +0x26, 0x180009de6\ncvtdq2pd xmm4, xmm4                                                    ; +0x29, 0x180009de9\nmovaps  xmm0, xmm5                                                     ; +0x2d, 0x180009ded\naddss   xmm0, dword ptr [rcx+204h]                                     ; +0x30, 0x180009df0\naddss   xmm5, dword ptr [rcx+200h]                                     ; +0x38, 0x180009df8\nmovaps  xmm1, xmm4                                                     ; +0x40, 0x180009e00\nmulsd   xmm3, xmm4                                                     ; +0x43, 0x180009e03\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x47, 0x180009e07\nmulsd   xmm1, qword ptr [rdx+10h]                                      ; +0x4c, 0x180009e0c\ncvtps2pd xmm2, xmm0                                                    ; +0x51, 0x180009e11\ncvtps2pd xmm0, xmm5                                                    ; +0x54, 0x180009e14\naddsd   xmm2, xmm1                                                     ; +0x57, 0x180009e17\naddsd   xmm3, xmm0                                                     ; +0x5b, 0x180009e1b\ncvtpd2ps xmm2, xmm2                                                    ; +0x5f, 0x180009e1f\ncvtpd2ps xmm1, xmm3                                                    ; +0x63, 0x180009e23\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x67, 0x180009e27\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x6d, 0x180009e2d\nlea     rcx, [rsp+28h+arg_8]                                           ; +0x72, 0x180009e32\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x77, 0x180009e37\nmov     rdx, rax                                                       ; +0x7d, 0x180009e3d\nmov     rcx, rbx                                                       ; +0x80, 0x180009e40\ncall    ?updateSliderPosition@CCControlSaturationBrightnessPicker@extension@cocos2d@@IEAAXVCCPoint@3@@Z; cocos2d::extension::CCControlSaturationBrightnessPicker::updateSliderPosition(cocos2d::CCPoint) ; +0x83, 0x180009e43\nadd     rsp, 20h                                                       ; +0x88, 0x180009e48\npop     rbx                                                            ; +0x8c, 0x180009e4c\nretn                                                                   ; +0x8d, 0x180009e4d", "xrefs": ["<???> @ 0x180025968", "<???> @ 0x18002fdf8", "<???> @ 0x180049a80"], "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"}