	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vc1_p_overlap_filter        ## -- Begin function ff_vc1_p_overlap_filter
	.p2align	4, 0x90
_ff_vc1_p_overlap_filter:               ## @ff_vc1_p_overlap_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_CONFIG_GRAY@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	112(%r12), %rax
	movq	_AV_CODEC_FLAG_GRAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	testl	%ecx, (%rax)
	sete	%dl
	leaq	(%rdx,%rdx), %r13
	addq	$4, %r13
	jmp	LBB0_3
LBB0_1:
	movl	$6, %r13d
LBB0_3:
	movl	64(%r12), %eax
	movl	72(%r12), %ecx
	imull	68(%r12), %ecx
	movq	56(%r12), %rdx
	movq	(%r12), %rsi
	movq	8(%r12), %rdi
	movq	(%rdx,%rsi,8), %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdx,%rdi,8), %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rsi
	movq	(%rdx,%rsi,8), %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	24(%r12), %rsi
	movq	(%rdx,%rsi,8), %r15
	leal	(%rcx,%rax), %edx
	decl	%edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	addl	%eax, %ecx
	movslq	%edx, %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movslq	%ecx, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	-1(%r13), %r14
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_6
	.p2align	4, 0x90
LBB0_5:
	movl	%ebx, %ecx
	andl	$5, %ecx
	cmpl	$1, %ecx
	jne	LBB0_15
LBB0_6:
	movq	40(%r12), %rcx
	movq	80(%r12), %rdx
	movq	(%rcx), %rcx
	movq	(%rdx,%rbx,8), %rdx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_15
## %bb.7:
	cmpq	$0, -8(%rcx,%rdx,8)
	je	LBB0_15
## %bb.8:
	testl	%eax, %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmoveq	%r15, %rsi
	movq	32(%r12), %rdx
	movq	_ILACE_FRAME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	xorl	%ecx, %ecx
	cmpq	%rdi, %rdx
	jne	LBB0_11
## %bb.9:
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	48(%r12), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rax,%rcx,8)
	setne	%cl
LBB0_11:
	cmpq	%rdi, %rdx
	jne	LBB0_12
## %bb.13:
	movq	48(%r12), %rax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpq	$0, (%rax,%rdx,8)
	setne	%al
	jmp	LBB0_14
LBB0_12:
	xorl	%eax, %eax
LBB0_14:
	movzbl	%cl, %ecx
	movzbl	%al, %r8d
	movq	%r12, %rdi
	movq	%r15, %rdx
	movl	%ebx, %r9d
	callq	_vc1_h_overlap_filter
	.p2align	4, 0x90
LBB0_15:
	cmpq	%rbx, %r14
	je	LBB0_17
## %bb.16:
	movl	64(%r12), %eax
	incq	%rbx
	testl	%eax, %eax
	je	LBB0_5
	jmp	LBB0_6
LBB0_17:
	movq	32(%r12), %rax
	movq	_ILACE_FRAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_18
