	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function blend_pixel16
_blend_pixel16:                         ## @blend_pixel16
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rbx
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	movl	%esi, -76(%rbp)                 ## 4-byte Spill
	movl	40(%rbp), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	32(%rbp), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	24(%rbp), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$7, %r12d
	movl	%r9d, %ecx
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	shrl	%cl, %r12d
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	$-1, %r13d
	movl	%eax, %ecx
	shll	%cl, %r13d
	notl	%r13d
	movl	$255, %eax
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, %r15d
	xorl	%r14d, %r14d
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_AV_RL16
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	movl	-60(%rbp), %r11d                ## 4-byte Reload
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	testl	%r9d, %r9d
	je	LBB0_11
## %bb.1:
	movl	$3, %edx
	subl	%r11d, %edx
	movslq	-44(%rbp), %r10                 ## 4-byte Folded Reload
	movl	%esi, %eax
	andl	$-2, %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	$-2, %eax
	subl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	xorl	%r14d, %r14d
	movq	%r10, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rbx,%r10,4), %rbx
	incl	%edi
	cmpl	%r9d, %edi
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%esi, %esi
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %esi
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r8d
	testb	$1, %sil
	je	LBB0_10
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	-84(%rbp), %r9d                 ## 4-byte Reload
	movl	-80(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %r8d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r8d, %esi
	movl	%edx, %ecx
	shrl	%cl, %esi
	leal	1(%rax), %edi
	andl	%r12d, %edi
	movl	%r11d, %ecx
	shll	%cl, %edi
	movl	(%rbx,%rsi,4), %r10d
	movl	%edi, %ecx
	shrl	%cl, %r10d
	andl	%r13d, %r10d
	imull	%r15d, %r10d
	addl	%r14d, %r10d
	leal	1(%r8), %esi
	movl	%edx, %ecx
	shrl	%cl, %esi
	movl	%r12d, %edi
	andl	%eax, %edi
	movl	%r11d, %ecx
	shll	%cl, %edi
	movl	(%rbx,%rsi,4), %r14d
	movl	%edi, %ecx
	shrl	%cl, %r14d
	andl	%r13d, %r14d
	imull	%r15d, %r14d
	addl	%r10d, %r14d
	addl	$2, %r8d
	addl	$-2, %eax
	addl	$-2, %r9d
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	-104(%rbp), %r10                ## 8-byte Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	testb	$1, %sil
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r8d, %eax
	movl	%edx, %ecx
	shrl	%cl, %eax
	notl	%r8d
	andl	%r12d, %r8d
	movl	%r11d, %ecx
	shll	%cl, %r8d
	movl	(%rbx,%rax,4), %eax
	movl	%r8d, %ecx
	shrl	%cl, %eax
	andl	%r13d, %eax
	imull	%r15d, %eax
	addl	%eax, %r14d
	jmp	LBB0_10
LBB0_11:
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %r14d
	imull	-72(%rbp), %r14d                ## 4-byte Folded Reload
	movl	$65537, %eax                    ## imm = 0x10001
	subl	%r14d, %eax
	imull	-64(%rbp), %eax                 ## 4-byte Folded Reload
	imull	-76(%rbp), %r14d                ## 4-byte Folded Reload
	addl	%eax, %r14d
	shrl	$16, %r14d
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AV_WL16                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_blend_pixel16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function blend_pixel16
_blend_pixel16:                         ; @blend_pixel16
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x7
	mov	x23, x6
	mov	x24, x5
	mov	x26, x4
	mov	x25, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldp	w27, w28, [x29, #16]
	bl	_AV_RL16
	cbz	w22, LBB0_11
; %bb.1:
	mov	w9, #0
	mov	w8, #0
	mov	w10, #3
	sub	w10, w10, w24
	mov	w11, #7
	lsr	w11, w11, w24
	mov	w12, #1
	lsl	w12, w12, w24
	mov	w13, #-1
	lsl	w12, w13, w12
	mvn	w12, w12
	mov	w17, #255
	sxtw	x13, w26
	and	w14, w23, #0xfffffffe
	add	w15, w14, w28
	mov	w16, #-2
	sub	w16, w16, w28
	udiv	w17, w17, w12
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, x13, lsl #2
	add	w9, w9, #1
	cmp	w9, w22
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	cbz	w23, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w23, #1
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w3, #0
	mov	x1, x28
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w1, #0
	mov	x2, x28
	mov	x3, x16
	mov	x4, x14
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w5, w2, #1
	lsr	w6, w2, w10
	lsr	w5, w5, w10
	ldr	w6, [x25, w6, uxtw #2]
	ldr	w5, [x25, w5, uxtw #2]
	add	w7, w3, #1
	and	w7, w11, w7
	and	w26, w11, w3
	lsl	w7, w7, w24
	lsl	w26, w26, w24
	lsr	w6, w6, w7
	lsr	w5, w5, w26
	and	w6, w6, w12
	and	w5, w5, w12
	madd	w8, w6, w17, w8
	madd	w1, w5, w17, w1
	sub	w3, w3, #2
	add	w2, w2, #2
	sub	w4, w4, #2
	cbnz	w4, LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w1, w8
	mov	x1, x15
	mov	x3, x14
	cmp	w14, w23
	b.eq	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mvn	w2, w1
	sub	w3, w23, w3
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsr	w4, w1, w10
	ldr	w4, [x25, w4, uxtw #2]
	and	w5, w11, w2
	lsl	w5, w5, w24
	lsr	w4, w4, w5
	and	w4, w4, w12
	madd	w8, w4, w17, w8
	add	w1, w1, #1
	sub	w2, w2, #1
	subs	w3, w3, #1
	b.ne	LBB0_10
	b	LBB0_2
LBB0_11:
	mov	w8, #0
LBB0_12:
	lsr	w8, w8, w27
	mul	w8, w8, w21
	mov	w9, #65537
	sub	w9, w9, w8
	mul	w8, w8, w20
	madd	w8, w9, w0, w8
	lsr	w1, w8, #16
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AV_WL16
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_blend_pixel16
.subsections_via_symbols
