	.file	"214587.c"
	.intel_syntax noprefix
	.text
	.globl	hsv2rgb
	.type	hsv2rgb, @function
hsv2rgb:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	ecx, esi
	mov	WORD PTR -20[rbp], ax
	mov	eax, ecx
	mov	BYTE PTR -24[rbp], al
	mov	eax, edx
	mov	BYTE PTR -28[rbp], al
	movzx	edx, WORD PTR -20[rbp]
	mov	eax, edx
	sal	eax, 8
	sub	eax, edx
	shr	eax, 3
	mov	eax, eax
	imul	rax, rax, 381774871
	shr	rax, 32
	shr	eax, 2
	mov	WORD PTR -20[rbp], ax
	movzx	edx, BYTE PTR -24[rbp]
	mov	eax, edx
	sal	eax, 8
	sub	eax, edx
	shr	ax, 2
	movzx	eax, ax
	imul	eax, eax, 5243
	shr	eax, 16
	shr	ax
	mov	BYTE PTR -24[rbp], al
	movzx	edx, BYTE PTR -28[rbp]
	mov	eax, edx
	sal	eax, 8
	sub	eax, edx
	shr	ax, 2
	movzx	eax, ax
	imul	eax, eax, 5243
	shr	eax, 16
	shr	ax
	mov	BYTE PTR -28[rbp], al
	cmp	BYTE PTR -24[rbp], 0
	jne	.L2
	movzx	eax, BYTE PTR -28[rbp]
	sal	eax, 24
	mov	edx, eax
	movzx	eax, BYTE PTR -28[rbp]
	sal	eax, 16
	or	edx, eax
	movzx	eax, BYTE PTR -28[rbp]
	sal	eax, 8
	or	eax, edx
	jmp	.L3
