	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_EVP_MD_fetch
_test_EVP_MD_fetch:                     ## @test_EVP_MD_fetch
	.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	%r12
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	$0, -120(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movabsq	$8031924123371070792, %rax      ## imm = 0x6F77206F6C6C6548
	movq	%rax, -80(%rbp)
	movl	$6581362, -72(%rbp)             ## imm = 0x646C72
	movaps	l___const.test_EVP_MD_fetch.exptd+16(%rip), %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	l___const.test_EVP_MD_fetch.exptd(%rip), %xmm0
	movaps	%xmm0, -112(%rbp)
	movq	_use_default_ctx@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	-120(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_load_providers
	testl	%eax, %eax
	je	LBB0_15
LBB0_2:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_EVP_sha256
	leaq	-80(%rbp), %rsi
	leaq	-112(%rbp), %rcx
	movq	%rax, %rdi
	movl	$12, %edx
	callq	_calculate_digest
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_EVP_sha256
	movq	%rax, %rdi
	callq	_EVP_MD_size
	movq	_SHA256_DIGEST_LENGTH@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_EVP_sha256
	movq	%rax, %rdi
	callq	_EVP_MD_block_size
	movq	_SHA256_CBLOCK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:
	movq	-120(%rbp), %rdi
	movq	_fetch_property@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_EVP_MD_fetch
	movq	%rax, %rbx
	movq	_expected_fetch_result@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.6:
	movq	%rbx, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_19
## %bb.7:
	movq	%rbx, %rdi
	callq	_EVP_MD_nid
	movq	_NID_sha256@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_19
## %bb.8:
	leaq	-80(%rbp), %rsi
	leaq	-112(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$12, %edx
	callq	_calculate_digest
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_19
## %bb.9:
	movq	%rbx, %rdi
	callq	_EVP_MD_size
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_19
## %bb.10:
	movq	%rbx, %rdi
	callq	_EVP_MD_block_size
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_19
## %bb.11:
	movq	%rbx, %rdi
	callq	_EVP_MD_up_ref
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_19
## %bb.12:
	movq	%rbx, %rdi
	callq	_EVP_MD_meth_free
	jmp	LBB0_18
LBB0_13:
	xorl	%ebx, %ebx
LBB0_19:
	movq	%rbx, %rdi
	callq	_EVP_MD_meth_free
	movq	-64(%rbp), %rdi
	callq	_OSSL_PROVIDER_unload
	movq	-56(%rbp), %rdi
	callq	_OSSL_PROVIDER_unload
	movq	-120(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	callq	_OPENSSL_thread_stop_ex
	movq	-120(%rbp), %rdi
	callq	_OPENSSL_CTX_free
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r14d, %eax
	addq	$96, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_17:
	movq	%rbx, %rdi
	callq	_TEST_ptr_null
	testl	%eax, %eax
	je	LBB0_19
LBB0_18:
	movl	$1, %r14d
	jmp	LBB0_19
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L___const.test_EVP_MD_fetch.testmsg:    ## @__const.test_EVP_MD_fetch.testmsg
	.asciz	"Hello world"

	.section	__TEXT,__const
	.p2align	4                               ## @__const.test_EVP_MD_fetch.exptd
l___const.test_EVP_MD_fetch.exptd:
	.ascii	"'Q\213\251h0\021\366\263\226\007,\005\366em\004\365\373\303x|\371$\220\354`nP\222\343&"

	.comm	_use_default_ctx,8,3            ## @use_default_ctx
	.comm	_SHA256_DIGEST_LENGTH,4,2       ## @SHA256_DIGEST_LENGTH
	.comm	_SHA256_CBLOCK,4,2              ## @SHA256_CBLOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SHA256"

	.comm	_fetch_property,4,2             ## @fetch_property
	.comm	_expected_fetch_result,8,3      ## @expected_fetch_result
	.comm	_NID_sha256,4,2                 ## @NID_sha256
	.no_dead_strip	_test_EVP_MD_fetch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_EVP_MD_fetch
_test_EVP_MD_fetch:                     ; @test_EVP_MD_fetch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	xzr, [sp, #8]
	stp	xzr, xzr, [x29, #-56]
Lloh3:
	adrp	x8, l___const.test_EVP_MD_fetch.testmsg@PAGE
Lloh4:
	add	x8, x8, l___const.test_EVP_MD_fetch.testmsg@PAGEOFF
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	mov	w8, #27762
	movk	w8, #100, lsl #16
	str	w8, [sp, #64]
Lloh6:
	adrp	x8, l___const.test_EVP_MD_fetch.exptd@PAGE
Lloh7:
	add	x8, x8, l___const.test_EVP_MD_fetch.exptd@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #16]
Lloh8:
	adrp	x8, _use_default_ctx@GOTPAGE
Lloh9:
	ldr	x8, [x8, _use_default_ctx@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
; %bb.1:
	add	x0, sp, #8
	sub	x1, x29, #56
	bl	_load_providers
	cbz	w0, LBB0_13
LBB0_2:
	bl	_EVP_sha256
	add	x1, sp, #56
	add	x3, sp, #16
	mov	w2, #12
	bl	_calculate_digest
	bl	_TEST_true
	cbz	w0, LBB0_13
; %bb.3:
	bl	_EVP_sha256
	bl	_EVP_MD_size
Lloh11:
	adrp	x20, _SHA256_DIGEST_LENGTH@GOTPAGE
Lloh12:
	ldr	x20, [x20, _SHA256_DIGEST_LENGTH@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_TEST_int_eq
	cbz	w0, LBB0_13
; %bb.4:
	bl	_EVP_sha256
	bl	_EVP_MD_block_size
Lloh13:
	adrp	x21, _SHA256_CBLOCK@GOTPAGE
Lloh14:
	ldr	x21, [x21, _SHA256_CBLOCK@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_TEST_int_eq
	cbz	w0, LBB0_13
; %bb.5:
	ldr	x0, [sp, #8]
Lloh15:
	adrp	x8, _fetch_property@GOTPAGE
Lloh16:
	ldr	x8, [x8, _fetch_property@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_EVP_MD_fetch
	mov	x19, x0
Lloh20:
	adrp	x8, _expected_fetch_result@GOTPAGE
Lloh21:
	ldr	x8, [x8, _expected_fetch_result@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.6:
	mov	x0, x19
	bl	_TEST_ptr
	cbz	w0, LBB0_14
; %bb.7:
	mov	x0, x19
	bl	_EVP_MD_nid
Lloh23:
	adrp	x8, _NID_sha256@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NID_sha256@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_TEST_int_eq
	cbz	w0, LBB0_14
; %bb.8:
	add	x1, sp, #56
	add	x3, sp, #16
	mov	x0, x19
	mov	w2, #12
	bl	_calculate_digest
	bl	_TEST_true
	cbz	w0, LBB0_14
; %bb.9:
	mov	x0, x19
	bl	_EVP_MD_size
	ldr	w1, [x20]
	bl	_TEST_int_eq
	cbz	w0, LBB0_14
; %bb.10:
	mov	x0, x19
	bl	_EVP_MD_block_size
	ldr	w1, [x21]
	bl	_TEST_int_eq
	cbz	w0, LBB0_14
; %bb.11:
	mov	x0, x19
	bl	_EVP_MD_up_ref
	bl	_TEST_true
	cbz	w0, LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_EVP_MD_meth_free
	b	LBB0_20
LBB0_13:
	mov	x19, #0
LBB0_14:
	mov	w20, #0
LBB0_15:
	mov	x0, x19
	bl	_EVP_MD_meth_free
	ldur	x0, [x29, #-56]
	bl	_OSSL_PROVIDER_unload
	ldur	x0, [x29, #-48]
	bl	_OSSL_PROVIDER_unload
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_17
; %bb.16:
	bl	_OPENSSL_thread_stop_ex
	ldr	x0, [sp, #8]
	bl	_OPENSSL_CTX_free
LBB0_17:
	ldur	x8, [x29, #-40]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.18:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_19:
	mov	x0, x19
	bl	_TEST_ptr_null
	cbz	w0, LBB0_14
LBB0_20:
	mov	w20, #1
	b	LBB0_15
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.test_EVP_MD_fetch.testmsg:    ; @__const.test_EVP_MD_fetch.testmsg
	.asciz	"Hello world"

	.section	__TEXT,__const
l___const.test_EVP_MD_fetch.exptd:      ; @__const.test_EVP_MD_fetch.exptd
	.ascii	"'Q\213\251h0\021\366\263\226\007,\005\366em\004\365\373\303x|\371$\220\354`nP\222\343&"

	.comm	_use_default_ctx,8,3            ; @use_default_ctx
	.comm	_SHA256_DIGEST_LENGTH,4,2       ; @SHA256_DIGEST_LENGTH
	.comm	_SHA256_CBLOCK,4,2              ; @SHA256_CBLOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SHA256"

	.comm	_fetch_property,4,2             ; @fetch_property
	.comm	_expected_fetch_result,8,3      ; @expected_fetch_result
	.comm	_NID_sha256,4,2                 ; @NID_sha256
	.no_dead_strip	_test_EVP_MD_fetch
.subsections_via_symbols
