	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function params_to_key
_params_to_key:                         ## @params_to_key
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_params_to_domparams
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	_OSSL_PKEY_PARAM_DH_PRIV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate_const
	movq	%rax, %r12
	movq	_OSSL_PKEY_PARAM_DH_PUB_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %rbx
	testq	%r12, %r12
	je	LBB0_5
## %bb.4:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_OSSL_PARAM_get_BN
	testl	%eax, %eax
	je	LBB0_7
LBB0_5:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_get_BN
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	-40(%rbp), %rsi
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_DH_set0_key
	movl	$1, %r15d
	testl	%eax, %eax
	jne	LBB0_8
LBB0_7:
	movq	-48(%rbp), %rdi
	callq	_BN_free
	movq	-40(%rbp), %rdi
	callq	_BN_free
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSSL_PKEY_PARAM_DH_PRIV_KEY,4,2 ## @OSSL_PKEY_PARAM_DH_PRIV_KEY
	.comm	_OSSL_PKEY_PARAM_DH_PUB_KEY,4,2 ## @OSSL_PKEY_PARAM_DH_PUB_KEY
	.no_dead_strip	_params_to_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function params_to_key
_params_to_key:                         ; @params_to_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	stp	xzr, xzr, [sp]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_params_to_domparams
	cbz	w0, LBB0_9
; %bb.2:
Lloh0:
	adrp	x8, _OSSL_PKEY_PARAM_DH_PRIV_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSSL_PKEY_PARAM_DH_PRIV_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	mov	x21, x0
Lloh3:
	adrp	x8, _OSSL_PKEY_PARAM_DH_PUB_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OSSL_PKEY_PARAM_DH_PUB_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_9
; %bb.3:
	mov	x20, x0
	cbz	x21, LBB0_5
; %bb.4:
	add	x1, sp, #8
	mov	x0, x21
	bl	_OSSL_PARAM_get_BN
	cbz	w0, LBB0_8
LBB0_5:
	mov	x1, sp
	mov	x0, x20
	bl	_OSSL_PARAM_get_BN
	cbz	w0, LBB0_8
; %bb.6:
	ldp	x1, x2, [sp]
	mov	x0, x19
	bl	_DH_set0_key
	cbz	w0, LBB0_8
; %bb.7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	ldr	x0, [sp, #8]
	bl	_BN_free
	ldr	x0, [sp]
	bl	_BN_free
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OSSL_PKEY_PARAM_DH_PRIV_KEY,4,2 ; @OSSL_PKEY_PARAM_DH_PRIV_KEY
	.comm	_OSSL_PKEY_PARAM_DH_PUB_KEY,4,2 ; @OSSL_PKEY_PARAM_DH_PUB_KEY
	.no_dead_strip	_params_to_key
.subsections_via_symbols