.L2:
	movzx	eax, WORD PTR -20[rbp]
	movzx	eax, ax
	imul	eax, eax, 48771
	shr	eax, 16
	shr	ax, 5
	mov	BYTE PTR -5[rbp], al
	movzx	edx, WORD PTR -20[rbp]
	movzx	eax, BYTE PTR -5[rbp]
	imul	eax, eax, -43
	add	eax, edx
	mov	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	mov	BYTE PTR -4[rbp], al
	movzx	eax, BYTE PTR -28[rbp]
	movzx	ecx, BYTE PTR -24[rbp]
	mov	edx, 255
	sub	edx, ecx
	imul	eax, edx
	sar	eax, 8
	mov	BYTE PTR -3[rbp], al
	movzx	eax, BYTE PTR -28[rbp]
	movzx	ecx, BYTE PTR -24[rbp]
	movzx	edx, BYTE PTR -4[rbp]
	imul	edx, ecx
	mov	ecx, edx
	sar	ecx, 8
	mov	edx, 255
	sub	edx, ecx
	imul	eax, edx
	sar	eax, 8
	mov	BYTE PTR -2[rbp], al
	movzx	eax, BYTE PTR -28[rbp]
	movzx	edx, BYTE PTR -24[rbp]
	movzx	esi, BYTE PTR -4[rbp]
	mov	ecx, 255
	sub	ecx, esi
	imul	edx, ecx
	mov	ecx, edx
	sar	ecx, 8
	mov	edx, 255
	sub	edx, ecx
	imul	eax, edx
	sar	eax, 8
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -5[rbp]
	cmp	eax, 4
	ja	.L4
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L6[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L6[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
.L10:
	movzx	eax, BYTE PTR -28[rbp]
	mov	BYTE PTR -8[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	mov	BYTE PTR -7[rbp], al
	movzx	eax, BYTE PTR -3[rbp]
	mov	BYTE PTR -6[rbp], al
	jmp	.L11
.L9:
	movzx	eax, BYTE PTR -2[rbp]
	mov	BYTE PTR -8[rbp], al
	movzx	eax, BYTE PTR -28[rbp]
	mov	BYTE PTR -7[rbp], al
	movzx	eax, BYTE PTR -3[rbp]
	mov	BYTE PTR -6[rbp], al
	jmp	.L11
.L8:
	movzx	eax, BYTE PTR -3[rbp]
	mov	BYTE PTR -8[rbp], al
	movzx	eax, BYTE PTR -28[rbp]
	mov	BYTE PTR -7[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	mov	BYTE PTR -6[rbp], al
	jmp	.L11
.L7:
	movzx	eax, BYTE PTR -3[rbp]
	mov	BYTE PTR -8[rbp], al
	movzx	eax, BYTE PTR -2[rbp]
	mov	BYTE PTR -7[rbp], al
	movzx	eax, BYTE PTR -28[rbp]
	mov	BYTE PTR -6[rbp], al
	jmp	.L11
.L5:
	movzx	eax, BYTE PTR -1[rbp]
	mov	BYTE PTR -8[rbp], al
	movzx	eax, BYTE PTR -3[rbp]
	mov	BYTE PTR -7[rbp], al
	movzx	eax, BYTE PTR -28[rbp]
	mov	BYTE PTR -6[rbp], al
	jmp	.L11
.L4:
	movzx	eax, BYTE PTR -28[rbp]
	mov	BYTE PTR -8[rbp], al
	movzx	eax, BYTE PTR -3[rbp]
	mov	BYTE PTR -7[rbp], al
	movzx	eax, BYTE PTR -2[rbp]
	mov	BYTE PTR -6[rbp], al
	nop
.L11:
	movzx	eax, BYTE PTR -8[rbp]
	sal	eax, 16
	mov	edx, eax
	movzx	eax, BYTE PTR -7[rbp]
	sal	eax, 8
	or	edx, eax
	movzx	eax, BYTE PTR -6[rbp]
	or	eax, edx
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	hsv2rgb, .-hsv2rgb
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"214587.c"
	.text
	.align	2
	.global	hsv2rgb
	.syntax unified
	.arm
	.fpu softvfp
	.type	hsv2rgb, %function
hsv2rgb:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	mov	r3, r0
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, r1
	strb	r3, [fp, #-15]
	mov	r3, r2
	strb	r3, [fp, #-16]
	ldrh	r2, [fp, #-14]
	mov	r3, r2
	lsl	r3, r3, #8
	sub	r3, r3, r2
	lsr	r3, r3, #3
	ldr	r2, .L12
	umull	r1, r3, r2, r3
	lsr	r3, r3, #2
	strh	r3, [fp, #-14]	@ movhi
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3	@ movhi
	lsl	r2, r2, #8
	sub	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L12+4
	umull	r1, r3, r2, r3
	lsr	r3, r3, #5
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strb	r3, [fp, #-15]
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3	@ movhi
	lsl	r2, r2, #8
	sub	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L12+4
	umull	r1, r3, r2, r3
	lsr	r3, r3, #5
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strb	r3, [fp, #-16]
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L2
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	lsl	r2, r3, #24
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	b	.L3
.L2:
	ldrh	r3, [fp, #-14]
	ldr	r2, .L12+8
	umull	r1, r3, r2, r3
	lsr	r3, r3, #3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strb	r3, [fp, #-9]
	ldrh	r2, [fp, #-14]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	mvn	r1, #42
	mul	r3, r1, r3
	add	r3, r2, r3
	and	r3, r3, #255
	mov	r2, r3
	lsl	r2, r2, #1
	add	r3, r2, r3
	lsl	r3, r3, #1
	strb	r3, [fp, #-8]
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	ldrb	r2, [fp, #-15]	@ zero_extendqisi2
	rsb	r2, r2, #255
	mul	r3, r2, r3
	asr	r3, r3, #8
	strb	r3, [fp, #-7]
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	ldrb	r2, [fp, #-15]	@ zero_extendqisi2
	ldrb	r1, [fp, #-8]	@ zero_extendqisi2
	mul	r2, r1, r2
	asr	r2, r2, #8
	rsb	r2, r2, #255
	mul	r3, r2, r3
	asr	r3, r3, #8
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	ldrb	r2, [fp, #-15]	@ zero_extendqisi2
	ldrb	r1, [fp, #-8]	@ zero_extendqisi2
	rsb	r1, r1, #255
	mul	r2, r1, r2
	asr	r2, r2, #8
	rsb	r2, r2, #255
	mul	r3, r2, r3
	asr	r3, r3, #8
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L10:
	ldrb	r3, [fp, #-16]
	strb	r3, [fp, #-12]
	ldrb	r3, [fp, #-5]
	strb	r3, [fp, #-11]
	ldrb	r3, [fp, #-7]
	strb	r3, [fp, #-10]
	b	.L11
.L9:
	ldrb	r3, [fp, #-6]
	strb	r3, [fp, #-12]
	ldrb	r3, [fp, #-16]
	strb	r3, [fp, #-11]
	ldrb	r3, [fp, #-7]
	strb	r3, [fp, #-10]
	b	.L11
.L8:
	ldrb	r3, [fp, #-7]
	strb	r3, [fp, #-12]
	ldrb	r3, [fp, #-16]
	strb	r3, [fp, #-11]
	ldrb	r3, [fp, #-5]
	strb	r3, [fp, #-10]
	b	.L11
.L7:
	ldrb	r3, [fp, #-7]
	strb	r3, [fp, #-12]
	ldrb	r3, [fp, #-6]
	strb	r3, [fp, #-11]
	ldrb	r3, [fp, #-16]
	strb	r3, [fp, #-10]
	b	.L11
.L5:
	ldrb	r3, [fp, #-5]
	strb	r3, [fp, #-12]
	ldrb	r3, [fp, #-7]
	strb	r3, [fp, #-11]
	ldrb	r3, [fp, #-16]
	strb	r3, [fp, #-10]
	b	.L11
.L4:
	ldrb	r3, [fp, #-16]
	strb	r3, [fp, #-12]
	ldrb	r3, [fp, #-7]
	strb	r3, [fp, #-11]
	ldrb	r3, [fp, #-6]
	strb	r3, [fp, #-10]
	nop
.L11:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	lsl	r2, r3, #16
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r2, r2, r3
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	orr	r3, r2, r3
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L13:
	.align	2
.L12:
	.word	381774871
	.word	1374389535
	.word	799063683
	.size	hsv2rgb, .-hsv2rgb
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
