	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sort_list_to_file              ## -- Begin function sort_list_to_file
	.p2align	4, 0x90
_sort_list_to_file:                     ## @sort_list_to_file
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_keys@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, 20(%rax)
	jne	LBB0_9
## %bb.1:
	cmpl	$0, 16(%rax)
	jne	LBB0_9
## %bb.2:
	cmpl	$0, 12(%rax)
	jne	LBB0_9
## %bb.3:
	cmpl	$0, 8(%rax)
	jne	LBB0_9
## %bb.4:
	cmpl	$0, 4(%rax)
	jne	LBB0_9
## %bb.5:
	cmpl	$0, (%rax)
	je	LBB0_6
LBB0_9:
	movq	_sort_opts_vals@GOTPCREL(%rip), %rax
	cmpl	$128, (%rax)
	jne	LBB0_11
## %bb.10:
	movl	$9, %edi
	callq	_getstr
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%eax, %edx
	callq	_err
LBB0_11:
	movq	_sort_opts_vals@GOTPCREL(%rip), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_16
## %bb.12:
	movl	(%rbx), %edi
	cmpl	$128, %edi
	je	LBB0_19
## %bb.13:
	cmpl	$130, %edi
	je	LBB0_19
## %bb.14:
	movl	$130, %eax
	cmpl	$132, %edi
	je	LBB0_18
## %bb.15:
	movl	$10, %edi
	callq	_getstr
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_16:
	movl	(%rbx), %edi
	cmpl	$132, %edi
	jne	LBB0_19
## %bb.17:
	movq	_DEFAULT_SORT_ALGORITHM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
	movl	%eax, (%rbx)
	movl	%eax, %edi
LBB0_19:
	movq	_debug_sort@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.20:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_get_sort_method_name
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
	movl	(%rbx), %edi
LBB0_21:
	addl	$-128, %edi
	cmpl	$3, %edi
	ja	LBB0_28
## %bb.22:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_23:
	movl	(%r15), %esi
	movl	4(%r15), %edi
	callq	_rxsort
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sort_list_dump                 ## TAILCALL
LBB0_28:
	movq	_DEFAULT_SORT_FUNC@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_27:
	movq	_sort_qsort@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_24:
	movq	_mergesort@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_26:
	movq	_heapsort@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt_sort                        ## TAILCALL
LBB0_6:
	movq	_sort_opts_vals@GOTPCREL(%rip), %rax
	cmpl	$132, (%rax)
	jne	LBB0_11
## %bb.7:
	movq	_byte_sort@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_11
## %bb.8:
	movl	$128, (%rax)
	jmp	LBB0_11
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
LJTI0_0:
	.long	L0_0_set_23
	.long	L0_0_set_27
	.long	L0_0_set_24
	.long	L0_0_set_26
	.end_data_region
                                        ## -- End function
	.comm	_keys,8,3                       ## @keys
	.comm	_sort_opts_vals,16,3            ## @sort_opts_vals
	.comm	_byte_sort,8,3                  ## @byte_sort
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_DEFAULT_SORT_ALGORITHM,4,2     ## @DEFAULT_SORT_ALGORITHM
	.comm	_debug_sort,8,3                 ## @debug_sort
L_.str.1:                               ## @.str.1
	.asciz	"sort_method=%s\n"

	.comm	_mergesort,4,2                  ## @mergesort
	.comm	_heapsort,4,2                   ## @heapsort
	.comm	_sort_qsort,4,2                 ## @sort_qsort
	.comm	_DEFAULT_SORT_FUNC,4,2          ## @DEFAULT_SORT_FUNC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sort_list_to_file              ; -- Begin function sort_list_to_file
	.p2align	2
