	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_parse_client_key_exchange
_ssl_parse_client_key_exchange:         ## @ssl_parse_client_key_exchange
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	%r14, %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_7
LBB0_2:
	movq	%r14, %rdi
	callq	_mbedtls_ssl_hs_hdr_len
	movq	16(%r14), %rax
	movq	_MBEDTLS_SSL_MSG_HANDSHAKE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	(%r14), %rax
	movzbl	(%rax), %eax
	movq	_MBEDTLS_SSL_HS_CLIENT_KEY_EXCHANGE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_3
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	_MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	_MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"=> parse client key exchange"

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 client key exchange message"

	.comm	_MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE,4,2 ## @MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE
	.comm	_MBEDTLS_SSL_HS_CLIENT_KEY_EXCHANGE,8,3 ## @MBEDTLS_SSL_HS_CLIENT_KEY_EXCHANGE
L_.str.3:                               ## @.str.3
	.asciz	"should never happen"

	.comm	_MBEDTLS_ERR_SSL_INTERNAL_ERROR,4,2 ## @MBEDTLS_ERR_SSL_INTERNAL_ERROR
	.comm	_MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_CS,4,2 ## @MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_CS
	.comm	_MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_RP,4,2 ## @MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_RP
	.comm	_MBEDTLS_ERR_SSL_BAD_HS_SERVER_KEY_EXCHANGE,4,2 ## @MBEDTLS_ERR_SSL_BAD_HS_SERVER_KEY_EXCHANGE
	.comm	_MBEDTLS_KEY_EXCHANGE_DHE_PSK,8,3 ## @MBEDTLS_KEY_EXCHANGE_DHE_PSK
	.comm	_MBEDTLS_KEY_EXCHANGE_DHE_RSA,8,3 ## @MBEDTLS_KEY_EXCHANGE_DHE_RSA
	.comm	_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,8,3 ## @MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA
	.comm	_MBEDTLS_KEY_EXCHANGE_ECDHE_PSK,8,3 ## @MBEDTLS_KEY_EXCHANGE_ECDHE_PSK
	.comm	_MBEDTLS_KEY_EXCHANGE_ECDHE_RSA,8,3 ## @MBEDTLS_KEY_EXCHANGE_ECDHE_RSA
	.comm	_MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA,8,3 ## @MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA
	.comm	_MBEDTLS_KEY_EXCHANGE_ECDH_RSA,8,3 ## @MBEDTLS_KEY_EXCHANGE_ECDH_RSA
	.comm	_MBEDTLS_KEY_EXCHANGE_ECJPAKE,8,3 ## @MBEDTLS_KEY_EXCHANGE_ECJPAKE
	.comm	_MBEDTLS_KEY_EXCHANGE_PSK,8,3   ## @MBEDTLS_KEY_EXCHANGE_PSK
	.comm	_MBEDTLS_KEY_EXCHANGE_RSA,8,3   ## @MBEDTLS_KEY_EXCHANGE_RSA
	.comm	_MBEDTLS_KEY_EXCHANGE_RSA_PSK,8,3 ## @MBEDTLS_KEY_EXCHANGE_RSA_PSK
	.comm	_MBEDTLS_MPI_MAX_SIZE,4,2       ## @MBEDTLS_MPI_MAX_SIZE
	.comm	_MBEDTLS_PREMASTER_SIZE,4,2     ## @MBEDTLS_PREMASTER_SIZE
	.no_dead_strip	_ssl_parse_client_key_exchange
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_parse_client_key_exchange
_ssl_parse_client_key_exchange:         ; @ssl_parse_client_key_exchange
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	mov	x0, x20
	bl	_mbedtls_ssl_read_record
	cbz	w0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_MBEDTLS_SSL_DEBUG_RET
	b	LBB0_7
LBB0_2:
	mov	x0, x20
	bl	_mbedtls_ssl_hs_hdr_len
	ldr	x8, [x20, #16]
Lloh4:
	adrp	x9, _MBEDTLS_SSL_MSG_HANDSHAKE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MBEDTLS_SSL_MSG_HANDSHAKE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x20]
	ldrb	w8, [x8]
Lloh7:
	adrp	x9, _MBEDTLS_SSL_HS_CLIENT_KEY_EXCHANGE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MBEDTLS_SSL_HS_CLIENT_KEY_EXCHANGE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh12:
	adrp	x8, _MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh16:
	adrp	x8, _MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE@GOTPAGEOFF]
LBB0_6:
	ldr	w19, [x8]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"=> parse client key exchange"

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 client key exchange message"

	.comm	_MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE,4,2 ; @MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE
	.comm	_MBEDTLS_SSL_HS_CLIENT_KEY_EXCHANGE,8,3 ; @MBEDTLS_SSL_HS_CLIENT_KEY_EXCHANGE
l_.str.3:                               ; @.str.3
	.asciz	"should never happen"

	.comm	_MBEDTLS_ERR_SSL_INTERNAL_ERROR,4,2 ; @MBEDTLS_ERR_SSL_INTERNAL_ERROR
	.comm	_MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_CS,4,2 ; @MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANG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m	_MBEDTLS_PREMASTER_SIZE,4,2     ; @MBEDTLS_PREMASTER_SIZE
	.no_dead_strip	_ssl_parse_client_key_exchange
.subsections_via_symbols
