	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function filter_frame
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rbx
	movslq	(%rsi), %rdx
	cvtsi2sd	%edx, %xmm0
	movq	(%rcx), %r15
	divsd	(%rbx), %xmm0
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	(%rax), %r14
	movq	%r14, -64(%rbp)
	movslq	8(%rbx), %r12
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	imulq	%rdx, %r12
	movq	16(%rbx), %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	movl	(%rdi), %esi
	movl	(%r15), %edx
	movl	%eax, %edi
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	callq	_av_rescale_q
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movq	%rax, 16(%rbx)
LBB0_2:
	testl	%r12d, %r12d
	jle	LBB0_3
## %bb.4:
	addsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %eax
	leaq	(%r14,%r12,4), %r13
	leaq	24(%rbx), %r12
	xorl	%r14d, %r14d
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cltq
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	cqto
	idivq	%rcx
	movq	%rax, %rdx
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_push_samples
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r13, -64(%rbp)
	jae	LBB0_16
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 48(%rbx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%rbx), %r8
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_ff_get_audio_buffer
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_av_frame_copy_props
	movq	48(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movslq	8(%rbx), %r8
	imulq	-88(%rbp), %r8                  ## 8-byte Folded Reload
	addq	%rax, %r8
	movq	%r8, 32(%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_yae_apply
	movq	24(%rbx), %rax
	cmpq	32(%rbx), %rax
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	48(%rbx), %rcx
	movq	(%rcx), %rcx
	subq	(%rcx), %rax
	movslq	8(%rbx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %edx
	jmp	LBB0_14
LBB0_3:
	xorl	%r14d, %r14d
LBB0_16:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, 40(%rbx)
LBB0_17:
	leaq	-72(%rbp), %rdi
	callq	_av_frame_free
LBB0_18:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	-72(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
	jmp	LBB0_18
	.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, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x20, x1
	str	x1, [sp, #8]
	ldr	x8, [x0, #8]
	ldp	x8, x19, [x8]
	ldr	x21, [x8]
	ldr	w26, [x1]
	ldr	d8, [x19]
	ldr	x8, [x1, #8]
	ldr	x24, [x8]
	str	x24, [sp]
	ldr	w8, [x19, #8]
	mul	w25, w8, w26
	ldr	x8, [x19, #16]
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	w8, [x20, #4]
	ldr	w1, [x0]
	ldr	w2, [x21]
	mov	x0, x8
	bl	_av_rescale_q
	str	x0, [x19, #16]
LBB0_2:
	cmp	w25, #1
	b.lt	LBB0_11
; %bb.3:
	mov	w22, #0
	scvtf	d0, w26
	fdiv	d0, d0, d8
	fmov	d1, #0.50000000
	fadd	d0, d0, d1
	fcvtzs	w23, d0
	add	x24, x24, w25, sxtw #2
	add	x25, x19, #24
	sxtw	x27, w23
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp]
	cmp	x8, x24
	b.hs	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x4, [x19, #32]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_ff_get_audio_buffer
	str	x0, [x19, #48]
	cbz	x0, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x20
	bl	_av_frame_copy_props
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldrsw	x9, [x19, #8]
	madd	x4, x9, x27, x8
	stp	x8, x4, [x19, #24]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, sp
	mov	x0, x19
	mov	x2, x24
	mov	x3, x25
	bl	_yae_apply
	ldp	x8, x9, [x19, #24]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #48]
	ldr	x9, [x9]
	ldr	x9, [x9]
	sub	x8, x8, x9
	ldrsw	x9, [x19, #8]
	sdiv	x2, x8, x9
	mov	x0, x19
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_push_samples
	mov	x22, x0
	tbz	w0, #31, LBB0_4
	b	LBB0_13
LBB0_11:
	mov	w22, #0
LBB0_12:
	ldr	w8, [x19, #40]
	add	w8, w8, w26
	str	w8, [x19, #40]
LBB0_13:
	add	x0, sp, #8
	bl	_av_frame_free
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	add	x0, sp, #8
	bl	_av_frame_free
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x22, x0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.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
