	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function apply_window_and_mdct
LCPI0_0:
	.quad	0x40f0000000000000              ## double 65536
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_apply_window_and_mdct:                 ## @apply_window_and_mdct
	.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	8(%rdi), %r14
	movslq	4(%r14), %rcx
	movl	$1, %eax
	shll	%cl, %eax
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdi)
	jle	LBB0_5
## %bb.1:
	movq	8(%rsi), %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r12d
	movslq	(%r14), %rdx
	subq	%rcx, %rdx
	leaq	(,%rdx,8), %rcx
	addq	48(%r14), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	cvtsi2sd	%eax, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	cvtsd2ss	%xmm1, %xmm0
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	cltq
	leal	(,%rax,4), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	shlq	$2, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rdi
	movq	32(%r14), %rax
	movl	(%rax,%r13,4), %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movq	32(%r14), %rax
	movq	40(%r14), %rcx
	movl	(%rax,%r13,4), %edi
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r13,8), %rsi
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%r12d, %edx
	callq	*16(%rcx)
	movq	32(%r14), %rax
	movq	40(%r14), %rbx
	movq	24(%r14), %rdi
	addq	-64(%rbp), %rdi                 ## 8-byte Folded Reload
	movl	(%rax,%r13,4), %esi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	*8(%rbx)
	movq	32(%r14), %rax
	movq	40(%r14), %rbx
	movl	(%rax,%r13,4), %edi
	movl	%edi, %esi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	*(%rbx)
	movq	16(%r14), %rax
	movq	24(%r14), %rdx
	movq	(%rax,%r13,8), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	*(%rdi)
	movq	16(%r14), %rax
	movq	(%rax,%r13,8), %rax
	movl	(%rax), %edi
	callq	_isfinite
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jl	LBB0_3
LBB0_5:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Input contains NaN/+-Inf\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_apply_window_and_mdct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_window_and_mdct
_apply_window_and_mdct:                 ; @apply_window_and_mdct
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x24, #0
	ldr	x25, [x0, #8]
	ldr	x8, [x1, #8]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w20, [x1]
	ldp	w8, w9, [x25]
	sub	w8, w8, w9
	ldr	x10, [x25, #48]
	sbfiz	x8, x8, #3, #32
	add	x21, x10, x8
	ldr	x10, [x25, #8]
	ldr	x22, [x10, x8]
	mov	w8, #1
	lsl	w8, w8, w9
	scvtf	d0, w8
	mov	x9, #4679240012837945344
	fmov	d1, x9
	fdiv	d0, d1, d0
	fcvt	s8, d0
	sxtw	x27, w8
	lsl	w23, w8, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x0, x8, [x25, #24]
	lsl	x28, x24, #2
	ldr	w1, [x8, x28]
	mov	x2, x23
	bl	_memcpy
	ldp	x9, x8, [x25, #32]
	ldr	x8, [x8, #16]
	ldr	w0, [x9, x28]
	lsl	x26, x24, #3
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x1, [x9, x26]
	fmov	s0, s8
	mov	x2, x20
	blr	x8
	ldp	x10, x8, [x25, #32]
	ldr	x8, [x8, #8]
	ldr	x9, [x25, #24]
	add	x0, x9, x27, lsl #2
	ldr	w1, [x10, x28]
	mov	x2, x22
	mov	x3, x20
	blr	x8
	ldp	x9, x8, [x25, #32]
	ldr	x8, [x8]
	ldr	w0, [x9, x28]
	mov	x1, x0
	mov	x2, x22
	mov	x3, x20
	blr	x8
	ldr	x8, [x21]
	ldp	x9, x2, [x25, #16]
	ldr	x1, [x9, x26]
	mov	x0, x21
	blr	x8
	ldr	x8, [x25, #16]
	ldr	x8, [x8, x26]
	ldr	w0, [x8]
	bl	_isfinite
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19]
	cmp	x24, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #0
	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_5:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	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
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Input contains NaN/+-Inf\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_apply_window_and_mdct
.subsections_via_symbols
