	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sha256_file                    ## -- Begin function sha256_file
	.p2align	4, 0x90
_sha256_file:                           ## @sha256_file
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rsp, %r15
	movq	_SHA256_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	leaq	-52(%rbp), %rdi
	callq	_SHA256_Init
	movl	$1048576, %edi                  ## imm = 0x100000
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movl	$1, %esi
	cmpl	$1048577, %r12d                 ## imm = 0x100001
	jge	LBB0_5
## %bb.21:
	movl	%r12d, %edx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_fread
	leaq	-52(%rbp), %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_SHA256_Update
	jmp	LBB0_8
LBB0_1:
	movl	$1, %eax
	jmp	LBB0_19
LBB0_3:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_fclose
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_5:
	movl	$1048576, %edx                  ## imm = 0x100000
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_fread
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	addl	%eax, %r15d
	leaq	-52(%rbp), %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_SHA256_Update
	movl	%r12d, %edx
	subl	%r15d, %edx
	cmpl	$1048576, %edx                  ## imm = 0x100000
	movl	$1048576, %eax                  ## imm = 0x100000
	cmovgel	%eax, %edx
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r14, %rcx
	callq	_fread
	testl	%eax, %eax
	jne	LBB0_7
LBB0_8:
	addl	%ebx, %r12d
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_fseek
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.9:
	leaq	l_.str.1(%rip), %r14
	leaq	-52(%rbp), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_SHA256_Update
	decl	%ebx
	jne	LBB0_10
LBB0_11:
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$1048576, %edx                  ## imm = 0x100000
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_fread
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	leaq	-52(%rbp), %r14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_SHA256_Update
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$1048576, %edx                  ## imm = 0x100000
	movq	%rbx, %rcx
	callq	_fread
	testl	%eax, %eax
	jne	LBB0_13
LBB0_14:
	leaq	-52(%rbp), %rsi
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_SHA256_Final
	movq	_SHA256_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_17
## %bb.15:
	xorl	%ebx, %ebx
	leaq	L_.str.2(%rip), %r14
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_sprintf
	incq	%rbx
	movq	_SHA256_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$2, %r15
	cmpq	%rax, %rbx
	jl	LBB0_16
LBB0_17:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movb	$0, 64(%rax)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_fclose
	movq	%r13, %rdi
	callq	_free
	xorl	%eax, %eax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
LBB0_18:
	movq	%r15, %rsp
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_22
## %bb.20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

	.comm	_SHA256_DIGEST_LENGTH,4,2       ## @SHA256_DIGEST_LENGTH
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.section	__TEXT,__const
l_.str.1:                               ## @.str.1
	.space	2

	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"%02x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sha256_file                    ; -- Begin function sha256_file
	.p2align	2
_sha256_file:                           ; @sha256_file
	.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, #16
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
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	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x25, sp
Lloh5:
	adrp	x26, _SHA256_DIGEST_LENGTH@GOTPAGE
Lloh6:
	ldr	x26, [x26, _SHA256_DIGEST_LENGTH@GOTPAGEOFF]
	ldr	w8, [x26]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	sub	x0, x29, #92
	bl	_SHA256_Init
	mov	w0, #1048576
	bl	_malloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	cmp	w24, #256, lsl #12              ; =1048576
	b.gt	LBB0_6
; %bb.3:
	mov	x0, x22
	mov	w1, #1
	mov	x2, x24
	mov	x3, x20
	bl	_fread
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp, #-16]!
	sub	x0, x29, #92
	bl	_SHA256_Update
	add	sp, sp, #16
	b	LBB0_9
LBB0_4:
	mov	w0, #1
	b	LBB0_19
LBB0_5:
	mov	x0, x20
	bl	_fclose
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_18
LBB0_6:
	mov	w27, #1048576
	mov	x0, x22
	mov	w1, #1
	mov	w2, #1048576
	mov	x3, x20
	bl	_fread
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_9
; %bb.7:
	mov	w28, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	w28, w0, w28
	stp	x22, x0, [sp, #-16]!
	sub	x0, x29, #92
	bl	_SHA256_Update
	add	sp, sp, #16
	sub	w8, w24, w28
	cmp	w8, #256, lsl #12               ; =1048576
	csel	w2, w8, w27, lt
	mov	x0, x22
	mov	w1, #1
	mov	x3, x20
	bl	_fread
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_8
LBB0_9:
	add	w1, w23, w24
Lloh12:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_fseek
	cmp	w23, #1
	b.lt	LBB0_13
; %bb.10:
	mov	w24, #1
Lloh15:
	adrp	x27, l_.str.1@PAGE
Lloh16:
	add	x27, x27, l_.str.1@PAGEOFF
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	stp	x27, x24, [sp, #-16]!
	sub	x0, x29, #92
	bl	_SHA256_Update
	add	sp, sp, #16
	subs	w23, w23, #1
	b.ne	LBB0_11
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	stp	x22, x0, [sp, #-16]!
	sub	x0, x29, #92
	bl	_SHA256_Update
	add	sp, sp, #16
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	w1, #1
	mov	w2, #1048576
	mov	x3, x20
	bl	_fread
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_12
; %bb.14:
	sub	x1, x29, #92
	mov	x0, x21
	bl	_SHA256_Final
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.15:
	mov	x27, #0
Lloh17:
	adrp	x23, l_.str.2@PAGE
Lloh18:
	add	x23, x23, l_.str.2@PAGEOFF
	mov	x24, x19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21, x27, lsl #2]
	mov	x0, x24
	mov	x1, x23
	bl	_sprintf
	add	x27, x27, #1
	ldrsw	x8, [x26]
	add	x24, x24, #2
	cmp	x27, x8
	b.lt	LBB0_16
LBB0_17:
	strb	wzr, [x19, #64]
	mov	x0, x20
	bl	_fclose
	mov	x0, x22
	bl	_free
	mov	w0, #0
LBB0_18:
	mov	sp, x25
LBB0_19:
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	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_21:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

	.comm	_SHA256_DIGEST_LENGTH,4,2       ; @SHA256_DIGEST_LENGTH
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.section	__TEXT,__const
l_.str.1:                               ; @.str.1
	.space	2

	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"%02x"

.subsections_via_symbols
