	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mac_test_run_pkey
_mac_test_run_pkey:                     ## @mac_test_run_pkey
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %r15
	movq	$0, -80(%rbp)
	movq	32(%r15), %rbx
	movq	(%r15), %rdi
	callq	_OBJ_nid2sn
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	32(%r15), %rdx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TEST_info
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TEST_info
LBB0_3:
	movq	(%r15), %rdi
	movq	_EVP_PKEY_CMAC@GOTPCREL(%rip), %rax
	movl	44(%r15), %ebx
	movl	40(%r15), %r14d
	cmpq	(%rax), %rdi
	jne	LBB0_5
## %bb.4:
	movq	32(%r15), %rdi
	callq	_EVP_get_cipherbyname
	xorl	%edi, %edi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_EVP_PKEY_new_CMAC_key
	jmp	LBB0_6
LBB0_5:
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_EVP_PKEY_new_raw_private_key
LBB0_6:
	movq	%rax, %r14
	testq	%rax, %rax
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.9:
	movq	(%r15), %rax
	movq	_EVP_PKEY_HMAC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.13:
	movq	32(%r15), %rdi
	callq	_EVP_get_digestbyname
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	jne	LBB0_11
## %bb.14:
	leaq	L_.str.3(%rip), %r12
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %r12
LBB0_8:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_32
LBB0_10:
	xorl	%r12d, %r12d
LBB0_11:
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_12
## %bb.15:
	leaq	-80(%rbp), %rsi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_EVP_DigestSignInit
	testl	%eax, %eax
	je	LBB0_16
## %bb.18:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	24(%r15), %edi
	callq	_sk_OPENSSL_STRING_num
	testl	%eax, %eax
	jle	LBB0_23
