	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_check_private_key         ## -- Begin function X509_check_private_key
	.p2align	4, 0x90
_X509_check_private_key:                ## @X509_check_private_key
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_X509_get0_pubkey
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_EVP_PKEY_cmp
	movl	%eax, %ebx
	addl	$2, %eax
	cmpl	$2, %eax
	ja	LBB0_5
## %bb.3:
	cltq
	leaq	l_switch.table.X509_check_private_key(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_4
LBB0_1:
	movl	$-2, %ebx
	movq	_X509_R_UNKNOWN_KEY_TYPE@GOTPCREL(%rip), %rax
LBB0_4:
	movq	_X509_F_X509_CHECK_PRIVATE_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_X509err
LBB0_5:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	setg	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_F_X509_CHECK_PRIVATE_KEY,4,2 ## @X509_F_X509_CHECK_PRIVATE_KEY
	.comm	_X509_R_KEY_VALUES_MISMATCH,4,2 ## @X509_R_KEY_VALUES_MISMATCH
	.comm	_X509_R_KEY_TYPE_MISMATCH,4,2   ## @X509_R_KEY_TYPE_MISMATCH
	.comm	_X509_R_UNKNOWN_KEY_TYPE,4,2    ## @X509_R_UNKNOWN_KEY_TYPE
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.X509_check_private_key
l_switch.table.X509_check_private_key:
	.quad	_X509_R_UNKNOWN_KEY_TYPE
	.quad	_X509_R_KEY_TYPE_MISMATCH
	.quad	_X509_R_KEY_VALUES_MISMATCH

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_check_private_key         ; -- Begin function X509_check_private_key
	.p2align	2
_X509_check_private_key:                ; @X509_check_private_key
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_X509_get0_pubkey
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x19
	bl	_EVP_PKEY_cmp
	mov	x19, x0
	add	w8, w0, #2
	cmp	w8, #2
	b.hi	LBB0_5
; %bb.2:
Lloh0:
	adrp	x9, l_switch.table.X509_check_private_key@PAGE
Lloh1:
	add	x9, x9, l_switch.table.X509_check_private_key@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_4
LBB0_3:
	mov	w19, #-2
Lloh2:
	adrp	x8, _X509_R_UNKNOWN_KEY_TYPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _X509_R_UNKNOWN_KEY_TYPE@GOTPAGEOFF]
LBB0_4:
Lloh4:
	adrp	x9, _X509_F_X509_CHECK_PRIVATE_KEY@GOTPAGE
Lloh5:
	ldr	x9, [x9, _X509_F_X509_CHECK_PRIVATE_KEY@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_X509err
LBB0_5:
	cmp	w19, #0
	cset	w0, gt
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_F_X509_CHECK_PRIVATE_KEY,4,2 ; @X509_F_X509_CHECK_PRIVATE_KEY
	.comm	_X509_R_KEY_VALUES_MISMATCH,4,2 ; @X509_R_KEY_VALUES_MISMATCH
	.comm	_X509_R_KEY_TYPE_MISMATCH,4,2   ; @X509_R_KEY_TYPE_MISMATCH
	.comm	_X509_R_UNKNOWN_KEY_TYPE,4,2    ; @X509_R_UNKNOWN_KEY_TYPE
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.X509_check_private_key
l_switch.table.X509_check_private_key:
	.quad	_X509_R_UNKNOWN_KEY_TYPE
	.quad	_X509_R_KEY_TYPE_MISMATCH
	.quad	_X509_R_KEY_VALUES_MISMATCH

.subsections_via_symbols
