	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function synth_window
_synth_window:                          ## @synth_window
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %r13
	cmpl	$0, 8(%r13)
	jle	LBB0_11
## %bb.1:
	movq	%rdi, %r15
	movslq	(%r13), %r12
	movl	4(%r13), %r14d
	movl	$1, %eax
	subl	%r12d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	1(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r13), %edi
	callq	_av_fft_permute
	movl	24(%r13), %edi
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	callq	_av_fft_calc
	incq	%rbx
	movslq	8(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_read_fft_data
	movslq	12(%r13), %rax
	cmpl	%eax, %r12d
	jle	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rax), %r10d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, %ecx
	movq	%r12, %rdi
	testb	$1, %cl
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rcx
	shlq	$4, %rcx
	movq	$0, 8(%rdx,%rcx)
	movl	$0, (%rdx,%rcx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rax), %r10d
	cmpl	%r12d, %eax
	je	LBB0_4
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %esi
	subl	%edi, %esi
	incl	%esi
	shlq	$4, %rdi
	addq	%rdi, %rdx
	addq	$24, %rdx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	$0, -16(%rdx)
	movl	$0, -24(%rdx)
	movq	$0, (%rdx)
	movl	$0, -8(%rdx)
	addq	$32, %rdx
	addl	$-2, %esi
	jne	LBB0_16
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	movq	16(%r13), %rdx
	movq	(%rdx,%rbx,8), %rsi
	subl	%r10d, %edi
	jle	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r10d, %r9
	incl	%r10d
	testb	$1, %dil
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	decq	%rax
	movq	%rax, %rdi
	shlq	$4, %rdi
	movq	8(%rsi,%rdi), %r8
	movq	%r9, %rdx
	shlq	$4, %rdx
	movq	%r8, 8(%rsi,%rdx)
	xorl	%ecx, %ecx
	subl	(%rsi,%rdi), %ecx
	movl	%ecx, (%rsi,%rdx)
	incq	%r9
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r10d, %r14d
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	shlq	$4, %rax
	addq	%rsi, %rax
	addq	$-8, %rax
	movl	%r14d, %ecx
	subl	%r9d, %ecx
	shlq	$4, %r9
	leaq	(%rsi,%r9), %rdx
	addq	$24, %rdx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax), %rdi
	movq	%rdi, -16(%rdx)
	xorl	%edi, %edi
	subl	-8(%rax), %edi
	movl	%edi, -24(%rdx)
	movq	-16(%rax), %rdi
	movq	%rdi, (%rdx)
	xorl	%edi, %edi
	subl	-24(%rax), %edi
	movl	%edi, -8(%rdx)
	addq	$-32, %rax
	addq	$32, %rdx
	addl	$-2, %ecx
	jne	LBB0_9
	jmp	LBB0_10
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_synth_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function synth_window
_synth_window:                          ; @synth_window
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x23, [x0]
	ldr	w8, [x23, #8]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x21, #0
	ldp	w22, w24, [x23]
                                        ; kill: def $w22 killed $w22 def $x22
	sxtw	x22, w22
	add	x25, x22, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x23, #24]
	bl	_av_fft_permute
	ldr	w0, [x23, #24]
	ldr	x8, [x23, #16]
	ldr	x1, [x8, x21, lsl #3]
	bl	_av_fft_calc
	add	x21, x21, #1
	ldrsw	x8, [x23, #8]
	cmp	x21, x8
	b.ge	LBB0_14
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_read_fft_data
	ldrsw	x8, [x23, #12]
	cmp	w8, w22
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w8, #1
	b	LBB0_11
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x23, #16]
	ldr	x10, [x9, x21, lsl #3]
	add	w9, w8, #1
	sub	w12, w8, w22
	mov	x11, x22
	cmp	w12, #3
	b.lo	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x12, x12, #1
	and	x13, x12, #0x1fffffffc
	add	x11, x13, x22
	add	x14, x10, x25, lsl #4
	mov	x15, x13
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stur	xzr, [x14, #-24]
	stur	xzr, [x14, #-8]
	str	xzr, [x14, #8]
	str	xzr, [x14, #24]
	stur	wzr, [x14, #-32]
	stur	wzr, [x14, #-16]
	str	wzr, [x14]
	str	wzr, [x14, #16]
	add	x14, x14, #64
	subs	x15, x15, #4
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x12, x13
	b.eq	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, x11, lsl #4
	add	x10, x10, #8
	sub	w11, w8, w11
	add	w11, w11, #1
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	xzr, [x10]
	stur	wzr, [x10, #-8]
	add	x10, x10, #16
	subs	w11, w11, #1
	b.ne	LBB0_10
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x23, #16]
	ldr	x1, [x10, x21, lsl #3]
	cmp	w9, w24
	b.ge	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x1, x8, lsl #4
	sub	x8, x8, #8
	add	x10, x1, w9, sxtw #4
	add	x10, x10, #8
	sub	w9, w24, w9
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x8]
	str	x11, [x10]
	ldur	w11, [x8, #-8]
	neg	w11, w11
	stur	w11, [x10, #-8]
	sub	x8, x8, #16
	add	x10, x10, #16
	subs	w9, w9, #1
	b.ne	LBB0_13
	b	LBB0_2
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_synth_window
.subsections_via_symbols
