	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush_words
_flush_words:                           ## @flush_words
	.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	_Tc@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_10
## %bb.1:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_3
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_Tw@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_TS@GOTPCREL(%rip), %rax
	subq	(%rax), %rcx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	(%rbx), %edx
LBB0_3:
	decl	%edx
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	movl	%edx, %esi
	callq	_asort
	cmpl	$0, (%rbx)
	jle	LBB0_9
## %bb.4:
	movq	_TL@GOTPCREL(%rip), %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	leal	(%r15,%r14), %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leal	6(%rbx), %edi
	callq	_write_alloc
	movl	%r14d, (%rax)
	movl	%ebx, 4(%rax)
	movl	8(%rax), %edi
	movq	(%r12), %rax
	movl	(%rax,%r15,4), %esi
	incl	%ebx
	movl	%ebx, %edx
	callq	_memcpy
	movq	_Tc@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jle	LBB0_9
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	(%r12), %rax
	movslq	%r13d, %r15
	movl	(%rax,%r15,4), %edi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	1(%r15), %rbx
	movl	$1, %ecx
	movq	_Tc@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, %r14d
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	(%r12), %rax
	movl	(%rax,%r15,4), %edi
	movl	(%rax,%rbx,4), %esi
	callq	_strcmp
	leal	1(%r14), %ecx
	incq	%rbx
	testl	%eax, %eax
	je	LBB0_6
	jmp	LBB0_8
LBB0_9:
	movl	$4, %edi
	callq	_write_alloc
	movl	$-1, (%rax)
	movq	_Tc@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_TS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_Tw@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Tc,4,2                         ## @Tc
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sorting words: %d words, %ld chars\n"

	.comm	_Tw,8,3                         ## @Tw
	.comm	_TS,8,3                         ## @TS
	.comm	_TL,8,3                         ## @TL
	.no_dead_strip	_flush_words
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush_words
_flush_words:                           ; @flush_words
	.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
Lloh0:
	adrp	x20, _Tc@GOTPAGE
Lloh1:
	ldr	x20, [x20, _Tc@GOTPAGEOFF]
	ldr	w2, [x20]
	cbz	w2, LBB0_10
; %bb.1:
Lloh2:
	adrp	x8, _verbosity@GOTPAGE
Lloh3:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x21, _Tw@GOTPAGE
Lloh6:
	ldr	x21, [x21, _Tw@GOTPAGEOFF]
Lloh7:
	adrp	x22, _TS@GOTPAGE
Lloh8:
	ldr	x22, [x22, _TS@GOTPAGEOFF]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [x21]
	ldr	x9, [x22]
	sub	x3, x8, x9
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w2, [x20]
LBB0_3:
	sub	w1, w2, #1
	mov	w0, #0
	bl	_asort
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	w25, #0
Lloh14:
	adrp	x23, _TL@GOTPAGE
Lloh15:
	ldr	x23, [x23, _TL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w25, w24, w26
	add	w0, w19, #6
	bl	_write_alloc
	stp	w26, w19, [x0]
	ldr	w0, [x0, #8]
	ldr	x8, [x23]
	ldr	w1, [x8, x24, lsl #2]
	add	w2, w19, #1
	bl	_memcpy
	ldr	w8, [x20]
	cmp	w8, w25
	b.le	LBB0_9
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x23]
	sxtw	x24, w25
	ldr	w0, [x8, w25, sxtw #2]
	bl	_strlen
	mov	x19, x0
	add	x25, x24, #1
	mov	w8, #1
LBB0_7:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x26, x8
	ldrsw	x8, [x20]
	cmp	x25, x8
	b.ge	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x23]
	ldr	w0, [x8, x24, lsl #2]
	ldr	w1, [x8, x25, lsl #2]
	bl	_strcmp
	add	w8, w26, #1
	add	x25, x25, #1
	cbz	w0, LBB0_7
	b	LBB0_5
LBB0_9:
	mov	w0, #4
	bl	_write_alloc
	mov	w8, #-1
	str	w8, [x0]
	str	wzr, [x20]
	ldr	x8, [x22]
	str	x8, [x21]
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_Tc,4,2                         ; @Tc
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sorting words: %d words, %ld chars\n"

	.comm	_Tw,8,3                         ; @Tw
	.comm	_TS,8,3                         ; @TS
	.comm	_TL,8,3                         ; @TL
	.no_dead_strip	_flush_words
.subsections_via_symbols
