; ; cocos2d::extension::CCControlUtils::HSVfromRGB from 0x18000cf50 to 0x18000d044 (244 bytes) ; ; 4 xrefs: ; > cocos2d::extension::CCControlColourPicker::setColorValue @ 0x1800079e9 ; > @ 0x180032408 ; > @ 0x18004bcd8 ; > @ 0x18004bce4 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 12:15:38 +0000 ; sub rsp, 18h ; +0x0, 0x18000cf50 movsd xmm4, qword ptr [rdx] ; +0x4, 0x18000cf54 xorps xmm5, xmm5 ; +0x8, 0x18000cf58 movsd xmm1, qword ptr [rdx+8] ; +0xb, 0x18000cf5b movaps xmm3, xmm4 ; +0x10, 0x18000cf60 maxsd xmm3, xmm1 ; +0x13, 0x18000cf63 movaps [rsp+18h+var_18], xmm6 ; +0x17, 0x18000cf67 movsd xmm6, qword ptr [rdx+10h] ; +0x1b, 0x18000cf6b movaps xmm0, xmm4 ; +0x20, 0x18000cf70 minsd xmm0, xmm1 ; +0x23, 0x18000cf73 maxsd xmm3, xmm6 ; +0x27, 0x18000cf77 minsd xmm0, xmm6 ; +0x2b, 0x18000cf7b comisd xmm3, xmm5 ; +0x2f, 0x18000cf7f movaps xmm2, xmm3 ; +0x33, 0x18000cf83 movsd qword ptr [rcx+10h], xmm3 ; +0x36, 0x18000cf86 subsd xmm2, xmm0 ; +0x3b, 0x18000cf8b jbe loc_18000D023 ; +0x3f, 0x18000cf8f comisd xmm4, xmm3 ; +0x45, 0x18000cf95 movaps xmm0, xmm2 ; +0x49, 0x18000cf99 divsd xmm0, xmm3 ; +0x4c, 0x18000cf9c movsd qword ptr [rcx+8], xmm0 ; +0x50, 0x18000cfa0 jb short loc_18000CFBE ; +0x55, 0x18000cfa5 ucomisd xmm2, xmm5 ; +0x57, 0x18000cfa7 jp short loc_18000CFB4 ; +0x5b, 0x18000cfab jnz short loc_18000CFB4 ; +0x5d, 0x18000cfad xorps xmm1, xmm1 ; +0x5f, 0x18000cfaf jmp short loc_18000CFEC ; +0x62, 0x18000cfb2 subsd xmm1, xmm6 ; +0x64, 0x18000cfb4 divsd xmm1, xmm2 ; +0x68, 0x18000cfb8 jmp short loc_18000CFEC ; +0x6c, 0x18000cfbc comisd xmm1, xmm3 ; +0x6e, 0x18000cfbe jb short loc_18000CFD9 ; +0x72, 0x18000cfc2 movaps xmm1, xmm6 ; +0x74, 0x18000cfc4 subsd xmm1, xmm4 ; +0x77, 0x18000cfc7 divsd xmm1, xmm2 ; +0x7b, 0x18000cfcb addsd xmm1, cs:qword_18002BC08 ; +0x7f, 0x18000cfcf jmp short loc_18000CFEC ; +0x87, 0x18000cfd7 subsd xmm4, xmm1 ; +0x89, 0x18000cfd9 movaps xmm1, xmm4 ; +0x8d, 0x18000cfdd divsd xmm1, xmm2 ; +0x90, 0x18000cfe0 addsd xmm1, cs:qword_18002BC18 ; +0x94, 0x18000cfe4 movsd qword ptr [rcx], xmm1 ; +0x9c, 0x18000cfec mov rax, rcx ; +0xa0, 0x18000cff0 mulsd xmm1, cs:qword_18002BC28 ; +0xa3, 0x18000cff3 mov rdx, rcx ; +0xab, 0x18000cffb mov r8, rcx ; +0xae, 0x18000cffe comisd xmm5, xmm1 ; +0xb1, 0x18000d001 movsd qword ptr [rcx], xmm1 ; +0xb5, 0x18000d005 jbe short loc_18000D017 ; +0xb9, 0x18000d009 addsd xmm1, cs:qword_18002BC40 ; +0xbb, 0x18000d00b movsd qword ptr [rcx], xmm1 ; +0xc3, 0x18000d013 mov rax, rdx ; +0xc7, 0x18000d017 movaps xmm6, [rsp+18h+var_18] ; +0xca, 0x18000d01a add rsp, 18h ; +0xce, 0x18000d01e retn ; +0xd2, 0x18000d022 movaps xmm6, [rsp+18h+var_18] ; +0xd3, 0x18000d023 mov rax, 0BFF0000000000000h ; +0xd7, 0x18000d027 mov [rcx], rax ; +0xe1, 0x18000d031 mov rax, rcx ; +0xe4, 0x18000d034 mov qword ptr [rcx+8], 0 ; +0xe7, 0x18000d037 add rsp, 18h ; +0xef, 0x18000d03f retn ; +0xf3, 0x18000d043