	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function count_words
_count_words:                           ## @count_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_PC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	cmpl	$2, %r8d
	jl	LBB0_3
## %bb.4:
	movq	_P@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	%r8d, %eax
	movq	(%rdx), %rbx
	decq	%r8
	cmpl	$2, %eax
	jne	LBB0_6
## %bb.5:
	movl	$1, %r14d
	xorl	%ecx, %ecx
	movl	$1, %edi
	xorl	%esi, %esi
LBB0_14:
	testb	$1, %r8b
	je	LBB0_18
## %bb.15:
	cmpq	(%rdx,%rdi,8), %rbx
	jne	LBB0_16
## %bb.17:
	incl	%esi
	jmp	LBB0_18
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_21
LBB0_3:
	xorl	%esi, %esi
	movl	$1, %r14d
	xorl	%ecx, %ecx
	jmp	LBB0_18
LBB0_6:
	movq	%r8, %r9
	andq	$-2, %r9
	negq	%r9
	movl	$1, %r14d
	xorl	%ecx, %ecx
	movl	$1, %edi
	xorl	%esi, %esi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%esi
	movq	%rax, %rbx
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%r9,%rdi), %rax
	addq	$2, %rax
	addq	$2, %rdi
	cmpq	$1, %rax
	je	LBB0_14
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rdi,8), %rax
	cmpq	%rax, %rbx
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incl	%esi
	movq	%rbx, %rax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$1, %esi
	adcl	$0, %ecx
	incl	%r14d
	xorl	%esi, %esi
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rdx,%rdi,8), %rbx
	cmpq	%rbx, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$1, %esi
	adcl	$0, %ecx
	incl	%r14d
	xorl	%esi, %esi
	jmp	LBB0_13
LBB0_16:
	cmpl	$1, %esi
	adcl	$0, %ecx
	incl	%r14d
	xorl	%esi, %esi
LBB0_18:
	cmpl	$1, %esi
	adcl	$0, %ecx
	movq	_hapax_legomena@GOTPCREL(%rip), %rbx
	movl	%ecx, (%rbx)
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_20
## %bb.19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_fprintf
	movl	(%rbx), %ecx
LBB0_20:
	subl	%ecx, %r14d
LBB0_21:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PC,4,2                         ## @PC
	.comm	_P,8,3                          ## @P
	.comm	_hapax_legomena,4,2             ## @hapax_legomena
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d distinct words, %d hapax legomena\n"

	.no_dead_strip	_count_words
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function count_words
_count_words:                           ; @count_words
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _PC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PC@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x8]
	cbz	w12, LBB0_4
; %bb.1:
	cmp	w12, #2
	b.lt	LBB0_5
; %bb.2:
	mov	w8, #0
	mov	w9, #0
Lloh3:
	adrp	x10, _P@GOTPAGE
Lloh4:
	ldr	x10, [x10, _P@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x11, [x10], #8
	sub	x12, x12, #1
	mov	w19, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #0
	ldr	x13, [x10], #8
	cinc	w14, w8, eq
	cmp	x11, x13
	csel	x11, x11, x13, eq
	cinc	w19, w19, ne
	csinc	w9, wzr, w9, ne
	csel	w8, w8, w14, eq
	subs	x12, x12, #1
	b.ne	LBB0_3
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_9
LBB0_5:
	mov	w9, #0
	mov	w8, #0
	mov	w19, #1
LBB0_6:
	cmp	w9, #0
Lloh6:
	adrp	x20, _hapax_legomena@GOTPAGE
Lloh7:
	ldr	x20, [x20, _hapax_legomena@GOTPAGEOFF]
	cinc	w3, w8, eq
	str	w3, [x20]
Lloh8:
	adrp	x8, _verbosity@GOTPAGE
Lloh9:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	ldr	w3, [x20]
LBB0_8:
	sub	w0, w19, w3
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PC,4,2                         ; @PC
	.comm	_P,8,3                          ; @P
	.comm	_hapax_legomena,4,2             ; @hapax_legomena
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d distinct words, %d hapax legomena\n"

	.no_dead_strip	_count_words
.subsections_via_symbols
