	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function blend_normal_16bit
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_blend_normal_16bit:                    ## @blend_normal_16bit
	.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	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, 24(%rbp)
	jle	LBB0_20
## %bb.1:
	movq	%r8, %r14
	movl	16(%rbp), %edx
	movq	32(%rbp), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	movl	%r9d, %esi
	shrl	$31, %esi
	addl	%r9d, %esi
	sarl	%esi
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movslq	%esi, %r10
	movl	%edx, %esi
	movslq	%ecx, %r13
	movslq	%eax, %rdx
	movl	%esi, %eax
	shlq	$3, %r10
	shlq	$3, %r13
	shlq	$3, %rdx
	movl	%eax, %ecx
	andl	$-4, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	addq	$-4, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rbx
	shrq	$2, %rbx
	incq	%rbx
	movddup	%xmm1, %xmm2                    ## xmm2 = xmm1[0,0]
	movddup	%xmm0, %xmm3                    ## xmm3 = xmm0[0,0]
	movq	%rbx, %rcx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	andq	$-2, %rbx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rcx
	negq	%rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r8, %r11
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	movq	%rdi, %r8
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	%r10, %r11
	addq	%r13, %r8
	addq	%rdx, %r9
	incq	%r12
	cmpl	24(%rbp), %r12d
	je	LBB0_20
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	testl	%esi, %esi
	jle	LBB0_19
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$4, %esi
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, %r15d
	movq	%r10, %rsi
	imulq	%r12, %rsi
	addq	%r14, %rsi
	movq	%r13, %rcx
	imulq	%r12, %rcx
	addq	%rdi, %rcx
	movq	%rsi, %rbx
	subq	%rcx, %rbx
	cmpq	$32, %rbx
	jb	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, %rcx
	imulq	%r12, %rcx
	addq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	subq	%rcx, %rsi
	movl	$0, %ecx
	cmpq	$32, %rsi
	movl	%r15d, %esi
	jb	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movupd	(%r8,%r14,8), %xmm4
	movupd	16(%r8,%r14,8), %xmm5
	movupd	(%r9,%r14,8), %xmm6
	movupd	16(%r9,%r14,8), %xmm7
	mulpd	%xmm2, %xmm6
	mulpd	%xmm2, %xmm7
	mulpd	%xmm3, %xmm4
	addpd	%xmm6, %xmm4
	mulpd	%xmm3, %xmm5
	addpd	%xmm7, %xmm5
	movupd	%xmm4, (%r11,%r14,8)
	movupd	%xmm5, 16(%r11,%r14,8)
	movupd	32(%r8,%r14,8), %xmm4
	movupd	48(%r8,%r14,8), %xmm5
	movupd	32(%r9,%r14,8), %xmm6
	movupd	48(%r9,%r14,8), %xmm7
	mulpd	%xmm2, %xmm6
	mulpd	%xmm2, %xmm7
	mulpd	%xmm3, %xmm4
	addpd	%xmm6, %xmm4
	mulpd	%xmm3, %xmm5
	addpd	%xmm7, %xmm5
	movupd	%xmm4, 32(%r11,%r14,8)
	movupd	%xmm5, 48(%r11,%r14,8)
	addq	$8, %r14
	addq	$-2, %r15
	jne	LBB0_11
	jmp	LBB0_12
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	movl	%r15d, %esi
	jmp	LBB0_15
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, -64(%rbp)                   ## 1-byte Folded Reload
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movupd	(%r8,%r14,8), %xmm4
	movupd	16(%r8,%r14,8), %xmm5
	movupd	(%r9,%r14,8), %xmm6
	movupd	16(%r9,%r14,8), %xmm7
	mulpd	%xmm2, %xmm6
	mulpd	%xmm2, %xmm7
	mulpd	%xmm3, %xmm4
	addpd	%xmm6, %xmm4
	mulpd	%xmm3, %xmm5
	addpd	%xmm7, %xmm5
	movupd	%xmm4, (%r11,%r14,8)
	movupd	%xmm5, 16(%r11,%r14,8)
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	cmpq	%rax, %rbx
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_19
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %rbx
	testb	$1, %al
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movsd	(%r9,%rcx,8), %xmm4             ## xmm4 = mem[0],zero
	mulsd	%xmm1, %xmm4
	movsd	(%r8,%rcx,8), %xmm5             ## xmm5 = mem[0],zero
	mulsd	%xmm0, %xmm5
	addsd	%xmm4, %xmm5
	movsd	%xmm5, (%r11,%rcx,8)
	movq	%rcx, %rbx
	orq	$1, %rbx
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	notq	%rcx
	cmpq	-104(%rbp), %rcx                ## 8-byte Folded Reload
	je	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	(%r9,%rbx,8), %xmm4             ## xmm4 = mem[0],zero
	mulsd	%xmm1, %xmm4
	movsd	(%r8,%rbx,8), %xmm5             ## xmm5 = mem[0],zero
	mulsd	%xmm0, %xmm5
	addsd	%xmm4, %xmm5
	movsd	%xmm5, (%r11,%rbx,8)
	movsd	8(%r9,%rbx,8), %xmm4            ## xmm4 = mem[0],zero
	mulsd	%xmm1, %xmm4
	movsd	8(%r8,%rbx,8), %xmm5            ## xmm5 = mem[0],zero
	mulsd	%xmm0, %xmm5
	addsd	%xmm4, %xmm5
	movsd	%xmm5, 8(%r11,%rbx,8)
	addq	$2, %rbx
	cmpq	%rbx, %rax
	jne	LBB0_18
	jmp	LBB0_19
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_blend_normal_16bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function blend_normal_16bit
_blend_normal_16bit:                    ; @blend_normal_16bit
	.cfi_startproc
