	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rsi, -64(%rbp)
	movq	(%rdi), %r13
	movq	(%r13), %r12
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12), %ebx
	movq	24(%r12), %r15
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	cmpl	$1, %ebx
	je	LBB0_7
LBB0_2:
	testl	%ebx, %ebx
	jne	LBB0_16
## %bb.3:
	cmpq	$0, 24(%r14)
	jne	LBB0_9
## %bb.4:
	xorl	%r8d, %r8d
	jmp	LBB0_8
LBB0_5:
	movq	%r14, %rdi
	callq	_av_frame_clone
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_22
## %bb.6:
	movq	%rax, %r15
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	cmpl	$1, %ebx
	jne	LBB0_2
LBB0_7:
	movq	24(%r14), %r8
	testq	%r8, %r8
	je	LBB0_15
LBB0_8:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r14), %r9d
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %ecx
	callq	_av_log
	xorl	$1, %ebx
	jne	LBB0_16
LBB0_9:
	movq	%r14, %rdi
	callq	_av_frame_clone
	testq	%rax, %rax
	je	LBB0_22
## %bb.10:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ff_filter_frame
	movl	%eax, %r13d
	cmpl	$0, 20(%r14)
	je	LBB0_27
## %bb.11:
	movq	%r15, %rdi
	callq	_av_frame_make_writable
	movl	16(%r14), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$2, %ecx
	callq	_update_pts
	movl	$1, %eax
	cmpl	$0, 4(%r12)
	jle	LBB0_28
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdi
	movl	(%rax,%rbx,4), %esi
	addl	%esi, %esi
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movl	(%rax,%rbx,4), %ecx
	addl	%ecx, %ecx
	movq	8(%r12), %r9
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %r8d
	movl	(%r9,%rbx,4), %eax
	movl	%eax, %r9d
	shrl	$31, %r9d
	addl	%eax, %r9d
	sarl	%r9d
	callq	_av_image_copy_plane
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_13
## %bb.14:
	movl	$1, %eax
	jmp	LBB0_28
LBB0_15:
	movl	$1, %ebx
LBB0_16:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, 4(%r12)
	jle	LBB0_19
## %bb.17:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_av_frame_make_writable
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movslq	(%rax,%rbx,4), %rdi
	leal	(%rdi,%rdi), %esi
	addq	(%rcx,%rbx,8), %rdi
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movslq	(%rax,%rbx,4), %rax
	movq	%rax, %rdx
	addq	(%rcx,%rbx,8), %rdx
	leal	(%rax,%rax), %ecx
	movq	8(%r12), %r9
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %r8d
	movl	(%r9,%rbx,4), %eax
	movl	%eax, %r9d
	shrl	$31, %r9d
	addl	%eax, %r9d
	sarl	%r9d
	callq	_av_image_copy_plane
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_18
LBB0_19:
	movq	%r15, %rdi
	callq	_av_frame_clone
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ff_filter_frame
	cmpl	$0, 20(%r14)
	je	LBB0_23
## %bb.20:
	movq	%r14, %rdi
	callq	_av_frame_clone
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ff_filter_frame
	movl	%eax, %r13d
LBB0_27:
	xorl	%eax, %eax
	jmp	LBB0_28
LBB0_22:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_23:
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_av_frame_make_writable
	movl	16(%r14), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	_update_pts
	cmpl	$0, 4(%r12)
	jle	LBB0_26
