	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2d_PublicKey                  ## -- Begin function i2d_PublicKey
	.p2align	4, 0x90
_i2d_PublicKey:                         ## @i2d_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_EVP_PKEY_id
	cmpl	$130, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_get0_RSA
	movl	%eax, %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_i2d_RSAPublicKey               ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_get0_DSA
	movl	%eax, %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_i2d_DSAPublicKey               ## TAILCALL
LBB0_5:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_get0_EC_KEY
	movl	%eax, %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_i2o_ECPublicKey                ## TAILCALL
LBB0_6:
	movq	_ASN1_F_I2D_PUBLICKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASN1err
	movl	$-1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_F_I2D_PUBLICKEY,4,2       ## @ASN1_F_I2D_PUBLICKEY
	.comm	_ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE,4,2 ## @ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2d_PublicKey                  ; -- Begin function i2d_PublicKey
	.p2align	2
_i2d_PublicKey:                         ; @i2d_PublicKey
	.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
	mov	x20, x0
	bl	_EVP_PKEY_id
	cmp	w0, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #128
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_EVP_PKEY_get0_RSA
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i2d_RSAPublicKey
LBB0_4:
	mov	x0, x20
	bl	_EVP_PKEY_get0_DSA
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i2d_DSAPublicKey
LBB0_5:
	mov	x0, x20
	bl	_EVP_PKEY_get0_EC_KEY
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i2o_ECPublicKey
LBB0_6:
Lloh0:
	adrp	x8, _ASN1_F_I2D_PUBLICKEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_F_I2D_PUBLICKEY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ASN1err
	mov	w0, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_F_I2D_PUBLICKEY,4,2       ; @ASN1_F_I2D_PUBLICKEY
	.comm	_ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE,4,2 ; @ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE
.subsections_via_symbols
