	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_frame
_filter_frame:                          ## @filter_frame
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -104(%rbp)
	movq	8(%rdi), %rbx
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rax
	movq	(%rax), %r14
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	leaq	16(%rcx), %rdi
	movq	%rsi, %rbx
	movq	%rcx, %r15
	callq	_av_frame_free
	movq	%rbx, %rdi
	callq	_av_frame_clone
	movq	%rax, 16(%r15)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	jmp	LBB0_19
LBB0_2:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_20
## %bb.3:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_av_frame_copy_props
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	leaq	16(%r8), %rax
	movq	16(%r8), %rdx
	testq	%rdx, %rdx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.5:
	movl	32(%r8), %esi
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_analyze_plane
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_6
LBB0_20:
	leaq	-104(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, (%rax)
	movq	_PROGRESSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	(%r8), %edx
	testl	%edx, %edx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jle	LBB0_7
## %bb.8:
	movq	8(%r8), %rcx
	movq	16(%r8), %rax
	xorl	%r9d, %r9d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r8), %edx
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r9
	movslq	%edx, %rbx
	cmpq	%rbx, %r9
	jge	LBB0_16
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	cmpl	$0, (%rcx,%r9,4)
	jle	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rsi), %rcx
	movq	(%rcx,%r9,8), %r12
	movq	8(%rdi), %rcx
	movq	(%rcx,%r9,8), %r13
	movq	8(%rax), %rax
	movq	(%rax,%r9,8), %rbx
	movl	$1, %r14d
	xorl	%r15d, %r15d
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	movq	%r13, %rsi
	cmoveq	%rbx, %rsi
	movq	24(%r8), %rax
	movl	(%rax,%r9,4), %edx
	movq	%r12, %rdi
	callq	_memcpy
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	8(%r8), %rcx
	movq	16(%r8), %rax
	movq	(%rax), %rdx
	movslq	(%rdx,%r9,4), %rdx
	leaq	(%rbx,%rdx,4), %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rdx
	movslq	(%rdx,%r9,4), %rdx
	leaq	(%r13,%rdx,4), %r13
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rdx
	movslq	(%rdx,%r9,4), %rdx
	leaq	(%r12,%rdx,4), %r12
	incl	%r15d
	xorl	$1, %r14d
	cmpl	(%rcx,%r9,4), %r15d
	jge	LBB0_14
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_BOTTOM_FIRST@GOTPCREL(%rip), %rax
	testl	%r14d, %r14d
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	_TOP_FIRST@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_16:
	cmpq	%rdi, %rax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_av_frame_free
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_18:
	movq	%rdi, (%rbx)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
LBB0_19:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_filter_frame                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PROGRESSIVE,4,2                ## @PROGRESSIVE
	.comm	_BOTTOM_FIRST,4,2               ## @BOTTOM_FIRST
	.comm	_TOP_FIRST,4,2                  ## @TOP_FIRST
	.no_dead_strip	_filter_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_frame
_filter_frame:                          ; @filter_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	x1, [sp, #40]
	ldr	x23, [x0, #8]
	ldp	x25, x8, [x23, #8]
	ldr	x20, [x8]
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.1:
	add	x0, x25, #16
	mov	x19, x1
	bl	_av_frame_free
	mov	x0, x19
	bl	_av_frame_clone
	str	x0, [x25, #16]
	mov	x0, x20
	mov	x1, x19
	b	LBB0_18
LBB0_2:
	str	x1, [sp, #32]                   ; 8-byte Folded Spill
	ldp	w2, w1, [x20]
	mov	x0, x20
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
	mov	x1, x19
	bl	_av_frame_copy_props
	mov	x22, x25
	ldr	x2, [x22, #16]!
	cbz	x2, LBB0_6
; %bb.4:
	ldr	w1, [x25, #32]
	mov	x0, x23
	mov	x3, x19
	bl	_analyze_plane
	b	LBB0_7
LBB0_5:
	add	x0, sp, #40
	bl	_av_frame_free
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	str	x19, [x22]
Lloh3:
	adrp	x8, _PROGRESSIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PROGRESSIVE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_7:
	stp	x22, x20, [sp]                  ; 16-byte Folded Spill
	ldr	w10, [x25]
	cmp	w10, #0
	b.le	LBB0_14
; %bb.8:
	mov	x14, #0
	ldp	x9, x8, [x25, #8]
Lloh6:
	adrp	x13, _BOTTOM_FIRST@GOTPAGE
Lloh7:
	ldr	x13, [x13, _BOTTOM_FIRST@GOTPAGEOFF]
Lloh8:
	adrp	x26, _TOP_FIRST@GOTPAGE
Lloh9:
	ldr	x26, [x26, _TOP_FIRST@GOTPAGEOFF]
	ldr	x12, [sp, #32]                  ; 8-byte Folded Reload
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	str	x25, [sp, #16]                  ; 8-byte Folded Spill
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x14, x14, #1
	cmp	x14, w10, sxtw
	b.ge	LBB0_15
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	w11, [x9, x14, lsl #2]
	cmp	w11, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w22, #0
	ldr	x9, [x21, #8]
	lsl	x10, x14, #3
	ldr	x24, [x9, x10]
	ldr	x9, [x12, #8]
	ldr	x20, [x9, x10]
	ldr	x8, [x8, #8]
	ldr	x27, [x8, x10]
	mov	w28, #1
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w28, #0
	csel	x8, x26, x13, eq
	ldr	w8, [x8]
	cmp	w0, w8
	csel	x1, x27, x20, eq
	ldr	x8, [x25, #24]
	lsl	x19, x14, #2
	ldr	w2, [x8, x19]
	mov	x0, x24
	mov	x23, x21
	mov	x21, x13
	mov	x25, x14
	bl	_memcpy
	mov	x14, x25
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w0, [sp, #28]                   ; 4-byte Folded Reload
	mov	x13, x21
	mov	x21, x23
	ldr	x12, [sp, #32]                  ; 8-byte Folded Reload
	ldp	x9, x8, [x25, #8]
	ldr	x10, [x8]
	ldrsw	x10, [x10, x19]
	add	x27, x27, x10, lsl #2
	ldr	x10, [x12]
	ldrsw	x10, [x10, x19]
	add	x20, x20, x10, lsl #2
	ldr	x10, [x23]
	ldrsw	x10, [x10, x19]
	add	x24, x24, x10, lsl #2
	add	w22, w22, #1
	eor	w28, w28, #0x1
	ldr	w10, [x9, x19]
	cmp	w22, w10
	b.lt	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w10, [x25]
	b	LBB0_9
LBB0_14:
	ldr	x8, [x22]
	ldr	x12, [sp, #32]                  ; 8-byte Folded Reload
LBB0_15:
	cmp	x8, x12
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_av_frame_free
	ldr	x12, [sp, #32]                  ; 8-byte Folded Reload
LBB0_17:
	str	x12, [x19]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x21
LBB0_18:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_ff_filter_frame
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PROGRESSIVE,4,2                ; @PROGRESSIVE
	.comm	_BOTTOM_FIRST,4,2               ; @BOTTOM_FIRST
	.comm	_TOP_FIRST,4,2                  ; @TOP_FIRST
	.no_dead_strip	_filter_frame
.subsections_via_symbols
