	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2d_PrivateKey                 ## -- Begin function i2d_PrivateKey
	.p2align	4, 0x90
_i2d_PrivateKey:                        ## @i2d_PrivateKey
	.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	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.8:
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_2:
	cmpq	$0, 8(%rax)
	je	LBB0_6
## %bb.3:
	callq	_EVP_PKEY2PKCS8
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_i2d_PKCS8_PRIV_KEY_INFO
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_PKCS8_PRIV_KEY_INFO_free
	movl	%ebx, %eax
	jmp	LBB0_7
LBB0_6:
	movq	_ASN1_F_I2D_PRIVATEKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASN1err
	movl	$-1, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_F_I2D_PRIVATEKEY,4,2      ## @ASN1_F_I2D_PRIVATEKEY
	.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_PrivateKey                 ; -- Begin function i2d_PrivateKey
	.p2align	2
_i2d_PrivateKey:                        ; @i2d_PrivateKey
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x19, x1
	ldr	x2, [x8]
	cbz	x2, LBB0_3
; %bb.2:
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x2
LBB0_3:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_6
; %bb.4:
	bl	_EVP_PKEY2PKCS8
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
	mov	x1, x19
	bl	_i2d_PKCS8_PRIV_KEY_INFO
	mov	x19, x0
	mov	x0, x20
	bl	_PKCS8_PRIV_KEY_INFO_free
	mov	x0, x19
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _ASN1_F_I2D_PRIVATEKEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_F_I2D_PRIVATEKEY@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
LBB0_7:
	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_PRIVATEKEY,4,2      ; @ASN1_F_I2D_PRIVATEKEY
	.comm	_ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE,4,2 ; @ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE
.subsections_via_symbols
