	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecdh_cms_set_kdf_param
_ecdh_cms_set_kdf_param:                ## @ecdh_cms_set_kdf_param
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_NID_undef@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%esi, (%rax)
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	leaq	-20(%rbp), %rax
	leaq	-24(%rbp), %rdx
	movl	%esi, %edi
	movq	%rax, %rsi
	callq	_OBJ_find_sigid_algs
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	movl	-24(%rbp), %eax
	movq	_NID_dh_std_kdf@GOTPCREL(%rip), %rcx
	movl	$0, %esi
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	movq	_NID_dh_cofactor_kdf@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	movl	$1, %esi
	cmpl	(%rcx), %eax
	jne	LBB0_10
LBB0_4:
	movq	%r14, %rdi
	callq	_EVP_PKEY_CTX_set_ecdh_cofactor_mode
	testq	%rax, %rax
	jle	LBB0_9
## %bb.5:
	movq	_EVP_PKEY_ECDH_KDF_X9_63@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_EVP_PKEY_CTX_set_ecdh_kdf_type
	testq	%rax, %rax
	jle	LBB0_9
## %bb.6:
	movl	-20(%rbp), %edi
	callq	_EVP_get_digestbynid
	movl	$0, %ebx
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_EVP_PKEY_CTX_set_ecdh_kdf_md
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setg	%bl
	jmp	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NID_undef,4,2                  ## @NID_undef
	.comm	_NID_dh_std_kdf,4,2             ## @NID_dh_std_kdf
	.comm	_NID_dh_cofactor_kdf,4,2        ## @NID_dh_cofactor_kdf
	.comm	_EVP_PKEY_ECDH_KDF_X9_63,4,2    ## @EVP_PKEY_ECDH_KDF_X9_63
	.no_dead_strip	_ecdh_cms_set_kdf_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecdh_cms_set_kdf_param
_ecdh_cms_set_kdf_param:                ; @ecdh_cms_set_kdf_param
	.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
Lloh0:
	adrp	x9, _NID_undef@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NID_undef@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w1
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_11
LBB0_2:
	mov	x8, x1
	mov	x19, x0
	add	x1, sp, #8
	add	x2, sp, #12
	mov	x0, x8
	bl	_OBJ_find_sigid_algs
	cbz	w0, LBB0_11
; %bb.3:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _NID_dh_std_kdf@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NID_dh_std_kdf@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
	mov	w1, #0
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x9, _NID_dh_cofactor_kdf@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NID_dh_cofactor_kdf@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_1
; %bb.6:
	mov	w1, #1
LBB0_7:
	mov	x0, x19
	bl	_EVP_PKEY_CTX_set_ecdh_cofactor_mode
	cmp	x0, #1
	b.lt	LBB0_1
; %bb.8:
Lloh9:
	adrp	x8, _EVP_PKEY_ECDH_KDF_X9_63@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVP_PKEY_ECDH_KDF_X9_63@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_EVP_PKEY_CTX_set_ecdh_kdf_type
	cmp	x0, #1
	b.lt	LBB0_1
; %bb.9:
	ldr	w0, [sp, #8]
	bl	_EVP_get_digestbynid
	cbz	x0, LBB0_11
; %bb.10:
	mov	x1, x0
	mov	x0, x19
	bl	_EVP_PKEY_CTX_set_ecdh_kdf_md
	cmp	x0, #0
	cset	w0, gt
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NID_undef,4,2                  ; @NID_undef
	.comm	_NID_dh_std_kdf,4,2             ; @NID_dh_std_kdf
	.comm	_NID_dh_cofactor_kdf,4,2        ; @NID_dh_cofactor_kdf
	.comm	_EVP_PKEY_ECDH_KDF_X9_63,4,2    ; @EVP_PKEY_ECDH_KDF_X9_63
	.no_dead_strip	_ecdh_cms_set_kdf_param
.subsections_via_symbols
