	.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, %r15
	movq	%rsi, -56(%rbp)
	movq	(%rdi), %rbx
	movq	8(%rbx), %r12
	movq	16(%rbx), %rax
	movq	(%rax), %r14
	movl	(%r12), %eax
	cmpl	$1, %eax
	jg	LBB0_3
## %bb.1:
	cmpl	$-2, %eax
	je	LBB0_3
## %bb.2:
	movq	32(%r12), %rax
	testq	%rax, %rax
	je	LBB0_20
LBB0_19:
	cmpq	$0, 8(%r15)
	je	LBB0_21
LBB0_20:
	cmpq	$0, (%rbx)
	je	LBB0_32
LBB0_21:
	movq	%r15, %rdi
	callq	_av_frame_clone
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:
	movq	%rax, %rbx
	movl	(%r12), %eax
	cmpl	$1, %eax
	jg	LBB0_25
## %bb.24:
	cmpl	$-2, %eax
	je	LBB0_25
## %bb.28:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	jmp	LBB0_29
LBB0_3:
	leaq	24(%r12), %r13
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 16(%r12)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_get_frame
	leaq	8(%r12), %rdi
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	(%rdi), %rsi
	movq	(%r15), %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_9
## %bb.7:
	movq	(%rsi), %rdx
	cmpq	%rcx, %rdx
	jne	LBB0_8
LBB0_9:
	movq	%rcx, (%rsi)
	jmp	LBB0_10
LBB0_32:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	16(%r12), %r14
	movq	%r15, 16(%r12)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_get_frame
	testl	%eax, %eax
	js	LBB0_33
## %bb.34:
	movq	(%r15), %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_36
## %bb.35:
	addq	%rax, %rax
	movq	8(%r12), %rcx
	movq	%rax, (%rcx)
LBB0_36:
	movl	(%r12), %eax
	incl	%eax
	cmpl	$2, %eax
	ja	LBB0_38
## %bb.37:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	movq	$0, (%r14)
LBB0_38:
	movq	8(%r12), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_39
LBB0_22:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	addq	$24, %r12
	movq	%r12, %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_40
LBB0_25:
	leaq	24(%r12), %r13
	movq	%r13, %rdi
	callq	_av_frame_free
	cmpq	$0, 32(%r12)
	je	LBB0_27
## %bb.26:
	cmpq	$0, 8(%r15)
	je	LBB0_29
LBB0_27:
	movq	%r15, (%r13)
LBB0_29:
	movq	(%rbx), %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_31
## %bb.30:
	addq	%rax, %rax
	movq	%rax, (%rbx)
LBB0_31:
	movq	%r14, %rdi
	movq	%rbx, %rsi
LBB0_39:
	callq	_ff_filter_frame
LBB0_40:
	movl	%eax, %r13d
LBB0_41:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, %r13d
	callq	_av_frame_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_frame_free
	movq	$0, 16(%r12)
	jmp	LBB0_41
LBB0_33:
	movl	%eax, %r13d
	leaq	8(%r12), %rdi
	callq	_av_frame_free
	movq	%r14, %rdi
	callq	_av_frame_free
	addq	$24, %r12
	movq	%r12, %rdi
	callq	_av_frame_free
	jmp	LBB0_41
LBB0_8:
	addq	%rax, %rdx
	movq	%rdx, (%rsi)
LBB0_10:
	movq	%r14, %rdi
	callq	_ff_filter_frame
	testl	%eax, %eax
	js	LBB0_40
## %bb.11:
	xorl	%r13d, %r13d
	cmpq	$0, 40(%r12)
	jne	LBB0_41
