	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_top_sort_level
_run_top_sort_level:                    ## @run_top_sort_level
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_sort_opts_vals@GOTPCREL(%rip), %r12
	cmpq	$0, 16(%r12)
	jne	LBB0_1
## %bb.2:
	movq	_default_sort_mods@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_keys@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	_reverse_sort@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	movq	$0, (%r14)
	movl	$256, 8(%r14)                   ## imm = 0x100
	movq	_slsz@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_sort_malloc
	movq	%rax, 56(%r14)
	movl	(%rbx), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	cmpq	$0, 16(%r14)
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_place_item
	incq	%rbx
	cmpq	16(%r14), %rbx
	jb	LBB0_5
LBB0_6:
	movl	24(%r14), %esi
	cmpl	$1, %esi
	jle	LBB0_14
## %bb.7:
	movq	_keys_num@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	movq	8(%r12), %rax
	jl	LBB0_10
## %bb.8:
	movl	48(%r14), %edi
	movq	_list_coll@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movl	$8, %edx
	callq	_mergesort
	jmp	LBB0_14
LBB0_10:
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	cmpq	$0, (%r12)
	je	LBB0_14
## %bb.12:
	movl	48(%r14), %edi
	movq	_list_coll_by_str_only@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_13:
	movl	$8, %edx
	callq	_DEFAULT_SORT_FUNC_RADIXSORT
LBB0_14:
	cmpl	$0, (%r15)
	je	LBB0_21
