	.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
	subq	$40, %rsp
	.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, %ebx
	cmpl	$2, %edi
	jl	LBB0_4
## %bb.1:
	movq	8(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	8(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	xorl	%eax, %eax
	callq	_usage
	movl	$1, %eax
	jmp	LBB0_27
LBB0_4:
	xorl	%eax, %eax
	cmpl	$1, %ebx
	jne	LBB0_27
LBB0_5:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	leaq	-72(%rbp), %r15
	leaq	-41(%rbp), %r12
	xorl	%r14d, %r14d
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_25:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%r14d
	cmpl	%ebx, %r14d
	jge	LBB0_26
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	testl	%r14d, %r14d
	movl	$1, %eax
	cmovel	%eax, %r14d
	cmpl	$1, %ebx
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r14d, %rbx
	movq	(%r13,%rbx,8), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13,%rbx,8), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r13
	movb	$1, %bl
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	xorl	%ebx, %ebx
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_SHA1Reset
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_fgetc
	movb	%al, -41(%rbp)
	movq	%r13, %rdi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_SHA1Input
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	testb	%bl, %bl
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_fclose
	movq	%r15, %rdi
	callq	_SHA1Result
	testl	%eax, %eax
	je	LBB0_19
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rax
	movslq	%r14d, %rcx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13,%rcx,8), %rdi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_SHA1Result
	leaq	L_.str.6(%rip), %rdx
	testl	%eax, %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rax
	leaq	L_.str.6(%rip), %rdi
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rax), %esi
	movl	4(%rax), %edx
	movl	8(%rax), %ecx
	movl	12(%rax), %r8d
	movl	16(%rax), %r9d
	movq	%rdi, (%rsp)
	leaq	L_.str.7(%rip), %rdi
	callq	_printf
	jmp	LBB0_25
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r14d, %rax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13,%rax,8), %rdx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_25
LBB0_26:
	xorl	%eax, %eax
LBB0_27:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rdx
	leaq	L_.str.4(%rip), %rsi
	callq	_fprintf
	movl	$2, %eax
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-?"

L_.str.1:                               ## @.str.1
	.asciz	"--help"

L_.str.2:                               ## @.str.2
	.asciz	"-"

	.comm	_stdin,8,3                      ## @stdin
L_.str.3:                               ## @.str.3
	.asciz	"rb"

	.comm	_stderr,4,2                     ## @stderr
L_.str.4:                               ## @.str.4
	.asciz	"sha: unable to open file %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"sha: could not compute message digest for %s\n"

L_.str.6:                               ## @.str.6
	.asciz	"STDIN"

L_.str.7:                               ## @.str.7
	.asciz	"%08X %08X %08X %08X %08X - %s\n"

	.comm	__O_BINARY,4,2                  ## @_O_BINARY
.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:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	cmp	w0, #2
	b.lt	LBB0_4
; %bb.1:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_string_is_equal
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_string_is_equal
	cbz	x0, LBB0_5
LBB0_3:
	bl	_usage
	mov	w0, #1
	b	LBB0_27
LBB0_4:
	cmp	w20, #1
	b.ne	LBB0_26
LBB0_5:
	mov	w28, #0
	mov	w8, #0
Lloh4:
	adrp	x26, _stdin@GOTPAGE
Lloh5:
	ldr	x26, [x26, _stdin@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str.7@PAGE
Lloh7:
	add	x22, x22, l_.str.7@PAGEOFF
Lloh8:
	adrp	x21, l_.str.6@PAGE
Lloh9:
	add	x21, x21, l_.str.6@PAGEOFF
Lloh10:
	adrp	x23, l_.str.2@PAGE
Lloh11:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	cbz	w28, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w28, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w8, w27, #1
	cmp	w8, w20
	b.ge	LBB0_26
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	cmp	w8, #0
	csinc	w27, w8, wzr, ne
	cmp	w20, #1
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x19, w27, sxtw #3]
	mov	x1, x23
	bl	_string_is_equal
	cbnz	x0, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	sxtw	x24, w27
	ldr	x0, [x19, x24, lsl #3]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_28
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x25, x0
	mov	w24, #1
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w24, #0
	ldr	x25, [x26]
	mov	w28, #1
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #8
	bl	_SHA1Reset
LBB0_15:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x25
	bl	_fgetc
	strb	w0, [sp, #7]
	mov	x0, x25
	bl	_feof
	cbnz	w0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	add	x0, sp, #8
	add	x1, sp, #7
	mov	w2, #1
	bl	_SHA1Input
	b	LBB0_15
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	cbz	w24, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x25
	bl	_fclose
	add	x0, sp, #8
	bl	_SHA1Result
	cbz	w0, LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #8]
	ldr	x6, [x19, w27, sxtw #3]
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x0, sp, #8
	bl	_SHA1Result
	cbz	w0, LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #8]
	mov	x6, x21
LBB0_22:                                ;   in Loop: Header=BB0_9 Depth=1
	ldp	w1, w2, [x8]
	ldp	w3, w4, [x8, #8]
	ldr	w5, [x8, #16]
	mov	x0, x22
	bl	_printf
	b	LBB0_8
LBB0_23:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x2, [x19, w27, sxtw #3]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x2, x21
LBB0_25:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	b	LBB0_8
LBB0_26:
	mov	w0, #0
LBB0_27:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_28:
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	x2, [x19, x24, lsl #3]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	mov	w0, #2
	b	LBB0_27
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-?"

l_.str.1:                               ; @.str.1
	.asciz	"--help"

l_.str.2:                               ; @.str.2
	.asciz	"-"

	.comm	_stdin,8,3                      ; @stdin
l_.str.3:                               ; @.str.3
	.asciz	"rb"

	.comm	_stderr,4,2                     ; @stderr
l_.str.4:                               ; @.str.4
	.asciz	"sha: unable to open file %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"sha: could not compute message digest for %s\n"

l_.str.6:                               ; @.str.6
	.asciz	"STDIN"

l_.str.7:                               ; @.str.7
	.asciz	"%08X %08X %08X %08X %08X - %s\n"

	.comm	__O_BINARY,4,2                  ; @_O_BINARY
.subsections_via_symbols
