	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function calc_stereo_peak
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_calc_stereo_peak:                      ## @calc_stereo_peak
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movl	%esi, %eax
	xorps	%xmm0, %xmm0
	xorl	%ecx, %ecx
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movaps	%xmm2, %xmm0
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	cmpl	%ecx, %eax
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rcx,%rcx), %rdx
	movss	(%rdi,%rcx,8), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm2
	ja	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorps	%xmm1, %xmm2
	ucomiss	%xmm0, %xmm2
	jbe	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movaps	%xmm2, %xmm0
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movss	4(%rdi,%rdx,4), %xmm2           ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm2
	ja	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	xorps	%xmm1, %xmm2
	ucomiss	%xmm0, %xmm2
	ja	LBB0_8
	jmp	LBB0_9
LBB0_1:
	xorps	%xmm0, %xmm0
LBB0_10:
	movss	(%rbx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	callq	_FFMAX
	movss	%xmm0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calc_stereo_peak
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_stereo_peak
_calc_stereo_peak:                      ; @calc_stereo_peak
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	movi	d0, #0000000000000000
	cbnz	w1, LBB0_4
LBB0_1:
	ldr	s1, [x19]
	bl	_FFMAX
	str	s0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	fmov	s0, s1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x0, #8
	cbz	w1, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s1, [x0]
	fcmp	s1, s0
	b.gt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	fneg	s1, s1
	fcmp	s0, s1
	b.pl	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	fmov	s0, s1
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w1, w1, #1
	ldr	s1, [x0, #4]
	fcmp	s1, s0
	b.gt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	fneg	s1, s1
	fcmp	s0, s1
	b.mi	LBB0_2
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calc_stereo_peak
.subsections_via_symbols