_sort_list_to_file:                     ; @sort_list_to_file
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _keys@GOTPAGE
Lloh1:
	ldr	x8, [x8, _keys@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8, #20]
Lloh3:
	adrp	x21, _sort_opts_vals@GOTPAGE
Lloh4:
	ldr	x21, [x21, _sort_opts_vals@GOTPAGEOFF]
	cbnz	w9, LBB0_6
; %bb.1:
	ldr	w9, [x8, #16]
	cbnz	w9, LBB0_6
; %bb.2:
	ldr	w9, [x8, #12]
	cbnz	w9, LBB0_6
; %bb.3:
	ldr	w9, [x8, #8]
	cbnz	w9, LBB0_6
; %bb.4:
	ldr	w9, [x8, #4]
	cbnz	w9, LBB0_6
; %bb.5:
	ldr	w8, [x8]
	cbz	w8, LBB0_27
LBB0_6:
	ldr	w8, [x21]
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #9
	bl	_getstr
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_err
LBB0_8:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_14
; %bb.9:
	ldr	w0, [x21]
	cmp	w0, #128
	b.eq	LBB0_17
; %bb.10:
	cmp	w0, #130
	b.eq	LBB0_17
; %bb.11:
	cmp	w0, #132
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #130
	b	LBB0_16
LBB0_13:
	mov	w0, #10
	bl	_getstr
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_errx
LBB0_14:
	ldr	w0, [x21]
	cmp	w0, #132
	b.ne	LBB0_17
; %bb.15:
Lloh9:
	adrp	x8, _DEFAULT_SORT_ALGORITHM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEFAULT_SORT_ALGORITHM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_16:
	str	w0, [x21]
LBB0_17:
Lloh12:
	adrp	x8, _debug_sort@GOTPAGE
Lloh13:
	ldr	x8, [x8, _debug_sort@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.18:
	bl	_get_sort_method_name
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	w0, [x21]
LBB0_19:
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_22
; %bb.20:
Lloh17:
	adrp	x9, lJTI0_0@PAGE
Lloh18:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_21
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_21:
	ldp	w1, w0, [x20]
	bl	_rxsort
	mov	x0, x20
	mov	x1, x19
	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	_sort_list_dump
LBB0_22:
Lloh19:
	adrp	x8, _DEFAULT_SORT_FUNC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DEFAULT_SORT_FUNC@GOTPAGEOFF]
	b	LBB0_26
LBB0_23:
Lloh21:
	adrp	x8, _sort_qsort@GOTPAGE
Lloh22:
	ldr	x8, [x8, _sort_qsort@GOTPAGEOFF]
	b	LBB0_26
LBB0_24:
Lloh23:
	adrp	x8, _mergesort@GOTPAGE
Lloh24:
	ldr	x8, [x8, _mergesort@GOTPAGEOFF]
	b	LBB0_26
LBB0_25:
Lloh25:
	adrp	x8, _heapsort@GOTPAGE
Lloh26:
	ldr	x8, [x8, _heapsort@GOTPAGEOFF]
LBB0_26:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	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	_mt_sort
LBB0_27:
	ldr	w8, [x21]
Lloh27:
	adrp	x9, _byte_sort@GOTPAGE
Lloh28:
	ldr	x9, [x9, _byte_sort@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	w8, #132
	ccmp	x9, #0, #4, eq
	b.eq	LBB0_8
; %bb.28:
	mov	w8, #128
	str	w8, [x21]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_21-LBB0_21)>>2
	.byte	(LBB0_23-LBB0_21)>>2
	.byte	(LBB0_24-LBB0_21)>>2
	.byte	(LBB0_25-LBB0_21)>>2
                                        ; -- End function
	.comm	_keys,8,3                       ; @keys
	.comm	_sort_opts_vals,16,3            ; @sort_opts_vals
	.comm	_byte_sort,8,3                  ; @byte_sort
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_DEFAULT_SORT_ALGORITHM,4,2     ; @DEFAULT_SORT_ALGORITHM
	.comm	_debug_sort,8,3                 ; @debug_sort
l_.str.1:                               ; @.str.1
	.asciz	"sort_method=%s\n"

	.comm	_mergesort,4,2                  ; @mergesort
	.comm	_heapsort,4,2                   ; @heapsort
	.comm	_sort_qsort,4,2                 ; @sort_qsort
	.comm	_DEFAULT_SORT_FUNC,4,2          ; @DEFAULT_SORT_FUNC
.subsections_via_symbols
