	.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, -64(%rbp)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movq	8(%r13), %r15
	movq	16(%r13), %rax
	movq	(%rax), %r12
	movq	(%r15), %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	(%rsi), %rax
	movq	%rax, (%r15)
LBB0_2:
	movl	32(%r15), %edi
	movq	8(%rsi), %rdx
	movq	16(%rsi), %rsi
	callq	_av_audio_fifo_write
	movl	%eax, %ebx
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
	movq	$0, 8(%r15)
	movl	32(%r15), %edi
	callq	_av_audio_fifo_size
	movl	%eax, %r14d
	movl	16(%r15), %ecx
	cltd
	idivl	%ecx
	movl	%r14d, %esi
	subl	%edx, %esi
	cmpl	%ecx, %esi
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jl	LBB0_3
## %bb.11:
	cmpl	20(%r15), %r14d
	jge	LBB0_12
LBB0_3:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	20(%r15), %edx
	cmpl	%edx, %r14d
	jl	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	32(%r15), %edi
	movq	40(%r15), %rax
	movq	(%rax), %rsi
	callq	_av_audio_fifo_peek
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rax
	movq	_filter_channel@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %r8d
	movq	%r13, %rdi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	*(%rax)
	movl	16(%r15), %esi
	movl	32(%r15), %edi
	callq	_av_audio_fifo_drain
	movslq	16(%r15), %rax
	addq	%rax, 8(%r15)
	subl	%eax, %r14d
	jmp	LBB0_4
LBB0_7:
	testq	%r12, %r12
	je	LBB0_15
## %bb.8:
	movq	(%r15), %rax
	movq	%rax, (%r12)
	movq	8(%r15), %rsi
	movq	%rsi, 8(%r12)
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	js	LBB0_10
## %bb.9:
	callq	_FFMIN
	movq	%rax, 8(%r12)
	subq	%rax, 24(%r15)
	movq	(%r15), %rax
	movq	8(%r15), %rsi
LBB0_10:
	addq	%rsi, %rax
	movq	%rax, (%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_ff_filter_frame
LBB0_14:
	movl	%eax, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r12, %rdi
	callq	_ff_get_audio_buffer
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_4
## %bb.13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_filter_channel,4,2             ## @filter_channel
	.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, x0
	str	x1, [sp, #8]
	ldr	x21, [x0, #8]
	ldp	x25, x8, [x21, #8]
	ldr	x19, [x8]
	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_2
; %bb.1:
	ldr	x8, [x1]
	str	x8, [x25]
LBB0_2:
	ldr	w0, [x25, #32]
	ldp	x2, x8, [x1, #8]
	mov	x1, x8
	bl	_av_audio_fifo_write
	mov	x23, x0
	add	x0, sp, #8
	bl	_av_frame_free
	str	xzr, [x25, #8]
	ldr	w0, [x25, #32]
	bl	_av_audio_fifo_size
	mov	x24, x0
	mov	x22, #0
	ldr	w8, [x25, #16]
	sdiv	w9, w0, w8
	mul	w1, w9, w8
	cmp	w1, w8
	b.lt	LBB0_6
; %bb.3:
	ldr	w8, [x25, #20]
	cmp	w24, w8
	b.ge	LBB0_5
; %bb.4:
	mov	x22, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_ff_get_audio_buffer
	mov	x22, x0
	cbz	x0, LBB0_16
LBB0_6:
	ldr	w2, [x25, #20]
	cmp	w24, w2
	b.lt	LBB0_10
; %bb.7:
Lloh3:
	adrp	x26, _filter_channel@GOTPAGE
Lloh4:
	ldr	x26, [x26, _filter_channel@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25, #32]
	ldr	x8, [x25, #40]
	ldr	x1, [x8]
	bl	_av_audio_fifo_peek
	mov	x23, x0
	tbnz	w0, #31, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w1, [x26]
	ldr	w4, [x20]
	mov	x0, x21
	mov	x2, x22
	mov	x3, #0
	blr	x8
	ldr	w0, [x25, #32]
	ldr	w1, [x25, #16]
	bl	_av_audio_fifo_drain
	ldr	x8, [x25, #8]
	ldp	w9, w2, [x25, #16]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x8, x8, x9
	str	x8, [x25, #8]
	sub	w24, w24, w9
	cmp	w24, w2
	b.ge	LBB0_8
LBB0_10:
	cbz	x22, LBB0_15
; %bb.11:
	ldp	x8, x1, [x25]
	stp	x8, x1, [x22]
	ldr	x0, [x25, #24]
	tbnz	x0, #63, LBB0_13
; %bb.12:
	bl	_FFMIN
	str	x0, [x22, #8]
	ldr	x8, [x25, #24]
	sub	x8, x8, x0
	str	x8, [x25, #24]
	ldp	x8, x1, [x25]
LBB0_13:
	add	x8, x8, x1
	str	x8, [x25]
	mov	x0, x19
	mov	x1, x22
	bl	_ff_filter_frame
LBB0_14:
	mov	x23, x0
LBB0_15:
	mov	x0, x23
	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
LBB0_16:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_filter_channel,4,2             ; @filter_channel
	.no_dead_strip	_filter_frame
.subsections_via_symbols
