	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_slice
_filter_slice:                          ## @filter_slice
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r8d
	movl	%edx, %r9d
	movq	%rsi, %r15
	movq	(%rdi), %rbx
	movq	32(%rbx), %rax
	movq	56(%rbx), %rcx
	movq	(%rax), %rax
	movq	(%rsi), %rdx
	movslq	(%rax,%rdx,4), %rax
	movq	(%rcx), %rcx
	movl	(%rcx,%rdx,4), %ecx
	movl	$-1, %edx
	shll	%cl, %edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	leal	7(%rcx), %edx
	addl	$14, %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$3, %ecx
	movq	%rax, %r10
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rsi), %esi
	movl	%esi, %eax
	imull	%r9d, %eax
	cltd
	idivl	%r8d
	movl	%eax, %ecx
	incl	%r9d
	imull	%esi, %r9d
	movl	%r9d, %eax
	cltd
	idivl	%r8d
                                        ## kill: def $eax killed $eax def $rax
	cmpl	%eax, %ecx
	jge	LBB0_12
## %bb.1:
	movq	%rax, %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	notl	%eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %edx
	negl	%edx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	leal	(%rax,%rax), %edx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx def $rdx
	negl	%edx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	leal	(%rax,%rax,2), %edx
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx def $rdx
	negl	%edx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	leal	(,%rax,4), %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
                                        ## kill: def $eax killed $eax killed $rax def $rax
	negl	%eax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	leal	(%rdx,%rdx,2), %eax
	movslq	%ecx, %rdi
	movslq	%eax, %r8
	movslq	%edx, %rdx
	movq	%r10, %rax
	movq	%r10, %r12
	imulq	%rdi, %r12
	shlq	$2, %r12
	shlq	$2, %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	leaq	(%rdi,%rdx), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	%ecx, %eax
	negl	%esi
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	addq	%rax, %rsi
	movq	%rsi, -184(%rbp)                ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%r8, -168(%rbp)                 ## 8-byte Spill
	leaq	(%rdi,%r8), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	movq	24(%r15), %rcx
	movq	(%rcx), %rdx
	movq	8(%rcx), %rcx
	movslq	(%rdx,%rax,4), %rdx
	imulq	%rdx, %rdi
	shlq	$2, %rdi
	addq	(%rcx,%rax,8), %rdi
	movq	32(%rbx), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx,%rax,8), %rsi
	addq	%r12, %rsi
	movl	16(%r15), %edx
	imull	-136(%rbp), %edx                ## 4-byte Folded Reload
	callq	_memcpy
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	-192(%rbp), %r12                ## 8-byte Folded Reload
	incq	%r13
	movq	-184(%rbp), %rax                ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addl	%r13d, %eax
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %rdi
	movl	12(%r15), %r14d
	movq	-176(%rbp), %rax                ## 8-byte Reload
	addl	%r13d, %eax
	xorl	%r14d, %eax
	testb	$1, %al
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rcx
	movq	24(%r15), %rax
	movq	24(%rbx), %rdx
	movq	32(%rbx), %rsi
	movq	8(%rsi), %rsi
	movq	(%rsi,%rcx,8), %r10
	addq	%r12, %r10
	movq	(%rax), %rsi
	movq	%rbx, %r8
	movq	8(%rax), %rbx
	movslq	(%rsi,%rcx,4), %rax
	imulq	%rdi, %rax
	shlq	$2, %rax
	addq	(%rbx,%rcx,8), %rax
	movq	_YADIF_FIELD_END@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	addq	%r13, %rcx
	movslq	8(%r15), %rdx
	cmpq	%rdx, %rcx
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movl	%r9d, %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmovll	%ebx, %ecx
	cmpq	-128(%rbp), %rdi                ## 8-byte Folded Reload
	movl	%r9d, %r8d
	cmovll	%ebx, %r8d
	movq	-160(%rbp), %rsi                ## 8-byte Reload
	addq	%r13, %rsi
	cmpq	%rdx, %rsi
	movl	16(%r15), %edx
                                        ## kill: def $r9d killed $r9d killed $r9
	cmovll	-112(%rbp), %r9d                ## 4-byte Folded Reload
	cmpq	-168(%rbp), %rdi                ## 8-byte Folded Reload
	movq	-104(%rbp), %r11                ## 8-byte Reload
                                        ## kill: def $r11d killed $r11d killed $r11 def $r11
	cmovll	%ebx, %r11d
	xorl	20(%r15), %r14d
	subq	$8, %rsp
	movq	%rax, %rdi
	movq	%r10, %rsi
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	pushq	%r11
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	callq	*16(%rbx)
	addq	$32, %rsp
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r8), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%rcx,8), %rsi
	addq	%r12, %rsi
	movq	40(%r8), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%rcx,8), %rcx
	addq	%r12, %rcx
	cmpq	$3, %rdi
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	8(%r15), %rdx
	jmp	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%r13), %rbx
	addq	$5, %rbx
	movslq	8(%r15), %rdx
	cmpq	%rdx, %rbx
	jle	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	addq	%r13, %rbx
	cmpq	%rdx, %rbx
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	movl	%r11d, %r9d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmovll	%ebx, %r9d
	cmpq	-128(%rbp), %rdi                ## 8-byte Folded Reload
                                        ## kill: def $r11d killed $r11d killed $r11 def $r11
	cmovll	%ebx, %r11d
	xorl	20(%r15), %r14d
	cmpq	$2, %rdi
	setge	%bl
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	addq	%r13, %rdi
	addq	$3, %rdi
	cmpq	%rdx, %rdi
	movl	16(%r15), %r8d
	setle	%dl
	andb	%bl, %dl
	movzbl	%dl, %ebx
	movq	%rax, %rdi
	movq	%r10, %rdx
	pushq	%rbx
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	%r11
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	callq	*8(%rbx)
	addq	$48, %rsp
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r15), %r8d
	xorl	20(%r15), %r14d
	subq	$8, %rsp
	movq	%rax, %rdi
	movq	%r10, %rdx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	pushq	-144(%rbp)                      ## 8-byte Folded Reload
	pushq	-152(%rbp)                      ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	callq	*(%rbx)
	addq	$80, %rsp
	jmp	LBB0_11
