	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -80(%rbp)
	movq	8(%rdi), %r13
	movq	(%r13), %rax
	movq	(%rax), %r14
	cmpq	$0, 32(%rsi)
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	8(%r13), %r12
	movq	(%rsi), %rax
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str.2(%rip), %rcx
LBB0_4:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	callq	_av_log
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_filter_frame                ## TAILCALL
LBB0_5:
	movq	%rsi, %rdi
	movq	%rsi, %r15
	callq	_av_frame_is_writable
	movq	%r15, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	%r14, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_av_frame_copy_props
LBB0_9:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpq	$0, (%r12)
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	callq	_av_log
	movl	8(%r15), %r9d
	leal	-1(%r9), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%r9d, %eax
	negl	%eax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%r15, %rdi
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_10 Depth=1
	movslq	-64(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	(%r14,%rax,4), %rsi
	movq	%r13, %rdi
	callq	_memcpy
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_25:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	incq	%rcx
	cmpq	$4, %rcx
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	je	LBB0_26
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_23 Depth 2
	movq	24(%rdi), %rax
	movq	(%rax,%rcx,8), %r14
	testq	%r14, %r14
	je	LBB0_26
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%rdi), %rax
	movl	(%rax,%rcx,4), %edx
	testl	%edx, %edx
	je	LBB0_26
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%r8d, %r8d
	movl	$0, %eax
	cmpl	$3, %r9d
	jl	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%rbx), %rax
	movl	(%rax,%rcx,4), %r8d
	movl	%edx, %eax
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	24(%rbx), %rbx
	movq	8(%r12), %rsi
	movl	(%rsi,%rcx,4), %edx
	movq	(%rbx,%rcx,8), %rbx
	cmpq	$0, (%r12)
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	je	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	testl	%r9d, %r9d
	jle	LBB0_25
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	(%rax,%rax), %ecx
	movslq	%ecx, %rcx
	negq	%rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movslq	%eax, %r15
	movslq	%r8d, %r12
	leaq	(,%r15,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %r12
	movl	$1, %r13d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=2
	leaq	(%r14,%rax,4), %rsi
	movq	%rbx, %rdi
	callq	_memcpy
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	addq	%r12, %rbx
	movq	-136(%rbp), %rax                ## 8-byte Reload
	addl	%r13d, %eax
	incl	%eax
	movl	%r13d, %ecx
	incl	%ecx
	movl	%ecx, %r13d
	cmpl	$1, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_25
LBB0_17:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rax
	cmpl	8(%rdi), %r13d
	jl	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	-128(%rbp), %rax                ## 8-byte Reload
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	testl	%r9d, %r9d
	jle	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %edi
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	imull	%ecx, %edi
	movl	%r8d, %esi
	imull	%ecx, %esi
	leal	(%rax,%rax), %r9d
	movslq	%edi, %rdi
	leaq	(%r14,%rdi,4), %r14
	movslq	%esi, %rsi
	leaq	(%rbx,%rsi,4), %r13
	testl	%ecx, %ecx
	movl	%r9d, -64(%rbp)                 ## 4-byte Spill
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	%eax, %r15
	movslq	%r8d, %r12
	shlq	$2, %r12
	negq	%r12
	shlq	$2, %r15
	negq	%r15
	movl	%ecx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addq	%r15, %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	%r12, %r13
	decl	%ebx
	jne	LBB0_23
	jmp	LBB0_24
LBB0_26:
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	cmpq	%rdi, %rbx
	je	LBB0_28
## %bb.27:
	leaq	-80(%rbp), %rdi
	callq	_av_frame_free
LBB0_28:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ff_filter_frame
LBB0_29:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	-80(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Skipping %s.\n"

L_.str.1:                               ## @.str.1
	.asciz	"frame with same field order"

L_.str.2:                               ## @.str.2
	.asciz	"progressive frame"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_TRACE,4,2               ## @AV_LOG_TRACE
L_.str.3:                               ## @.str.3
	.asciz	"picture will move %s one line\n"

L_.str.4:                               ## @.str.4
	.asciz	"up"

L_.str.5:                               ## @.str.5
	.asciz	"down"

	.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
	stp	x1, x1, [sp, #32]               ; 8-byte Folded Spill
	ldr	x22, [x0, #8]
	ldr	x8, [x22]
	ldr	x19, [x8]
	ldr	x8, [x1, #32]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x21, [x22, #8]
	ldr	x8, [x1]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x3, l_.str.1@PAGE
Lloh1:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x3, l_.str.2@PAGE
Lloh3:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_4:
Lloh4:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_av_log
	mov	x0, x19
	ldr	x1, [sp, #32]                   ; 8-byte Folded Reload
	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
LBB0_5:
	mov	x0, x1
	mov	x20, x1
	bl	_av_frame_is_writable
	mov	x23, x20
	cbnz	x0, LBB0_8
; %bb.6:
	ldp	w2, w1, [x19]
	mov	x0, x19
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_25
; %bb.7:
	mov	x23, x0
	ldr	x20, [sp, #32]                  ; 8-byte Folded Reload
	mov	x1, x20
	bl	_av_frame_copy_props
LBB0_8:
	str	x19, [sp]                       ; 8-byte Folded Spill
Lloh9:
	adrp	x8, _AV_LOG_TRACE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_TRACE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x8, [x21]
Lloh12:
	adrp	x9, l_.str.4@PAGE
Lloh13:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh14:
	adrp	x10, l_.str.5@PAGE
Lloh15:
	add	x10, x10, l_.str.5@PAGEOFF
	cmp	x8, #0
	csel	x3, x10, x9, eq
Lloh16:
	adrp	x2, l_.str.3@PAGE
Lloh17:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_av_log
	mov	x26, #0
	ldr	w27, [x20, #8]
	sub	w8, w27, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	x13, x20
	stp	x23, x21, [sp, #16]             ; 16-byte Folded Spill
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	lsl	w8, w19, #1
	sxtw	x8, w8
	add	x1, x24, x8, lsl #2
	mov	x0, x23
	mov	x2, x22
	bl	_memcpy
	ldr	x13, [sp, #32]                  ; 8-byte Folded Reload
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x26, x26, #1
	cmp	x26, #4
	ldp	x23, x21, [sp, #16]             ; 16-byte Folded Reload
	b.eq	LBB0_21
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
	ldr	x8, [x13, #24]
	ldr	x24, [x8, x26, lsl #3]
	cbz	x24, LBB0_21
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x13, #16]
	ldr	w9, [x8, x26, lsl #2]
	cbz	w9, LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	lsl	x10, x26, #2
	ldp	x8, x11, [x23, #16]
	ldr	w8, [x8, x10]
	cmp	w27, #2
	csel	w8, w8, wzr, gt
	csel	w19, w9, wzr, gt
	ldp	x12, x9, [x21]
	ldr	w22, [x9, x10]
	ldr	x23, [x11, x26, lsl #3]
	cmp	w27, #1
	cbz	x12, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	b.lt	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x9, #0
	mov	w28, #0
	lsl	w10, w19, #1
	sxtw	x21, w19
	sbfiz	x19, x19, #2, #32
	sbfiz	x25, x8, #2, #32
	sub	x20, x9, w10, sxtw
LBB0_16:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w28, w28, #1
	ldr	w8, [x13, #8]
	cmp	w28, w8
	csel	x8, x21, x20, lt
	add	x1, x24, x8, lsl #2
	mov	x0, x23
	mov	x2, x22
	bl	_memcpy
	ldr	x13, [sp, #32]                  ; 8-byte Folded Reload
	add	x24, x24, x19
	add	x23, x23, x25
	cmp	w27, w28
	b.ne	LBB0_16
	b	LBB0_10
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	b.lt	LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w25, [sp, #12]                  ; 4-byte Folded Reload
	mul	w9, w19, w25
	add	x24, x24, w9, sxtw #2
	mul	w9, w8, w25
	add	x23, x23, w9, sxtw #2
	cbz	w25, LBB0_9
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x9, x19
	sxtw	x9, w9
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x8, w8
	neg	x20, x8, lsl #2
	neg	x21, x9, lsl #2
LBB0_20:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x24, x24, x21
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	bl	_memcpy
	add	x23, x23, x20
	subs	w25, w25, #1
	b.ne	LBB0_20
	b	LBB0_9
LBB0_21:
	ldr	x8, [x21]
	str	x8, [x23]
	cmp	x23, x13
	b.eq	LBB0_23
; %bb.22:
	add	x0, sp, #40
	bl	_av_frame_free
LBB0_23:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x23
	bl	_ff_filter_frame
LBB0_24:
	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_25:
	add	x0, sp, #40
	bl	_av_frame_free
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_24
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Skipping %s.\n"

l_.str.1:                               ; @.str.1
	.asciz	"frame with same field order"

l_.str.2:                               ; @.str.2
	.asciz	"progressive frame"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_TRACE,4,2               ; @AV_LOG_TRACE
l_.str.3:                               ; @.str.3
	.asciz	"picture will move %s one line\n"

l_.str.4:                               ; @.str.4
	.asciz	"up"

l_.str.5:                               ; @.str.5
	.asciz	"down"

	.no_dead_strip	_filter_frame
.subsections_via_symbols
