	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d2i_PublicKey                  ## -- Begin function d2i_PublicKey
	.p2align	4, 0x90
_d2i_PublicKey:                         ## @d2i_PublicKey
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, %r13d
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_EVP_PKEY_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
LBB0_3:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_id
	cmpl	%r13d, %eax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_EVP_PKEY_set_type
	testl	%eax, %eax
	je	LBB0_17
LBB0_5:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_id
	cmpl	$130, %eax
	je	LBB0_11
## %bb.6:
	cmpl	$129, %eax
	je	LBB0_13
## %bb.7:
	cmpl	$128, %eax
	jne	LBB0_16
## %bb.8:
	xorl	%edi, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_d2i_RSAPublicKey
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_18
LBB0_10:
	movq	_ASN1_F_D2I_PUBLICKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_EVP_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASN1err
	jmp	LBB0_22
LBB0_11:
	leaq	4(%rbx), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_d2i_DSAPublicKey
	testl	%eax, %eax
	je	LBB0_18
LBB0_14:
	testq	%r14, %r14
	je	LBB0_23
## %bb.15:
	movq	%rbx, (%r14)
	jmp	LBB0_23
LBB0_13:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_o2i_ECPublicKey
	testl	%eax, %eax
	jne	LBB0_14
LBB0_18:
	movq	_ERR_R_ASN1_LIB@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_16:
	movq	_ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	movq	_ERR_R_EVP_LIB@GOTPCREL(%rip), %rax
LBB0_19:
	movq	_ASN1_F_D2I_PUBLICKEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_ASN1err
	testq	%r14, %r14
	je	LBB0_21
## %bb.20:
	cmpq	%rbx, (%r14)
	je	LBB0_22
LBB0_21:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_free
LBB0_22:
	xorl	%ebx, %ebx
LBB0_23:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_F_D2I_PUBLICKEY,4,2       ## @ASN1_F_D2I_PUBLICKEY
	.comm	_ERR_R_EVP_LIB,4,2              ## @ERR_R_EVP_LIB
	.comm	_ERR_R_ASN1_LIB,4,2             ## @ERR_R_ASN1_LIB
	.comm	_ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE,4,2 ## @ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d2i_PublicKey                  ; -- Begin function d2i_PublicKey
	.p2align	2
_d2i_PublicKey:                         ; @d2i_PublicKey
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	cbz	x1, LBB0_2
; %bb.1:
	ldr	x19, [x20]
	cbnz	x19, LBB0_3
LBB0_2:
	bl	_EVP_PKEY_new
	mov	x19, x0
	cbz	x0, LBB0_9
LBB0_3:
	mov	x0, x19
	bl	_EVP_PKEY_id
	cmp	w0, w23
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x23
	bl	_EVP_PKEY_set_type
	cbz	w0, LBB0_16
LBB0_5:
	mov	x0, x19
	bl	_EVP_PKEY_id
	cmp	w0, #130
	b.eq	LBB0_10
; %bb.6:
	cmp	w0, #129
	b.eq	LBB0_13
; %bb.7:
	cmp	w0, #128
	b.ne	LBB0_15
; %bb.8:
	mov	x0, #0
	mov	x1, x22
	mov	x2, x21
	bl	_d2i_RSAPublicKey
	str	x0, [x19, #8]
	cbnz	x0, LBB0_11
	b	LBB0_14
LBB0_9:
Lloh0:
	adrp	x8, _ASN1_F_D2I_PUBLICKEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_F_D2I_PUBLICKEY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_EVP_LIB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_EVP_LIB@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ASN1err
	b	LBB0_21
LBB0_10:
	add	x0, x19, #4
	mov	x1, x22
	mov	x2, x21
	bl	_d2i_DSAPublicKey
	cbz	w0, LBB0_14
LBB0_11:
	cbz	x20, LBB0_21
; %bb.12:
	str	x19, [x20]
	b	LBB0_21
LBB0_13:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_o2i_ECPublicKey
	cbnz	w0, LBB0_11
LBB0_14:
Lloh6:
	adrp	x8, _ERR_R_ASN1_LIB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_ASN1_LIB@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh8:
	adrp	x8, _ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh10:
	adrp	x8, _ERR_R_EVP_LIB@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERR_R_EVP_LIB@GOTPAGEOFF]
LBB0_17:
Lloh12:
	adrp	x9, _ASN1_F_D2I_PUBLICKEY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ASN1_F_D2I_PUBLICKEY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_ASN1err
	cbz	x20, LBB0_19
; %bb.18:
	ldr	x8, [x20]
	cmp	x8, x19
	b.eq	LBB0_20
LBB0_19:
	mov	x0, x19
	bl	_EVP_PKEY_free
LBB0_20:
	mov	x19, #0
LBB0_21:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_F_D2I_PUBLICKEY,4,2       ; @ASN1_F_D2I_PUBLICKEY
	.comm	_ERR_R_EVP_LIB,4,2              ; @ERR_R_EVP_LIB
	.comm	_ERR_R_ASN1_LIB,4,2             ; @ERR_R_ASN1_LIB
	.comm	_ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE,4,2 ; @ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE
.subsections_via_symbols