## %bb.19:
	leaq	L_.str.6(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %r14
	movl	24(%r15), %edi
	movl	%ebx, %esi
	callq	_sk_OPENSSL_STRING_value
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_mac_test_ctrl_pkey
	testl	%eax, %eax
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_21 Depth=1
	incl	%ebx
	movl	24(%r15), %edi
	callq	_sk_OPENSSL_STRING_num
	cmpl	%eax, %ebx
	jl	LBB0_21
LBB0_23:
	movl	16(%r15), %edx
	movl	20(%r15), %esi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_EVP_DigestSignUpdate
	testl	%eax, %eax
	je	LBB0_24
## %bb.25:
	leaq	-64(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_EVP_DigestSignFinal
	testl	%eax, %eax
	je	LBB0_26
## %bb.27:
	movq	-64(%rbp), %rdi
	callq	_OPENSSL_malloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_28
## %bb.29:
	leaq	-64(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_EVP_DigestSignFinal
	testl	%eax, %eax
	je	LBB0_30
## %bb.31:
	movl	8(%r15), %ecx
	movl	12(%r15), %edx
	movq	-64(%rbp), %r9
	leaq	L_.str.10(%rip), %r15
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %r8
	callq	_memory_err_compare
	xorl	%r12d, %r12d
	testl	%eax, %eax
	cmoveq	%r15, %r12
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_32
LBB0_12:
	leaq	L_.str.4(%rip), %r12
	movq	%rbx, %r13
	xorl	%ebx, %ebx
	jmp	LBB0_32
LBB0_16:
	leaq	L_.str.5(%rip), %r12
	jmp	LBB0_17
LBB0_22:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_17:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	xorl	%ebx, %ebx
	jmp	LBB0_32
LBB0_24:
	leaq	L_.str.7(%rip), %r12
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_32
LBB0_26:
	leaq	L_.str.8(%rip), %r12
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	xorl	%ebx, %ebx
	jmp	LBB0_32
LBB0_28:
	leaq	L_.str.9(%rip), %r12
	jmp	LBB0_32
LBB0_30:
	leaq	L_.str.10(%rip), %r12
LBB0_32:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movq	%r13, %rdi
	callq	_EVP_MD_CTX_free
	movq	%rbx, %rdi
	callq	_OPENSSL_free
	xorl	%edi, %edi
	callq	_EVP_PKEY_CTX_free
	movq	%r14, %rdi
	callq	_EVP_PKEY_free
	movl	$1, %eax
	addq	$40, %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	"Trying the EVP_PKEY %s test"

L_.str.1:                               ## @.str.1
	.asciz	"Trying the EVP_PKEY %s test with %s"

	.comm	_EVP_PKEY_CMAC,8,3              ## @EVP_PKEY_CMAC
L_.str.2:                               ## @.str.2
	.asciz	"MAC_KEY_CREATE_ERROR"

	.comm	_EVP_PKEY_HMAC,8,3              ## @EVP_PKEY_HMAC
L_.str.3:                               ## @.str.3
	.asciz	"MAC_ALGORITHM_SET_ERROR"

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

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

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

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

L_.str.8:                               ## @.str.8
	.asciz	"DIGESTSIGNFINAL_LENGTH_ERROR"

L_.str.9:                               ## @.str.9
	.asciz	"TEST_FAILURE"

L_.str.10:                              ## @.str.10
	.asciz	"TEST_MAC_ERR"

	.no_dead_strip	_mac_test_run_pkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mac_test_run_pkey
_mac_test_run_pkey:                     ; @mac_test_run_pkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	ldr	x25, [x0, #8]
	str	xzr, [sp, #24]
	ldr	x20, [x25, #32]
	ldr	x0, [x25]
	bl	_OBJ_nid2sn
	mov	x1, x0
	cbz	x20, LBB0_2
; %bb.1:
	ldr	x8, [x25, #32]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_3:
	bl	_TEST_info
	ldr	x0, [x25]
Lloh4:
	adrp	x8, _EVP_PKEY_CMAC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EVP_PKEY_CMAC@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldp	w21, w20, [x25, #40]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.4:
	ldr	x0, [x25, #32]
	bl	_EVP_get_cipherbyname
	mov	x3, x0
	mov	x0, #0
	mov	x1, x20
	mov	x2, x21
	bl	_EVP_PKEY_new_CMAC_key
	mov	x20, x0
	cbz	x0, LBB0_9
LBB0_5:
	ldr	x8, [x25]
Lloh7:
	adrp	x9, _EVP_PKEY_HMAC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EVP_PKEY_HMAC@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	ldr	x0, [x25, #32]
	bl	_EVP_get_digestbyname
	mov	x22, x0
	bl	_TEST_ptr
	cbnz	w0, LBB0_11
; %bb.7:
	mov	x21, #0
	mov	x23, #0
Lloh10:
	adrp	x22, l_.str.3@PAGE
Lloh11:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_28
LBB0_8:
	mov	x1, #0
	mov	x2, x20
	mov	x3, x21
	bl	_EVP_PKEY_new_raw_private_key
	mov	x20, x0
	cbnz	x0, LBB0_5
LBB0_9:
	mov	x21, #0
	mov	x23, #0
Lloh12:
	adrp	x22, l_.str.2@PAGE
Lloh13:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_28
LBB0_10:
	mov	x22, #0
LBB0_11:
	bl	_EVP_MD_CTX_new
	mov	x21, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_22
; %bb.12:
	add	x1, sp, #24
	mov	x0, x21
	mov	x2, x22
	mov	x3, #0
	mov	x4, x20
	bl	_EVP_DigestSignInit
	cbz	w0, LBB0_23
; %bb.13:
	ldr	w0, [x25, #24]
	bl	_sk_OPENSSL_STRING_num
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.14:
	mov	w23, #0
Lloh14:
	adrp	x22, l_.str.6@PAGE
Lloh15:
	add	x22, x22, l_.str.6@PAGEOFF
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x24, [sp, #24]
	ldr	w0, [x25, #24]
	mov	x1, x23
	bl	_sk_OPENSSL_STRING_value
	mov	x2, x0
	mov	x0, x19
	mov	x1, x24
	bl	_mac_test_ctrl_pkey
	cbz	w0, LBB0_24
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	w23, w23, #1
	ldr	w0, [x25, #24]
	bl	_sk_OPENSSL_STRING_num
	cmp	w23, w0
	b.lt	LBB0_15
LBB0_17:
	ldp	w2, w1, [x25, #16]
	mov	x0, x21
	bl	_EVP_DigestSignUpdate
	cbz	w0, LBB0_25
; %bb.18:
	add	x2, sp, #16
	mov	x0, x21
	mov	x1, #0
	bl	_EVP_DigestSignFinal
	cbz	w0, LBB0_26
; %bb.19:
	ldr	x0, [sp, #16]
	bl	_OPENSSL_malloc
	mov	x23, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_27
; %bb.20:
	add	x2, sp, #16
	mov	x0, x21
	mov	x1, x23
	bl	_EVP_DigestSignFinal
Lloh16:
	adrp	x22, l_.str.10@PAGE
Lloh17:
	add	x22, x22, l_.str.10@PAGEOFF
	cbz	w0, LBB0_28
; %bb.21:
	ldp	w3, w2, [x25, #8]
	ldr	x5, [sp, #16]
	mov	x0, x19
	mov	x1, x22
	mov	x4, x23
	bl	_memory_err_compare
	cmp	w0, #0
	csel	x22, x22, xzr, eq
	b	LBB0_28
LBB0_22:
	mov	x23, #0
Lloh18:
	adrp	x22, l_.str.4@PAGE
Lloh19:
	add	x22, x22, l_.str.4@PAGEOFF
	b	LBB0_28
LBB0_23:
	mov	x23, #0
Lloh20:
	adrp	x22, l_.str.5@PAGE
Lloh21:
	add	x22, x22, l_.str.5@PAGEOFF
	b	LBB0_28
LBB0_24:
	mov	x23, #0
	b	LBB0_28
LBB0_25:
	mov	x23, #0
Lloh22:
	adrp	x22, l_.str.7@PAGE
Lloh23:
	add	x22, x22, l_.str.7@PAGEOFF
	b	LBB0_28
LBB0_26:
	mov	x23, #0
Lloh24:
	adrp	x22, l_.str.8@PAGE
Lloh25:
	add	x22, x22, l_.str.8@PAGEOFF
	b	LBB0_28
LBB0_27:
Lloh26:
	adrp	x22, l_.str.9@PAGE
Lloh27:
	add	x22, x22, l_.str.9@PAGEOFF
LBB0_28:
	str	x22, [x19]
	mov	x0, x21
	bl	_EVP_MD_CTX_free
	mov	x0, x23
	bl	_OPENSSL_free
	mov	x0, #0
	bl	_EVP_PKEY_CTX_free
	mov	x0, x20
	bl	_EVP_PKEY_free
	mov	w0, #1
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trying the EVP_PKEY %s test"

l_.str.1:                               ; @.str.1
	.asciz	"Trying the EVP_PKEY %s test with %s"

	.comm	_EVP_PKEY_CMAC,8,3              ; @EVP_PKEY_CMAC
l_.str.2:                               ; @.str.2
	.asciz	"MAC_KEY_CREATE_ERROR"

	.comm	_EVP_PKEY_HMAC,8,3              ; @EVP_PKEY_HMAC
l_.str.3:                               ; @.str.3
	.asciz	"MAC_ALGORITHM_SET_ERROR"

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

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

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

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

l_.str.8:                               ; @.str.8
	.asciz	"DIGESTSIGNFINAL_LENGTH_ERROR"

l_.str.9:                               ; @.str.9
	.asciz	"TEST_FAILURE"

l_.str.10:                              ; @.str.10
	.asciz	"TEST_MAC_ERR"

	.no_dead_strip	_mac_test_run_pkey
.subsections_via_symbols
