	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_EVP_PKEY_check
_test_EVP_PKEY_check:                   ## @test_EVP_PKEY_check
	.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	_keycheckdata@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	leaq	(%rcx,%rcx,4), %rcx
	movq	(%rax,%rcx,8), %r14
	movq	8(%rax,%rcx,8), %r13
	movl	16(%rax,%rcx,8), %r12d
	movl	20(%rax,%rcx,8), %esi
	movl	24(%rax,%rcx,8), %edx
	movl	28(%rax,%rcx,8), %ebx
	movl	32(%rax,%rcx,8), %eax
	movq	%r14, -72(%rbp)
	cmpl	$2, %eax
	je	LBB0_18
## %bb.1:
	cmpl	$1, %eax
	je	LBB0_9
## %bb.2:
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_37
## %bb.3:
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	-72(%rbp), %rsi
	xorl	%edi, %edi
	movq	%r13, %rdx
	callq	_d2i_AutoPrivateKey
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movq	-72(%rbp), %rdi
	addq	%r13, %r14
	movq	%r14, %rsi
	callq	_TEST_ptr_eq
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_EVP_PKEY_id
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_TEST_int_eq
	xorl	%r12d, %r12d
	movl	$0, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	jmp	LBB0_24
LBB0_18:
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	-72(%rbp), %rsi
	xorl	%edi, %edi
	movq	%r13, %rdx
	callq	_d2i_ECParameters
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_TEST_ptr
	movl	$0, %edi
	movl	$0, %ebx
	movl	$0, %r15d
	movl	$0, %r12d
	testl	%eax, %eax
	je	LBB0_36
## %bb.19:
	movq	-72(%rbp), %rdi
	addq	%r13, %r14
	movq	%r14, %rsi
	callq	_TEST_ptr_eq
	testl	%eax, %eax
	je	LBB0_20
## %bb.21:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_EVP_PKEY_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_22
## %bb.23:
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_EVP_PKEY_assign_EC_KEY
	movl	%eax, %edi
	callq	_TEST_true
	xorl	%r12d, %r12d
	movl	$0, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
LBB0_24:
	movl	$0, %edi
	movl	$0, %r15d
	testl	%eax, %eax
	jne	LBB0_25
	jmp	LBB0_36
LBB0_9:
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_BIO_new_mem_buf
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_d2i_EC_PUBKEY_bio
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_EVP_PKEY_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movq	%rbx, %r13
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_EVP_PKEY_assign_EC_KEY
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movq	%r13, %rbx
LBB0_25:
	movq	%rbx, %r14
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_EVP_PKEY_CTX_new
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_26
## %bb.27:
	movq	%r13, %rdi
	callq	_EVP_PKEY_check
	movl	%eax, %edi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_28
## %bb.29:
	movq	%r13, %rdi
	callq	_EVP_PKEY_public_check
	movl	%eax, %edi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_28
## %bb.30:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_EVP_PKEY_param_check
	movl	%eax, %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_31
## %bb.32:
	xorl	%r15d, %r15d
	movl	$233811181, %edi                ## imm = 0xDEFACED
	xorl	%esi, %esi
	callq	_EVP_PKEY_CTX_new_id
	movq	%rax, %r13
	movq	%r14, %rbx
	movq	%r14, %rdi
	callq	_EVP_PKEY_up_ref
	movq	%r14, (%r13)
	movq	%r13, %rdi
	callq	_EVP_PKEY_check
	movl	%eax, %edi
	movl	$48879, %esi                    ## imm = 0xBEEF
	callq	_TEST_int_eq
	testl	%eax, %eax
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_35
## %bb.33:
	movq	%r13, %rdi
	callq	_EVP_PKEY_public_check
	movl	%eax, %edi
	movl	$48879, %esi                    ## imm = 0xBEEF
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_35
## %bb.34:
	movq	%r13, %rdi
	callq	_EVP_PKEY_param_check
	movl	%eax, %edi
	movl	$48879, %esi                    ## imm = 0xBEEF
	callq	_TEST_int_eq
	xorl	%r15d, %r15d
	testl	%eax, %eax
	setne	%r15b
	jmp	LBB0_35
LBB0_10:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_36
LBB0_7:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_4:
	movq	%r15, %rbx
	xorl	%edi, %edi
	jmp	LBB0_5
LBB0_20:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	xorl	%ebx, %ebx
LBB0_5:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_36
LBB0_12:
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_36
LBB0_28:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r14, %rbx
	movq	%r13, %rdi
	jmp	LBB0_36
LBB0_26:
	xorl	%r15d, %r15d
	movq	%r14, %rbx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	jmp	LBB0_36
LBB0_22:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	xorl	%r12d, %r12d
	jmp	LBB0_36
LBB0_14:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	jmp	LBB0_36
LBB0_17:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	xorl	%r15d, %r15d
	movq	%r13, %rbx
	jmp	LBB0_36
LBB0_31:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
LBB0_35:
	movq	%r14, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_36:
	callq	_EVP_PKEY_CTX_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_EVP_PKEY_CTX_free
	movq	%rbx, %rdi
	callq	_EVP_PKEY_free
	movq	%r12, %rdi
	callq	_BIO_free
LBB0_37:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_keycheckdata,8,3               ## @keycheckdata
	.no_dead_strip	_test_EVP_PKEY_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_EVP_PKEY_check
