	.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, %r15
	movq	%rdi, %rcx
	movq	%rsi, -72(%rbp)
	movq	16(%rdi), %r12
	movq	(%r12), %rax
	movq	8(%r12), %r14
	movq	(%rax), %rbx
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.1:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	callq	_avresample_get_delay
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	32(%r14), %rdi
	movl	(%r15), %esi
	callq	_avresample_get_out_samples
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ff_get_audio_buffer
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	32(%r14), %rdi
	movl	32(%rax), %esi
	movq	24(%rax), %rax
	movl	(%rax), %edx
	movl	32(%r15), %r8d
	movq	24(%r15), %rax
	movl	(%rax), %r9d
	movl	(%r15), %eax
	movl	%eax, (%rsp)
	movl	%r13d, %ecx
	callq	_avresample_convert
	movl	%eax, %r13d
	testl	%eax, %eax
	jg	LBB0_5
## %bb.4:
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	testl	%r13d, %r13d
	js	LBB0_23
LBB0_5:
	movq	32(%r14), %rdi
	callq	_avresample_available
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_av_assert0
	cmpq	$0, 24(%r14)
	je	LBB0_11
## %bb.6:
	movq	(%r14), %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.7:
	movq	8(%r15), %rdi
	cmpq	%rax, %rdi
	jne	LBB0_9
## %bb.8:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_25:
	movl	(%rbx), %eax
	movl	%eax, 16(%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ff_filter_frame
	movl	$1, 16(%r14)
	jmp	LBB0_24
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
	jmp	LBB0_23
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	movl	8(%rbx), %edx
	callq	_av_rescale_q
LBB0_10:
	movq	%rax, (%r14)
LBB0_11:
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.13:
	movq	-48(%rbp), %rdi
	movl	%r13d, (%rdi)
	movq	%r15, %rsi
	callq	_av_frame_copy_props
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:
	cmpq	$0, 24(%r14)
	je	LBB0_21
## %bb.16:
	movq	%rbx, %r12
	movl	4(%rbx), %eax
	movq	-48(%rbp), %rsi
	movl	%eax, 20(%rsi)
	movq	8(%r15), %rdi
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_19
## %bb.17:
	cmpq	8(%r14), %rdi
	jne	LBB0_18
LBB0_19:
	movq	(%r14), %rbx
	jmp	LBB0_20
LBB0_12:
	xorl	%r13d, %r13d
	jmp	LBB0_23
LBB0_14:
	movl	%eax, %r13d
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	jmp	LBB0_23
LBB0_21:
	movq	8(%r15), %rax
	movq	-48(%rbp), %rsi
	movq	%rax, 8(%rsi)
	movq	%rbx, %r12
	jmp	LBB0_22
LBB0_18:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	8(%r13), %esi
	movl	8(%r12), %edx
	callq	_av_rescale_q
	movq	%rax, %rbx
	movl	4(%r12), %esi
	movl	4(%r13), %edx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_av_rescale
	subq	%rax, %rbx
	movq	-48(%rbp), %rsi
LBB0_20:
	movq	%rbx, 8(%rsi)
	movslq	(%rsi), %rax
	addq	%rbx, %rax
	movq	%rax, (%r14)
	movslq	(%r15), %rax
	addq	8(%r15), %rax
	movq	%rax, 8(%r14)
LBB0_22:
	movq	%r12, %rdi
	callq	_ff_filter_frame
	movl	%eax, %r13d
	movl	$1, 16(%r14)
LBB0_23:
	leaq	-72(%rbp), %rdi
	callq	_av_frame_free
	movl	%r13d, %eax
LBB0_24:
	addq	$40, %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,8,3             ## @AV_NOPTS_VALUE
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"First timestamp is missing, assuming 0.\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, #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	x21, x0
	str	x1, [sp, #8]
	ldr	x24, [x0, #16]
	ldp	x8, x25, [x24]
	ldr	x19, [x8]
	ldr	x0, [x25, #32]
	cbz	x0, LBB0_8
; %bb.1:
	bl	_avresample_get_delay
	mov	x22, x0
	ldr	x0, [x25, #32]
	ldr	w1, [x20]
	bl	_avresample_get_out_samples
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	bl	_ff_get_audio_buffer
	str	x0, [sp]
	cbz	x0, LBB0_9
; %bb.2:
	ldr	x8, [x25, #32]
	ldr	w1, [x0, #32]
	ldr	x9, [x0, #24]
	ldr	w2, [x9]
	ldr	w4, [x20, #32]
	ldr	x9, [x20, #24]
	ldr	w5, [x9]
	ldr	w6, [x20]
	mov	x0, x8
	mov	x3, x23
	bl	_avresample_convert
	mov	x23, x0
	cmp	w0, #0
	b.gt	LBB0_4
; %bb.3:
	mov	x0, sp
	bl	_av_frame_free
	tbnz	w23, #31, LBB0_23
LBB0_4:
	ldr	x0, [x25, #32]
	bl	_avresample_available
	cmp	w0, #0
	cset	w0, eq
	bl	_av_assert0
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_12
; %bb.5:
	ldr	x8, [x25]
Lloh0:
	adrp	x9, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.6:
	ldr	x0, [x20, #8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.7:
Lloh3:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	bl	_av_log
	mov	x0, #0
	b	LBB0_11
LBB0_8:
	ldr	w8, [x19]
	str	w8, [x20, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_ff_filter_frame
	mov	w8, #1
	str	w8, [x25, #16]
	b	LBB0_24
LBB0_9:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x23, x0
	b	LBB0_23
LBB0_10:
	ldr	w1, [x21, #8]
	ldr	w2, [x19, #8]
	bl	_av_rescale_q
LBB0_11:
	str	x0, [x25]
LBB0_12:
	cbz	w23, LBB0_23
; %bb.13:
	ldr	x0, [sp]
	str	w23, [x0]
	mov	x1, x20
	bl	_av_frame_copy_props
	tbnz	w0, #31, LBB0_18
; %bb.14:
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_19
; %bb.15:
	ldr	w8, [x19, #4]
	ldr	x1, [sp]
	str	w8, [x1, #20]
	ldr	x0, [x20, #8]
Lloh11:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.16:
	ldr	x8, [x25, #8]
	cmp	x0, x8
	b.ne	LBB0_20
LBB0_17:
	ldr	x8, [x25]
	b	LBB0_21
LBB0_18:
	mov	x23, x0
	mov	x0, sp
	bl	_av_frame_free
	b	LBB0_23
LBB0_19:
	ldr	x8, [x20, #8]
	ldr	x1, [sp]
	str	x8, [x1, #8]
	b	LBB0_22
LBB0_20:
	ldr	w1, [x21, #8]
	ldr	w2, [x19, #8]
	bl	_av_rescale_q
	mov	x23, x0
	ldr	w1, [x19, #4]
	ldr	w2, [x21, #4]
	mov	x0, x22
	bl	_av_rescale
	sub	x8, x23, x0
	ldr	x1, [sp]
LBB0_21:
	str	x8, [x1, #8]
	ldrsw	x9, [x1]
	add	x8, x8, x9
	str	x8, [x25]
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20]
	add	x8, x8, x9
	str	x8, [x25, #8]
LBB0_22:
	mov	x0, x19
	bl	_ff_filter_frame
	mov	x23, x0
	mov	w8, #1
	str	w8, [x25, #16]
LBB0_23:
	add	x0, sp, #8
	bl	_av_frame_free
	mov	x0, x23
LBB0_24:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"First timestamp is missing, assuming 0.\n"

	.no_dead_strip	_filter_frame
.subsections_via_symbols