## %bb.15:
	movslq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.16:
	movq	$-1, %r15
	xorl	%r12d, %r12d
	movl	%ebx, %eax
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%r12
	movslq	%eax, %rbx
	decq	%r15
	cmpq	%rbx, %r12
	jae	LBB0_20
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	addq	%r15, %rbx
	movq	56(%r14), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	32(%r14), %rax
	movq	%rax, 40(%rdi)
	movq	(%r14), %rax
	movq	%rax, (%rdi)
	movq	16(%rdi), %rax
	addq	%rax, (%r14)
	callq	_push_ls
	movq	56(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	movl	8(%r14), %eax
	jmp	LBB0_19
LBB0_20:
	movq	(%r14), %rdi
	addq	32(%r14), %rdi
	movl	48(%r14), %esi
	movl	24(%r14), %edx
	shll	$3, %edx
	callq	_memcpy
	movl	24(%r14), %edi
	callq	_sort_left_dec
LBB0_26:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_run_sort_cycle_st              ## TAILCALL
LBB0_21:
	movq	(%r14), %rdi
	addq	32(%r14), %rdi
	movl	48(%r14), %esi
	movl	24(%r14), %edx
	shll	$3, %edx
	callq	_memcpy
	movslq	24(%r14), %rdi
	addq	%rdi, (%r14)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_sort_left_dec
	movl	8(%r14), %eax
	testl	%eax, %eax
	je	LBB0_26
## %bb.22:
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jae	LBB0_26
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%r14), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	32(%r14), %rax
	movq	%rax, 40(%rdi)
	movq	(%r14), %rax
	movq	%rax, (%rdi)
	movq	16(%rdi), %rax
	addq	%rax, (%r14)
	callq	_push_ls
	movq	56(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	movl	8(%r14), %eax
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_sort_opts_vals,24,3            ## @sort_opts_vals
	.comm	_keys,8,3                       ## @keys
	.comm	_default_sort_mods,8,3          ## @default_sort_mods
	.comm	_reverse_sort,4,2               ## @reverse_sort
	.comm	_slsz,4,2                       ## @slsz
	.comm	_keys_num,4,2                   ## @keys_num
	.comm	_list_coll,8,3                  ## @list_coll
	.comm	_list_coll_by_str_only,8,3      ## @list_coll_by_str_only
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_PTHREAD_DETACHED,4,2           ## @PTHREAD_DETACHED
	.comm	_errno,8,3                      ## @errno
	.comm	_mtsem,4,2                      ## @mtsem
	.comm	_nthreads,4,2                   ## @nthreads
	.comm	_sort_thread,4,2                ## @sort_thread
	.no_dead_strip	_run_top_sort_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_top_sort_level
_run_top_sort_level:                    ; @run_top_sort_level
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _sort_opts_vals@GOTPAGE
Lloh1:
	ldr	x22, [x22, _sort_opts_vals@GOTPAGEOFF]
	ldr	x8, [x22, #16]
Lloh2:
	adrp	x9, _keys@GOTPAGE
Lloh3:
	ldr	x9, [x9, _keys@GOTPAGEOFF]
Lloh4:
	adrp	x10, _default_sort_mods@GOTPAGE
Lloh5:
	ldr	x10, [x10, _default_sort_mods@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh6:
	adrp	x21, _reverse_sort@GOTPAGE
Lloh7:
	ldr	x21, [x21, _reverse_sort@GOTPAGEOFF]
	str	w8, [x21]
	str	xzr, [x0]
	mov	w8, #256
	str	w8, [x0, #8]
Lloh8:
	adrp	x20, _slsz@GOTPAGE
Lloh9:
	ldr	x20, [x20, _slsz@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_sort_malloc
	str	x0, [x19, #56]
	ldr	w2, [x20]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_place_item
	add	x20, x20, #1
	ldr	x8, [x19, #16]
	cmp	x20, x8
	b.lo	LBB0_2
LBB0_3:
	ldr	w1, [x19, #24]
	cmp	w1, #1
	b.le	LBB0_11
; %bb.4:
Lloh10:
	adrp	x8, _keys_num@GOTPAGE
Lloh11:
	ldr	x8, [x8, _keys_num@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x8]
	ldr	x8, [x22, #8]
	cmp	w9, #2
	b.lt	LBB0_7
; %bb.5:
	ldr	w0, [x19, #48]
Lloh13:
	adrp	x9, _list_coll@GOTPAGE
Lloh14:
	ldr	x9, [x9, _list_coll@GOTPAGEOFF]
Lloh15:
	ldr	x3, [x9]
	cbz	x8, LBB0_10
; %bb.6:
	mov	w2, #8
	bl	_mergesort
	b	LBB0_11
LBB0_7:
	cbnz	x8, LBB0_11
; %bb.8:
	ldr	x8, [x22]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	w0, [x19, #48]
Lloh16:
	adrp	x8, _list_coll_by_str_only@GOTPAGE
Lloh17:
	ldr	x8, [x8, _list_coll_by_str_only@GOTPAGEOFF]
Lloh18:
	ldr	x3, [x8]
LBB0_10:
	mov	w2, #8
	bl	_DEFAULT_SORT_FUNC_RADIXSORT
LBB0_11:
	ldr	w8, [x21]
	cbz	w8, LBB0_19
; %bb.12:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_17
; %bb.13:
	mov	x20, #0
	sxtw	x9, w8
	mov	x21, #-1
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x20, x20, #1
	sxtw	x9, w8
	sub	x21, x21, #1
	cmp	x20, x9
	b.hs	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	add	x22, x9, x21
	ldr	x9, [x19, #56]
	ldr	x0, [x9, x22, lsl #3]
	cbz	x0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x19, #32]
	str	x8, [x0, #40]
	ldr	x8, [x19]
	str	x8, [x0]
	ldr	x8, [x0, #16]
	ldr	x9, [x19]
	add	x8, x9, x8
	str	x8, [x19]
	bl	_push_ls
	ldr	x8, [x19, #56]
	str	xzr, [x8, x22, lsl #3]
	ldr	w8, [x19, #8]
	b	LBB0_14
LBB0_17:
	ldr	x8, [x19, #32]
	ldr	x9, [x19]
	add	x0, x9, x8
	ldr	w1, [x19, #48]
	ldr	w8, [x19, #24]
	lsl	w2, w8, #3
	bl	_memcpy
	ldr	w0, [x19, #24]
	bl	_sort_left_dec
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_run_sort_cycle_st
LBB0_19:
	ldr	x8, [x19, #32]
	ldr	x9, [x19]
	add	x0, x9, x8
	ldr	w1, [x19, #48]
	ldr	w8, [x19, #24]
	lsl	w2, w8, #3
	bl	_memcpy
	ldrsw	x0, [x19, #24]
	ldr	x8, [x19]
	add	x8, x8, x0
	str	x8, [x19]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_sort_left_dec
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_18
; %bb.20:
	mov	x20, #0
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.hs	LBB0_18
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #56]
	ldr	x0, [x9, x20, lsl #3]
	cbz	x0, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x19, #32]
	str	x8, [x0, #40]
	ldr	x8, [x19]
	str	x8, [x0]
	ldr	x8, [x0, #16]
	ldr	x9, [x19]
	add	x8, x9, x8
	str	x8, [x19]
	bl	_push_ls
	ldr	x8, [x19, #56]
	str	xzr, [x8, x20, lsl #3]
	ldr	w8, [x19, #8]
	b	LBB0_21
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_sort_opts_vals,24,3            ; @sort_opts_vals
	.comm	_keys,8,3                       ; @keys
	.comm	_default_sort_mods,8,3          ; @default_sort_mods
	.comm	_reverse_sort,4,2               ; @reverse_sort
	.comm	_slsz,4,2                       ; @slsz
	.comm	_keys_num,4,2                   ; @keys_num
	.comm	_list_coll,8,3                  ; @list_coll
	.comm	_list_coll_by_str_only,8,3      ; @list_coll_by_str_only
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_PTHREAD_DETACHED,4,2           ; @PTHREAD_DETACHED
	.comm	_errno,8,3                      ; @errno
	.comm	_mtsem,4,2                      ; @mtsem
	.comm	_nthreads,4,2                   ; @nthreads
	.comm	_sort_thread,4,2                ; @sort_thread
	.no_dead_strip	_run_top_sort_level
.subsections_via_symbols
