	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function digest_test_run
_digest_test_run:                       ## @digest_test_run
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rdi)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_new
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_23
## %bb.1:
	movl	(%r13), %eax
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpl	%edi, %eax
	cmoval	%eax, %edi
	callq	_OPENSSL_malloc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_23
## %bb.2:
	movl	8(%r13), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_EVP_DigestInit_ex
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movl	12(%r13), %edi
	movq	_digest_update_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_evp_test_buffer_do
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:
	movl	8(%r13), %edi
	callq	_EVP_MD_flags
	movq	_EVP_MD_FLAG_XOF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.5:
	movw	$104, -48(%rbp)
	movl	$1668640628, -52(%rbp)          ## imm = 0x63756F74
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_new
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_23
## %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_EVP_MD_CTX_copy
	testl	%eax, %eax
	je	LBB0_17
## %bb.7:
	leaq	-52(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_EVP_DigestFinalXOF
	testl	%eax, %eax
	je	LBB0_20
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	leaq	-52(%rbp), %rdi
	callq	_TEST_str_eq
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_EVP_MD_CTX_free
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_21
## %bb.9:
	movl	(%r13), %r12d
	movl	%r12d, -44(%rbp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_EVP_DigestFinalXOF
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_21
LBB0_10:
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_22
LBB0_11:
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_22
LBB0_12:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_EVP_DigestFinal
	testl	%eax, %eax
	je	LBB0_18
## %bb.13:
	movl	-44(%rbp), %r12d
LBB0_14:
	movl	(%r13), %edi
	movl	%r12d, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:
	movl	(%r13), %ecx
	movl	4(%r13), %edx
	movl	-44(%rbp), %r9d
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %r8
	callq	_memory_err_compare
	testl	%eax, %eax
	je	LBB0_23
## %bb.16:
	movq	$0, (%rbx)
	jmp	LBB0_23
LBB0_17:
	movq	%r12, %rdi
	callq	_EVP_MD_CTX_free
	jmp	LBB0_23
LBB0_18:
	leaq	L_.str.5(%rip), %rax
	jmp	LBB0_22
LBB0_19:
	leaq	L_.str.6(%rip), %rax
	jmp	LBB0_22
LBB0_20:
	movq	%r12, %rdi
	callq	_EVP_MD_CTX_free
LBB0_21:
	leaq	L_.str.3(%rip), %rax
LBB0_22:
	movq	%rax, (%rbx)
LBB0_23:
	movq	%r14, %rdi
	callq	_OPENSSL_free
	movq	%r15, %rdi
	callq	_EVP_MD_CTX_free
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TEST_FAILURE"

	.comm	_EVP_MAX_MD_SIZE,4,2            ## @EVP_MAX_MD_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"DIGESTINIT_ERROR"

	.comm	_digest_update_fn,4,2           ## @digest_update_fn
L_.str.2:                               ## @.str.2
	.asciz	"DIGESTUPDATE_ERROR"

	.comm	_EVP_MD_FLAG_XOF,4,2            ## @EVP_MD_FLAG_XOF
L_.str.3:                               ## @.str.3
	.asciz	"DIGESTFINALXOF_ERROR"

L_.str.4:                               ## @.str.4
	.asciz	"touch"

L_.str.5:                               ## @.str.5
	.asciz	"DIGESTFINAL_ERROR"

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

L_.str.7:                               ## @.str.7
	.asciz	"DIGEST_MISMATCH"

	.no_dead_strip	_digest_test_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function digest_test_run
_digest_test_run:                       ; @digest_test_run
	.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	x21, x0
	ldr	x24, [x0, #8]
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
	bl	_EVP_MD_CTX_new
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_10
; %bb.1:
	ldr	w8, [x24]
Lloh2:
	adrp	x9, _EVP_MAX_MD_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EVP_MAX_MD_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w0, w8, w9, hi
	bl	_OPENSSL_malloc
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_24
; %bb.2:
	ldr	w1, [x24, #8]
	mov	x0, x19
	mov	x2, #0
	bl	_EVP_DigestInit_ex
	cbz	w0, LBB0_11
; %bb.3:
	ldr	w0, [x24, #12]
Lloh5:
	adrp	x8, _digest_update_fn@GOTPAGE
Lloh6:
	ldr	x8, [x8, _digest_update_fn@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_evp_test_buffer_do
	cbz	w0, LBB0_12
; %bb.4:
	ldr	w0, [x24, #8]
	bl	_EVP_MD_flags
Lloh8:
	adrp	x8, _EVP_MD_FLAG_XOF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EVP_MD_FLAG_XOF@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.5:
	mov	w8, #104
	strh	w8, [sp, #8]
	mov	w8, #28532
	movk	w8, #25461, lsl #16
	str	w8, [sp, #4]
	bl	_EVP_MD_CTX_new
	mov	x22, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_24
; %bb.6:
	mov	x0, x22
	mov	x1, x19
	bl	_EVP_MD_CTX_copy
	cbz	w0, LBB0_18
; %bb.7:
	add	x1, sp, #4
	mov	x0, x22
	mov	w2, #0
	bl	_EVP_DigestFinalXOF
	cbz	w0, LBB0_21
; %bb.8:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #4
	bl	_TEST_str_eq
	mov	x23, x0
	mov	x0, x22
	bl	_EVP_MD_CTX_free
	cbz	w23, LBB0_22
; %bb.9:
	ldr	w22, [x24]
	str	w22, [sp, #12]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_EVP_DigestFinalXOF
	cbnz	w0, LBB0_15
	b	LBB0_22
LBB0_10:
	mov	x20, #0
	b	LBB0_24
LBB0_11:
Lloh13:
	adrp	x8, l_.str.1@PAGE
Lloh14:
	add	x8, x8, l_.str.1@PAGEOFF
	b	LBB0_23
LBB0_12:
Lloh15:
	adrp	x8, l_.str.2@PAGE
Lloh16:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_23
LBB0_13:
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_EVP_DigestFinal
	cbz	w0, LBB0_19
; %bb.14:
	ldr	w22, [sp, #12]
LBB0_15:
	ldr	w0, [x24]
	mov	x1, x22
	bl	_TEST_int_eq
	cbz	w0, LBB0_20
; %bb.16:
	ldp	w3, w2, [x24]
	ldr	w5, [sp, #12]
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	mov	x4, x20
	bl	_memory_err_compare
	cbz	w0, LBB0_24
; %bb.17:
	str	xzr, [x21]
	b	LBB0_24
LBB0_18:
	mov	x0, x22
	bl	_EVP_MD_CTX_free
	b	LBB0_24
LBB0_19:
Lloh19:
	adrp	x8, l_.str.5@PAGE
Lloh20:
	add	x8, x8, l_.str.5@PAGEOFF
	b	LBB0_23
LBB0_20:
Lloh21:
	adrp	x8, l_.str.6@PAGE
Lloh22:
	add	x8, x8, l_.str.6@PAGEOFF
	b	LBB0_23
LBB0_21:
	mov	x0, x22
	bl	_EVP_MD_CTX_free
LBB0_22:
Lloh23:
	adrp	x8, l_.str.3@PAGE
Lloh24:
	add	x8, x8, l_.str.3@PAGEOFF
LBB0_23:
	str	x8, [x21]
LBB0_24:
	mov	x0, x20
	bl	_OPENSSL_free
	mov	x0, x19
	bl	_EVP_MD_CTX_free
	mov	w0, #1
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TEST_FAILURE"

	.comm	_EVP_MAX_MD_SIZE,4,2            ; @EVP_MAX_MD_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"DIGESTINIT_ERROR"

	.comm	_digest_update_fn,4,2           ; @digest_update_fn
l_.str.2:                               ; @.str.2
	.asciz	"DIGESTUPDATE_ERROR"

	.comm	_EVP_MD_FLAG_XOF,4,2            ; @EVP_MD_FLAG_XOF
l_.str.3:                               ; @.str.3
	.asciz	"DIGESTFINALXOF_ERROR"

l_.str.4:                               ; @.str.4
	.asciz	"touch"

l_.str.5:                               ; @.str.5
	.asciz	"DIGESTFINAL_ERROR"

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

l_.str.7:                               ; @.str.7
	.asciz	"DIGEST_MISMATCH"

	.no_dead_strip	_digest_test_run
.subsections_via_symbols
