	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function filter_slice_chroma
LCPI0_0:
	.long	4294967168                      ## 0xffffff80
	.long	4294967168                      ## 0xffffff80
	.long	4294967168                      ## 0xffffff80
	.long	4294967168                      ## 0xffffff80
LCPI0_1:
	.long	8421367                         ## 0x807ff7
	.long	8421367                         ## 0x807ff7
	.long	8421367                         ## 0x807ff7
	.long	8421367                         ## 0x807ff7
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_filter_slice_chroma:                   ## @filter_slice_chroma
	.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	%ecx, %r14d
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	(%rdi), %r15
	movl	20(%rsi), %edi
	movl	8(%r15), %esi
	callq	_AV_CEIL_RSHIFT
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %edi
	movl	4(%r15), %esi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, %ecx
	imull	%r13d, %eax
	cltd
	idivl	%r14d
	movl	%eax, %r12d
	incl	%r13d
	imull	%ecx, %r13d
	movl	%r13d, %eax
	cltd
	idivl	%r14d
	movl	16(%rbx), %esi
	movl	%eax, %edi
	callq	_FFMIN
	cmpl	%eax, %r12d
	jge	LBB0_29
## %bb.1:
	movabsq	$8589934584, %r9                ## imm = 0x1FFFFFFF8
	movq	(%rbx), %rcx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r11
	movq	8(%rcx), %r8
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leal	-1(%rcx), %edx
	leaq	4(%r8,%rdx,4), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	1(%rdx), %r10
	leaq	4(%r15), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r10, -88(%rbp)                 ## 8-byte Spill
	andq	$-8, %r10
	leaq	16(%r8), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [4294967168,4294967168,4294967168,4294967168]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [8421367,8421367,8421367,8421367]
	movl	%r12d, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	%eax, %ebx
	je	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r11), %ecx
	imull	%ebx, %ecx
	xorl	%edi, %edi
	movslq	%ecx, %rcx
	leaq	(%r8,%rcx,4), %r13
	cmpl	$7, %edx
	jb	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rcx,4), %rsi
	cmpq	%rsi, %r15
	jb	LBB0_9
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r13,%r10,4), %r13
	movd	(%r15), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	pshufd	$0, %xmm2, %xmm2                ## xmm2 = xmm2[0,0,0,0]
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rcx,4), %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-16(%rdi,%rcx,4), %xmm3
	movdqu	(%rdi,%rcx,4), %xmm4
	paddd	%xmm0, %xmm3
	paddd	%xmm0, %xmm4
	pmulld	%xmm2, %xmm3
	pmulld	%xmm2, %xmm4
	paddd	%xmm1, %xmm3
	paddd	%xmm1, %xmm4
	psrad	$16, %xmm3
	psrad	$16, %xmm4
	movdqu	%xmm3, -16(%rdi,%rcx,4)
	movdqu	%xmm4, (%rdi,%rcx,4)
	addq	$8, %rcx
	cmpq	%rcx, %r10
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r10d, %edi
	cmpq	%r10, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_14
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %esi
	subl	%edi, %esi
	leal	1(%rdi), %ecx
	testb	$1, %sil
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	addl	$-128, %esi
	imull	(%r15), %esi
	addl	$8421367, %esi                  ## imm = 0x807FF7
	sarl	$16, %esi
	movl	%esi, (%r13)
	addq	$4, %r13
	movl	%ecx, %edi
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ecx, -48(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
                                        ## kill: def $r14d killed $r14d killed $r14 def $r14
	subl	%edi, %r14d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13,%rdi,4), %ecx
	addl	$-128, %ecx
	imull	(%r15), %ecx
	movl	4(%r13,%rdi,4), %esi
	addl	$8421367, %ecx                  ## imm = 0x807FF7
	sarl	$16, %ecx
	movl	%ecx, (%r13,%rdi,4)
	addl	$-128, %esi
	imull	(%r15), %esi
	addl	$8421367, %esi                  ## imm = 0x807FF7
	sarl	$16, %esi
	movl	%esi, 4(%r13,%rdi,4)
	addq	$2, %rdi
	cmpl	%edi, %r14d
	jne	LBB0_13
	jmp	LBB0_14
