	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkey_dh_keygen
_pkey_dh_keygen:                        ## @pkey_dh_keygen
	.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
	movq	16(%rdi), %rax
	cmpq	$0, (%rdi)
	movq	(%rax), %rdi
	je	LBB0_1
## %bb.3:
	testq	%rdi, %rdi
	jne	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	callq	_DH_new
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_9
LBB0_1:
	testq	%rdi, %rdi
	je	LBB0_2
LBB0_4:
	callq	_DH_new_by_nid
	testq	%rax, %rax
	je	LBB0_9
LBB0_7:
	movq	8(%rbx), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_EVP_PKEY_assign
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_EVP_PKEY_copy_parameters
	testl	%eax, %eax
	je	LBB0_9
LBB0_10:
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DH_generate_key                ## TAILCALL
LBB0_2:
	movq	_DH_F_PKEY_DH_KEYGEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DH_R_NO_PARAMETERS_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DHerr
LBB0_9:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DH_F_PKEY_DH_KEYGEN,4,2        ## @DH_F_PKEY_DH_KEYGEN
	.comm	_DH_R_NO_PARAMETERS_SET,4,2     ## @DH_R_NO_PARAMETERS_SET
	.no_dead_strip	_pkey_dh_keygen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkey_dh_keygen
_pkey_dh_keygen:                        ; @pkey_dh_keygen
	.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
	ldr	x8, [x0, #16]
	ldr	x9, [x0]
	ldr	x0, [x8]
	cbz	x9, LBB0_3
; %bb.1:
	cbnz	x0, LBB0_4
; %bb.2:
	bl	_DH_new
	mov	x2, x0
	cbnz	x0, LBB0_5
	b	LBB0_9
LBB0_3:
	cbz	x0, LBB0_8
LBB0_4:
	bl	_DH_new_by_nid
	mov	x2, x0
	cbz	x0, LBB0_9
LBB0_5:
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_EVP_PKEY_assign
	ldr	x1, [x20]
	cbz	x1, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_EVP_PKEY_copy_parameters
	cbz	w0, LBB0_9
LBB0_7:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DH_generate_key
LBB0_8:
Lloh0:
	adrp	x8, _DH_F_PKEY_DH_KEYGEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DH_F_PKEY_DH_KEYGEN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _DH_R_NO_PARAMETERS_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DH_R_NO_PARAMETERS_SET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_DHerr
LBB0_9:
	mov	w0, #0
	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	_DH_F_PKEY_DH_KEYGEN,4,2        ; @DH_F_PKEY_DH_KEYGEN
	.comm	_DH_R_NO_PARAMETERS_SET,4,2     ; @DH_R_NO_PARAMETERS_SET
	.no_dead_strip	_pkey_dh_keygen
.subsections_via_symbols
