	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_PKEY_CTX_dup               ## -- Begin function EVP_PKEY_CTX_dup
	.p2align	4, 0x90
_EVP_PKEY_CTX_dup:                      ## @EVP_PKEY_CTX_dup
	.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_16
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.2:
	movq	%rdi, %rbx
	movq	48(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:
	callq	_ENGINE_init
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	movl	$56, %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	%rax, (%r14)
	movq	48(%rbx), %rax
	movq	%rax, 48(%r14)
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.10:
	callq	_EVP_PKEY_up_ref
	movq	40(%rbx), %rax
	jmp	LBB0_11
LBB0_7:
	movq	_EVP_F_EVP_PKEY_CTX_DUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_EVP_F_EVP_PKEY_CTX_DUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_ENGINE_LIB@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	callq	_EVPerr
	jmp	LBB0_16
LBB0_9:
	xorl	%eax, %eax
LBB0_11:
	movq	%rax, 40(%r14)
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.13:
	callq	_EVP_PKEY_up_ref
	movq	32(%rbx), %rax
	jmp	LBB0_14
LBB0_12:
	xorl	%eax, %eax
LBB0_14:
	movq	%rax, 32(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movl	8(%rbx), %eax
	movl	%eax, 8(%r14)
	movq	(%rbx), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
	testq	%rax, %rax
	jg	LBB0_17
## %bb.15:
	movq	$0, (%r14)
	movq	%r14, %rdi
	callq	_EVP_PKEY_CTX_free
LBB0_16:
	xorl	%r14d, %r14d
LBB0_17:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_F_EVP_PKEY_CTX_DUP,4,2     ## @EVP_F_EVP_PKEY_CTX_DUP
	.comm	_ERR_R_ENGINE_LIB,4,2           ## @ERR_R_ENGINE_LIB
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_PKEY_CTX_dup               ; -- Begin function EVP_PKEY_CTX_dup
	.p2align	2
_EVP_PKEY_CTX_dup:                      ; @EVP_PKEY_CTX_dup
	.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_15
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.2:
	mov	x19, x0
	ldr	x0, [x0, #48]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_ENGINE_init
	cbz	w0, LBB0_8
LBB0_4:
	mov	w0, #56
	bl	_OPENSSL_malloc
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x19]
	str	x8, [x20]
	ldp	x0, x8, [x19, #40]
	str	x8, [x20, #48]
	cbz	x0, LBB0_9
; %bb.6:
	bl	_EVP_PKEY_up_ref
	ldr	x8, [x19, #40]
	b	LBB0_10
LBB0_7:
Lloh0:
	adrp	x8, _EVP_F_EVP_PKEY_CTX_DUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_F_EVP_PKEY_CTX_DUP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_EVPerr
	b	LBB0_16
LBB0_8:
Lloh6:
	adrp	x8, _EVP_F_EVP_PKEY_CTX_DUP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVP_F_EVP_PKEY_CTX_DUP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _ERR_R_ENGINE_LIB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_R_ENGINE_LIB@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_EVPerr
	b	LBB0_15
LBB0_9:
	mov	x8, #0
LBB0_10:
	str	x8, [x20, #40]
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_EVP_PKEY_up_ref
	ldr	x8, [x19, #32]
	b	LBB0_13
LBB0_12:
	mov	x8, #0
LBB0_13:
	stp	xzr, x8, [x20, #24]
	str	xzr, [x20, #16]
	ldr	w8, [x19, #8]
	str	w8, [x20, #8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	cmp	x0, #0
	b.gt	LBB0_16
; %bb.14:
	str	xzr, [x20]
	mov	x0, x20
	bl	_EVP_PKEY_CTX_free
LBB0_15:
	mov	x20, #0
LBB0_16:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_F_EVP_PKEY_CTX_DUP,4,2     ; @EVP_F_EVP_PKEY_CTX_DUP
	.comm	_ERR_R_ENGINE_LIB,4,2           ; @ERR_R_ENGINE_LIB
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