LBB0_15:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rcx
	movq	8(%rsi), %r14
	movq	16(%rcx), %r8
	leaq	(%r8,%rdx,4), %r13
	addq	$4, %r13
	leaq	1(%rdx), %r10
	andq	%r10, %r9
	leaq	16(%r8), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_16 Depth=1
	incl	%r12d
	cmpl	%eax, %r12d
	je	LBB0_29
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
                                        ##     Child Loop BB0_27 Depth 2
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_28
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	8(%r14), %esi
	imull	%r12d, %esi
	xorl	%ecx, %ecx
	movslq	%esi, %rsi
	leaq	(%r8,%rsi,4), %rbx
	cmpl	$7, %edx
	jb	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	jae	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	(,%rsi,4), %rdi
	addq	%r13, %rdi
	cmpq	%rdi, %r15
	jb	LBB0_23
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	leaq	(%rbx,%r9,4), %rbx
	movd	(%r15), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	pshufd	$0, %xmm2, %xmm2                ## xmm2 = xmm2[0,0,0,0]
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rsi,4), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-16(%rcx,%rsi,4), %xmm3
	movdqu	(%rcx,%rsi,4), %xmm4
	paddd	%xmm0, %xmm3
	paddd	%xmm0, %xmm4
	pmulld	%xmm2, %xmm3
	pmulld	%xmm2, %xmm4
	paddd	%xmm1, %xmm3
	paddd	%xmm1, %xmm4
	psrad	$16, %xmm3
	psrad	$16, %xmm4
	movdqu	%xmm3, -16(%rcx,%rsi,4)
	movdqu	%xmm4, (%rcx,%rsi,4)
	addq	$8, %rsi
	cmpq	%rsi, %r9
	jne	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%r9d, %ecx
	cmpq	%r9, %r10
	je	LBB0_28
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%esi, %edi
	subl	%ecx, %edi
	leal	1(%rcx), %esi
	testb	$1, %dil
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	(%rbx), %ecx
	addl	$-128, %ecx
	imull	(%r15), %ecx
	addl	$8421367, %ecx                  ## imm = 0x807FF7
	sarl	$16, %ecx
	movl	%ecx, (%rbx)
	addq	$4, %rbx
	movl	%esi, %ecx
LBB0_25:                                ##   in Loop: Header=BB0_16 Depth=1
	cmpl	%esi, -48(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi def $rsi
	subl	%ecx, %esi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx,%rcx,4), %edi
	addl	$-128, %edi
	imull	(%r15), %edi
	movl	4(%rbx,%rcx,4), %r11d
	addl	$8421367, %edi                  ## imm = 0x807FF7
	sarl	$16, %edi
	movl	%edi, (%rbx,%rcx,4)
	addl	$-128, %r11d
	imull	(%r15), %r11d
	addl	$8421367, %r11d                 ## imm = 0x807FF7
	sarl	$16, %r11d
	movl	%r11d, 4(%rbx,%rcx,4)
	addq	$2, %rcx
	cmpl	%ecx, %esi
	jne	LBB0_27
	jmp	LBB0_28
