	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function upsample_plane_c
LCPI0_0:
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
LCPI0_1:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_upsample_plane_c:                      ## @upsample_plane_c
	.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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	je	LBB0_12
## %bb.1:
	movl	%ecx, %r13d
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.2:
	movq	%rdi, %rcx
	movl	%edx, %eax
	andl	$1, %eax
	movq	%rdx, -192(%rbp)                ## 8-byte Spill
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	leal	(%rax,%rdx), %r15d
	movl	%r13d, %r14d
	andl	$1, %r14d
	leal	(%r14,%r13), %ebx
	decl	%ebx
	movl	%ebx, %eax
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	imull	%r12d, %eax
	cltq
	leaq	(%rdi,%rax,4), %rdi
	movl	%ebx, %eax
	sarl	%eax
	imull	%r12d, %eax
	cltq
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rax,4), %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movl	%ebx, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movslq	%r12d, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	%ebx, -92(%rbp)                 ## 4-byte Spill
	cmpl	$3, %ebx
	jl	LBB0_6
## %bb.3:
	leal	-1(%r15), %ebx
	movl	%ebx, %ecx
	sarl	%ecx
	sarl	$31, %ebx
	notl	%ebx
	andl	%ecx, %ebx
	movq	-112(%rbp), %r9                 ## 8-byte Reload
	leaq	-1(%r9), %r8
	movq	-120(%rbp), %rax                ## 8-byte Reload
	imulq	%rax, %r8
	leaq	(%rax,%rax), %rdx
	negq	%rdx
	movq	%rdx, -232(%rbp)                ## 8-byte Spill
	leaq	-2(%r9), %r10
	imulq	%rax, %r10
	leal	(%r14,%r13), %r12d
	addl	$-2, %r12d
	addl	%r13d, %r14d
	addl	$-3, %r14d
	movabsq	$4611686018427387902, %rdx      ## imm = 0x3FFFFFFFFFFFFFFE
	leaq	(%r9,%rdx), %rsi
	incq	%rsi
	imulq	%rax, %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rdi,%rsi,4), %rsi
	leaq	(%rsi,%rcx,4), %rsi
	movq	%rsi, -208(%rbp)                ## 8-byte Spill
	leaq	(,%rax,8), %rsi
	negq	%rsi
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	addq	%r9, %rdx
	imulq	%rax, %rdx
	leaq	(%rdi,%rdx,4), %rdx
	leaq	(%rdx,%rcx,4), %rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	leaq	1(%rbx), %rax
	movq	%rbx, -240(%rbp)                ## 8-byte Spill
	negq	%rbx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	andq	$-4, %rax
	movq	%rcx, %rdx
	subq	%rax, %rdx
	movq	%rdx, -168(%rbp)                ## 8-byte Spill
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	negq	%rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	leaq	(%r10,%rcx), %rax
	leaq	(%rdi,%r10,4), %rdx
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	leaq	(%r8,%rcx), %rdx
	leaq	(%rdi,%r8,4), %rsi
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [3,3,3,3]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [2,2,2,2]
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rdi,%rcx,4), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	leaq	(%rdi,%rax,4), %r8
	addq	$-12, %r8
	movq	%rdx, -224(%rbp)                ## 8-byte Spill
	leaq	(%rdi,%rdx,4), %r11
	addq	$-12, %r11
	xorl	%r10d, %r10d
	movl	%r12d, -100(%rbp)               ## 4-byte Spill
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	movl	%r14d, -96(%rbp)                ## 4-byte Spill
	movl	%r14d, %r12d
	movq	%r9, %rax
	movq	%r15, -248(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-256(%rbp), %rdx                ## 8-byte Reload
	leaq	-2(%rdx), %rax
	incq	%r10
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	addq	%rcx, %r8
	addq	%rcx, %r11
	addl	$-2, %r12d
	addl	$-2, -68(%rbp)                  ## 4-byte Folded Spill
	addq	%rcx, -144(%rbp)                ## 8-byte Folded Spill
	addq	%rcx, -136(%rbp)                ## 8-byte Folded Spill
	cmpq	$4, %rdx
	movq	-248(%rbp), %r15                ## 8-byte Reload
	jle	LBB0_6
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
                                        ##     Child Loop BB0_27 Depth 2
	movq	%rax, -256(%rbp)                ## 8-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %eax
	shrl	%eax
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	imull	%edx, %eax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	shrl	%ecx
	imull	%edx, %ecx
	movslq	%eax, %r9
	movslq	%ecx, %rbx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpl	$3, -240(%rbp)                  ## 4-byte Folded Reload
	jb	LBB0_26
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-232(%rbp), %rax                ## 8-byte Reload
	imulq	%r10, %rax
	movq	-224(%rbp), %rcx                ## 8-byte Reload
	addq	%rax, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rcx,%rdx,4), %rdx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpq	%rcx, %rdx
	ja	LBB0_26
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	-216(%rbp), %rax                ## 8-byte Folded Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rcx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpq	%rax, %rcx
	ja	LBB0_26
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	leal	(%r10,%r10), %eax
	movl	-100(%rbp), %ecx                ## 4-byte Reload
	subl	%eax, %ecx
	shrl	%ecx
	imull	-52(%rbp), %ecx                 ## 4-byte Folded Reload
	movslq	%ecx, %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rsi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rsi,%rcx,4), %rcx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpq	%rsi, %rcx
	ja	LBB0_26
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-96(%rbp), %ecx                 ## 4-byte Reload
	subl	%eax, %ecx
	shrl	%ecx
	imull	-52(%rbp), %ecx                 ## 4-byte Folded Reload
	movslq	%ecx, %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpq	%rcx, %rax
	ja	LBB0_26
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	imulq	%r10, %rdi
	movq	-208(%rbp), %rax                ## 8-byte Reload
	addq	%rdi, %rax
	addq	-200(%rbp), %rdi                ## 8-byte Folded Reload
	movq	%rax, %rdx
	subq	%rdi, %rdx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpq	$16, %rdx
	jb	LBB0_26
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsi, %rdx
	subq	%rax, %rdx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpq	$16, %rdx
	jb	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %rdx
	subq	%rax, %rdx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpq	$16, %rdx
	jb	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	subq	%rdi, %rsi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpq	$16, %rsi
	jb	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	subq	%rdi, %rcx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpq	$16, %rcx
	jb	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r9,4), %rsi
	addq	$-12, %rsi
	leaq	(%rax,%rbx,4), %rdi
	addq	$-12, %rdi
	xorl	%ecx, %ecx
	movq	-160(%rbp), %rax                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%rdi,%rcx,4), %xmm2
	pshufd	$27, %xmm2, %xmm2               ## xmm2 = xmm2[3,2,1,0]
	movdqu	(%rsi,%rcx,4), %xmm3
	pshufd	$27, %xmm3, %xmm3               ## xmm3 = xmm3[3,2,1,0]
	movdqa	%xmm2, %xmm4
	pmulld	%xmm0, %xmm4
	movdqa	%xmm3, %xmm5
	paddd	%xmm1, %xmm5
	paddd	%xmm4, %xmm5
	psrad	$2, %xmm5
	pshufd	$27, %xmm5, %xmm4               ## xmm4 = xmm5[3,2,1,0]
	movdqu	%xmm4, (%r11,%rcx,4)
	pmulld	%xmm0, %xmm3
	paddd	%xmm1, %xmm2
	paddd	%xmm3, %xmm2
	psrad	$2, %xmm2
	pshufd	$27, %xmm2, %xmm2               ## xmm2 = xmm2[3,2,1,0]
	movdqu	%xmm2, (%r8,%rcx,4)
	addq	$-4, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-168(%rbp), %r13                ## 8-byte Reload
	movq	-176(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, -184(%rbp)                ## 8-byte Folded Reload
	je	LBB0_5
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%r13), %r15d
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	%r9, %rcx
	leaq	(%rax,%r13,4), %r9
	movq	-136(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%r13,4), %r14
	addq	%r13, %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rcx
	addq	%r13, %rbx
	leaq	(%rax,%rbx,4), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rdx,4), %esi
	movl	(%rcx,%rdx,4), %ebx
	leal	(%rsi,%rsi,2), %edi
	addl	%ebx, %edi
	addl	$2, %edi
	sarl	$2, %edi
	movl	%edi, (%r14,%rdx,4)
	leal	(%rbx,%rbx,2), %edi
	addl	%edi, %esi
	addl	$2, %esi
	sarl	$2, %esi
	movl	%esi, (%r9,%rdx,4)
	decq	%rdx
	leal	(%rdx,%r15), %esi
	testl	%esi, %esi
	jg	LBB0_27
	jmp	LBB0_5
