	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function digest
_digest:                                ## @digest
	.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	%rdi, %r15
	movq	_DIGEST@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_EVP_get_digestbyname
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR_print_errors_fp
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_2:
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_create
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR_print_errors_fp
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_EVP_DigestInit_ex
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR_print_errors_fp
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_6:
	movq	(%r15), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_digest_range
	movq	8(%r15), %rdx
	movq	16(%r15), %rcx
	addq	(%r15), %rdx
	subq	%rdx, %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_digest_range
	movq	24(%r15), %rdx
	movq	32(%r15), %rcx
	addq	16(%r15), %rdx
	subq	%rdx, %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_digest_range
	movq	32(%r15), %r13
	cmpl	$0, 40(%r15)
	jle	LBB0_9
## %bb.7:
	movq	56(%r15), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movq	(%rax,%rbx,8), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_digest_range
	movq	56(%r15), %rax
	addq	(%rax,%rbx,8), %r13
	incq	%rbx
	movslq	40(%r15), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_8
LBB0_9:
	movq	64(%r15), %r12
	cmpq	%r12, %r13
	jbe	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
	movq	64(%r15), %r12
LBB0_11:
	cmpq	%r12, %r13
	jae	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_signature_size
	addq	%r13, %rax
	subq	%rax, %r12
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_digest_range
LBB0_13:
	movl	76(%r15), %esi
	addq	$72, %r15
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_EVP_DigestFinal_ex
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR_print_errors_fp
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_15:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EVP_MD_CTX_destroy             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DIGEST,4,2                     ## @DIGEST
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EVP_get_digestbyname(\"%s\") failed"

L_.str.1:                               ## @.str.1
	.asciz	"EVP_MD_CTX_create(3) failed"

L_.str.2:                               ## @.str.2
	.asciz	"EVP_DigestInit_ex(3) failed"

L_.str.3:                               ## @.str.3
	.asciz	"number of bytes hashed is larger than file size"

L_.str.4:                               ## @.str.4
	.asciz	"EVP_DigestFinal_ex(3) failed"

	.no_dead_strip	_digest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function digest
_digest:                                ; @digest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _DIGEST@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DIGEST@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_EVP_get_digestbyname
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_ERR_print_errors_fp
	ldr	w8, [x20]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
	bl	_EVP_MD_CTX_create
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _stderr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_ERR_print_errors_fp
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	mov	x2, #0
	bl	_EVP_DigestInit_ex
	cbnz	w0, LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_ERR_print_errors_fp
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_6:
	ldr	x3, [x19]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_digest_range
	ldp	x8, x9, [x19]
	ldr	x10, [x19, #16]
	add	x2, x9, x8
	sub	x3, x10, x2
	mov	x0, x19
	mov	x1, x20
	bl	_digest_range
	ldp	x8, x9, [x19, #16]
	ldr	x10, [x19, #32]
	add	x2, x9, x8
	sub	x3, x10, x2
	mov	x0, x19
	mov	x1, x20
	bl	_digest_range
	ldr	x21, [x19, #32]
	ldr	w8, [x19, #40]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x22, #0
	ldr	x8, [x19, #56]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #48]
	lsl	x23, x22, #3
	ldr	x2, [x9, x23]
	ldr	x3, [x8, x23]
	mov	x0, x19
	mov	x1, x20
	bl	_digest_range
	ldr	x8, [x19, #56]
	ldr	x9, [x8, x23]
	add	x21, x9, x21
	add	x22, x22, #1
	ldrsw	x9, [x19, #40]
	cmp	x22, x9
	b.lt	LBB0_8
LBB0_9:
	ldr	x22, [x19, #64]
	cmp	x21, x22
	b.ls	LBB0_11
; %bb.10:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x22, [x19, #64]
LBB0_11:
	cmp	x21, x22
	b.hs	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_signature_size
	add	x8, x21, x0
	sub	x3, x22, x8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_digest_range
LBB0_13:
	ldr	w1, [x19, #76]
	add	x2, x19, #72
	mov	x0, x20
	bl	_EVP_DigestFinal_ex
	cbnz	w0, LBB0_15
; %bb.14:
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_ERR_print_errors_fp
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_15:
	mov	x0, x20
	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
	add	sp, sp, #80
	b	_EVP_MD_CTX_destroy
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_DIGEST,4,2                     ; @DIGEST
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EVP_get_digestbyname(\"%s\") failed"

l_.str.1:                               ; @.str.1
	.asciz	"EVP_MD_CTX_create(3) failed"

l_.str.2:                               ; @.str.2
	.asciz	"EVP_DigestInit_ex(3) failed"

l_.str.3:                               ; @.str.3
	.asciz	"number of bytes hashed is larger than file size"

l_.str.4:                               ; @.str.4
	.asciz	"EVP_DigestFinal_ex(3) failed"

	.no_dead_strip	_digest
.subsections_via_symbols
