	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yadif_filter
_yadif_filter:                          ## @yadif_filter
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rsi, %r8
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	movq	_MODE_DECOMB_SELECTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	je	LBB0_1
## %bb.2:
	movq	8(%r15), %rcx
	movq	8(%rcx), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_HB_COMB_HEAVY@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %edx
	movq	_MODE_DECOMB_BLEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ebx, %ecx
	je	LBB0_5
## %bb.4:
	movq	_HB_COMB_LIGHT@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_5
LBB0_11:
	incl	52(%r15)
	movl	%ecx, %ebx
	jmp	LBB0_13
LBB0_5:
	movq	_HB_COMB_NONE@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_6
## %bb.9:
	testl	%ecx, %ecx
	jne	LBB0_12
## %bb.10:
	xorl	%ecx, %ecx
	jmp	LBB0_11
LBB0_6:
	notl	%eax
	andl	%eax, %ebx
	cmpl	%ecx, %ebx
	je	LBB0_11
## %bb.7:
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.8:
	incl	48(%r15)
	jmp	LBB0_13
LBB0_12:
	incl	44(%r15)
	xorl	%ebx, %ebx
LBB0_13:
	incl	40(%r15)
	movq	_MODE_DECOMB_EEDI2@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	movq	%r8, %r14
	callq	_eedi2_planer
	movq	_MODE_DECOMB_EEDI2@GOTPCREL(%rip), %rax
	movq	%r14, %r8
LBB0_15:
	testl	%ebx, %ebx
	je	LBB0_38
## %bb.16:
	testl	%ebx, (%rax)
	je	LBB0_30
## %bb.17:
	movq	_MODE_DECOMB_YADIF@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_18
LBB0_30:
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_37
## %bb.31:
	movq	16(%r15), %rcx
	cmpl	$1, %eax
	jne	LBB0_33
## %bb.32:
	xorl	%edx, %edx
	jmp	LBB0_35
LBB0_38:
	movq	16(%r15), %rax
	movl	$0, 8(%rax)
	movq	8(%r15), %rax
	movq	8(%rax), %rsi
	movq	%r8, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_buffer_copy                 ## TAILCALL
LBB0_33:
	movl	%eax, %esi
	andl	$-2, %esi
	leaq	40(%rcx), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, -40(%rdi)
	movl	%r12d, -36(%rdi)
	movq	%r8, -24(%rdi)
	movl	%ebx, -32(%rdi)
	movl	%r13d, -16(%rdi)
	movl	%r12d, -12(%rdi)
	movq	%r8, (%rdi)
	movl	%ebx, -8(%rdi)
	addq	$2, %rdx
	addq	$48, %rdi
	cmpq	%rdx, %rsi
	jne	LBB0_34
LBB0_35:
	testb	$1, %al
	je	LBB0_37
## %bb.36:
	leaq	(%rdx,%rdx,2), %rax
	movl	%r13d, (%rcx,%rax,8)
	movl	%r12d, 4(%rcx,%rax,8)
	movq	%r8, 16(%rcx,%rax,8)
	movl	%ebx, 8(%rcx,%rax,8)
LBB0_37:
	addq	$24, %r15
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_taskset_cycle                  ## TAILCALL
LBB0_18:
	movq	(%r8), %rax
	movl	4(%rax), %r14d
	testl	%r14d, %r14d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	jle	LBB0_22
## %bb.19:
	movl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rcx
	movslq	8(%rax), %r15
	movq	16(%rax), %r13
	movq	32(%rcx), %rax
	movq	_DST2PF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movslq	(%rax), %r12
	movq	8(%rax), %rbx
	shlq	$2, %r15
	shlq	$2, %r12
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	addq	%r15, %r13
	addq	%r12, %rbx
	decl	%r14d
	jne	LBB0_20
## %bb.21:
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	(%r8), %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_22:
	movl	28(%rax), %r14d
	testl	%r14d, %r14d
	jle	LBB0_26