_test_EVP_PKEY_check:                   ; @test_EVP_PKEY_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, _keycheckdata@GOTPAGE
Lloh1:
	ldr	x8, [x8, _keycheckdata@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #40
	smaddl	x8, w0, w9, x8
	ldp	x20, x21, [x8]
	ldp	w25, w24, [x8, #16]
	ldp	w23, w22, [x8, #24]
	ldr	w8, [x8, #32]
	str	x20, [sp, #8]
	cmp	w8, #2
	b.eq	LBB0_7
; %bb.1:
	cmp	w8, #1
	b.eq	LBB0_12
; %bb.2:
	cbnz	w8, LBB0_23
; %bb.3:
	add	x1, sp, #8
	mov	x0, #0
	mov	x2, x21
	bl	_d2i_AutoPrivateKey
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_24
; %bb.4:
	ldr	x0, [sp, #8]
	add	x1, x20, x21
	bl	_TEST_ptr_eq
	cbz	w0, LBB0_24
; %bb.5:
	mov	x0, x19
	bl	_EVP_PKEY_id
	mov	x1, x25
	bl	_TEST_int_eq
	mov	x25, #0
	cbz	w0, LBB0_11
LBB0_6:
	mov	x20, x25
	b	LBB0_16
LBB0_7:
	add	x1, sp, #8
	mov	x0, #0
	mov	x2, x21
	bl	_d2i_ECParameters
	mov	x25, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_25
; %bb.8:
	ldr	x0, [sp, #8]
	add	x1, x20, x21
	bl	_TEST_ptr_eq
	cbz	w0, LBB0_25
; %bb.9:
	bl	_EVP_PKEY_new
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_24
; %bb.10:
	mov	x0, x19
	mov	x1, x25
	bl	_EVP_PKEY_assign_EC_KEY
	bl	_TEST_true
	mov	x25, #0
	cbnz	w0, LBB0_6
LBB0_11:
	mov	w22, #0
	mov	x21, x25
	mov	x20, x25
	b	LBB0_31
LBB0_12:
	mov	x0, x20
	mov	x1, x21
	bl	_BIO_new_mem_buf
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_27
; %bb.13:
	mov	x0, x20
	mov	x1, #0
	bl	_d2i_EC_PUBKEY_bio
	mov	x21, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_27
; %bb.14:
	bl	_EVP_PKEY_new
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_29
; %bb.15:
	mov	x0, x19
	mov	x1, x21
	bl	_EVP_PKEY_assign_EC_KEY
	bl	_TEST_true
	cbz	w0, LBB0_29
LBB0_16:
	mov	x0, x19
	mov	x1, #0
	bl	_EVP_PKEY_CTX_new
	mov	x21, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_28
; %bb.17:
	mov	x0, x21
	bl	_EVP_PKEY_check
	mov	x1, x24
	bl	_TEST_int_eq
	cbz	w0, LBB0_28
; %bb.18:
	mov	x0, x21
	bl	_EVP_PKEY_public_check
	mov	x1, x23
	bl	_TEST_int_eq
	cbz	w0, LBB0_28
; %bb.19:
	mov	x0, x21
	bl	_EVP_PKEY_param_check
	mov	x1, x22
	bl	_TEST_int_eq
	cbz	w0, LBB0_28
; %bb.20:
	mov	w0, #44269
	movk	w0, #3567, lsl #16
	mov	x1, #0
	bl	_EVP_PKEY_CTX_new_id
	mov	x25, x0
	mov	x0, x19
	bl	_EVP_PKEY_up_ref
	str	x19, [x25]
	mov	x0, x25
	bl	_EVP_PKEY_check
	mov	w1, #48879
	bl	_TEST_int_eq
	cbz	w0, LBB0_30
; %bb.21:
	mov	x0, x25
	bl	_EVP_PKEY_public_check
	mov	w1, #48879
	bl	_TEST_int_eq
	cbz	w0, LBB0_30
; %bb.22:
	mov	x0, x25
	bl	_EVP_PKEY_param_check
	mov	w1, #48879
	bl	_TEST_int_eq
	cmp	w0, #0
	cset	w22, ne
	b	LBB0_31
LBB0_23:
	mov	w22, #0
	b	LBB0_32
LBB0_24:
	mov	x25, #0
	mov	x21, #0
	b	LBB0_26
LBB0_25:
	mov	x25, #0
	mov	x21, #0
	mov	x19, #0
LBB0_26:
	mov	w22, #0
	mov	x20, #0
	b	LBB0_31
LBB0_27:
	mov	x25, #0
	mov	x21, #0
	mov	x19, #0
	b	LBB0_30
LBB0_28:
	mov	x25, #0
	b	LBB0_30
LBB0_29:
	mov	x25, #0
	mov	x21, #0
LBB0_30:
	mov	w22, #0
LBB0_31:
	mov	x0, x21
	bl	_EVP_PKEY_CTX_free
	mov	x0, x25
	bl	_EVP_PKEY_CTX_free
	mov	x0, x19
	bl	_EVP_PKEY_free
	mov	x0, x20
	bl	_BIO_free
LBB0_32:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_keycheckdata,8,3               ; @keycheckdata
	.no_dead_strip	_test_EVP_PKEY_check
.subsections_via_symbols
