	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_calc_finished_tls_sha384
_ssl_calc_finished_tls_sha384:          ## @ssl_calc_finished_tls_sha384
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r14
	testq	%r14, %r14
	jne	LBB0_2
## %bb.1:
	movq	8(%r13), %r14
LBB0_2:
	leaq	-112(%rbp), %r15
	movq	%r15, %rdi
	callq	_mbedtls_sha512_init
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	(%r13), %rsi
	addq	$8, %rsi
	movq	%r15, %rdi
	callq	_mbedtls_sha512_clone
	movq	-112(%rbp), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edi
	movl	$8, %ecx
	callq	_MBEDTLS_SSL_DEBUG_BUF
	movq	_MBEDTLS_SSL_IS_CLIENT@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rbx
	cmoveq	%rax, %rbx
	leaq	-96(%rbp), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mbedtls_sha512_finish
	movq	(%r13), %rax
	movl	(%r14), %edi
	movl	$12, (%rsp)
	movl	$48, %esi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movl	$48, %r8d
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %r9
	callq	*(%rax)
	leaq	L_.str.4(%rip), %rsi
	movl	$3, %edi
	movq	%rbx, %rdx
	movl	$12, %ecx
	callq	_MBEDTLS_SSL_DEBUG_BUF
	movq	%r15, %rdi
	callq	_mbedtls_sha512_free
	movq	%r12, %rdi
	movl	$48, %esi
	callq	_mbedtls_zeroize
	leaq	L_.str.5(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"=> calc  finished tls sha384"

L_.str.1:                               ## @.str.1
	.asciz	"finished sha512 state"

	.comm	_MBEDTLS_SSL_IS_CLIENT,4,2      ## @MBEDTLS_SSL_IS_CLIENT
L_.str.2:                               ## @.str.2
	.asciz	"client finished"

L_.str.3:                               ## @.str.3
	.asciz	"server finished"

L_.str.4:                               ## @.str.4
	.asciz	"calc finished result"

L_.str.5:                               ## @.str.5
	.asciz	"<= calc  finished"

	.no_dead_strip	_ssl_calc_finished_tls_sha384
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_calc_finished_tls_sha384
_ssl_calc_finished_tls_sha384:          ; @ssl_calc_finished_tls_sha384
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x22, [x0, #16]
	cbnz	x22, LBB0_2
; %bb.1:
	ldr	x22, [x20, #8]
LBB0_2:
	mov	x0, sp
	bl	_mbedtls_sha512_init
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	ldr	x8, [x20]
	add	x1, x8, #8
	mov	x0, sp
	bl	_mbedtls_sha512_clone
	ldr	x2, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #4
	mov	w3, #8
	bl	_MBEDTLS_SSL_DEBUG_BUF
Lloh7:
	adrp	x8, _MBEDTLS_SSL_IS_CLIENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MBEDTLS_SSL_IS_CLIENT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, l_.str.3@PAGE
Lloh11:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh12:
	adrp	x10, l_.str.2@PAGE
Lloh13:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, w21
	csel	x21, x10, x9, eq
	mov	x0, sp
	add	x1, sp, #8
	bl	_mbedtls_sha512_finish
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w0, [x22]
	add	x3, sp, #8
	mov	w1, #48
	mov	x2, x21
	mov	w4, #48
	mov	x5, x19
	mov	w6, #12
	blr	x8
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #3
	mov	x2, x19
	mov	w3, #12
	bl	_MBEDTLS_SSL_DEBUG_BUF
	mov	x0, sp
	bl	_mbedtls_sha512_free
	add	x0, sp, #8
	mov	w1, #48
	bl	_mbedtls_zeroize
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	ldur	x8, [x29, #-40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"=> calc  finished tls sha384"

l_.str.1:                               ; @.str.1
	.asciz	"finished sha512 state"

	.comm	_MBEDTLS_SSL_IS_CLIENT,4,2      ; @MBEDTLS_SSL_IS_CLIENT
l_.str.2:                               ; @.str.2
	.asciz	"client finished"

l_.str.3:                               ; @.str.3
	.asciz	"server finished"

l_.str.4:                               ; @.str.4
	.asciz	"calc finished result"

l_.str.5:                               ; @.str.5
	.asciz	"<= calc  finished"

	.no_dead_strip	_ssl_calc_finished_tls_sha384
.subsections_via_symbols
