	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcm_hsv2rgb
_qcm_hsv2rgb:                           ## @qcm_hsv2rgb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $esi killed $esi def $rsi
                                        ## kill: def $edi killed $edi def $rdi
	cmpl	$32768, %esi                    ## imm = 0x8000
	jge	LBB0_2
## %bb.1:
	movl	%edx, %r10d
	movl	%edx, %eax
LBB0_15:
	movl	%edx, %r11d
	jmp	LBB0_16
LBB0_2:
	xorl	%r10d, %r10d
	movl	$0, %eax
	movl	$0, %r11d
	cmpl	$8192, %edx                     ## imm = 0x2000
	jge	LBB0_3
LBB0_16:
	movl	%r10d, (%rcx)
	movl	%eax, (%r8)
	movl	%r11d, (%r9)
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	leal	(%rsi,%rsi), %eax
	addl	$-65536, %eax                   ## imm = 0xFFFF0000
	leal	10923(%rdi), %esi
	movzwl	%si, %esi
	leal	(%rsi,%rsi,2), %esi
	shrl	$16, %esi
	imull	$-21845, %esi, %ebx             ## imm = 0xAAAB
	addl	%edi, %ebx
	leal	(%rbx,%rbx,2), %edi
	imull	%edx, %eax
	shrl	$16, %eax
	movl	%edx, %r14d
	subl	%eax, %r14d
	testl	%ebx, %ebx
	js	LBB0_10
## %bb.4:
	movl	$32769, %ebx                    ## imm = 0x8001
	subl	%edi, %ebx
	imull	%eax, %ebx
	shrl	$15, %ebx
	movl	%edx, %r11d
	subl	%ebx, %r11d
	testl	%esi, %esi
	je	LBB0_5
## %bb.6:
	cmpl	$2, %esi
	je	LBB0_7
## %bb.8:
	movl	%r14d, %r10d
	movl	%edx, %eax
	jmp	LBB0_9
LBB0_10:
	addl	$32769, %edi                    ## imm = 0x8001
	imull	%eax, %edi
	shrl	$15, %edi
	movl	%edx, %r11d
	subl	%edi, %r11d
	testl	%esi, %esi
	je	LBB0_11
## %bb.12:
	cmpl	$2, %esi
	je	LBB0_14
## %bb.13:
	movl	%r11d, %r10d
	movl	%edx, %eax
	movl	%r14d, %r11d
LBB0_9:
	cmpl	$1, %esi
	je	LBB0_16
	jmp	LBB0_17
LBB0_5:
	movl	%edx, %r10d
	movl	%r11d, %eax
	movl	%r14d, %r11d
	jmp	LBB0_16
LBB0_7:
	movl	%r11d, %r10d
	movl	%r14d, %eax
	jmp	LBB0_15
LBB0_11:
	movl	%edx, %r10d
	movl	%r14d, %eax
	jmp	LBB0_16
LBB0_14:
	movl	%r14d, %r10d
	movl	%r11d, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_qcm_hsv2rgb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcm_hsv2rgb
_qcm_hsv2rgb:                           ; @qcm_hsv2rgb
	.cfi_startproc
; %bb.0:
	cmp	w1, #8, lsl #12                 ; =32768
	b.ge	LBB0_3
; %bb.1:
	mov	x11, x2
	mov	x12, x2
LBB0_2:
	mov	x8, x2
	b	LBB0_5
LBB0_3:
	cmp	w2, #2, lsl #12                 ; =8192
	b.ge	LBB0_7
; %bb.4:
	mov	w11, #0
	mov	w12, #0
	mov	w8, #0
LBB0_5:
	str	w11, [x3]
	str	w12, [x4]
	str	w8, [x5]
LBB0_6:
	ret
LBB0_7:
	lsl	w8, w1, #1
	sub	w10, w8, #16, lsl #12           ; =65536
	mov	w8, #10923
	add	w8, w0, w8
	and	w9, w8, #0xffff
	add	w8, w9, w8, uxth #1
	lsr	w9, w8, #16
	mov	w8, #-21845
	madd	w12, w9, w8, w0
	add	w8, w12, w12, lsl #1
	mul	w10, w10, w2
	lsr	w11, w10, #16
	sub	w10, w2, w11
	tbnz	w12, #31, LBB0_11
; %bb.8:
	mov	w12, #32769
	sub	w8, w12, w8
	mul	w8, w8, w11
	sub	w8, w2, w8, lsr #15
	cbz	w9, LBB0_15
; %bb.9:
	cmp	w9, #2
	b.eq	LBB0_16
; %bb.10:
	mov	x11, x10
	mov	x12, x2
	b	LBB0_14
LBB0_11:
	mov	w12, #32769
	add	w8, w8, w12
	mul	w8, w8, w11
	sub	w8, w2, w8, lsr #15
	cbz	w9, LBB0_17
; %bb.12:
	cmp	w9, #2
	b.eq	LBB0_18
; %bb.13:
	mov	x11, x8
	mov	x12, x2
	mov	x8, x10
LBB0_14:
	cmp	w9, #1
	b.eq	LBB0_5
	b	LBB0_6
LBB0_15:
	mov	x11, x2
	mov	x12, x8
	mov	x8, x10
	b	LBB0_5
LBB0_16:
	mov	x11, x8
	mov	x12, x10
	b	LBB0_2
LBB0_17:
	mov	x11, x2
	mov	x12, x10
	b	LBB0_5
LBB0_18:
	mov	x11, x10
	mov	x12, x8
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_qcm_hsv2rgb
.subsections_via_symbols