LBB0_29:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_filter_slice_chroma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_slice_chroma
_filter_slice_chroma:                   ; @filter_slice_chroma
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	ldr	x23, [x0]
	ldr	w0, [x1, #20]
	ldr	w1, [x23, #8]
	bl	_AV_CEIL_RSHIFT
	mov	x19, x0
	ldr	w0, [x20, #16]
	ldr	w1, [x23, #4]
	bl	_AV_CEIL_RSHIFT
	mul	w8, w0, w22
	sdiv	w22, w8, w21
	add	w8, w0, w8
	ldr	w1, [x20, #16]
	sdiv	w0, w8, w21
	bl	_FFMIN
	cmp	w22, w0
	b.ge	LBB0_23
; %bb.1:
	mov	w8, #32759
	movk	w8, #128, lsl #16
	ldp	x9, x10, [x20]
	ldr	x11, [x9, #8]
	sub	w12, w19, #1
	add	x13, x12, #1
	add	x14, x11, x13, lsl #2
	add	x15, x23, #4
	and	x16, x13, #0x1fffffff0
	add	x17, x11, #32
	mvni.4s	v0, #127
	dup.4s	v1, w8
	mov	x1, x22
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w1, w1, #1
	cmp	w1, w0
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	subs	w9, w19, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x10, #4]
	mul	w4, w2, w1
	add	x2, x11, w4, sxtw #2
	cmp	w12, #15
	b.lo	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x3, w4
	add	x3, x14, x3, lsl #2
	cmp	x2, x15
	ccmp	x23, x3, #2, lo
	b.lo	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x2, x2, x16, lsl #2
	ld1r.4s	{ v2 }, [x23]
	mov	x3, x16
	add	x4, x17, w4, sxtw #2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q3, q4, [x4, #-32]
	ldp	q5, q6, [x4]
	add.4s	v3, v3, v0
	add.4s	v4, v4, v0
	add.4s	v5, v5, v0
	add.4s	v6, v6, v0
	mov.16b	v7, v1
	mla.4s	v7, v3, v2
	mov.16b	v3, v1
	mla.4s	v3, v4, v2
	mov.16b	v4, v1
	mla.4s	v4, v5, v2
	mov.16b	v5, v1
	mla.4s	v5, v6, v2
	sshr.4s	v6, v7, #16
	sshr.4s	v3, v3, #16
	sshr.4s	v4, v4, #16
	stp	q6, q3, [x4, #-32]
	sshr.4s	v3, v5, #16
	stp	q4, q3, [x4], #64
	subs	x3, x3, #16
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x3, x16
	cmp	x13, x16
	b.eq	LBB0_2
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w3, #0
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w3, w19, w3
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w4, [x2]
	sub	w4, w4, #128
	ldr	w5, [x23]
	madd	w4, w4, w5, w8
	asr	w4, w4, #16
	str	w4, [x2], #4
	subs	w3, w3, #1
	b.ne	LBB0_11
	b	LBB0_2
LBB0_12:
	ldp	x11, x10, [x20]
	ldr	x11, [x11, #16]
	add	x12, x9, #1
	add	x13, x11, x12, lsl #2
	add	x14, x23, #4
	and	x15, x12, #0x1fffffff0
	add	x16, x11, #32
	mvni.4s	v0, #127
	mov	w17, #32759
	movk	w17, #128, lsl #16
	dup.4s	v1, w17
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w22, w22, #1
	cmp	w22, w0
	b.eq	LBB0_23
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
	cmp	w19, #1
	b.lt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w17, [x10, #8]
	mul	w2, w17, w22
	add	x17, x11, w2, sxtw #2
	cmp	w9, #15
	b.lo	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	sxtw	x1, w2
	add	x1, x13, x1, lsl #2
	cmp	x17, x14
	ccmp	x23, x1, #2, lo
	b.lo	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x17, x17, x15, lsl #2
	ld1r.4s	{ v2 }, [x23]
	mov	x1, x15
	add	x2, x16, w2, sxtw #2
LBB0_18:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q3, q4, [x2, #-32]
	ldp	q5, q6, [x2]
	add.4s	v3, v3, v0
	add.4s	v4, v4, v0
	add.4s	v5, v5, v0
	add.4s	v6, v6, v0
	mov.16b	v7, v1
	mla.4s	v7, v3, v2
	mov.16b	v3, v1
	mla.4s	v3, v4, v2
	mov.16b	v4, v1
	mla.4s	v4, v5, v2
	mov.16b	v5, v1
	mla.4s	v5, v6, v2
	sshr.4s	v6, v7, #16
	sshr.4s	v3, v3, #16
	sshr.4s	v4, v4, #16
	stp	q6, q3, [x2, #-32]
	sshr.4s	v3, v5, #16
	stp	q4, q3, [x2], #64
	subs	x1, x1, #16
	b.ne	LBB0_18
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, x15
	cmp	x12, x15
	b.eq	LBB0_13
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w1, #0
LBB0_21:                                ;   in Loop: Header=BB0_14 Depth=1
	sub	w1, w19, w1
LBB0_22:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x17]
	sub	w2, w2, #128
	ldr	w3, [x23]
	madd	w2, w2, w3, w8
	asr	w2, w2, #16
	str	w2, [x17], #4
	subs	w1, w1, #1
	b.ne	LBB0_22
	b	LBB0_13
LBB0_23:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_filter_slice_chroma
.subsections_via_symbols
