	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function key_to_params
_key_to_params:                         ## @key_to_params
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_domparams_to_params
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_DSA_get0_key
	movq	_OSSL_PKEY_PARAM_DSA_PRIV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	-40(%rbp), %rsi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_set_BN
	testl	%eax, %eax
	je	LBB0_7
LBB0_4:
	movq	_OSSL_PKEY_PARAM_DSA_PUB_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_set_BN
	testl	%eax, %eax
	je	LBB0_7
LBB0_6:
	movl	$1, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSSL_PKEY_PARAM_DSA_PRIV_KEY,4,2 ## @OSSL_PKEY_PARAM_DSA_PRIV_KEY
	.comm	_OSSL_PKEY_PARAM_DSA_PUB_KEY,4,2 ## @OSSL_PKEY_PARAM_DSA_PUB_KEY
	.no_dead_strip	_key_to_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function key_to_params
_key_to_params:                         ; @key_to_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	stp	xzr, xzr, [sp]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	bl	_domparams_to_params
	cbz	w0, LBB0_7
; %bb.2:
	mov	x1, sp
	add	x2, sp, #8
	mov	x0, x20
	bl	_DSA_get0_key
Lloh0:
	adrp	x8, _OSSL_PKEY_PARAM_DSA_PRIV_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSSL_PKEY_PARAM_DSA_PRIV_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_OSSL_PARAM_locate
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x1, [sp, #8]
	bl	_OSSL_PARAM_set_BN
	cbz	w0, LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _OSSL_PKEY_PARAM_DSA_PUB_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OSSL_PKEY_PARAM_DSA_PUB_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_OSSL_PARAM_locate
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x1, [sp]
	bl	_OSSL_PARAM_set_BN
	cbz	w0, LBB0_7
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OSSL_PKEY_PARAM_DSA_PRIV_KEY,4,2 ; @OSSL_PKEY_PARAM_DSA_PRIV_KEY
	.comm	_OSSL_PKEY_PARAM_DSA_PUB_KEY,4,2 ; @OSSL_PKEY_PARAM_DSA_PUB_KEY
	.no_dead_strip	_key_to_params
.subsections_via_symbols
