	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_digest
_create_digest:                         ## @create_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
	movl	$4120, %eax                     ## imm = 0x1018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdx, -4160(%rbp)               ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_EVP_MD_size
	xorl	%r14d, %r14d
	testl	%eax, %eax
	js	LBB0_15
## %bb.1:
	movl	%eax, %r12d
	testq	%r15, %r15
	je	LBB0_10
## %bb.2:
	movq	%r13, -4152(%rbp)               ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_new
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	%rax, %r13
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	callq	_app_malloc
	movq	-4152(%rbp), %rcx               ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%r13, %rdi
	movq	-4160(%rbp), %r14               ## 8-byte Reload
	movq	%r14, %rsi
	callq	_EVP_DigestInit
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	leaq	-4144(%rbp), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_BIO_read
	testl	%eax, %eax
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_8
LBB0_10:
	leaq	-4144(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_OPENSSL_hexstr2buf
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	%r12d, %ecx
	cmpq	%rcx, -4144(%rbp)
	jne	LBB0_12
## %bb.13:
	xorl	%r13d, %r13d
	jmp	LBB0_14
LBB0_12:
	movq	%rax, %rdi
	callq	_OPENSSL_free
	movq	$0, (%r13)
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	callq	_BIO_printf
	jmp	LBB0_15
LBB0_7:
	movq	-4152(%rbp), %rax               ## 8-byte Reload
	movq	(%rax), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_EVP_DigestFinal
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	callq	_EVP_MD_size
	movl	%eax, %r12d
	jmp	LBB0_14
LBB0_8:
	xorl	%r12d, %r12d
LBB0_14:
	movq	%r13, %rdi
	callq	_EVP_MD_CTX_free
	movl	%r12d, %r14d
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r14d, %eax
	addq	$4120, %rsp                     ## imm = 0x1018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"digest buffer"

	.comm	_bio_err,4,2                    ## @bio_err
L_.str.1:                               ## @.str.1
	.asciz	"bad digest, %d bytes must be specified\n"

	.no_dead_strip	_create_digest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_digest
_create_digest:                         ; @create_digest
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	x0, x2
	bl	_EVP_MD_size
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x20, x0
	cbz	x23, LBB0_7
; %bb.2:
	bl	_EVP_MD_CTX_new
	cbz	x0, LBB0_6
; %bb.3:
	mov	x22, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_app_malloc
	str	x0, [x19]
	mov	x0, x22
	mov	x1, x21
	bl	_EVP_DigestInit
	cbz	w0, LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #4096
	bl	_BIO_read
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x22
	bl	_EVP_DigestUpdate
	cbnz	w0, LBB0_4
	b	LBB0_13
LBB0_6:
	mov	w20, #0
	b	LBB0_15
LBB0_7:
	add	x1, sp, #8
	mov	x0, x22
	bl	_OPENSSL_hexstr2buf
	str	x0, [x19]
	cbz	x0, LBB0_10
; %bb.8:
	mov	w8, w20
	ldr	x9, [sp, #8]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x22, #0
	b	LBB0_14
LBB0_10:
	bl	_OPENSSL_free
	str	xzr, [x19]
Lloh7:
	adrp	x8, _bio_err@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_BIO_printf
	mov	w20, #0
	b	LBB0_15
LBB0_11:
	ldr	x1, [x19]
	mov	x0, x22
	mov	x2, #0
	bl	_EVP_DigestFinal
	cbz	w0, LBB0_13
; %bb.12:
	mov	x0, x21
	bl	_EVP_MD_size
	mov	x20, x0
	b	LBB0_14
LBB0_13:
	mov	w20, #0
LBB0_14:
	mov	x0, x22
	bl	_EVP_MD_CTX_free
LBB0_15:
	ldur	x8, [x29, #-56]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x20
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"digest buffer"

	.comm	_bio_err,4,2                    ; @bio_err
l_.str.1:                               ; @.str.1
	.asciz	"bad digest, %d bytes must be specified\n"

	.no_dead_strip	_create_digest
.subsections_via_symbols