; %bb.0:
	cmp	w7, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x8, #0
	ldr	x9, [sp]
	ldr	d0, [x9]
	cmp	w3, #0
	cinc	w9, w3, lt
	asr	w12, w9, #1
	cmp	w1, #0
	cinc	w9, w1, lt
	asr	w11, w9, #1
	cmp	w5, #0
	cinc	w9, w5, lt
	asr	w10, w9, #1
	fmov	d1, #1.00000000
	fsub	d1, d1, d0
	mov	w9, w6
	sbfiz	x10, x10, #3, #32
	sbfiz	x11, x11, #3, #32
	sbfiz	x12, x12, #3, #32
	and	x13, x9, #0xfffffff8
	dup.2d	v2, v1[0]
	lsl	x14, x9, #3
	dup.2d	v3, v0[0]
	and	x14, x14, #0x7ffffffc0
	mov	x15, x2
	mov	x16, x0
	mov	x17, x4
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	add	x17, x17, x10
	add	x16, x16, x11
	add	x15, x15, x12
	cmp	w8, w7
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	cmp	w6, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w6, #8
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, #0
	b	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, #0
	madd	x3, x10, x8, x4
	madd	x5, x11, x8, x0
	sub	x5, x3, x5
	cmp	x5, #64
	b.lo	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x5, x12, x8, x2
	sub	x3, x3, x5
	cmp	x3, #64
	b.lo	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, #0
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x3, x16, x1
	ldp	q4, q5, [x3]
	ldp	q6, q7, [x3, #32]
	add	x3, x15, x1
	ldp	q16, q17, [x3]
	ldp	q18, q19, [x3, #32]
	fmul.2d	v16, v2, v16
	fmul.2d	v17, v2, v17
	fmul.2d	v18, v2, v18
	fmul.2d	v19, v19, v1[0]
	fmla.2d	v16, v3, v4
	fmla.2d	v17, v3, v5
	fmla.2d	v18, v3, v6
	fmla.2d	v19, v3, v7
	add	x3, x17, x1
	stp	q16, q17, [x3]
	stp	q18, q19, [x3, #32]
	add	x1, x1, #64
	cmp	x14, x1
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x13
	cmp	x13, x9
	b.eq	LBB0_2
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x3, x1, #3
	ldr	d4, [x16, x3]
	ldr	d5, [x15, x3]
	fmul	d5, d1, d5
	fmadd	d4, d4, d0, d5
	str	d4, [x17, x3]
	add	x1, x1, #1
	cmp	x9, x1
	b.ne	LBB0_11
	b	LBB0_2
LBB0_12:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_blend_normal_16bit
.subsections_via_symbols
