	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecdh_KDF_X9_63                 ## -- Begin function ecdh_KDF_X9_63
	.p2align	4, 0x90
_ecdh_KDF_X9_63:                        ## @ecdh_KDF_X9_63
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ECDH_KDF_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r12d, %r12d
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	cmpq	%rcx, %rax
	jb	LBB0_21
## %bb.1:
	movq	%r9, %r13
	cmpq	%r9, %rax
	jb	LBB0_21
## %bb.2:
	movq	%rsi, %rbx
	cmpq	%rsi, %rax
	jb	LBB0_21
## %bb.3:
	movq	%rdi, %r15
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_new
	testq	%rax, %rax
	je	LBB0_21
## %bb.4:
	movq	%rax, %r14
	movq	16(%rbp), %r12
	movq	%r12, %rdi
	callq	_EVP_MD_size
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_EVP_DigestInit_ex
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %eax
	bswapl	%eax
	movl	%eax, -60(%rbp)
	movq	%r14, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$4, %edx
	movq	%r14, %rdi
	leaq	-60(%rbp), %rsi
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_EVP_DigestUpdate
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	jb	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_EVP_DigestFinal
	testl	%eax, %eax
	je	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subq	%rax, %rbx
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	addq	%rax, %r15
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	incl	%r13d
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	16(%rbp), %rsi
	xorl	%edx, %edx
	callq	_EVP_DigestInit_ex
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_20
LBB0_13:
	xorl	%r12d, %r12d
LBB0_20:
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_EVP_MD_CTX_free
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_EVP_DigestFinal
	testl	%eax, %eax
	je	LBB0_20
## %bb.18:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_OPENSSL_cleanse
LBB0_19:
	movl	$1, %r12d
	jmp	LBB0_20
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ECDH_KDF_MAX,8,3               ## @ECDH_KDF_MAX
	.comm	_EVP_MAX_MD_SIZE,4,2            ## @EVP_MAX_MD_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecdh_KDF_X9_63                 ; -- Begin function ecdh_KDF_X9_63
	.p2align	2
_ecdh_KDF_X9_63:                        ; @ecdh_KDF_X9_63
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	stp	x4, x2, [x29, #-112]            ; 16-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _ECDH_KDF_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ECDH_KDF_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x3
	ccmp	x8, x5, #0, hs
	ccmp	x8, x1, #0, hs
	b.lo	LBB0_11
; %bb.1:
	mov	x22, x6
	mov	x23, x5
	mov	x25, x3
	mov	x20, x1
	mov	x21, x0
	bl	_EVP_MD_CTX_new
	cbz	x0, LBB0_11
; %bb.2:
	mov	x19, x0
	mov	x0, x22
	bl	_EVP_MD_size
	mov	x27, x0
	mov	x24, sp
Lloh6:
	adrp	x8, _EVP_MAX_MD_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVP_MAX_MD_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x28, x9, x8
	mov	sp, x28
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	bl	_EVP_DigestInit_ex
	cbz	w0, LBB0_15
; %bb.3:
	mov	w26, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	rev	w8, w26
	stur	w8, [x29, #-92]
	mov	x0, x19
	ldur	x1, [x29, #-104]                ; 8-byte Folded Reload
	mov	x2, x25
	bl	_EVP_DigestUpdate
	cbz	w0, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x1, x29, #92
	mov	x0, x19
	mov	w2, #4
	bl	_EVP_DigestUpdate
	cbz	w0, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	ldur	x1, [x29, #-112]                ; 8-byte Folded Reload
	mov	x2, x23
	bl	_EVP_DigestUpdate
	cbz	w0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	cmp	x20, x27
	b.lo	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x21
	mov	x2, #0
	bl	_EVP_DigestFinal
	cbz	w0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	subs	x20, x20, x27
	b.eq	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, x27
	mov	sp, x24
	mov	x24, sp
	add	w26, w26, #1
Lloh11:
	adrp	x8, _EVP_MAX_MD_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EVP_MAX_MD_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	mov	x9, x8
Lloh14:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh15:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x28, x9, x8
	mov	sp, x28
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	bl	_EVP_DigestInit_ex
	cbnz	w0, LBB0_4
	b	LBB0_15
LBB0_11:
	mov	w20, #0
	b	LBB0_17
LBB0_12:
	mov	x1, x28
	mov	x2, #0
	bl	_EVP_DigestFinal
	cbz	w0, LBB0_15
; %bb.13:
	mov	x0, x21
	mov	x1, x28
	mov	x2, x20
	bl	_memcpy
	mov	x0, x28
	mov	x1, x27
	bl	_OPENSSL_cleanse
LBB0_14:
	mov	w20, #1
	b	LBB0_16
LBB0_15:
	mov	w20, #0
LBB0_16:
	mov	sp, x24
	mov	x0, x19
	bl	_EVP_MD_CTX_free
LBB0_17:
	ldur	x8, [x29, #-88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x20
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ECDH_KDF_MAX,8,3               ; @ECDH_KDF_MAX
	.comm	_EVP_MAX_MD_SIZE,4,2            ; @EVP_MAX_MD_SIZE
.subsections_via_symbols
