	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ssl_parse_finished     ## -- Begin function mbedtls_ssl_parse_finished
	.p2align	4, 0x90
_mbedtls_ssl_parse_finished:            ## @mbedtls_ssl_parse_finished
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_SSL_MAX_HASH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	40(%r15), %rax
	movq	56(%r15), %rcx
	movl	(%rax), %edx
	xorl	$1, %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	*8(%rcx)
	movq	%r15, %rdi
	callq	_mbedtls_ssl_read_record
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_MBEDTLS_SSL_DEBUG_RET
	jmp	LBB0_9
LBB0_2:
	movq	(%r15), %rax
	movq	_MBEDTLS_SSL_MSG_HANDSHAKE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movq	_MBEDTLS_SSL_HS_FINISHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	24(%r15), %rbx
	movq	%r15, %rdi
	callq	_mbedtls_ssl_hs_hdr_len
                                        ## kill: def $eax killed $eax def $rax
	addl	$12, %eax
	cmpq	%rax, %rbx
	jne	LBB0_6
## %bb.5:
	movq	16(%r15), %rbx
	movq	%r15, %rdi
	callq	_mbedtls_ssl_hs_hdr_len
	cltq
	leaq	(%rbx,%rax,8), %rdi
	movq	%r14, %rsi
	movl	$12, %edx
	callq	_mbedtls_ssl_safer_memcmp
	testq	%rax, %rax
	je	LBB0_11
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	_MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_mbedtls_ssl_send_alert_message
	movq	_MBEDTLS_ERR_SSL_BAD_HS_FINISHED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	_MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MBEDTLS_SSL_ALERT_MSG_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_mbedtls_ssl_send_alert_message
	movq	_MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ebx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_14
## %bb.10:
	movl	%ebx, %eax
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	56(%r15), %rax
	cmpq	$0, (%rax)
	jne	LBB0_13
## %bb.12:
	incl	48(%r15)
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_MAX_HASH_LEN,4,2           ## @SSL_MAX_HASH_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"=> parse finished"

L_.str.1:                               ## @.str.1
	.asciz	"mbedtls_ssl_read_record"

	.comm	_MBEDTLS_SSL_MSG_HANDSHAKE,8,3  ## @MBEDTLS_SSL_MSG_HANDSHAKE
L_.str.2:                               ## @.str.2
	.asciz	"bad finished message"

	.comm	_MBEDTLS_SSL_ALERT_LEVEL_FATAL,4,2 ## @MBEDTLS_SSL_ALERT_LEVEL_FATAL
	.comm	_MBEDTLS_SSL_ALERT_MSG_UNEXPECTED_MESSAGE,4,2 ## @MBEDTLS_SSL_ALERT_MSG_UNEXPECTED_MESSAGE
	.comm	_MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE,4,2 ## @MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE
	.comm	_MBEDTLS_SSL_HS_FINISHED,8,3    ## @MBEDTLS_SSL_HS_FINISHED
	.comm	_MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR,4,2 ## @MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR
	.comm	_MBEDTLS_ERR_SSL_BAD_HS_FINISHED,4,2 ## @MBEDTLS_ERR_SSL_BAD_HS_FINISHED
L_.str.3:                               ## @.str.3
	.asciz	"<= parse finished"

	.comm	_MBEDTLS_SSL_CLIENT_CHANGE_CIPHER_SPEC,4,2 ## @MBEDTLS_SSL_CLIENT_CHANGE_CIPHER_SPEC
	.comm	_MBEDTLS_SSL_HANDSHAKE_WRAPUP,4,2 ## @MBEDTLS_SSL_HANDSHAKE_WRAPUP
	.comm	_MBEDTLS_SSL_IS_CLIENT,4,2      ## @MBEDTLS_SSL_IS_CLIENT
	.comm	_MBEDTLS_SSL_IS_SERVER,4,2      ## @MBEDTLS_SSL_IS_SERVER
	.comm	_MBEDTLS_SSL_MINOR_VERSION_0,8,3 ## @MBEDTLS_SSL_MINOR_VERSION_0
	.comm	_MBEDTLS_SSL_TRANSPORT_DATAGRAM,8,3 ## @MBEDTLS_SSL_TRANSPORT_DATAGRAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ssl_parse_finished     ; -- Begin function mbedtls_ssl_parse_finished
	.p2align	2