## %bb.23:
	movl	24(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rcx
	movslq	32(%rax), %r15
	movq	40(%rax), %r13
	movq	32(%rcx), %rax
	movq	_DST2PF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movslq	16(%rax), %r12
	movq	24(%rax), %rbx
	shlq	$2, %r15
	shlq	$2, %r12
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	addq	%r15, %r13
	addq	%r12, %rbx
	decl	%r14d
	jne	LBB0_24
## %bb.25:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_26:
	movl	52(%rax), %r13d
	testl	%r13d, %r13d
	jle	LBB0_29
## %bb.27:
	movl	48(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movslq	56(%rax), %r14
	movq	64(%rax), %r12
	movq	32(%r15), %rax
	movq	_DST2PF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movslq	32(%rax), %r15
	movq	40(%rax), %rbx
	shlq	$2, %r14
	shlq	$2, %r15
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	addq	%r14, %r12
	addq	%r15, %rbx
	decl	%r13d
	jne	LBB0_28
LBB0_29:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_COMB_HEAVY,4,2              ## @HB_COMB_HEAVY
	.comm	_MODE_DECOMB_SELECTIVE,4,2      ## @MODE_DECOMB_SELECTIVE
	.comm	_MODE_DECOMB_BLEND,4,2          ## @MODE_DECOMB_BLEND
	.comm	_HB_COMB_LIGHT,4,2              ## @HB_COMB_LIGHT
	.comm	_HB_COMB_NONE,4,2               ## @HB_COMB_NONE
	.comm	_MODE_DECOMB_EEDI2,4,2          ## @MODE_DECOMB_EEDI2
	.comm	_MODE_DECOMB_YADIF,4,2          ## @MODE_DECOMB_YADIF
	.comm	_DST2PF,8,3                     ## @DST2PF
	.no_dead_strip	_yadif_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yadif_filter
_yadif_filter:                          ; @yadif_filter
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MODE_DECOMB_SELECTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MODE_DECOMB_SELECTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x10, [x19, #8]
	ldr	x10, [x10, #8]
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x10, _HB_COMB_HEAVY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HB_COMB_HEAVY@GOTPAGEOFF]
LBB0_3:
	ldr	w11, [x10]
Lloh5:
	adrp	x10, _MODE_DECOMB_BLEND@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MODE_DECOMB_BLEND@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	and	w12, w10, w8
Lloh8:
	adrp	x13, _HB_COMB_LIGHT@GOTPAGE
Lloh9:
	ldr	x13, [x13, _HB_COMB_LIGHT@GOTPAGEOFF]
Lloh10:
	ldr	w13, [x13]
	cmp	w12, #0
	ccmp	w11, w13, #0, ne
	b.eq	LBB0_7
; %bb.4:
Lloh11:
	adrp	x12, _HB_COMB_NONE@GOTPAGE
Lloh12:
	ldr	x12, [x12, _HB_COMB_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x12]
	cmp	w11, w12
	b.ne	LBB0_6
; %bb.5:
	cbnz	w10, LBB0_10
	b	LBB0_7
LBB0_6:
	bic	w23, w8, w9
	cmp	w23, w10
	b.ne	LBB0_8
LBB0_7:
	ldr	w8, [x19, #52]
	add	w8, w8, #1
	str	w8, [x19, #52]
	mov	x23, x10
	b	LBB0_11
LBB0_8:
	cbz	w23, LBB0_10
; %bb.9:
	ldr	w8, [x19, #48]
	add	w8, w8, #1
	str	w8, [x19, #48]
	b	LBB0_11
LBB0_10:
	mov	w23, #0
	ldr	w8, [x19, #44]
	add	w8, w8, #1
	str	w8, [x19, #44]
LBB0_11:
	ldr	w8, [x19, #40]
	add	w8, w8, #1
	str	w8, [x19, #40]
Lloh14:
	adrp	x24, _MODE_DECOMB_EEDI2@GOTPAGE
Lloh15:
	ldr	x24, [x24, _MODE_DECOMB_EEDI2@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w23
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_eedi2_planer
LBB0_13:
	cbz	w23, LBB0_19
; %bb.14:
	ldr	w8, [x24]
	tst	w8, w23
	b.eq	LBB0_16
; %bb.15:
Lloh16:
	adrp	x8, _MODE_DECOMB_YADIF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MODE_DECOMB_YADIF@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_20
LBB0_16:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_37
; %bb.17:
	ldr	x9, [x19, #16]
	cmp	w8, #4
	b.hs	LBB0_32
; %bb.18:
	mov	x10, #0
	b	LBB0_35
LBB0_19:
	ldp	x9, x8, [x19, #8]
	str	wzr, [x8, #8]
	ldr	x1, [x9, #8]
	mov	x0, x20
	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	_hb_buffer_copy
LBB0_20:
	ldr	x8, [x20]
	ldr	w25, [x8, #4]
Lloh19:
	adrp	x24, _DST2PF@GOTPAGE
Lloh20:
	ldr	x24, [x24, _DST2PF@GOTPAGEOFF]
	cmp	w25, #1
	b.lt	LBB0_24
; %bb.21:
	ldr	w21, [x8]
	ldrsw	x9, [x8, #8]
	ldr	x10, [x19, #32]
	ldr	x11, [x24]
	ldr	x10, [x10, x11, lsl #3]
	ldr	x22, [x8, #16]
	ldr	x8, [x10]
	ldrsw	x10, [x8]
	ldr	x23, [x8, #8]
	lsl	x26, x9, #2
	lsl	x27, x10, #2
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_memcpy
	add	x22, x22, x26
	add	x23, x23, x27
	subs	w25, w25, #1
	b.ne	LBB0_22
; %bb.23:
	ldr	x8, [x20]
LBB0_24:
	ldr	w25, [x8, #28]
	cmp	w25, #1
	b.lt	LBB0_28
; %bb.25:
	ldr	w21, [x8, #24]
	ldrsw	x9, [x8, #32]
	ldr	x10, [x19, #32]
	ldr	x11, [x24]
	ldr	x10, [x10, x11, lsl #3]
	ldr	x22, [x8, #40]
	ldr	x8, [x10]
	ldrsw	x10, [x8, #16]
	ldr	x23, [x8, #24]
	lsl	x26, x9, #2
	lsl	x27, x10, #2
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_memcpy
	add	x22, x22, x26
	add	x23, x23, x27
	subs	w25, w25, #1
	b.ne	LBB0_26
; %bb.27:
	ldr	x8, [x20]
LBB0_28:
	ldr	w22, [x8, #52]
	cmp	w22, #1
	b.lt	LBB0_31
; %bb.29:
	ldr	w20, [x8, #48]
	ldrsw	x9, [x8, #56]
	ldr	x10, [x19, #32]
	ldr	x11, [x24]
	ldr	x10, [x10, x11, lsl #3]
	ldr	x19, [x8, #64]
	ldr	x8, [x10]
	ldrsw	x10, [x8, #32]
	ldr	x21, [x8, #40]
	lsl	x23, x9, #2
	lsl	x24, x10, #2
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	add	x19, x19, x23
	add	x21, x21, x24
	subs	w22, w22, #1
	b.ne	LBB0_30
LBB0_31:
	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
	ret
LBB0_32:
	and	x10, x8, #0xfffffffc
	add	x11, x9, #48
	mov	x12, x10
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	stp	w22, w21, [x11, #-48]
	stp	w22, w21, [x11, #-24]
	stp	w22, w21, [x11]
	stp	w22, w21, [x11, #24]
	stur	x20, [x11, #-32]
	stur	x20, [x11, #-8]
	str	x20, [x11, #16]
	str	x20, [x11, #40]
	stur	w23, [x11, #-40]
	stur	w23, [x11, #-16]
	str	w23, [x11, #8]
	str	w23, [x11, #32]
	add	x11, x11, #96
	subs	x12, x12, #4
	b.ne	LBB0_33
; %bb.34:
	cmp	x10, x8
	b.eq	LBB0_37
LBB0_35:
	mov	w11, #24
	madd	x9, x10, x11, x9
	add	x9, x9, #8
	sub	x8, x8, x10
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	stp	w22, w21, [x9, #-8]
	str	x20, [x9, #8]
	str	w23, [x9], #24
	subs	x8, x8, #1
	b.ne	LBB0_36
LBB0_37:
	add	x0, x19, #24
	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	_taskset_cycle
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_COMB_HEAVY,4,2              ; @HB_COMB_HEAVY
	.comm	_MODE_DECOMB_SELECTIVE,4,2      ; @MODE_DECOMB_SELECTIVE
	.comm	_MODE_DECOMB_BLEND,4,2          ; @MODE_DECOMB_BLEND
	.comm	_HB_COMB_LIGHT,4,2              ; @HB_COMB_LIGHT
	.comm	_HB_COMB_NONE,4,2               ; @HB_COMB_NONE
	.comm	_MODE_DECOMB_EEDI2,4,2          ; @MODE_DECOMB_EEDI2
	.comm	_MODE_DECOMB_YADIF,4,2          ; @MODE_DECOMB_YADIF
	.comm	_DST2PF,8,3                     ; @DST2PF
	.no_dead_strip	_yadif_filter
.subsections_via_symbols
