	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function output_word
_output_word:                           ## @output_word
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_output_in_paragraph@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	cmovneq	%rsi, %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%r8, %r12
	jle	LBB0_1
## %bb.2:
	leaq	(%rdx,%rcx), %rbx
	xorl	%r15d, %r15d
	movl	$1, %r14d
	movq	%rdx, %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r13), %edi
	callq	_wcwidth
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$2, %eax
	cmovll	%r14d, %eax
	addq	%rax, %r15
	incq	%r13
	cmpq	%rbx, %r13
	jb	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r15d, %r15d
LBB0_4:
	movq	_x@GOTPCREL(%rip), %rax
	movq	_pending_spaces@GOTPCREL(%rip), %rbx
	movq	(%rax), %r14
	addq	%r15, %r14
	addq	(%rbx), %r14
	testq	%r12, %r12
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	movq	_coalesce_spaces_P@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
LBB0_6:
	movq	_sentence_enders@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movsbl	-1(%r13,%rax), %esi
	callq	_wcschr
	cmpq	$1, %rax
	movl	$2, %r12d
	sbbq	$0, %r12
LBB0_7:
	movq	_goal_length@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jbe	LBB0_8
## %bb.9:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_output_indent
LBB0_11:
	movq	_output_buffer_length@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_output_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	l_.str(%rip), %rdi
	callq	_wprintf
	movq	_x0@GOTPCREL(%rip), %rsi
	cmpq	$0, (%rsi)
	movq	_x@GOTPCREL(%rip), %rdx
	je	LBB0_14
## %bb.12:
	movq	_max_length@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r14
	ja	LBB0_15
## %bb.13:
	movq	_goal_length@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	subq	%rcx, %r14
	subq	(%rdx), %rcx
	cmpq	%rcx, %r14
	jbe	LBB0_14
LBB0_15:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	leaq	(%r15,%r12), %rcx
	cmpq	%rax, %rcx
	jbe	LBB0_19
## %bb.16:
	movq	%rsi, %r15
	movq	%rbx, %r14
	movl	$10, %edi
	callq	_putwchar
	testq	%r12, %r12
	je	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	callq	_output_indent
	jmp	LBB0_18
LBB0_8:
	movq	_output_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_output_buffer_length@GOTPCREL(%rip), %r14
	addq	(%r14), %rdi
	movq	(%rbx), %rdx
	movl	$32, %esi
	callq	_wmemset
	movq	(%rbx), %rdi
	movq	_x0@GOTPCREL(%rip), %rax
	addq	%rdi, (%rax)
	movq	_x@GOTPCREL(%rip), %rbx
	addq	%rdi, (%rbx)
	addq	(%r14), %rdi
	movq	%rdi, (%r14)
	movq	_output_buffer@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_wmemcpy
	movq	_x0@GOTPCREL(%rip), %rax
	addq	%r15, (%rax)
	addq	%r15, (%rbx)
	addq	%r13, (%r14)
	movq	_pending_spaces@GOTPCREL(%rip), %rax
	movq	%r12, (%rax)
	jmp	LBB0_21
LBB0_14:
	movq	%rsi, %r15
	movq	%rbx, %r14
	movl	(%rbx), %esi
	leaq	l_.str.1(%rip), %rdi
	leaq	l_.str.2(%rip), %rdx
	callq	_wprintf
LBB0_18:
	leaq	l_.str(%rip), %rdi
	movl	%r13d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_wprintf
	movq	$0, (%r15)
	xorl	%ecx, %ecx
	xorl	%r13d, %r13d
	movq	_output_in_paragraph@GOTPCREL(%rip), %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_output_buffer_length@GOTPCREL(%rip), %rdx
	movq	_x@GOTPCREL(%rip), %rsi
	jmp	LBB0_20
