	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yae_align
_yae_align:                             ## @yae_align
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movq	16(%rbp), %rax
	movl	%r8d, %ebx
	negl	%ebx
	movq	_FLT_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	(%rsi), %rdx
	movq	(%rdi), %rcx
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r9, %rdi
	movq	%rax, %rsi
	movl	%r12d, %r8d
	callq	_yae_xcorr_via_rdft
	movl	%r12d, %r15d
	shrl	$31, %r15d
	addl	%r12d, %r15d
	sarl	%r15d
	movl	%r15d, %edi
	subl	%r13d, %edi
	subl	%r14d, %edi
	xorl	%esi, %esi
	callq	_FFMAX
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_FFMIN
                                        ## kill: def $eax killed $eax def $rax
	addl	%r15d, %r13d
	subl	%r14d, %r13d
	leal	15(%r12), %ecx
	testl	%r12d, %r12d
	cmovnsl	%r12d, %ecx
	sarl	$4, %ecx
	subl	%ecx, %r12d
	movl	%r13d, %edi
	movl	%r12d, %esi
	movq	%rax, %r12
	callq	_FFMIN
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_FFMAX
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	subl	%r12d, %ecx
	jle	LBB0_7
## %bb.1:
	movslq	%r12d, %rdx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rdx,4), %r9
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, %edx
	negl	%edx
	leal	1(%r12), %esi
	testb	$1, %cl
	jne	LBB0_3
## %bb.2:
	movl	%r12d, %ecx
	cmpl	%esi, %eax
	jne	LBB0_5
	jmp	LBB0_7
LBB0_3:
	movl	%r12d, %ecx
	subl	%r15d, %ecx
	xorl	%r8d, %r8d
	testl	%edx, %edx
	cmovlel	%r8d, %edx
	testl	%edi, %edi
	cmovgl	%ecx, %ebx
	addq	$4, %r9
	movl	%esi, %ecx
	cmpl	%esi, %eax
	je	LBB0_7
LBB0_5:
	movl	%ecx, %r8d
	subl	%eax, %r8d
	movl	%ecx, %r10d
	subl	%r15d, %r10d
	subl	%ecx, %eax
	movl	%ecx, %r11d
	subl	%r12d, %r11d
	addl	%ecx, %r14d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%rcx), %esi
	leal	(%r11,%rcx), %edi
	imull	%esi, %edi
	imull	%eax, %edi
	imull	(%r9,%rcx,4), %edi
	cmpl	%edx, %edi
	cmovlel	%edx, %edi
	leal	(%r10,%rcx), %esi
	cmovlel	%ebx, %esi
	leal	(%r14,%rcx), %edx
	incl	%edx
	leal	(%r11,%rcx), %ebx
	incl	%ebx
	imull	%edx, %ebx
	leal	-1(%rax), %edx
	imull	%ebx, %edx
	imull	4(%r9,%rcx,4), %edx
	cmpl	%edi, %edx
	leal	1(%r10,%rcx), %ebx
	cmovlel	%edi, %edx
	cmovlel	%esi, %ebx
	addq	$2, %rcx
	addl	$-2, %eax
	movl	%r8d, %esi
	addl	%ecx, %esi
	jne	LBB0_6
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLT_MAX,4,2                    ## @FLT_MAX
	.no_dead_strip	_yae_align
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yae_align
_yae_align:                             ; @yae_align
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x5
	mov	x21, x4
	mov	x23, x3
	mov	x24, x2
	neg	w19, w4
Lloh0:
	adrp	x8, _FLT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	ldr	x2, [x1]
	ldr	x3, [x0]
	mov	x0, x5
	mov	x1, x6
	mov	x4, x24
	bl	_yae_xcorr_via_rdft
	cmp	w24, #0
	cinc	w8, w24, lt
	asr	w26, w8, #1
	add	w8, w23, w21
	add	w9, w24, #15
	csel	w27, w9, w24, lt
	sub	w0, w26, w8
	mov	w1, #0
	bl	_FFMAX
	mov	x1, x24
	bl	_FFMIN
	mov	x22, x0
	add	w8, w26, w23
	sub	w0, w8, w21
	sub	w1, w24, w27, asr #4
	bl	_FFMIN
	mov	w1, #0
	bl	_FFMAX
	subs	w8, w0, w22
	b.le	LBB0_3
; %bb.1:
	mov	x9, #0
	neg	w10, w25
	sub	w11, w22, w26
	add	w12, w22, w21
	add	x13, x20, w22, sxtw #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x13, x9, lsl #2]
	add	w15, w12, w9
	mul	w15, w15, w9
	mul	w15, w15, w8
	mul	w14, w15, w14
	add	w15, w11, w9
	cmp	w14, w10
	csel	w10, w14, w10, gt
	csel	w19, w15, w19, gt
	add	x9, x9, #1
	subs	w8, w8, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FLT_MAX,4,2                    ; @FLT_MAX
	.no_dead_strip	_yae_align
.subsections_via_symbols