LBB0_6:
	cmpl	$0, -92(%rbp)                   ## 4-byte Folded Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	-192(%rbp), %rax                ## 8-byte Reload
	js	LBB0_12
## %bb.7:
	leal	-1(%r15), %ecx
	movslq	%ecx, %r9
	sarl	%ecx
	movslq	%ecx, %r10
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	leal	(%rax,%rcx), %r8d
	incl	%r8d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	-1(%r13), %rax
	testq	%r13, %r13
	movq	%rax, %r13
	jle	LBB0_12
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%r13, %rsi
	imulq	%r12, %rsi
	leaq	(%r14,%rsi,4), %r11
	movl	(%r11,%r10,4), %edi
	movl	%edi, (%r11,%r9,4)
	cmpl	$4, %r15d
	jl	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%r8d, %edi
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-4(%rdi), %edx
	movl	%edx, %ebx
	shrl	%ebx
	movl	(%r11,%rbx,4), %ebx
	leal	-3(%rdi), %ecx
	movl	%ecx, %eax
	shrl	%eax
	movl	(%r11,%rax,4), %eax
	leal	(%rbx,%rbx,2), %esi
	addl	%eax, %esi
	incl	%esi
	sarl	$2, %esi
	movl	%esi, (%r11,%rdx,4)
	leal	(%rax,%rax,2), %eax
	addl	%ebx, %eax
	incl	%eax
	sarl	$2, %eax
	movl	%eax, (%r11,%rcx,4)
	addl	$-2, %edi
	cmpl	$4, %edi
	ja	LBB0_10
	jmp	LBB0_11