_mbedtls_ssl_parse_finished:            ; @mbedtls_ssl_parse_finished
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _SSL_MAX_HASH_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_MAX_HASH_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	ldr	x8, [x19, #56]
	ldr	x8, [x8, #8]
	ldr	x9, [x19, #40]
	ldr	w9, [x9]
	eor	w2, w9, #0x1
	mov	x0, x19
	mov	x1, x20
	blr	x8
	mov	x0, x19
	bl	_mbedtls_ssl_read_record
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_MBEDTLS_SSL_DEBUG_RET
	b	LBB0_9
LBB0_2:
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _MBEDTLS_SSL_MSG_HANDSHAKE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MBEDTLS_SSL_MSG_HANDSHAKE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _MBEDTLS_SSL_HS_FINISHED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MBEDTLS_SSL_HS_FINISHED@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	x21, [x19, #24]
	mov	x0, x19
	bl	_mbedtls_ssl_hs_hdr_len
	add	w8, w0, #12
	cmp	x21, x8
	b.ne	LBB0_6
; %bb.5:
	ldr	x21, [x19, #16]
	mov	x0, x19
	bl	_mbedtls_ssl_hs_hdr_len
	add	x0, x21, w0, sxtw #3
	mov	x1, x20
	mov	w2, #12
	bl	_mbedtls_ssl_safer_memcmp
	cbz	x0, LBB0_11
LBB0_6:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh20:
	adrp	x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mbedtls_ssl_send_alert_message
Lloh26:
	adrp	x8, _MBEDTLS_ERR_SSL_BAD_HS_FINISHED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_BAD_HS_FINISHED@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh30:
	adrp	x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _MBEDTLS_SSL_ALERT_MSG_UNEXPECTED_MESSAGE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_MSG_UNEXPECTED_MESSAGE@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mbedtls_ssl_send_alert_message
Lloh36:
	adrp	x8, _MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE@GOTPAGEOFF]
LBB0_8:
	ldr	w21, [x8]
LBB0_9:
	ldur	x8, [x29, #-40]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.10:
	mov	x0, x21
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x8, [x19, #56]
	ldr	x8, [x8]
	cbnz	x8, LBB0_13
; %bb.12:
	ldr	w8, [x19, #48]
	add	w8, w8, #1
	str	w8, [x19, #48]
LBB0_13:
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	mov	w21, #0
	b	LBB0_9
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_MAX_HASH_LEN,4,2           ; @SSL_MAX_HASH_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"=> parse finished"

l_.str.1:                               ; @.str.1
	.asciz	"mbedtls_ssl_read_record"

	.comm	_MBEDTLS_SSL_MSG_HANDSHAKE,8,3  ; @MBEDTLS_SSL_MSG_HANDSHAKE
l_.str.2:                               ; @.str.2
	.asciz	"bad finished message"

	.comm	_MBEDTLS_SSL_ALERT_LEVEL_FATAL,4,2 ; @MBEDTLS_SSL_ALERT_LEVEL_FATAL
	.comm	_MBEDTLS_SSL_ALERT_MSG_UNEXPECTED_MESSAGE,4,2 ; @MBEDTLS_SSL_ALERT_MSG_UNEXPECTED_MESSAGE
	.comm	_MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE,4,2 ; @MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE
	.comm	_MBEDTLS_SSL_HS_FINISHED,8,3    ; @MBEDTLS_SSL_HS_FINISHED
	.comm	_MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR,4,2 ; @MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR
	.comm	_MBEDTLS_ERR_SSL_BAD_HS_FINISHED,4,2 ; @MBEDTLS_ERR_SSL_BAD_HS_FINISHED
l_.str.3:                               ; @.str.3
	.asciz	"<= parse finished"

	.comm	_MBEDTLS_SSL_CLIENT_CHANGE_CIPHER_SPEC,4,2 ; @MBEDTLS_SSL_CLIENT_CHANGE_CIPHER_SPEC
	.comm	_MBEDTLS_SSL_HANDSHAKE_WRAPUP,4,2 ; @MBEDTLS_SSL_HANDSHAKE_WRAPUP
	.comm	_MBEDTLS_SSL_IS_CLIENT,4,2      ; @MBEDTLS_SSL_IS_CLIENT
	.comm	_MBEDTLS_SSL_IS_SERVER,4,2      ; @MBEDTLS_SSL_IS_SERVER
	.comm	_MBEDTLS_SSL_MINOR_VERSION_0,8,3 ; @MBEDTLS_SSL_MINOR_VERSION_0
	.comm	_MBEDTLS_SSL_TRANSPORT_DATAGRAM,8,3 ; @MBEDTLS_SSL_TRANSPORT_DATAGRAM
.subsections_via_symbols