## %bb.24:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdi
	movl	(%rax,%rbx,4), %esi
	addl	%esi, %esi
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movl	(%rax,%rbx,4), %ecx
	addl	%ecx, %ecx
	movq	8(%r12), %r9
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %r8d
	movl	(%r9,%rbx,4), %eax
	movl	%eax, %r9d
	shrl	$31, %r9d
	addl	%eax, %r9d
	sarl	%r9d
	callq	_av_image_copy_plane
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_25
LBB0_26:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_28:
	movl	%eax, (%r12)
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected field flags: state=%d top_field_first=%d repeat_first_field=%d\n"

	.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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	str	x1, [sp, #8]
	ldr	x23, [x0]
	ldp	x24, x8, [x23]
	ldr	x22, [x8]
	ldr	w21, [x24]
	ldr	x20, [x24, #24]
	cbz	x20, LBB0_5
; %bb.1:
	cmp	w21, #1
	b.eq	LBB0_7
LBB0_2:
	cbnz	w21, LBB0_16
; %bb.3:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_9
; %bb.4:
	mov	x4, #0
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_av_frame_clone
	str	x0, [x24, #24]
	cbz	x0, LBB0_23
; %bb.6:
	mov	x20, x0
Lloh0:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	cmp	w21, #1
	b.ne	LBB0_2
LBB0_7:
	ldr	x4, [x19, #24]
	cbz	x4, LBB0_15
LBB0_8:
Lloh3:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w5, [x19, #20]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	mov	x3, x21
	bl	_av_log
	eor	w21, w21, #0x1
	cbnz	w21, LBB0_16
LBB0_9:
	mov	x0, x19
	bl	_av_frame_clone
	cbz	x0, LBB0_23
; %bb.10:
	mov	x1, x0
	mov	x0, x22
	bl	_ff_filter_frame
	mov	x23, x0
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_22
; %bb.11:
	mov	x0, x20
	bl	_av_frame_make_writable
	ldr	w2, [x19, #16]
	mov	x0, x22
	mov	x1, x20
	mov	w3, #2
	bl	_update_pts
	ldr	w8, [x24, #4]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x21, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	lsl	x8, x21, #3
	ldp	x10, x9, [x20]
	ldr	x0, [x9, x8]
	lsl	x9, x21, #2
	ldr	w10, [x10, x9]
	lsl	w1, w10, #1
	ldp	x11, x10, [x19]
	ldr	x2, [x10, x8]
	ldr	w8, [x11, x9]
	ldp	x11, x10, [x24, #8]
	ldr	w4, [x10, x9]
	lsl	w3, w8, #1
	ldr	w8, [x11, x9]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w5, w8, #1
	bl	_av_image_copy_plane
	add	x21, x21, #1
	ldrsw	x8, [x24, #4]
	cmp	x21, x8
	b.lt	LBB0_13
LBB0_14:
	mov	w21, #1
	b	LBB0_27
LBB0_15:
	mov	w21, #1
LBB0_16:
	ldr	w8, [x24, #4]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.17:
	mov	x23, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_av_frame_make_writable
	lsl	x8, x23, #3
	ldp	x10, x9, [x20]
	ldr	x9, [x9, x8]
	lsl	x11, x23, #2
	ldrsw	x10, [x10, x11]
	add	x0, x9, x10
	ldp	x12, x9, [x19]
	ldr	x8, [x9, x8]
	ldrsw	x9, [x12, x11]
	lsl	w1, w10, #1
	add	x2, x8, x9
	ldp	x10, x8, [x24, #8]
	ldr	w4, [x8, x11]
	lsl	w3, w9, #1
	ldr	w8, [x10, x11]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w5, w8, #1
	bl	_av_image_copy_plane
	add	x23, x23, #1
	ldrsw	x8, [x24, #4]
	cmp	x23, x8
	b.lt	LBB0_18
LBB0_19:
	mov	x0, x20
	bl	_av_frame_clone
	mov	x1, x0
	mov	x0, x22
	bl	_ff_filter_frame
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_24
; %bb.20:
	mov	x0, x19
	bl	_av_frame_clone
	cbz	x0, LBB0_23
; %bb.21:
	mov	x1, x0
	mov	x0, x22
	bl	_ff_filter_frame
	mov	x23, x0
LBB0_22:
	mov	w21, #0
	b	LBB0_27
LBB0_23:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_AVERROR
LBB0_24:
	mov	x23, x0
	mov	x0, x20
	bl	_av_frame_make_writable
	ldr	w2, [x19, #16]
	mov	x0, x22
	mov	x1, x20
	mov	w3, #1
	bl	_update_pts
	ldr	w8, [x24, #4]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.25:
	mov	x22, #0
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	lsl	x8, x22, #3
	ldp	x10, x9, [x20]
	ldr	x0, [x9, x8]
	lsl	x9, x22, #2
	ldr	w10, [x10, x9]
	lsl	w1, w10, #1
	ldp	x11, x10, [x19]
	ldr	x2, [x10, x8]
	ldr	w8, [x11, x9]
	ldp	x11, x10, [x24, #8]
	ldr	w4, [x10, x9]
	lsl	w3, w8, #1
	ldr	w8, [x11, x9]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w5, w8, #1
	bl	_av_image_copy_plane
	add	x22, x22, #1
	ldrsw	x8, [x24, #4]
	cmp	x22, x8
	b.lt	LBB0_26
LBB0_27:
	str	w21, [x24]
	add	x0, sp, #8
	bl	_av_frame_free
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected field flags: state=%d top_field_first=%d repeat_first_field=%d\n"

	.no_dead_strip	_filter_frame
.subsections_via_symbols
