	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_PKEY2PKCS8                 ## -- Begin function EVP_PKEY2PKCS8
	.p2align	4, 0x90
_EVP_PKEY2PKCS8:                        ## @EVP_PKEY2PKCS8
	.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, %r14
	xorl	%eax, %eax
	callq	_PKCS8_PRIV_KEY_INFO_new
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*%rcx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	_EVP_R_PRIVATE_KEY_ENCODE_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_EVP_F_EVP_PKEY2PKCS8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVPerr
	jmp	LBB0_9
LBB0_3:
	movq	_EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_EVP_R_METHOD_NOT_SUPPORTED@GOTPCREL(%rip), %rax
LBB0_8:
	movq	_EVP_F_EVP_PKEY2PKCS8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_EVPerr
	movq	%rbx, %rdi
	callq	_PKCS8_PRIV_KEY_INFO_free
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_F_EVP_PKEY2PKCS8,4,2       ## @EVP_F_EVP_PKEY2PKCS8
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_EVP_R_PRIVATE_KEY_ENCODE_ERROR,4,2 ## @EVP_R_PRIVATE_KEY_ENCODE_ERROR
	.comm	_EVP_R_METHOD_NOT_SUPPORTED,4,2 ## @EVP_R_METHOD_NOT_SUPPORTED
	.comm	_EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM,4,2 ## @EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_PKEY2PKCS8                 ; -- Begin function EVP_PKEY2PKCS8
	.p2align	2
_EVP_PKEY2PKCS8:                        ; @EVP_PKEY2PKCS8
	.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	x20, x0
	bl	_PKCS8_PRIV_KEY_INFO_new
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cbnz	w0, LBB0_9
; %bb.4:
Lloh0:
	adrp	x8, _EVP_R_PRIVATE_KEY_ENCODE_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_R_PRIVATE_KEY_ENCODE_ERROR@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh2:
	adrp	x8, _EVP_F_EVP_PKEY2PKCS8@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EVP_F_EVP_PKEY2PKCS8@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_EVPerr
	b	LBB0_9
LBB0_6:
Lloh8:
	adrp	x8, _EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _EVP_R_METHOD_NOT_SUPPORTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EVP_R_METHOD_NOT_SUPPORTED@GOTPAGEOFF]
LBB0_8:
Lloh12:
	adrp	x9, _EVP_F_EVP_PKEY2PKCS8@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EVP_F_EVP_PKEY2PKCS8@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_EVPerr
	mov	x0, x19
	bl	_PKCS8_PRIV_KEY_INFO_free
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_F_EVP_PKEY2PKCS8,4,2       ; @EVP_F_EVP_PKEY2PKCS8
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_EVP_R_PRIVATE_KEY_ENCODE_ERROR,4,2 ; @EVP_R_PRIVATE_KEY_ENCODE_ERROR
	.comm	_EVP_R_METHOD_NOT_SUPPORTED,4,2 ; @EVP_R_METHOD_NOT_SUPPORTED
	.comm	_EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM,4,2 ; @EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM
.subsections_via_symbols
