	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	%edi, %r14d
	movq	(%rsi), %rax
	movq	_progname@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	leaq	L_.str(%rip), %rbx
	movq	_verbose@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, (%r12)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_getopt
	cmpl	$118, %eax
	je	LBB0_18
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$104, %eax
	jne	LBB0_1
	jmp	LBB0_4
LBB0_6:
	movq	_optind@GOTPCREL(%rip), %rbx
	cmpl	%r14d, (%rbx)
	jge	LBB0_4
## %bb.7:
	xorl	%eax, %eax
	callq	_init_is_letter
	movq	_Buff@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	movq	_wptr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 16(%rcx)
	movq	_rptr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 16(%rcx)
	movl	(%rbx), %eax
	cmpl	%r14d, %eax
	jge	LBB0_12
## %bb.8:
	movq	_tot_users@GOTPCREL(%rip), %r15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_close
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rbx), %eax
	incl	%eax
	movl	%eax, (%rbx)
	cmpl	%r14d, %eax
	jge	LBB0_12
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	cltq
	movq	(%r13,%rax,8), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movq	_fd@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	js	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %edi
	callq	_assert
	movq	_Buff@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_BUFFSIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	_wptr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rcx, (%rax)
	movq	_rptr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rcx, (%rax)
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%edi, %edi
	callq	_load_entry
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_16 Depth=2
	incl	(%r15)
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	_process_text
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_progname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movslq	(%rbx), %rax
	movq	(%r13,%rax,8), %rcx
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_11
LBB0_4:
	xorl	%eax, %eax
	callq	_usage
	movl	$2, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%eax, %eax
	callq	_flushout
	cmpl	$0, (%r12)
	movl	$0, %ebx
	je	LBB0_5
## %bb.13:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_output_stats
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_progname,8,3                   ## @progname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hv"

	.comm	_verbose,4,2                    ## @verbose
	.comm	_optind,4,2                     ## @optind
	.comm	_Buff,8,3                       ## @Buff
	.comm	_wptr,8,3                       ## @wptr
	.comm	_rptr,8,3                       ## @rptr
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_fd,8,3                         ## @fd
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"%s: cannot open() %s: %m\n"

	.comm	_BUFFSIZE,8,3                   ## @BUFFSIZE
	.comm	_tot_users,4,2                  ## @tot_users
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _progname@GOTPAGE
Lloh1:
	ldr	x9, [x9, _progname@GOTPAGEOFF]
Lloh2:
	str	x8, [x9]
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
Lloh5:
	adrp	x22, _verbose@GOTPAGE
Lloh6:
	ldr	x22, [x22, _verbose@GOTPAGEOFF]
	mov	w23, #1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w23, [x22]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	cmp	w0, #118
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #104
	b.ne	LBB0_2
	b	LBB0_15
LBB0_5:
Lloh7:
	adrp	x24, _optind@GOTPAGE
Lloh8:
	ldr	x24, [x24, _optind@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w20
	b.ge	LBB0_15
; %bb.6:
	bl	_init_is_letter
Lloh9:
	adrp	x8, _Buff@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Buff@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
Lloh12:
	adrp	x26, _wptr@GOTPAGE
Lloh13:
	ldr	x26, [x26, _wptr@GOTPAGEOFF]
	ldr	x9, [x26]
	str	x8, [x9, #16]
Lloh14:
	adrp	x27, _rptr@GOTPAGE
Lloh15:
	ldr	x27, [x27, _rptr@GOTPAGEOFF]
	ldr	x9, [x27]
	str	x8, [x9, #16]
	ldr	w8, [x24]
	cmp	w8, w20
	b.ge	LBB0_16
; %bb.7:
Lloh16:
	adrp	x28, _O_RDONLY@GOTPAGE
Lloh17:
	ldr	x28, [x28, _O_RDONLY@GOTPAGEOFF]
Lloh18:
	adrp	x21, _fd@GOTPAGE
Lloh19:
	ldr	x21, [x21, _fd@GOTPAGEOFF]
Lloh20:
	adrp	x23, _BUFFSIZE@GOTPAGE
Lloh21:
	ldr	x23, [x23, _BUFFSIZE@GOTPAGEOFF]
Lloh22:
	adrp	x25, _tot_users@GOTPAGE
Lloh23:
	ldr	x25, [x25, _tot_users@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_close
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
	cmp	w8, w20
	b.ge	LBB0_16
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x0, [x19, w8, sxtw #3]
	ldr	w1, [x28]
	bl	_open
	ldr	x8, [x21]
	str	x0, [x8]
	tbnz	x0, #63, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #1
	bl	_assert
Lloh24:
	adrp	x8, _Buff@GOTPAGE
Lloh25:
	ldr	x8, [x8, _Buff@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x23]
	add	x8, x9, x8
	ldr	x9, [x26]
	str	x8, [x9]
	ldr	x9, [x27]
	str	x8, [x9]
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w0, #0
	bl	_load_entry
	cbz	x0, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	w8, [x25]
	add	w8, w8, #1
	str	w8, [x25]
	ldp	w1, w8, [x0]
	mov	x0, x8
	bl	_process_text
	b	LBB0_12
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
Lloh27:
	adrp	x8, _stderr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x8, _progname@GOTPAGE
Lloh31:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh32:
	ldr	x2, [x8]
	ldrsw	x8, [x24]
	ldr	x3, [x19, x8, lsl #3]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	b	LBB0_9
LBB0_15:
	bl	_usage
	mov	w0, #2
	b	LBB0_19
LBB0_16:
	bl	_flushout
	ldr	w8, [x22]
	cbz	w8, LBB0_18
; %bb.17:
	bl	_output_stats
LBB0_18:
	mov	w0, #0
LBB0_19:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_progname,8,3                   ; @progname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hv"

	.comm	_verbose,4,2                    ; @verbose
	.comm	_optind,4,2                     ; @optind
	.comm	_Buff,8,3                       ; @Buff
	.comm	_wptr,8,3                       ; @wptr
	.comm	_rptr,8,3                       ; @rptr
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_fd,8,3                         ; @fd
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"%s: cannot open() %s: %m\n"

	.comm	_BUFFSIZE,8,3                   ; @BUFFSIZE
	.comm	_tot_users,4,2                  ; @tot_users
.subsections_via_symbols
