	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acalc_magnitudes
_acalc_magnitudes:                      ## @acalc_magnitudes
	.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
	movl	(%rdi), %ecx
	movq	8(%rdi), %rax
	movq	_LOG@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movl	$1, %edx
	cmovel	%ecx, %edx
	movl	40(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	imull	%ecx, %edx
	cvtsi2sd	%edx, %xmm0
	mulsd	32(%rdi), %xmm0
	cvtsd2ss	%xmm0, %xmm1
	movq	16(%rdi), %rcx
	movq	_VERTICAL@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	setne	%sil
	movl	24(%rdi,%rsi,4), %r12d
	xorl	%r15d, %r15d
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%r12d, %r12d
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r14), %rax
	movq	(%rax,%r15,8), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_MAGNITUDE
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	addss	(%r13,%rbx,4), %xmm0
	movss	%xmm0, (%r13,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	40(%r14), %eax
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG,8,3                        ## @LOG
	.comm	_VERTICAL,8,3                   ## @VERTICAL
	.no_dead_strip	_acalc_magnitudes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acalc_magnitudes
_acalc_magnitudes:                      ; @acalc_magnitudes
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _LOG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
	ldr	x10, [x0, #8]
Lloh2:
	ldr	x8, [x8]
	cmp	x10, x8
	csinc	w10, w9, wzr, eq
	ldr	w8, [x0, #40]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	mul	w9, w10, w9
	scvtf	d0, w9
	ldr	d1, [x0, #32]
	fmul	d0, d1, d0
	fcvt	s8, d0
	ldr	x9, [x0, #16]
Lloh3:
	adrp	x10, _VERTICAL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VERTICAL@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	mov	w11, #28
	mov	w12, #24
	cmp	x9, x10
	csel	x9, x12, x11, eq
	ldr	w22, [x0, x9]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w22, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	ldr	x8, [x19, #48]
	ldr	x23, [x8, x20, lsl #3]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x20
	bl	_MAGNITUDE
	lsl	x8, x21, #2
	ldr	s1, [x23, x8]
	fmadd	s0, s0, s8, s1
	str	s0, [x23, x8]
	add	x21, x21, #1
	cmp	x22, x21
	b.ne	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #40]
	b	LBB0_2
LBB0_7:
	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	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG,8,3                        ; @LOG
	.comm	_VERTICAL,8,3                   ; @VERTICAL
	.no_dead_strip	_acalc_magnitudes
.subsections_via_symbols
