	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ssl_read_record        ## -- Begin function mbedtls_ssl_read_record
	.p2align	4, 0x90
_mbedtls_ssl_read_record:               ## @mbedtls_ssl_read_record
	.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, %r14
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	cmpq	$0, (%r14)
	je	LBB0_1
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	$0, (%r14)
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_1:
	movq	_MBEDTLS_ERR_SSL_NON_FATAL@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_mbedtls_ssl_read_record_layer
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_mbedtls_ssl_handle_message_type
	cmpl	%eax, (%r15)
	je	LBB0_2
## %bb.5:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:
	movq	8(%r14), %rax
	movq	_MBEDTLS_SSL_MSG_HANDSHAKE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_mbedtls_ssl_update_handshake_status
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %ebx
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	callq	_MBEDTLS_SSL_DEBUG_RET
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"=> read record"

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

	.comm	_MBEDTLS_ERR_SSL_NON_FATAL,4,2  ## @MBEDTLS_ERR_SSL_NON_FATAL
	.comm	_MBEDTLS_SSL_MSG_HANDSHAKE,8,3  ## @MBEDTLS_SSL_MSG_HANDSHAKE
L_.str.2:                               ## @.str.2
	.asciz	"<= reuse previously read message"

L_.str.3:                               ## @.str.3
	.asciz	"<= read record"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_ssl_read_record        ; -- Begin function mbedtls_ssl_read_record
	.p2align	2
_mbedtls_ssl_read_record:               ; @mbedtls_ssl_read_record
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	str	xzr, [x19]
LBB0_2:
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	mov	w20, #0
	b	LBB0_11
LBB0_3:
Lloh6:
	adrp	x21, _MBEDTLS_ERR_SSL_NON_FATAL@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MBEDTLS_ERR_SSL_NON_FATAL@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_mbedtls_ssl_read_record_layer
	cbnz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_mbedtls_ssl_handle_message_type
	ldr	w8, [x21]
	cmp	w8, w0
	b.eq	LBB0_4
; %bb.6:
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _MBEDTLS_SSL_MSG_HANDSHAKE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MBEDTLS_SSL_MSG_HANDSHAKE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.8:
	mov	x0, x19
	bl	_mbedtls_ssl_update_handshake_status
	b	LBB0_2
LBB0_9:
	mov	x20, x0
LBB0_10:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_MBEDTLS_SSL_DEBUG_RET
LBB0_11:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"=> read record"

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

	.comm	_MBEDTLS_ERR_SSL_NON_FATAL,4,2  ; @MBEDTLS_ERR_SSL_NON_FATAL
	.comm	_MBEDTLS_SSL_MSG_HANDSHAKE,8,3  ; @MBEDTLS_SSL_MSG_HANDSHAKE
l_.str.2:                               ; @.str.2
	.asciz	"<= reuse previously read message"

l_.str.3:                               ; @.str.3
	.asciz	"<= read record"

.subsections_via_symbols