LBB0_12:
	xorl	%eax, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_YADIF_FIELD_END,8,3            ## @YADIF_FIELD_END
	.no_dead_strip	_filter_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_slice
_filter_slice:                          ; @filter_slice
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	ldr	x23, [x0]
	ldr	x8, [x1]
	lsl	x9, x8, #2
	ldr	x8, [x23, #56]
	ldr	x8, [x8]
	ldr	w10, [x8, x9]
	add	w8, w10, #7
	add	w11, w10, #14
	cmp	w8, #0
	csel	w11, w11, w8, lt
	ldr	w8, [x1, #8]
	mul	w12, w8, w2
	sdiv	w24, w12, w3
	add	w8, w8, w12
	sdiv	w8, w8, w3
	cmp	w24, w8
	b.ge	LBB0_12
; %bb.1:
	mov	x19, x1
	mov	x25, #0
	ldr	x12, [x23, #32]
	ldr	x12, [x12]
	ldrsw	x9, [x12, x9]
	mov	w12, #-1
	lsl	w10, w12, w10
	mvn	w10, w10
	stur	w10, [x29, #-92]                ; 4-byte Folded Spill
	asr	w12, w11, #3
	sdiv	w20, w9, w12
	neg	w21, w20
	lsl	w10, w20, #1
	neg	w11, w10
	stp	w11, w10, [sp, #48]             ; 8-byte Folded Spill
	add	w10, w10, w20
	str	w10, [sp, #76]                  ; 4-byte Folded Spill
	lsl	w10, w20, #2
	sub	w11, w20, w10
	str	w11, [sp, #72]                  ; 4-byte Folded Spill
	str	w10, [sp, #44]                  ; 4-byte Folded Spill
	neg	w10, w10
	str	w10, [sp, #40]                  ; 4-byte Folded Spill
	add	w10, w12, w12, lsl #1
	mov	x11, x24
	sxtw	x28, w11
	sxtw	x11, w10
	stur	x12, [x29, #-88]                ; 8-byte Folded Spill
	sxtw	x12, w12
	mul	x10, x9, x28
	lsl	x26, x10, #2
	lsl	x22, x9, #2
	add	x9, x28, x12
	stp	x9, x12, [sp, #80]              ; 16-byte Folded Spill
	add	x9, x28, x11
	stp	x9, x11, [sp, #56]              ; 16-byte Folded Spill
	neg	w8, w8
	add	x27, x24, x8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #24]
	ldr	x10, [x19]
	lsl	x11, x10, #3
	ldp	x8, x12, [x8]
	ldr	x12, [x12, x11]
	ldrsw	x8, [x8, x10, lsl #2]
	mul	x8, x9, x8
	add	x0, x12, x8, lsl #2
	ldr	x8, [x23, #32]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x11]
	add	x1, x8, x26
	ldr	w8, [x19, #16]
	ldur	x9, [x29, #-88]                 ; 8-byte Folded Reload
	mul	w2, w8, w9
	bl	_memcpy
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, x22
	add	x25, x25, #1
	cmn	w27, w25
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x28, x25
	ldr	w10, [x19, #12]
	add	w8, w24, w25
	eor	w8, w10, w8
	tbz	w8, #0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	lsl	x11, x8, #3
	ldr	x12, [x19, #24]
	ldp	x12, x13, [x12]
	ldrsw	x12, [x12, x8, lsl #2]
	ldp	x14, x8, [x23, #24]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x11]
	add	x8, x8, x26
	ldr	x13, [x13, x11]
	mul	x12, x9, x12
	add	x0, x13, x12, lsl #2
Lloh0:
	adrp	x12, _YADIF_FIELD_END@GOTPAGE
Lloh1:
	ldr	x12, [x12, _YADIF_FIELD_END@GOTPAGEOFF]
Lloh2:
	ldr	x12, [x12]
	cmp	x14, x12
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x23, #16]
	ldrsw	x12, [x19, #8]
	ldr	x13, [sp, #80]                  ; 8-byte Folded Reload
	add	x13, x13, x25
	cmp	x13, x12
	csel	w3, w20, w21, lt
	ldr	x13, [sp, #88]                  ; 8-byte Folded Reload
	cmp	x9, x13
	csel	w4, w20, w21, lt
	ldr	x13, [sp, #56]                  ; 8-byte Folded Reload
	add	x13, x13, x25
	cmp	x13, x12
	ldr	w12, [sp, #76]                  ; 4-byte Folded Reload
	csel	w5, w12, w21, lt
	ldr	x12, [sp, #64]                  ; 8-byte Folded Reload
	cmp	x9, x12
	ldr	w9, [sp, #72]                   ; 4-byte Folded Reload
	csel	w6, w20, w9, lt
	ldp	w2, w9, [x19, #16]
	eor	w7, w9, w10
	ldur	w9, [x29, #-92]                 ; 4-byte Folded Reload
	str	w9, [sp]
	mov	x1, x8
	blr	x11
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x13, x12, [x23, #40]
	ldr	x12, [x12]
	ldr	x12, [x12, x11]
	add	x1, x12, x26
	ldr	x12, [x13]
	ldr	x11, [x12, x11]
	add	x3, x11, x26
	cmp	x9, #3
	b.gt	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x11, [x19, #8]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x28, x25
	add	x12, x11, #5
	ldrsw	x11, [x19, #8]
	cmp	x12, x11
	b.le	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x23, #8]
	ldr	x13, [sp, #80]                  ; 8-byte Folded Reload
	add	x13, x13, x25
	cmp	x13, x11
	csel	w5, w20, w21, lt
	ldr	x13, [sp, #88]                  ; 8-byte Folded Reload
	cmp	x9, x13
	csel	w6, w20, w21, lt
	ldp	w4, w13, [x19, #16]
	eor	w10, w13, w10
	cmp	x9, #1
	add	x9, x28, x25
	add	x9, x9, #3
	ccmp	x9, x11, #0, gt
	cset	w9, le
	str	w10, [sp, #4]
	ldp	w10, w7, [sp, #48]              ; 8-byte Folded Reload
	str	w10, [sp]
	ldur	w10, [x29, #-92]                ; 4-byte Folded Reload
	stp	w10, w9, [sp, #8]
	mov	x2, x8
	blr	x12
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x23]
	ldp	w4, w11, [x19, #16]
	eor	w10, w11, w10
	ldur	w11, [x29, #-92]                ; 4-byte Folded Reload
	stp	w10, w11, [sp, #20]
	ldr	w10, [sp, #40]                  ; 4-byte Folded Reload
	str	w10, [sp, #16]
	ldr	w10, [sp, #44]                  ; 4-byte Folded Reload
	str	w10, [sp, #12]
	ldr	w10, [sp, #72]                  ; 4-byte Folded Reload
	str	w10, [sp, #8]
	ldr	w10, [sp, #76]                  ; 4-byte Folded Reload
	str	w10, [sp, #4]
	ldp	w10, w7, [sp, #48]              ; 8-byte Folded Reload
	str	w10, [sp]
	mov	x2, x8
	mov	x5, x20
	mov	x6, x21
	blr	x9
	b	LBB0_3
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_YADIF_FIELD_END,8,3            ; @YADIF_FIELD_END
	.no_dead_strip	_filter_slice
.subsections_via_symbols
