	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function analyze_mono
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0x4008000000000000              ## double 3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_analyze_mono:                          ## @analyze_mono
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_MAG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	movq	_MAG_LSB@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%edx, %r15d
	movq	%rsi, %r14
	shll	$8, %eax
	addl	$1024, %eax                     ## imm = 0x400
	movl	$6912, %edi                     ## imm = 0x1B00
	movl	%eax, %esi
	callq	_FFMIN
	movl	%eax, -64(%rbp)
	movl	4(%r12), %ebx
	movl	%ebx, -60(%rbp)
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_allocate_buffers2
	testq	%rax, %rax
	jne	LBB0_26
## %bb.1:
	movslq	%ebx, %r13
	movq	24(%r12), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	32(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movl	8(%r12), %edx
	shll	$2, %edx
	movq	%r14, %rsi
	callq	_memcpy
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.3:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rax
	movq	(%rax,%r15,8), %rcx
	movq	8(%rax,%r15,8), %rax
	movq	(%rcx), %rdi
	incq	%r15
	movq	(%rax), %rsi
	movl	8(%r12), %edx
	movl	$1, %r8d
	callq	_decorr_mono
	cmpq	%r15, %rbx
	jne	LBB0_4
## %bb.5:
	movl	%r14d, %r15d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_2:
	xorl	%ebx, %ebx
LBB0_6:
	movq	32(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax), %rdi
	movl	8(%r12), %esi
	xorl	%edx, %edx
	callq	_log2mono
	movl	%eax, -56(%rbp)
	movq	32(%r12), %rax
	movq	8(%rax,%r13,8), %rcx
	movq	(%rcx), %rdi
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rsi
	movl	8(%r12), %edx
	shll	$2, %edx
	callq	_memcpy
	movl	12(%r12), %eax
	movq	_EXTRA_BRANCHES@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movsd	16(%r12), %xmm0                 ## xmm0 = mem[0],zero
	addsd	LCPI0_0(%rip), %xmm0
	callq	_floor
	movq	%rax, %rbx
	movq	32(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movl	8(%r12), %esi
	xorl	%edx, %edx
	callq	_log2mono
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_recurse_mono
	movl	12(%r12), %eax
LBB0_8:
	movq	_EXTRA_SORT_FIRST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_sort_mono
	movl	12(%r12), %eax
LBB0_10:
	movq	_EXTRA_TRY_DELTAS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.11:
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_delta_mono
	movl	12(%r12), %eax
	movq	_EXTRA_ADJUST_DELTAS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.12:
	movq	24(%r12), %rcx
	cmpq	$0, 8(%rcx)
	je	LBB0_14
## %bb.13:
	movsd	16(%r12), %xmm0                 ## xmm0 = mem[0],zero
	addsd	%xmm0, %xmm0
	addsd	(%rcx), %xmm0
	divsd	LCPI0_1(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm0
	cvtss2sd	%xmm0, %xmm0
	movsd	%xmm0, 16(%r12)
	jmp	LBB0_15
LBB0_14:
	movabsq	$4611686018427387904, %rcx      ## imm = 0x4000000000000000
	movq	%rcx, 16(%r12)
LBB0_15:
	movq	_EXTRA_SORT_LAST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_sort_mono
LBB0_17:
	testl	%r15d, %r15d
	je	LBB0_19
## %bb.18:
	movq	32(%r12), %rax
	movslq	-60(%rbp), %rcx
	movq	8(%rax,%rcx,8), %rax
	movq	(%rax), %rsi
	movl	8(%r12), %edx
	shll	$2, %edx
	movq	%r14, %rdi
	callq	_memcpy
LBB0_19:
	movl	-60(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_20
## %bb.21:
	movq	24(%r12), %rdx
	addq	$8, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx)
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	incq	%rcx
	addq	$16, %rdx
	cmpq	%rcx, %rax
	jne	LBB0_22
## %bb.24:
	movl	%eax, %ecx
	jmp	LBB0_25
LBB0_20:
	xorl	%ecx, %ecx
LBB0_25:
	movl	%ecx, 4(%r12)
LBB0_26:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAG_MASK,4,2                   ## @MAG_MASK
	.comm	_MAG_LSB,4,2                    ## @MAG_LSB
	.comm	_EXTRA_BRANCHES,4,2             ## @EXTRA_BRANCHES
	.comm	_EXTRA_SORT_FIRST,4,2           ## @EXTRA_SORT_FIRST
	.comm	_EXTRA_TRY_DELTAS,4,2           ## @EXTRA_TRY_DELTAS
	.comm	_EXTRA_ADJUST_DELTAS,4,2        ## @EXTRA_ADJUST_DELTAS
	.comm	_EXTRA_SORT_LAST,4,2            ## @EXTRA_SORT_LAST
	.no_dead_strip	_analyze_mono
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function analyze_mono
_analyze_mono:                          ; @analyze_mono
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MAG_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAG_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _MAG_LSB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAG_LSB@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w8, w8, w9
	lsl	w8, w8, #8
	add	w1, w8, #1024
	mov	w0, #6912
	bl	_FFMIN
	ldr	w22, [x19, #4]
	stp	w0, w22, [sp, #8]
	mov	x0, x19
	mov	x1, x22
	bl	_allocate_buffers2
	cbnz	x0, LBB0_25
; %bb.1:
	mov	x8, x22
	sxtw	x23, w8
	ldr	x1, [x19, #24]
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	x0, [x8]
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	mov	x1, x20
	bl	_memcpy
	cmp	w23, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x24, #0
	lsl	x25, x22, #3
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x8, x8, x24
	ldp	x9, x8, [x8]
	ldr	x0, [x9]
	ldr	x1, [x8]
	ldr	w2, [x19, #8]
	mov	w4, #1
	bl	_decorr_mono
	add	x24, x24, #8
	cmp	x25, x24
	b.ne	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	x22, #0
LBB0_5:
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x0, [x8]
	ldr	w1, [x19, #8]
	mov	w2, #0
	bl	_log2mono
	str	w0, [sp, #16]
	ldr	x8, [x19, #32]
	add	w9, w23, #1
	ldr	x9, [x8, w9, sxtw #3]
	ldr	x0, [x9]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x1, [x8]
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	w8, [x19, #12]
Lloh6:
	adrp	x9, _EXTRA_BRANCHES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EXTRA_BRANCHES@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	d0, [x19, #16]
	fmov	d1, #0.50000000
	fadd	d0, d0, d1
	bl	_floor
	mov	x22, x0
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	x0, [x8]
	ldr	w1, [x19, #8]
	mov	w2, #0
	bl	_log2mono
	mov	x4, x0
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	mov	x3, x22
	bl	_recurse_mono
	ldr	w8, [x19, #12]
LBB0_7:
Lloh9:
	adrp	x9, _EXTRA_SORT_FIRST@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EXTRA_SORT_FIRST@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	add	x1, sp, #8
	mov	x0, x19
	bl	_sort_mono
	ldr	w8, [x19, #12]
LBB0_9:
Lloh12:
	adrp	x9, _EXTRA_TRY_DELTAS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EXTRA_TRY_DELTAS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.10:
	add	x1, sp, #8
	mov	x0, x19
	bl	_delta_mono
	ldr	w8, [x19, #12]
Lloh15:
	adrp	x9, _EXTRA_ADJUST_DELTAS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EXTRA_ADJUST_DELTAS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.11:
	ldr	x9, [x19, #24]
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_13
; %bb.12:
	ldr	d0, [x19, #16]
	ldr	d1, [x9]
	fmov	d2, #2.00000000
	fmadd	d0, d0, d2, d1
	fmov	d1, #3.00000000
	fdiv	d0, d0, d1
	fcvt	s0, d0
	fcvt	d0, s0
	str	d0, [x19, #16]
	b	LBB0_14
LBB0_13:
	mov	x9, #4611686018427387904
	str	x9, [x19, #16]
LBB0_14:
Lloh18:
	adrp	x9, _EXTRA_SORT_LAST@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EXTRA_SORT_LAST@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	add	x1, sp, #8
	mov	x0, x19
	bl	_sort_mono
LBB0_16:
	cbz	w21, LBB0_18
; %bb.17:
	ldr	x8, [x19, #32]
	ldrsw	x9, [sp, #12]
	add	x8, x8, x9, lsl #3
	ldr	x8, [x8, #8]
	ldr	x1, [x8]
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	mov	x0, x20
	bl	_memcpy
LBB0_18:
	ldr	w9, [sp, #12]
	cmp	w9, #1
	b.lt	LBB0_23
; %bb.19:
	mov	x8, #0
	ldr	x10, [x19, #24]
	add	x10, x10, #8
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cbz	x11, LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x8, x8, #1
	add	x10, x10, #16
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.22:
	mov	x8, x9
	b	LBB0_24
LBB0_23:
	mov	w8, #0
LBB0_24:
	str	w8, [x19, #4]
LBB0_25:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MAG_MASK,4,2                   ; @MAG_MASK
	.comm	_MAG_LSB,4,2                    ; @MAG_LSB
	.comm	_EXTRA_BRANCHES,4,2             ; @EXTRA_BRANCHES
	.comm	_EXTRA_SORT_FIRST,4,2           ; @EXTRA_SORT_FIRST
	.comm	_EXTRA_TRY_DELTAS,4,2           ; @EXTRA_TRY_DELTAS
	.comm	_EXTRA_ADJUST_DELTAS,4,2        ; @EXTRA_ADJUST_DELTAS
	.comm	_EXTRA_SORT_LAST,4,2            ; @EXTRA_SORT_LAST
	.no_dead_strip	_analyze_mono
.subsections_via_symbols
