	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkey_dh_paramgen
_pkey_dh_paramgen:                      ## @pkey_dh_paramgen
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r13
	movl	(%r13), %eax
	cmpq	$3, %rax
	ja	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movq	%rdi, %rbx
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.10:
	callq	_DH_new_by_nid
	testq	%rax, %rax
	je	LBB0_25
## %bb.11:
	movq	_EVP_PKEY_DH@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_1:
	movl	$-2, %r15d
	jmp	LBB0_26
LBB0_3:
	xorl	%eax, %eax
	callq	_DH_get_1024_160
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	callq	_DH_get_2048_224
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	callq	_DH_get_2048_256
LBB0_6:
	movq	_EVP_PKEY_DHX@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movq	%rax, %rdx
LBB0_8:
	callq	_EVP_PKEY_assign
	movl	$1, %r15d
LBB0_26:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%r15d, %r15d
	cmpq	$0, (%rbx)
	je	LBB0_13
## %bb.14:
	xorl	%eax, %eax
	callq	_BN_GENCB_new
	testq	%rax, %rax
	je	LBB0_26
## %bb.15:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_evp_pkey_set_cb_translate
	cmpq	$0, 24(%r13)
	jne	LBB0_17
LBB0_20:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DH_new
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movq	%rax, %rbx
	movl	16(%r13), %edx
	movl	20(%r13), %esi
	movq	%rax, %rdi
	movq	%r12, %rcx
	callq	_DH_generate_parameters_ex
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_BN_GENCB_free
	testl	%r15d, %r15d
	je	LBB0_24
## %bb.23:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_EVP_PKEY_assign_DH
	jmp	LBB0_26
LBB0_13:
	xorl	%r12d, %r12d
	cmpq	$0, 24(%r13)
	je	LBB0_20
LBB0_17:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_dsa_dh_generate
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_BN_GENCB_free
	testq	%rbx, %rbx
	je	LBB0_26
## %bb.18:
	movq	%rbx, %rdi
	callq	_DSA_dup_DH
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_DSA_free
	testq	%r12, %r12
	je	LBB0_26
## %bb.19:
	movq	_EVP_PKEY_DHX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	jmp	LBB0_8
LBB0_21:
	movq	%r12, %rdi
	callq	_BN_GENCB_free
	jmp	LBB0_26
LBB0_24:
	movq	%rbx, %rdi
	callq	_DH_free
LBB0_25:
	xorl	%r15d, %r15d
	jmp	LBB0_26
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_EVP_PKEY_DHX,4,2               ## @EVP_PKEY_DHX
	.comm	_EVP_PKEY_DH,4,2                ## @EVP_PKEY_DH
	.no_dead_strip	_pkey_dh_paramgen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkey_dh_paramgen
_pkey_dh_paramgen:                      ; @pkey_dh_paramgen
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x20, [x0, #8]
	ldr	w8, [x20]
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x22, x0
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_13
; %bb.3:
	bl	_DH_new_by_nid
	cbz	x0, LBB0_23
; %bb.4:
	mov	x2, x0
Lloh2:
	adrp	x8, _EVP_PKEY_DH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EVP_PKEY_DH@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	mov	w20, #-2
	b	LBB0_12
LBB0_6:
	bl	_DH_get_1024_160
	b	LBB0_9
LBB0_7:
	bl	_DH_get_2048_224
	b	LBB0_9
LBB0_8:
	bl	_DH_get_2048_256
LBB0_9:
	mov	x2, x0
Lloh4:
	adrp	x8, _EVP_PKEY_DHX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EVP_PKEY_DHX@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	mov	x0, x19
LBB0_11:
	bl	_EVP_PKEY_assign
	mov	w20, #1
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	x8, [x22]
	cbz	x8, LBB0_19
; %bb.14:
	bl	_BN_GENCB_new
	cbz	x0, LBB0_23
; %bb.15:
	mov	x21, x0
	mov	x1, x22
	bl	_evp_pkey_set_cb_translate
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_20
LBB0_16:
	bl	_DH_new
	cbz	x0, LBB0_24
; %bb.17:
	mov	x22, x0
	ldp	w2, w1, [x20, #16]
	mov	x3, x21
	bl	_DH_generate_parameters_ex
	mov	x20, x0
	mov	x0, x21
	bl	_BN_GENCB_free
	cbz	w20, LBB0_25
; %bb.18:
	mov	x0, x19
	mov	x1, x22
	bl	_EVP_PKEY_assign_DH
	b	LBB0_12
LBB0_19:
	mov	x21, #0
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_16
LBB0_20:
	mov	x0, x20
	mov	x1, x21
	bl	_dsa_dh_generate
	mov	x20, x0
	mov	x0, x21
	bl	_BN_GENCB_free
	cbz	x20, LBB0_12
; %bb.21:
	mov	x0, x20
	bl	_DSA_dup_DH
	mov	x21, x0
	mov	x0, x20
	bl	_DSA_free
	cbz	x21, LBB0_23
; %bb.22:
Lloh6:
	adrp	x8, _EVP_PKEY_DHX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVP_PKEY_DHX@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	b	LBB0_11
LBB0_23:
	mov	w20, #0
	b	LBB0_12
LBB0_24:
	mov	x0, x21
	bl	_BN_GENCB_free
	mov	w20, #0
	b	LBB0_12
LBB0_25:
	mov	x0, x22
	bl	_DH_free
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_EVP_PKEY_DHX,4,2               ; @EVP_PKEY_DHX
	.comm	_EVP_PKEY_DH,4,2                ; @EVP_PKEY_DH
	.no_dead_strip	_pkey_dh_paramgen
.subsections_via_symbols
