	.file	"245636.c"
	.intel_syntax noprefix
	.text
	.globl	commodore_palette
	.data
	.align 32
	.type	commodore_palette, @object
	.size	commodore_palette, 32
commodore_palette:
	.value	0
	.value	4095
	.value	2048
	.value	2814
	.value	3148
	.value	197
	.value	10
	.value	3815
	.value	3461
	.value	1600
	.value	3959
	.value	819
	.value	1911
	.value	2806
	.value	143
	.value	3003
	.text
	.globl	HSVToRGB
	.type	HSVToRGB, @function
HSVToRGB:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	pxor	xmm0, xmm0
	movsd	QWORD PTR -56[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -48[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -40[rbp], xmm0
	movsd	xmm0, QWORD PTR 24[rbp]
	pxor	xmm1, xmm1
	ucomisd	xmm0, xmm1
	jp	.L2
	pxor	xmm1, xmm1
	ucomisd	xmm0, xmm1
	jne	.L2
	movsd	xmm0, QWORD PTR 32[rbp]
	movsd	QWORD PTR -56[rbp], xmm0
	movsd	xmm0, QWORD PTR 32[rbp]
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm0, QWORD PTR 32[rbp]
	movsd	QWORD PTR -40[rbp], xmm0
	jmp	.L4
.L2:
	movsd	xmm0, QWORD PTR 16[rbp]
	ucomisd	xmm0, QWORD PTR .LC1[rip]
	jp	.L5
	ucomisd	xmm0, QWORD PTR .LC1[rip]
	jne	.L5
	pxor	xmm0, xmm0
	movsd	QWORD PTR 16[rbp], xmm0
	jmp	.L7
.L5:
	movsd	xmm0, QWORD PTR 16[rbp]
	movsd	xmm1, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR 16[rbp], xmm0
.L7:
	mov	rax, QWORD PTR 16[rbp]
	movq	xmm0, rax
	call	trunc@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -60[rbp], eax
	movsd	xmm0, QWORD PTR 16[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -60[rbp]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	movsd	xmm1, QWORD PTR 32[rbp]
	movsd	xmm2, QWORD PTR 24[rbp]
	movsd	xmm0, QWORD PTR .LC3[rip]
	subsd	xmm0, xmm2
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm1, QWORD PTR 32[rbp]
	movsd	xmm0, QWORD PTR 24[rbp]
	movapd	xmm2, xmm0
	mulsd	xmm2, QWORD PTR -32[rbp]
	movsd	xmm0, QWORD PTR .LC3[rip]
	subsd	xmm0, xmm2
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm1, QWORD PTR 32[rbp]
	movsd	xmm2, QWORD PTR 24[rbp]
	movsd	xmm0, QWORD PTR .LC3[rip]
	subsd	xmm0, QWORD PTR -32[rbp]
	mulsd	xmm2, xmm0
	movsd	xmm0, QWORD PTR .LC3[rip]
	subsd	xmm0, xmm2
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	cmp	DWORD PTR -60[rbp], 4
	ja	.L8
	mov	eax, DWORD PTR -60[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L10[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L10[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L10:
	.long	.L14-.L10
	.long	.L13-.L10
	.long	.L12-.L10
	.long	.L11-.L10
	.long	.L9-.L10
	.text
.L14:
	movsd	xmm0, QWORD PTR 32[rbp]
	movsd	QWORD PTR -56[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -40[rbp], xmm0
	jmp	.L4
.L13:
	movsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -56[rbp], xmm0
	movsd	xmm0, QWORD PTR 32[rbp]
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -40[rbp], xmm0
	jmp	.L4
.L12:
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -56[rbp], xmm0
	movsd	xmm0, QWORD PTR 32[rbp]
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -40[rbp], xmm0
	jmp	.L4
.L11:
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -56[rbp], xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm0, QWORD PTR 32[rbp]
	movsd	QWORD PTR -40[rbp], xmm0
	jmp	.L4
.L9:
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -56[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm0, QWORD PTR 32[rbp]
	movsd	QWORD PTR -40[rbp], xmm0
	jmp	.L4
.L8:
	movsd	xmm0, QWORD PTR 32[rbp]
	movsd	QWORD PTR -56[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -40[rbp], xmm0
	nop
.L4:
	movsd	xmm1, QWORD PTR -56[rbp]
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	BYTE PTR -66[rbp], al
	movsd	xmm1, QWORD PTR -48[rbp]
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	BYTE PTR -65[rbp], al
	movsd	xmm1, QWORD PTR -40[rbp]
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	BYTE PTR -64[rbp], al
	movzx	eax, WORD PTR -66[rbp]
	mov	WORD PTR -63[rbp], ax
	movzx	eax, BYTE PTR -64[rbp]
	mov	BYTE PTR -61[rbp], al
	mov	eax, 0
	movzx	edx, WORD PTR -63[rbp]
	movzx	edx, dx
	mov	ax, 0
	or	rax, rdx
	movzx	edx, BYTE PTR -61[rbp]
	movzx	edx, dl
	sal	rdx, 16
	and	rax, -16711681
	or	rax, rdx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	HSVToRGB, .-HSVToRGB
	.section	.rodata
.LC5:
	.string	"%04x\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, commodore_palette[rip]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -52[rbp], 1
.L19:
	cmp	DWORD PTR -52[rbp], 15
	jle	.L20
	mov	DWORD PTR -48[rbp], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -48[rbp]
	sal	eax, 8
	mov	edx, eax
	mov	eax, DWORD PTR -48[rbp]
	sal	eax, 4
	or	eax, edx
	or	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -48[rbp], 1
.L21:
	cmp	DWORD PTR -48[rbp], 15
	jle	.L22
	mov	DWORD PTR -44[rbp], 0
	jmp	.L23
.L28:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L24
.L27:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L25
.L26:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -44[rbp]
	movsd	xmm2, QWORD PTR .LC6[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC1[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC7[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC8[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	sub	rsp, 8
	push	QWORD PTR -16[rbp]
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	call	HSVToRGB
	add	rsp, 32
	cdqe
	mov	BYTE PTR -55[rbp], al
	movzx	edx, ah
	mov	BYTE PTR -54[rbp], dl
	shr	rax, 16
	and	ah, -1
	mov	BYTE PTR -53[rbp], al
	movzx	eax, BYTE PTR -55[rbp]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -54[rbp]
	movzx	eax, al
	sal	eax, 4
	or	edx, eax
	movzx	eax, BYTE PTR -53[rbp]
	movzx	eax, al
	or	eax, edx
	mov	WORD PTR -58[rbp], ax
	movzx	eax, WORD PTR -58[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -36[rbp], 1
.L25:
	cmp	DWORD PTR -36[rbp], 6
	jle	.L26
	add	DWORD PTR -40[rbp], 1
.L24:
	cmp	DWORD PTR -40[rbp], 3
	jle	.L27
	add	DWORD PTR -44[rbp], 1
.L23:
	cmp	DWORD PTR -44[rbp], 7
	jle	.L28
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1081507840
	.align 8
.LC2:
	.long	0
	.long	1078853632
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.align 8
.LC4:
	.long	0
	.long	1076756480
	.align 8
.LC6:
	.long	0
	.long	1075838976
	.align 8
.LC7:
	.long	0
	.long	1074790400
	.align 8
.LC8:
	.long	0
	.long	1075576832
	.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	"245636.c"
	.text
	.global	commodore_palette
	.data
	.align	2
	.type	commodore_palette, %object
	.size	commodore_palette, 32
commodore_palette:
	.short	0
	.short	4095
	.short	2048
	.short	2814
	.short	3148
	.short	197
	.short	10
	.short	3815
	.short	3461
	.short	1600
	.short	3959
	.short	819
	.short	1911
	.short	2806
	.short	143
	.short	3003
	.global	__aeabi_dcmpeq
	.global	__aeabi_ddiv
	.global	__aeabi_d2iz
	.global	__aeabi_i2d
	.global	__aeabi_dsub
	.global	__aeabi_dmul
	.global	__aeabi_d2uiz
	.text
	.align	2
	.global	HSVToRGB
	.syntax unified
	.arm
	.fpu softvfp
	.type	HSVToRGB, %function
HSVToRGB:
	@ args = 24, pretend = 16, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #72
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	add	r1, fp, #12
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	b	.L4
.L18:
	ldmib	fp, {r0-r1}
	mov	r2, #0
	ldr	r3, .L20
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	mov	r2, #0
	mov	r3, #0
	stmib	fp, {r2-r3}
	b	.L7
.L19:
	ldmib	fp, {r0-r1}
	mov	r2, #0
	ldr	r3, .L20+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stmib	fp, {r2-r3}
.L7:
	ldmib	fp, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	trunc
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-80]
	ldmib	fp, {r4-r5}
	ldr	r0, [fp, #-80]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	add	r5, fp, #20
	ldmia	r5, {r4-r5}
	add	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, #0
	ldr	r1, .L20+8
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	add	r5, fp, #20
	ldmia	r5, {r4-r5}
	add	r1, fp, #12
	ldmia	r1, {r0-r1}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L20+8
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	add	r5, fp, #20
	ldmia	r5, {r4-r5}
	add	r7, fp, #12
	ldmia	r7, {r6-r7}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	mov	r0, #0
	ldr	r1, .L20+8
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L20+8
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-80]
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L8
.L10:
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L9
.L14:
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	b	.L4
.L13:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	b	.L4
.L12:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	b	.L4
.L11:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	b	.L4
.L9:
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	b	.L4
.L8:
	add	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	nop
.L4:
	mov	r2, #0
	ldr	r3, .L20+12
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [fp, #-88]
	mov	r2, #0
	ldr	r3, .L20+12
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [fp, #-87]
	mov	r2, #0
	ldr	r3, .L20+12
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [fp, #-86]
	sub	r3, fp, #84
	sub	r2, fp, #88
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	mov	r3, #0
	ldrb	r2, [fp, #-84]	@ zero_extendqisi2
	and	r2, r2, #255
	bic	r3, r3, #255
	orr	r3, r2, r3
	ldrb	r2, [fp, #-83]	@ zero_extendqisi2
	and	r2, r2, #255
	bic	r3, r3, #65280
	lsl	r2, r2, #8
	orr	r3, r2, r3
	ldrb	r2, [fp, #-82]	@ zero_extendqisi2
	and	r2, r2, #255
	bic	r3, r3, #16711680
	lsl	r2, r2, #16
	orr	r3, r2, r3
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, lr}
	add	sp, sp, #16
	bx	lr
.L21:
	.align	2
.L20:
	.word	1081507840
	.word	1078853632
	.word	1072693248
	.word	1076756480
	.size	HSVToRGB, .-HSVToRGB
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%04x\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L23
.L24:
	ldr	r2, .L34
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L34+4
	bl	printf
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L23:
	ldr	r3, [fp, #-48]
	cmp	r3, #15
	ble	.L24
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L25
.L26:
	ldr	r3, [fp, #-44]
	lsl	r2, r3, #8
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #4
	orr	r2, r2, r3
	ldr	r3, [fp, #-44]
	orr	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L34+4
	bl	printf
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L25:
	ldr	r3, [fp, #-44]
	cmp	r3, #15
	ble	.L26
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L27
.L32:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L28
.L31:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L29
.L30:
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L34+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L34+12
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L34+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L34+20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r2, sp
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	sub	r3, fp, #28
	ldm	r3, {r0, r1, r2, r3}
	bl	HSVToRGB
	mov	r3, r0
	mov	r2, r3
	strb	r2, [fp, #-52]
	lsr	r2, r3, #8
	strb	r2, [fp, #-51]
	lsr	r3, r3, #16
	strb	r3, [fp, #-50]
	ldrb	r3, [fp, #-52]	@ zero_extendqisi2
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrb	r3, [fp, #-51]	@ zero_extendqisi2
	lsl	r3, r3, #4
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrb	r3, [fp, #-50]	@ zero_extendqisi2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-54]	@ movhi
	ldrh	r3, [fp, #-54]
	mov	r1, r3
	ldr	r0, .L34+4
	bl	printf
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L29:
	ldr	r3, [fp, #-32]
	cmp	r3, #6
	ble	.L30
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L28:
	ldr	r3, [fp, #-36]
	cmp	r3, #3
	ble	.L31
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L27:
	ldr	r3, [fp, #-40]
	cmp	r3, #7
	ble	.L32
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	commodore_palette
	.word	.LC0
	.word	1075838976
	.word	1081507840
	.word	1074790400
	.word	1075576832
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
