	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_parse_hello_verify_request
_ssl_parse_hello_verify_request:        ## @ssl_parse_hello_verify_request
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %r14
	callq	_mbedtls_ssl_hs_hdr_len
	movslq	%eax, %r15
	leaq	(%r14,%r15), %rbx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edi
	movq	%rbx, %rdx
	movl	$2, %ecx
	callq	_MBEDTLS_SSL_DEBUG_BUF
	movq	24(%r12), %rax
	movl	8(%rax), %edx
	leaq	-40(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rcx
	callq	_mbedtls_ssl_read_version
	movl	-40(%rbp), %eax
	movq	_MBEDTLS_SSL_MAJOR_VERSION_3@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_4
## %bb.1:
	movl	-36(%rbp), %ecx
	movq	_MBEDTLS_SSL_MINOR_VERSION_2@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jl	LBB0_4
## %bb.2:
	movq	24(%r12), %rdx
	cmpl	(%rdx), %eax
	jg	LBB0_4
## %bb.3:
	cmpl	4(%rdx), %ecx
	jle	LBB0_7
LBB0_4:
	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_PROTOCOL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_mbedtls_ssl_send_alert_message
	movq	_MBEDTLS_ERR_SSL_BAD_HS_PROTOCOL_VERSION@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	addq	%r14, %r15
	addq	$2, %r15
	movb	(%r15), %al
	incq	%r15
	movzbl	%al, %r14d
	leaq	L_.str.3(%rip), %rsi
	movl	$3, %edi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_MBEDTLS_SSL_DEBUG_BUF
	movslq	8(%r12), %rax
	addq	(%r12), %rax
	subq	%r15, %rax
	cmpq	%r14, %rax
	jge	LBB0_9
## %bb.8:
	leaq	L_.str.4(%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	%r12, %rdi
	callq	_mbedtls_ssl_send_alert_message
	movq	_MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	movq	16(%r12), %rax
	movq	8(%rax), %rdi
	callq	_mbedtls_free
	movl	$1, %edi
	movl	%r14d, %esi
	callq	_mbedtls_calloc
	movq	16(%r12), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	16(%r12), %rax
	movb	%r14b, (%rax)
	movq	_MBEDTLS_SSL_CLIENT_HELLO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	%r12, %rdi
	callq	_mbedtls_ssl_reset_checksum
	movq	%r12, %rdi
	callq	_mbedtls_ssl_recv_flight_completed
	leaq	L_.str.6(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_11:
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	_MBEDTLS_ERR_SSL_ALLOC_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"=> parse hello verify request"

L_.str.1:                               ## @.str.1
	.asciz	"server version"

	.comm	_MBEDTLS_SSL_MAJOR_VERSION_3,4,2 ## @MBEDTLS_SSL_MAJOR_VERSION_3
	.comm	_MBEDTLS_SSL_MINOR_VERSION_2,4,2 ## @MBEDTLS_SSL_MINOR_VERSION_2
L_.str.2:                               ## @.str.2
	.asciz	"bad server version"

	.comm	_MBEDTLS_SSL_ALERT_LEVEL_FATAL,4,2 ## @MBEDTLS_SSL_ALERT_LEVEL_FATAL
	.comm	_MBEDTLS_SSL_ALERT_MSG_PROTOCOL_VERSION,4,2 ## @MBEDTLS_SSL_ALERT_MSG_PROTOCOL_VERSION
	.comm	_MBEDTLS_ERR_SSL_BAD_HS_PROTOCOL_VERSION,4,2 ## @MBEDTLS_ERR_SSL_BAD_HS_PROTOCOL_VERSION
L_.str.3:                               ## @.str.3
	.asciz	"cookie"

L_.str.4:                               ## @.str.4
	.asciz	"cookie length does not match incoming message size"

	.comm	_MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR,4,2 ## @MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR
	.comm	_MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO,4,2 ## @MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO
	.comm	_MBEDTLS_ERR_SSL_ALLOC_FAILED,4,2 ## @MBEDTLS_ERR_SSL_ALLOC_FAILED
	.comm	_MBEDTLS_SSL_CLIENT_HELLO,4,2   ## @MBEDTLS_SSL_CLIENT_HELLO
L_.str.6:                               ## @.str.6
	.asciz	"<= parse hello verify request"

	.no_dead_strip	_ssl_parse_hello_verify_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_parse_hello_verify_request
_ssl_parse_hello_verify_request:        ; @ssl_parse_hello_verify_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x20, [x0]
	bl	_mbedtls_ssl_hs_hdr_len
	add	x20, x20, w0, sxtw
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #3
	mov	x2, x20
	mov	w3, #2
	bl	_MBEDTLS_SSL_DEBUG_BUF
	ldr	x8, [x19, #24]
	ldr	w2, [x8, #8]
	add	x0, sp, #12
	add	x1, sp, #8
	mov	x3, x20
	bl	_mbedtls_ssl_read_version
	ldr	w8, [sp, #12]
Lloh4:
	adrp	x9, _MBEDTLS_SSL_MAJOR_VERSION_3@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MBEDTLS_SSL_MAJOR_VERSION_3@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_4
; %bb.1:
	ldr	w9, [sp, #8]
Lloh7:
	adrp	x10, _MBEDTLS_SSL_MINOR_VERSION_2@GOTPAGE
Lloh8:
	ldr	x10, [x10, _MBEDTLS_SSL_MINOR_VERSION_2@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	cmp	w9, w10
	b.lt	LBB0_4
; %bb.2:
	ldr	x10, [x19, #24]
	ldr	w11, [x10]
	cmp	w8, w11
	b.gt	LBB0_4
; %bb.3:
	ldr	w8, [x10, #4]
	cmp	w9, w8
	b.le	LBB0_7
LBB0_4:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh12:
	adrp	x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _MBEDTLS_SSL_ALERT_MSG_PROTOCOL_VERSION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_MSG_PROTOCOL_VERSION@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mbedtls_ssl_send_alert_message
Lloh18:
	adrp	x8, _MBEDTLS_ERR_SSL_BAD_HS_PROTOCOL_VERSION@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_BAD_HS_PROTOCOL_VERSION@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	add	x21, x20, #2
	ldrb	w20, [x21], #1
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #3
	mov	x2, x21
	mov	x3, x20
	bl	_MBEDTLS_SSL_DEBUG_BUF
	ldr	x8, [x19]
	ldrsw	x9, [x19, #8]
	add	x8, x8, x9
	sub	x8, x8, x21
	cmp	x8, x20
	b.ge	LBB0_9
; %bb.8:
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh24:
	adrp	x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mbedtls_ssl_send_alert_message
Lloh30:
	adrp	x8, _MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO@GOTPAGEOFF]
	b	LBB0_5
LBB0_9:
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #8]
	bl	_mbedtls_free
	mov	w0, #1
	mov	x1, x20
	bl	_mbedtls_calloc
	ldr	x8, [x19, #16]
	str	x0, [x8, #8]
	cbz	x0, LBB0_11
; %bb.10:
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x19, #16]
	strb	w20, [x8]
Lloh32:
	adrp	x8, _MBEDTLS_SSL_CLIENT_HELLO@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MBEDTLS_SSL_CLIENT_HELLO@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_mbedtls_ssl_reset_checksum
	mov	x0, x19
	bl	_mbedtls_ssl_recv_flight_completed
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	mov	w0, #0
	b	LBB0_6
LBB0_11:
	mov	w0, #1
	mov	x1, x20
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh37:
	adrp	x8, _MBEDTLS_ERR_SSL_ALLOC_FAILED@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_ALLOC_FAILED@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"=> parse hello verify request"

l_.str.1:                               ; @.str.1
	.asciz	"server version"

	.comm	_MBEDTLS_SSL_MAJOR_VERSION_3,4,2 ; @MBEDTLS_SSL_MAJOR_VERSION_3
	.comm	_MBEDTLS_SSL_MINOR_VERSION_2,4,2 ; @MBEDTLS_SSL_MINOR_VERSION_2
l_.str.2:                               ; @.str.2
	.asciz	"bad server version"

	.comm	_MBEDTLS_SSL_ALERT_LEVEL_FATAL,4,2 ; @MBEDTLS_SSL_ALERT_LEVEL_FATAL
	.comm	_MBEDTLS_SSL_ALERT_MSG_PROTOCOL_VERSION,4,2 ; @MBEDTLS_SSL_ALERT_MSG_PROTOCOL_VERSION
	.comm	_MBEDTLS_ERR_SSL_BAD_HS_PROTOCOL_VERSION,4,2 ; @MBEDTLS_ERR_SSL_BAD_HS_PROTOCOL_VERSION
l_.str.3:                               ; @.str.3
	.asciz	"cookie"

l_.str.4:                               ; @.str.4
	.asciz	"cookie length does not match incoming message size"

	.comm	_MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR,4,2 ; @MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR
	.comm	_MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO,4,2 ; @MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO
	.comm	_MBEDTLS_ERR_SSL_ALLOC_FAILED,4,2 ; @MBEDTLS_ERR_SSL_ALLOC_FAILED
	.comm	_MBEDTLS_SSL_CLIENT_HELLO,4,2   ; @MBEDTLS_SSL_CLIENT_HELLO
l_.str.6:                               ; @.str.6
	.asciz	"<= parse hello verify request"

	.no_dead_strip	_ssl_parse_hello_verify_request
.subsections_via_symbols
