; ; cocos2d::extension::CCControlColourPicker::setColorValue from 0x180007eb0 to 0x180007fb3 (259 bytes) ; ; 3 xrefs: ; > @ 0x1800246b8 ; > @ 0x18002fdf8 ; > @ 0x180049828 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_8], rbx ; +0x0, 0x180007eb0 push rdi ; +0x5, 0x180007eb5 sub rsp, 60h ; +0x6, 0x180007eb6 movzx eax, word ptr [rdx] ; +0xa, 0x180007eba mov rdi, rcx ; +0xd, 0x180007ebd movss xmm2, cs:dword_1800295C4 ; +0x10, 0x180007ec0 mov [rcx+1D8h], ax ; +0x18, 0x180007ec8 movzx eax, byte ptr [rdx+2] ; +0x1f, 0x180007ecf mov [rcx+1DAh], al ; +0x23, 0x180007ed3 lea rcx, [rsp+68h+var_48] ; +0x29, 0x180007ed9 movzx eax, byte ptr [rdx] ; +0x2e, 0x180007ede movd xmm0, eax ; +0x31, 0x180007ee1 movzx eax, byte ptr [rdx+1] ; +0x35, 0x180007ee5 cvtdq2ps xmm0, xmm0 ; +0x39, 0x180007ee9 movd xmm1, eax ; +0x3c, 0x180007eec movzx eax, byte ptr [rdx+2] ; +0x40, 0x180007ef0 lea rdx, [rsp+68h+var_28] ; +0x44, 0x180007ef4 cvtdq2ps xmm1, xmm1 ; +0x49, 0x180007ef9 divss xmm0, xmm2 ; +0x4c, 0x180007efc divss xmm1, xmm2 ; +0x50, 0x180007f00 cvtps2pd xmm0, xmm0 ; +0x54, 0x180007f04 movsd [rsp+68h+var_28], xmm0 ; +0x57, 0x180007f07 cvtps2pd xmm0, xmm1 ; +0x5d, 0x180007f0d movd xmm1, eax ; +0x60, 0x180007f10 cvtdq2ps xmm1, xmm1 ; +0x64, 0x180007f14 movsd [rsp+68h+var_20], xmm0 ; +0x67, 0x180007f17 divss xmm1, xmm2 ; +0x6d, 0x180007f1d cvtps2pd xmm0, xmm1 ; +0x71, 0x180007f21 movsd xmm1, cs:qword_180029530 ; +0x74, 0x180007f24 movsd [rsp+68h+var_18], xmm0 ; +0x7c, 0x180007f2c movsd [rsp+68h+var_10], xmm1 ; +0x82, 0x180007f32 call ?HSVfromRGB@CCControlUtils@extension@cocos2d@@SA?AUHSV@23@URGBA@23@@Z; cocos2d::extension::CCControlUtils::HSVfromRGB(cocos2d::extension::RGBA) ; +0x88, 0x180007f38 mov rcx, rdi; this ; +0x8d, 0x180007f3d movups xmm1, xmmword ptr [rax] ; +0x90, 0x180007f40 movsd xmm0, qword ptr [rax+10h] ; +0x93, 0x180007f43 movups xmmword ptr [rdi+1E0h], xmm1 ; +0x98, 0x180007f48 movsd qword ptr [rdi+1F0h], xmm0 ; +0x9f, 0x180007f4f call ?updateHueAndControlPicker@CCControlColourPicker@extension@cocos2d@@IEAAXXZ; cocos2d::extension::CCControlColourPicker::updateHueAndControlPicker(void) ; +0xa7, 0x180007f57 mov rcx, [rdi+210h] ; +0xac, 0x180007f5c test rcx, rcx ; +0xb3, 0x180007f63 jz short loc_180007F7B ; +0xb6, 0x180007f66 add rcx, 140h ; +0xb8, 0x180007f68 lea rdx, [rdi+1D8h] ; +0xbf, 0x180007f6f mov rax, [rcx] ; +0xc6, 0x180007f76 call qword ptr [rax] ; +0xc9, 0x180007f79 mov rcx, [rdi+218h] ; +0xcb, 0x180007f7b test rcx, rcx ; +0xd2, 0x180007f82 jz short loc_180007FA8 ; +0xd5, 0x180007f85 movzx eax, word ptr [rdi+1D8h] ; +0xd7, 0x180007f87 lea rdx, [rsp+68h+arg_0] ; +0xde, 0x180007f8e mov [rsp+68h+arg_0], ax ; +0xe3, 0x180007f93 movzx eax, byte ptr [rdi+1DAh] ; +0xe8, 0x180007f98 mov [rsp+68h+arg_2], al ; +0xef, 0x180007f9f mov rax, [rcx] ; +0xf3, 0x180007fa3 call qword ptr [rax] ; +0xf6, 0x180007fa6 mov rbx, [rsp+68h+arg_8] ; +0xf8, 0x180007fa8 add rsp, 60h ; +0xfd, 0x180007fad pop rdi ; +0x101, 0x180007fb1 retn ; +0x102, 0x180007fb2