	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_max_local_gain
_get_max_local_gain:                    ## @get_max_local_gain
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movsd	(%rdi), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movq	%rsi, %rdi
	movl	%edx, %esi
	callq	_find_peak_magnitude
	movapd	%xmm0, %xmm2
	movsd	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero
	movq	_DBL_EPSILON@GOTPCREL(%rip), %rax
	ucomisd	(%rax), %xmm0
	jbe	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movsd	%xmm2, -32(%rbp)                ## 8-byte Spill
	callq	_compute_frame_rms
	movsd	-32(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	jmp	LBB0_3
LBB0_2:
	movq	_DBL_MAX@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
LBB0_3:
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	divsd	%xmm2, %xmm0
	movl	16(%rbx), %ebx
	callq	_FFMIN
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bound                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DBL_EPSILON,8,3                ## @DBL_EPSILON
	.comm	_DBL_MAX,8,3                    ## @DBL_MAX
	.no_dead_strip	_get_max_local_gain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_max_local_gain
_get_max_local_gain:                    ; @get_max_local_gain
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	d9, [x0]
	mov	x0, x1
	mov	x1, x2
	bl	_find_peak_magnitude
	fmov	d8, d0
	ldr	d10, [x19, #8]
Lloh0:
	adrp	x8, _DBL_EPSILON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DBL_EPSILON@GOTPAGEOFF]
Lloh2:
	ldr	d0, [x8]
	fcmp	d10, d0
	b.le	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_compute_frame_rms
	fdiv	d1, d10, d0
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _DBL_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBL_MAX@GOTPAGEOFF]
Lloh5:
	ldr	d1, [x8]
LBB0_3:
	ldr	w19, [x19, #16]
	fdiv	d0, d9, d8
	bl	_FFMIN
	mov	x1, x0
	mov	x0, x19
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #80             ; 16-byte Folded Reload
	b	_bound
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DBL_EPSILON,8,3                ; @DBL_EPSILON
	.comm	_DBL_MAX,8,3                    ; @DBL_MAX
	.no_dead_strip	_get_max_local_gain
.subsections_via_symbols
