	.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	$296, %rsp                      ## imm = 0x128
	.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, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, -320(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_2:
	leaq	-304(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	-320(%rbp), %rdx                ## 8-byte Reload
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rbx, -328(%rbp)                ## 8-byte Spill
	movq	%r14, -336(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -312(%rbp)                ## 8-byte Spill
	leaq	L_.str.2(%rip), %r14
	leaq	-304(%rbp), %r12
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_estrdup
	movl	%ebx, %ecx
	incl	%ebx
	movq	-312(%rbp), %rdx                ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
	movq	%r15, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	-320(%rbp), %rdx                ## 8-byte Reload
	callq	_fgets
	movq	%r15, %r12
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %r15
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_strcspn
	movb	$0, -304(%rbp,%rax)
	cmpl	%r13d, %ebx
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %r12d
	addl	$16, %r12d
	leal	128(,%r13,8), %esi
	movq	-312(%rbp), %rdi                ## 8-byte Reload
	callq	_erealloc
	movq	%rax, -312(%rbp)                ## 8-byte Spill
	movl	%r12d, %r13d
	jmp	LBB0_6
LBB0_7:
	movq	-328(%rbp), %rax                ## 8-byte Reload
	movq	-312(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, (%rax)
	testl	%ebx, %ebx
	movq	-336(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_9
	jmp	LBB0_8
LBB0_11:
	movq	$0, (%rbx)
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_errx
	xorl	%ebx, %ebx
LBB0_9:
	movq	-320(%rbp), %rdi                ## 8-byte Reload
	callq	_fclose
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.10:
	movl	%ebx, %eax
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	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"

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, #368
	.cfi_def_cfa_offset 368
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #288]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	mov	x19, 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, x20
	bl	_err
LBB0_2:
	add	x25, sp, #8
	add	x0, sp, #8
	mov	w1, #256
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_8
; %bb.3:
	mov	x22, #0
	mov	w27, #0
	mov	w26, #0
Lloh7:
	adrp	x23, l_.str.2@PAGE
Lloh8:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	bl	_estrdup
	add	w24, w27, #1
	str	x0, [x22, w27, uxtw #3]
	add	x0, sp, #8
	mov	w1, #256
	mov	x2, x19
	bl	_fgets
	mov	x27, x24
	cbz	x0, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x23
	bl	_strcspn
	strb	wzr, [x25, x0]
	cmp	w27, w26
	b.lo	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w26, w26, #16
	lsl	w1, w26, #3
	mov	x0, x22
	bl	_erealloc
	mov	x22, x0
	b	LBB0_4
LBB0_7:
	str	x22, [x21]
	cbnz	w24, LBB0_10
	b	LBB0_9
LBB0_8:
	str	xzr, [x21]
LBB0_9:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_errx
	mov	w24, #0
LBB0_10:
	mov	x0, x19
	bl	_fclose
	ldur	x8, [x29, #-88]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x24
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #304]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.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"

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

	.no_dead_strip	_read_words
.subsections_via_symbols