LBB0_12:
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_upsample_plane_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function upsample_plane_c
_upsample_plane_c:                      ; @upsample_plane_c
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	cbz	w2, LBB0_27
; %bb.1:
	mov	x23, x3
	cbz	w3, LBB0_27
; %bb.2:
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	and	w8, w2, #0x1
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	add	w20, w8, w2
	and	w25, w23, #0x1
	add	w8, w23, w25
	sub	w24, w8, #1
	mul	w8, w24, w1
	add	x0, x0, w8, sxtw #2
	asr	w8, w24, #1
	mul	w8, w8, w1
	add	x1, x19, w8, sxtw #2
	mov	x2, x20
	bl	_memcpy
	cmp	w24, #3
	b.lt	LBB0_21
; %bb.3:
	mov	x8, #0
	sub	w9, w20, #1
	asr	w4, w9, #1
	sxtw	x9, w22
	cmp	w4, #0
	csel	w10, w4, wzr, lt
	sub	x11, x24, #1
	mul	x11, x11, x9
	add	x12, x11, x4
	str	x12, [sp, #72]                  ; 8-byte Folded Spill
	sub	x12, x24, #2
	mul	x15, x12, x9
	add	x12, x15, x4
	str	x12, [sp, #64]                  ; 8-byte Folded Spill
	lsl	x12, x4, #2
	add	x13, x19, x12
	add	w16, w25, w23
	sub	w27, w16, #2
	sub	w28, w16, #3
	add	x16, x19, x11, lsl #2
	add	x11, x16, x12
	str	x11, [sp, #48]                  ; 8-byte Folded Spill
	mov	x11, #4611686018427387902
	add	x11, x24, x11
	mul	x9, x11, x9
	add	x9, x19, x9, lsl #2
	add	x9, x9, x12
	str	x9, [sp, #40]                   ; 8-byte Folded Spill
	sub	w1, w4, w10
	sub	x2, x8, x1
	add	x9, x1, #1
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	and	x9, x9, #0x1fffffffc
	str	x9, [sp, #32]                   ; 8-byte Folded Spill
	sub	x9, x4, x9
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	add	x6, x19, x15, lsl #2
	sub	x7, x6, #12
	sub	x23, x16, #12
	sub	x9, x19, #12
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	movi.4s	v0, #3
	movi.4s	v1, #2
	stp	w28, w27, [sp, #56]             ; 8-byte Folded Spill
	mov	x25, x24
	sub	x30, x8, w22, sxtw #1
	sub	x5, x8, w22, sxtw #3
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	add	x7, x7, x5
	add	x23, x23, x5
	sub	w28, w28, #2
	sub	w27, w27, #2
	add	x6, x6, x5
	add	x16, x16, x5
	cmp	x25, #4
	mov	x25, x3
	b.le	LBB0_21
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
	sub	x3, x25, #2
	cmp	w20, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	lsr	w9, w28, #1
	mul	w17, w22, w9
	lsr	w9, w27, #1
	mul	w0, w22, w9
	mov	x9, x4
	cmp	w1, #3
	b.lo	LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mul	x10, x30, x8
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	add	x9, x9, x10
	add	x11, x19, x9, lsl #2
	add	x15, x11, x2, lsl #2
	mov	x9, x4
	cmp	x15, x11
	b.hi	LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [sp, #64]                   ; 8-byte Folded Reload
	add	x9, x9, x10
	add	x10, x19, x9, lsl #2
	add	x11, x10, x2, lsl #2
	mov	x9, x4
	cmp	x11, x10
	b.hi	LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	w11, w8, #1
	ldr	w9, [sp, #60]                   ; 4-byte Folded Reload
	sub	w9, w9, w11
	lsr	w9, w9, #1
	mul	w9, w9, w22
	add	x10, x13, w9, sxtw #2
	add	x15, x10, x2, lsl #2
	mov	x9, x4
	cmp	x15, x10
	b.hi	LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [sp, #56]                   ; 4-byte Folded Reload
	sub	w9, w9, w11
	lsr	w9, w9, #1
	mul	w9, w9, w22
	add	x11, x13, w9, sxtw #2
	add	x15, x11, x2, lsl #2
	mov	x9, x4
	cmp	x15, x11
	b.hi	LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mul	x9, x5, x8
	ldr	x14, [sp, #48]                  ; 8-byte Folded Reload
	add	x26, x14, x9
	ldr	x14, [sp, #40]                  ; 8-byte Folded Reload
	add	x15, x14, x9
	sub	x14, x26, x15
	mov	x9, x4
	cmp	x14, #16
	b.lo	LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	sub	x14, x10, x26
	mov	x9, x4
	cmp	x14, #16
	b.lo	LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	sub	x14, x11, x26
	mov	x9, x4
	cmp	x14, #16
	b.lo	LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	sub	x10, x10, x15
	mov	x9, x4
	cmp	x10, #16
	b.lo	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	sub	x10, x11, x15
	mov	x9, x4
	cmp	x10, #16
	b.lo	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, x23
	mov	x15, x7
	ldr	x26, [sp, #32]                  ; 8-byte Folded Reload
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	add	x11, x10, w17, sxtw #2
	add	x10, x10, w0, sxtw #2
LBB0_17:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	q2, [x10, x12]
	rev64.4s	v2, v2
	ldr	q3, [x11, x12]
	ext.16b	v2, v2, v2, #8
	rev64.4s	v3, v3
	ext.16b	v3, v3, v3, #8
	mov.16b	v4, v3
	mla.4s	v4, v2, v0
	add.4s	v4, v4, v1
	sshr.4s	v4, v4, #2
	rev64.4s	v4, v4
	ext.16b	v4, v4, v4, #8
	str	q4, [x9, x12]
	mla.4s	v2, v3, v0
	add.4s	v2, v2, v1
	sshr.4s	v2, v2, #2
	rev64.4s	v2, v2
	ext.16b	v2, v2, v2, #8
	str	q2, [x15, x12]
	sub	x15, x15, #16
	sub	x9, x9, #16
	sub	x11, x11, #16
	sub	x10, x10, #16
	sub	x26, x26, #4
	cbnz	x26, LBB0_17
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	x9, x10, [sp, #16]              ; 16-byte Folded Reload
	ldr	x11, [sp, #32]                  ; 8-byte Folded Reload
	cmp	x10, x11
	b.eq	LBB0_4
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x10, w17
	sxtw	x11, w0
	add	w17, w9, #1
	lsl	x14, x9, #2
	add	x0, x6, x14
	add	x26, x16, x14
	add	x10, x9, x10
	add	x15, x19, x10, lsl #2
	add	x9, x9, x11
	add	x9, x19, x9, lsl #2
LBB0_20:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x9], #-4
	ldr	w11, [x15], #-4
	add	w14, w10, w10, lsl #1
	add	w14, w11, w14
	add	w14, w14, #2
	asr	w14, w14, #2
	str	w14, [x26], #-4
	add	w11, w11, w11, lsl #1
	add	w10, w10, w11
	add	w10, w10, #2
	asr	w10, w10, #2
	str	w10, [x0], #-4
	sub	w17, w17, #1
	cmp	w17, #0
	b.gt	LBB0_20
	b	LBB0_4
LBB0_21:
	tbnz	w24, #31, LBB0_27
; %bb.22:
	sub	w9, w20, #1
	sbfx	x8, x9, #1, #31
	sxtw	x9, w9
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x10, w22
	ldr	w11, [sp, #4]                   ; 4-byte Folded Reload
	add	w11, w21, w11
	add	w11, w11, #1
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	sub	x12, x24, #1
	cmp	x24, #0
	mov	x24, x12
	b.le	LBB0_27
LBB0_24:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
	mul	x12, x24, x10
	add	x12, x19, x12, lsl #2
	ldr	w13, [x12, x8, lsl #2]
	str	w13, [x12, x9, lsl #2]
	cmp	w20, #4
	b.lt	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x13, x11
LBB0_26:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w14, w13, #4
	lsr	w15, w14, #1
	ldr	w15, [x12, w15, uxtw #2]
	sub	w16, w13, #3
	lsr	w17, w16, #1
	ldr	w17, [x12, w17, uxtw #2]
	add	w0, w15, w15, lsl #1
	add	w0, w17, w0
	add	w0, w0, #1
	asr	w0, w0, #2
	str	w0, [x12, w14, uxtw #2]
	add	w14, w17, w17, lsl #1
	add	w14, w15, w14
	add	w14, w14, #1
	asr	w14, w14, #2
	str	w14, [x12, w16, uxtw #2]
	sub	w13, w13, #2
	cmp	w13, #4
	b.hi	LBB0_26
	b	LBB0_23
LBB0_27:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_upsample_plane_c
.subsections_via_symbols
