	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dowordfile                     ## -- Begin function dowordfile
	.p2align	4, 0x90
_dowordfile:                            ## @dowordfile
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_nrandwords@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	leaq	-112(%rbp), %rdi
	movl	$64, %esi
	movq	%rax, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	-112(%rbp), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	incq	(%r12)
	movq	%rbx, %rdi
	movl	$64, %esi
	movq	%r13, %rdx
	callq	_fgets
	testq	%rax, %rax
	jne	LBB0_4
LBB0_5:
	movq	%r13, %rdi
	callq	_ferror
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_14
## %bb.6:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_fseek
	testq	%rax, %rax
	jne	LBB0_14
## %bb.7:
	movq	(%r12), %rdi
	movl	$8, %esi
	callq	_calloc
	movq	_randwords@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	(%r12), %r15
	movq	$0, (%r12)
	leaq	-112(%rbp), %r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rcx
	movq	%rcx, (%r12)
	cmpq	%r15, %rcx
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$64, %esi
	movq	%r13, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcspn
	movb	$0, -112(%rbp,%rax)
	movq	%r14, %rdi
	callq	_strdup
	movq	(%rbx), %rdx
	movq	(%r12), %rcx
	movq	%rax, (%rdx,%rcx,8)
	movq	(%rbx), %rax
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_err
	movq	(%r12), %rcx
	jmp	LBB0_12
LBB0_1:
	movl	$-1, %r14d
	jmp	LBB0_15
LBB0_13:
	movq	%r15, (%r12)
	xorl	%r14d, %r14d
LBB0_14:
	movq	%r13, %rdi
	callq	_fclose
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_nrandwords,8,3                 ## @nrandwords
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_randwords,8,3                  ## @randwords
L_.str.1:                               ## @.str.1
	.asciz	"\r\n"

L_.str.2:                               ## @.str.2
	.asciz	"reading words file"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dowordfile                     ; -- Begin function dowordfile
	.p2align	2
_dowordfile:                            ; @dowordfile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x22, _nrandwords@GOTPAGE
Lloh6:
	ldr	x22, [x22, _nrandwords@GOTPAGEOFF]
	str	xzr, [x22]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	add	x8, x8, #1
	str	x8, [x22]
	b	LBB0_2
LBB0_4:
	mov	x0, x19
	bl	_ferror
	cbnz	x0, LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_fseek
	cbz	x0, LBB0_11
LBB0_6:
	mov	w20, #-1
LBB0_7:
	mov	x0, x19
	bl	_fclose
	b	LBB0_9
LBB0_8:
	mov	w20, #-1
LBB0_9:
	ldr	x8, [sp, #72]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.10:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_11:
	ldr	x0, [x22]
	mov	w1, #8
	bl	_calloc
Lloh13:
	adrp	x23, _randwords@GOTPAGE
Lloh14:
	ldr	x23, [x23, _randwords@GOTPAGEOFF]
	str	x0, [x23]
	cbz	x0, LBB0_6
; %bb.12:
	ldr	x24, [x22]
	str	xzr, [x22]
	add	x25, sp, #8
Lloh15:
	adrp	x20, l_.str.1@PAGE
Lloh16:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh17:
	adrp	x21, l_.str.2@PAGE
Lloh18:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x8, x8, #1
	str	x8, [x22]
	cmp	x8, x24
	b.eq	LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x0, sp, #8
	mov	x1, x20
	bl	_strcspn
	strb	wzr, [x25, x0]
	add	x0, sp, #8
	bl	_strdup
	ldr	x9, [x23]
	ldr	x8, [x22]
	lsl	x10, x8, #3
	str	x0, [x9, x10]
	ldr	x9, [x23]
	ldr	x9, [x9, x10]
	cbnz	x9, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w0, #1
	mov	x1, x21
	bl	_err
	ldr	x8, [x22]
	b	LBB0_13
LBB0_17:
	mov	w20, #0
	str	x24, [x22]
	b	LBB0_7
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_nrandwords,8,3                 ; @nrandwords
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_randwords,8,3                  ; @randwords
l_.str.1:                               ; @.str.1
	.asciz	"\r\n"

l_.str.2:                               ; @.str.2
	.asciz	"reading words file"

.subsections_via_symbols
