	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ECDH_compute_key               ## -- Begin function ECDH_compute_key
	.p2align	4, 0x90
_ECDH_compute_key:                      ## @ECDH_compute_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)
	movq	$0, -32(%rbp)
	movq	(%rcx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movq	_INT_MAX@GOTPCREL(%rip), %rsi
	cmpq	%rbx, (%rsi)
	jae	LBB0_5
## %bb.4:
	movq	_EC_F_ECDH_COMPUTE_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_INVALID_OUTPUT_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EC_F_ECDH_COMPUTE_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_OPERATION_NOT_SUPPORTED@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	callq	_ECerr
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_5:
	movq	%r8, %r15
	movq	%rdi, %r14
	leaq	-32(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:
	movq	-32(%rbp), %rdi
	movq	-40(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdx
	callq	*%r15
	jmp	LBB0_12
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_9:
	movq	-40(%rbp), %rax
	cmpq	%rbx, %rax
	jae	LBB0_11
## %bb.10:
	movq	%rax, -48(%rbp)
	movq	%rax, %rbx
LBB0_11:
	movq	-32(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_memcpy
LBB0_12:
	movq	-32(%rbp), %rdi
	movq	-40(%rbp), %rsi
	callq	_OPENSSL_clear_free
	movl	-48(%rbp), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_F_ECDH_COMPUTE_KEY,4,2      ## @EC_F_ECDH_COMPUTE_KEY
	.comm	_EC_R_OPERATION_NOT_SUPPORTED,4,2 ## @EC_R_OPERATION_NOT_SUPPORTED
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_EC_R_INVALID_OUTPUT_LENGTH,4,2 ## @EC_R_INVALID_OUTPUT_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ECDH_compute_key               ; -- Begin function ECDH_compute_key
	.p2align	2
_ECDH_compute_key:                      ; @ECDH_compute_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	stp	xzr, x1, [sp, #16]
	ldr	x8, [x3]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x21, x1
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x1
	b.hs	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _EC_F_ECDH_COMPUTE_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EC_F_ECDH_COMPUTE_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _EC_R_INVALID_OUTPUT_LENGTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EC_R_INVALID_OUTPUT_LENGTH@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _EC_F_ECDH_COMPUTE_KEY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EC_F_ECDH_COMPUTE_KEY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _EC_R_OPERATION_NOT_SUPPORTED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EC_R_OPERATION_NOT_SUPPORTED@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	bl	_ECerr
	mov	w0, #0
	b	LBB0_12
LBB0_5:
	mov	x20, x4
	mov	x19, x0
	add	x0, sp, #16
	add	x1, sp, #8
	blr	x8
	cbz	w0, LBB0_12
; %bb.6:
	cbz	x20, LBB0_8
; %bb.7:
	ldp	x1, x0, [sp, #8]
	add	x3, sp, #24
	mov	x2, x19
	blr	x20
	b	LBB0_11
LBB0_8:
	ldr	x8, [sp, #8]
	cmp	x8, x21
	b.hs	LBB0_10
; %bb.9:
	str	x8, [sp, #24]
	mov	x21, x8
LBB0_10:
	ldr	x1, [sp, #16]
	mov	x0, x19
	mov	x2, x21
	bl	_memcpy
LBB0_11:
	ldp	x1, x0, [sp, #8]
	bl	_OPENSSL_clear_free
	ldr	w0, [sp, #24]
LBB0_12:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_F_ECDH_COMPUTE_KEY,4,2      ; @EC_F_ECDH_COMPUTE_KEY
	.comm	_EC_R_OPERATION_NOT_SUPPORTED,4,2 ; @EC_R_OPERATION_NOT_SUPPORTED
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_EC_R_INVALID_OUTPUT_LENGTH,4,2 ; @EC_R_INVALID_OUTPUT_LENGTH
.subsections_via_symbols