LBB0_31:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%rbx
	cmpq	%rbx, %r13
	je	LBB0_31
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	104(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%ebx, %eax
	andl	$2, %eax
	je	LBB0_30
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	64(%r12), %eax
	testl	%eax, %eax
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	40(%r12), %rdx
	movq	80(%r12), %rsi
	movq	(%rdx), %rdx
	movq	(%rsi,%rbx,8), %rsi
	cmpq	$4, %rbx
	sbbq	$-1, %rsi
	cmpq	$0, -16(%rdx,%rsi,8)
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=1
	addq	$-2, %rsi
	movq	88(%r12), %rdi
	movslq	(%rdi,%rbx,4), %rdi
	subq	%rdi, %rsi
	cmpq	$0, (%rdx,%rsi,8)
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_19 Depth=1
	testq	%rcx, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, %rsi
	cmoveq	%r14, %rsi
	movq	%r12, %rdi
	movl	%ebx, %ecx
	callq	_vc1_v_overlap_filter
	movl	64(%r12), %eax
	jmp	LBB0_26
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	xorl	%eax, %eax
LBB0_26:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	96(%r12), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jne	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	40(%r12), %rax
	movq	80(%r12), %rcx
	movq	(%rax), %rax
	movq	(%rcx,%rbx,8), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	88(%r12), %rdx
	movslq	(%rdx,%rbx,4), %rdx
	subq	%rdx, %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpq	$0, 104(%r12)
	movq	%r15, %rsi
	cmoveq	-64(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%r12, %rdi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_vc1_v_overlap_filter
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_GRAY,8,3                ## @CONFIG_GRAY
	.comm	_AV_CODEC_FLAG_GRAY,4,2         ## @AV_CODEC_FLAG_GRAY
	.comm	_ILACE_FRAME,8,3                ## @ILACE_FRAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vc1_p_overlap_filter        ; -- Begin function ff_vc1_p_overlap_filter
	.p2align	2
_ff_vc1_p_overlap_filter:               ; @ff_vc1_p_overlap_filter
	.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	x19, x0
Lloh0:
	adrp	x8, _CONFIG_GRAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_GRAY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #112]
Lloh3:
	adrp	x9, _AV_CODEC_FLAG_GRAY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_FLAG_GRAY@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #4
	mov	w9, #6
	csel	x23, x9, x8, eq
	b	LBB0_3
LBB0_2:
	mov	w23, #6
LBB0_3:
	mov	x22, #0
	ldp	w8, w9, [x19, #64]
	ldr	w10, [x19, #72]
	madd	w9, w10, w9, w8
	ldr	x10, [x19, #56]
	ldp	x11, x12, [x19]
	ldr	x11, [x10, x11, lsl #3]
	str	x11, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x11, [x10, x12, lsl #3]
	str	x11, [sp]                       ; 8-byte Folded Spill
	ldp	x11, x12, [x19, #16]
	ldr	x20, [x10, x11, lsl #3]
	ldr	x21, [x10, x12, lsl #3]
	sxtw	x26, w9
	sub	x27, x26, #1
	sub	x28, x23, #1
	mov	w24, #5
Lloh6:
	adrp	x25, _ILACE_FRAME@GOTPAGE
Lloh7:
	ldr	x25, [x25, _ILACE_FRAME@GOTPAGEOFF]
	cbnz	w8, LBB0_5
LBB0_4:
	and	w9, w22, w24
	cmp	w9, #1
	b.ne	LBB0_13
LBB0_5:
	ldr	x9, [x19, #40]
	ldr	x9, [x9]
	ldr	x10, [x19, #80]
	ldr	x10, [x10, x22, lsl #3]
	ldr	x11, [x9, x10, lsl #3]
	cbz	x11, LBB0_13
; %bb.6:
	add	x9, x9, x10, lsl #3
	ldur	x9, [x9, #-8]
	cbz	x9, LBB0_13
; %bb.7:
	cmp	w8, #0
	csel	x1, x21, x20, eq
	ldr	x9, [x19, #32]
	ldr	x10, [x25]
	cmp	x9, x10
	ccmp	w8, #0, #4, eq
	b.ne	LBB0_10
; %bb.8:
	mov	w3, #0
	cmp	x9, x10
	b.eq	LBB0_11
LBB0_9:
	mov	w4, #0
	b	LBB0_12
LBB0_10:
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x27, lsl #3]
	cmp	x8, #0
	cset	w3, ne
	cmp	x9, x10
	b.ne	LBB0_9
LBB0_11:
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x26, lsl #3]
	cmp	x8, #0
	cset	w4, ne
LBB0_12:
	mov	x0, x19
	mov	x2, x21
	mov	x5, x22
	bl	_vc1_h_overlap_filter
LBB0_13:
	cmp	x28, x22
	b.eq	LBB0_15
; %bb.14:
	ldr	w8, [x19, #64]
	add	x22, x22, #1
	cbz	w8, LBB0_4
	b	LBB0_5
LBB0_15:
	ldr	x8, [x19, #32]
	ldr	x9, [x25]
	cmp	x8, x9
	ldp	x25, x24, [sp]                  ; 16-byte Folded Reload
	b.ne	LBB0_17
LBB0_16:
	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
LBB0_17:
	mov	x22, #0
	mov	x26, #-2
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x22, x22, #1
	cmp	x23, x22
	b.eq	LBB0_16
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #104]
	and	w8, w22, #0x2
	cmp	x9, #0
	ccmp	w8, #0, #0, ne
	b.eq	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x19, #64]
	cbz	w8, LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x10, [x19, #40]
	ldr	x11, [x19, #80]
	ldr	x11, [x11, x22, lsl #3]
	ldr	x10, [x10]
	cmp	x22, #3
	cinc	x12, x26, hi
	add	x11, x12, x11
	ldr	x12, [x10, x11, lsl #3]
	cbz	x12, LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x12, [x19, #88]
	ldrsw	x12, [x12, x22, lsl #2]
	sub	x11, x11, x12
	ldr	x10, [x10, x11, lsl #3]
	cbz	x10, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	x9, #0
	csel	x1, x24, x20, eq
	mov	x0, x19
	mov	x2, x20
	mov	x3, x22
	bl	_vc1_v_overlap_filter
	ldr	w8, [x19, #64]
LBB0_24:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w9, [x19, #96]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.25:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	ldr	x9, [x19, #80]
	ldr	x9, [x9, x22, lsl #3]
	ldr	x10, [x8, x9, lsl #3]
	cbz	x10, LBB0_18
; %bb.26:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x10, [x19, #88]
	ldrsw	x10, [x10, x22, lsl #2]
	sub	x9, x9, x10
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_18
; %bb.27:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x19, #104]
	cmp	x8, #0
	csel	x1, x25, x21, eq
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_vc1_v_overlap_filter
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_GRAY,8,3                ; @CONFIG_GRAY
	.comm	_AV_CODEC_FLAG_GRAY,4,2         ; @AV_CODEC_FLAG_GRAY
	.comm	_ILACE_FRAME,8,3                ; @ILACE_FRAME
.subsections_via_symbols
