	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnt
_cnt:                                   ## @cnt
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	%rsp, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXBSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	movq	_fa@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_fileargs_open
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_xo_warn
	movl	$1, %ebx
	jmp	LBB0_45
LBB0_3:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_4:
	movq	_doword@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	jne	LBB0_7
## %bb.5:
	movq	_domulti@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_47
## %bb.6:
	movq	_MB_CUR_MAX@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	je	LBB0_47
LBB0_7:
	leaq	-76(%rbp), %rdi
	xorl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	leaq	L_.str.3(%rip), %rcx
	cmovneq	%rax, %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movw	$1, %r14w
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movl	$0, -72(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_MAXBSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_read
	cmpl	$-1, %eax
	je	LBB0_42
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_27
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	jle	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movl	%r14d, %eax
	movq	%r13, %r12
	movq	%rbx, %r8
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_15 Depth=2
	movzbl	(%r13), %edi
	movl	%edi, -144(%rbp)
	movl	$1, %eax
	movq	%r13, %rdx
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=2
	xorl	%ecx, %ecx
	cmpl	$10, %edi
	setne	%cl
	addq	%rcx, %r12
	cmpl	$10, %edi
	movl	$0, %r13d
	cmovneq	%r12, %r13
	cmpq	%r8, %r12
	cmovleq	%r8, %r12
	xorl	%ecx, %ecx
	cmpl	$10, %edi
	sete	%cl
	movq	%r12, %rbx
	cmovneq	%r8, %rbx
	incq	%r14
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	subl	%eax, %r15d
	addq	%rax, %rdx
	movq	%rdx, -152(%rbp)                ## 8-byte Spill
	addq	%rcx, -112(%rbp)                ## 8-byte Folded Spill
	callq	_iswspace
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
	sete	%al
	cmpw	$0, -50(%rbp)                   ## 2-byte Folded Reload
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	addq	%rax, -120(%rbp)                ## 8-byte Folded Spill
	movl	%r14d, %eax
	movq	%r13, %r12
	movq	%rbx, %r8
	testl	%r15d, %r15d
	jle	LBB0_8
LBB0_15:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movw	%ax, -50(%rbp)                  ## 2-byte Spill
	movq	_siginfo@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movq	%r14, %rcx
	movq	%r8, %rbx
	callq	_show_cnt
	movq	%rbx, %r8
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	_domulti@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-152(%rbp), %r13                ## 8-byte Reload
	je	LBB0_13
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	_MB_CUR_MAX@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	je	LBB0_13
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	%r8, %rbx
	leaq	-144(%rbp), %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	leaq	-76(%rbp), %rcx
	callq	_mbrtowc
	cmpq	$-1, %rax
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=2
	cmpq	$-2, %rax
	je	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=2
	testq	%rax, %rax
	movl	$1, %ecx
	cmoveq	%rcx, %rax
	movl	-144(%rbp), %edi
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_15 Depth=2
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.4(%rip), %rdi
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	callq	_xo_warn
LBB0_24:                                ##   in Loop: Header=BB0_15 Depth=2
	leaq	-76(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movzbl	(%r13), %edi
	movl	%edi, -144(%rbp)
	movl	$1, %eax
	movl	$1, -72(%rbp)                   ## 4-byte Folded Spill
LBB0_25:                                ##   in Loop: Header=BB0_15 Depth=2
	movq	%r13, %rdx
	movq	%rbx, %r8
	jmp	LBB0_14
LBB0_26:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %r13
	movzwl	-50(%rbp), %eax                 ## 2-byte Folded Reload
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_27:
	xorl	%eax, %eax
	callq	_reset_siginfo
	movq	_domulti@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_32
## %bb.28:
	movq	_MB_CUR_MAX@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_32
## %bb.29:
	leaq	-76(%rbp), %rcx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_mbrtowc
	cmpq	$-1, %rax
	jne	LBB0_32
## %bb.30:
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_32
## %bb.31:
	leaq	L_.str.4(%rip), %rdi
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	callq	_xo_warn
LBB0_32:
	movq	_doline@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	je	LBB0_34
## %bb.33:
	movq	_tlinect@GOTPCREL(%rip), %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	addl	%ecx, (%rax)
LBB0_34:
	movq	_doword@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_36
## %bb.35:
	movq	_twordct@GOTPCREL(%rip), %rax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	addl	%ecx, (%rax)
LBB0_36:
	movq	_dochar@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_domulti@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	je	LBB0_38
## %bb.37:
	movq	_tcharct@GOTPCREL(%rip), %rax
	addl	%r9d, (%rax)
LBB0_38:
	movq	_dolongline@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_41
## %bb.39:
	movq	_tlongline@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jle	LBB0_41
## %bb.40:
	movq	%rbx, (%rax)
LBB0_41:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movq	%r9, %rcx
	movq	%rbx, %r8
	callq	_show_cnt
	movl	%r12d, %edi
	callq	_close
	xorl	%ebx, %ebx
	jmp	LBB0_45
LBB0_42:
	leaq	L_.str.2(%rip), %rdi
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	callq	_xo_warn
	movl	%r12d, %edi
LBB0_43:
	callq	_close
	movl	$1, %ebx
LBB0_44:
	movq	-104(%rbp), %r15                ## 8-byte Reload
LBB0_45:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_73
## %bb.46:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_47:
	movq	_doline@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_dolongline@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	jne	LBB0_52
## %bb.48:
	leaq	-144(%rbp), %rsi
	movl	%r12d, %edi
	callq	_fstat
	testq	%rax, %rax
	je	LBB0_50
## %bb.49:
	leaq	L_.str.1(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_xo_warn
	movl	%r12d, %edi
	callq	_close
	movl	$1, %ebx
	jmp	LBB0_45
LBB0_50:
	movl	-136(%rbp), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_52
## %bb.51:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_reset_siginfo
	movq	-144(%rbp), %r14
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_show_cnt
	movq	_tcharct@GOTPCREL(%rip), %rax
	addl	%r14d, (%rax)
	movl	%r12d, %edi
	callq	_close
	jmp	LBB0_45
LBB0_52:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_54
	.p2align	4, 0x90
LBB0_53:                                ##   in Loop: Header=BB0_54 Depth=1
	movslq	%ebx, %rax
	addq	%rax, %r14
	movq	_doline@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_dolongline@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	jne	LBB0_58
LBB0_54:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_63 Depth 2
	movq	_MAXBSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_read
	testl	%eax, %eax
	je	LBB0_65
## %bb.55:                              ##   in Loop: Header=BB0_54 Depth=1
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_64
## %bb.56:                              ##   in Loop: Header=BB0_54 Depth=1
	movq	_siginfo@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_53
## %bb.57:                              ##   in Loop: Header=BB0_54 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%edx, %edx
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_show_cnt
	jmp	LBB0_53
LBB0_58:                                ##   in Loop: Header=BB0_54 Depth=1
	testb	$1, %bl
	jne	LBB0_60
## %bb.59:                              ##   in Loop: Header=BB0_54 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, %ecx
	jmp	LBB0_61
LBB0_60:                                ##   in Loop: Header=BB0_54 Depth=1
	cmpq	%r15, %r12
	movq	%r15, %rax
	cmovgq	%r12, %rax
	incq	%r12
	xorl	%edx, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpb	$10, (%rcx)
	leal	-1(%rbx), %ecx
	sete	%dl
	cmoveq	%rax, %r15
	movl	$0, %eax
	cmoveq	%rax, %r12
	addq	%rdx, %r13
	movq	-96(%rbp), %rax                 ## 8-byte Reload
LBB0_61:                                ##   in Loop: Header=BB0_54 Depth=1
	cmpl	$1, %ebx
	je	LBB0_54
## %bb.62:                              ##   in Loop: Header=BB0_54 Depth=1
	movl	%ecx, %ecx
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_63:                                ##   Parent Loop BB0_54 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r15, %r12
	movq	%r15, %rdi
	cmovgq	%r12, %rdi
	incq	%r12
	xorl	%esi, %esi
	cmpb	$10, (%rax,%rdx)
	sete	%sil
	cmovneq	%r15, %rdi
	cmoveq	%rbx, %r12
	addq	%r13, %rsi
	cmpq	%rdi, %r12
	movq	%rdi, %r15
	cmovgq	%r12, %r15
	incq	%r12
	xorl	%r13d, %r13d
	cmpb	$10, 1(%rax,%rdx)
	cmovneq	%rdi, %r15
	cmoveq	%rbx, %r12
	sete	%r13b
	addq	%rsi, %r13
	addq	$2, %rdx
	cmpl	%edx, %ecx
	jne	LBB0_63
	jmp	LBB0_54
LBB0_64:
	leaq	L_.str.2(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_xo_warn
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_43
LBB0_65:
	xorl	%eax, %eax
	callq	_reset_siginfo
	movq	_doline@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_67
## %bb.66:
	movq	_tlinect@GOTPCREL(%rip), %rax
	addl	%r13d, (%rax)
LBB0_67:
	movq	_dochar@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_69
## %bb.68:
	movq	_tcharct@GOTPCREL(%rip), %rax
	addl	%r14d, (%rax)
LBB0_69:
	movq	_dolongline@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_72
## %bb.70:
	movq	_tlongline@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jle	LBB0_72
## %bb.71:
	movq	%r15, (%rax)
LBB0_72:
	xorl	%ebx, %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%edx, %edx
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_show_cnt
	movl	%r12d, %edi
	callq	_close
	jmp	LBB0_44
LBB0_73:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXBSIZE,4,2                   ## @MAXBSIZE
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_fa,4,2                         ## @fa
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: open"

	.comm	_doword,8,3                     ## @doword
	.comm	_domulti,8,3                    ## @domulti
	.comm	_MB_CUR_MAX,4,2                 ## @MB_CUR_MAX
	.comm	_doline,8,3                     ## @doline
	.comm	_dolongline,8,3                 ## @dolongline
L_.str.1:                               ## @.str.1
	.asciz	"%s: fstat"

	.comm	_tcharct,4,2                    ## @tcharct
L_.str.2:                               ## @.str.2
	.asciz	"%s: read"

	.comm	_siginfo,8,3                    ## @siginfo
	.comm	_tlinect,4,2                    ## @tlinect
	.comm	_dochar,8,3                     ## @dochar
	.comm	_tlongline,8,3                  ## @tlongline
L_.str.3:                               ## @.str.3
	.asciz	"stdin"

	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_errno,4,2                      ## @errno
L_.str.4:                               ## @.str.4
	.asciz	"%s"

	.comm	_twordct,4,2                    ## @twordct
	.no_dead_strip	_cnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnt
_cnt:                                   ; @cnt
	.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
	sub	sp, sp, #80
	mov	x26, x0
	mov	x19, sp
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	x8, _MAXBSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXBSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x27, x9, x8
	mov	sp, x27
	cbz	x0, LBB0_3
; %bb.1:
Lloh8:
	adrp	x8, _fa@GOTPAGE
Lloh9:
	ldr	x8, [x8, _fa@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x26
	bl	_fileargs_open
	mov	x22, x0
	tbz	w0, #31, LBB0_4
; %bb.2:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x26
	bl	_xo_warn
	b	LBB0_55
LBB0_3:
Lloh13:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
LBB0_4:
Lloh16:
	adrp	x8, _doword@GOTPAGE
Lloh17:
	ldr	x8, [x8, _doword@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _domulti@GOTPAGE
Lloh20:
	ldr	x9, [x9, _domulti@GOTPAGEOFF]
Lloh21:
	adrp	x10, _MB_CUR_MAX@GOTPAGE
Lloh22:
	ldr	x10, [x10, _MB_CUR_MAX@GOTPAGEOFF]
	stur	w22, [x29, #-132]               ; 4-byte Folded Spill
	cbnz	x8, LBB0_9
; %bb.5:
	ldr	x8, [x9]
	ldr	w9, [x10]
	cmp	x8, #0
	ccmp	w9, #1, #4, ne
	b.ne	LBB0_9
; %bb.6:
Lloh23:
	adrp	x25, _doline@GOTPAGE
Lloh24:
	ldr	x25, [x25, _doline@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh25:
	adrp	x9, _dolongline@GOTPAGE
Lloh26:
	ldr	x9, [x9, _dolongline@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cbnz	x8, LBB0_45
; %bb.7:
	sub	x1, x29, #104
	mov	x0, x22
	bl	_fstat
	cbz	x0, LBB0_43
; %bb.8:
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x26
	bl	_xo_warn
	mov	x0, x22
	b	LBB0_54
LBB0_9:
	stur	x19, [x29, #-152]               ; 8-byte Folded Spill
	sub	x0, x29, #108
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x24, #0
	mov	x23, #0
	mov	x22, #0
	mov	x20, #0
	stp	xzr, x26, [x29, #-128]          ; 16-byte Folded Spill
	mov	x25, #0
Lloh30:
	adrp	x8, l_.str.3@PAGE
Lloh31:
	add	x8, x8, l_.str.3@PAGEOFF
	cmp	x26, #0
	csel	x8, x8, x26, eq
	stur	x8, [x29, #-144]                ; 8-byte Folded Spill
	mov	w19, #1
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
	ldur	w21, [x29, #-132]               ; 4-byte Folded Reload
Lloh32:
	adrp	x26, _MAXBSIZE@GOTPAGE
Lloh33:
	ldr	x26, [x26, _MAXBSIZE@GOTPAGEOFF]
LBB0_11:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x26]
	mov	x0, x21
	mov	x1, x27
	bl	_read
	cmn	w0, #1
	b.eq	LBB0_42
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x28, x0
	cbz	w0, LBB0_28
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	cmp	w28, #1
	b.lt	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x21, x27
	mov	x26, x19
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=2
	ldrb	w0, [x21]
	stur	w0, [x29, #-104]
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=2
	mov	w8, #1
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	cmp	w0, #10
	cinc	x9, x20, ne
	csel	x20, xzr, x9, eq
	cinc	x25, x25, eq
	cmp	x9, x22
	csel	x9, x9, x22, gt
	cmp	w0, #10
	add	x23, x23, #1
	csel	x22, x9, x22, eq
	sub	w28, w28, w8
	add	x21, x21, x8
	bl	_iswspace
	cmp	x0, #0
	cset	w19, ne
	cset	w8, eq
	tst	w26, #0xffff
	cset	w9, ne
	and	w8, w8, w9
	add	x24, x24, x8
	mov	x26, x19
	cmp	w28, #0
	b.le	LBB0_10
LBB0_18:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
Lloh34:
	adrp	x8, _siginfo@GOTPAGE
Lloh35:
	ldr	x8, [x8, _siginfo@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	ldur	x0, [x29, #-120]                ; 8-byte Folded Reload
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	bl	_show_cnt
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=2
Lloh37:
	adrp	x8, _domulti@GOTPAGE
Lloh38:
	ldr	x8, [x8, _domulti@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
Lloh40:
	adrp	x9, _MB_CUR_MAX@GOTPAGE
Lloh41:
	ldr	x9, [x9, _MB_CUR_MAX@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #1, #4, ne
	b.eq	LBB0_15
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=2
	sub	x0, x29, #104
	sub	x3, x29, #108
	mov	x1, x21
	mov	x2, x28
	bl	_mbrtowc
	cmn	x0, #1
	b.eq	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=2
	cmn	x0, #2
	b.eq	LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=2
	cmp	x0, #0
	csinc	x8, x0, xzr, ne
	ldur	w0, [x29, #-104]
	b	LBB0_17
LBB0_24:                                ;   in Loop: Header=BB0_18 Depth=2
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	cbnz	w8, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=2
Lloh43:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _errno@GOTPAGE
Lloh47:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh48:
	str	w8, [x9]
Lloh49:
	adrp	x0, l_.str.4@PAGE
Lloh50:
	add	x0, x0, l_.str.4@PAGEOFF
	ldur	x1, [x29, #-144]                ; 8-byte Folded Reload
	bl	_xo_warn
LBB0_26:                                ;   in Loop: Header=BB0_18 Depth=2
	sub	x0, x29, #108
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldrb	w0, [x21]
	stur	w0, [x29, #-104]
	mov	w8, #1
	stur	x8, [x29, #-128]                ; 8-byte Folded Spill
	b	LBB0_16
LBB0_27:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x19, x26
	b	LBB0_10
LBB0_28:
	bl	_reset_siginfo
Lloh51:
	adrp	x20, _domulti@GOTPAGE
Lloh52:
	ldr	x20, [x20, _domulti@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh53:
	adrp	x9, _MB_CUR_MAX@GOTPAGE
Lloh54:
	ldr	x9, [x9, _MB_CUR_MAX@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #2, #8, ne
	b.lt	LBB0_32
; %bb.29:
	sub	x3, x29, #108
	mov	x0, #0
	mov	x1, #0
	mov	w2, #0
	bl	_mbrtowc
	cmn	x0, #1
	b.ne	LBB0_32
; %bb.30:
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	cbnz	w8, LBB0_32
; %bb.31:
Lloh56:
	adrp	x0, l_.str.4@PAGE
Lloh57:
	add	x0, x0, l_.str.4@PAGEOFF
	ldur	x1, [x29, #-144]                ; 8-byte Folded Reload
	bl	_xo_warn
LBB0_32:
Lloh58:
	adrp	x8, _doline@GOTPAGE
Lloh59:
	ldr	x8, [x8, _doline@GOTPAGEOFF]
Lloh60:
	ldr	x8, [x8]
	ldur	x19, [x29, #-152]               ; 8-byte Folded Reload
	ldur	x0, [x29, #-120]                ; 8-byte Folded Reload
	cbz	x8, LBB0_34
; %bb.33:
Lloh61:
	adrp	x8, _tlinect@GOTPAGE
Lloh62:
	ldr	x8, [x8, _tlinect@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w25
	str	w9, [x8]
LBB0_34:
Lloh63:
	adrp	x8, _doword@GOTPAGE
Lloh64:
	ldr	x8, [x8, _doword@GOTPAGEOFF]
Lloh65:
	ldr	x8, [x8]
	cbz	x8, LBB0_36
; %bb.35:
Lloh66:
	adrp	x8, _twordct@GOTPAGE
Lloh67:
	ldr	x8, [x8, _twordct@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w24
	str	w9, [x8]
LBB0_36:
Lloh68:
	adrp	x8, _dochar@GOTPAGE
Lloh69:
	ldr	x8, [x8, _dochar@GOTPAGEOFF]
Lloh70:
	ldr	x8, [x8]
	ldr	x9, [x20]
	orr	x8, x8, x9
	cbz	x8, LBB0_38
; %bb.37:
Lloh71:
	adrp	x8, _tcharct@GOTPAGE
Lloh72:
	ldr	x8, [x8, _tcharct@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w23
	str	w9, [x8]
LBB0_38:
Lloh73:
	adrp	x8, _dolongline@GOTPAGE
Lloh74:
	ldr	x8, [x8, _dolongline@GOTPAGEOFF]
Lloh75:
	ldr	x9, [x8]
Lloh76:
	adrp	x8, _tlongline@GOTPAGE
Lloh77:
	ldr	x8, [x8, _tlongline@GOTPAGEOFF]
	ldr	x10, [x8]
	cmp	x9, #0
	ccmp	x22, x10, #4, ne
	b.le	LBB0_40
; %bb.39:
	str	x22, [x8]
LBB0_40:
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	bl	_show_cnt
	mov	x0, x21
LBB0_41:
	bl	_close
	mov	w0, #0
	b	LBB0_56
LBB0_42:
Lloh78:
	adrp	x0, l_.str.2@PAGE
Lloh79:
	add	x0, x0, l_.str.2@PAGEOFF
	ldur	x1, [x29, #-144]                ; 8-byte Folded Reload
	bl	_xo_warn
	mov	x0, x21
	bl	_close
	mov	w0, #1
	ldur	x19, [x29, #-152]               ; 8-byte Folded Reload
	b	LBB0_56
LBB0_43:
	ldur	w0, [x29, #-96]
	bl	_S_ISREG
	cbz	x0, LBB0_45
; %bb.44:
	bl	_reset_siginfo
	ldur	x21, [x29, #-104]
	mov	x0, x26
	mov	x1, #0
	mov	x2, #0
	mov	x3, x21
	mov	x4, #0
	bl	_show_cnt
Lloh80:
	adrp	x8, _tcharct@GOTPAGE
Lloh81:
	ldr	x8, [x8, _tcharct@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w21
	str	w9, [x8]
	mov	x0, x22
	b	LBB0_41
LBB0_45:
	mov	x20, x26
	mov	x22, #0
	mov	x21, #0
	mov	x26, #0
	mov	x23, #0
Lloh82:
	adrp	x28, _siginfo@GOTPAGE
Lloh83:
	ldr	x28, [x28, _siginfo@GOTPAGEOFF]
	b	LBB0_47
LBB0_46:                                ;   in Loop: Header=BB0_47 Depth=1
	add	x22, x22, w24, sxtw
	ldr	x8, [x25]
Lloh84:
	adrp	x9, _dolongline@GOTPAGE
Lloh85:
	ldr	x9, [x9, _dolongline@GOTPAGEOFF]
Lloh86:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cbnz	x8, LBB0_51
LBB0_47:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_52 Depth 2
Lloh87:
	adrp	x8, _MAXBSIZE@GOTPAGE
Lloh88:
	ldr	x8, [x8, _MAXBSIZE@GOTPAGEOFF]
Lloh89:
	ldr	w2, [x8]
	ldur	w0, [x29, #-132]                ; 4-byte Folded Reload
	mov	x1, x27
	bl	_read
	cbz	w0, LBB0_58
; %bb.48:                               ;   in Loop: Header=BB0_47 Depth=1
	mov	x24, x0
	cmn	w0, #1
	b.eq	LBB0_53
; %bb.49:                               ;   in Loop: Header=BB0_47 Depth=1
	ldr	x8, [x28]
	cbz	x8, LBB0_46
; %bb.50:                               ;   in Loop: Header=BB0_47 Depth=1
	mov	x0, x20
	mov	x1, x23
	mov	x2, #0
	mov	x3, x22
	mov	x4, x21
	bl	_show_cnt
	b	LBB0_46
LBB0_51:                                ;   in Loop: Header=BB0_47 Depth=1
	mov	x8, x27
LBB0_52:                                ;   Parent Loop BB0_47 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x8], #1
	cmp	x26, x21
	csel	x10, x26, x21, gt
	cmp	w9, #10
	csel	x21, x10, x21, eq
	csinc	x26, xzr, x26, eq
	cinc	x23, x23, eq
	sub	w24, w24, #1
	cbnz	w24, LBB0_52
	b	LBB0_47
LBB0_53:
Lloh90:
	adrp	x0, l_.str.2@PAGE
Lloh91:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_xo_warn
	ldur	w0, [x29, #-132]                ; 4-byte Folded Reload
LBB0_54:
	bl	_close
LBB0_55:
	mov	w0, #1
LBB0_56:
	mov	sp, x19
	ldur	x8, [x29, #-88]
Lloh92:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh93:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh94:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_65
; %bb.57:
	sub	sp, x29, #80
	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
LBB0_58:
	bl	_reset_siginfo
	ldr	x8, [x25]
	cbz	x8, LBB0_60
; %bb.59:
Lloh95:
	adrp	x8, _tlinect@GOTPAGE
Lloh96:
	ldr	x8, [x8, _tlinect@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w23
	str	w9, [x8]
LBB0_60:
Lloh97:
	adrp	x8, _dochar@GOTPAGE
Lloh98:
	ldr	x8, [x8, _dochar@GOTPAGEOFF]
Lloh99:
	ldr	x8, [x8]
	ldur	w24, [x29, #-132]               ; 4-byte Folded Reload
	cbz	x8, LBB0_62
; %bb.61:
Lloh100:
	adrp	x8, _tcharct@GOTPAGE
Lloh101:
	ldr	x8, [x8, _tcharct@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w22
	str	w9, [x8]
LBB0_62:
Lloh102:
	adrp	x8, _dolongline@GOTPAGE
Lloh103:
	ldr	x8, [x8, _dolongline@GOTPAGEOFF]
Lloh104:
	ldr	x9, [x8]
Lloh105:
	adrp	x8, _tlongline@GOTPAGE
Lloh106:
	ldr	x8, [x8, _tlongline@GOTPAGEOFF]
	ldr	x10, [x8]
	cmp	x9, #0
	ccmp	x21, x10, #4, ne
	b.le	LBB0_64
; %bb.63:
	str	x21, [x8]
LBB0_64:
	mov	x0, x20
	mov	x1, x23
	mov	x2, #0
	mov	x3, x22
	mov	x4, x21
	bl	_show_cnt
	mov	x0, x24
	b	LBB0_41
LBB0_65:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotStr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpLdrGot	Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXBSIZE,4,2                   ; @MAXBSIZE
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_fa,4,2                         ; @fa
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: open"

	.comm	_doword,8,3                     ; @doword
	.comm	_domulti,8,3                    ; @domulti
	.comm	_MB_CUR_MAX,4,2                 ; @MB_CUR_MAX
	.comm	_doline,8,3                     ; @doline
	.comm	_dolongline,8,3                 ; @dolongline
l_.str.1:                               ; @.str.1
	.asciz	"%s: fstat"

	.comm	_tcharct,4,2                    ; @tcharct
l_.str.2:                               ; @.str.2
	.asciz	"%s: read"

	.comm	_siginfo,8,3                    ; @siginfo
	.comm	_tlinect,4,2                    ; @tlinect
	.comm	_dochar,8,3                     ; @dochar
	.comm	_tlongline,8,3                  ; @tlongline
l_.str.3:                               ; @.str.3
	.asciz	"stdin"

	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_errno,4,2                      ; @errno
l_.str.4:                               ; @.str.4
	.asciz	"%s"

	.comm	_twordct,4,2                    ; @twordct
	.no_dead_strip	_cnt
.subsections_via_symbols
