	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function blend_line_gradient
LCPI0_0:
	.long	0x40000000                      ## float 2
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_blend_line_gradient:                   ## @blend_line_gradient
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	subss	64(%rdi), %xmm0
	divss	68(%rdi), %xmm0
	movq	(%rdi), %rax
	movq	_WrapModeTile@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	callq	_fmodf
	xorps	%xmm1, %xmm1
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_5
## %bb.2:
	addss	LCPI0_1(%rip), %xmm0
	jmp	LBB0_5
LBB0_3:
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	callq	_fmodf
	movss	LCPI0_0(%rip), %xmm4            ## xmm4 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm1
	movaps	%xmm0, %xmm2
	addss	%xmm4, %xmm2
	xorps	%xmm3, %xmm3
	cmpltss	%xmm3, %xmm0
	andps	%xmm0, %xmm2
	andnps	%xmm1, %xmm0
	orps	%xmm2, %xmm0
	ucomiss	LCPI0_1(%rip), %xmm0
	jbe	LBB0_5
## %bb.4:
	subss	%xmm0, %xmm4
	movaps	%xmm4, %xmm0
LBB0_5:
	movabsq	$-4294967296, %rax              ## imm = 0xFFFFFFFF00000000
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	cmpl	$1, 8(%rbx)
	je	LBB0_9
## %bb.6:
	movq	16(%rbx), %rsi
	xorl	%edi, %edi
	movq	%rax, %rdx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movss	4(%rsi,%rdi,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	addq	%rcx, %rdx
	incq	%rdi
	ucomiss	%xmm1, %xmm0
	ja	LBB0_7
## %bb.8:
	movl	%edi, %edi
	sarq	$30, %rdx
	movss	(%rsi,%rdx), %xmm2              ## xmm2 = mem[0],zero,zero,zero
	movq	24(%rbx), %rsi
	movaps	%xmm1, %xmm3
	subss	%xmm2, %xmm3
	subss	%xmm0, %xmm1
	subss	%xmm2, %xmm0
	mulss	(%rsi,%rdi,4), %xmm0
	mulss	(%rsi,%rdx), %xmm1
	addss	%xmm0, %xmm1
	divss	%xmm3, %xmm1
	movaps	%xmm1, %xmm0
LBB0_9:
	cmpq	$0, 32(%rbx)
	je	LBB0_13
## %bb.10:
	movq	40(%rbx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movss	4(%rdx,%rsi,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	addq	%rcx, %rax
	incq	%rsi
	ucomiss	%xmm1, %xmm0
	ja	LBB0_11
## %bb.12:
	movl	%esi, %ecx
	sarq	$30, %rax
	movss	(%rdx,%rax), %xmm2              ## xmm2 = mem[0],zero,zero,zero
	movq	48(%rbx), %rdx
	movl	(%rdx,%rax), %edi
	movl	(%rdx,%rcx,4), %esi
	subss	%xmm2, %xmm0
	subss	%xmm2, %xmm1
	divss	%xmm1, %xmm0
	jmp	LBB0_14
LBB0_13:
	movl	56(%rbx), %esi
	movl	60(%rbx), %edi
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_blend_colors                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WrapModeTile,8,3               ## @WrapModeTile
	.no_dead_strip	_blend_line_gradient
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function blend_line_gradient
_blend_line_gradient:                   ; @blend_line_gradient
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	mov	x19, x0
	ldp	s1, s2, [x0, #64]
	fsub	s0, s0, s1
	fdiv	s0, s0, s2
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _WrapModeTile@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WrapModeTile@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	fmov	s8, #1.00000000
	fmov	s1, #1.00000000
	bl	_fmodf
	fcmp	s0, #0.0
	fadd	s1, s0, s8
	fcsel	s0, s0, s1, pl
	b	LBB0_4
LBB0_2:
	fmov	s8, #2.00000000
	fmov	s1, #2.00000000
	bl	_fmodf
	fadd	s1, s0, s8
	fcmp	s0, #0.0
	fcsel	s0, s1, s0, mi
	fmov	s1, #1.00000000
	fcmp	s0, s1
	b.le	LBB0_4
; %bb.3:
	fsub	s0, s8, s0
LBB0_4:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.eq	LBB0_8
; %bb.5:
	mov	x8, #0
	ldr	x9, [x19, #16]
	add	x11, x9, #4
	mov	x10, #-4294967296
	mov	x12, #4294967296
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s1, [x11, x8, lsl #2]
	add	x10, x10, x12
	add	x8, x8, #1
	fcmp	s0, s1
	b.gt	LBB0_6
; %bb.7:
	asr	x10, x10, #30
	ldr	s2, [x9, x10]
	ldr	x9, [x19, #24]
	ldr	s3, [x9, x10]
	ldr	s4, [x9, w8, uxtw #2]
	fsub	s5, s1, s2
	fsub	s1, s1, s0
	fsub	s0, s0, s2
	fmul	s0, s0, s4
	fmadd	s0, s3, s1, s0
	fdiv	s0, s0, s5
LBB0_8:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_12
; %bb.9:
	mov	x8, #0
	ldr	x9, [x19, #40]
	add	x11, x9, #4
	mov	x10, #-4294967296
	mov	x12, #4294967296
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	s1, [x11, x8, lsl #2]
	add	x10, x10, x12
	add	x8, x8, #1
	fcmp	s0, s1
	b.gt	LBB0_10
; %bb.11:
	asr	x10, x10, #30
	ldr	s2, [x9, x10]
	ldr	x9, [x19, #48]
	ldr	w0, [x9, x10]
	ldr	w1, [x9, w8, uxtw #2]
	fsub	s0, s0, s2
	fsub	s1, s1, s2
	fdiv	s0, s0, s1
	b	LBB0_13
LBB0_12:
	ldp	w1, w0, [x19, #56]
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	b	_blend_colors
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WrapModeTile,8,3               ; @WrapModeTile
	.no_dead_strip	_blend_line_gradient
.subsections_via_symbols
