	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkey_ec_kdf_derive
_pkey_ec_kdf_derive:                    ## @pkey_ec_kdf_derive
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	(%r12), %rax
	movq	_EVP_PKEY_ECDH_KDF_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.12:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pkey_ec_derive                 ## TAILCALL
LBB0_1:
	testq	%r15, %r15
	je	LBB0_2
## %bb.3:
	movq	(%r13), %rax
	xorl	%r14d, %r14d
	cmpq	8(%r12), %rax
	jne	LBB0_11
## %bb.4:
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pkey_ec_derive
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movq	-48(%rbp), %rdi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%rax, %rbx
	callq	_pkey_ec_derive
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	(%r13), %rsi
	movq	-48(%rbp), %rcx
	movl	24(%r12), %r8d
	movl	16(%r12), %eax
	movl	20(%r12), %r9d
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_ecdh_KDF_X9_63
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%r14b
	jmp	LBB0_10
LBB0_2:
	movq	8(%r12), %rax
	movq	%rax, (%r13)
	movl	$1, %r14d
	jmp	LBB0_11
LBB0_6:
	movq	_EC_F_PKEY_EC_KDF_DERIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	jmp	LBB0_11
LBB0_8:
	xorl	%r14d, %r14d
LBB0_10:
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_OPENSSL_clear_free
LBB0_11:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_PKEY_ECDH_KDF_NONE,8,3     ## @EVP_PKEY_ECDH_KDF_NONE
	.comm	_EC_F_PKEY_EC_KDF_DERIVE,4,2    ## @EC_F_PKEY_EC_KDF_DERIVE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_pkey_ec_kdf_derive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkey_ec_kdf_derive
_pkey_ec_kdf_derive:                    ; @pkey_ec_kdf_derive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x23, [x0]
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _EVP_PKEY_ECDH_KDF_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EVP_PKEY_ECDH_KDF_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_pkey_ec_derive
LBB0_2:
	cbz	x19, LBB0_9
; %bb.3:
	ldr	x8, [x20]
	ldr	x9, [x23, #8]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, #0
	bl	_pkey_ec_derive
	cbz	w0, LBB0_8
; %bb.5:
	ldr	x0, [sp, #8]
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_10
; %bb.6:
	mov	x22, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x22
	bl	_pkey_ec_derive
	cbz	w0, LBB0_11
; %bb.7:
	ldr	x1, [x20]
	ldr	x3, [sp, #8]
	ldp	w5, w4, [x23, #20]
	ldr	w6, [x23, #16]
	mov	x0, x19
	mov	x2, x22
	bl	_ecdh_KDF_X9_63
	cmp	w0, #0
	cset	w19, ne
	b	LBB0_12
LBB0_8:
	mov	w19, #0
	b	LBB0_13
LBB0_9:
	ldr	x8, [x23, #8]
	str	x8, [x20]
	mov	w19, #1
	b	LBB0_13
LBB0_10:
Lloh3:
	adrp	x8, _EC_F_PKEY_EC_KDF_DERIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EC_F_PKEY_EC_KDF_DERIVE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ECerr
	mov	w19, #0
	b	LBB0_13
LBB0_11:
	mov	w19, #0
LBB0_12:
	ldr	x1, [sp, #8]
	mov	x0, x22
	bl	_OPENSSL_clear_free
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_PKEY_ECDH_KDF_NONE,8,3     ; @EVP_PKEY_ECDH_KDF_NONE
	.comm	_EC_F_PKEY_EC_KDF_DERIVE,4,2    ; @EC_F_PKEY_EC_KDF_DERIVE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_pkey_ec_kdf_derive
.subsections_via_symbols
