	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function set_line_smooth_fade_parameters
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_set_line_smooth_fade_parameters:       ## @set_line_smooth_fade_parameters
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	js	LBB0_1
## %bb.2:
	cvtsi2ss	%rsi, %xmm2
	jmp	LBB0_3
LBB0_1:
	movq	%rsi, %rax
	shrq	%rax
	andl	$1, %esi
	orq	%rax, %rsi
	cvtsi2ss	%rsi, %xmm2
	addss	%xmm2, %xmm2
LBB0_3:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	24(%rbp), %r10
	movq	16(%rbp), %rax
	testq	%rdx, %rdx
	js	LBB0_4
## %bb.5:
	cvtsi2ss	%rdx, %xmm3
	jmp	LBB0_6
LBB0_4:
	movq	%rdx, %rsi
	shrq	%rsi
	andl	$1, %edx
	orq	%rsi, %rdx
	cvtsi2ss	%rdx, %xmm3
	addss	%xmm3, %xmm3
LBB0_6:
	movq	32(%rbp), %r11
	addss	%xmm3, %xmm3
	movaps	%xmm2, %xmm1
	subss	%xmm3, %xmm1
	divss	%xmm2, %xmm1
	movq	%rax, %rsi
	subq	$1, %rsi
	cmovbq	%r8, %rsi
	movq	%rsi, (%r10)
	testq	%rcx, %rcx
	js	LBB0_7
## %bb.8:
	cvtsi2ss	%rcx, %xmm4
	jmp	LBB0_9
LBB0_7:
	movq	%rcx, %rsi
	shrq	%rsi
	movl	%ecx, %edx
	andl	$1, %edx
	orq	%rsi, %rdx
	cvtsi2ss	%rdx, %xmm4
	addss	%xmm4, %xmm4
LBB0_9:
	movaps	LCPI0_0(%rip), %xmm3            ## xmm3 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm1, %xmm3
	xorps	%xmm2, %xmm2
	movaps	%xmm0, %xmm5
	subss	%xmm4, %xmm5
	movss	%xmm5, (%r11)
	imulq	%r9, %rcx
	testq	%rcx, %rcx
	js	LBB0_10
## %bb.11:
	xorps	%xmm4, %xmm4
	cvtsi2ss	%rcx, %xmm4
	jmp	LBB0_12
LBB0_10:
	movq	%rcx, %rdx
	shrq	%rdx
	andl	$1, %ecx
	orq	%rdx, %rcx
	xorps	%xmm4, %xmm4
	cvtsi2ss	%rcx, %xmm4
	addss	%xmm4, %xmm4
LBB0_12:
	movq	56(%rbp), %rcx
	movq	48(%rbp), %rdx
	movq	40(%rbp), %rsi
	xorps	%xmm5, %xmm5
	maxss	%xmm1, %xmm5
	maxss	%xmm3, %xmm2
	addq	%r9, %rax
	movaps	%xmm2, %xmm1
	testl	%edi, %edi
	je	LBB0_14
## %bb.13:
	movaps	%xmm5, %xmm1
LBB0_14:
	movq	64(%rbp), %rdi
	movss	%xmm1, (%rsi)
	movq	%rax, (%rdx)
	addss	%xmm0, %xmm4
	movss	%xmm4, (%rcx)
	je	LBB0_16
## %bb.15:
	movaps	%xmm2, %xmm5
LBB0_16:
	movss	%xmm5, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_set_line_smooth_fade_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_line_smooth_fade_parameters
_set_line_smooth_fade_parameters:       ; @set_line_smooth_fade_parameters
	.cfi_startproc
; %bb.0:
	ldp	x9, x8, [sp, #24]
	ldp	x11, x10, [sp, #8]
	ucvtf	s1, x1
	ldr	x12, [sp]
	ucvtf	s2, x2
	fmov	s3, #-2.00000000
	fmadd	s2, s2, s3, s1
	fdiv	s1, s2, s1
	fneg	s2, s1
	movi	d3, #0000000000000000
	fmax	s1, s1, s3
	fmax	s2, s2, s3
	sub	x13, x6, #1
	cmp	x6, #0
	csel	x13, x4, x13, eq
	str	x13, [x7]
	ucvtf	s3, x3
	fsub	s3, s0, s3
	str	s3, [x12]
	cmp	w0, #0
	fcsel	s3, s2, s1, eq
	str	s3, [x11]
	add	x11, x6, x5
	str	x11, [x10]
	mul	x10, x5, x3
	ucvtf	s3, x10
	fadd	s0, s3, s0
	str	s0, [x9]
	fcsel	s0, s1, s2, eq
	str	s0, [x8]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_set_line_smooth_fade_parameters
.subsections_via_symbols
