	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function lpc_apply_welch_window_c
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
LCPI0_1:
	.quad	0x4000000000000000              ## double 2
LCPI0_2:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_lpc_apply_welch_window_c:              ## @lpc_apply_welch_window_c
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movl	%esi, %r9d
	cvtsi2sd	%esi, %xmm1
	addsd	LCPI0_0(%rip), %xmm1
	sarl	%r9d
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	%xmm1, %xmm0
	testb	$1, %sil
	jne	LBB0_1
## %bb.4:
	cmpl	$2, %esi
	jl	LBB0_7
## %bb.5:
	movslq	%r9d, %rax
	leaq	(%rdx,%rax,8), %r8
	leaq	(%rdi,%rax,8), %rcx
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r9d, %xmm1
	subsd	%xmm1, %xmm0
	cmpl	$2, %r9d
	movl	$1, %esi
	cmovgel	%r9d, %esi
	leaq	(%rdi,%rax,8), %rdi
	addq	$-8, %rdi
	leaq	(%rdx,%rax,8), %rdx
	addq	$-8, %rdx
	xorl	%eax, %eax
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm2, %xmm2
	cvtsi2sd	%eax, %xmm2
	addsd	%xmm0, %xmm2
	mulsd	%xmm2, %xmm2
	movapd	%xmm1, %xmm3
	subsd	%xmm2, %xmm3
	movsd	(%rdi), %xmm2                   ## xmm2 = mem[0],zero
	mulsd	%xmm3, %xmm2
	movsd	%xmm2, (%rdx)
	mulsd	(%rcx,%rax,8), %xmm3
	movsd	%xmm3, (%r8,%rax,8)
	incq	%rax
	addq	$-8, %rdi
	addq	$-8, %rdx
	cmpq	%rax, %rsi
	jne	LBB0_6
	jmp	LBB0_7
LBB0_1:
	cmpl	$2, %esi
	jl	LBB0_7
## %bb.2:
	cmpl	$2, %r9d
	movl	$1, %eax
	cmovgel	%r9d, %eax
	decl	%esi
	xorl	%ecx, %ecx
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	LCPI0_2(%rip), %xmm2            ## xmm2 = mem[0],zero
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm3, %xmm3
	cvtsi2sd	%ecx, %xmm3
	movapd	%xmm0, %xmm4
	subsd	%xmm3, %xmm4
	addsd	%xmm1, %xmm4
	mulsd	%xmm4, %xmm4
	movapd	%xmm2, %xmm3
	subsd	%xmm4, %xmm3
	movsd	(%rdi,%rcx,8), %xmm4            ## xmm4 = mem[0],zero
	mulsd	%xmm3, %xmm4
	movsd	%xmm4, (%rdx,%rcx,8)
	movslq	%esi, %rsi
	mulsd	(%rdi,%rsi,8), %xmm3
	movsd	%xmm3, (%rdx,%rsi,8)
	incq	%rcx
	decl	%esi
	cmpq	%rcx, %rax
	jne	LBB0_3
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lpc_apply_welch_window_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc_apply_welch_window_c
_lpc_apply_welch_window_c:              ; @lpc_apply_welch_window_c
	.cfi_startproc
; %bb.0:
	asr	w11, w1, #1
	scvtf	d0, w1
	fmov	d1, #-1.00000000
	fadd	d0, d0, d1
	fmov	d1, #2.00000000
	fdiv	d0, d1, d0
	tbnz	w1, #0, LBB0_4
; %bb.1:
	cmp	w1, #2
	b.lt	LBB0_7
; %bb.2:
	mov	x8, #0
	sxtw	x12, w11
	sbfiz	x10, x11, #3, #32
	add	x9, x2, x10
	add	x10, x0, x10
	scvtf	d1, w11
	fsub	d0, d0, d1
	cmp	w11, #1
	csinc	w11, w11, wzr, gt
	lsl	x12, x12, #3
	sub	x13, x12, #8
	add	x12, x0, x13
	add	x13, x2, x13
	fmov	d1, #1.00000000
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	scvtf	d2, w8
	fadd	d2, d0, d2
	fmsub	d2, d2, d2, d1
	ldr	d3, [x12], #-8
	fmul	d3, d2, d3
	str	d3, [x13], #-8
	lsl	x14, x8, #3
	ldr	d3, [x10, x14]
	fmul	d2, d2, d3
	str	d2, [x9, x14]
	add	x8, x8, #1
	cmp	x11, x8
	b.ne	LBB0_3
	b	LBB0_7
LBB0_4:
	cmp	w1, #2
	b.lt	LBB0_7
; %bb.5:
	mov	x8, #0
	cmp	w11, #1
	csinc	w9, w11, wzr, gt
	sub	w10, w1, #1
	fmov	d1, #-1.00000000
	fmov	d2, #1.00000000
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	scvtf	d3, w8
	fsub	d3, d0, d3
	fadd	d3, d3, d1
	fmsub	d3, d3, d3, d2
	lsl	x11, x8, #3
	ldr	d4, [x0, x11]
	fmul	d4, d3, d4
	str	d4, [x2, x11]
	sbfiz	x11, x10, #3, #32
	ldr	d4, [x0, x11]
	fmul	d3, d3, d4
	str	d3, [x2, x11]
	add	x8, x8, #1
	sub	w10, w10, #1
	cmp	x9, x8
	b.ne	LBB0_6
LBB0_7:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lpc_apply_welch_window_c
.subsections_via_symbols
