	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %r14
	movq	16(%r14), %rbx
	movq	%rbx, %rdi
	callq	_av_frame_free
	movq	8(%rbx), %rax
	movq	24(%rbx), %rdi
	movq	%rax, (%rbx)
	movq	%rdi, 8(%rbx)
	movq	%r15, 24(%rbx)
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_av_frame_clone
	movq	%rax, %rdi
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_13
LBB0_2:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	cmpl	$0, 4(%rdi)
	je	LBB0_5
LBB0_4:
	cmpq	$0, 8(%r14)
	je	LBB0_9
LBB0_5:
	callq	_av_frame_clone
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_av_frame_free
	movl	(%r15), %eax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.7:
	addl	%eax, %eax
	movl	%eax, (%r15)
LBB0_8:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_filter_frame                ## TAILCALL
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_9:
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_filter
	testl	%eax, %eax
	js	LBB0_12
## %bb.14:
	movq	%r14, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_filter                         ## TAILCALL
LBB0_10:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	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
	.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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	ldr	x19, [x0]
	ldr	x20, [x19, #16]
	mov	x0, x20
	bl	_av_frame_free
	ldr	x8, [x20, #8]
	ldr	x0, [x20, #24]
	stp	x8, x0, [x20]
	str	x21, [x20, #24]
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_av_frame_clone
	str	x0, [x20, #8]
	cbz	x0, LBB0_9
LBB0_2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_5
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
LBB0_5:
	bl	_av_frame_clone
	cbz	x0, LBB0_9
; %bb.6:
	mov	x21, x0
	mov	x0, x20
	bl	_av_frame_free
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.7:
	lsl	w8, w8, #1
	str	w8, [x21]
LBB0_8:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ff_filter_frame
LBB0_9:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_10:
	ldr	x8, [x20]
	cbz	x8, LBB0_13
; %bb.11:
	mov	x0, x19
	mov	w1, #0
	bl	_filter
	tbnz	w0, #31, LBB0_14
; %bb.12:
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_filter
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.no_dead_strip	_filter_frame
.subsections_via_symbols
