	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sha256_fd
_sha256_fd:                             ## @sha256_fd
	.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, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_SHA256_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movb	$0, (%r13)
	movl	%r12d, %edi
	callq	_dup
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_fdopen
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	leaq	-52(%rbp), %rdi
	callq	_SHA256_Init
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r13, %rcx
	callq	_fread
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	leaq	-52(%rbp), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_SHA256_Update
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r13, %rcx
	callq	_fread
	testq	%rax, %rax
	jne	LBB0_6
LBB0_7:
	movq	%r13, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	callq	_warnx
	movl	$1, %ebx
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	callq	_warnx
	movl	%r15d, %edi
	callq	_close
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_9:
	leaq	-52(%rbp), %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_SHA256_Final
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_sha256_hash
	xorl	%ebx, %ebx
LBB0_10:
	movq	%r13, %rdi
	callq	_fclose
LBB0_11:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_lseek
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA256_DIGEST_LENGTH,4,2       ## @SHA256_DIGEST_LENGTH
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dup"

L_.str.1:                               ## @.str.1
	.asciz	"rb"

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

L_.str.3:                               ## @.str.3
	.asciz	"fread"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_sha256_fd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sha256_fd
_sha256_fd:                             ; @sha256_fd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x25, [x25, _BUFSIZ@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
Lloh7:
	adrp	x8, _SHA256_DIGEST_LENGTH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SHA256_DIGEST_LENGTH@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	strb	wzr, [x1]
	bl	_dup
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.1:
	mov	x24, x0
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fdopen
	cbz	x0, LBB0_8
; %bb.2:
	mov	x22, x0
	sub	x0, x29, #76
	bl	_SHA256_Init
	ldr	w2, [x25]
	mov	x0, x23
	mov	w1, #1
	mov	x3, x22
	bl	_fread
	cbz	x0, LBB0_5
; %bb.3:
	mov	x2, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #76
	mov	x1, x23
	bl	_SHA256_Update
	ldr	w2, [x25]
	mov	x0, x23
	mov	w1, #1
	mov	x3, x22
	bl	_fread
	mov	x2, x0
	cbnz	x0, LBB0_4
LBB0_5:
	mov	x0, x22
	bl	_ferror
	cbz	x0, LBB0_9
; %bb.6:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warnx
	mov	w20, #1
	b	LBB0_10
LBB0_7:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	mov	w20, #1
	b	LBB0_11
LBB0_8:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warnx
	mov	x0, x24
	bl	_close
	mov	w20, #1
	b	LBB0_11
LBB0_9:
	sub	x1, x29, #76
	mov	x0, x21
	bl	_SHA256_Final
	mov	x0, x21
	mov	x1, x20
	bl	_sha256_hash
	mov	w20, #0
LBB0_10:
	mov	x0, x22
	bl	_fclose
LBB0_11:
Lloh20:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_lseek
	ldur	x8, [x29, #-72]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x20
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA256_DIGEST_LENGTH,4,2       ; @SHA256_DIGEST_LENGTH
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dup"

l_.str.1:                               ; @.str.1
	.asciz	"rb"

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

l_.str.3:                               ; @.str.3
	.asciz	"fread"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_sha256_fd
.subsections_via_symbols
