	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function create_filter
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0xbfe0000000000000              ## double -0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_create_filter:                         ## @create_filter
	.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	%r8, -88(%rbp)                  ## 8-byte Spill
	movapd	%xmm0, %xmm1
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	(%rdi), %r14d
	xorpd	%xmm0, %xmm0
	movsd	%xmm1, -72(%rbp)                ## 8-byte Spill
	callq	_kaiser_window_function
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	movl	%ebx, %edi
	callq	_fft_new
	movq	%rax, %rbx
	movl	(%r15), %eax
	leal	(%rax,%rax), %edi
	incl	%edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, %r13
	testq	%rbx, %rbx
	je	LBB0_29
## %bb.1:
	testq	%r13, %r13
	je	LBB0_29
## %bb.2:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	sarl	%r14d
	movq	_gains_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	movl	$4, %edx
	callq	_qsort
	movl	4(%r15), %edi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_generate_response
	movl	4(%r15), %edx
	movl	$1, %r12d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	_fft_process_inverse
	cmpl	$2, -52(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_19
## %bb.3:
	movslq	%r14d, %rax
	cmpl	$2, %r14d
	cmovgel	%r14d, %r12d
	cmpl	$8, %r12d
	jb	LBB0_4
## %bb.5:
	leaq	(,%rax,4), %rcx
	addq	%r13, %rcx
	leaq	(,%r12,4), %rdx
	addq	%r13, %rdx
	cmpq	%rdx, %rcx
	jae	LBB0_8
## %bb.6:
	leaq	(%rax,%r12), %rcx
	leaq	(,%rcx,4), %rcx
	addq	%r13, %rcx
	cmpq	%rcx, %r13
	jae	LBB0_8
LBB0_4:
	xorl	%ecx, %ecx
LBB0_14:
	movq	%rcx, %rdx
	notq	%rdx
	testb	$1, %r12b
	je	LBB0_16
## %bb.15:
	leaq	(%rcx,%rax), %rsi
	movss	(%r13,%rsi,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	(%r13,%rcx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm1, (%r13,%rsi,4)
	movss	%xmm0, (%r13,%rcx,4)
	orq	$1, %rcx
LBB0_16:
	addq	%r12, %rdx
	je	LBB0_19
## %bb.17:
	leaq	4(,%rax,4), %rax
	addq	%r13, %rax
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movss	-4(%rax,%rcx,4), %xmm0          ## xmm0 = mem[0],zero,zero,zero
	movss	(%r13,%rcx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm1, -4(%rax,%rcx,4)
	movss	%xmm0, (%r13,%rcx,4)
	movss	(%rax,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	4(%r13,%rcx,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm1, (%rax,%rcx,4)
	movss	%xmm0, 4(%r13,%rcx,4)
	addq	$2, %rcx
	cmpq	%rcx, %r12
	jne	LBB0_18
	jmp	LBB0_19
LBB0_8:
	movl	%r12d, %ecx
	andl	$2147483640, %ecx               ## imm = 0x7FFFFFF8
	leaq	-8(%rcx), %rdx
	movq	%rdx, %rsi
	shrq	$3, %rsi
	incq	%rsi
	testq	%rdx, %rdx
	je	LBB0_30
## %bb.9:
	movq	%rsi, %rdi
	andq	$-2, %rdi
	leaq	48(,%rax,4), %rbx
	addq	%r13, %rbx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movups	-48(%rbx,%rdx,4), %xmm0
	movups	-32(%rbx,%rdx,4), %xmm1
	movups	(%r13,%rdx,4), %xmm2
	movups	16(%r13,%rdx,4), %xmm3
	movups	%xmm2, -48(%rbx,%rdx,4)
	movups	%xmm3, -32(%rbx,%rdx,4)
	movups	%xmm0, (%r13,%rdx,4)
	movups	%xmm1, 16(%r13,%rdx,4)
	movupd	-16(%rbx,%rdx,4), %xmm0
	movupd	(%rbx,%rdx,4), %xmm1
	movups	32(%r13,%rdx,4), %xmm2
	movups	48(%r13,%rdx,4), %xmm3
	movups	%xmm2, -16(%rbx,%rdx,4)
	movups	%xmm3, (%rbx,%rdx,4)
	movupd	%xmm0, 32(%r13,%rdx,4)
	movupd	%xmm1, 48(%r13,%rdx,4)
	addq	$16, %rdx
	addq	$-2, %rdi
	jne	LBB0_10
## %bb.11:
	testb	$1, %sil
	je	LBB0_13
LBB0_12:
	leaq	(%rdx,%rax), %rsi
	movupd	(%r13,%rsi,4), %xmm0
	movupd	16(%r13,%rsi,4), %xmm1
	movups	(%r13,%rdx,4), %xmm2
	movups	16(%r13,%rdx,4), %xmm3
	movups	%xmm2, (%r13,%rsi,4)
	movups	%xmm3, 16(%r13,%rsi,4)
	movupd	%xmm0, (%r13,%rdx,4)
	movupd	%xmm1, 16(%r13,%rdx,4)
LBB0_13:
	cmpq	%r12, %rcx
	jne	LBB0_14
LBB0_19:
	movl	(%r15), %eax
	testl	%eax, %eax
	movsd	-72(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	jle	LBB0_22
## %bb.20:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	-80(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
	xorps	%xmm2, %xmm2
	cvtsi2sd	%eax, %xmm2
	divsd	%xmm2, %xmm0
	addsd	LCPI0_1(%rip), %xmm0
	addsd	%xmm0, %xmm0
	callq	_kaiser_window_function
	movsd	-72(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	movss	(%r13,%rbx,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	cvtss2sd	%xmm2, %xmm2
	mulsd	%xmm0, %xmm2
	xorps	%xmm0, %xmm0
	cvtsd2ss	%xmm2, %xmm0
	movss	%xmm0, (%r13,%rbx,4)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_21
LBB0_22:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.23:
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_28
## %bb.24:
	movq	%rax, %r14
	cmpl	$2, (%r15)
	jl	LBB0_27
## %bb.25:
	xorl	%ebx, %ebx
	leaq	L_.str.1(%rip), %r12
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movss	4(%r13,%rbx,4), %xmm0           ## xmm0 = mem[0],zero,zero,zero
	incq	%rbx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_fprintf
	movslq	(%r15), %rax
	decq	%rax
	cmpq	%rax, %rbx
	jl	LBB0_26
LBB0_27:
	movq	%r14, %rdi
	callq	_fclose
LBB0_28:
	movl	4(%r15), %esi
	movl	8(%r15), %edi
	movq	%r13, %rdx
	addq	$4, %rdx
	movl	$1, %ecx
	callq	_fft_process_forward
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_29:
	movq	%rbx, %rdi
	callq	_fft_free
	movq	%r13, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_30:
	xorl	%edx, %edx
	testb	$1, %sil
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_gains_cmp,4,2                  ## @gains_cmp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

L_.str.1:                               ## @.str.1
	.asciz	"%.8f\n"

	.no_dead_strip	_create_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_filter
_create_filter:                         ; @create_filter
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-112]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 b8, -88
	.cfi_offset b9, -96
	.cfi_offset b10, -104
	.cfi_offset b11, -112
	mov	x22, x4
	fmov	d8, d0
	mov	x23, x3
	mov	x24, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w26, [x0]
	movi	d0, #0000000000000000
	fmov	d1, d8
	bl	_kaiser_window_function
	fmov	d9, d0
	mov	x0, x20
	bl	_fft_new
	mov	x20, x0
	ldr	w8, [x19]
	mov	w0, #1
	bfi	w0, w8, #1, #31
	mov	w1, #4
	bl	_calloc
	mov	x21, x0
	cbz	x20, LBB0_21
; %bb.1:
	cbz	x21, LBB0_21
; %bb.2:
	asr	w25, w26, #1
Lloh0:
	adrp	x8, _gains_cmp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gains_cmp@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x23
	mov	w2, #4
	bl	_qsort
	ldr	w0, [x19, #4]
	mov	x1, x24
	mov	x2, x23
	mov	x3, x25
	bl	_generate_response
	ldr	w2, [x19, #4]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #1
	bl	_fft_process_inverse
	cmp	w26, #1
	b.le	LBB0_11
; %bb.3:
	sxtw	x9, w25
	cmp	w25, #1
	csinc	w8, w25, wzr, gt
	cmp	w8, #8
	b.lo	LBB0_8
; %bb.4:
	add	x10, x21, x9, lsl #2
	add	x11, x9, x8
	add	x11, x21, x11, lsl #2
	add	x12, x21, x8, lsl #2
	cmp	x10, x12
	ccmp	x21, x11, #2, lo
	b.lo	LBB0_8
; %bb.5:
	and	x10, x8, #0x7ffffff8
	lsl	x11, x9, #2
	mov	x12, x10
	mov	x13, x21
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x14, x13, x11
	ldp	q0, q1, [x14]
	ldp	q2, q3, [x13]
	stp	q2, q3, [x14]
	stp	q0, q1, [x13], #32
	subs	x12, x12, #8
	b.ne	LBB0_6
; %bb.7:
	cmp	x10, x8
	b.ne	LBB0_9
	b	LBB0_11
LBB0_8:
	mov	x10, #0
LBB0_9:
	add	x9, x10, x9
	add	x9, x21, x9, lsl #2
	add	x11, x21, x10, lsl #2
	sub	x8, x8, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x9]
	ldr	s1, [x11]
	str	s1, [x9], #4
	str	s0, [x11], #4
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x23, #0
	fmov	d0, #1.00000000
	fmov	d10, #-0.50000000
	fdiv	d9, d0, d9
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	scvtf	d0, w23
	scvtf	d1, w8
	fdiv	d0, d0, d1
	fadd	d0, d0, d10
	fadd	d0, d0, d0
	fmov	d1, d8
	bl	_kaiser_window_function
	fmul	d0, d9, d0
	lsl	x8, x23, #2
	ldr	s1, [x21, x8]
	fcvt	d1, s1
	fmul	d0, d0, d1
	fcvt	s0, d0
	str	s0, [x21, x8]
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.lt	LBB0_13
LBB0_14:
	cbz	x22, LBB0_20
; %bb.15:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_fopen
	cbz	x0, LBB0_20
; %bb.16:
	mov	x22, x0
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_19
; %bb.17:
	mov	x8, #0
	add	x24, x21, #4
Lloh5:
	adrp	x23, l_.str.1@PAGE
Lloh6:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	add	x25, x8, #1
	ldr	s0, [x24, x8, lsl #2]
	mov	x0, x22
	mov	x1, x23
	bl	_fprintf
	ldrsw	x8, [x19]
	sub	x9, x8, #1
	mov	x8, x25
	cmp	x25, x9
	b.lt	LBB0_18
LBB0_19:
	mov	x0, x22
	bl	_fclose
LBB0_20:
	ldp	w1, w0, [x19, #4]
	add	x2, x21, #4
	mov	w3, #1
	bl	_fft_process_forward
LBB0_21:
	mov	x0, x20
	bl	_fft_free
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #112            ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_gains_cmp,4,2                  ; @gains_cmp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

l_.str.1:                               ; @.str.1
	.asciz	"%.8f\n"

	.no_dead_strip	_create_filter
.subsections_via_symbols