LBB0_19:
	movq	%rbx, %r14
	movq	_output_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_wmemcpy
	movq	%rbx, %rsi
	movq	%r15, (%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	%r15, %rax
	movq	_output_in_paragraph@GOTPCREL(%rip), %rbx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	_output_buffer_length@GOTPCREL(%rip), %rdx
LBB0_20:
	movq	%rax, (%rsi)
	movq	%rcx, (%r14)
	movq	%r13, (%rdx)
	movl	$10, %edi
	callq	_putwchar
	movl	$1, (%rbx)
LBB0_21:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_output_in_paragraph,4,2        ## @output_in_paragraph
	.comm	_x,8,3                          ## @x
	.comm	_pending_spaces,8,3             ## @pending_spaces
	.comm	_coalesce_spaces_P,8,3          ## @coalesce_spaces_P
	.comm	_sentence_enders,4,2            ## @sentence_enders
	.comm	_goal_length,8,3                ## @goal_length
	.comm	_output_buffer,8,3              ## @output_buffer
	.comm	_output_buffer_length,8,3       ## @output_buffer_length
	.comm	_x0,8,3                         ## @x0
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	37                              ## 0x25
	.long	46                              ## 0x2e
	.long	42                              ## 0x2a
	.long	108                             ## 0x6c
	.long	115                             ## 0x73
	.long	0                               ## 0x0

	.comm	_max_length,8,3                 ## @max_length
	.p2align	2                               ## @.str.1
l_.str.1:
	.long	37                              ## 0x25
	.long	42                              ## 0x2a
	.long	108                             ## 0x6c
	.long	115                             ## 0x73
	.long	0                               ## 0x0

	.p2align	2                               ## @.str.2
l_.str.2:
	.space	4

	.no_dead_strip	_output_word
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function output_word
_output_word:                           ; @output_word
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _output_in_paragraph@GOTPAGE
Lloh1:
	ldr	x8, [x8, _output_in_paragraph@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	csel	x23, x0, x1, eq
	cmp	x3, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x27, #0
	add	x24, x20, x19
	mov	x25, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x25], #1
	bl	_wcwidth
	cmp	w0, #1
	csinc	w8, w0, wzr, gt
	add	x27, x27, x8
	cmp	x25, x24
	b.lo	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x27, #0
LBB0_4:
Lloh3:
	adrp	x26, _x@GOTPAGE
Lloh4:
	ldr	x26, [x26, _x@GOTPAGEOFF]
	ldr	x8, [x26]
Lloh5:
	adrp	x25, _pending_spaces@GOTPAGE
Lloh6:
	ldr	x25, [x25, _pending_spaces@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x8, x8, x27
	add	x24, x8, x9
	cbz	x22, LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _coalesce_spaces_P@GOTPAGE
Lloh8:
	ldr	x8, [x8, _coalesce_spaces_P@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _sentence_enders@GOTPAGE
Lloh11:
	ldr	x8, [x8, _sentence_enders@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x8, x19, x20
	ldursb	w1, [x8, #-1]
	bl	_wcschr
	cmp	x0, #0
	mov	w8, #1
	cinc	x22, x8, ne
LBB0_7:
Lloh13:
	adrp	x28, _goal_length@GOTPAGE
Lloh14:
	ldr	x28, [x28, _goal_length@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x24, x8
	b.ls	LBB0_16
; %bb.8:
	cbz	x23, LBB0_10
; %bb.9:
	mov	x0, x23
	bl	_output_indent
LBB0_10:
Lloh15:
	adrp	x8, _output_buffer_length@GOTPAGE
Lloh16:
	ldr	x8, [x8, _output_buffer_length@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _output_buffer@GOTPAGE
Lloh19:
	ldr	x8, [x8, _output_buffer@GOTPAGEOFF]
Lloh20:
	ldr	x2, [x8]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wprintf
Lloh23:
	adrp	x12, _x0@GOTPAGE
Lloh24:
	ldr	x12, [x12, _x0@GOTPAGEOFF]
	ldr	x8, [x12]
	cbz	x8, LBB0_17
; %bb.11:
Lloh25:
	adrp	x8, _max_length@GOTPAGE
Lloh26:
	ldr	x8, [x8, _max_length@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x24, x8
	b.hi	LBB0_13
; %bb.12:
	ldr	x9, [x28]
	sub	x10, x24, x9
	ldr	x11, [x26]
	sub	x9, x9, x11
	cmp	x10, x9
	b.ls	LBB0_17
LBB0_13:
	add	x9, x27, x23
	cmp	x9, x8
	b.ls	LBB0_19
; %bb.14:
	mov	x24, x12
	mov	w0, #10
	bl	_putwchar
	cbz	x23, LBB0_18
; %bb.15:
	mov	x0, x23
	bl	_output_indent
	b	LBB0_18
LBB0_16:
Lloh28:
	adrp	x21, _output_buffer@GOTPAGE
Lloh29:
	ldr	x21, [x21, _output_buffer@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh30:
	adrp	x23, _output_buffer_length@GOTPAGE
Lloh31:
	ldr	x23, [x23, _output_buffer_length@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x8, x9
	ldr	x2, [x25]
	mov	w1, #32
	bl	_wmemset
Lloh32:
	adrp	x24, _x0@GOTPAGE
Lloh33:
	ldr	x24, [x24, _x0@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x9, [x24]
	add	x9, x9, x8
	str	x9, [x24]
	ldr	x9, [x26]
	add	x9, x9, x8
	str	x9, [x26]
	ldr	x9, [x23]
	ldr	x10, [x21]
	add	x8, x9, x8
	add	x0, x10, x8
	str	x8, [x23]
	mov	x1, x20
	mov	x2, x19
	bl	_wmemcpy
	ldr	x8, [x24]
	add	x8, x8, x27
	str	x8, [x24]
	ldr	x8, [x26]
	add	x8, x8, x27
	str	x8, [x26]
	ldr	x8, [x23]
	add	x8, x8, x19
	str	x8, [x23]
	str	x22, [x25]
	b	LBB0_21
LBB0_17:
	mov	x24, x12
	ldr	w1, [x25]
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh36:
	adrp	x2, l_.str.2@PAGE
Lloh37:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_wprintf
LBB0_18:
Lloh38:
	adrp	x0, l_.str@PAGE
Lloh39:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_wprintf
	mov	x22, #0
	mov	x19, #0
	str	xzr, [x24]
	b	LBB0_20
LBB0_19:
Lloh40:
	adrp	x8, _output_buffer@GOTPAGE
Lloh41:
	ldr	x8, [x8, _output_buffer@GOTPAGEOFF]
Lloh42:
	ldr	x0, [x8]
	mov	x1, x20
	mov	x2, x19
	mov	x20, x12
	bl	_wmemcpy
	str	x27, [x20]
	add	x21, x27, x21
LBB0_20:
Lloh43:
	adrp	x20, _output_in_paragraph@GOTPAGE
Lloh44:
	ldr	x20, [x20, _output_in_paragraph@GOTPAGEOFF]
Lloh45:
	adrp	x8, _output_buffer_length@GOTPAGE
Lloh46:
	ldr	x8, [x8, _output_buffer_length@GOTPAGEOFF]
	str	x21, [x26]
	str	x22, [x25]
Lloh47:
	str	x19, [x8]
	mov	w0, #10
	bl	_putwchar
	mov	w8, #1
Lloh48:
	str	w8, [x20]
LBB0_21:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotStr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_output_in_paragraph,4,2        ; @output_in_paragraph
	.comm	_x,8,3                          ; @x
	.comm	_pending_spaces,8,3             ; @pending_spaces
	.comm	_coalesce_spaces_P,8,3          ; @coalesce_spaces_P
	.comm	_sentence_enders,4,2            ; @sentence_enders
	.comm	_goal_length,8,3                ; @goal_length
	.comm	_output_buffer,8,3              ; @output_buffer
	.comm	_output_buffer_length,8,3       ; @output_buffer_length
	.comm	_x0,8,3                         ; @x0
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	37                              ; 0x25
	.long	46                              ; 0x2e
	.long	42                              ; 0x2a
	.long	108                             ; 0x6c
	.long	115                             ; 0x73
	.long	0                               ; 0x0

	.comm	_max_length,8,3                 ; @max_length
	.p2align	2                               ; @.str.1
l_.str.1:
	.long	37                              ; 0x25
	.long	42                              ; 0x2a
	.long	108                             ; 0x6c
	.long	115                             ; 0x73
	.long	0                               ; 0x0

	.p2align	2                               ; @.str.2
l_.str.2:
	.space	4

	.no_dead_strip	_output_word
.subsections_via_symbols
