	.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	0x3ff0000000000000              ## double 1
LCPI0_1:
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, -104(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rbx
	movq	(%rcx), %r14
	movq	8(%rsi), %rax
	movq	(%rax), %r13
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, -96(%rbp)                ## 8-byte Spill
	movsd	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero
	movsd	%xmm0, -152(%rbp)               ## 8-byte Spill
	movsd	16(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_av_frame_is_writable
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_ff_get_audio_buffer
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_av_frame_copy_props
LBB0_4:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	cmpl	$0, (%r12)
	jle	LBB0_15
## %bb.5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax), %rax
	leaq	32(%rbx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	subsd	-80(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -144(%rbp)               ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	addq	%r14, %r13
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	incl	%ecx
	movq	-120(%rbp), %r12                ## 8-byte Reload
	cmpl	(%r12), %ecx
	jge	LBB0_15
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpq	$0, 40(%rbx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sdq	72(%rbx), %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movsd	24(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	movsd	%xmm0, -128(%rbp)               ## 8-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_lfo_get
	addsd	LCPI0_1(%rip), %xmm0
	mulsd	-128(%rbp), %xmm0               ## 8-byte Folded Reload
	addsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %rdi
	movq	%rdi, 56(%rbx)
	callq	_round
	movl	%eax, 64(%rbx)
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	(%r15,%r12,2), %xmm0            ## xmm0 = mem[0],zero
	mulsd	-96(%rbp), %xmm0                ## 8-byte Folded Reload
	movq	48(%rbx), %rsi
	addq	%r12, %rsi
	movq	%rbx, %rdi
	callq	_samplereduction
	movsd	(%r15,%r12,2), %xmm1            ## xmm1 = mem[0],zero
	mulsd	-144(%rbp), %xmm1               ## 8-byte Folded Reload
	mulsd	-96(%rbp), %xmm1                ## 8-byte Folded Reload
	mulsd	-80(%rbp), %xmm0                ## 8-byte Folded Reload
	addsd	%xmm1, %xmm0
	movq	%rbx, %rdi
	callq	_bitreduction
	mulsd	-152(%rbp), %xmm0               ## 8-byte Folded Reload
	movsd	%xmm0, (%r13,%r12,2)
	incq	%r14
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	addq	$4, %r12
	cmpq	%rax, %r14
	jl	LBB0_11
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r14d, %r14d
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, %r14d
	shlq	$3, %r14
	cmpq	$0, 40(%rbx)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_lfo_advance
	jmp	LBB0_14
LBB0_15:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%r12, %rbx
	je	LBB0_17
## %bb.16:
	leaq	-104(%rbp), %rdi
	callq	_av_frame_free
LBB0_17:
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ff_filter_frame
LBB0_18:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	-104(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.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, #192
	.cfi_def_cfa_offset 192
	stp	d15, d14, [sp, #32]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #48]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #64]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	.cfi_offset b14, -152
	.cfi_offset b15, -160
	mov	x20, x1
	mov	x21, x0
	str	x1, [sp, #24]
	ldr	x8, [x0, #8]
	ldp	x8, x22, [x8]
	ldr	x19, [x8]
	ldr	x8, [x1, #8]
	ldr	x25, [x8]
	ldp	d8, d9, [x22]
	ldr	d10, [x22, #16]
	mov	x0, x1
	bl	_av_frame_is_writable
	mov	x23, x20
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w1, [x20]
	mov	x0, x21
	bl	_ff_get_audio_buffer
	cbz	x0, LBB0_18
; %bb.2:
	mov	x23, x0
	mov	x1, x20
	bl	_av_frame_copy_props
LBB0_3:
	stp	x19, x23, [sp, #8]              ; 16-byte Folded Spill
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.4:
	mov	w26, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	x27, [x8]
	add	x24, x22, #32
	fmov	d0, #1.00000000
	fsub	d11, d0, d10
	fmov	d12, #0.50000000
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ubfiz	x8, x28, #3, #32
	add	x25, x25, x8
	add	x27, x27, x8
	add	w26, w26, #1
	ldr	w8, [x20]
	cmp	w26, w8
	b.ge	LBB0_14
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	d0, [x22, #72]
	scvtf	d13, d0
	ldr	d14, [x22, #24]
	mov	x0, x24
	bl	_lfo_get
	fadd	d0, d0, d12
	fmadd	d0, d14, d0, d13
	fcvtzs	x0, d0
	str	x0, [x22, #56]
	bl	_round
	str	w0, [x22, #64]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x19, #0
	mov	x28, #0
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x23, x28, #3
	ldr	d0, [x25, x23]
	fmul	d0, d8, d0
	ldr	x8, [x22, #48]
	add	x1, x8, x19
	mov	x0, x22
	bl	_samplereduction
	ldr	d1, [x25, x23]
	fmul	d1, d11, d1
	fmul	d1, d8, d1
	fmadd	d0, d10, d0, d1
	mov	x0, x22
	bl	_bitreduction
	fmul	d0, d9, d0
	str	d0, [x27, x23]
	add	x28, x28, #1
	ldrsw	x8, [x21]
	add	x19, x19, #4
	cmp	x28, x8
	b.lt	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22, #40]
	cbnz	x8, LBB0_13
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x28, #0
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	mov	w1, #1
	bl	_lfo_advance
	b	LBB0_5
LBB0_14:
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	cmp	x19, x20
	b.eq	LBB0_16
; %bb.15:
	add	x0, sp, #24
	bl	_av_frame_free
LBB0_16:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x19
	bl	_ff_filter_frame
LBB0_17:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #64]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #48]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_18:
	add	x0, sp, #24
	bl	_av_frame_free
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols
