	.file	"extr_ssl_srv.c_ssl_parse_client_key_exchange.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"=> parse client key exchange"
.LC1:
	.string	"mbedtls_ssl_read_record"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"bad client key exchange message"
	.section	.rodata.str1.1
.LC3:
	.string	"should never happen"
	.text
	.p2align 4
	.type	ssl_parse_client_key_exchange, @function
ssl_parse_client_key_exchange:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	edi, 2
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	MBEDTLS_SSL_DEBUG_MSG@PLT
	mov	rdi, rbx
	call	mbedtls_ssl_read_record@PLT
	test	eax, eax
	jne	.L8
	mov	rdi, rbx
	call	mbedtls_ssl_hs_hdr_len@PLT
	mov	rax, QWORD PTR MBEDTLS_SSL_MSG_HANDSHAKE[rip]
	cmp	QWORD PTR 16[rbx], rax
	jne	.L5
	mov	rax, QWORD PTR [rbx]
	movzx	eax, BYTE PTR [rax]
	cmp	rax, QWORD PTR MBEDTLS_SSL_HS_CLIENT_KEY_EXCHANGE[rip]
	jne	.L5
	lea	rsi, .LC3[rip]
	mov	edi, 1
	call	MBEDTLS_SSL_DEBUG_MSG@PLT
	mov	r12d, DWORD PTR MBEDTLS_ERR_SSL_INTERNAL_ERROR[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	mov	edi, 1
	call	MBEDTLS_SSL_DEBUG_MSG@PLT
	mov	r12d, DWORD PTR MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	r12d, eax
	call	MBEDTLS_SSL_DEBUG_RET@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ssl_parse_client_key_exchange, .-ssl_parse_client_key_exchange
	.comm	MBEDTLS_SSL_MSG_HANDSHAKE,8,8
	.comm	MBEDTLS_SSL_HS_CLIENT_KEY_EXCHANGE,8,8
	.comm	MBEDTLS_PREMASTER_SIZE,4,4
	.comm	MBEDTLS_MPI_MAX_SIZE,4,4
	.comm	MBEDTLS_KEY_EXCHANGE_RSA_PSK,8,8
	.comm	MBEDTLS_KEY_EXCHANGE_RSA,8,8
	.comm	MBEDTLS_KEY_EXCHANGE_PSK,8,8
	.comm	MBEDTLS_KEY_EXCHANGE_ECJPAKE,8,8
	.comm	MBEDTLS_KEY_EXCHANGE_ECDH_RSA,8,8
	.comm	MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA,8,8
	.comm	MBEDTLS_KEY_EXCHANGE_ECDHE_RSA,8,8
	.comm	MBEDTLS_KEY_EXCHANGE_ECDHE_PSK,8,8
	.comm	MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,8,8
	.comm	MBEDTLS_KEY_EXCHANGE_DHE_RSA,8,8
	.comm	MBEDTLS_KEY_EXCHANGE_DHE_PSK,8,8
	.comm	MBEDTLS_ERR_SSL_INTERNAL_ERROR,4,4
	.comm	MBEDTLS_ERR_SSL_BAD_HS_SERVER_KEY_EXCHANGE,4,4
	.comm	MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_RP,4,4
	.comm	MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_CS,4,4
	.comm	MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ssl_srv.c_ssl_parse_client_key_exchange.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"=> parse client key exchange\000"
	.align	2
.LC1:
	.ascii	"mbedtls_ssl_read_record\000"
	.align	2
.LC2:
	.ascii	"bad client key exchange message\000"
	.align	2
.LC3:
	.ascii	"should never happen\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_parse_client_key_exchange, %function
ssl_parse_client_key_exchange:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r1, .L9
	mov	r0, #2
	bl	MBEDTLS_SSL_DEBUG_MSG
	mov	r0, r5
	bl	mbedtls_ssl_read_record
	subs	r4, r0, #0
	bne	.L8
	mov	r0, r5
	bl	mbedtls_ssl_hs_hdr_len
	ldr	r3, .L9+4
	ldr	r2, [r5, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L5
	ldr	r2, [r5]
	ldr	r3, .L9+8
	ldrb	r2, [r2]	@ zero_extendqisi2
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L5
	ldr	r1, .L9+12
	mov	r0, #1
	bl	MBEDTLS_SSL_DEBUG_MSG
	ldr	r3, .L9+16
	ldr	r4, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r1, .L9+20
	mov	r0, #1
	bl	MBEDTLS_SSL_DEBUG_MSG
	ldr	r3, .L9+24
	ldr	r4, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	mov	r2, r4
	ldr	r1, .L9+28
	mov	r0, #1
	bl	MBEDTLS_SSL_DEBUG_RET
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	MBEDTLS_SSL_MSG_HANDSHAKE
	.word	MBEDTLS_SSL_HS_CLIENT_KEY_EXCHANGE
	.word	.LC3
	.word	MBEDTLS_ERR_SSL_INTERNAL_ERROR
	.word	.LC2
	.word	MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE
	.word	.LC1
	.size	ssl_parse_client_key_exchange, .-ssl_parse_client_key_exchange
	.comm	MBEDTLS_SSL_MSG_HANDSHAKE,4,4
	.comm	MBEDTLS_SSL_HS_CLIENT_KEY_EXCHANGE,4,4
	.comm	MBEDTLS_PREMASTER_SIZE,4,4
	.comm	MBEDTLS_MPI_MAX_SIZE,4,4
	.comm	MBEDTLS_KEY_EXCHANGE_RSA_PSK,4,4
	.comm	MBEDTLS_KEY_EXCHANGE_RSA,4,4
	.comm	MBEDTLS_KEY_EXCHANGE_PSK,4,4
	.comm	MBEDTLS_KEY_EXCHANGE_ECJPAKE,4,4
	.comm	MBEDTLS_KEY_EXCHANGE_ECDH_RSA,4,4
	.comm	MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA,4,4
	.comm	MBEDTLS_KEY_EXCHANGE_ECDHE_RSA,4,4
	.comm	MBEDTLS_KEY_EXCHANGE_ECDHE_PSK,4,4
	.comm	MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA,4,4
	.comm	MBEDTLS_KEY_EXCHANGE_DHE_RSA,4,4
	.comm	MBEDTLS_KEY_EXCHANGE_DHE_PSK,4,4
	.comm	MBEDTLS_ERR_SSL_INTERNAL_ERROR,4,4
	.comm	MBEDTLS_ERR_SSL_BAD_HS_SERVER_KEY_EXCHANGE,4,4
	.comm	MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_RP,4,4
	.comm	MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_CS,4,4
	.comm	MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
