	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd__mergesort                 ## -- Begin function cmd__mergesort
	.p2align	4, 0x90
_cmd__mergesort:                        ## @cmd__mergesort
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_stdin@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-48(%rbp), %rdi
	movl	$10, %edx
	callq	_strbuf_getwholeline
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	movq	_get_next@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_set_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_compare_strings@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_llist_mergesort
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_printf
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_8
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	-48(%rbp), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 8(%r13)
	movq	%r13, %r14
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	$10, %edx
	callq	_strbuf_getwholeline
	movq	%r13, %rbx
	testq	%rax, %rax
	jne	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$16, %edi
	callq	_xmalloc
	movq	%rax, %r13
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	movq	%rax, (%r13)
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	movq	%rax, 8(%r13)
	movq	%r13, 8(%rbx)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_stdin,4,2                      ## @stdin
	.comm	_get_next,4,2                   ## @get_next
	.comm	_set_next,4,2                   ## @set_next
	.comm	_compare_strings,4,2            ## @compare_strings
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd__mergesort                 ; -- Begin function cmd__mergesort
	.p2align	2
_cmd__mergesort:                        ; @cmd__mergesort
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x21, _stdin@GOTPAGE
Lloh4:
	ldr	x21, [x21, _stdin@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x0, sp, #8
	mov	w2, #10
	bl	_strbuf_getwholeline
	mov	x19, #0
	cbz	x0, LBB0_5
LBB0_1:
Lloh5:
	adrp	x8, _get_next@GOTPAGE
Lloh6:
	ldr	x8, [x8, _get_next@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _set_next@GOTPAGE
Lloh9:
	ldr	x8, [x8, _set_next@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _compare_strings@GOTPAGE
Lloh12:
	ldr	x8, [x8, _compare_strings@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_llist_mergesort
	cbz	x0, LBB0_4
; %bb.2:
	mov	x19, x0
Lloh14:
	adrp	x20, l_.str@PAGE
Lloh15:
	add	x20, x20, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x19]
	mov	x0, x20
	bl	_printf
	ldr	x19, [x19, #8]
	cbnz	x19, LBB0_3
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	mov	x22, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	str	xzr, [x20, #8]
	mov	x19, x20
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x21]
	add	x0, sp, #8
	mov	w2, #10
	bl	_strbuf_getwholeline
	mov	x22, x20
	cbnz	x0, LBB0_1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #16
	bl	_xmalloc
	mov	x20, x0
	add	x0, sp, #8
	mov	x1, #0
	bl	_strbuf_detach
	str	x0, [x20]
	cbz	x22, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x22, #8]
	str	x8, [x20, #8]
	str	x20, [x22, #8]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_stdin,4,2                      ; @stdin
	.comm	_get_next,4,2                   ; @get_next
	.comm	_set_next,4,2                   ; @set_next
	.comm	_compare_strings,4,2            ; @compare_strings
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

.subsections_via_symbols
