	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_peak_magnitude
_find_peak_magnitude:                   ## @find_peak_magnitude
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_DBL_EPSILON@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	cmpl	$-1, %esi
	je	LBB0_1
## %bb.8:
	cmpl	$0, 4(%r15)
	jle	LBB0_11
## %bb.9:
	movq	8(%r15), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movsd	(%r14,%rbx,8), %xmm0            ## xmm0 = mem[0],zero
	callq	_fabs
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%eax, %edi
	callq	_FFMAX
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_10
	jmp	LBB0_11
LBB0_1:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.2:
	movl	4(%r15), %eax
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	%ecx, %rdx
	cmpq	%rdx, %r14
	jge	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%eax, %eax
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%r14,8), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movsd	(%r12,%rbx,8), %xmm0            ## xmm0 = mem[0],zero
	callq	_fabs
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%eax, %edi
	callq	_FFMAX
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %ecx
	jmp	LBB0_7
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DBL_EPSILON,8,3                ## @DBL_EPSILON
	.no_dead_strip	_find_peak_magnitude
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_peak_magnitude
_find_peak_magnitude:                   ; @find_peak_magnitude
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _DBL_EPSILON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DBL_EPSILON@GOTPAGEOFF]
Lloh2:
	ldr	d8, [x8]
	cmn	w1, #1
	b.eq	LBB0_4
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x20, #0
	ldr	x8, [x19, #8]
	ldr	x21, [x8, w1, sxtw #3]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x21, x20, lsl #3]
	bl	_fabs
	fmov	d0, d8
	bl	_FFMAX
	fmov	d8, d0
	add	x20, x20, #1
	ldrsw	x8, [x19, #4]
	cmp	x20, x8
	b.lt	LBB0_3
	b	LBB0_11
LBB0_4:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.5:
	mov	x20, #0
	ldr	w8, [x19, #4]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #1
	cmp	x20, w9, sxtw
	b.ge	LBB0_11
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x21, #0
	ldr	x8, [x19, #8]
	ldr	x22, [x8, x20, lsl #3]
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d0, [x22, x21, lsl #3]
	bl	_fabs
	fmov	d0, d8
	bl	_FFMAX
	fmov	d8, d0
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	cmp	x21, x8
	b.lt	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x19]
	b	LBB0_6
LBB0_11:
	fmov	d0, d8
	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	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DBL_EPSILON,8,3                ; @DBL_EPSILON
	.no_dead_strip	_find_peak_magnitude
.subsections_via_symbols
