	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_channel_phases
_calc_channel_phases:                   ## @calc_channel_phases
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_VERTICAL@GOTPCREL(%rip), %rcx
	movq	(%rax), %rsi
	xorl	%edi, %edi
	cmpq	(%rcx), %rsi
	setne	%dil
	movl	8(%rax,%rdi,4), %r15d
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.1:
	movl	%edx, %r14d
	movq	16(%rax), %rax
	movslq	%edx, %rcx
	movq	(%rax,%rcx,8), %r12
	xorl	%ebx, %ebx
	movq	_M_PI@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_PHASE
	cltd
	idivl	(%r13)
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	incl	%ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	incl	%eax
	sarl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, (%r12,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VERTICAL,8,3                   ## @VERTICAL
	.comm	_M_PI,4,2                       ## @M_PI
	.no_dead_strip	_calc_channel_phases
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_channel_phases
_calc_channel_phases:                   ; @calc_channel_phases
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _VERTICAL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _VERTICAL@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	mov	w11, #12
	mov	w12, #8
	cmp	x9, x10
	csel	x9, x12, x11, eq
	ldr	w21, [x8, x9]
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, #0
	ldr	x8, [x8, #16]
	ldr	x22, [x8, w2, sxtw #3]
Lloh3:
	adrp	x23, _M_PI@GOTPAGE
Lloh4:
	ldr	x23, [x23, _M_PI@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_PHASE
	ldr	w8, [x23]
	sdiv	w8, w0, w8
	add	w9, w8, #1
	add	w10, w8, #2
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	asr	w8, w8, #1
	scvtf	s0, w8
	str	s0, [x22, x20, lsl #2]
	add	x20, x20, #1
	cmp	x21, x20
	b.ne	LBB0_2
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VERTICAL,8,3                   ; @VERTICAL
	.comm	_M_PI,4,2                       ; @M_PI
	.no_dead_strip	_calc_channel_phases
.subsections_via_symbols
