	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function spatial_compose53i_dy_buffered
LCPI0_0:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_spatial_compose53i_dy_buffered:        ## @spatial_compose53i_dy_buffered
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r15d
	movq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rbx
	leal	1(%r15), %edi
	movl	%edi, -64(%rbp)                 ## 4-byte Spill
	leal	-1(%r8), %r13d
	movl	%r13d, %esi
	callq	_avpriv_mirror
	imull	%r12d, %eax
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_slice_buffer_get_line
	movq	%rax, %r14
	leal	2(%r15), %edi
	movl	%r13d, %esi
	callq	_avpriv_mirror
	imull	%eax, %r12d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_slice_buffer_get_line
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%rax, %r12
	cmpl	%r8d, %r15d
	jae	LBB0_16
## %bb.1:
	cmpl	%r8d, %ecx
	jae	LBB0_16
## %bb.2:
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	testl	%r9d, %r9d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jle	LBB0_20
## %bb.3:
	movl	%r9d, %eax
	cmpl	$4, %r9d
	jae	LBB0_5
## %bb.4:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rcx,4), %edx
	movl	(%r12,%rcx,4), %esi
	addl	%esi, %edx
	addl	$2, %edx
	sarl	$2, %edx
	movl	(%r14,%rcx,4), %esi
	subl	%edx, %esi
	movl	%esi, (%r14,%rcx,4)
	addl	(%rdi,%rcx,4), %esi
	sarl	%esi
	addl	%esi, (%rbx,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_15
	jmp	LBB0_20
LBB0_16:
	cmpl	%r8d, %ecx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jae	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	%r9d, %ecx
	movl	%r9d, %r13d
	callq	_vertical_compose53iL0
	movl	%r13d, %r9d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
LBB0_18:
	cmpl	%r8d, %r15d
	jae	LBB0_20
## %bb.19:
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%r9d, %ecx
	movl	%r9d, %r13d
	callq	_vertical_compose53iH0
	movl	%r13d, %r9d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
LBB0_20:
	leal	-1(%r15), %eax
	cmpl	%r8d, %eax
	jae	LBB0_22
## %bb.21:
	movq	%r15, %r13
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%r9d, %edx
	movl	%r9d, %r15d
	callq	_horizontal_compose53i
	movl	%r15d, %r9d
	movq	%r13, %r15
	movq	-56(%rbp), %r8                  ## 8-byte Reload
LBB0_22:
	cmpl	%r8d, %r15d
	jae	LBB0_24
## %bb.23:
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%r9d, %edx
	callq	_horizontal_compose53i
LBB0_24:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, 8(%rax)
	movq	%r12, 16(%rax)
	addl	$2, (%rax)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rax,4), %rcx
	leaq	(%rbx,%rax,4), %rdx
	leaq	(%r12,%rax,4), %rsi
	leaq	(%rdi,%rax,4), %r8
	cmpq	%rdx, %r14
	setb	%r15b
	cmpq	%rcx, %rbx
	setb	%r9b
	cmpq	%rsi, %r14
	setb	%r10b
	cmpq	%rcx, %r12
	setb	-80(%rbp)                       ## 1-byte Folded Spill
	cmpq	%r8, %r14
	setb	%r11b
	cmpq	%rcx, %rdi
	setb	-45(%rbp)                       ## 1-byte Folded Spill
	cmpq	%rsi, %rbx
	setb	%r13b
	cmpq	%rdx, %r12
	setb	%sil
	cmpq	%r8, %rbx
	setb	%r8b
	cmpq	%rdx, %rdi
	setb	%dl
	xorl	%ecx, %ecx
	testb	%r9b, %r15b
	jne	LBB0_6
## %bb.7:
	andb	-80(%rbp), %r10b                ## 1-byte Folded Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_8
## %bb.9:
	andb	-45(%rbp), %r11b                ## 1-byte Folded Reload
	jne	LBB0_8
## %bb.10:
	andb	%sil, %r13b
	jne	LBB0_8
## %bb.11:
	andb	%dl, %r8b
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_15
## %bb.12:
	movl	%eax, %ecx
	andl	$-4, %ecx
	leaq	(,%rax,4), %rdx
	andq	$-16, %rdx
	xorl	%esi, %esi
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [2,2,2,2]
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rbx,%rsi), %xmm1
	movdqu	(%r12,%rsi), %xmm2
	paddd	%xmm1, %xmm2
	paddd	%xmm0, %xmm2
	psrad	$2, %xmm2
	movdqu	(%r14,%rsi), %xmm1
	psubd	%xmm2, %xmm1
	movdqu	%xmm1, (%r14,%rsi)
	movdqu	(%rdi,%rsi), %xmm2
	paddd	%xmm1, %xmm2
	psrad	$1, %xmm2
	movdqu	(%rbx,%rsi), %xmm1
	paddd	%xmm2, %xmm1
	movdqu	%xmm1, (%rbx,%rsi)
	addq	$16, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_13
## %bb.14:
	cmpq	%rax, %rcx
	jne	LBB0_15
	jmp	LBB0_20
