	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sort_mono
_sort_mono:                             ## @sort_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_18
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	movq	8(%r14), %rdi
	movq	16(%r12), %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_18
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r13d, %r13d
	movl	$1, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	8(%r12), %rax
	movq	(%rax,%r15,8), %rcx
	movq	(%rcx), %rdi
	movq	(%rax,%r13,8), %rax
	movq	(%rax), %rsi
	movl	(%r12), %edx
	movq	8(%r14), %rcx
	movl	%r15d, %r8d
	callq	_decorr_mono_buffer
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=2
	movslq	(%r14), %rax
	incq	%rbx
	cmpq	%rax, %r13
	jge	LBB0_17
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	movq	16(%r12), %rcx
	movq	(%rcx,%r13,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r13, %r15
	incq	%r13
	cltq
	cmpq	%rax, %r13
	jge	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	(%rcx,%r13,8), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpq	%rax, %rdx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rdx
	movq	%rax, (%rdx,%r15,8)
	movq	(%rcx,%r15,8), %rax
	movq	%rax, (%rdx,%r13,8)
	cmpq	$0, (%rcx,%r15,8)
	movq	%r15, %rbx
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%rax, %rbx
	leal	-1(%rax), %r8d
	movq	8(%r12), %rax
	movq	-8(%rax,%rbx,8), %rcx
	movq	(%rax,%rbx,8), %rax
	movq	(%rcx), %rdi
	movq	(%rax), %rsi
	movl	(%r12), %edx
	movq	8(%r14), %rcx
	callq	_decorr_mono_buffer
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=3
	movq	16(%r12), %rcx
	leaq	1(%rbx), %rax
	cmpq	$0, (%rcx,%rbx,8)
	jne	LBB0_10
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	8(%r12), %rax
	movl	%ebx, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rdi
	movl	(%r12), %esi
	movl	20(%r14), %edx
	callq	_log2mono
	cmpl	16(%r14), %eax
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	%eax, 16(%r14)
	movq	16(%r12), %rdi
	callq	_CLEAR
	movq	16(%r12), %rdi
	movq	8(%r14), %rsi
	shll	$3, %ebx
	movl	%ebx, %edx
	callq	_memcpy
	movq	8(%r12), %rax
	movslq	(%r14), %rcx
	movq	8(%rax,%rcx,8), %rcx
	movq	(%rcx), %rdi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rsi
	movl	(%r12), %edx
	shll	$2, %edx
	callq	_memcpy
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	8(%r14), %rcx
	movq	16(%r12), %rax
	movq	(%rax,%r15,8), %rdx
	movq	%rdx, (%rcx,%r15,8)
	movq	(%rax,%r13,8), %rax
	movq	%rax, (%rcx,%r13,8)
	movq	8(%r12), %rax
	movq	(%rax,%r15,8), %rdx
	movq	(%rdx), %rdi
	movq	(%rax,%r13,8), %rax
	movq	(%rax), %rsi
	movl	(%r12), %edx
	movl	%r15d, %r8d
	callq	_decorr_mono_buffer
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sort_mono
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sort_mono
_sort_mono:                             ; @sort_mono
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w24, LBB0_18
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
	ldr	x0, [x19, #8]
	ldr	x1, [x20, #16]
	mov	w2, #8
	bl	_memcpy
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, #0
	mov	w24, #0
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x20, #8]
	ldr	x9, [x8, x21, lsl #3]
	ldr	x0, [x9]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x1, [x8]
	ldr	w2, [x20]
	ldr	x3, [x19, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x4, x21
	bl	_decorr_mono_buffer
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.ge	LBB0_1
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
	ldr	x9, [x20, #16]
	ldr	x10, [x9, x23, lsl #3]
	cbz	x10, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x21, x23
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x9, x23, lsl #3]
	cbz	x8, LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	cmp	x10, x8
	b.eq	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x10, [x19, #8]
	lsl	x25, x21, #3
	str	x8, [x10, x25]
	ldr	x8, [x9, x25]
	str	x8, [x10, x23, lsl #3]
	ldr	x8, [x9, x25]
	mov	x26, x21
	cbz	x8, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	x22, x21
LBB0_13:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x20, #8]
	add	x8, x8, x22, lsl #3
	ldp	x9, x8, [x8]
	ldr	x0, [x9]
	add	x26, x22, #1
	ldr	x1, [x8]
	ldr	w2, [x20]
	ldr	x3, [x19, #8]
	mov	x4, x22
	bl	_decorr_mono_buffer
	ldrsw	x8, [x19]
	cmp	x26, x8
	b.ge	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	ldr	x8, [x20, #16]
	add	x8, x8, x22, lsl #3
	ldr	x8, [x8, #8]
	mov	x22, x26
	cbnz	x8, LBB0_13
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x20, #8]
	ldr	x8, [x8, w26, uxtw #3]
	ldr	x0, [x8]
	ldr	w1, [x20]
	ldr	w2, [x19, #20]
	bl	_log2mono
	ldr	w8, [x19, #16]
	cmp	w0, w8
	b.ge	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=2
	and	x21, x26, #0xffffffff
	str	w0, [x19, #16]
	ldr	x0, [x20, #16]
	bl	_CLEAR
	ldr	x0, [x20, #16]
	ldr	x1, [x19, #8]
	lsl	w2, w26, #3
	bl	_memcpy
	ldr	x8, [x20, #8]
	ldrsw	x9, [x19]
	add	x9, x8, x9, lsl #3
	ldr	x9, [x9, #8]
	ldr	x0, [x9]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x1, [x8]
	ldr	w8, [x20]
	lsl	w2, w8, #2
	bl	_memcpy
	mov	w24, #1
	b	LBB0_6
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x3, [x19, #8]
	ldp	x9, x8, [x20, #8]
	ldr	x10, [x8, x25]
	str	x10, [x3, x25]
	lsl	x10, x23, #3
	ldr	x8, [x8, x10]
	str	x8, [x3, x10]
	ldr	x8, [x9, x25]
	ldr	x0, [x8]
	ldr	x8, [x9, x10]
	ldr	x1, [x8]
	ldr	w2, [x20]
	b	LBB0_5
LBB0_18:
	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	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sort_mono
.subsections_via_symbols