## %bb.12:
	movq	24(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_av_frame_free
LBB0_13:
	movq	32(%r12), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	cmpq	$0, 8(%r15)
	je	LBB0_19
## %bb.15:
	cmpq	$0, (%rbx)
	jne	LBB0_19
	jmp	LBB0_17
LBB0_16:
	cmpq	$0, (%rbx)
	jne	LBB0_20
LBB0_17:
	movq	%r15, (%r13)
	testq	%rax, %rax
	jne	LBB0_19
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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	x20, x1
	str	x1, [sp, #8]
	ldr	x21, [x0]
	ldp	x24, x8, [x21, #8]
	ldr	x19, [x8]
	ldr	w8, [x24]
	cmp	w8, #1
	ccmn	w8, #2, #4, le
	b.ne	LBB0_6
; %bb.1:
	mov	x22, x24
	ldr	x8, [x22, #24]!
	cbz	x8, LBB0_35
; %bb.2:
	str	x8, [x24, #16]
	mov	x0, x21
	mov	w1, #1
	bl	_get_frame
	mov	x23, x0
	add	x0, x24, #8
	tbnz	w23, #31, LBB0_28
; %bb.3:
	ldr	x1, [x0]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
	ldr	x10, [x1]
	cmp	x10, x9
	b.ne	LBB0_30
LBB0_5:
	str	x9, [x1]
	b	LBB0_31
LBB0_6:
	ldr	x8, [x24, #32]
	cbz	x8, LBB0_8
LBB0_7:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
LBB0_8:
	ldr	x8, [x21]
	cbz	x8, LBB0_14
LBB0_9:
	mov	x0, x20
	bl	_av_frame_clone
	cbz	x0, LBB0_20
; %bb.10:
	mov	x21, x0
	ldr	w8, [x24]
	cmp	w8, #1
	ccmn	w8, #2, #4, le
	b.ne	LBB0_21
; %bb.11:
	add	x22, x24, #24
	mov	x0, x22
	bl	_av_frame_free
	ldr	x8, [x24, #32]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_22
LBB0_13:
	str	x20, [x22]
	b	LBB0_22
LBB0_14:
	mov	x22, x24
	str	x20, [x22, #16]!
	mov	x0, x21
	mov	w1, #0
	bl	_get_frame
	tbnz	w0, #31, LBB0_29
; %bb.15:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _AV_NOPTS_VALUE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.16:
	lsl	x8, x8, #1
	ldr	x9, [x24, #8]
	str	x8, [x9]
LBB0_17:
	ldr	w8, [x24]
	add	w8, w8, #1
	cmp	w8, #2
	b.hi	LBB0_19
; %bb.18:
	add	x0, sp, #8
	bl	_av_frame_free
	str	xzr, [x22]
LBB0_19:
	ldr	x1, [x24, #8]
	mov	x0, x19
	b	LBB0_25
LBB0_20:
	add	x0, sp, #8
	bl	_av_frame_free
	add	x0, x24, #24
	bl	_av_frame_free
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_26
LBB0_21:
	add	x0, sp, #8
	bl	_av_frame_free
LBB0_22:
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _AV_NOPTS_VALUE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_24
; %bb.23:
	lsl	x8, x8, #1
	str	x8, [x21]
LBB0_24:
	mov	x0, x19
	mov	x1, x21
LBB0_25:
	bl	_ff_filter_frame
LBB0_26:
	mov	x23, x0
LBB0_27:
	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
LBB0_28:
	bl	_av_frame_free
	mov	x0, x22
	bl	_av_frame_free
	str	xzr, [x24, #16]
	b	LBB0_27
LBB0_29:
	mov	x23, x0
	add	x0, x24, #8
	bl	_av_frame_free
	mov	x0, x22
	bl	_av_frame_free
	add	x0, x24, #24
	bl	_av_frame_free
	b	LBB0_27
LBB0_30:
	add	x8, x10, x8
	str	x8, [x1]
LBB0_31:
	mov	x0, x19
	bl	_ff_filter_frame
	tbnz	w0, #31, LBB0_26
; %bb.32:
	ldr	x8, [x24, #40]
	cbz	x8, LBB0_34
; %bb.33:
	mov	w23, #0
	b	LBB0_27
LBB0_34:
	ldr	x8, [x24, #24]
	ldr	x8, [x8]
	str	w8, [x24, #4]
	mov	x0, x22
	bl	_av_frame_free
LBB0_35:
	ldr	x8, [x24, #32]
	cbz	x8, LBB0_38
; %bb.36:
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_7
; %bb.37:
	ldr	x9, [x21]
	cbnz	x9, LBB0_7
	b	LBB0_39
LBB0_38:
	ldr	x9, [x21]
	cbnz	x9, LBB0_8
LBB0_39:
	str	x20, [x22]
	cbnz	x8, LBB0_7
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols
