	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, -64(%rbp)
	movq	8(%rdi), %rdi
	movq	(%rdi), %rax
	movq	8(%rdi), %r13
	movq	(%rax), %r15
	movq	8(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	movq	%r12, %rsi
	callq	_decimate_frame
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r13), %rsi
	incq	%rsi
	movl	$1, %edi
	callq	_FFMAX
	movq	%rax, (%r13)
	jmp	LBB0_6
LBB0_3:
	leaq	8(%r13), %rdi
	callq	_av_frame_free
	movq	%r12, 8(%r13)
	movq	(%r13), %rsi
	decq	%rsi
	movl	$-1, %edi
	callq	_FFMIN
	movq	%rax, (%r13)
	movq	%r12, %rdi
	callq	_av_frame_clone
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ff_filter_frame
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	(%r13), %rax
LBB0_6:
	movq	8(%r14), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rbx
	cmovgq	%rax, %rbx
	movl	(%r12), %edi
	callq	_av_ts2str
	movl	%eax, %r15d
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_av_ts2timestr
	movq	(%r13), %rcx
	movq	%rcx, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rcx
	movl	%r15d, %r8d
	movl	%eax, %r9d
	callq	_av_log
	xorl	%ebx, %ebx
	cmpq	$0, (%r13)
	jle	LBB0_8
## %bb.7:
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
	jmp	LBB0_8
LBB0_4:
	movl	%eax, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s pts:%s pts_time:%s drop_count:%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"drop"

L_.str.2:                               ## @.str.2
	.asciz	"keep"

	.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, #96
	.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
	mov	x20, x1
	mov	x19, x0
	str	x1, [sp, #8]
	ldr	x0, [x0, #8]
	ldp	x8, x25, [x0]
	ldr	x21, [x8]
	mov	x22, x25
	ldr	x2, [x22, #8]!
	cbz	x2, LBB0_3
; %bb.1:
	mov	x1, x20
	bl	_decimate_frame
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x25]
	add	x1, x8, #1
	mov	w0, #1
	bl	_FFMAX
	str	x0, [x25]
	b	LBB0_5
LBB0_3:
	mov	x0, x22
	bl	_av_frame_free
	str	x20, [x25, #8]
	ldr	x8, [x25]
	sub	x1, x8, #1
	mov	w0, #-1
	bl	_FFMIN
	str	x0, [x25]
	mov	x0, x20
	bl	_av_frame_clone
	mov	x1, x0
	mov	x0, x21
	bl	_ff_filter_frame
	tbnz	w0, #31, LBB0_8
; %bb.4:
	ldr	x0, [x25]
LBB0_5:
	ldr	x21, [x19, #8]
Lloh0:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh4:
	ldr	w22, [x8]
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x23, x8, x9, gt
	ldr	w0, [x20]
	bl	_av_ts2str
	mov	x24, x0
	ldr	w0, [x20]
	mov	x1, x19
	bl	_av_ts2timestr
	mov	x5, x0
	ldr	x6, [x25]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	mov	x3, x23
	mov	x4, x24
	bl	_av_log
	ldr	x8, [x25]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.6:
	add	x0, sp, #8
	bl	_av_frame_free
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s pts:%s pts_time:%s drop_count:%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"drop"

l_.str.2:                               ; @.str.2
	.asciz	"keep"

	.no_dead_strip	_filter_frame
.subsections_via_symbols
