	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsl_to_x
_hsl_to_x:                              ## @hsl_to_x
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movl	%edi, %ebx
	movl	$120, %edi
	movl	%edx, %esi
	callq	_min
                                        ## kill: def $eax killed $eax def $rax
	shll	$8, %eax
	movslq	%eax, %rcx
	imulq	$-2004318071, %rcx, %rcx        ## imm = 0x88888889
	shrq	$32, %rcx
	xorl	%edx, %edx
	cmpl	$80, %ebx
	jl	LBB0_6
## %bb.1:
	leal	(%rcx,%rax), %edx
	movl	%edx, %esi
	shrl	$31, %esi
	sarl	$6, %edx
	addl	%esi, %edx
	cmpl	$119, %ebx
	ja	LBB0_3
## %bb.2:
	addl	$-80, %ebx
	imull	%ebx, %edx
	jmp	LBB0_5
LBB0_3:
	cmpl	$200, %ebx
	jb	LBB0_6
## %bb.4:
	movl	$240, %esi
	subl	%ebx, %esi
	imull	%esi, %edx
LBB0_5:
	movslq	%edx, %rdx
	imulq	$1717986919, %rdx, %rdx         ## imm = 0x66666667
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$36, %rdx
	addl	%esi, %edx
LBB0_6:
	addl	%eax, %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	sarl	$7, %ecx
	addl	%eax, %ecx
	subl	%ecx, %edx
	imull	%r14d, %edx
	movslq	%edx, %rdi
	imulq	$-2004318071, %rdi, %rax        ## imm = 0x88888889
	shrq	$32, %rax
	addl	%eax, %edi
	movl	%edi, %eax
	shrl	$31, %eax
	sarl	$7, %edi
	addl	%eax, %edi
	addl	%ecx, %edi
	cmpl	$121, %r15d
	jl	LBB0_9
## %bb.7:
	cmpl	$255, %edi
	jg	LBB0_9
## %bb.8:
	addl	$-120, %r15d
	movl	$256, %eax                      ## imm = 0x100
	subl	%edi, %eax
	imull	%r15d, %eax
	cltq
	imulq	$-2004318071, %rax, %rcx        ## imm = 0x88888889
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$6, %eax
	addl	%ecx, %eax
	addl	%edi, %eax
	movl	%eax, %edi
LBB0_9:
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$255, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_min                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hsl_to_x
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsl_to_x
_hsl_to_x:                              ; @hsl_to_x
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w0, #120
	mov	x1, x2
	bl	_min
	lsl	w9, w0, #8
	mov	w8, #34953
	movk	w8, #34952, lsl #16
	smull	x10, w9, w8
	lsr	x10, x10, #32
	subs	w12, w21, #80
	b.ge	LBB0_2
; %bb.1:
	mov	w11, #0
	b	LBB0_6
LBB0_2:
	add	w11, w10, w9
	asr	w13, w11, #6
	add	w11, w13, w11, lsr #31
	cmp	w21, #119
	b.ls	LBB0_5
; %bb.3:
	cmp	w21, #200
	b.lo	LBB0_6
; %bb.4:
	mov	w12, #240
	sub	w12, w12, w21
LBB0_5:
	mul	w11, w11, w12
	mov	w12, #26215
	movk	w12, #26214, lsl #16
	smull	x11, w11, w12
	lsr	x12, x11, #63
	asr	x11, x11, #36
	add	w11, w11, w12
LBB0_6:
	add	w9, w10, w9
	asr	w10, w9, #7
	add	w9, w10, w9, lsr #31
	sub	w10, w11, w9
	mul	w10, w10, w20
	smull	x8, w10, w8
	lsr	x8, x8, #32
	add	w8, w8, w10
	asr	w10, w8, #7
	add	w8, w10, w8, lsr #31
	add	w0, w8, w9
	cmp	w19, #121
	b.lt	LBB0_9
; %bb.7:
	cmp	w0, #255
	b.gt	LBB0_9
; %bb.8:
	sub	w8, w19, #120
	mov	w9, #256
	sub	w9, w9, w0
	mul	w8, w9, w8
	mov	w9, #34953
	movk	w9, #34952, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #6
	add	w8, w9, w8, lsr #31
	add	w0, w8, w0
LBB0_9:
	mov	w1, #255
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_min
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hsl_to_x
.subsections_via_symbols
