	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_words
_read_words:                            ## @read_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
	subq	$312, %rsp                      ## imm = 0x138
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r15, %rdx
	callq	_err
LBB0_2:
	leaq	-304(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r13, %rdx
	callq	_fgets
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r15, -336(%rbp)                ## 8-byte Spill
	movq	%rbx, -344(%rbp)                ## 8-byte Spill
	leaq	-304(%rbp), %r15
	xorl	%eax, %eax
	movq	%rax, -320(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -312(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r13, -352(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	1(%r13), %rdx
	movq	%r12, %rdi
	movq	%rbx, %r15
	movq	%rbx, %rsi
	callq	_memmove
	movl	%r14d, %eax
	incl	%r14d
	movq	-312(%rbp), %rcx                ## 8-byte Reload
	movq	%r12, (%rcx,%rax,8)
	addq	%r13, %r12
	incq	%r12
	movq	%rbx, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	-352(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdx
	callq	_fgets
	testq	%rax, %rax
	movq	-328(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcspn
	movb	$0, -304(%rbp,%rax)
	cmpl	%ebx, %r14d
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, -328(%rbp)                ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	leal	16(%rbx), %edi
	addl	%ebx, %ebx
	movl	%ebx, %esi
	callq	_max
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -328(%rbp)                ## 8-byte Spill
	leal	(,%rax,8), %esi
	movq	-312(%rbp), %rdi                ## 8-byte Reload
	callq	_erealloc
	movq	%rax, -312(%rbp)                ## 8-byte Spill
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rbx
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %r13
	addq	%r12, %rax
	incq	%rax
	cmpq	-320(%rbp), %rax                ## 8-byte Folded Reload
	jb	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_WORDBUF_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_emalloc
	movq	%rax, %r12
	movslq	(%r15), %rax
	addq	%r12, %rax
	movq	%rax, -320(%rbp)                ## 8-byte Spill
	jmp	LBB0_10
LBB0_11:
	testl	%r14d, %r14d
	movq	-344(%rbp), %rbx                ## 8-byte Reload
	movq	-336(%rbp), %r15                ## 8-byte Reload
	jne	LBB0_13
	jmp	LBB0_12
LBB0_3:
	xorl	%eax, %eax
	movq	%rax, -312(%rbp)                ## 8-byte Spill
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movq	%r15, %rdx
	callq	_errx
	xorl	%r14d, %r14d
LBB0_13:
	movq	-312(%rbp), %rax                ## 8-byte Reload
	movq	%rax, (%rbx)
	movq	%r13, %rdi
	callq	_fclose
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%r14d, %eax
	addq	$312, %rsp                      ## imm = 0x138
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"cannot open %s"

L_.str.2:                               ## @.str.2
	.asciz	"\r\n"

	.comm	_WORDBUF_SIZE,4,2               ## @WORDBUF_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"%s is an empty file, no words to try"

	.no_dead_strip	_read_words
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_words
_read_words:                            ; @read_words
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #304]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_err
LBB0_2:
	add	x0, sp, #16
	mov	w1, #256
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_10
; %bb.3:
	stp	x21, x19, [sp]                  ; 16-byte Folded Spill
	mov	w28, #0
	mov	x21, #0
	mov	x23, #0
	mov	x22, #0
	mov	w25, #0
Lloh7:
	adrp	x19, _WORDBUF_SIZE@GOTPAGE
Lloh8:
	ldr	x19, [x19, _WORDBUF_SIZE@GOTPAGEOFF]
Lloh9:
	adrp	x24, l_.str.2@PAGE
Lloh10:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x26, #1
	add	x1, sp, #16
	mov	x0, x23
	mov	x2, x27
	bl	_memmove
	add	w26, w28, #1
	str	x23, [x22, w28, uxtw #3]
	add	x23, x23, x27
	add	x0, sp, #16
	mov	w1, #256
	mov	x2, x20
	bl	_fgets
	mov	x28, x26
	cbz	x0, LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #16
	mov	x1, x24
	bl	_strcspn
	add	x8, sp, #16
	strb	wzr, [x8, x0]
	cmp	w28, w25
	b.lo	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w0, w25, #16
	lsl	w1, w25, #1
	bl	_max
	mov	x25, x0
	lsl	w1, w0, #3
	mov	x0, x22
	bl	_erealloc
	mov	x22, x0
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #16
	bl	_strlen
	mov	x26, x0
	add	x8, x23, x0
	add	x8, x8, #1
	cmp	x8, x21
	b.lo	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19]
	bl	_emalloc
	mov	x23, x0
	ldrsw	x8, [x19]
	add	x21, x0, x8
	b	LBB0_4
LBB0_9:
	ldp	x21, x19, [sp]                  ; 16-byte Folded Reload
	cbnz	w26, LBB0_12
	b	LBB0_11
LBB0_10:
	mov	x22, #0
LBB0_11:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_errx
	mov	w26, #0
LBB0_12:
	str	x22, [x19]
	mov	x0, x20
	bl	_fclose
	ldur	x8, [x29, #-96]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x26
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #320]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"cannot open %s"

l_.str.2:                               ; @.str.2
	.asciz	"\r\n"

	.comm	_WORDBUF_SIZE,4,2               ; @WORDBUF_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"%s is an empty file, no words to try"

	.no_dead_strip	_read_words
.subsections_via_symbols