LBB0_8:
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_6:
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_spatial_compose53i_dy_buffered
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spatial_compose53i_dy_buffered
_spatial_compose53i_dy_buffered:        ; @spatial_compose53i_dy_buffered
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x26, x5
	mov	x23, x4
	mov	x20, x3
	mov	x22, x1
	mov	x19, x0
	ldr	w28, [x0]
	ldp	x8, x24, [x0, #8]
	stp	x8, x2, [sp]                    ; 16-byte Folded Spill
	add	w27, w28, #1
	sub	w21, w4, #1
	mov	x0, x27
	mov	x1, x21
	bl	_avpriv_mirror
	mul	w1, w0, w26
	mov	x0, x22
	bl	_slice_buffer_get_line
	mov	x25, x0
	add	w0, w28, #2
	mov	x1, x21
	bl	_avpriv_mirror
	mul	w1, w0, w26
	mov	x0, x22
	bl	_slice_buffer_get_line
	mov	x26, x0
	cmp	w28, w23
	ccmp	w27, w23, #2, lo
	b.lo	LBB0_5
; %bb.1:
	cmp	w27, w23
	b.hs	LBB0_3
; %bb.2:
	mov	x0, x24
	mov	x1, x25
	mov	x2, x26
	mov	x3, x20
	bl	_vertical_compose53iL0
LBB0_3:
	cmp	w28, w23
	ldr	x21, [sp]                       ; 8-byte Folded Reload
	b.hs	LBB0_18
; %bb.4:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x25
	mov	x3, x20
	bl	_vertical_compose53iH0
	b	LBB0_18
LBB0_5:
	cmp	w20, #1
	ldr	x21, [sp]                       ; 8-byte Folded Reload
	b.lt	LBB0_18
; %bb.6:
	mov	w8, w20
	cmp	w20, #8
	b.hs	LBB0_8
; %bb.7:
	mov	x9, #0
	b	LBB0_16
LBB0_8:
	mov	x9, #0
	lsl	x11, x8, #2
	add	x14, x25, x11
	add	x15, x24, x11
	add	x12, x26, x11
	cmp	x25, x12
	ccmp	x26, x14, #2, lo
	cset	w10, lo
	add	x13, x21, x11
	cmp	x25, x13
	ccmp	x21, x14, #2, lo
	cset	w11, lo
	cmp	x24, x12
	ccmp	x26, x15, #2, lo
	cset	w12, lo
	cmp	x24, x13
	ccmp	x21, x15, #2, lo
	cset	w13, lo
	cmp	x24, x14
	ccmp	x25, x15, #2, lo
	b.lo	LBB0_16
; %bb.9:
	tbnz	w10, #0, LBB0_16
; %bb.10:
	tbnz	w11, #0, LBB0_16
; %bb.11:
	tbnz	w12, #0, LBB0_16
; %bb.12:
	tbnz	w13, #0, LBB0_16
; %bb.13:
	and	x9, x8, #0xfffffff8
	add	x10, x24, #16
	add	x11, x21, #16
	add	x12, x26, #16
	add	x13, x25, #16
	movi.4s	v0, #2
	mov	x14, x9
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x10, #-16]
	ldp	q3, q4, [x12, #-16]
	add.4s	v3, v1, v3
	add.4s	v4, v2, v4
	add.4s	v3, v3, v0
	add.4s	v4, v4, v0
	sshr.4s	v3, v3, #2
	sshr.4s	v4, v4, #2
	ldp	q5, q6, [x13, #-16]
	sub.4s	v3, v5, v3
	sub.4s	v4, v6, v4
	ldp	q5, q6, [x11, #-16]
	add.4s	v5, v5, v3
	add.4s	v6, v6, v4
	ssra.4s	v1, v5, #1
	ssra.4s	v2, v6, #1
	stp	q1, q2, [x10, #-16]
	add	x10, x10, #32
	stp	q3, q4, [x13, #-16]
	add	x11, x11, #32
	add	x12, x12, #32
	add	x13, x13, #32
	subs	x14, x14, #8
	b.ne	LBB0_14
; %bb.15:
	cmp	x9, x8
	b.eq	LBB0_18
LBB0_16:
	lsl	x13, x9, #2
	add	x10, x21, x13
	add	x11, x25, x13
	add	x12, x26, x13
	add	x13, x24, x13
	sub	x8, x8, x9
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x13]
	ldr	w14, [x12], #4
	add	w9, w9, w14
	add	w9, w9, #2
	ldr	w14, [x11]
	sub	w9, w14, w9, asr #2
	str	w9, [x11], #4
	ldr	w14, [x10], #4
	add	w9, w14, w9
	ldr	w14, [x13]
	add	w9, w14, w9, asr #1
	str	w9, [x13], #4
	subs	x8, x8, #1
	b.ne	LBB0_17
LBB0_18:
	sub	w8, w28, #1
	cmp	w8, w23
	b.hs	LBB0_20
; %bb.19:
	mov	x0, x21
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x20
	bl	_horizontal_compose53i
LBB0_20:
	cmp	w28, w23
	b.hs	LBB0_22
; %bb.21:
	mov	x0, x24
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x20
	bl	_horizontal_compose53i
LBB0_22:
	stp	x25, x26, [x19, #8]
	ldr	w8, [x19]
	add	w8, w8, #2
	str	w8, [x19]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_spatial_compose53i_dy_buffered
.subsections_via_symbols
