	.file	"237658.c"
	.intel_syntax noprefix
	.text
	.type	mbedtls_cipher_get_block_size, @function
mbedtls_cipher_get_block_size:
.LFB3:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L3
.L2:
	mov	eax, 0
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 32[rax]
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	mbedtls_cipher_get_block_size, .-mbedtls_cipher_get_block_size
	.type	mbedtls_cipher_get_cipher_mode, @function
mbedtls_cipher_get_cipher_mode:
.LFB4:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L7
.L6:
	mov	eax, 0
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 4[rax]
.L8:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	mbedtls_cipher_get_cipher_mode, .-mbedtls_cipher_get_cipher_mode
	.type	mbedtls_ssl_own_cert, @function
mbedtls_ssl_own_cert:
.LFB11:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L11
.L10:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 112[rax]
	mov	QWORD PTR -8[rbp], rax
.L11:
	cmp	QWORD PTR -8[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	jmp	.L14
.L12:
	mov	eax, 0
.L14:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	mbedtls_ssl_own_cert, .-mbedtls_ssl_own_cert
	.type	mbedtls_ssl_hdr_len, @function
mbedtls_ssl_hdr_len:
.LFB12:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L16
	mov	eax, 13
	jmp	.L17
.L16:
	mov	eax, 5
.L17:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	mbedtls_ssl_hdr_len, .-mbedtls_ssl_hdr_len
	.type	mbedtls_ssl_hs_hdr_len, @function
mbedtls_ssl_hs_hdr_len:
.LFB13:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L19
	mov	eax, 12
	jmp	.L20
.L19:
	mov	eax, 4
.L20:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	mbedtls_ssl_hs_hdr_len, .-mbedtls_ssl_hs_hdr_len
	.type	mbedtls_ssl_safer_memcmp, @function
mbedtls_ssl_safer_memcmp:
.LFB14:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	BYTE PTR -21[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L22
.L23:
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	ecx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	xor	eax, edx
	or	BYTE PTR -21[rbp], al
	add	DWORD PTR -20[rbp], 1
.L22:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jb	.L23
	movzx	eax, BYTE PTR -21[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	mbedtls_ssl_safer_memcmp, .-mbedtls_ssl_safer_memcmp
	.type	mbedtls_zeroize, @function
mbedtls_zeroize:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L26
.L27:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	BYTE PTR [rax], 0
.L26:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -28[rbp], edx
	test	eax, eax
	jne	.L27
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	mbedtls_zeroize, .-mbedtls_zeroize
	.type	ssl_ep_len, @function
ssl_ep_len:
.LFB16:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L29
	mov	eax, 2
	jmp	.L30
.L29:
	mov	eax, 0
.L30:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	ssl_ep_len, .-ssl_ep_len
	.type	ssl_set_timer, @function
ssl_set_timer:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 136[rax]
	test	rax, rax
	je	.L34
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 136[rax]
	mov	rax, QWORD PTR -16[rbp]
	shr	rax, 2
	mov	rsi, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 128[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	rcx
	jmp	.L31
.L34:
	nop
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	ssl_set_timer, .-ssl_set_timer
	.type	ssl_check_timer, @function
ssl_check_timer:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 144[rax]
	test	rax, rax
	jne	.L36
	mov	eax, 0
	jmp	.L37
.L36:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 144[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 128[rax]
	mov	rdi, rax
	call	rdx
	cmp	eax, 2
	jne	.L38
	mov	eax, -1
	jmp	.L37
.L38:
	mov	eax, 0
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	ssl_check_timer, .-ssl_check_timer
	.type	ssl_double_retransmit_timeout, @function
ssl_double_retransmit_timeout:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 160[rax]
	cmp	rdx, rax
	jb	.L40
	mov	eax, -1
	jmp	.L41
.L40:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 48[rax]
	add	rax, rax
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 48[rax]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L42
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 160[rax]
	cmp	QWORD PTR -8[rbp], rax
	jbe	.L43
.L42:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 160[rax]
	mov	QWORD PTR -8[rbp], rax
.L43:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	eax, 0
.L41:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	ssl_double_retransmit_timeout, .-ssl_double_retransmit_timeout
	.type	ssl_reset_retransmit_timeout, @function
ssl_reset_retransmit_timeout:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdx, QWORD PTR 152[rdx]
	mov	QWORD PTR 48[rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	ssl_reset_retransmit_timeout, .-ssl_reset_retransmit_timeout
	.data
	.align 16
	.type	mfl_code_to_length, @object
	.size	mfl_code_to_length, 20
mfl_code_to_length:
	.long	4096
	.long	512
	.long	1024
	.long	2048
	.long	4096
	.text
	.type	ssl_session_copy, @function
ssl_session_copy:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_session_free
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 120
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 96[rax]
	test	rax, rax
	je	.L46
	mov	esi, 424
	mov	edi, 1
	call	mbedtls_calloc@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 96[rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 96[rax]
	test	rax, rax
	jne	.L47
	mov	eax, -32512
	jmp	.L48
.L47:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	rdi, rax
	call	mbedtls_x509_crt_init@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	rsi, rcx
	mov	rdi, rax
	call	mbedtls_x509_crt_parse_der@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L46
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 96[rax], 0
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L48
.L46:
	mov	eax, 0
.L48:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	ssl_session_copy, .-ssl_session_copy
	.type	tls_prf_generic, @function
tls_prf_generic:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	DWORD PTR -244[rbp], edi
	mov	QWORD PTR -256[rbp], rsi
	mov	DWORD PTR -248[rbp], edx
	mov	QWORD PTR -264[rbp], rcx
	mov	QWORD PTR -272[rbp], r8
	mov	DWORD PTR -276[rbp], r9d
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	mbedtls_md_init@PLT
	mov	eax, DWORD PTR -244[rbp]
	mov	edi, eax
	call	mbedtls_md_info_from_type@PLT
	mov	QWORD PTR -216[rbp], rax
	cmp	QWORD PTR -216[rbp], 0
	jne	.L50
	mov	eax, -27648
	jmp	.L60
.L50:
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	mbedtls_md_get_size@PLT
	movzx	eax, al
	mov	DWORD PTR -232[rbp], eax
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, DWORD PTR -232[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -276[rbp]
	add	eax, edx
	cmp	eax, 128
	jbe	.L52
	mov	eax, -28928
	jmp	.L60
.L52:
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -228[rbp], eax
	mov	eax, DWORD PTR -232[rbp]
	lea	rdx, -144[rbp]
	lea	rcx, [rdx+rax]
	mov	edx, DWORD PTR -228[rbp]
	mov	rax, QWORD PTR -264[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	edx, DWORD PTR -232[rbp]
	mov	eax, DWORD PTR -228[rbp]
	add	rdx, rax
	lea	rax, -144[rbp]
	lea	rcx, [rax+rdx]
	mov	edx, DWORD PTR -276[rbp]
	mov	rax, QWORD PTR -272[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -276[rbp]
	add	DWORD PTR -228[rbp], eax
	mov	rcx, QWORD PTR -216[rbp]
	lea	rax, -208[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	mbedtls_md_setup@PLT
	mov	DWORD PTR -224[rbp], eax
	cmp	DWORD PTR -224[rbp], 0
	je	.L53
	mov	eax, DWORD PTR -224[rbp]
	jmp	.L60
.L53:
	mov	edx, DWORD PTR -248[rbp]
	mov	rcx, QWORD PTR -256[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	mbedtls_md_hmac_starts@PLT
	mov	eax, DWORD PTR -232[rbp]
	lea	rdx, -144[rbp]
	lea	rcx, [rdx+rax]
	mov	edx, DWORD PTR -228[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	mbedtls_md_hmac_update@PLT
	lea	rdx, -144[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	mbedtls_md_hmac_finish@PLT
	mov	DWORD PTR -240[rbp], 0
	jmp	.L54
.L59:
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	mbedtls_md_hmac_reset@PLT
	mov	edx, DWORD PTR -232[rbp]
	mov	eax, DWORD PTR -228[rbp]
	add	edx, eax
	lea	rcx, -144[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	mbedtls_md_hmac_update@PLT
	lea	rdx, -176[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	mbedtls_md_hmac_finish@PLT
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	mbedtls_md_hmac_reset@PLT
	mov	edx, DWORD PTR -232[rbp]
	lea	rcx, -144[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	mbedtls_md_hmac_update@PLT
	lea	rdx, -144[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	mbedtls_md_hmac_finish@PLT
	mov	edx, DWORD PTR -240[rbp]
	mov	eax, DWORD PTR -232[rbp]
	add	eax, edx
	cmp	DWORD PTR 24[rbp], eax
	jnb	.L55
	mov	eax, DWORD PTR 24[rbp]
	mov	edx, 0
	div	DWORD PTR -232[rbp]
	mov	eax, edx
	jmp	.L56
.L55:
	mov	eax, DWORD PTR -232[rbp]
.L56:
	mov	DWORD PTR -220[rbp], eax
	mov	DWORD PTR -236[rbp], 0
	jmp	.L57
.L58:
	mov	edx, DWORD PTR -240[rbp]
	mov	eax, DWORD PTR -236[rbp]
	add	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -288[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -236[rbp]
	movzx	eax, BYTE PTR -176[rbp+rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -236[rbp], 1
.L57:
	mov	eax, DWORD PTR -236[rbp]
	cmp	eax, DWORD PTR -220[rbp]
	jb	.L58
	mov	eax, DWORD PTR -232[rbp]
	add	DWORD PTR -240[rbp], eax
.L54:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR 24[rbp]
	jb	.L59
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	mbedtls_md_free@PLT
	lea	rax, -144[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	mbedtls_zeroize
	lea	rax, -176[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	mbedtls_zeroize
	mov	eax, 0
.L60:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	tls_prf_generic, .-tls_prf_generic
	.type	tls_prf_sha256, @function
tls_prf_sha256:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	DWORD PTR -16[rbp], r8d
	mov	QWORD PTR -40[rbp], r9
	mov	r8d, DWORD PTR -16[rbp]
	mov	rdi, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, DWORD PTR 16[rbp]
	push	rsi
	push	QWORD PTR -40[rbp]
	mov	r9d, r8d
	mov	r8, rdi
	mov	rsi, rax
	mov	edi, 6
	call	tls_prf_generic
	add	rsp, 16
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	tls_prf_sha256, .-tls_prf_sha256
	.section	.rodata
.LC0:
	.string	"master secret"
.LC1:
	.string	"key expansion"
	.text
	.globl	mbedtls_ssl_derive_keys
	.type	mbedtls_ssl_derive_keys, @function
mbedtls_ssl_derive_keys:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 432
	mov	QWORD PTR -424[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -416[rbp], 0
	mov	rax, QWORD PTR -424[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	QWORD PTR -408[rbp], rax
	mov	rax, QWORD PTR -424[rbp]
	mov	rax, QWORD PTR 120[rax]
	mov	QWORD PTR -400[rbp], rax
	mov	rax, QWORD PTR -424[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	QWORD PTR -392[rbp], rax
	mov	rax, QWORD PTR -400[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 16[rax]
	mov	edi, eax
	call	mbedtls_cipher_info_from_type@PLT
	mov	QWORD PTR -384[rbp], rax
	cmp	QWORD PTR -384[rbp], 0
	jne	.L65
	mov	eax, -28928
	jmp	.L95
.L65:
	mov	rax, QWORD PTR -400[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 20[rax]
	mov	edi, eax
	call	mbedtls_md_info_from_type@PLT
	mov	QWORD PTR -376[rbp], rax
	cmp	QWORD PTR -376[rbp], 0
	jne	.L67
	mov	eax, -28928
	jmp	.L95
.L67:
	mov	rax, QWORD PTR -424[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 3
	jne	.L68
	mov	rax, QWORD PTR -392[rbp]
	lea	rdx, tls_prf_sha256[rip]
	mov	QWORD PTR 144[rax], rdx
	mov	rax, QWORD PTR -392[rbp]
	lea	rdx, ssl_calc_verify_tls_sha256[rip]
	mov	QWORD PTR 128[rax], rdx
	mov	rax, QWORD PTR -392[rbp]
	lea	rdx, ssl_calc_finished_tls_sha256[rip]
	mov	QWORD PTR 136[rax], rdx
	mov	rax, QWORD PTR -392[rbp]
	mov	eax, DWORD PTR 268[rax]
	test	eax, eax
	jne	.L70
	jmp	.L97
.L68:
	mov	eax, -27648
	jmp	.L95
.L97:
	mov	rax, QWORD PTR -392[rbp]
	mov	r10, QWORD PTR 144[rax]
	mov	rax, QWORD PTR -408[rbp]
	lea	rsi, 44[rax]
	mov	rax, QWORD PTR -392[rbp]
	lea	rdx, 156[rax]
	mov	rax, QWORD PTR -392[rbp]
	mov	eax, DWORD PTR 152[rax]
	mov	rcx, QWORD PTR -392[rbp]
	lea	rdi, 220[rcx]
	sub	rsp, 8
	push	48
	mov	r9, rsi
	mov	r8d, 64
	mov	rcx, rdx
	lea	rdx, .LC0[rip]
	mov	esi, eax
	call	r10
	add	rsp, 16
	mov	DWORD PTR -416[rbp], eax
	cmp	DWORD PTR -416[rbp], 0
	je	.L71
	mov	eax, DWORD PTR -416[rbp]
	jmp	.L95
.L71:
	mov	rax, QWORD PTR -392[rbp]
	add	rax, 220
	mov	esi, 48
	mov	rdi, rax
	call	mbedtls_zeroize
.L70:
	mov	rax, QWORD PTR -392[rbp]
	lea	rcx, 156[rax]
	lea	rax, -336[rbp]
	mov	edx, 64
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	lea	rax, -336[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR -392[rbp]
	lea	rcx, 156[rdx]
	mov	edx, 32
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -392[rbp]
	add	rax, 156
	lea	rcx, 32[rax]
	lea	rax, -336[rbp]
	mov	edx, 32
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	lea	rax, -336[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	mbedtls_zeroize
	mov	rax, QWORD PTR -392[rbp]
	mov	rax, QWORD PTR 144[rax]
	mov	rdx, QWORD PTR -392[rbp]
	add	rdx, 156
	mov	rcx, QWORD PTR -408[rbp]
	lea	rdi, 44[rcx]
	lea	rcx, -272[rbp]
	sub	rsp, 8
	push	256
	mov	r9, rcx
	mov	r8d, 64
	mov	rcx, rdx
	lea	rdx, .LC1[rip]
	mov	esi, 48
	call	rax
	add	rsp, 16
	mov	DWORD PTR -416[rbp], eax
	cmp	DWORD PTR -416[rbp], 0
	je	.L72
	mov	eax, DWORD PTR -416[rbp]
	jmp	.L95
.L72:
	mov	rax, QWORD PTR -392[rbp]
	add	rax, 156
	mov	esi, 64
	mov	rdi, rax
	call	mbedtls_zeroize
	mov	rax, QWORD PTR -384[rbp]
	mov	eax, DWORD PTR 8[rax]
	shr	eax, 3
	mov	edx, eax
	mov	rax, QWORD PTR -400[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -384[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 6
	je	.L73
	mov	rax, QWORD PTR -384[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 8
	jne	.L74
.L73:
	mov	rax, QWORD PTR -400[rbp]
	mov	DWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -400[rbp]
	mov	DWORD PTR 16[rax], 12
	mov	rax, QWORD PTR -400[rbp]
	mov	DWORD PTR 20[rax], 4
	mov	rax, QWORD PTR -400[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -400[rbp]
	mov	eax, DWORD PTR 20[rax]
	sub	edx, eax
	mov	rax, QWORD PTR -400[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 44[rax]
	movzx	eax, al
	and	eax, 2
	test	eax, eax
	je	.L75
	mov	eax, 8
	jmp	.L76
.L75:
	mov	eax, 16
.L76:
	add	edx, eax
	mov	rax, QWORD PTR -400[rbp]
	mov	DWORD PTR 12[rax], edx
	jmp	.L77
.L74:
	mov	rax, QWORD PTR -400[rbp]
	lea	rcx, 64[rax]
	mov	rax, QWORD PTR -376[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	rdi, rcx
	call	mbedtls_md_setup@PLT
	mov	DWORD PTR -416[rbp], eax
	cmp	DWORD PTR -416[rbp], 0
	jne	.L78
	mov	rax, QWORD PTR -400[rbp]
	lea	rcx, 88[rax]
	mov	rax, QWORD PTR -376[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	rdi, rcx
	call	mbedtls_md_setup@PLT
	mov	DWORD PTR -416[rbp], eax
	cmp	DWORD PTR -416[rbp], 0
	je	.L79
.L78:
	mov	eax, DWORD PTR -416[rbp]
	jmp	.L95
.L79:
	mov	rax, QWORD PTR -376[rbp]
	mov	rdi, rax
	call	mbedtls_md_get_size@PLT
	movzx	edx, al
	mov	rax, QWORD PTR -400[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -384[rbp]
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -400[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -384[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 7
	jne	.L80
	mov	rax, QWORD PTR -400[rbp]
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -400[rbp]
	mov	DWORD PTR 12[rax], edx
	jmp	.L77
.L80:
	mov	rax, QWORD PTR -400[rbp]
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -384[rbp]
	mov	eax, DWORD PTR 32[rax]
	lea	esi, [rdx+rax]
	mov	rax, QWORD PTR -400[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	rdx, QWORD PTR -384[rbp]
	mov	ecx, DWORD PTR 32[rdx]
	mov	edx, 0
	div	ecx
	mov	eax, edx
	sub	esi, eax
	mov	edx, esi
	mov	rax, QWORD PTR -400[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -424[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 2
	je	.L81
	mov	rax, QWORD PTR -424[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 3
	jne	.L82
.L81:
	mov	rax, QWORD PTR -400[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -400[rbp]
	mov	eax, DWORD PTR 16[rax]
	add	edx, eax
	mov	rax, QWORD PTR -400[rbp]
	mov	DWORD PTR 12[rax], edx
	jmp	.L77
.L82:
	mov	eax, -27648
	jmp	.L95
.L77:
	mov	rax, QWORD PTR -424[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 1
	test	al, al
	jne	.L83
	mov	rax, QWORD PTR -400[rbp]
	mov	eax, DWORD PTR 24[rax]
	add	eax, eax
	mov	edx, eax
	lea	rax, -272[rbp]
	add	rax, rdx
	mov	QWORD PTR -368[rbp], rax
	mov	rax, QWORD PTR -400[rbp]
	mov	eax, DWORD PTR 24[rax]
	add	eax, eax
	mov	edx, eax
	mov	rax, QWORD PTR -400[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	eax, eax
	add	rdx, rax
	lea	rax, -272[rbp]
	add	rax, rdx
	mov	QWORD PTR -360[rbp], rax
	lea	rax, -272[rbp]
	mov	QWORD PTR -352[rbp], rax
	mov	rax, QWORD PTR -400[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	edx, eax
	lea	rax, -272[rbp]
	add	rax, rdx
	mov	QWORD PTR -344[rbp], rax
	mov	rax, QWORD PTR -400[rbp]
	mov	eax, DWORD PTR 20[rax]
	test	eax, eax
	je	.L84
	mov	rax, QWORD PTR -400[rbp]
	mov	eax, DWORD PTR 20[rax]
	jmp	.L85
.L84:
	mov	rax, QWORD PTR -400[rbp]
	mov	eax, DWORD PTR 16[rax]
.L85:
	mov	DWORD PTR -412[rbp], eax
	mov	rax, QWORD PTR -400[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -360[rbp]
	lea	rsi, [rdx+rax]
	mov	rax, QWORD PTR -400[rbp]
	lea	rcx, 28[rax]
	mov	eax, DWORD PTR -412[rbp]
	mov	edx, eax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -400[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edx, eax
	mov	eax, DWORD PTR -412[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -360[rbp]
	lea	rsi, [rdx+rax]
	mov	rax, QWORD PTR -400[rbp]
	lea	rcx, 44[rax]
	mov	eax, DWORD PTR -412[rbp]
	mov	edx, eax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -424[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jle	.L87
	jmp	.L98
.L83:
	mov	eax, -27648
	jmp	.L95
.L98:
	mov	rax, QWORD PTR -400[rbp]
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -400[rbp]
	lea	rcx, 64[rax]
	mov	rax, QWORD PTR -352[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	mbedtls_md_hmac_starts@PLT
	mov	rax, QWORD PTR -400[rbp]
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -400[rbp]
	lea	rcx, 88[rax]
	mov	rax, QWORD PTR -344[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	mbedtls_md_hmac_starts@PLT
	mov	rax, QWORD PTR -400[rbp]
	lea	rdx, 112[rax]
	mov	rax, QWORD PTR -384[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	mbedtls_cipher_setup@PLT
	mov	DWORD PTR -416[rbp], eax
	cmp	DWORD PTR -416[rbp], 0
	je	.L89
	jmp	.L99
.L87:
	mov	eax, -27648
	jmp	.L95
.L99:
	mov	eax, DWORD PTR -416[rbp]
	jmp	.L95
.L89:
	mov	rax, QWORD PTR -400[rbp]
	lea	rdx, 192[rax]
	mov	rax, QWORD PTR -384[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	mbedtls_cipher_setup@PLT
	mov	DWORD PTR -416[rbp], eax
	cmp	DWORD PTR -416[rbp], 0
	je	.L90
	mov	eax, DWORD PTR -416[rbp]
	jmp	.L95
.L90:
	mov	rax, QWORD PTR -384[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -400[rbp]
	lea	rdi, 112[rax]
	mov	rax, QWORD PTR -368[rbp]
	mov	ecx, 1
	mov	rsi, rax
	call	mbedtls_cipher_setkey@PLT
	mov	DWORD PTR -416[rbp], eax
	cmp	DWORD PTR -416[rbp], 0
	je	.L91
	mov	eax, DWORD PTR -416[rbp]
	jmp	.L95
.L91:
	mov	rax, QWORD PTR -384[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -400[rbp]
	lea	rdi, 192[rax]
	mov	rax, QWORD PTR -360[rbp]
	mov	ecx, 0
	mov	rsi, rax
	call	mbedtls_cipher_setkey@PLT
	mov	DWORD PTR -416[rbp], eax
	cmp	DWORD PTR -416[rbp], 0
	je	.L92
	mov	eax, DWORD PTR -416[rbp]
	jmp	.L95
.L92:
	mov	rax, QWORD PTR -384[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 2
	jne	.L93
	mov	rax, QWORD PTR -400[rbp]
	add	rax, 112
	mov	esi, 4
	mov	rdi, rax
	call	mbedtls_cipher_set_padding_mode@PLT
	mov	DWORD PTR -416[rbp], eax
	cmp	DWORD PTR -416[rbp], 0
	je	.L94
	mov	eax, DWORD PTR -416[rbp]
	jmp	.L95
.L94:
	mov	rax, QWORD PTR -400[rbp]
	add	rax, 192
	mov	esi, 4
	mov	rdi, rax
	call	mbedtls_cipher_set_padding_mode@PLT
	mov	DWORD PTR -416[rbp], eax
	cmp	DWORD PTR -416[rbp], 0
	je	.L93
	mov	eax, DWORD PTR -416[rbp]
	jmp	.L95
.L93:
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	mbedtls_zeroize
	mov	eax, 0
.L95:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L96
	call	__stack_chk_fail@PLT
.L96:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	mbedtls_ssl_derive_keys, .-mbedtls_ssl_derive_keys
	.type	ssl_calc_verify_tls_sha256, @function
ssl_calc_verify_tls_sha256:
.LFB25:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	mbedtls_sha256_init_alt@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 88[rax]
	lea	rdx, 104[rax]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	mbedtls_sha256_clone_alt@PLT
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	mbedtls_sha256_finish_alt@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	mbedtls_sha256_free_alt@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L102
	call	__stack_chk_fail@PLT
.L102:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	ssl_calc_verify_tls_sha256, .-ssl_calc_verify_tls_sha256
	.type	ssl_encrypt_buf, @function
ssl_encrypt_buf:
.LFB26:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 64[rax]
	test	rax, rax
	je	.L104
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	test	rax, rax
	jne	.L105
.L104:
	mov	eax, -27648
	jmp	.L106
.L105:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	add	rax, 112
	mov	rdi, rax
	call	mbedtls_cipher_get_cipher_mode
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 7
	je	.L107
	cmp	DWORD PTR -24[rbp], 2
	jne	.L108
.L107:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jle	.L109
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 272[rax]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 104[rdx]
	lea	rcx, 64[rdx]
	mov	edx, 8
	mov	rsi, rax
	mov	rdi, rcx
	call	mbedtls_md_hmac_update@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 280[rax]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 104[rdx]
	lea	rcx, 64[rdx]
	mov	edx, 3
	mov	rsi, rax
	mov	rdi, rcx
	call	mbedtls_md_hmac_update@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 288[rax]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 104[rdx]
	lea	rcx, 64[rdx]
	mov	edx, 2
	mov	rsi, rax
	mov	rdi, rcx
	call	mbedtls_md_hmac_update@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR 316[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 304[rax]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 104[rcx]
	add	rcx, 64
	mov	rsi, rax
	mov	rdi, rcx
	call	mbedtls_md_hmac_update@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 304[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 316[rax]
	mov	eax, eax
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	add	rax, 64
	mov	rsi, rdx
	mov	rdi, rax
	call	mbedtls_md_hmac_finish@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	add	rax, 64
	mov	rdi, rax
	call	mbedtls_md_hmac_reset@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR 316[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	eax, DWORD PTR 24[rax]
	add	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 316[rax], edx
	add	DWORD PTR -40[rbp], 1
	jmp	.L108
.L109:
	mov	eax, -27648
	jmp	.L106
.L108:
	cmp	DWORD PTR -24[rbp], 2
	jne	.L111
	mov	DWORD PTR -44[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	ecx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 316[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	esi, DWORD PTR 16[rax]
	mov	eax, edx
	mov	edx, 0
	div	esi
	mov	eax, ecx
	sub	eax, edx
	mov	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -32[rbp], eax
	jne	.L112
	mov	DWORD PTR -32[rbp], 0
.L112:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L113
.L114:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 304[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	ecx, DWORD PTR 316[rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, ecx
	mov	eax, eax
	add	rax, rdx
	mov	edx, DWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -28[rbp], 1
.L113:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jbe	.L114
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR 316[rax]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 316[rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 316[rax]
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 304[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 1
	jle	.L115
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	lea	rsi, 28[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	rcx
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L116
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L106
.L116:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	lea	rcx, 28[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 296[rax]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 304[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 316[rax]
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR 316[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	eax, DWORD PTR 16[rax]
	add	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 316[rax], edx
.L115:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	eax, DWORD PTR 16[rax]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 104[rdx]
	lea	rsi, 28[rdx]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 104[rdx]
	lea	rdi, 112[rdx]
	mov	r9, QWORD PTR -16[rbp]
	mov	r8d, DWORD PTR -36[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	sub	rsp, 8
	lea	rcx, -44[rbp]
	push	rcx
	mov	rcx, rdx
	mov	edx, eax
	call	mbedtls_cipher_crypt@PLT
	add	rsp, 16
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L118
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L106
.L118:
	mov	eax, DWORD PTR -44[rbp]
	cmp	DWORD PTR -36[rbp], eax
	je	.L120
	mov	eax, -27648
	jmp	.L106
.L111:
	mov	eax, -27648
	jmp	.L106
.L120:
	cmp	DWORD PTR -40[rbp], 1
	je	.L121
	mov	eax, -27648
	jmp	.L106
.L121:
	mov	eax, 0
.L106:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L122
	call	__stack_chk_fail@PLT
.L122:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	ssl_encrypt_buf, .-ssl_encrypt_buf
	.type	ssl_decrypt_buf, @function
ssl_decrypt_buf:
.LFB27:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	QWORD PTR -152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -128[rbp], 0
	mov	DWORD PTR -124[rbp], 0
	mov	DWORD PTR -120[rbp], 1
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 56[rax]
	test	rax, rax
	je	.L124
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 96[rax]
	test	rax, rax
	jne	.L125
.L124:
	mov	eax, -27648
	jmp	.L126
.L125:
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 96[rax]
	add	rax, 192
	mov	rdi, rax
	call	mbedtls_cipher_get_cipher_mode
	mov	DWORD PTR -96[rbp], eax
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR 212[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	eax, DWORD PTR 12[rax]
	cmp	edx, eax
	jnb	.L127
	mov	eax, -29056
	jmp	.L126
.L127:
	cmp	DWORD PTR -96[rbp], 2
	jne	.L128
	mov	DWORD PTR -112[rbp], 0
	mov	DWORD PTR -136[rbp], 0
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 1
	jle	.L129
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	eax, DWORD PTR 16[rax]
	add	DWORD PTR -112[rbp], eax
.L129:
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR 212[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	ecx, DWORD PTR 16[rax]
	mov	eax, DWORD PTR -112[rbp]
	add	eax, ecx
	cmp	edx, eax
	jb	.L130
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR 212[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	ecx, DWORD PTR 24[rax]
	mov	eax, DWORD PTR -112[rbp]
	add	eax, ecx
	add	eax, 1
	cmp	edx, eax
	jnb	.L131
.L130:
	mov	eax, -29056
	jmp	.L126
.L131:
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 212[rax]
	mov	DWORD PTR -116[rbp], eax
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 192[rax]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 192[rax]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 212[rax]
	mov	rdx, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR 96[rdx]
	mov	ecx, DWORD PTR 16[rdx]
	mov	edx, 0
	div	ecx
	mov	eax, edx
	test	eax, eax
	je	.L133
	mov	eax, -29056
	jmp	.L126
.L133:
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 1
	jle	.L134
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	eax, DWORD PTR 16[rax]
	sub	DWORD PTR -116[rbp], eax
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR 212[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	eax, DWORD PTR 16[rax]
	sub	edx, eax
	mov	rax, QWORD PTR -152[rbp]
	mov	DWORD PTR 212[rax], edx
	mov	DWORD PTR -132[rbp], 0
	jmp	.L135
.L136:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR 184[rax]
	mov	eax, DWORD PTR -132[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR 96[rax]
	movzx	ecx, BYTE PTR [rcx]
	mov	eax, DWORD PTR -132[rbp]
	mov	BYTE PTR 44[rdx+rax], cl
	add	DWORD PTR -132[rbp], 1
.L135:
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -132[rbp], eax
	jb	.L136
.L134:
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	eax, DWORD PTR 16[rax]
	mov	rdx, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR 96[rdx]
	lea	rsi, 44[rdx]
	mov	rdx, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR 96[rdx]
	lea	rdi, 192[rdx]
	mov	r9, QWORD PTR -72[rbp]
	mov	r8d, DWORD PTR -116[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	sub	rsp, 8
	lea	rcx, -136[rbp]
	push	rcx
	mov	rcx, rdx
	mov	edx, eax
	call	mbedtls_cipher_crypt@PLT
	add	rsp, 16
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	je	.L137
	mov	eax, DWORD PTR -92[rbp]
	jmp	.L126
.L137:
	mov	eax, DWORD PTR -136[rbp]
	cmp	DWORD PTR -116[rbp], eax
	je	.L138
	mov	eax, -27648
	jmp	.L126
.L138:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR 192[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 212[rax]
	sub	eax, 1
	mov	eax, eax
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	eax, 1
	mov	DWORD PTR -124[rbp], eax
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR 212[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	ecx, DWORD PTR 24[rax]
	mov	eax, DWORD PTR -124[rbp]
	add	eax, ecx
	cmp	edx, eax
	jnb	.L139
	cmp	DWORD PTR -128[rbp], 0
	jne	.L139
	mov	DWORD PTR -124[rbp], 0
	mov	DWORD PTR -120[rbp], 0
.L139:
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jle	.L140
	mov	DWORD PTR -108[rbp], 0
	mov	DWORD PTR -104[rbp], 1
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 212[rax]
	sub	eax, DWORD PTR -124[rbp]
	sub	eax, 1
	mov	DWORD PTR -88[rbp], eax
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 212[rax]
	mov	edx, DWORD PTR -124[rbp]
	add	edx, 1
	cmp	eax, edx
	setnb	al
	movzx	eax, al
	and	DWORD PTR -120[rbp], eax
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	eax, DWORD PTR 24[rax]
	add	eax, 4096
	cmp	DWORD PTR -88[rbp], eax
	setb	al
	movzx	eax, al
	and	DWORD PTR -120[rbp], eax
	mov	eax, DWORD PTR -88[rbp]
	imul	eax, DWORD PTR -120[rbp]
	mov	DWORD PTR -88[rbp], eax
	mov	DWORD PTR -132[rbp], 1
	jmp	.L141
.L142:
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	setbe	al
	movzx	eax, al
	and	DWORD PTR -104[rbp], eax
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 192[rax]
	mov	ecx, DWORD PTR -88[rbp]
	mov	edx, DWORD PTR -132[rbp]
	add	edx, ecx
	mov	edx, edx
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edx, DWORD PTR -124[rbp]
	sub	edx, 1
	cmp	eax, edx
	sete	al
	movzx	eax, al
	imul	eax, DWORD PTR -104[rbp]
	add	DWORD PTR -108[rbp], eax
	add	DWORD PTR -132[rbp], 1
.L141:
	cmp	DWORD PTR -132[rbp], 256
	jbe	.L142
	mov	eax, DWORD PTR -108[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	sete	al
	movzx	eax, al
	and	DWORD PTR -120[rbp], eax
	mov	edx, DWORD PTR -120[rbp]
	mov	eax, edx
	sal	eax, 9
	sub	eax, edx
	and	DWORD PTR -124[rbp], eax
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 212[rax]
	sub	eax, DWORD PTR -124[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -152[rbp]
	mov	DWORD PTR 212[rax], edx
	cmp	DWORD PTR -128[rbp], 0
	jne	.L145
	jmp	.L162
.L140:
	mov	eax, -27648
	jmp	.L126
.L128:
	mov	eax, -27648
	jmp	.L126
.L162:
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR 212[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	eax, DWORD PTR 24[rax]
	sub	edx, eax
	mov	rax, QWORD PTR -152[rbp]
	mov	DWORD PTR 212[rax], edx
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 212[rax]
	shr	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 176[rax]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR 212[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 176[rax]
	add	rax, 1
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	rcx, QWORD PTR 192[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 212[rax]
	mov	eax, eax
	add	rcx, rax
	lea	rax, -64[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jle	.L146
	mov	DWORD PTR -84[rbp], 0
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR 212[rax]
	mov	eax, DWORD PTR -124[rbp]
	add	eax, edx
	add	eax, 21
	shr	eax, 6
	mov	edx, eax
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 212[rax]
	add	eax, 21
	shr	eax, 6
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -84[rbp], eax
	mov	edx, DWORD PTR -120[rbp]
	mov	eax, edx
	sal	eax, 8
	sub	eax, edx
	and	DWORD PTR -84[rbp], eax
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 160[rax]
	mov	rdx, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR 96[rdx]
	lea	rcx, 88[rdx]
	mov	edx, 8
	mov	rsi, rax
	mov	rdi, rcx
	call	mbedtls_md_hmac_update@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 168[rax]
	mov	rdx, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR 96[rdx]
	lea	rcx, 88[rdx]
	mov	edx, 3
	mov	rsi, rax
	mov	rdi, rcx
	call	mbedtls_md_hmac_update@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 176[rax]
	mov	rdx, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR 96[rdx]
	lea	rcx, 88[rdx]
	mov	edx, 2
	mov	rsi, rax
	mov	rdi, rcx
	call	mbedtls_md_hmac_update@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR 212[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 192[rax]
	mov	rcx, QWORD PTR -152[rbp]
	mov	rcx, QWORD PTR 96[rcx]
	add	rcx, 88
	mov	rsi, rax
	mov	rdi, rcx
	call	mbedtls_md_hmac_update@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR 192[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 212[rax]
	mov	eax, eax
	add	rdx, rax
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 96[rax]
	add	rax, 88
	mov	rsi, rdx
	mov	rdi, rax
	call	mbedtls_md_hmac_finish@PLT
	mov	DWORD PTR -100[rbp], 0
	jmp	.L147
.L148:
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 192[rax]
	mov	rdx, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR 96[rdx]
	add	rdx, 88
	mov	rsi, rax
	mov	rdi, rdx
	call	mbedtls_md_process@PLT
	add	DWORD PTR -100[rbp], 1
.L147:
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 1
	cmp	DWORD PTR -100[rbp], eax
	jb	.L148
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 96[rax]
	add	rax, 88
	mov	rdi, rax
	call	mbedtls_md_hmac_reset@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	rcx, QWORD PTR 192[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 212[rax]
	mov	eax, eax
	add	rcx, rax
	lea	rax, -64[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	mbedtls_ssl_safer_memcmp
	test	eax, eax
	je	.L151
	jmp	.L163
.L146:
	mov	eax, -27648
	jmp	.L126
.L163:
	mov	DWORD PTR -120[rbp], 0
.L151:
	add	DWORD PTR -128[rbp], 1
	cmp	DWORD PTR -120[rbp], 0
	jne	.L145
	mov	eax, -29056
	jmp	.L126
.L145:
	cmp	DWORD PTR -128[rbp], 1
	je	.L153
	mov	eax, -27648
	jmp	.L126
.L153:
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 212[rax]
	test	eax, eax
	jne	.L154
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 252[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	DWORD PTR 252[rax], edx
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 252[rax]
	cmp	eax, 3
	jle	.L155
	mov	eax, -29056
	jmp	.L126
.L154:
	mov	rax, QWORD PTR -152[rbp]
	mov	DWORD PTR 252[rax], 0
.L155:
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	jne	.L156
	mov	DWORD PTR -132[rbp], 8
	jmp	.L157
.L160:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR 160[rax]
	mov	eax, DWORD PTR -132[rbp]
	sub	eax, 1
	mov	eax, eax
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	add	edx, 1
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L164
	sub	DWORD PTR -132[rbp], 1
.L157:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	ssl_ep_len
	cmp	DWORD PTR -132[rbp], eax
	ja	.L160
	jmp	.L159
.L164:
	nop
.L159:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	ssl_ep_len
	cmp	DWORD PTR -132[rbp], eax
	jne	.L156
	mov	eax, -27520
	jmp	.L126
.L156:
	mov	eax, 0
.L126:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L161
	call	__stack_chk_fail@PLT
.L161:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	ssl_decrypt_buf, .-ssl_decrypt_buf
	.globl	mbedtls_ssl_fetch_input
	.type	mbedtls_ssl_fetch_input, @function
mbedtls_ssl_fetch_input:
.LFB28:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	jne	.L166
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	jne	.L166
	mov	eax, -28928
	jmp	.L167
.L166:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 168[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 152[rax]
	mov	rax, rdx
	sub	rax, rcx
	mov	edx, eax
	mov	eax, 4413
	sub	eax, edx
	cmp	DWORD PTR -28[rbp], eax
	jbe	.L168
	mov	eax, -28928
	jmp	.L167
.L168:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L188
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 136[rax]
	test	rax, rax
	je	.L170
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 144[rax]
	test	rax, rax
	jne	.L171
.L170:
	mov	eax, -28928
	jmp	.L167
.L171:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 224[rax]
	test	eax, eax
	je	.L172
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 216[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 224[rax]
	cmp	edx, eax
	jnb	.L173
	mov	eax, -27648
	jmp	.L167
.L173:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 216[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 224[rax]
	sub	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 216[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 216[rax]
	test	eax, eax
	je	.L174
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 216[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 168[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 224[rax]
	mov	eax, eax
	add	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 168[rax]
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
.L174:
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 224[rax], 0
.L172:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 216[rax]
	cmp	DWORD PTR -28[rbp], eax
	ja	.L175
	mov	eax, 0
	jmp	.L167
.L175:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 216[rax]
	test	eax, eax
	je	.L176
	mov	eax, -27648
	jmp	.L167
.L176:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ssl_check_timer
	test	eax, eax
	je	.L177
	mov	DWORD PTR -16[rbp], -26624
	jmp	.L178
.L177:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 168[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 152[rax]
	mov	rax, rdx
	sub	rax, rcx
	mov	edx, eax
	mov	eax, 4413
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 16
	je	.L179
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L180
.L179:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 144[rax]
	mov	QWORD PTR -8[rbp], rax
.L180:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L181
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR 168[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rcx, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	rdi, rax
	call	r8
	mov	DWORD PTR -16[rbp], eax
	jmp	.L182
.L181:
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 168[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	r8
	mov	DWORD PTR -16[rbp], eax
.L182:
	cmp	DWORD PTR -16[rbp], 0
	jne	.L178
	mov	eax, -29312
	jmp	.L167
.L178:
	cmp	DWORD PTR -16[rbp], -26624
	jne	.L183
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	ssl_set_timer
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 16
	je	.L183
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ssl_double_retransmit_timeout
	test	eax, eax
	je	.L184
	mov	eax, -26624
	jmp	.L167
.L184:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_resend
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	je	.L185
	mov	eax, DWORD PTR -16[rbp]
	jmp	.L167
.L185:
	mov	eax, -26880
	jmp	.L167
.L183:
	cmp	DWORD PTR -16[rbp], 0
	jns	.L186
	mov	eax, DWORD PTR -16[rbp]
	jmp	.L167
.L186:
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 216[rax], edx
	jmp	.L187
.L194:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 216[rax]
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ssl_check_timer
	test	eax, eax
	je	.L189
	mov	DWORD PTR -16[rbp], -26624
	jmp	.L190
.L189:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L191
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR 144[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 168[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 216[rax]
	mov	eax, eax
	lea	rsi, [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	rdi, rax
	call	r8
	mov	DWORD PTR -16[rbp], eax
	jmp	.L190
.L191:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 168[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 216[rax]
	mov	eax, eax
	lea	rsi, [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	rdi, rax
	call	rcx
	mov	DWORD PTR -16[rbp], eax
.L190:
	cmp	DWORD PTR -16[rbp], 0
	jne	.L192
	mov	eax, -29312
	jmp	.L167
.L192:
	cmp	DWORD PTR -16[rbp], 0
	jns	.L193
	mov	eax, DWORD PTR -16[rbp]
	jmp	.L167
.L193:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 216[rax]
	mov	eax, DWORD PTR -16[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 216[rax], edx
.L188:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 216[rax]
	cmp	DWORD PTR -28[rbp], eax
	ja	.L194
.L187:
	mov	eax, 0
.L167:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	mbedtls_ssl_fetch_input, .-mbedtls_ssl_fetch_input
	.globl	mbedtls_ssl_flush_output
	.type	mbedtls_ssl_flush_output, @function
mbedtls_ssl_flush_output:
.LFB29:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	jne	.L196
	mov	eax, -28928
	jmp	.L197
.L196:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 320[rax]
	test	eax, eax
	jne	.L199
	mov	eax, 0
	jmp	.L197
.L201:
	mov	rax, QWORD PTR -40[rbp]
	mov	rbx, QWORD PTR 280[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_hdr_len
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 316[rax]
	mov	eax, eax
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 320[rax]
	mov	ecx, eax
	mov	rax, rdx
	sub	rax, rcx
	add	rax, rbx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 320[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	r8
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jg	.L200
	mov	eax, DWORD PTR -28[rbp]
	jmp	.L197
.L200:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 320[rax]
	mov	ecx, DWORD PTR -28[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 320[rax], edx
.L199:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 320[rax]
	test	eax, eax
	jne	.L201
	mov	BYTE PTR -29[rbp], 8
	jmp	.L202
.L205:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 272[rax]
	movzx	eax, BYTE PTR -29[rbp]
	sub	rax, 1
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	add	edx, 1
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L207
	movzx	eax, BYTE PTR -29[rbp]
	sub	eax, 1
	mov	BYTE PTR -29[rbp], al
.L202:
	movzx	ebx, BYTE PTR -29[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ssl_ep_len
	cmp	ebx, eax
	ja	.L205
	jmp	.L204
.L207:
	nop
.L204:
	movzx	ebx, BYTE PTR -29[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ssl_ep_len
	cmp	ebx, eax
	jne	.L206
	mov	eax, -27520
	jmp	.L197
.L206:
	mov	eax, 0
.L197:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	mbedtls_ssl_flush_output, .-mbedtls_ssl_flush_output
	.type	ssl_flight_append, @function
ssl_flight_append:
.LFB30:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	esi, 24
	mov	edi, 1
	call	mbedtls_calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L209
	mov	eax, -32512
	jmp	.L210
.L209:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 316[rax]
	mov	esi, eax
	mov	edi, 1
	call	mbedtls_calloc@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L211
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	mbedtls_free@PLT
	mov	eax, -32512
	jmp	.L210
.L211:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 316[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 304[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 316[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 312[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 12[rax], dl
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 64[rax]
	test	rax, rax
	jne	.L212
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 64[rax], rdx
	jmp	.L213
.L212:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 64[rax]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L214
.L215:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
.L214:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L215
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
.L213:
	mov	eax, 0
.L210:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE30:
	.size	ssl_flight_append, .-ssl_flight_append
	.type	ssl_flight_free, @function
ssl_flight_free:
.LFB31:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L217
.L218:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	mbedtls_free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
.L217:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L218
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE31:
	.size	ssl_flight_free, .-ssl_flight_free
	.type	ssl_swap_epochs, @function
ssl_swap_epochs:
.LFB32:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 104[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 88[rax]
	cmp	rdx, rax
	je	.L225
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdx, QWORD PTR 88[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 88[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 272[rax]
	lea	rax, -16[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 88[rax]
	lea	rcx, 96[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 272[rax]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 88[rax]
	lea	rcx, 96[rax]
	lea	rax, -16[rbp]
	mov	edx, 8
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 104[rax]
	test	rax, rax
	je	.L222
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 1
	jle	.L222
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 296[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	eax, DWORD PTR 16[rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	eax, DWORD PTR 20[rax]
	mov	esi, eax
	mov	rax, rcx
	sub	rax, rsi
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 304[rax], rdx
	jmp	.L219
.L222:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 296[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 304[rax], rdx
	jmp	.L219
.L225:
	nop
.L219:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L224
	call	__stack_chk_fail@PLT
.L224:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE32:
	.size	ssl_swap_epochs, .-ssl_swap_epochs
	.globl	mbedtls_ssl_resend
	.type	mbedtls_ssl_resend, @function
mbedtls_ssl_resend:
.LFB33:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	movzx	eax, BYTE PTR 56[rax]
	cmp	al, 1
	je	.L228
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 88[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdx, QWORD PTR 64[rdx]
	mov	QWORD PTR 72[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ssl_swap_epochs
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	BYTE PTR 56[rax], 1
	jmp	.L228
.L231:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 72[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 12[rax]
	cmp	al, 22
	jne	.L229
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 20
	jne	.L229
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ssl_swap_epochs
.L229:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 316[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 12[rax]
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 312[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rdx]
	mov	QWORD PTR 72[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_write_record
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L228
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L230
.L228:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 72[rax]
	test	rax, rax
	jne	.L231
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 16
	jne	.L232
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	BYTE PTR 56[rax], 3
	jmp	.L233
.L232:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	BYTE PTR 56[rax], 2
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ssl_set_timer
.L233:
	mov	eax, 0
.L230:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE33:
	.size	mbedtls_ssl_resend, .-mbedtls_ssl_resend
	.globl	mbedtls_ssl_recv_flight_completed
	.type	mbedtls_ssl_recv_flight_completed, @function
mbedtls_ssl_recv_flight_completed:
.LFB34:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 64[rax]
	mov	rdi, rax
	call	ssl_flight_free
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	QWORD PTR 64[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	QWORD PTR 72[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 88[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	edx, DWORD PTR 20[rdx]
	mov	DWORD PTR 80[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	ssl_set_timer
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 208[rax]
	cmp	eax, 22
	jne	.L235
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 192[rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 20
	jne	.L235
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	BYTE PTR 56[rax], 3
	jmp	.L236
.L235:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	BYTE PTR 56[rax], 0
	nop
.L236:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE34:
	.size	mbedtls_ssl_recv_flight_completed, .-mbedtls_ssl_recv_flight_completed
	.globl	mbedtls_ssl_send_flight_completed
	.type	mbedtls_ssl_send_flight_completed, @function
mbedtls_ssl_send_flight_completed:
.LFB35:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ssl_reset_retransmit_timeout
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ssl_set_timer
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 208[rax]
	cmp	eax, 22
	jne	.L238
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 192[rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 20
	jne	.L238
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	BYTE PTR 56[rax], 3
	jmp	.L239
.L238:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	BYTE PTR 56[rax], 2
	nop
.L239:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE35:
	.size	mbedtls_ssl_send_flight_completed, .-mbedtls_ssl_send_flight_completed
	.globl	mbedtls_ssl_write_record
	.type	mbedtls_ssl_write_record, @function
mbedtls_ssl_write_record:
.LFB36:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 316[rax]
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L241
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	test	rax, rax
	je	.L241
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	movzx	eax, BYTE PTR 56[rax]
	cmp	al, 1
	je	.L242
.L241:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 312[rax]
	cmp	eax, 22
	jne	.L242
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L243
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	test	rax, rax
	jne	.L243
	mov	eax, -27648
	jmp	.L244
.L243:
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 4
	shr	eax, 16
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	add	rax, 1
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 4
	shr	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	add	rax, 2
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	add	rax, 3
	sub	edx, 4
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L245
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	lea	rcx, 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	add	rax, 12
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 316[rax]
	lea	edx, 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 316[rax], edx
	add	DWORD PTR -16[rbp], 8
	cmp	DWORD PTR -8[rbp], 0
	je	.L246
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	eax, DWORD PTR 16[rax]
	shr	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	add	rax, 4
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	add	rax, 5
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	edx, DWORD PTR 16[rax]
	add	edx, 1
	mov	DWORD PTR 16[rax], edx
	jmp	.L247
.L246:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	add	rax, 4
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	add	rax, 5
	mov	BYTE PTR [rax], 0
.L247:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	add	rax, 6
	mov	edx, 3
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	add	rax, 9
	mov	edx, 3
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
.L245:
	cmp	DWORD PTR -8[rbp], 0
	je	.L242
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	r8, QWORD PTR 120[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 304[rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	r8
.L242:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L248
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	test	rax, rax
	je	.L248
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	movzx	eax, BYTE PTR 56[rax]
	cmp	al, 1
	je	.L248
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 312[rax]
	cmp	eax, 20
	je	.L249
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 312[rax]
	cmp	eax, 22
	jne	.L248
.L249:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ssl_flight_append
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L248
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L244
.L248:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L250
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 312[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 280[rax]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 280[rax]
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	shr	al
	and	eax, 1
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	edi, eax
	call	mbedtls_ssl_write_version
	mov	eax, DWORD PTR -16[rbp]
	shr	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 288[rax]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 288[rax]
	add	rax, 1
	mov	edx, DWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 104[rax]
	test	rax, rax
	je	.L251
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ssl_encrypt_buf
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L252
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L244
.L252:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 316[rax]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	shr	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 288[rax]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 288[rax]
	add	rax, 1
	mov	edx, DWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
.L251:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_hdr_len
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 316[rax]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 320[rax], edx
.L250:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_flush_output
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L253
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L244
.L253:
	mov	eax, 0
.L244:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE36:
	.size	mbedtls_ssl_write_record, .-mbedtls_ssl_write_record
	.type	ssl_bitmask_set, @function
ssl_bitmask_set:
.LFB37:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 7
	mov	edx, eax
	mov	eax, 8
	sub	eax, edx
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 8
	je	.L255
	mov	eax, DWORD PTR -28[rbp]
	shr	eax, 3
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	ja	.L256
	jmp	.L257
.L258:
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	esi, eax
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -32[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	esi, eax
	mov	ecx, esi
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	sub	DWORD PTR -32[rbp], 1
.L257:
	cmp	DWORD PTR -32[rbp], 0
	jne	.L258
	jmp	.L254
.L256:
	mov	eax, DWORD PTR -16[rbp]
	add	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	sub	DWORD PTR -32[rbp], eax
	jmp	.L260
.L261:
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	esi, eax
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 1
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	esi, eax
	mov	ecx, esi
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	sub	DWORD PTR -16[rbp], 1
.L260:
	cmp	DWORD PTR -16[rbp], 0
	jne	.L261
.L255:
	mov	eax, DWORD PTR -32[rbp]
	and	eax, 7
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L262
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	shr	eax, 3
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	sub	DWORD PTR -32[rbp], eax
	jmp	.L263
.L264:
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	esi, eax
	mov	eax, 8
	sub	eax, DWORD PTR -12[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	ecx, esi
	or	ecx, eax
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	sub	DWORD PTR -12[rbp], 1
.L263:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L264
.L262:
	mov	eax, DWORD PTR -32[rbp]
	shr	eax, 3
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	shr	eax, 3
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	esi, 255
	mov	rdi, rax
	call	memset@PLT
.L254:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE37:
	.size	ssl_bitmask_set, .-ssl_bitmask_set
	.type	ssl_bitmask_check, @function
ssl_bitmask_check:
.LFB38:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L266
.L269:
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, -1
	je	.L267
	mov	eax, -1
	jmp	.L268
.L267:
	add	DWORD PTR -4[rbp], 1
.L266:
	mov	eax, DWORD PTR -28[rbp]
	shr	eax, 3
	cmp	DWORD PTR -4[rbp], eax
	jb	.L269
	mov	DWORD PTR -4[rbp], 0
	jmp	.L270
.L272:
	mov	eax, DWORD PTR -28[rbp]
	shr	eax, 3
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, 7
	sub	eax, DWORD PTR -4[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	test	eax, eax
	jne	.L271
	mov	eax, -1
	jmp	.L268
.L271:
	add	DWORD PTR -4[rbp], 1
.L270:
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 7
	cmp	DWORD PTR -4[rbp], eax
	jb	.L272
	mov	eax, 0
.L268:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE38:
	.size	ssl_bitmask_check, .-ssl_bitmask_check
	.type	ssl_reassemble_dtls_handshake, @function
ssl_reassemble_dtls_handshake:
.LFB39:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 248[rax]
	sub	eax, 12
	mov	DWORD PTR -68[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 88[rax]
	test	rax, rax
	jne	.L274
	mov	eax, -28800
	jmp	.L275
.L274:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	jne	.L276
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 248[rax]
	cmp	eax, 4096
	jbe	.L277
	mov	eax, -28800
	jmp	.L275
.L277:
	mov	eax, DWORD PTR -68[rbp]
	shr	eax, 3
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	and	eax, 7
	test	eax, eax
	setne	al
	movzx	eax, al
	add	eax, edx
	add	eax, 12
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rbx, QWORD PTR 88[rax]
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	mov	edi, 1
	call	mbedtls_calloc@PLT
	mov	QWORD PTR 40[rbx], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	jne	.L278
	mov	eax, -32512
	jmp	.L275
.L278:
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR 192[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, 6
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 40[rax]
	add	rax, 6
	mov	edx, 3
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 40[rax]
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 40[rax]
	add	rax, 9
	mov	edx, 3
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	jmp	.L279
.L276:
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR 192[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 40[rax]
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L279
	mov	eax, -29184
	jmp	.L275
.L279:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 40[rax]
	add	rax, 12
	mov	QWORD PTR -48[rbp], rax
	mov	edx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 192[rax]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 192[rax]
	add	rax, 7
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 192[rax]
	add	rax, 8
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR -60[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 192[rax]
	add	rax, 9
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 192[rax]
	add	rax, 10
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 192[rax]
	add	rax, 11
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR -56[rbp], eax
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -56[rbp]
	add	eax, edx
	cmp	DWORD PTR -68[rbp], eax
	jnb	.L280
	mov	eax, -29184
	jmp	.L275
.L280:
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, 12[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 212[rax]
	cmp	edx, eax
	jbe	.L281
	mov	eax, -29184
	jmp	.L275
.L281:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 192[rax]
	lea	rsi, 12[rax]
	mov	edx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, eax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	edx, DWORD PTR -56[rbp]
	mov	ecx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	ssl_bitmask_set
	mov	edx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	ssl_bitmask_check
	test	eax, eax
	je	.L282
	mov	eax, -26880
	jmp	.L275
.L282:
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, 12[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 212[rax]
	cmp	edx, eax
	jnb	.L283
	mov	eax, -28800
	jmp	.L275
.L283:
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR 216[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 224[rax]
	cmp	edx, eax
	jbe	.L284
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR 168[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 224[rax]
	mov	eax, eax
	add	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR 192[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 248[rax]
	mov	eax, eax
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR 216[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	ecx, DWORD PTR 224[rax]
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR 168[rax]
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, rdx
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 224[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR 224[rax]
	mov	eax, DWORD PTR -52[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 216[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR 216[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR 168[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, QWORD PTR 152[rax]
	mov	rax, rcx
	sub	rax, rsi
	mov	ecx, eax
	mov	eax, 4413
	sub	eax, ecx
	cmp	edx, eax
	jbe	.L285
	mov	eax, -27136
	jmp	.L275
.L285:
	mov	edx, DWORD PTR -52[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
.L284:
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR 248[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rcx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 192[rax]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 40[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	QWORD PTR 40[rax], 0
	mov	eax, 0
.L275:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE39:
	.size	ssl_reassemble_dtls_handshake, .-ssl_reassemble_dtls_handshake
	.section	.rodata
.LC2:
	.string	""
	.string	""
	.string	""
	.string	""
	.text
	.globl	mbedtls_ssl_prepare_handshake_record
	.type	mbedtls_ssl_prepare_handshake_record, @function
mbedtls_ssl_prepare_handshake_record:
.LFB40:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	ebx, DWORD PTR 212[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_hs_hdr_len
	cmp	ebx, eax
	jnb	.L287
	mov	eax, -29184
	jmp	.L288
.L287:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_hs_hdr_len
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 192[rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	mov	ecx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 192[rax]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	ecx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 192[rax]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, ecx
	add	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 248[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L289
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 192[rax]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 192[rax]
	add	rax, 5
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 88[rax]
	test	rax, rax
	je	.L290
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	eax, DWORD PTR 20[rax]
	cmp	DWORD PTR -24[rbp], eax
	je	.L290
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	eax, DWORD PTR 80[rax]
	sub	eax, 1
	cmp	DWORD PTR -24[rbp], eax
	jne	.L291
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 192[rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 3
	je	.L291
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_resend
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L291
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L288
.L291:
	mov	eax, -26880
	jmp	.L288
.L290:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 212[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 248[rax]
	cmp	edx, eax
	jb	.L292
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 192[rax]
	add	rax, 6
	mov	edx, 3
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L292
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 192[rax]
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 192[rax]
	add	rax, 9
	mov	edx, 3
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L292
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 88[rax]
	test	rax, rax
	je	.L293
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L293
.L292:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ssl_reassemble_dtls_handshake
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L293
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L288
.L289:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 212[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 248[rax]
	cmp	edx, eax
	jnb	.L293
	mov	eax, -28800
	jmp	.L288
.L293:
	mov	eax, 0
.L288:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE40:
	.size	mbedtls_ssl_prepare_handshake_record, .-mbedtls_ssl_prepare_handshake_record
	.globl	mbedtls_ssl_update_handshake_status
	.type	mbedtls_ssl_update_handshake_status, @function
mbedtls_ssl_update_handshake_status:
.LFB41:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 16
	je	.L295
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	test	rax, rax
	je	.L295
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	r8, QWORD PTR 120[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 248[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 192[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	r8
.L295:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L297
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	test	rax, rax
	je	.L297
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	edx, DWORD PTR 20[rax]
	add	edx, 1
	mov	DWORD PTR 20[rax], edx
.L297:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE41:
	.size	mbedtls_ssl_update_handshake_status, .-mbedtls_ssl_update_handshake_status
	.type	ssl_dtls_replay_reset, @function
ssl_dtls_replay_reset:
.LFB42:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 232[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 240[rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE42:
	.size	ssl_dtls_replay_reset, .-ssl_dtls_replay_reset
	.type	ssl_load_six_bytes, @function
ssl_load_six_bytes:
.LFB43:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	rax, 40
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	rax, 32
	or	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	rax, 24
	or	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	rax, 16
	or	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	rax, 8
	or	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 5
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE43:
	.size	ssl_load_six_bytes, .-ssl_load_six_bytes
	.globl	mbedtls_ssl_dtls_replay_check
	.type	mbedtls_ssl_dtls_replay_check, @function
mbedtls_ssl_dtls_replay_check:
.LFB44:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 160[rax]
	add	rax, 2
	mov	rdi, rax
	call	ssl_load_six_bytes
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 173[rax]
	and	eax, 2
	test	al, al
	jne	.L302
	mov	eax, 0
	jmp	.L303
.L302:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 232[rax]
	cmp	QWORD PTR -16[rbp], rax
	jbe	.L304
	mov	eax, 0
	jmp	.L303
.L304:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 232[rax]
	sub	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 63
	jbe	.L305
	mov	eax, -1
	jmp	.L303
.L305:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 240[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	ecx, edx
	shr	rax, cl
	and	eax, 1
	test	rax, rax
	je	.L306
	mov	eax, -1
	jmp	.L303
.L306:
	mov	eax, 0
.L303:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE44:
	.size	mbedtls_ssl_dtls_replay_check, .-mbedtls_ssl_dtls_replay_check
	.globl	mbedtls_ssl_dtls_replay_update
	.type	mbedtls_ssl_dtls_replay_update, @function
mbedtls_ssl_dtls_replay_update:
.LFB45:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 40
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 160[rax]
	add	rax, 2
	mov	rdi, rax
	call	ssl_load_six_bytes
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 173[rax]
	and	eax, 2
	test	al, al
	je	.L313
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 232[rax]
	cmp	QWORD PTR -24[rbp], rax
	jbe	.L310
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 63
	jbe	.L311
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 240[rax], 1
	jmp	.L312
.L311:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 240[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	ecx, edx
	sal	rax, cl
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 240[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 240[rax]
	or	rax, 1
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 240[rax], rdx
.L312:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 232[rax], rdx
	jmp	.L307
.L310:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 232[rax]
	sub	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 63
	ja	.L307
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 240[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 1
	mov	ecx, eax
	sal	rsi, cl
	mov	rax, rsi
	or	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 240[rax], rdx
	jmp	.L307
.L313:
	nop
.L307:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE45:
	.size	mbedtls_ssl_dtls_replay_update, .-mbedtls_ssl_dtls_replay_update
	.type	ssl_parse_record_header, @function
ssl_parse_record_header:
.LFB46:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 168[rax]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 208[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 176[rax]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 176[rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 212[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 168[rax]
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	shr	al
	and	eax, 1
	movzx	edx, al
	lea	rsi, -20[rbp]
	lea	rax, -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_read_version
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 208[rax]
	cmp	eax, 22
	je	.L315
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 208[rax]
	cmp	eax, 21
	je	.L315
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 208[rax]
	cmp	eax, 20
	je	.L315
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 208[rax]
	cmp	eax, 23
	je	.L315
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 10
	mov	esi, 2
	mov	rdi, rax
	call	mbedtls_ssl_send_alert_message
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	je	.L316
	mov	eax, DWORD PTR -16[rbp]
	jmp	.L329
.L316:
	mov	eax, -29184
	jmp	.L329
.L315:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	eax, DWORD PTR -24[rbp]
	cmp	edx, eax
	je	.L318
	mov	eax, -29184
	jmp	.L329
.L318:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 169[rax]
	movzx	edx, al
	mov	eax, DWORD PTR -20[rbp]
	cmp	edx, eax
	jge	.L319
	mov	eax, -29184
	jmp	.L329
.L319:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 212[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 192[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR 152[rax]
	mov	rax, rcx
	sub	rax, rsi
	mov	ecx, eax
	mov	eax, 4413
	sub	eax, ecx
	cmp	edx, eax
	jbe	.L320
	mov	eax, -29184
	jmp	.L329
.L320:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 96[rax]
	test	rax, rax
	jne	.L321
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 212[rax]
	test	eax, eax
	je	.L322
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 212[rax]
	cmp	eax, 4096
	jbe	.L323
.L322:
	mov	eax, -29184
	jmp	.L329
.L321:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 212[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	eax, DWORD PTR 12[rax]
	cmp	edx, eax
	jnb	.L324
	mov	eax, -29184
	jmp	.L329
.L324:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jle	.L323
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 212[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	eax, DWORD PTR 12[rax]
	add	eax, 4352
	cmp	edx, eax
	jbe	.L323
	mov	eax, -29184
	jmp	.L329
.L323:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L325
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 160[rax]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 160[rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 208[rax]
	cmp	eax, 20
	jne	.L326
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 10
	je	.L326
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 12
	je	.L326
	mov	eax, -26368
	jmp	.L329
.L326:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 208[rax]
	cmp	eax, 23
	jne	.L327
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 16
	je	.L327
	mov	eax, -26368
	jmp	.L329
.L327:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR 220[rax]
	movzx	eax, ax
	cmp	DWORD PTR -12[rbp], eax
	je	.L328
	mov	eax, -26368
	jmp	.L329
.L328:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR 220[rax]
	movzx	eax, ax
	cmp	DWORD PTR -12[rbp], eax
	jne	.L325
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_dtls_replay_check
	test	eax, eax
	je	.L325
	mov	eax, -26368
	jmp	.L329
.L325:
	mov	eax, 0
.L329:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L330
	call	__stack_chk_fail@PLT
.L330:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE46:
	.size	ssl_parse_record_header, .-ssl_parse_record_header
	.type	ssl_prepare_record_content, @function
ssl_prepare_record_content:
.LFB47:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	cmp	DWORD PTR -8[rbp], 0
	jne	.L332
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 96[rax]
	test	rax, rax
	je	.L332
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ssl_decrypt_buf
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L333
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L334
.L333:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 212[rax]
	cmp	eax, 4096
	jbe	.L332
	mov	eax, -29184
	jmp	.L334
.L332:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L335
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_dtls_replay_update
.L335:
	mov	eax, 0
.L334:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE47:
	.size	ssl_prepare_record_content, .-ssl_prepare_record_content
	.globl	mbedtls_ssl_read_record
	.type	mbedtls_ssl_read_record, @function
mbedtls_ssl_read_record:
.LFB48:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
.L339:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_read_record_layer
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L337
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L338
.L337:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_handle_message_type
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -26240
	je	.L339
	cmp	DWORD PTR -4[rbp], 0
	je	.L340
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L338
.L340:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 208[rax]
	cmp	eax, 22
	jne	.L341
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_update_handshake_status
.L341:
	mov	eax, 0
.L338:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE48:
	.size	mbedtls_ssl_read_record, .-mbedtls_ssl_read_record
	.globl	mbedtls_ssl_read_record_layer
	.type	mbedtls_ssl_read_record_layer, @function
mbedtls_ssl_read_record_layer:
.LFB49:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 248[rax]
	test	eax, eax
	je	.L343
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 248[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 212[rax]
	cmp	edx, eax
	jnb	.L343
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 212[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 248[rax]
	sub	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 212[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 212[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 192[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 248[rax]
	mov	eax, eax
	add	rcx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 192[rax]
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	mov	eax, 0
	jmp	.L344
.L343:
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 248[rax], 0
.L345:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_hdr_len
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	mbedtls_ssl_fetch_input
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L346
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L344
.L346:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ssl_parse_record_header
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L347
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L348
	cmp	DWORD PTR -20[rbp], -26496
	je	.L348
	cmp	DWORD PTR -20[rbp], -26368
	jne	.L349
	mov	rax, QWORD PTR -40[rbp]
	mov	ebx, DWORD PTR 212[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_hdr_len
	lea	edx, [rbx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 224[rax], edx
	jmp	.L345
.L349:
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 224[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 216[rax], 0
	jmp	.L345
.L348:
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L344
.L347:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_hdr_len
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 212[rax]
	add	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	mbedtls_ssl_fetch_input
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L351
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L344
.L351:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L352
	mov	rax, QWORD PTR -40[rbp]
	mov	ebx, DWORD PTR 212[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_hdr_len
	lea	edx, [rbx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 224[rax], edx
	jmp	.L353
.L352:
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 216[rax], 0
.L353:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ssl_prepare_record_content
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L354
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L355
	cmp	DWORD PTR -20[rbp], -29184
	je	.L356
	cmp	DWORD PTR -20[rbp], -29056
	jne	.L357
.L356:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 11
	je	.L358
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 13
	jne	.L345
.L358:
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L344
.L357:
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L344
.L355:
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L344
.L354:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L360
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 88[rax]
	test	rax, rax
	je	.L360
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 16
	jne	.L360
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 208[rax]
	cmp	eax, 22
	jne	.L361
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 192[rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 20
	jne	.L361
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_resend
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L362
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L344
.L362:
	mov	eax, -26880
	jmp	.L344
.L361:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ssl_handshake_wrapup_free_hs_transform
.L360:
	mov	eax, 0
.L344:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE49:
	.size	mbedtls_ssl_read_record_layer, .-mbedtls_ssl_read_record_layer
	.globl	mbedtls_ssl_handle_message_type
	.type	mbedtls_ssl_handle_message_type, @function
mbedtls_ssl_handle_message_type:
.LFB50:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 208[rax]
	cmp	eax, 22
	jne	.L364
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_prepare_handshake_record
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L364
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L365
.L364:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 208[rax]
	cmp	eax, 21
	jne	.L366
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 192[rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 2
	jne	.L367
	mov	eax, -30592
	jmp	.L365
.L367:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 192[rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L368
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 192[rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L368
	mov	eax, -30848
	jmp	.L365
.L368:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 192[rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L369
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 192[rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 100
	jne	.L369
	mov	eax, 0
	jmp	.L365
.L369:
	mov	eax, -26240
	jmp	.L365
.L366:
	mov	eax, 0
.L365:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE50:
	.size	mbedtls_ssl_handle_message_type, .-mbedtls_ssl_handle_message_type
	.globl	mbedtls_ssl_send_fatal_handshake_failure
	.type	mbedtls_ssl_send_fatal_handshake_failure, @function
mbedtls_ssl_send_fatal_handshake_failure:
.LFB51:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 40
	mov	esi, 2
	mov	rdi, rax
	call	mbedtls_ssl_send_alert_message
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L371
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L372
.L371:
	mov	eax, 0
.L372:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE51:
	.size	mbedtls_ssl_send_fatal_handshake_failure, .-mbedtls_ssl_send_fatal_handshake_failure
	.globl	mbedtls_ssl_send_alert_message
	.type	mbedtls_ssl_send_alert_message, @function
mbedtls_ssl_send_alert_message:
.LFB52:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	ecx, esi
	mov	eax, edx
	mov	edx, ecx
	mov	BYTE PTR -28[rbp], dl
	mov	BYTE PTR -32[rbp], al
	cmp	QWORD PTR -24[rbp], 0
	je	.L374
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L375
.L374:
	mov	eax, -28928
	jmp	.L376
.L375:
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 312[rax], 21
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 316[rax], 2
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	movzx	edx, BYTE PTR -28[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	lea	rdx, 1[rax]
	movzx	eax, BYTE PTR -32[rbp]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_write_record
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L377
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L376
.L377:
	mov	eax, 0
.L376:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE52:
	.size	mbedtls_ssl_send_alert_message, .-mbedtls_ssl_send_alert_message
	.globl	mbedtls_ssl_write_certificate
	.type	mbedtls_ssl_write_certificate, @function
mbedtls_ssl_write_certificate:
.LFB53:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -24[rbp], -28800
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 120[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	eax, 5
	je	.L379
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	eax, 6
	je	.L379
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	eax, 8
	je	.L379
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	eax, 11
	jne	.L380
.L379:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	eax, 0
	jmp	.L381
.L380:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 1
	test	al, al
	jne	.L382
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 324[rax]
	test	eax, eax
	jne	.L382
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	eax, 0
	jmp	.L381
.L382:
	mov	DWORD PTR -28[rbp], 7
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_own_cert
	mov	QWORD PTR -16[rbp], rax
	jmp	.L383
.L385:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, 4093
	sub	eax, DWORD PTR -28[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jbe	.L384
	mov	eax, -29952
	jmp	.L381
.L384:
	mov	eax, DWORD PTR -20[rbp]
	shr	eax, 16
	mov	ecx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 304[rax]
	mov	eax, DWORD PTR -28[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -20[rbp]
	shr	eax, 8
	mov	ecx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 304[rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	eax, eax
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 304[rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 2
	mov	eax, eax
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -28[rbp], 3
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 304[rdx]
	mov	edx, DWORD PTR -28[rbp]
	add	rcx, rdx
	mov	edx, DWORD PTR -20[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -20[rbp]
	add	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 416[rax]
	mov	QWORD PTR -16[rbp], rax
.L383:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L385
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 7
	shr	eax, 16
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 304[rax]
	add	rax, 4
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 7
	shr	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 304[rax]
	add	rax, 5
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 304[rax]
	add	rax, 6
	sub	edx, 7
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 316[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 312[rax], 22
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 304[rax]
	mov	BYTE PTR [rax], 11
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_write_record
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	je	.L386
	mov	eax, DWORD PTR -24[rbp]
	jmp	.L381
.L386:
	mov	eax, DWORD PTR -24[rbp]
.L381:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE53:
	.size	mbedtls_ssl_write_certificate, .-mbedtls_ssl_write_certificate
	.globl	mbedtls_ssl_parse_certificate
	.type	mbedtls_ssl_parse_certificate, @function
mbedtls_ssl_parse_certificate:
.LFB54:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	DWORD PTR -56[rbp], -28800
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 120[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	shr	al, 2
	and	eax, 3
	movzx	eax, al
	mov	DWORD PTR -48[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	eax, 5
	je	.L388
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	eax, 6
	je	.L388
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	eax, 8
	je	.L388
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	eax, 11
	jne	.L389
.L388:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	eax, 0
	jmp	.L390
.L389:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_read_record
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], 0
	je	.L391
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L390
.L391:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 208[rax]
	cmp	eax, 22
	je	.L392
	mov	eax, -30464
	jmp	.L390
.L392:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 192[rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 11
	jne	.L393
	mov	rax, QWORD PTR -72[rbp]
	mov	ebx, DWORD PTR 248[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_hs_hdr_len
	add	eax, 6
	cmp	ebx, eax
	jnb	.L394
.L393:
	mov	eax, -31232
	jmp	.L390
.L394:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_hs_hdr_len
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 192[rax]
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 1
	mov	eax, eax
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	mov	ecx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 192[rax]
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 2
	mov	eax, eax
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, ecx
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 192[rax]
	mov	eax, DWORD PTR -52[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L395
	mov	rax, QWORD PTR -72[rbp]
	mov	ebx, DWORD PTR 248[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_hs_hdr_len
	mov	edx, DWORD PTR -44[rbp]
	add	eax, edx
	add	eax, 3
	cmp	ebx, eax
	je	.L396
.L395:
	mov	eax, -31232
	jmp	.L390
.L396:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	rax, QWORD PTR 96[rax]
	test	rax, rax
	je	.L397
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	rax, QWORD PTR 96[rax]
	mov	rdi, rax
	call	mbedtls_x509_crt_free@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	rax, QWORD PTR 96[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
.L397:
	mov	rax, QWORD PTR -72[rbp]
	mov	rbx, QWORD PTR 80[rax]
	mov	esi, 424
	mov	edi, 1
	call	mbedtls_calloc@PLT
	mov	QWORD PTR 96[rbx], rax
	mov	rax, QWORD PTR 96[rbx]
	test	rax, rax
	jne	.L398
	mov	eax, -32512
	jmp	.L390
.L398:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	rax, QWORD PTR 96[rax]
	mov	rdi, rax
	call	mbedtls_x509_crt_init@PLT
	add	DWORD PTR -52[rbp], 3
	jmp	.L399
.L404:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 192[rax]
	mov	eax, DWORD PTR -52[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L400
	mov	eax, -31232
	jmp	.L390
.L400:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 192[rax]
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 1
	mov	eax, eax
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	mov	ecx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 192[rax]
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 2
	mov	eax, eax
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, ecx
	mov	DWORD PTR -44[rbp], eax
	add	DWORD PTR -52[rbp], 3
	cmp	DWORD PTR -44[rbp], 127
	jbe	.L401
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -44[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 248[rax]
	cmp	edx, eax
	jbe	.L402
.L401:
	mov	eax, -31232
	jmp	.L390
.L402:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 192[rax]
	mov	eax, DWORD PTR -52[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	rax, QWORD PTR 96[rax]
	mov	edx, DWORD PTR -44[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	mbedtls_x509_crt_parse_der@PLT
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], 0
	je	.L403
	cmp	DWORD PTR -56[rbp], -9774
	je	.L403
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L390
.L403:
	mov	eax, DWORD PTR -44[rbp]
	add	DWORD PTR -52[rbp], eax
.L399:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 248[rax]
	cmp	DWORD PTR -52[rbp], eax
	jb	.L404
	cmp	DWORD PTR -48[rbp], 0
	je	.L405
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 120[rax]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 128[rax]
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L406
	mov	eax, -30336
	jmp	.L390
.L406:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	r8, QWORD PTR 96[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, QWORD PTR 88[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 80[rax]
	lea	r9, 104[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	r10, QWORD PTR 328[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR 104[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	rax, QWORD PTR 96[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	push	r8
	push	rdi
	mov	r8, r10
	mov	rdi, rax
	call	mbedtls_x509_crt_verify_with_profile@PLT
	add	rsp, 16
	mov	DWORD PTR -56[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 80[rax]
	lea	rcx, 104[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 1
	test	al, al
	sete	al
	movzx	edx, al
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	rax, QWORD PTR 96[rax]
	mov	rsi, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_check_cert_usage
	test	eax, eax
	je	.L407
	cmp	DWORD PTR -56[rbp], 0
	jne	.L407
	mov	DWORD PTR -56[rbp], -31232
.L407:
	cmp	DWORD PTR -48[rbp], 1
	jne	.L405
	mov	DWORD PTR -56[rbp], 0
.L405:
	mov	eax, DWORD PTR -56[rbp]
.L390:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE54:
	.size	mbedtls_ssl_parse_certificate, .-mbedtls_ssl_parse_certificate
	.globl	mbedtls_ssl_write_change_cipher_spec
	.type	mbedtls_ssl_write_change_cipher_spec, @function
mbedtls_ssl_write_change_cipher_spec:
.LFB55:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 312[rax], 20
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 316[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_write_record
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L409
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L410
.L409:
	mov	eax, 0
.L410:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE55:
	.size	mbedtls_ssl_write_change_cipher_spec, .-mbedtls_ssl_write_change_cipher_spec
	.globl	mbedtls_ssl_parse_change_cipher_spec
	.type	mbedtls_ssl_parse_change_cipher_spec, @function
mbedtls_ssl_parse_change_cipher_spec:
.LFB56:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_read_record
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L412
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L413
.L412:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 208[rax]
	cmp	eax, 20
	je	.L414
	mov	eax, -30464
	jmp	.L413
.L414:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 212[rax]
	cmp	eax, 1
	jne	.L415
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 192[rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	je	.L416
.L415:
	mov	eax, -32256
	jmp	.L413
.L416:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 120[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 96[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 80[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 56[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L417
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ssl_dtls_replay_reset
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 220[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	WORD PTR 220[rax], dx
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 220[rax]
	test	ax, ax
	jne	.L418
	mov	eax, -27520
	jmp	.L413
.L417:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 160[rax]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L418:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 1
	jle	.L419
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 184[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 120[rax]
	mov	eax, DWORD PTR 16[rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 120[rax]
	mov	eax, DWORD PTR 20[rax]
	mov	esi, eax
	mov	rax, rcx
	sub	rax, rsi
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 192[rax], rdx
	jmp	.L420
.L419:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 184[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 192[rax], rdx
.L420:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	eax, 0
.L413:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE56:
	.size	mbedtls_ssl_parse_change_cipher_spec, .-mbedtls_ssl_parse_change_cipher_spec
	.globl	mbedtls_ssl_optimize_checksum
	.type	mbedtls_ssl_optimize_checksum, @function
mbedtls_ssl_optimize_checksum:
.LFB57:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	eax, 7
	je	.L424
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	lea	rdx, ssl_update_checksum_sha256[rip]
	mov	QWORD PTR 120[rax], rdx
	jmp	.L421
.L424:
	nop
.L421:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE57:
	.size	mbedtls_ssl_optimize_checksum, .-mbedtls_ssl_optimize_checksum
	.globl	mbedtls_ssl_reset_checksum
	.type	mbedtls_ssl_reset_checksum, @function
mbedtls_ssl_reset_checksum:
.LFB58:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	add	rax, 104
	mov	rdi, rax
	call	mbedtls_sha256_free_alt@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	add	rax, 104
	mov	rdi, rax
	call	mbedtls_sha256_init_alt@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	add	rax, 104
	mov	esi, 0
	mov	rdi, rax
	call	mbedtls_sha256_starts_alt@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE58:
	.size	mbedtls_ssl_reset_checksum, .-mbedtls_ssl_reset_checksum
	.type	ssl_update_checksum_start, @function
ssl_update_checksum_start:
.LFB59:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	lea	rcx, 104[rax]
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	mbedtls_sha256_update_alt@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE59:
	.size	ssl_update_checksum_start, .-ssl_update_checksum_start
	.type	ssl_update_checksum_sha256, @function
ssl_update_checksum_sha256:
.LFB60:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	lea	rcx, 104[rax]
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	mbedtls_sha256_update_alt@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE60:
	.size	ssl_update_checksum_sha256, .-ssl_update_checksum_sha256
	.section	.rodata
.LC3:
	.string	"client finished"
.LC4:
	.string	"server finished"
	.text
	.type	ssl_calc_finished_tls_sha256, @function
ssl_calc_finished_tls_sha256:
.LFB61:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	QWORD PTR -104[rbp], rdi
	mov	QWORD PTR -112[rbp], rsi
	mov	DWORD PTR -116[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -84[rbp], 12
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	QWORD PTR -80[rbp], rax
	cmp	QWORD PTR -80[rbp], 0
	jne	.L429
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	QWORD PTR -80[rbp], rax
.L429:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	mbedtls_sha256_init_alt@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 88[rax]
	lea	rdx, 104[rax]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	mbedtls_sha256_clone_alt@PLT
	cmp	DWORD PTR -116[rbp], 0
	jne	.L430
	lea	rax, .LC3[rip]
	jmp	.L431
.L430:
	lea	rax, .LC4[rip]
.L431:
	mov	QWORD PTR -72[rbp], rax
	lea	rdx, -48[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	mbedtls_sha256_finish_alt@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	r10, QWORD PTR 144[rax]
	mov	ecx, DWORD PTR -84[rbp]
	mov	rax, QWORD PTR -80[rbp]
	lea	rdi, 44[rax]
	mov	rsi, QWORD PTR -112[rbp]
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	sub	rsp, 8
	push	rcx
	mov	r9, rsi
	mov	r8d, 32
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 48
	call	r10
	add	rsp, 16
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	mbedtls_sha256_free_alt@PLT
	lea	rax, -48[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	mbedtls_zeroize
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L432
	call	__stack_chk_fail@PLT
.L432:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE61:
	.size	ssl_calc_finished_tls_sha256, .-ssl_calc_finished_tls_sha256
	.type	ssl_handshake_wrapup_free_hs_transform, @function
ssl_handshake_wrapup_free_hs_transform:
.LFB62:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdi, rax
	call	mbedtls_ssl_handshake_free
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 88[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 112[rax]
	test	rax, rax
	je	.L434
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	rdi, rax
	call	mbedtls_ssl_transform_free
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
.L434:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 120[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 112[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 120[rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE62:
	.size	ssl_handshake_wrapup_free_hs_transform, .-ssl_handshake_wrapup_free_hs_transform
	.globl	mbedtls_ssl_handshake_wrapup
	.type	mbedtls_ssl_handshake_wrapup, @function
mbedtls_ssl_handshake_wrapup:
.LFB63:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	eax, DWORD PTR 268[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 72[rax]
	test	rax, rax
	je	.L436
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	rdi, rax
	call	mbedtls_ssl_session_free
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
.L436:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 80[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 72[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 80[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 72[rax]
	test	rax, rax
	je	.L437
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	je	.L437
	cmp	DWORD PTR -4[rbp], 0
	jne	.L437
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR 72[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 72[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 80[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
.L437:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L438
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rax, QWORD PTR 64[rax]
	test	rax, rax
	je	.L438
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	ssl_set_timer
	jmp	.L439
.L438:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ssl_handshake_wrapup_free_hs_transform
.L439:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE63:
	.size	mbedtls_ssl_handshake_wrapup, .-mbedtls_ssl_handshake_wrapup
	.globl	mbedtls_ssl_write_finished
	.type	mbedtls_ssl_write_finished, @function
mbedtls_ssl_write_finished:
.LFB64:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 1
	jle	.L441
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 296[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 120[rax]
	mov	eax, DWORD PTR 16[rax]
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 120[rax]
	mov	eax, DWORD PTR 20[rax]
	mov	esi, eax
	mov	rax, rcx
	sub	rax, rsi
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 304[rax], rdx
	jmp	.L442
.L441:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 296[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 304[rax], rdx
.L442:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rcx, QWORD PTR 136[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 1
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	lea	rsi, 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jne	.L443
	mov	eax, 36
	jmp	.L444
.L443:
	mov	eax, 12
.L444:
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 4
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 316[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 312[rax], 22
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	mov	BYTE PTR [rax], 20
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	eax, DWORD PTR 268[rax]
	test	eax, eax
	je	.L445
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 1
	test	al, al
	jne	.L446
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], 15
	jmp	.L446
.L445:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], edx
.L446:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L447
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 104[rdx]
	mov	QWORD PTR 88[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 272[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 88[rdx]
	lea	rcx, 96[rdx]
	mov	edx, 8
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 272[rax]
	add	rax, 2
	mov	edx, 6
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	BYTE PTR -9[rbp], 2
	jmp	.L448
.L451:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 272[rax]
	movzx	eax, BYTE PTR -9[rbp]
	sub	rax, 1
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	add	edx, 1
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L456
	movzx	eax, BYTE PTR -9[rbp]
	sub	eax, 1
	mov	BYTE PTR -9[rbp], al
.L448:
	cmp	BYTE PTR -9[rbp], 0
	jne	.L451
	jmp	.L450
.L456:
	nop
.L450:
	cmp	BYTE PTR -9[rbp], 0
	jne	.L452
	mov	eax, -27520
	jmp	.L453
.L447:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 272[rax]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L452:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 120[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 80[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 64[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L454
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_send_flight_completed
.L454:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_write_record
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L455
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L453
.L455:
	mov	eax, 0
.L453:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE64:
	.size	mbedtls_ssl_write_finished, .-mbedtls_ssl_write_finished
	.globl	mbedtls_ssl_parse_finished
	.type	mbedtls_ssl_parse_finished, @function
mbedtls_ssl_parse_finished:
.LFB65:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	r8, QWORD PTR 136[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 1
	xor	eax, 1
	movzx	edx, al
	lea	rcx, -36[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	r8
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_read_record
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	je	.L458
	mov	eax, DWORD PTR -44[rbp]
	jmp	.L467
.L458:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 208[rax]
	cmp	eax, 22
	je	.L460
	mov	eax, -30464
	jmp	.L467
.L460:
	mov	DWORD PTR -40[rbp], 12
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 192[rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 20
	jne	.L461
	mov	rax, QWORD PTR -56[rbp]
	mov	ebx, DWORD PTR 248[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_hs_hdr_len
	mov	edx, DWORD PTR -40[rbp]
	add	eax, edx
	cmp	ebx, eax
	je	.L462
.L461:
	mov	eax, -32384
	jmp	.L467
.L462:
	mov	rax, QWORD PTR -56[rbp]
	mov	rbx, QWORD PTR 192[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_hs_hdr_len
	mov	eax, eax
	lea	rcx, [rbx+rax]
	mov	edx, DWORD PTR -40[rbp]
	lea	rax, -36[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	mbedtls_ssl_safer_memcmp
	test	eax, eax
	je	.L463
	mov	eax, -32384
	jmp	.L467
.L463:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	eax, DWORD PTR 268[rax]
	test	eax, eax
	je	.L464
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 1
	test	al, al
	jne	.L465
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 8[rax], 10
	jmp	.L465
.L464:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 8[rax], edx
.L465:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L466
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_recv_flight_completed
.L466:
	mov	eax, 0
.L467:
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L468
	call	__stack_chk_fail@PLT
.L468:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE65:
	.size	mbedtls_ssl_parse_finished, .-mbedtls_ssl_parse_finished
	.type	ssl_handshake_params_init, @function
ssl_handshake_params_init:
.LFB66:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 288
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 104
	mov	rdi, rax
	call	mbedtls_sha256_init_alt@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 104
	mov	esi, 0
	mov	rdi, rax
	call	mbedtls_sha256_starts_alt@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, ssl_update_checksum_start[rip]
	mov	QWORD PTR 120[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 2
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE66:
	.size	ssl_handshake_params_init, .-ssl_handshake_params_init
	.type	ssl_transform_init, @function
ssl_transform_init:
.LFB67:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 272
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 112
	mov	rdi, rax
	call	mbedtls_cipher_init@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 192
	mov	rdi, rax
	call	mbedtls_cipher_init@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 64
	mov	rdi, rax
	call	mbedtls_md_init@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 88
	mov	rdi, rax
	call	mbedtls_md_init@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE67:
	.size	ssl_transform_init, .-ssl_transform_init
	.globl	mbedtls_ssl_session_init
	.type	mbedtls_ssl_session_init, @function
mbedtls_ssl_session_init:
.LFB68:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 120
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE68:
	.size	mbedtls_ssl_session_init, .-mbedtls_ssl_session_init
	.type	ssl_handshake_init, @function
ssl_handshake_init:
.LFB69:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 120[rax]
	test	rax, rax
	je	.L473
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 120[rax]
	mov	rdi, rax
	call	mbedtls_ssl_transform_free
.L473:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 80[rax]
	test	rax, rax
	je	.L474
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	rdi, rax
	call	mbedtls_ssl_session_free
.L474:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	test	rax, rax
	je	.L475
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdi, rax
	call	mbedtls_ssl_handshake_free
.L475:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 120[rax]
	test	rax, rax
	jne	.L476
	mov	esi, 272
	mov	edi, 1
	call	mbedtls_calloc@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 120[rdx], rax
.L476:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 80[rax]
	test	rax, rax
	jne	.L477
	mov	esi, 120
	mov	edi, 1
	call	mbedtls_calloc@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 80[rdx], rax
.L477:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	test	rax, rax
	jne	.L478
	mov	esi, 288
	mov	edi, 1
	call	mbedtls_calloc@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 88[rdx], rax
.L478:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	test	rax, rax
	je	.L479
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 120[rax]
	test	rax, rax
	je	.L479
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 80[rax]
	test	rax, rax
	jne	.L480
.L479:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 120[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 88[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 120[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 80[rax], 0
	mov	eax, -32512
	jmp	.L481
.L480:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	rdi, rax
	call	mbedtls_ssl_session_init
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 120[rax]
	mov	rdi, rax
	call	ssl_transform_init
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdi, rax
	call	ssl_handshake_params_init
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L482
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 104[rdx]
	mov	QWORD PTR 88[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 1
	test	al, al
	jne	.L483
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	BYTE PTR 56[rax], 0
	jmp	.L484
.L483:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	BYTE PTR 56[rax], 2
.L484:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	ssl_set_timer
.L482:
	mov	eax, 0
.L481:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE69:
	.size	ssl_handshake_init, .-ssl_handshake_init
	.globl	mbedtls_ssl_init
	.type	mbedtls_ssl_init, @function
mbedtls_ssl_init:
.LFB70:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 344
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE70:
	.size	mbedtls_ssl_init, .-mbedtls_ssl_init
	.globl	mbedtls_ssl_setup
	.type	mbedtls_ssl_setup, @function
mbedtls_ssl_setup:
.LFB71:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 4413
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	mov	edi, 1
	call	mbedtls_calloc@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 152[rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 152[rax]
	test	rax, rax
	je	.L487
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	mov	edi, 1
	call	mbedtls_calloc@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 264[rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 264[rax]
	test	rax, rax
	jne	.L488
.L487:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 152[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 152[rax], 0
	mov	eax, -32512
	jmp	.L489
.L488:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L490
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 264[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 280[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 264[rax]
	lea	rdx, 3[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 272[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 264[rax]
	lea	rdx, 11[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 288[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 264[rax]
	lea	rdx, 13[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 296[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 264[rax]
	lea	rdx, 13[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 304[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 152[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 168[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 152[rax]
	lea	rdx, 3[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 160[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 152[rax]
	lea	rdx, 11[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 176[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 152[rax]
	lea	rdx, 13[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 184[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 152[rax]
	lea	rdx, 13[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 192[rax], rdx
	jmp	.L491
.L490:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 264[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 272[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 264[rax]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 280[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 264[rax]
	lea	rdx, 11[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 288[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 264[rax]
	lea	rdx, 13[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 296[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 264[rax]
	lea	rdx, 13[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 304[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 152[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 160[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 152[rax]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 168[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 152[rax]
	lea	rdx, 11[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 176[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 152[rax]
	lea	rdx, 13[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 184[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 152[rax]
	lea	rdx, 13[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 192[rax], rdx
.L491:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ssl_handshake_init
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L492
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L489
.L492:
	mov	eax, 0
.L489:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE71:
	.size	mbedtls_ssl_setup, .-mbedtls_ssl_setup
	.type	ssl_session_reset_int, @function
ssl_session_reset_int:
.LFB72:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	ssl_set_timer
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 336[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 200[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 152[rax]
	lea	rdx, 13[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 192[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 208[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 212[rax], 0
	cmp	DWORD PTR -28[rbp], 0
	jne	.L494
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 216[rax], 0
.L494:
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 224[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	WORD PTR 220[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ssl_dtls_replay_reset
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 248[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 252[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 256[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 264[rax]
	lea	rdx, 13[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 304[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 312[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 316[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 320[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 96[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 104[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 264[rax]
	mov	edx, 4413
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	cmp	DWORD PTR -28[rbp], 0
	jne	.L495
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 152[rax]
	mov	edx, 4413
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L495:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 112[rax]
	test	rax, rax
	je	.L496
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	rdi, rax
	call	mbedtls_ssl_transform_free
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 112[rax], 0
.L496:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 72[rax]
	test	rax, rax
	je	.L497
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	rdi, rax
	call	mbedtls_ssl_session_free
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 72[rax], 0
.L497:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ssl_handshake_init
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L498
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L499
.L498:
	mov	eax, 0
.L499:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE72:
	.size	ssl_session_reset_int, .-ssl_session_reset_int
	.globl	mbedtls_ssl_session_reset
	.type	mbedtls_ssl_session_reset, @function
mbedtls_ssl_session_reset:
.LFB73:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	ssl_session_reset_int
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE73:
	.size	mbedtls_ssl_session_reset, .-mbedtls_ssl_session_reset
	.globl	mbedtls_ssl_conf_endpoint
	.type	mbedtls_ssl_conf_endpoint, @function
mbedtls_ssl_conf_endpoint:
.LFB74:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 1
	mov	rdx, QWORD PTR -8[rbp]
	and	eax, 1
	mov	ecx, eax
	movzx	eax, BYTE PTR 172[rdx]
	and	eax, -2
	or	eax, ecx
	mov	BYTE PTR 172[rdx], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE74:
	.size	mbedtls_ssl_conf_endpoint, .-mbedtls_ssl_conf_endpoint
	.globl	mbedtls_ssl_conf_transport
	.type	mbedtls_ssl_conf_transport, @function
mbedtls_ssl_conf_transport:
.LFB75:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 1
	mov	rdx, QWORD PTR -8[rbp]
	and	eax, 1
	lea	ecx, [rax+rax]
	movzx	eax, BYTE PTR 172[rdx]
	and	eax, -3
	or	eax, ecx
	mov	BYTE PTR 172[rdx], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE75:
	.size	mbedtls_ssl_conf_transport, .-mbedtls_ssl_conf_transport
	.globl	mbedtls_ssl_conf_dtls_anti_replay
	.type	mbedtls_ssl_conf_dtls_anti_replay, @function
mbedtls_ssl_conf_dtls_anti_replay:
.LFB76:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -12[rbp], al
	movzx	eax, BYTE PTR -12[rbp]
	and	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	and	edx, 1
	lea	ecx, [rdx+rdx]
	movzx	edx, BYTE PTR 173[rax]
	and	edx, -3
	or	edx, ecx
	mov	BYTE PTR 173[rax], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE76:
	.size	mbedtls_ssl_conf_dtls_anti_replay, .-mbedtls_ssl_conf_dtls_anti_replay
	.globl	mbedtls_ssl_conf_handshake_timeout
	.type	mbedtls_ssl_conf_handshake_timeout, @function
mbedtls_ssl_conf_handshake_timeout:
.LFB77:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 152[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 160[rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE77:
	.size	mbedtls_ssl_conf_handshake_timeout, .-mbedtls_ssl_conf_handshake_timeout
	.globl	mbedtls_ssl_conf_authmode
	.type	mbedtls_ssl_conf_authmode, @function
mbedtls_ssl_conf_authmode:
.LFB78:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 3
	mov	rdx, QWORD PTR -8[rbp]
	and	eax, 3
	lea	ecx, 0[0+rax*4]
	movzx	eax, BYTE PTR 172[rdx]
	and	eax, -13
	or	eax, ecx
	mov	BYTE PTR 172[rdx], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE78:
	.size	mbedtls_ssl_conf_authmode, .-mbedtls_ssl_conf_authmode
	.globl	mbedtls_ssl_conf_verify
	.type	mbedtls_ssl_conf_verify, @function
mbedtls_ssl_conf_verify:
.LFB79:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 88[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 96[rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE79:
	.size	mbedtls_ssl_conf_verify, .-mbedtls_ssl_conf_verify
	.globl	mbedtls_ssl_conf_rng
	.type	mbedtls_ssl_conf_rng, @function
mbedtls_ssl_conf_rng:
.LFB80:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 56[rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE80:
	.size	mbedtls_ssl_conf_rng, .-mbedtls_ssl_conf_rng
	.globl	mbedtls_ssl_conf_dbg
	.type	mbedtls_ssl_conf_dbg, @function
mbedtls_ssl_conf_dbg:
.LFB81:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 40[rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE81:
	.size	mbedtls_ssl_conf_dbg, .-mbedtls_ssl_conf_dbg
	.globl	mbedtls_ssl_set_bio
	.type	mbedtls_ssl_set_bio, @function
mbedtls_ssl_set_bio:
.LFB82:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	QWORD PTR -40[rbp], r8
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 40[rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE82:
	.size	mbedtls_ssl_set_bio, .-mbedtls_ssl_set_bio
	.globl	mbedtls_ssl_conf_read_timeout
	.type	mbedtls_ssl_conf_read_timeout, @function
mbedtls_ssl_conf_read_timeout:
.LFB83:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 144[rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE83:
	.size	mbedtls_ssl_conf_read_timeout, .-mbedtls_ssl_conf_read_timeout
	.globl	mbedtls_ssl_set_timer_cb
	.type	mbedtls_ssl_set_timer_cb, @function
mbedtls_ssl_set_timer_cb:
.LFB84:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 128[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 136[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 144[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	ssl_set_timer
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE84:
	.size	mbedtls_ssl_set_timer_cb, .-mbedtls_ssl_set_timer_cb
	.globl	mbedtls_ssl_set_session
	.type	mbedtls_ssl_set_session, @function
mbedtls_ssl_set_session:
.LFB85:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	cmp	QWORD PTR -24[rbp], 0
	je	.L514
	cmp	QWORD PTR -32[rbp], 0
	je	.L514
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 80[rax]
	test	rax, rax
	je	.L514
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 1
	test	al, al
	je	.L515
.L514:
	mov	eax, -28928
	jmp	.L516
.L515:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ssl_session_copy
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L517
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L516
.L517:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	DWORD PTR 268[rax], 1
	mov	eax, 0
.L516:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE85:
	.size	mbedtls_ssl_set_session, .-mbedtls_ssl_set_session
	.globl	mbedtls_ssl_conf_ciphersuites
	.type	mbedtls_ssl_conf_ciphersuites, @function
mbedtls_ssl_conf_ciphersuites:
.LFB86:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 24[rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE86:
	.size	mbedtls_ssl_conf_ciphersuites, .-mbedtls_ssl_conf_ciphersuites
	.globl	mbedtls_ssl_conf_ciphersuites_for_version
	.type	mbedtls_ssl_conf_ciphersuites_for_version, @function
mbedtls_ssl_conf_ciphersuites_for_version:
.LFB87:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	DWORD PTR -24[rbp], ecx
	cmp	DWORD PTR -20[rbp], 3
	jne	.L524
	cmp	DWORD PTR -24[rbp], 0
	js	.L525
	cmp	DWORD PTR -24[rbp], 3
	jg	.L525
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax+rdx*8], rcx
	jmp	.L519
.L524:
	nop
	jmp	.L519
.L525:
	nop
.L519:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE87:
	.size	mbedtls_ssl_conf_ciphersuites_for_version, .-mbedtls_ssl_conf_ciphersuites_for_version
	.globl	mbedtls_ssl_conf_cert_profile
	.type	mbedtls_ssl_conf_cert_profile, @function
mbedtls_ssl_conf_cert_profile:
.LFB88:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 104[rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE88:
	.size	mbedtls_ssl_conf_cert_profile, .-mbedtls_ssl_conf_cert_profile
	.type	ssl_append_key_cert, @function
ssl_append_key_cert:
.LFB89:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	esi, 24
	mov	edi, 1
	call	mbedtls_calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L528
	mov	eax, -32512
	jmp	.L529
.L528:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L530
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L531
.L530:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L532
.L533:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
.L532:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L533
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
.L531:
	mov	eax, 0
.L529:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE89:
	.size	ssl_append_key_cert, .-ssl_append_key_cert
	.globl	mbedtls_ssl_conf_own_cert
	.type	mbedtls_ssl_conf_own_cert, @function
mbedtls_ssl_conf_own_cert:
.LFB90:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 112[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	ssl_append_key_cert
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE90:
	.size	mbedtls_ssl_conf_own_cert, .-mbedtls_ssl_conf_own_cert
	.globl	mbedtls_ssl_conf_ca_chain
	.type	mbedtls_ssl_conf_ca_chain, @function
mbedtls_ssl_conf_ca_chain:
.LFB91:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 120[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 128[rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE91:
	.size	mbedtls_ssl_conf_ca_chain, .-mbedtls_ssl_conf_ca_chain
	.globl	mbedtls_ssl_conf_sig_hashes
	.type	mbedtls_ssl_conf_sig_hashes, @function
mbedtls_ssl_conf_sig_hashes:
.LFB92:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 136[rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE92:
	.size	mbedtls_ssl_conf_sig_hashes, .-mbedtls_ssl_conf_sig_hashes
	.globl	mbedtls_ssl_set_hostname
	.type	mbedtls_ssl_set_hostname, @function
mbedtls_ssl_set_hostname:
.LFB93:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	cmp	QWORD PTR -32[rbp], 0
	jne	.L539
	mov	eax, -28928
	jmp	.L540
.L539:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L541
	mov	eax, -28928
	jmp	.L540
.L541:
	cmp	DWORD PTR -4[rbp], 255
	jbe	.L542
	mov	eax, -28928
	jmp	.L540
.L542:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	esi, eax
	mov	edi, 1
	call	mbedtls_calloc@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 328[rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 328[rax]
	test	rax, rax
	jne	.L543
	mov	eax, -32512
	jmp	.L540
.L543:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 328[rax]
	mov	edx, DWORD PTR -4[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 328[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, 0
.L540:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE93:
	.size	mbedtls_ssl_set_hostname, .-mbedtls_ssl_set_hostname
	.globl	mbedtls_ssl_conf_max_version
	.type	mbedtls_ssl_conf_max_version, @function
mbedtls_ssl_conf_max_version:
.LFB94:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 168[rax], dl
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 169[rax], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE94:
	.size	mbedtls_ssl_conf_max_version, .-mbedtls_ssl_conf_max_version
	.globl	mbedtls_ssl_conf_min_version
	.type	mbedtls_ssl_conf_min_version, @function
mbedtls_ssl_conf_min_version:
.LFB95:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 170[rax], dl
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 171[rax], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE95:
	.size	mbedtls_ssl_conf_min_version, .-mbedtls_ssl_conf_min_version
	.globl	mbedtls_ssl_conf_max_frag_len
	.type	mbedtls_ssl_conf_max_frag_len, @function
mbedtls_ssl_conf_max_frag_len:
.LFB96:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -12[rbp], al
	cmp	BYTE PTR -12[rbp], 4
	ja	.L547
	movzx	eax, BYTE PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, mfl_code_to_length[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 4096
	jbe	.L548
.L547:
	mov	eax, -28928
	jmp	.L549
.L548:
	movzx	eax, BYTE PTR -12[rbp]
	and	eax, 7
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, dl
	and	edx, 7
	mov	ecx, edx
	sal	ecx, 6
	movzx	edx, WORD PTR 172[rax]
	and	dx, -449
	or	edx, ecx
	mov	WORD PTR 172[rax], dx
	mov	eax, 0
.L549:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE96:
	.size	mbedtls_ssl_conf_max_frag_len, .-mbedtls_ssl_conf_max_frag_len
	.globl	mbedtls_ssl_conf_legacy_renegotiation
	.type	mbedtls_ssl_conf_legacy_renegotiation, @function
mbedtls_ssl_conf_legacy_renegotiation:
.LFB97:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 3
	mov	rdx, QWORD PTR -8[rbp]
	and	eax, 3
	sal	eax, 4
	mov	ecx, eax
	movzx	eax, BYTE PTR 172[rdx]
	and	eax, -49
	or	eax, ecx
	mov	BYTE PTR 172[rdx], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE97:
	.size	mbedtls_ssl_conf_legacy_renegotiation, .-mbedtls_ssl_conf_legacy_renegotiation
	.globl	mbedtls_ssl_get_bytes_avail
	.type	mbedtls_ssl_get_bytes_avail, @function
mbedtls_ssl_get_bytes_avail:
.LFB98:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 200[rax]
	test	rax, rax
	je	.L552
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 212[rax]
	jmp	.L554
.L552:
	mov	eax, 0
.L554:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE98:
	.size	mbedtls_ssl_get_bytes_avail, .-mbedtls_ssl_get_bytes_avail
	.globl	mbedtls_ssl_get_verify_result
	.type	mbedtls_ssl_get_verify_result, @function
mbedtls_ssl_get_verify_result:
.LFB99:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 72[rax]
	test	rax, rax
	je	.L556
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	rax, QWORD PTR 104[rax]
	jmp	.L557
.L556:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 80[rax]
	test	rax, rax
	je	.L558
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	rax, QWORD PTR 104[rax]
	jmp	.L557
.L558:
	mov	eax, 4294967295
.L557:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE99:
	.size	mbedtls_ssl_get_verify_result, .-mbedtls_ssl_get_verify_result
	.globl	mbedtls_ssl_get_ciphersuite
	.type	mbedtls_ssl_get_ciphersuite, @function
mbedtls_ssl_get_ciphersuite:
.LFB100:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L560
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 72[rax]
	test	rax, rax
	jne	.L561
.L560:
	mov	eax, 0
	jmp	.L562
.L561:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	mbedtls_ssl_get_ciphersuite_name@PLT
.L562:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE100:
	.size	mbedtls_ssl_get_ciphersuite, .-mbedtls_ssl_get_ciphersuite
	.section	.rodata
.LC5:
	.string	"DTLSv1.0"
.LC6:
	.string	"DTLSv1.2"
.LC7:
	.string	"unknown (DTLS)"
.LC8:
	.string	"SSLv3.0"
.LC9:
	.string	"TLSv1.0"
.LC10:
	.string	"TLSv1.1"
.LC11:
	.string	"TLSv1.2"
.LC12:
	.string	"unknown"
	.text
	.globl	mbedtls_ssl_get_version
	.type	mbedtls_ssl_get_version, @function
mbedtls_ssl_get_version:
.LFB101:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L564
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 2
	je	.L565
	cmp	eax, 3
	je	.L566
	jmp	.L574
.L565:
	lea	rax, .LC5[rip]
	jmp	.L568
.L566:
	lea	rax, .LC6[rip]
	jmp	.L568
.L574:
	lea	rax, .LC7[rip]
	jmp	.L568
.L564:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 3
	je	.L569
	cmp	eax, 3
	jg	.L570
	cmp	eax, 2
	je	.L571
	cmp	eax, 2
	jg	.L570
	test	eax, eax
	je	.L572
	cmp	eax, 1
	je	.L573
	jmp	.L570
.L572:
	lea	rax, .LC8[rip]
	jmp	.L568
.L573:
	lea	rax, .LC9[rip]
	jmp	.L568
.L571:
	lea	rax, .LC10[rip]
	jmp	.L568
.L569:
	lea	rax, .LC11[rip]
	jmp	.L568
.L570:
	lea	rax, .LC12[rip]
.L568:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE101:
	.size	mbedtls_ssl_get_version, .-mbedtls_ssl_get_version
	.globl	mbedtls_ssl_get_record_expansion
	.type	mbedtls_ssl_get_record_expansion, @function
mbedtls_ssl_get_record_expansion:
.LFB102:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -32[rbp], rdi
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L576
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_hdr_len
	jmp	.L577
.L576:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 112
	mov	rdi, rax
	call	mbedtls_cipher_get_cipher_mode
	cmp	eax, 2
	je	.L578
	cmp	eax, 2
	jb	.L579
	sub	eax, 6
	cmp	eax, 2
	ja	.L579
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L580
.L578:
	mov	rax, QWORD PTR -16[rbp]
	mov	ebx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 112
	mov	rdi, rax
	call	mbedtls_cipher_get_block_size
	add	eax, ebx
	mov	DWORD PTR -20[rbp], eax
	jmp	.L580
.L579:
	mov	eax, -27648
	jmp	.L577
.L580:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_hdr_len
	mov	edx, DWORD PTR -20[rbp]
	add	eax, edx
.L577:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE102:
	.size	mbedtls_ssl_get_record_expansion, .-mbedtls_ssl_get_record_expansion
	.globl	mbedtls_ssl_get_max_frag_len
	.type	mbedtls_ssl_get_max_frag_len, @function
mbedtls_ssl_get_max_frag_len:
.LFB103:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, WORD PTR 172[rax]
	shr	ax, 6
	and	eax, 7
	movzx	eax, al
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, mfl_code_to_length[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 64[rax]
	test	rax, rax
	je	.L582
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 64[rax]
	movzx	eax, BYTE PTR 112[rax]
	movzx	eax, al
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, mfl_code_to_length[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -4[rbp], eax
	jbe	.L582
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 64[rax]
	movzx	eax, BYTE PTR 112[rax]
	movzx	eax, al
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, mfl_code_to_length[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
.L582:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE103:
	.size	mbedtls_ssl_get_max_frag_len, .-mbedtls_ssl_get_max_frag_len
	.globl	mbedtls_ssl_get_peer_cert
	.type	mbedtls_ssl_get_peer_cert, @function
mbedtls_ssl_get_peer_cert:
.LFB104:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L585
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 72[rax]
	test	rax, rax
	jne	.L586
.L585:
	mov	eax, 0
	jmp	.L587
.L586:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	rax, QWORD PTR 96[rax]
.L587:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE104:
	.size	mbedtls_ssl_get_peer_cert, .-mbedtls_ssl_get_peer_cert
	.globl	mbedtls_ssl_get_session
	.type	mbedtls_ssl_get_session, @function
mbedtls_ssl_get_session:
.LFB105:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	cmp	QWORD PTR -8[rbp], 0
	je	.L589
	cmp	QWORD PTR -16[rbp], 0
	je	.L589
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 72[rax]
	test	rax, rax
	je	.L589
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 1
	test	al, al
	je	.L590
.L589:
	mov	eax, -28928
	jmp	.L591
.L590:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 72[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ssl_session_copy
.L591:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE105:
	.size	mbedtls_ssl_get_session, .-mbedtls_ssl_get_session
	.globl	mbedtls_ssl_handshake_step
	.type	mbedtls_ssl_handshake_step, @function
mbedtls_ssl_handshake_step:
.LFB106:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], -28800
	cmp	QWORD PTR -24[rbp], 0
	je	.L593
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L594
.L593:
	mov	eax, -28928
	jmp	.L595
.L594:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 1
	test	al, al
	jne	.L596
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_handshake_client_step@PLT
	mov	DWORD PTR -4[rbp], eax
.L596:
	mov	eax, DWORD PTR -4[rbp]
.L595:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE106:
	.size	mbedtls_ssl_handshake_step, .-mbedtls_ssl_handshake_step
	.globl	mbedtls_ssl_handshake
	.type	mbedtls_ssl_handshake, @function
mbedtls_ssl_handshake:
.LFB107:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	cmp	QWORD PTR -24[rbp], 0
	je	.L598
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L601
.L598:
	mov	eax, -28928
	jmp	.L600
.L603:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_handshake_step
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L604
.L601:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 16
	jne	.L603
	jmp	.L602
.L604:
	nop
.L602:
	mov	eax, DWORD PTR -4[rbp]
.L600:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE107:
	.size	mbedtls_ssl_handshake, .-mbedtls_ssl_handshake
	.globl	mbedtls_ssl_read
	.type	mbedtls_ssl_read, @function
mbedtls_ssl_read:
.LFB108:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -12[rbp], 0
	cmp	QWORD PTR -24[rbp], 0
	je	.L606
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L607
.L606:
	mov	eax, -28928
	jmp	.L608
.L607:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L609
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_flush_output
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L610
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L608
.L610:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	test	rax, rax
	je	.L609
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	movzx	eax, BYTE PTR 56[rax]
	cmp	al, 1
	jne	.L609
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_resend
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L609
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L608
.L609:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 16
	je	.L611
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_handshake
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -27392
	jne	.L612
	mov	DWORD PTR -12[rbp], 1
	jmp	.L611
.L612:
	cmp	DWORD PTR -8[rbp], 0
	je	.L611
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L608
.L611:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 200[rax]
	test	rax, rax
	jne	.L613
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 144[rax]
	test	rax, rax
	je	.L614
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 144[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 128[rax]
	mov	rdi, rax
	call	rdx
	cmp	eax, -1
	jne	.L614
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 144[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ssl_set_timer
.L614:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L615
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_read_record
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L615
	cmp	DWORD PTR -8[rbp], -29312
	jne	.L616
	mov	eax, 0
	jmp	.L608
.L616:
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L608
.L615:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 212[rax]
	test	eax, eax
	jne	.L617
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 208[rax]
	cmp	eax, 23
	jne	.L617
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_read_record
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L617
	cmp	DWORD PTR -8[rbp], -29312
	jne	.L618
	mov	eax, 0
	jmp	.L608
.L618:
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L608
.L617:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 208[rax]
	cmp	eax, 21
	jne	.L619
	mov	eax, -26880
	jmp	.L608
.L619:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 208[rax]
	cmp	eax, 23
	je	.L620
	mov	eax, -30464
	jmp	.L608
.L620:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 192[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 200[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 16
	jne	.L613
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	ssl_set_timer
.L613:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 212[rax]
	cmp	DWORD PTR -36[rbp], eax
	cmovbe	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 200[rax]
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 212[rax]
	sub	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 212[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 212[rax]
	test	eax, eax
	jne	.L621
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 200[rax], 0
	jmp	.L622
.L621:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 200[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 200[rax], rdx
.L622:
	mov	eax, DWORD PTR -4[rbp]
.L608:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE108:
	.size	mbedtls_ssl_read, .-mbedtls_ssl_read
	.type	ssl_write_real, @function
ssl_write_real:
.LFB109:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_get_max_frag_len
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jbe	.L624
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 172[rax]
	and	eax, 2
	test	al, al
	je	.L625
	mov	eax, -28928
	jmp	.L626
.L625:
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -36[rbp], eax
.L624:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 320[rax]
	test	eax, eax
	je	.L627
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_flush_output
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L628
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L626
.L627:
	cmp	DWORD PTR -36[rbp], 4400
	jbe	.L629
	mov	eax, -28928
	jmp	.L626
.L629:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR 316[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 312[rax], 23
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 304[rax]
	mov	edx, DWORD PTR -36[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_write_record
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L628
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L626
.L628:
	mov	eax, DWORD PTR -36[rbp]
.L626:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE109:
	.size	ssl_write_real, .-ssl_write_real
	.globl	mbedtls_ssl_write
	.type	mbedtls_ssl_write, @function
mbedtls_ssl_write:
.LFB110:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	cmp	QWORD PTR -24[rbp], 0
	je	.L631
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L632
.L631:
	mov	eax, -28928
	jmp	.L633
.L632:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 16
	je	.L634
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_handshake
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L634
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L633
.L634:
	mov	edx, DWORD PTR -36[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	ssl_write_real
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
.L633:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE110:
	.size	mbedtls_ssl_write, .-mbedtls_ssl_write
	.globl	mbedtls_ssl_close_notify
	.type	mbedtls_ssl_close_notify, @function
mbedtls_ssl_close_notify:
.LFB111:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	je	.L636
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L637
.L636:
	mov	eax, -28928
	jmp	.L638
.L637:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 320[rax]
	test	eax, eax
	je	.L639
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	mbedtls_ssl_flush_output
	jmp	.L638
.L639:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 16
	jne	.L640
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	mbedtls_ssl_send_alert_message
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L640
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L638
.L640:
	mov	eax, 0
.L638:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE111:
	.size	mbedtls_ssl_close_notify, .-mbedtls_ssl_close_notify
	.globl	mbedtls_ssl_transform_free
	.type	mbedtls_ssl_transform_free, @function
mbedtls_ssl_transform_free:
.LFB112:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L644
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 112
	mov	rdi, rax
	call	mbedtls_cipher_free@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 192
	mov	rdi, rax
	call	mbedtls_cipher_free@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 64
	mov	rdi, rax
	call	mbedtls_md_free@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 88
	mov	rdi, rax
	call	mbedtls_md_free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 272
	mov	rdi, rax
	call	mbedtls_zeroize
	jmp	.L641
.L644:
	nop
.L641:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE112:
	.size	mbedtls_ssl_transform_free, .-mbedtls_ssl_transform_free
	.type	ssl_key_cert_free, @function
ssl_key_cert_free:
.LFB113:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L646
.L647:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	mbedtls_free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
.L646:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L647
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE113:
	.size	ssl_key_cert_free, .-ssl_key_cert_free
	.globl	mbedtls_ssl_handshake_free
	.type	mbedtls_ssl_handshake_free, @function
mbedtls_ssl_handshake_free:
.LFB114:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L651
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 104
	mov	rdi, rax
	call	mbedtls_sha256_free_alt@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 64[rax]
	mov	rdi, rax
	call	ssl_flight_free
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 288
	mov	rdi, rax
	call	mbedtls_zeroize
	jmp	.L648
.L651:
	nop
.L648:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE114:
	.size	mbedtls_ssl_handshake_free, .-mbedtls_ssl_handshake_free
	.globl	mbedtls_ssl_session_free
	.type	mbedtls_ssl_session_free, @function
mbedtls_ssl_session_free:
.LFB115:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L656
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 96[rax]
	test	rax, rax
	je	.L655
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	rdi, rax
	call	mbedtls_x509_crt_free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
.L655:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 120
	mov	rdi, rax
	call	mbedtls_zeroize
	jmp	.L652
.L656:
	nop
.L652:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE115:
	.size	mbedtls_ssl_session_free, .-mbedtls_ssl_session_free
	.globl	mbedtls_ssl_free
	.type	mbedtls_ssl_free, @function
mbedtls_ssl_free:
.LFB116:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L666
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 264[rax]
	test	rax, rax
	je	.L660
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 264[rax]
	mov	esi, 4413
	mov	rdi, rax
	call	mbedtls_zeroize
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 264[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
.L660:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 152[rax]
	test	rax, rax
	je	.L661
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 152[rax]
	mov	esi, 4413
	mov	rdi, rax
	call	mbedtls_zeroize
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 152[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
.L661:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 112[rax]
	test	rax, rax
	je	.L662
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	rdi, rax
	call	mbedtls_ssl_transform_free
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
.L662:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	test	rax, rax
	je	.L663
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdi, rax
	call	mbedtls_ssl_handshake_free
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 120[rax]
	mov	rdi, rax
	call	mbedtls_ssl_transform_free
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	rdi, rax
	call	mbedtls_ssl_session_free
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 120[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
.L663:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 72[rax]
	test	rax, rax
	je	.L664
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	rdi, rax
	call	mbedtls_ssl_session_free
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
.L664:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 328[rax]
	test	rax, rax
	je	.L665
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 328[rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 328[rax]
	mov	esi, edx
	mov	rdi, rax
	call	mbedtls_zeroize
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 328[rax]
	mov	rdi, rax
	call	mbedtls_free@PLT
.L665:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 344
	mov	rdi, rax
	call	mbedtls_zeroize
	jmp	.L657
.L666:
	nop
.L657:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE116:
	.size	mbedtls_ssl_free, .-mbedtls_ssl_free
	.globl	mbedtls_ssl_config_init
	.type	mbedtls_ssl_config_init, @function
mbedtls_ssl_config_init:
.LFB117:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 176
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE117:
	.size	mbedtls_ssl_config_init, .-mbedtls_ssl_config_init
	.data
	.align 16
	.type	ssl_preset_default_hashes, @object
	.size	ssl_preset_default_hashes, 16
ssl_preset_default_hashes:
	.long	6
	.long	4
	.long	3
	.long	0
	.text
	.globl	mbedtls_ssl_config_defaults
	.type	mbedtls_ssl_config_defaults, @function
mbedtls_ssl_config_defaults:
.LFB118:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	DWORD PTR -20[rbp], ecx
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	mbedtls_ssl_conf_endpoint
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	mbedtls_ssl_conf_transport
	cmp	DWORD PTR -12[rbp], 0
	jne	.L669
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR 172[rax]
	and	edx, -13
	or	edx, 8
	mov	BYTE PTR 172[rax], dl
.L669:
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR 173[rax]
	or	edx, 2
	mov	BYTE PTR 173[rax], dl
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 152[rax], 1000
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 160[rax], 60000
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 170[rax], 3
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 171[rax], 3
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 168[rax], 3
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 169[rax], 3
	cmp	DWORD PTR -16[rbp], 1
	jne	.L670
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 171[rax], 2
.L670:
	call	mbedtls_ssl_list_ciphersuites@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, mbedtls_x509_crt_profile_default[rip]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, ssl_preset_default_hashes[rip]
	mov	QWORD PTR 136[rax], rdx
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE118:
	.size	mbedtls_ssl_config_defaults, .-mbedtls_ssl_config_defaults
	.globl	mbedtls_ssl_config_free
	.type	mbedtls_ssl_config_free, @function
mbedtls_ssl_config_free:
.LFB119:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	rdi, rax
	call	ssl_key_cert_free
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 176
	mov	rdi, rax
	call	mbedtls_zeroize
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE119:
	.size	mbedtls_ssl_config_free, .-mbedtls_ssl_config_free
	.globl	mbedtls_ssl_sig_from_pk
	.type	mbedtls_ssl_sig_from_pk, @function
mbedtls_ssl_sig_from_pk:
.LFB120:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	mbedtls_pk_can_do@PLT
	test	eax, eax
	je	.L674
	mov	eax, 1
	jmp	.L675
.L674:
	mov	eax, 0
.L675:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE120:
	.size	mbedtls_ssl_sig_from_pk, .-mbedtls_ssl_sig_from_pk
	.globl	mbedtls_ssl_pk_alg_from_sig
	.type	mbedtls_ssl_pk_alg_from_sig, @function
mbedtls_ssl_pk_alg_from_sig:
.LFB121:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	cmp	eax, 1
	jne	.L677
	mov	eax, 1
	jmp	.L678
.L677:
	mov	eax, 0
.L678:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE121:
	.size	mbedtls_ssl_pk_alg_from_sig, .-mbedtls_ssl_pk_alg_from_sig
	.globl	mbedtls_ssl_md_alg_from_hash
	.type	mbedtls_ssl_md_alg_from_hash, @function
mbedtls_ssl_md_alg_from_hash:
.LFB122:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	cmp	eax, 4
	je	.L680
	cmp	eax, 4
	jg	.L681
	cmp	eax, 3
	je	.L682
	cmp	eax, 3
	jg	.L681
	cmp	eax, 1
	je	.L683
	cmp	eax, 2
	je	.L684
	jmp	.L681
.L683:
	mov	eax, 3
	jmp	.L685
.L684:
	mov	eax, 4
	jmp	.L685
.L682:
	mov	eax, 5
	jmp	.L685
.L680:
	mov	eax, 6
	jmp	.L685
.L681:
	mov	eax, 0
.L685:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE122:
	.size	mbedtls_ssl_md_alg_from_hash, .-mbedtls_ssl_md_alg_from_hash
	.globl	mbedtls_ssl_hash_from_md_alg
	.type	mbedtls_ssl_hash_from_md_alg, @function
mbedtls_ssl_hash_from_md_alg:
.LFB123:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 6
	je	.L687
	cmp	DWORD PTR -4[rbp], 6
	jg	.L688
	cmp	DWORD PTR -4[rbp], 5
	je	.L689
	cmp	DWORD PTR -4[rbp], 5
	jg	.L688
	cmp	DWORD PTR -4[rbp], 3
	je	.L690
	cmp	DWORD PTR -4[rbp], 4
	je	.L691
	jmp	.L688
.L690:
	mov	eax, 1
	jmp	.L692
.L691:
	mov	eax, 2
	jmp	.L692
.L689:
	mov	eax, 3
	jmp	.L692
.L687:
	mov	eax, 4
	jmp	.L692
.L688:
	mov	eax, 0
.L692:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE123:
	.size	mbedtls_ssl_hash_from_md_alg, .-mbedtls_ssl_hash_from_md_alg
	.globl	mbedtls_ssl_check_sig_hash
	.type	mbedtls_ssl_check_sig_hash, @function
mbedtls_ssl_check_sig_hash:
.LFB124:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 136[rax]
	test	rax, rax
	jne	.L694
	mov	eax, -1
	jmp	.L695
.L694:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 136[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L696
.L698:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cmp	edx, eax
	jne	.L697
	mov	eax, 0
	jmp	.L695
.L697:
	add	QWORD PTR -8[rbp], 4
.L696:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L698
	mov	eax, -1
.L695:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE124:
	.size	mbedtls_ssl_check_sig_hash, .-mbedtls_ssl_check_sig_hash
	.globl	mbedtls_ssl_check_cert_usage
	.type	mbedtls_ssl_check_cert_usage, @function
mbedtls_ssl_check_cert_usage:
.LFB125:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	QWORD PTR -48[rbp], rcx
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE125:
	.size	mbedtls_ssl_check_cert_usage, .-mbedtls_ssl_check_cert_usage
	.globl	mbedtls_ssl_write_version
	.type	mbedtls_ssl_write_version, @function
mbedtls_ssl_write_version:
.LFB126:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	cmp	DWORD PTR -12[rbp], 1
	jne	.L702
	cmp	DWORD PTR -8[rbp], 2
	jne	.L703
	sub	DWORD PTR -8[rbp], 1
.L703:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 2
	not	eax
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	neg	edx
	mov	BYTE PTR [rax], dl
	jmp	.L705
.L702:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	edx, DWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
.L705:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE126:
	.size	mbedtls_ssl_write_version, .-mbedtls_ssl_write_version
	.globl	mbedtls_ssl_read_version
	.type	mbedtls_ssl_read_version, @function
mbedtls_ssl_read_version:
.LFB127:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	QWORD PTR -32[rbp], rcx
	cmp	DWORD PTR -20[rbp], 1
	jne	.L707
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edx, 257
	sub	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edx, 256
	sub	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L709
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L709
.L707:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
.L709:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE127:
	.size	mbedtls_ssl_read_version, .-mbedtls_ssl_read_version
	.globl	mbedtls_ssl_set_calc_verify_md
	.type	mbedtls_ssl_set_calc_verify_md, @function
mbedtls_ssl_set_calc_verify_md:
.LFB128:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 3
	je	.L711
	mov	eax, -26112
	jmp	.L712
.L711:
	cmp	DWORD PTR -12[rbp], 4
	jne	.L713
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	lea	rdx, ssl_calc_verify_tls_sha256[rip]
	mov	QWORD PTR 128[rax], rdx
	nop
	mov	eax, 0
	jmp	.L712
.L713:
	mov	eax, -26112
.L712:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE128:
	.size	mbedtls_ssl_set_calc_verify_md, .-mbedtls_ssl_set_calc_verify_md
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"237658.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_cipher_get_block_size, %function
mbedtls_cipher_get_block_size:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
.L2:
	mov	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3, #24]
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_cipher_get_block_size, .-mbedtls_cipher_get_block_size
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_cipher_get_cipher_mode, %function
mbedtls_cipher_get_cipher_mode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
.L6:
	mov	r3, #0
	b	.L8
.L7:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
.L8:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_cipher_get_cipher_mode, .-mbedtls_cipher_get_cipher_mode
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_own_cert, %function
mbedtls_ssl_own_cert:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	b	.L11
.L10:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #56]
	str	r3, [fp, #-8]
.L11:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	b	.L14
.L12:
	mov	r3, #0
.L14:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_own_cert, .-mbedtls_ssl_own_cert
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_hdr_len, %function
mbedtls_ssl_hdr_len:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L16
	mov	r3, #13
	b	.L17
.L16:
	mov	r3, #5
.L17:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_hdr_len, .-mbedtls_ssl_hdr_len
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_hs_hdr_len, %function
mbedtls_ssl_hs_hdr_len:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L19
	mov	r3, #12
	b	.L20
.L19:
	mov	r3, #4
.L20:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_hs_hdr_len, .-mbedtls_ssl_hs_hdr_len
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_safer_memcmp, %function
mbedtls_ssl_safer_memcmp:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-8]
	mov	r3, #0
	strb	r3, [fp, #-17]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L22
.L23:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, r2
	and	r2, r3, #255
	ldrb	r3, [fp, #-17]
	orr	r3, r2, r3
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L22:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bcc	.L23
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_safer_memcmp, .-mbedtls_ssl_safer_memcmp
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_zeroize, %function
mbedtls_zeroize:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L26
.L27:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
.L26:
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	str	r2, [fp, #-20]
	cmp	r3, #0
	bne	.L27
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_zeroize, .-mbedtls_zeroize
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_ep_len, %function
ssl_ep_len:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L29
	mov	r3, #2
	b	.L30
.L29:
	mov	r3, #0
.L30:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	ssl_ep_len, .-ssl_ep_len
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_set_timer, %function
ssl_set_timer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #72]
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #72]
	ldr	r2, [fp, #-8]
	ldr	r0, [r2, #68]
	ldr	r2, [fp, #-12]
	lsr	r1, r2, #2
	ldr	r2, [fp, #-12]
	blx	r3
	b	.L31
.L34:
	nop
.L31:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ssl_set_timer, .-ssl_set_timer
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_check_timer, %function
ssl_check_timer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #76]
	cmp	r3, #0
	bne	.L36
	mov	r3, #0
	b	.L37
.L36:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #76]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2, #68]
	mov	r0, r2
	blx	r3
	mov	r3, r0
	cmp	r3, #2
	bne	.L38
	mvn	r3, #0
	b	.L37
.L38:
	mov	r3, #0
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ssl_check_timer, .-ssl_check_timer
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_double_retransmit_timeout, %function
ssl_double_retransmit_timeout:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	ldr	r2, [r3, #32]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #80]
	cmp	r2, r3
	bcc	.L40
	mvn	r3, #0
	b	.L41
.L40:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #32]
	lsl	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #32]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L42
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #80]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bls	.L43
.L42:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #80]
	str	r3, [fp, #-8]
.L43:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #32]
	mov	r3, #0
.L41:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	ssl_double_retransmit_timeout, .-ssl_double_retransmit_timeout
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_reset_retransmit_timeout, %function
ssl_reset_retransmit_timeout:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	ldr	r2, [r2, #76]
	str	r2, [r3, #32]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	ssl_reset_retransmit_timeout, .-ssl_reset_retransmit_timeout
	.data
	.align	2
	.type	mfl_code_to_length, %object
	.size	mfl_code_to_length, 20
mfl_code_to_length:
	.word	4096
	.word	512
	.word	1024
	.word	2048
	.word	4096
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_session_copy, %function
ssl_session_copy:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_session_free
	mov	r2, #104
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	memcpy
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #92]
	cmp	r3, #0
	beq	.L46
	mov	r1, #312
	mov	r0, #1
	bl	mbedtls_calloc
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #92]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #92]
	cmp	r3, #0
	bne	.L47
	ldr	r3, .L49
	b	.L48
.L47:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #92]
	mov	r0, r3
	bl	mbedtls_x509_crt_init
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #92]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #92]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #92]
	ldr	r3, [r3, #4]
	mov	r2, r3
	bl	mbedtls_x509_crt_parse_der
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #92]
	mov	r0, r3
	bl	mbedtls_free
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #92]
	ldr	r3, [fp, #-8]
	b	.L48
.L46:
	mov	r3, #0
.L48:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	-32512
	.size	ssl_session_copy, .-ssl_session_copy
	.global	__aeabi_uidivmod
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tls_prf_generic, %function
tls_prf_generic:
	@ args = 16, pretend = 0, frame = 232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #232
	str	r0, [fp, #-216]
	str	r1, [fp, #-220]
	str	r2, [fp, #-224]
	str	r3, [fp, #-228]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-232]
	ldr	r3, [fp, #12]
	str	r3, [fp, #-236]
	ldr	r3, .L64
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #180
	mov	r0, r3
	bl	mbedtls_md_init
	ldr	r0, [fp, #-216]
	bl	mbedtls_md_info_from_type
	str	r0, [fp, #-200]
	ldr	r3, [fp, #-200]
	cmp	r3, #0
	bne	.L52
	ldr	r3, .L64+4
	b	.L62
.L52:
	ldr	r0, [fp, #-200]
	bl	mbedtls_md_get_size
	mov	r3, r0
	str	r3, [fp, #-196]
	ldr	r0, [fp, #-228]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-196]
	add	r2, r2, r3
	ldr	r3, [fp, #8]
	add	r3, r2, r3
	cmp	r3, #128
	bls	.L54
	ldr	r3, .L64+8
	b	.L62
.L54:
	ldr	r0, [fp, #-228]
	bl	strlen
	str	r0, [fp, #-192]
	sub	r2, fp, #136
	ldr	r3, [fp, #-196]
	add	r3, r2, r3
	ldr	r2, [fp, #-192]
	ldr	r1, [fp, #-228]
	mov	r0, r3
	bl	memcpy
	ldr	r2, [fp, #-196]
	ldr	r3, [fp, #-192]
	add	r3, r2, r3
	sub	r2, fp, #136
	add	r3, r2, r3
	ldr	r2, [fp, #8]
	ldr	r1, [fp, #-232]
	mov	r0, r3
	bl	memcpy
	ldr	r2, [fp, #-192]
	ldr	r3, [fp, #8]
	add	r3, r2, r3
	str	r3, [fp, #-192]
	sub	r3, fp, #180
	mov	r2, #1
	ldr	r1, [fp, #-200]
	mov	r0, r3
	bl	mbedtls_md_setup
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmp	r3, #0
	beq	.L55
	ldr	r3, [fp, #-188]
	b	.L62
.L55:
	sub	r3, fp, #180
	ldr	r2, [fp, #-224]
	ldr	r1, [fp, #-220]
	mov	r0, r3
	bl	mbedtls_md_hmac_starts
	sub	r2, fp, #136
	ldr	r3, [fp, #-196]
	add	r1, r2, r3
	sub	r3, fp, #180
	ldr	r2, [fp, #-192]
	mov	r0, r3
	bl	mbedtls_md_hmac_update
	sub	r2, fp, #136
	sub	r3, fp, #180
	mov	r1, r2
	mov	r0, r3
	bl	mbedtls_md_hmac_finish
	mov	r3, #0
	str	r3, [fp, #-208]
	b	.L56
.L61:
	sub	r3, fp, #180
	mov	r0, r3
	bl	mbedtls_md_hmac_reset
	ldr	r2, [fp, #-196]
	ldr	r3, [fp, #-192]
	add	r2, r2, r3
	sub	r1, fp, #136
	sub	r3, fp, #180
	mov	r0, r3
	bl	mbedtls_md_hmac_update
	sub	r2, fp, #168
	sub	r3, fp, #180
	mov	r1, r2
	mov	r0, r3
	bl	mbedtls_md_hmac_finish
	sub	r3, fp, #180
	mov	r0, r3
	bl	mbedtls_md_hmac_reset
	sub	r1, fp, #136
	sub	r3, fp, #180
	ldr	r2, [fp, #-196]
	mov	r0, r3
	bl	mbedtls_md_hmac_update
	sub	r2, fp, #136
	sub	r3, fp, #180
	mov	r1, r2
	mov	r0, r3
	bl	mbedtls_md_hmac_finish
	ldr	r2, [fp, #-208]
	ldr	r3, [fp, #-196]
	add	r3, r2, r3
	ldr	r2, [fp, #16]
	cmp	r2, r3
	bcs	.L57
	ldr	r3, [fp, #16]
	ldr	r1, [fp, #-196]
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	b	.L58
.L57:
	ldr	r3, [fp, #-196]
.L58:
	str	r3, [fp, #-184]
	mov	r3, #0
	str	r3, [fp, #-204]
	b	.L59
.L60:
	ldr	r2, [fp, #-208]
	ldr	r3, [fp, #-204]
	add	r3, r2, r3
	ldr	r2, [fp, #-236]
	add	r3, r2, r3
	sub	r1, fp, #168
	ldr	r2, [fp, #-204]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
.L59:
	ldr	r2, [fp, #-204]
	ldr	r3, [fp, #-184]
	cmp	r2, r3
	bcc	.L60
	ldr	r2, [fp, #-208]
	ldr	r3, [fp, #-196]
	add	r3, r2, r3
	str	r3, [fp, #-208]
.L56:
	ldr	r2, [fp, #-208]
	ldr	r3, [fp, #16]
	cmp	r2, r3
	bcc	.L61
	sub	r3, fp, #180
	mov	r0, r3
	bl	mbedtls_md_free
	sub	r3, fp, #136
	mov	r1, #128
	mov	r0, r3
	bl	mbedtls_zeroize
	sub	r3, fp, #168
	mov	r1, #32
	mov	r0, r3
	bl	mbedtls_zeroize
	mov	r3, #0
.L62:
	ldr	r2, .L64
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L63
	bl	__stack_chk_fail
.L63:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	.LC0
	.word	-27648
	.word	-28928
	.size	tls_prf_generic, .-tls_prf_generic
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tls_prf_sha256, %function
tls_prf_sha256:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #12]
	str	r3, [sp, #12]
	ldr	r3, [fp, #8]
	str	r3, [sp, #8]
	ldr	r3, [fp, #4]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #6
	bl	tls_prf_generic
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	tls_prf_sha256, .-tls_prf_sha256
	.section	.rodata
	.align	2
.LC1:
	.ascii	"master secret\000"
	.align	2
.LC2:
	.ascii	"key expansion\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mbedtls_ssl_derive_keys
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_derive_keys, %function
mbedtls_ssl_derive_keys:
	@ args = 0, pretend = 0, frame = 376
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #396
	str	r0, [fp, #-384]
	ldr	r3, .L104
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-380]
	ldr	r3, [fp, #-384]
	ldr	r3, [r3, #44]
	str	r3, [fp, #-376]
	ldr	r3, [fp, #-384]
	ldr	r3, [r3, #64]
	str	r3, [fp, #-372]
	ldr	r3, [fp, #-384]
	ldr	r3, [r3, #48]
	str	r3, [fp, #-368]
	ldr	r3, [fp, #-372]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	mbedtls_cipher_info_from_type
	str	r0, [fp, #-364]
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	bne	.L69
	ldr	r3, .L104+4
	b	.L99
.L69:
	ldr	r3, [fp, #-372]
	ldr	r3, [r3]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	mbedtls_md_info_from_type
	str	r0, [fp, #-360]
	ldr	r3, [fp, #-360]
	cmp	r3, #0
	bne	.L71
	ldr	r3, .L104+4
	b	.L99
.L71:
	ldr	r3, [fp, #-384]
	ldr	r3, [r3, #12]
	cmp	r3, #3
	bne	.L72
	ldr	r3, [fp, #-368]
	ldr	r2, .L104+8
	str	r2, [r3, #84]
	ldr	r3, [fp, #-368]
	ldr	r2, .L104+12
	str	r2, [r3, #76]
	ldr	r3, [fp, #-368]
	ldr	r2, .L104+16
	str	r2, [r3, #80]
	ldr	r3, [fp, #-368]
	ldr	r3, [r3, #204]
	cmp	r3, #0
	bne	.L74
	b	.L101
.L72:
	ldr	r3, .L104+20
	b	.L99
.L101:
	ldr	r3, [fp, #-368]
	ldr	r4, [r3, #84]
	ldr	r3, [fp, #-368]
	add	r0, r3, #156
	ldr	r3, [fp, #-368]
	ldr	r1, [r3, #88]
	ldr	r3, [fp, #-368]
	add	r2, r3, #92
	ldr	r3, [fp, #-376]
	add	r3, r3, #44
	mov	ip, #48
	str	ip, [sp, #8]
	str	r3, [sp, #4]
	mov	r3, #64
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L104+24
	blx	r4
	str	r0, [fp, #-380]
	ldr	r3, [fp, #-380]
	cmp	r3, #0
	beq	.L75
	ldr	r3, [fp, #-380]
	b	.L99
.L75:
	ldr	r3, [fp, #-368]
	add	r3, r3, #156
	mov	r1, #48
	mov	r0, r3
	bl	mbedtls_zeroize
.L74:
	ldr	r3, [fp, #-368]
	add	r2, r3, #92
	sub	r3, fp, #336
	mov	r1, r2
	mov	r2, #64
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-368]
	add	r0, r3, #92
	sub	r3, fp, #336
	add	r3, r3, #32
	mov	r2, #32
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-368]
	add	r3, r3, #92
	add	r3, r3, #32
	sub	r1, fp, #336
	mov	r2, #32
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #336
	mov	r1, #64
	mov	r0, r3
	bl	mbedtls_zeroize
	ldr	r3, [fp, #-368]
	ldr	r4, [r3, #84]
	ldr	r3, [fp, #-376]
	add	r0, r3, #44
	ldr	r3, [fp, #-368]
	add	r2, r3, #92
	mov	r3, #256
	str	r3, [sp, #8]
	sub	r3, fp, #272
	str	r3, [sp, #4]
	mov	r3, #64
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L104+28
	mov	r1, #48
	blx	r4
	str	r0, [fp, #-380]
	ldr	r3, [fp, #-380]
	cmp	r3, #0
	beq	.L76
	ldr	r3, [fp, #-380]
	b	.L99
.L76:
	ldr	r3, [fp, #-368]
	add	r3, r3, #92
	mov	r1, #64
	mov	r0, r3
	bl	mbedtls_zeroize
	ldr	r3, [fp, #-364]
	ldr	r3, [r3, #8]
	lsr	r2, r3, #3
	ldr	r3, [fp, #-372]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-364]
	ldr	r3, [r3, #4]
	cmp	r3, #6
	beq	.L77
	ldr	r3, [fp, #-364]
	ldr	r3, [r3, #4]
	cmp	r3, #8
	bne	.L78
.L77:
	ldr	r3, [fp, #-372]
	mov	r2, #0
	str	r2, [r3, #20]
	ldr	r3, [fp, #-372]
	mov	r2, #12
	str	r2, [r3, #12]
	ldr	r3, [fp, #-372]
	mov	r2, #4
	str	r2, [r3, #16]
	ldr	r3, [fp, #-372]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-372]
	ldr	r3, [r3, #16]
	sub	r3, r2, r3
	ldr	r2, [fp, #-372]
	ldr	r2, [r2]
	ldrb	r2, [r2, #36]	@ zero_extendqisi2
	and	r2, r2, #2
	cmp	r2, #0
	beq	.L79
	mov	r2, #8
	b	.L80
.L79:
	mov	r2, #16
.L80:
	add	r2, r2, r3
	ldr	r3, [fp, #-372]
	str	r2, [r3, #8]
	b	.L81
.L78:
	ldr	r3, [fp, #-372]
	add	r3, r3, #56
	mov	r2, #1
	ldr	r1, [fp, #-360]
	mov	r0, r3
	bl	mbedtls_md_setup
	str	r0, [fp, #-380]
	ldr	r3, [fp, #-380]
	cmp	r3, #0
	bne	.L82
	ldr	r3, [fp, #-372]
	add	r3, r3, #68
	mov	r2, #1
	ldr	r1, [fp, #-360]
	mov	r0, r3
	bl	mbedtls_md_setup
	str	r0, [fp, #-380]
	ldr	r3, [fp, #-380]
	cmp	r3, #0
	beq	.L83
.L82:
	ldr	r3, [fp, #-380]
	b	.L99
.L83:
	ldr	r0, [fp, #-360]
	bl	mbedtls_md_get_size
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-372]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-364]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-372]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-364]
	ldr	r3, [r3, #4]
	cmp	r3, #7
	bne	.L84
	ldr	r3, [fp, #-372]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-372]
	str	r2, [r3, #8]
	b	.L81
.L84:
	ldr	r3, [fp, #-372]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-364]
	ldr	r3, [r3, #24]
	add	r4, r2, r3
	ldr	r3, [fp, #-372]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-364]
	ldr	r3, [r3, #24]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidivmod
	mov	r3, r1
	sub	r2, r4, r3
	ldr	r3, [fp, #-372]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-384]
	ldr	r3, [r3, #12]
	cmp	r3, #2
	beq	.L85
	ldr	r3, [fp, #-384]
	ldr	r3, [r3, #12]
	cmp	r3, #3
	bne	.L86
.L85:
	ldr	r3, [fp, #-372]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-372]
	ldr	r3, [r3, #12]
	add	r2, r2, r3
	ldr	r3, [fp, #-372]
	str	r2, [r3, #8]
	b	.L81
.L86:
	ldr	r3, .L104+20
	b	.L99
.L81:
	ldr	r3, [fp, #-384]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L87
	ldr	r3, [fp, #-372]
	ldr	r3, [r3, #20]
	lsl	r3, r3, #1
	sub	r2, fp, #272
	add	r3, r2, r3
	str	r3, [fp, #-356]
	ldr	r3, [fp, #-372]
	ldr	r3, [r3, #20]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-372]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	sub	r2, fp, #272
	add	r3, r2, r3
	str	r3, [fp, #-352]
	sub	r3, fp, #272
	str	r3, [fp, #-348]
	ldr	r3, [fp, #-372]
	ldr	r3, [r3, #20]
	sub	r2, fp, #272
	add	r3, r2, r3
	str	r3, [fp, #-344]
	ldr	r3, [fp, #-372]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L88
	ldr	r3, [fp, #-372]
	ldr	r3, [r3, #16]
	b	.L89
.L88:
	ldr	r3, [fp, #-372]
	ldr	r3, [r3, #12]
.L89:
	str	r3, [fp, #-340]
	ldr	r3, [fp, #-372]
	add	r0, r3, #24
	ldr	r3, [fp, #-372]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-352]
	add	r3, r2, r3
	ldr	r2, [fp, #-340]
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-372]
	add	r0, r3, #40
	ldr	r3, [fp, #-372]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-340]
	add	r3, r2, r3
	ldr	r2, [fp, #-352]
	add	r3, r2, r3
	ldr	r2, [fp, #-340]
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-384]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	ble	.L91
	b	.L102
.L87:
	ldr	r3, .L104+20
	b	.L99
.L102:
	ldr	r3, [fp, #-372]
	add	r0, r3, #56
	ldr	r3, [fp, #-372]
	ldr	r3, [r3, #20]
	mov	r2, r3
	ldr	r1, [fp, #-348]
	bl	mbedtls_md_hmac_starts
	ldr	r3, [fp, #-372]
	add	r0, r3, #68
	ldr	r3, [fp, #-372]
	ldr	r3, [r3, #20]
	mov	r2, r3
	ldr	r1, [fp, #-344]
	bl	mbedtls_md_hmac_starts
	ldr	r3, [fp, #-372]
	add	r3, r3, #80
	ldr	r1, [fp, #-364]
	mov	r0, r3
	bl	mbedtls_cipher_setup
	str	r0, [fp, #-380]
	ldr	r3, [fp, #-380]
	cmp	r3, #0
	beq	.L93
	b	.L103
.L91:
	ldr	r3, .L104+20
	b	.L99
.L103:
	ldr	r3, [fp, #-380]
	b	.L99
.L93:
	ldr	r3, [fp, #-372]
	add	r3, r3, #144
	ldr	r1, [fp, #-364]
	mov	r0, r3
	bl	mbedtls_cipher_setup
	str	r0, [fp, #-380]
	ldr	r3, [fp, #-380]
	cmp	r3, #0
	beq	.L94
	ldr	r3, [fp, #-380]
	b	.L99
.L94:
	ldr	r3, [fp, #-372]
	add	r0, r3, #80
	ldr	r3, [fp, #-364]
	ldr	r3, [r3, #8]
	mov	r2, r3
	mov	r3, #1
	ldr	r1, [fp, #-356]
	bl	mbedtls_cipher_setkey
	str	r0, [fp, #-380]
	ldr	r3, [fp, #-380]
	cmp	r3, #0
	beq	.L95
	ldr	r3, [fp, #-380]
	b	.L99
.L95:
	ldr	r3, [fp, #-372]
	add	r0, r3, #144
	ldr	r3, [fp, #-364]
	ldr	r3, [r3, #8]
	mov	r2, r3
	mov	r3, #0
	ldr	r1, [fp, #-352]
	bl	mbedtls_cipher_setkey
	str	r0, [fp, #-380]
	ldr	r3, [fp, #-380]
	cmp	r3, #0
	beq	.L96
	ldr	r3, [fp, #-380]
	b	.L99
.L96:
	ldr	r3, [fp, #-364]
	ldr	r3, [r3, #4]
	cmp	r3, #2
	bne	.L97
	ldr	r3, [fp, #-372]
	add	r3, r3, #80
	mov	r1, #4
	mov	r0, r3
	bl	mbedtls_cipher_set_padding_mode
	str	r0, [fp, #-380]
	ldr	r3, [fp, #-380]
	cmp	r3, #0
	beq	.L98
	ldr	r3, [fp, #-380]
	b	.L99
.L98:
	ldr	r3, [fp, #-372]
	add	r3, r3, #144
	mov	r1, #4
	mov	r0, r3
	bl	mbedtls_cipher_set_padding_mode
	str	r0, [fp, #-380]
	ldr	r3, [fp, #-380]
	cmp	r3, #0
	beq	.L97
	ldr	r3, [fp, #-380]
	b	.L99
.L97:
	sub	r3, fp, #272
	mov	r1, #256
	mov	r0, r3
	bl	mbedtls_zeroize
	mov	r3, #0
.L99:
	ldr	r2, .L104
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L100
	bl	__stack_chk_fail
.L100:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L105:
	.align	2
.L104:
	.word	.LC3
	.word	-28928
	.word	tls_prf_sha256
	.word	ssl_calc_verify_tls_sha256
	.word	ssl_calc_finished_tls_sha256
	.word	-27648
	.word	.LC1
	.word	.LC2
	.size	mbedtls_ssl_derive_keys, .-mbedtls_ssl_derive_keys
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_calc_verify_tls_sha256, %function
ssl_calc_verify_tls_sha256:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L109
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r0, r3
	bl	mbedtls_sha256_init_alt
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	add	r2, r3, #64
	sub	r3, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	mbedtls_sha256_clone_alt
	sub	r3, fp, #16
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	mbedtls_sha256_finish_alt
	sub	r3, fp, #16
	mov	r0, r3
	bl	mbedtls_sha256_free_alt
	nop
	ldr	r3, .L109
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L108
	bl	__stack_chk_fail
.L108:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L110:
	.align	2
.L109:
	.word	.LC4
	.size	ssl_calc_verify_tls_sha256, .-ssl_calc_verify_tls_sha256
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_encrypt_buf, %function
ssl_encrypt_buf:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-56]
	ldr	r3, .L131
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	beq	.L112
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #56]
	cmp	r3, #0
	bne	.L113
.L112:
	ldr	r3, .L131+4
	b	.L114
.L113:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #56]
	add	r3, r3, #80
	mov	r0, r3
	bl	mbedtls_cipher_get_cipher_mode
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #7
	beq	.L115
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bne	.L116
.L115:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	ble	.L117
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #56]
	add	r0, r3, #56
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #160]
	mov	r2, #8
	mov	r1, r3
	bl	mbedtls_md_hmac_update
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #56]
	add	r0, r3, #56
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #164]
	mov	r2, #3
	mov	r1, r3
	bl	mbedtls_md_hmac_update
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #56]
	add	r0, r3, #56
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #168]
	mov	r2, #2
	mov	r1, r3
	bl	mbedtls_md_hmac_update
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #56]
	add	r0, r3, #56
	ldr	r3, [fp, #-56]
	ldr	r1, [r3, #176]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #184]
	mov	r2, r3
	bl	mbedtls_md_hmac_update
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #56]
	add	r0, r3, #56
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #176]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #184]
	add	r3, r2, r3
	mov	r1, r3
	bl	mbedtls_md_hmac_finish
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #56]
	add	r3, r3, #56
	mov	r0, r3
	bl	mbedtls_md_hmac_reset
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #184]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #56]
	ldr	r3, [r3, #20]
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	str	r2, [r3, #184]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L116
.L117:
	ldr	r3, .L131+4
	b	.L114
.L116:
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bne	.L119
	mov	r3, #0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #56]
	ldr	r4, [r3, #12]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #184]
	add	r2, r3, #1
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #56]
	ldr	r3, [r3, #12]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidivmod
	mov	r3, r1
	sub	r3, r4, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #56]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L120
	mov	r3, #0
	str	r3, [fp, #-32]
.L120:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L121
.L122:
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #176]
	ldr	r3, [fp, #-56]
	ldr	r1, [r3, #184]
	ldr	r3, [fp, #-28]
	add	r3, r1, r3
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L121:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bls	.L122
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #184]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	add	r2, r3, #1
	ldr	r3, [fp, #-56]
	str	r2, [r3, #184]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #184]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #176]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #12]
	cmp	r3, #1
	ble	.L123
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-56]
	ldr	r2, [r2]
	ldr	r0, [r2, #28]
	ldr	r2, [fp, #-56]
	ldr	r2, [r2, #56]
	add	r1, r2, #24
	ldr	r2, [fp, #-56]
	ldr	r2, [r2, #56]
	ldr	r2, [r2, #12]
	blx	r3
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L124
	ldr	r3, [fp, #-20]
	b	.L114
.L124:
	ldr	r3, [fp, #-56]
	ldr	r0, [r3, #172]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #56]
	add	r1, r3, #24
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #56]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #176]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #184]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #184]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #56]
	ldr	r3, [r3, #12]
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	str	r2, [r3, #184]
.L123:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #56]
	add	r0, r3, #80
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #56]
	add	r1, r3, #24
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #56]
	ldr	r2, [r3, #12]
	sub	r3, fp, #48
	str	r3, [sp, #8]
	ldr	r3, [fp, #-40]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-36]
	str	r3, [sp]
	ldr	r3, [fp, #-40]
	bl	mbedtls_cipher_crypt
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L126
	ldr	r3, [fp, #-20]
	b	.L114
.L126:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	beq	.L128
	ldr	r3, .L131+4
	b	.L114
.L119:
	ldr	r3, .L131+4
	b	.L114
.L128:
	ldr	r3, [fp, #-44]
	cmp	r3, #1
	beq	.L129
	ldr	r3, .L131+4
	b	.L114
.L129:
	mov	r3, #0
.L114:
	ldr	r2, .L131
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L130
	bl	__stack_chk_fail
.L130:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L132:
	.align	2
.L131:
	.word	.LC5
	.word	-27648
	.size	ssl_encrypt_buf, .-ssl_encrypt_buf
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_decrypt_buf, %function
ssl_decrypt_buf:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-128]
	ldr	r3, .L175
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #1
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #32]
	cmp	r3, #0
	beq	.L134
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	cmp	r3, #0
	bne	.L135
.L134:
	ldr	r3, .L175+4
	b	.L136
.L135:
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	add	r3, r3, #144
	mov	r0, r3
	bl	mbedtls_cipher_get_cipher_mode
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bcs	.L137
	ldr	r3, .L175+8
	b	.L136
.L137:
	ldr	r3, [fp, #-80]
	cmp	r3, #2
	bne	.L138
	mov	r3, #0
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #12]
	cmp	r3, #1
	ble	.L139
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	str	r3, [fp, #-96]
.L139:
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-96]
	add	r3, r1, r3
	cmp	r2, r3
	bcc	.L140
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-96]
	add	r3, r1, r3
	add	r3, r3, #1
	cmp	r2, r3
	bcs	.L141
.L140:
	ldr	r3, .L175+8
	b	.L136
.L141:
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #112]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #100]
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #100]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	ldr	r3, [r3, #12]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L143
	ldr	r3, .L175+8
	b	.L136
.L143:
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #12]
	cmp	r3, #1
	ble	.L144
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-100]
	sub	r3, r2, r3
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	ldr	r3, [r3, #12]
	sub	r2, r2, r3
	ldr	r3, [fp, #-128]
	str	r2, [r3, #112]
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L145
.L146:
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #96]
	ldr	r3, [fp, #-116]
	add	r3, r2, r3
	ldr	r2, [fp, #-128]
	ldr	r2, [r2, #52]
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-116]
	add	r3, r2, r3
	add	r3, r3, #40
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L145:
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	bcc	.L146
.L144:
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	add	r0, r3, #144
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	add	r1, r3, #40
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	ldr	r2, [r3, #12]
	sub	r3, fp, #120
	str	r3, [sp, #8]
	ldr	r3, [fp, #-72]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-100]
	str	r3, [sp]
	ldr	r3, [fp, #-76]
	bl	mbedtls_cipher_crypt
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L147
	ldr	r3, [fp, #-68]
	b	.L136
.L147:
	ldr	r3, [fp, #-120]
	ldr	r2, [fp, #-100]
	cmp	r2, r3
	beq	.L148
	ldr	r3, .L175+4
	b	.L136
.L148:
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #100]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #112]
	sub	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #1
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-108]
	add	r3, r1, r3
	cmp	r2, r3
	bcs	.L149
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L149
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-104]
.L149:
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	ble	.L150
	mov	r3, #0
	str	r3, [fp, #-92]
	mov	r3, #1
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-108]
	sub	r3, r2, r3
	sub	r3, r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	cmp	r2, r3
	movcs	r3, #1
	movcc	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-104]
	and	r3, r3, r2
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	ldr	r3, [r3, #20]
	add	r3, r3, #4096
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	movcc	r3, #1
	movcs	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-104]
	and	r3, r3, r2
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-104]
	mul	r3, r2, r3
	str	r3, [fp, #-64]
	mov	r3, #1
	str	r3, [fp, #-116]
	b	.L151
.L152:
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-108]
	cmp	r2, r3
	movls	r3, #1
	movhi	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-88]
	and	r3, r3, r2
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #100]
	ldr	r1, [fp, #-64]
	ldr	r3, [fp, #-116]
	add	r3, r1, r3
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-108]
	sub	r3, r3, #1
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-88]
	mul	r3, r2, r3
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L151:
	ldr	r3, [fp, #-116]
	cmp	r3, #256
	bls	.L152
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-108]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-104]
	and	r3, r3, r2
	str	r3, [fp, #-104]
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #9
	sub	r3, r3, r2
	ldr	r2, [fp, #-108]
	and	r3, r3, r2
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-108]
	sub	r2, r2, r3
	ldr	r3, [fp, #-128]
	str	r2, [r3, #112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L155
	b	.L172
.L150:
	ldr	r3, .L175+4
	b	.L136
.L138:
	ldr	r3, .L175+4
	b	.L136
.L172:
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	ldr	r3, [r3, #20]
	sub	r2, r2, r3
	ldr	r3, [fp, #-128]
	str	r2, [r3, #112]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #112]
	lsr	r2, r3, #8
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #92]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #92]
	add	r3, r3, #1
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #100]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #112]
	add	r1, r2, r3
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	ldr	r2, [r3, #20]
	sub	r3, fp, #56
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	ble	.L156
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	add	r3, r3, #21
	lsr	r2, r3, #6
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #112]
	add	r3, r3, #21
	lsr	r3, r3, #6
	sub	r3, r2, r3
	str	r3, [fp, #-60]
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #8
	sub	r3, r3, r2
	ldr	r2, [fp, #-60]
	and	r3, r3, r2
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	add	r0, r3, #68
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #84]
	mov	r2, #8
	mov	r1, r3
	bl	mbedtls_md_hmac_update
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	add	r0, r3, #68
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #88]
	mov	r2, #3
	mov	r1, r3
	bl	mbedtls_md_hmac_update
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	add	r0, r3, #68
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #92]
	mov	r2, #2
	mov	r1, r3
	bl	mbedtls_md_hmac_update
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	add	r0, r3, #68
	ldr	r3, [fp, #-128]
	ldr	r1, [r3, #100]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #112]
	mov	r2, r3
	bl	mbedtls_md_hmac_update
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	add	r0, r3, #68
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #100]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #112]
	add	r3, r2, r3
	mov	r1, r3
	bl	mbedtls_md_hmac_finish
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L157
.L158:
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	add	r2, r3, #68
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #100]
	mov	r1, r3
	mov	r0, r2
	bl	mbedtls_md_process
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L157:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	ldr	r2, [fp, #-84]
	cmp	r2, r3
	bcc	.L158
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	add	r3, r3, #68
	mov	r0, r3
	bl	mbedtls_md_hmac_reset
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #100]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #112]
	add	r1, r2, r3
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #52]
	ldr	r2, [r3, #20]
	sub	r3, fp, #56
	mov	r0, r3
	bl	mbedtls_ssl_safer_memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L161
	b	.L173
.L156:
	ldr	r3, .L175+4
	b	.L136
.L173:
	mov	r3, #0
	str	r3, [fp, #-104]
.L161:
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L155
	ldr	r3, .L175+8
	b	.L136
.L155:
	ldr	r3, [fp, #-112]
	cmp	r3, #1
	beq	.L163
	ldr	r3, .L175+4
	b	.L136
.L163:
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #112]
	cmp	r3, #0
	bne	.L164
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #148]
	add	r2, r3, #1
	ldr	r3, [fp, #-128]
	str	r2, [r3, #148]
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #148]
	cmp	r3, #3
	ble	.L165
	ldr	r3, .L175+8
	b	.L136
.L164:
	ldr	r3, [fp, #-128]
	mov	r2, #0
	str	r2, [r3, #148]
.L165:
	ldr	r3, [fp, #-128]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L166
	mov	r3, #8
	str	r3, [fp, #-116]
	b	.L167
.L170:
	ldr	r3, [fp, #-128]
	ldr	r2, [r3, #84]
	ldr	r3, [fp, #-116]
	sub	r3, r3, #1
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r2, r2, #1
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L174
	ldr	r3, [fp, #-116]
	sub	r3, r3, #1
	str	r3, [fp, #-116]
.L167:
	ldr	r0, [fp, #-128]
	bl	ssl_ep_len
	mov	r2, r0
	ldr	r3, [fp, #-116]
	cmp	r3, r2
	bhi	.L170
	b	.L169
.L174:
	nop
.L169:
	ldr	r0, [fp, #-128]
	bl	ssl_ep_len
	mov	r2, r0
	ldr	r3, [fp, #-116]
	cmp	r3, r2
	bne	.L166
	ldr	r3, .L175+12
	b	.L136
.L166:
	mov	r3, #0
.L136:
	ldr	r2, .L175
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L171
	bl	__stack_chk_fail
.L171:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L176:
	.align	2
.L175:
	.word	.LC6
	.word	-27648
	.word	-29056
	.word	-27520
	.size	ssl_decrypt_buf, .-ssl_decrypt_buf
	.align	2
	.global	mbedtls_ssl_fetch_input
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_fetch_input, %function
mbedtls_ssl_fetch_input:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	bne	.L178
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L178
	ldr	r3, .L207
	b	.L179
.L178:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #88]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #80]
	sub	r3, r2, r3
	rsb	r3, r3, #4352
	add	r3, r3, #61
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bls	.L180
	ldr	r3, .L207
	b	.L179
.L180:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L200
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #72]
	cmp	r3, #0
	beq	.L182
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #76]
	cmp	r3, #0
	bne	.L183
.L182:
	ldr	r3, .L207
	b	.L179
.L183:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #124]
	cmp	r3, #0
	beq	.L184
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #116]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #124]
	cmp	r2, r3
	bcs	.L185
	ldr	r3, .L207+4
	b	.L179
.L185:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #116]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #124]
	sub	r2, r2, r3
	ldr	r3, [fp, #-32]
	str	r2, [r3, #116]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #116]
	cmp	r3, #0
	beq	.L186
	ldr	r3, [fp, #-32]
	ldr	r0, [r3, #88]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #88]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #124]
	add	r1, r2, r3
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #116]
	mov	r2, r3
	bl	memmove
.L186:
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3, #124]
.L184:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #116]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bhi	.L187
	mov	r3, #0
	b	.L179
.L187:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #116]
	cmp	r3, #0
	beq	.L188
	ldr	r3, .L207+4
	b	.L179
.L188:
	ldr	r0, [fp, #-32]
	bl	ssl_check_timer
	mov	r3, r0
	cmp	r3, #0
	beq	.L189
	ldr	r3, .L207+8
	str	r3, [fp, #-24]
	b	.L190
.L189:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #88]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #80]
	sub	r3, r2, r3
	rsb	r3, r3, #4352
	add	r3, r3, #61
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	cmp	r3, #16
	beq	.L191
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #32]
	str	r3, [fp, #-20]
	b	.L192
.L191:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r3, [r3, #72]
	str	r3, [fp, #-20]
.L192:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	beq	.L193
	ldr	r3, [fp, #-32]
	ldr	r4, [r3, #24]
	ldr	r3, [fp, #-32]
	ldr	r0, [r3, #28]
	ldr	r3, [fp, #-32]
	ldr	r1, [r3, #88]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	blx	r4
	str	r0, [fp, #-24]
	b	.L194
.L193:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-32]
	ldr	r0, [r2, #28]
	ldr	r2, [fp, #-32]
	ldr	r1, [r2, #88]
	ldr	r2, [fp, #-16]
	blx	r3
	str	r0, [fp, #-24]
.L194:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L190
	ldr	r3, .L207+12
	b	.L179
.L190:
	ldr	r3, [fp, #-24]
	cmn	r3, #26624
	bne	.L195
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	ssl_set_timer
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	cmp	r3, #16
	beq	.L195
	ldr	r0, [fp, #-32]
	bl	ssl_double_retransmit_timeout
	mov	r3, r0
	cmp	r3, #0
	beq	.L196
	ldr	r3, .L207+8
	b	.L179
.L196:
	ldr	r0, [fp, #-32]
	bl	mbedtls_ssl_resend
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L197
	ldr	r3, [fp, #-24]
	b	.L179
.L197:
	ldr	r3, .L207+16
	b	.L179
.L195:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L198
	ldr	r3, [fp, #-24]
	b	.L179
.L198:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #116]
	b	.L199
.L206:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #116]
	ldr	r2, [fp, #-36]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-32]
	bl	ssl_check_timer
	mov	r3, r0
	cmp	r3, #0
	beq	.L201
	ldr	r3, .L207+8
	str	r3, [fp, #-24]
	b	.L202
.L201:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	beq	.L203
	ldr	r3, [fp, #-32]
	ldr	r4, [r3, #24]
	ldr	r3, [fp, #-32]
	ldr	r0, [r3, #28]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #88]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #116]
	add	r1, r2, r3
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r3, [r3, #72]
	ldr	r2, [fp, #-16]
	blx	r4
	str	r0, [fp, #-24]
	b	.L202
.L203:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-32]
	ldr	r0, [r2, #28]
	ldr	r2, [fp, #-32]
	ldr	r1, [r2, #88]
	ldr	r2, [fp, #-32]
	ldr	r2, [r2, #116]
	add	r1, r1, r2
	ldr	r2, [fp, #-16]
	blx	r3
	str	r0, [fp, #-24]
.L202:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L204
	ldr	r3, .L207+12
	b	.L179
.L204:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L205
	ldr	r3, [fp, #-24]
	b	.L179
.L205:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #116]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-32]
	str	r2, [r3, #116]
.L200:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #116]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bhi	.L206
.L199:
	mov	r3, #0
.L179:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L208:
	.align	2
.L207:
	.word	-28928
	.word	-27648
	.word	-26624
	.word	-29312
	.word	-26880
	.size	mbedtls_ssl_fetch_input, .-mbedtls_ssl_fetch_input
	.align	2
	.global	mbedtls_ssl_flush_output
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_flush_output, %function
mbedtls_ssl_flush_output:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	bne	.L210
	ldr	r3, .L222
	b	.L211
.L210:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #188]
	cmp	r3, #0
	bne	.L213
	mov	r3, #0
	b	.L211
.L215:
	ldr	r3, [fp, #-32]
	ldr	r4, [r3, #164]
	ldr	r0, [fp, #-32]
	bl	mbedtls_ssl_hdr_len
	mov	r2, r0
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #184]
	add	r2, r2, r3
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #188]
	sub	r3, r2, r3
	add	r3, r4, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-32]
	ldr	r0, [r2, #28]
	ldr	r2, [fp, #-32]
	ldr	r2, [r2, #188]
	ldr	r1, [fp, #-20]
	blx	r3
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L214
	ldr	r3, [fp, #-16]
	b	.L211
.L214:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #188]
	ldr	r3, [fp, #-16]
	sub	r2, r2, r3
	ldr	r3, [fp, #-32]
	str	r2, [r3, #188]
.L213:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #188]
	cmp	r3, #0
	bne	.L215
	mov	r3, #8
	strb	r3, [fp, #-21]
	b	.L216
.L219:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #160]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	sub	r3, r3, #1
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r2, r2, #1
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L221
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	sub	r3, r3, #1
	strb	r3, [fp, #-21]
.L216:
	ldrb	r4, [fp, #-21]	@ zero_extendqisi2
	ldr	r0, [fp, #-32]
	bl	ssl_ep_len
	mov	r3, r0
	cmp	r4, r3
	bhi	.L219
	b	.L218
.L221:
	nop
.L218:
	ldrb	r4, [fp, #-21]	@ zero_extendqisi2
	ldr	r0, [fp, #-32]
	bl	ssl_ep_len
	mov	r3, r0
	cmp	r4, r3
	bne	.L220
	ldr	r3, .L222+4
	b	.L211
.L220:
	mov	r3, #0
.L211:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L223:
	.align	2
.L222:
	.word	-28928
	.word	-27520
	.size	mbedtls_ssl_flush_output, .-mbedtls_ssl_flush_output
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_flight_append, %function
ssl_flight_append:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r1, #16
	mov	r0, #1
	bl	mbedtls_calloc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L225
	ldr	r3, .L232
	b	.L226
.L225:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #184]
	mov	r1, r3
	mov	r0, #1
	bl	mbedtls_calloc
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L227
	ldr	r0, [fp, #-8]
	bl	mbedtls_free
	ldr	r3, .L232
	b	.L226
.L227:
	ldr	r3, [fp, #-8]
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #176]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #184]
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #184]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #180]
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #40]
	cmp	r3, #0
	bne	.L228
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #40]
	b	.L229
.L228:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #40]
	str	r3, [fp, #-12]
	b	.L230
.L231:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
.L230:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L231
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #12]
.L229:
	mov	r3, #0
.L226:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L233:
	.align	2
.L232:
	.word	-32512
	.size	ssl_flight_append, .-ssl_flight_append
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_flight_free, %function
ssl_flight_free:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L235
.L236:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r0, r3
	bl	mbedtls_free
	ldr	r0, [fp, #-12]
	bl	mbedtls_free
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
.L235:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L236
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ssl_flight_free, .-ssl_flight_free
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_swap_epochs, %function
ssl_swap_epochs:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L244
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #56]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #52]
	cmp	r2, r3
	beq	.L243
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #56]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	ldr	r2, [r3, #52]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #56]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #52]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #160]
	sub	r3, fp, #16
	mov	r1, r2
	mov	r2, #8
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-24]
	ldr	r0, [r3, #160]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	add	r3, r3, #56
	mov	r2, #8
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	add	r3, r3, #56
	mov	r0, r3
	sub	r3, fp, #16
	mov	r2, #8
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #56]
	cmp	r3, #0
	beq	.L240
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	cmp	r3, #1
	ble	.L240
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #172]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #56]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #56]
	ldr	r3, [r3, #16]
	sub	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #176]
	b	.L237
.L240:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #172]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #176]
	b	.L237
.L243:
	nop
.L237:
	ldr	r3, .L244
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L242
	bl	__stack_chk_fail
.L242:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L245:
	.align	2
.L244:
	.word	.LC7
	.size	ssl_swap_epochs, .-ssl_swap_epochs
	.align	2
	.global	mbedtls_ssl_resend
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_resend, %function
mbedtls_ssl_resend:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	ldrb	r3, [r3, #36]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L248
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #48]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	ldr	r2, [r2, #40]
	str	r2, [r3, #44]
	ldr	r0, [fp, #-16]
	bl	ssl_swap_epochs
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	mov	r2, #1
	strb	r2, [r3, #36]
	b	.L248
.L251:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #44]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	cmp	r3, #22
	bne	.L249
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #20
	bne	.L249
	ldr	r0, [fp, #-16]
	bl	ssl_swap_epochs
.L249:
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #176]
	ldr	r3, [fp, #-12]
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #184]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #180]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	ldr	r2, [fp, #-12]
	ldr	r2, [r2, #12]
	str	r2, [r3, #44]
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_write_record
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L248
	ldr	r3, [fp, #-8]
	b	.L250
.L248:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #44]
	cmp	r3, #0
	bne	.L251
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #16
	bne	.L252
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	mov	r2, #3
	strb	r2, [r3, #36]
	b	.L253
.L252:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	mov	r2, #2
	strb	r2, [r3, #36]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #32]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	ssl_set_timer
.L253:
	mov	r3, #0
.L250:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_resend, .-mbedtls_ssl_resend
	.align	2
	.global	mbedtls_ssl_recv_flight_completed
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_recv_flight_completed, %function
mbedtls_ssl_recv_flight_completed:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #40]
	mov	r0, r3
	bl	ssl_flight_free
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	mov	r2, #0
	str	r2, [r3, #40]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	mov	r2, #0
	str	r2, [r3, #44]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #48]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	ldr	r2, [r2, #16]
	str	r2, [r3, #48]
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	ssl_set_timer
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #108]
	cmp	r3, #22
	bne	.L255
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #100]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #20
	bne	.L255
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	mov	r2, #3
	strb	r2, [r3, #36]
	b	.L256
.L255:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	mov	r2, #0
	strb	r2, [r3, #36]
	nop
.L256:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_recv_flight_completed, .-mbedtls_ssl_recv_flight_completed
	.align	2
	.global	mbedtls_ssl_send_flight_completed
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_send_flight_completed, %function
mbedtls_ssl_send_flight_completed:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	ssl_reset_retransmit_timeout
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #32]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	ssl_set_timer
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #108]
	cmp	r3, #22
	bne	.L258
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #100]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #20
	bne	.L258
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	mov	r2, #3
	strb	r2, [r3, #36]
	b	.L259
.L258:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	mov	r2, #2
	strb	r2, [r3, #36]
	nop
.L259:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_send_flight_completed, .-mbedtls_ssl_send_flight_completed
	.align	2
	.global	mbedtls_ssl_write_record
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_write_record, %function
mbedtls_ssl_write_record:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #184]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L261
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	beq	.L261
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	ldrb	r3, [r3, #36]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L262
.L261:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #180]
	cmp	r3, #22
	bne	.L262
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #176]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L263
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	bne	.L263
	ldr	r3, .L274
	b	.L264
.L263:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #4
	lsr	r2, r3, #16
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #176]
	add	r3, r3, #1
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #4
	lsr	r2, r3, #8
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #176]
	add	r3, r3, #2
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #176]
	add	r3, r3, #3
	sub	r2, r2, #4
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L265
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #176]
	add	r0, r3, #12
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #176]
	add	r1, r3, #4
	ldr	r3, [fp, #-20]
	sub	r3, r3, #4
	mov	r2, r3
	bl	memmove
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #184]
	add	r2, r3, #8
	ldr	r3, [fp, #-24]
	str	r2, [r3, #184]
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L266
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #12]
	lsr	r2, r3, #8
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #176]
	add	r3, r3, #4
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #176]
	add	r3, r3, #5
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	ldr	r2, [r3, #12]
	add	r2, r2, #1
	str	r2, [r3, #12]
	b	.L267
.L266:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #176]
	add	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #176]
	add	r3, r3, #5
	mov	r2, #0
	strb	r2, [r3]
.L267:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #176]
	add	r3, r3, #6
	mov	r2, #3
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #176]
	add	r0, r3, #9
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #176]
	add	r3, r3, #1
	mov	r2, #3
	mov	r1, r3
	bl	memcpy
.L265:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L262
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #72]
	ldr	r2, [fp, #-24]
	ldr	r1, [r2, #176]
	ldr	r2, [fp, #-20]
	ldr	r0, [fp, #-24]
	blx	r3
.L262:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L268
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	beq	.L268
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	ldrb	r3, [r3, #36]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L268
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #180]
	cmp	r3, #20
	beq	.L269
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #180]
	cmp	r3, #22
	bne	.L268
.L269:
	ldr	r0, [fp, #-24]
	bl	ssl_flight_append
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L268
	ldr	r3, [fp, #-8]
	b	.L264
.L268:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L270
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #180]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #164]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-24]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	lsr	r3, r3, #1
	and	r3, r3, #1
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #164]
	add	r3, r3, #1
	bl	mbedtls_ssl_write_version
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #8
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #168]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #168]
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #56]
	cmp	r3, #0
	beq	.L271
	ldr	r0, [fp, #-24]
	bl	ssl_encrypt_buf
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L272
	ldr	r3, [fp, #-8]
	b	.L264
.L272:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #184]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #8
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #168]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #168]
	add	r3, r3, #1
	ldr	r2, [fp, #-20]
	and	r2, r2, #255
	strb	r2, [r3]
.L271:
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_hdr_len
	mov	r2, r0
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #184]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #188]
.L270:
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_flush_output
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L273
	ldr	r3, [fp, #-8]
	b	.L264
.L273:
	mov	r3, #0
.L264:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L275:
	.align	2
.L274:
	.word	-27648
	.size	mbedtls_ssl_write_record, .-mbedtls_ssl_write_record
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_bitmask_set, %function
ssl_bitmask_set:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	and	r3, r3, #7
	rsb	r3, r3, #8
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #8
	beq	.L277
	ldr	r3, [fp, #-28]
	lsr	r3, r3, #3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bhi	.L278
	b	.L279
.L280:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-32]
	sub	r3, r1, r3
	mov	r1, #1
	lsl	r3, r1, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r1, [fp, #-24]
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
.L279:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L280
	b	.L276
.L278:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-32]
	b	.L282
.L283:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	mov	r1, #1
	lsl	r3, r1, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r1, [fp, #-24]
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
.L282:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L283
.L277:
	ldr	r3, [fp, #-32]
	and	r3, r3, #7
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L284
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	lsr	r3, r3, #3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	str	r3, [fp, #-32]
	b	.L285
.L286:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-16]
	rsb	r3, r3, #8
	mov	r1, #1
	lsl	r3, r1, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r1, [fp, #-24]
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L285:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L286
.L284:
	ldr	r3, [fp, #-28]
	lsr	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r0, r2, r3
	ldr	r3, [fp, #-32]
	lsr	r3, r3, #3
	mov	r2, r3
	mov	r1, #255
	bl	memset
.L276:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ssl_bitmask_set, .-ssl_bitmask_set
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_bitmask_check, %function
ssl_bitmask_check:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L288
.L291:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #255
	beq	.L289
	mvn	r3, #0
	b	.L290
.L289:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L288:
	ldr	r3, [fp, #-20]
	lsr	r3, r3, #3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L291
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L292
.L294:
	ldr	r3, [fp, #-20]
	lsr	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #7
	asr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L293
	mvn	r3, #0
	b	.L290
.L293:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L292:
	ldr	r3, [fp, #-20]
	and	r3, r3, #7
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L294
	mov	r3, #0
.L290:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	ssl_bitmask_check, .-ssl_bitmask_check
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_reassemble_dtls_handshake, %function
ssl_reassemble_dtls_handshake:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #144]
	sub	r3, r3, #12
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	bne	.L296
	ldr	r3, .L308
	b	.L297
.L296:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	bne	.L298
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #144]
	cmp	r3, #4096
	bls	.L299
	ldr	r3, .L308
	b	.L297
.L299:
	ldr	r3, [fp, #-48]
	lsr	r2, r3, #3
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [fp, #-48]
	and	r2, r2, #7
	cmp	r2, #0
	movne	r2, #1
	moveq	r2, #0
	and	r2, r2, #255
	add	r3, r3, r2
	add	r3, r3, #12
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-56]
	ldr	r4, [r3, #48]
	ldr	r1, [fp, #-44]
	mov	r0, #1
	bl	mbedtls_calloc
	mov	r3, r0
	str	r3, [r4, #28]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	bne	.L300
	ldr	r3, .L308+4
	b	.L297
.L300:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #48]
	ldr	r0, [r3, #28]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #100]
	mov	r2, #6
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #28]
	add	r3, r3, #6
	mov	r2, #3
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #28]
	add	r0, r3, #9
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #28]
	add	r3, r3, #1
	mov	r2, #3
	mov	r1, r3
	bl	memcpy
	b	.L301
.L298:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #48]
	ldr	r0, [r3, #28]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #100]
	mov	r2, #4
	mov	r1, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L301
	ldr	r3, .L308+8
	b	.L297
.L301:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #28]
	add	r3, r3, #12
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #100]
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r2, r3, #16
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #100]
	add	r3, r3, #7
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	ldr	r2, [fp, #-56]
	ldr	r2, [r2, #100]
	add	r2, r2, #8
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #100]
	add	r3, r3, #9
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r2, r3, #16
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #100]
	add	r3, r3, #10
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	ldr	r2, [fp, #-56]
	ldr	r2, [r2, #100]
	add	r2, r2, #11
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	bcs	.L302
	ldr	r3, .L308+8
	b	.L297
.L302:
	ldr	r3, [fp, #-28]
	add	r2, r3, #12
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #112]
	cmp	r2, r3
	bls	.L303
	ldr	r3, .L308+8
	b	.L297
.L303:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	add	r0, r2, r3
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #100]
	add	r3, r3, #12
	ldr	r2, [fp, #-28]
	mov	r1, r3
	bl	memcpy
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	ssl_bitmask_set
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-36]
	bl	ssl_bitmask_check
	mov	r3, r0
	cmp	r3, #0
	beq	.L304
	ldr	r3, .L308+12
	b	.L297
.L304:
	ldr	r3, [fp, #-28]
	add	r2, r3, #12
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #112]
	cmp	r2, r3
	bcs	.L305
	ldr	r3, .L308
	b	.L297
.L305:
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #116]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #124]
	cmp	r2, r3
	bls	.L306
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #88]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #124]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #100]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #144]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #116]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #124]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #88]
	ldr	r2, [fp, #-20]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-56]
	str	r2, [r3, #124]
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #124]
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-56]
	str	r2, [r3, #116]
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #116]
	ldr	r3, [fp, #-56]
	ldr	r1, [r3, #88]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #80]
	sub	r3, r1, r3
	rsb	r3, r3, #4352
	add	r3, r3, #61
	cmp	r2, r3
	bls	.L307
	ldr	r3, .L308+16
	b	.L297
.L307:
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	memmove
.L306:
	ldr	r3, [fp, #-56]
	ldr	r0, [r3, #100]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #48]
	ldr	r1, [r3, #28]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #144]
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #28]
	mov	r0, r3
	bl	mbedtls_free
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #48]
	mov	r2, #0
	str	r2, [r3, #28]
	mov	r3, #0
.L297:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L309:
	.align	2
.L308:
	.word	-28800
	.word	-32512
	.word	-29184
	.word	-26880
	.word	-27136
	.size	ssl_reassemble_dtls_handshake, .-ssl_reassemble_dtls_handshake
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\000\000\000\000"
	.text
	.align	2
	.global	mbedtls_ssl_prepare_handshake_record
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_prepare_handshake_record, %function
mbedtls_ssl_prepare_handshake_record:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r4, [r3, #112]
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_hs_hdr_len
	mov	r3, r0
	cmp	r4, r3
	bcs	.L311
	ldr	r3, .L318
	b	.L312
.L311:
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_hs_hdr_len
	mov	r1, r0
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #100]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r2, r3, #16
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #100]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, #100]
	add	r2, r2, #3
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #144]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L313
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #100]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, #100]
	add	r2, r2, #5
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	beq	.L314
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L314
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #48]
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L315
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #100]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #3
	beq	.L315
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_resend
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L315
	ldr	r3, [fp, #-16]
	b	.L312
.L315:
	ldr	r3, .L318+4
	b	.L312
.L314:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #144]
	cmp	r2, r3
	bcc	.L316
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #100]
	add	r3, r3, #6
	mov	r2, #3
	ldr	r1, .L318+8
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L316
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #100]
	add	r0, r3, #9
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #100]
	add	r3, r3, #1
	mov	r2, #3
	mov	r1, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L316
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	beq	.L317
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	beq	.L317
.L316:
	ldr	r0, [fp, #-24]
	bl	ssl_reassemble_dtls_handshake
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L317
	ldr	r3, [fp, #-16]
	b	.L312
.L313:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #144]
	cmp	r2, r3
	bcs	.L317
	ldr	r3, .L318+12
	b	.L312
.L317:
	mov	r3, #0
.L312:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L319:
	.align	2
.L318:
	.word	-29184
	.word	-26880
	.word	.LC8
	.word	-28800
	.size	mbedtls_ssl_prepare_handshake_record, .-mbedtls_ssl_prepare_handshake_record
	.align	2
	.global	mbedtls_ssl_update_handshake_status
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_update_handshake_status, %function
mbedtls_ssl_update_handshake_status:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #16
	beq	.L321
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	beq	.L321
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #72]
	ldr	r2, [fp, #-8]
	ldr	r1, [r2, #100]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2, #144]
	ldr	r0, [fp, #-8]
	blx	r3
.L321:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L323
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	beq	.L323
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	ldr	r2, [r3, #16]
	add	r2, r2, #1
	str	r2, [r3, #16]
.L323:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_update_handshake_status, .-mbedtls_ssl_update_handshake_status
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_dtls_replay_reset, %function
ssl_dtls_replay_reset:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	mov	r2, #0
	mov	r3, #0
	str	r2, [r1, #128]
	str	r3, [r1, #132]
	ldr	r1, [fp, #-8]
	mov	r2, #0
	mov	r3, #0
	str	r2, [r1, #136]
	str	r3, [r1, #140]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	ssl_dtls_replay_reset, .-ssl_dtls_replay_reset
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_load_six_bytes, %function
ssl_load_six_bytes:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, r8, r9, fp}
	add	fp, sp, #24
	sub	sp, sp, #44
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #255
	mov	r3, #0
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r2, #8
	mov	r4, #0
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #255
	mov	r3, #0
	mov	r0, #0
	mov	r1, #0
	mov	r1, r2
	mov	r0, #0
	orr	r3, r4, r0
	str	r3, [fp, #-44]
	orr	r3, r5, r1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-32]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #255
	mov	r3, #0
	lsr	r1, r2, #8
	str	r1, [fp, #-48]
	lsl	r3, r2, #24
	str	r3, [fp, #-52]
	sub	r2, fp, #44
	ldmia	r2, {r1-r2}
	mov	r0, r1
	sub	r4, fp, #52
	ldmia	r4, {r3-r4}
	mov	ip, r3
	orr	r0, r0, ip
	str	r0, [fp, #-60]
	mov	r3, r4
	orr	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-32]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r0, r3, #255
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #16
	orr	r3, r3, r0, lsr #16
	lsl	r2, r0, #16
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	mov	ip, r0
	orr	r8, ip, r2
	orr	r9, r1, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r0, r3, #255
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #8
	orr	r3, r3, r0, lsr #24
	lsl	r2, r0, #8
	orr	r6, r8, r2
	orr	r7, r9, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, #5
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #255
	mov	r3, #0
	orr	r1, r6, r2
	str	r1, [fp, #-68]
	orr	r3, r7, r3
	str	r3, [fp, #-64]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp}
	bx	lr
	.size	ssl_load_six_bytes, .-ssl_load_six_bytes
	.align	2
	.global	mbedtls_ssl_dtls_replay_check
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_dtls_replay_check, %function
mbedtls_ssl_dtls_replay_check:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #24
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #84]
	add	r3, r3, #2
	mov	r0, r3
	bl	ssl_load_six_bytes
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldrb	r3, [r3, #89]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L328
	mov	r3, #0
	b	.L329
.L328:
	ldr	r3, [fp, #-48]
	add	r3, r3, #128
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bls	.L330
	mov	r3, #0
	b	.L329
.L330:
	ldr	r3, [fp, #-48]
	add	r1, r3, #128
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	subs	r8, r0, r2
	sbc	r9, r1, r3
	str	r8, [fp, #-36]
	str	r9, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #63
	bls	.L331
	mvn	r3, #0
	b	.L329
.L331:
	ldr	r3, [fp, #-48]
	add	r3, r3, #136
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-36]
	rsb	ip, r1, #32
	sub	r0, r1, #32
	lsr	r4, r2, r1
	orr	r4, r4, r3, lsl ip
	orr	r4, r4, r3, lsr r0
	lsr	r5, r3, r1
	mov	r2, #1
	mov	r3, #0
	and	r6, r4, r2
	and	r7, r5, r3
	orrs	r3, r6, r7
	beq	.L332
	mvn	r3, #0
	b	.L329
.L332:
	mov	r3, #0
.L329:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
	.size	mbedtls_ssl_dtls_replay_check, .-mbedtls_ssl_dtls_replay_check
	.align	2
	.global	mbedtls_ssl_dtls_replay_update
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_dtls_replay_update, %function
mbedtls_ssl_dtls_replay_update:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #84]
	add	r3, r3, #2
	mov	r0, r3
	bl	ssl_load_six_bytes
	str	r0, [fp, #-52]
	str	r1, [fp, #-48]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	ldrb	r3, [r3, #89]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L339
	ldr	r3, [fp, #-56]
	add	r1, r3, #128
	ldmia	r1, {r0-r1}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r3, r1
	cmpeq	r2, r0
	bls	.L336
	ldr	r3, [fp, #-56]
	add	r3, r3, #128
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	subs	ip, r0, r2
	str	ip, [fp, #-76]
	sbc	r3, r1, r3
	str	r3, [fp, #-72]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #63
	bls	.L337
	ldr	r1, [fp, #-56]
	mov	r2, #1
	mov	r3, #0
	str	r2, [r1, #136]
	str	r3, [r1, #140]
	b	.L338
.L337:
	ldr	r3, [fp, #-56]
	add	r3, r3, #136
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-36]
	sub	ip, r1, #32
	rsb	r0, r1, #32
	lsl	r5, r3, r1
	orr	r5, r5, r2, lsl ip
	orr	r5, r5, r2, lsr r0
	lsl	r4, r2, r1
	ldr	r3, [fp, #-56]
	str	r4, [r3, #136]
	str	r5, [r3, #140]
	ldr	r3, [fp, #-56]
	add	r3, r3, #136
	ldmia	r3, {r2-r3}
	mov	r0, #1
	mov	r1, #0
	orr	ip, r2, r0
	str	ip, [fp, #-68]
	orr	r3, r3, r1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-56]
	sub	r2, fp, #68
	ldmia	r2, {r1-r2}
	str	r1, [r3, #136]
	str	r2, [r3, #140]
.L338:
	ldr	r1, [fp, #-56]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	str	r2, [r1, #128]
	str	r3, [r1, #132]
	b	.L333
.L336:
	ldr	r3, [fp, #-56]
	add	r1, r3, #128
	ldmia	r1, {r0-r1}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	subs	ip, r0, r2
	str	ip, [fp, #-84]
	sbc	r3, r1, r3
	str	r3, [fp, #-80]
	sub	r4, fp, #84
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-44]
	str	r4, [fp, #-40]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #63
	bhi	.L333
	ldr	r3, [fp, #-56]
	add	r5, r3, #136
	ldmia	r5, {r4-r5}
	ldr	r1, [fp, #-44]
	mov	r2, #1
	mov	r3, #0
	sub	ip, r1, #32
	rsb	r0, r1, #32
	lsl	r7, r3, r1
	orr	r7, r7, r2, lsl ip
	orr	r7, r7, r2, lsr r0
	lsl	r6, r2, r1
	orr	r8, r4, r6
	orr	r9, r5, r7
	ldr	r3, [fp, #-56]
	str	r8, [r3, #136]
	str	r9, [r3, #140]
	b	.L333
.L339:
	nop
.L333:
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
	.size	mbedtls_ssl_dtls_replay_update, .-mbedtls_ssl_dtls_replay_update
	.section	.rodata
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_parse_record_header, %function
ssl_parse_record_header:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L357
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #88]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	str	r2, [r3, #108]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #92]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldr	r2, [fp, #-32]
	ldr	r2, [r2, #92]
	add	r2, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	str	r2, [r3, #112]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	lsr	r3, r3, #1
	and	r3, r3, #1
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #88]
	add	r3, r3, #1
	sub	r1, fp, #20
	sub	r0, fp, #24
	bl	mbedtls_ssl_read_version
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #108]
	cmp	r3, #22
	beq	.L341
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #108]
	cmp	r3, #21
	beq	.L341
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #108]
	cmp	r3, #20
	beq	.L341
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #108]
	cmp	r3, #23
	beq	.L341
	mov	r2, #10
	mov	r1, #2
	ldr	r0, [fp, #-32]
	bl	mbedtls_ssl_send_alert_message
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L342
	ldr	r3, [fp, #-16]
	b	.L355
.L342:
	ldr	r3, .L357+4
	b	.L355
.L341:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L344
	ldr	r3, .L357+4
	b	.L355
.L344:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldrb	r3, [r3, #85]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bge	.L345
	ldr	r3, .L357+4
	b	.L355
.L345:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-32]
	ldr	r1, [r3, #100]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #80]
	sub	r3, r1, r3
	rsb	r3, r3, #4352
	add	r3, r3, #61
	cmp	r2, r3
	bls	.L346
	ldr	r3, .L357+4
	b	.L355
.L346:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #52]
	cmp	r3, #0
	bne	.L347
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #112]
	cmp	r3, #0
	beq	.L348
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #112]
	cmp	r3, #4096
	bls	.L349
.L348:
	ldr	r3, .L357+4
	b	.L355
.L347:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #52]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bcs	.L350
	ldr	r3, .L357+4
	b	.L355
.L350:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	ble	.L349
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #52]
	ldr	r3, [r3, #8]
	add	r3, r3, #4352
	cmp	r2, r3
	bls	.L349
	ldr	r3, .L357+4
	b	.L355
.L349:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L351
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #84]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldr	r2, [fp, #-32]
	ldr	r2, [r2, #84]
	add	r2, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #108]
	cmp	r3, #20
	bne	.L352
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	cmp	r3, #10
	beq	.L352
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	cmp	r3, #12
	beq	.L352
	ldr	r3, .L357+8
	b	.L355
.L352:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #108]
	cmp	r3, #23
	bne	.L353
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	cmp	r3, #16
	beq	.L353
	ldr	r3, .L357+8
	b	.L355
.L353:
	ldr	r3, [fp, #-32]
	ldrh	r3, [r3, #120]
	mov	r2, r3
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	beq	.L354
	ldr	r3, .L357+8
	b	.L355
.L354:
	ldr	r3, [fp, #-32]
	ldrh	r3, [r3, #120]
	mov	r2, r3
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	bne	.L351
	ldr	r0, [fp, #-32]
	bl	mbedtls_ssl_dtls_replay_check
	mov	r3, r0
	cmp	r3, #0
	beq	.L351
	ldr	r3, .L357+8
	b	.L355
.L351:
	mov	r3, #0
.L355:
	ldr	r2, .L357
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L356
	bl	__stack_chk_fail
.L356:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L358:
	.align	2
.L357:
	.word	.LC9
	.word	-29184
	.word	-26368
	.size	ssl_parse_record_header, .-ssl_parse_record_header
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_prepare_record_content, %function
ssl_prepare_record_content:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L360
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #52]
	cmp	r3, #0
	beq	.L360
	ldr	r0, [fp, #-16]
	bl	ssl_decrypt_buf
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L361
	ldr	r3, [fp, #-8]
	b	.L362
.L361:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #112]
	cmp	r3, #4096
	bls	.L360
	ldr	r3, .L364
	b	.L362
.L360:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L363
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_dtls_replay_update
.L363:
	mov	r3, #0
.L362:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L365:
	.align	2
.L364:
	.word	-29184
	.size	ssl_prepare_record_content, .-ssl_prepare_record_content
	.align	2
	.global	mbedtls_ssl_read_record
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_read_record, %function
mbedtls_ssl_read_record:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
.L369:
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_read_record_layer
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L367
	ldr	r3, [fp, #-8]
	b	.L368
.L367:
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_handle_message_type
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L372
	cmp	r3, r2
	beq	.L369
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L370
	ldr	r3, [fp, #-8]
	b	.L368
.L370:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #108]
	cmp	r3, #22
	bne	.L371
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_update_handshake_status
.L371:
	mov	r3, #0
.L368:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L373:
	.align	2
.L372:
	.word	-26240
	.size	mbedtls_ssl_read_record, .-mbedtls_ssl_read_record
	.align	2
	.global	mbedtls_ssl_read_record_layer
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_read_record_layer, %function
mbedtls_ssl_read_record_layer:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #144]
	cmp	r3, #0
	beq	.L375
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #144]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #112]
	cmp	r2, r3
	bcs	.L375
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #144]
	sub	r2, r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #112]
	ldr	r3, [fp, #-24]
	ldr	r0, [r3, #100]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #100]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #144]
	add	r1, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #112]
	mov	r2, r3
	bl	memmove
	mov	r3, #0
	b	.L376
.L375:
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #144]
.L377:
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_hdr_len
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_fetch_input
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L378
	ldr	r3, [fp, #-16]
	b	.L376
.L378:
	ldr	r0, [fp, #-24]
	bl	ssl_parse_record_header
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L379
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L380
	ldr	r3, [fp, #-16]
	ldr	r2, .L395
	cmp	r3, r2
	beq	.L380
	ldr	r3, [fp, #-16]
	cmn	r3, #26368
	bne	.L381
	ldr	r3, [fp, #-24]
	ldr	r4, [r3, #112]
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_hdr_len
	mov	r3, r0
	add	r2, r4, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #124]
	b	.L377
.L381:
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #124]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #116]
	b	.L377
.L380:
	ldr	r3, [fp, #-16]
	b	.L376
.L379:
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_hdr_len
	mov	r2, r0
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #112]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_fetch_input
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L383
	ldr	r3, [fp, #-16]
	b	.L376
.L383:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L384
	ldr	r3, [fp, #-24]
	ldr	r4, [r3, #112]
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_hdr_len
	mov	r3, r0
	add	r2, r4, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #124]
	b	.L385
.L384:
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #116]
.L385:
	ldr	r0, [fp, #-24]
	bl	ssl_prepare_record_content
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L386
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L387
	ldr	r3, [fp, #-16]
	cmn	r3, #29184
	beq	.L388
	ldr	r3, [fp, #-16]
	ldr	r2, .L395+4
	cmp	r3, r2
	bne	.L389
.L388:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	cmp	r3, #11
	beq	.L390
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	cmp	r3, #13
	bne	.L377
.L390:
	ldr	r3, [fp, #-16]
	b	.L376
.L389:
	ldr	r3, [fp, #-16]
	b	.L376
.L387:
	ldr	r3, [fp, #-16]
	b	.L376
.L386:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L392
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	beq	.L392
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	cmp	r3, #16
	bne	.L392
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #108]
	cmp	r3, #22
	bne	.L393
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #100]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #20
	bne	.L393
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_resend
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L394
	ldr	r3, [fp, #-16]
	b	.L376
.L394:
	ldr	r3, .L395+8
	b	.L376
.L393:
	ldr	r0, [fp, #-24]
	bl	ssl_handshake_wrapup_free_hs_transform
.L392:
	mov	r3, #0
.L376:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L396:
	.align	2
.L395:
	.word	-26496
	.word	-29056
	.word	-26880
	.size	mbedtls_ssl_read_record_layer, .-mbedtls_ssl_read_record_layer
	.align	2
	.global	mbedtls_ssl_handle_message_type
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_handle_message_type, %function
mbedtls_ssl_handle_message_type:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #108]
	cmp	r3, #22
	bne	.L398
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_prepare_handshake_record
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L398
	ldr	r3, [fp, #-8]
	b	.L399
.L398:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #108]
	cmp	r3, #21
	bne	.L400
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #100]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L401
	ldr	r3, .L404
	b	.L399
.L401:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #100]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L402
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #100]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L402
	ldr	r3, .L404+4
	b	.L399
.L402:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #100]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L403
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #100]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #100
	bne	.L403
	mov	r3, #0
	b	.L399
.L403:
	ldr	r3, .L404+8
	b	.L399
.L400:
	mov	r3, #0
.L399:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L405:
	.align	2
.L404:
	.word	-30592
	.word	-30848
	.word	-26240
	.size	mbedtls_ssl_handle_message_type, .-mbedtls_ssl_handle_message_type
	.align	2
	.global	mbedtls_ssl_send_fatal_handshake_failure
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_send_fatal_handshake_failure, %function
mbedtls_ssl_send_fatal_handshake_failure:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r2, #40
	mov	r1, #2
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_send_alert_message
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L407
	ldr	r3, [fp, #-8]
	b	.L408
.L407:
	mov	r3, #0
.L408:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_send_fatal_handshake_failure, .-mbedtls_ssl_send_fatal_handshake_failure
	.align	2
	.global	mbedtls_ssl_send_alert_message
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_send_alert_message, %function
mbedtls_ssl_send_alert_message:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, r1
	strb	r3, [fp, #-17]
	mov	r3, r2
	strb	r3, [fp, #-18]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L410
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L411
.L410:
	ldr	r3, .L414
	b	.L412
.L411:
	ldr	r3, [fp, #-16]
	mov	r2, #21
	str	r2, [r3, #180]
	ldr	r3, [fp, #-16]
	mov	r2, #2
	str	r2, [r3, #184]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #176]
	ldrb	r2, [fp, #-17]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #176]
	add	r3, r3, #1
	ldrb	r2, [fp, #-18]
	strb	r2, [r3]
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_write_record
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L413
	ldr	r3, [fp, #-8]
	b	.L412
.L413:
	mov	r3, #0
.L412:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L415:
	.align	2
.L414:
	.word	-28928
	.size	mbedtls_ssl_send_alert_message, .-mbedtls_ssl_send_alert_message
	.align	2
	.global	mbedtls_ssl_write_certificate
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_write_certificate, %function
mbedtls_ssl_write_certificate:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L425
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #64]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #16]
	cmp	r3, #5
	beq	.L417
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #16]
	cmp	r3, #6
	beq	.L417
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #16]
	cmp	r3, #8
	beq	.L417
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #16]
	cmp	r3, #11
	bne	.L418
.L417:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-32]
	str	r2, [r3, #4]
	mov	r3, #0
	b	.L419
.L418:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L420
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #192]
	cmp	r3, #0
	bne	.L420
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-32]
	str	r2, [r3, #4]
	mov	r3, #0
	b	.L419
.L420:
	mov	r3, #7
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-32]
	bl	mbedtls_ssl_own_cert
	str	r0, [fp, #-20]
	b	.L421
.L423:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #4080
	add	r3, r3, #13
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bls	.L422
	ldr	r3, .L425+4
	b	.L419
.L422:
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #16
	ldr	r3, [fp, #-32]
	ldr	r1, [r3, #176]
	ldr	r3, [fp, #-24]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #8
	ldr	r3, [fp, #-32]
	ldr	r1, [r3, #176]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #176]
	ldr	r3, [fp, #-24]
	add	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #176]
	ldr	r3, [fp, #-24]
	add	r0, r2, r3
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-8]
	mov	r1, r3
	bl	memcpy
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #308]
	str	r3, [fp, #-20]
.L421:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L423
	ldr	r3, [fp, #-24]
	sub	r3, r3, #7
	lsr	r2, r3, #16
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #176]
	add	r3, r3, #4
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #7
	lsr	r2, r3, #8
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #176]
	add	r3, r3, #5
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	and	r2, r3, #255
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #176]
	add	r3, r3, #6
	sub	r2, r2, #7
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #184]
	ldr	r3, [fp, #-32]
	mov	r2, #22
	str	r2, [r3, #180]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #176]
	mov	r2, #11
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-32]
	str	r2, [r3, #4]
	ldr	r0, [fp, #-32]
	bl	mbedtls_ssl_write_record
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L424
	ldr	r3, [fp, #-16]
	b	.L419
.L424:
	ldr	r3, [fp, #-16]
.L419:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L426:
	.align	2
.L425:
	.word	-28800
	.word	-29952
	.size	mbedtls_ssl_write_certificate, .-mbedtls_ssl_write_certificate
	.align	2
	.global	mbedtls_ssl_parse_certificate
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_parse_certificate, %function
mbedtls_ssl_parse_certificate:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-48]
	ldr	r3, .L448
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #64]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	lsr	r3, r3, #2
	and	r3, r3, #3
	and	r3, r3, #255
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	cmp	r3, #5
	beq	.L428
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	cmp	r3, #6
	beq	.L428
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	cmp	r3, #8
	beq	.L428
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	cmp	r3, #11
	bne	.L429
.L428:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-48]
	str	r2, [r3, #4]
	mov	r3, #0
	b	.L430
.L429:
	ldr	r0, [fp, #-48]
	bl	mbedtls_ssl_read_record
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L431
	ldr	r3, [fp, #-40]
	b	.L430
.L431:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-48]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #108]
	cmp	r3, #22
	beq	.L432
	ldr	r3, .L448+4
	b	.L430
.L432:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #100]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #11
	bne	.L433
	ldr	r3, [fp, #-48]
	ldr	r4, [r3, #144]
	ldr	r0, [fp, #-48]
	bl	mbedtls_ssl_hs_hdr_len
	mov	r3, r0
	add	r3, r3, #6
	cmp	r4, r3
	bcs	.L434
.L433:
	ldr	r3, .L448+8
	b	.L430
.L434:
	ldr	r0, [fp, #-48]
	bl	mbedtls_ssl_hs_hdr_len
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #100]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldr	r2, [fp, #-48]
	ldr	r1, [r2, #100]
	ldr	r2, [fp, #-36]
	add	r2, r2, #2
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #100]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L435
	ldr	r3, [fp, #-48]
	ldr	r4, [r3, #144]
	ldr	r0, [fp, #-48]
	bl	mbedtls_ssl_hs_hdr_len
	mov	r2, r0
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	add	r3, r3, #3
	cmp	r4, r3
	beq	.L436
.L435:
	ldr	r3, .L448+8
	b	.L430
.L436:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #44]
	ldr	r3, [r3, #92]
	cmp	r3, #0
	beq	.L437
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #44]
	ldr	r3, [r3, #92]
	mov	r0, r3
	bl	mbedtls_x509_crt_free
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #44]
	ldr	r3, [r3, #92]
	mov	r0, r3
	bl	mbedtls_free
.L437:
	ldr	r3, [fp, #-48]
	ldr	r4, [r3, #44]
	mov	r1, #312
	mov	r0, #1
	bl	mbedtls_calloc
	mov	r3, r0
	str	r3, [r4, #92]
	ldr	r3, [r4, #92]
	cmp	r3, #0
	bne	.L438
	ldr	r3, .L448+12
	b	.L430
.L438:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #44]
	ldr	r3, [r3, #92]
	mov	r0, r3
	bl	mbedtls_x509_crt_init
	ldr	r3, [fp, #-36]
	add	r3, r3, #3
	str	r3, [fp, #-36]
	b	.L439
.L444:
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #100]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L440
	ldr	r3, .L448+8
	b	.L430
.L440:
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #100]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldr	r2, [fp, #-48]
	ldr	r1, [r2, #100]
	ldr	r2, [fp, #-36]
	add	r2, r2, #2
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	add	r3, r3, #3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	cmp	r3, #127
	bls	.L441
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #144]
	cmp	r2, r3
	bls	.L442
.L441:
	ldr	r3, .L448+8
	b	.L430
.L442:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #44]
	ldr	r0, [r3, #92]
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #100]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	mov	r1, r3
	bl	mbedtls_x509_crt_parse_der
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L443
	ldr	r3, [fp, #-40]
	ldr	r2, .L448+16
	cmp	r3, r2
	beq	.L443
	ldr	r3, [fp, #-40]
	b	.L430
.L443:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-36]
.L439:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #144]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bcc	.L444
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L445
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldr	r3, [r3, #60]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldr	r3, [r3, #64]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L446
	ldr	r3, .L448+20
	b	.L430
.L446:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #44]
	ldr	ip, [r3, #92]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldr	lr, [r3, #52]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #196]
	ldr	r2, [fp, #-48]
	ldr	r2, [r2, #44]
	add	r2, r2, #96
	ldr	r1, [fp, #-48]
	ldr	r1, [r1]
	ldr	r1, [r1, #44]
	ldr	r0, [fp, #-48]
	ldr	r0, [r0]
	ldr	r0, [r0, #48]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	mov	r0, ip
	bl	mbedtls_x509_crt_verify_with_profile
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #44]
	ldr	r0, [r3, #92]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #44]
	add	r3, r3, #96
	ldr	r1, [fp, #-32]
	bl	mbedtls_ssl_check_cert_usage
	mov	r3, r0
	cmp	r3, #0
	beq	.L447
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L447
	ldr	r3, .L448+8
	str	r3, [fp, #-40]
.L447:
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	bne	.L445
	mov	r3, #0
	str	r3, [fp, #-40]
.L445:
	ldr	r3, [fp, #-40]
.L430:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L449:
	.align	2
.L448:
	.word	-28800
	.word	-30464
	.word	-31232
	.word	-32512
	.word	-9774
	.word	-30336
	.size	mbedtls_ssl_parse_certificate, .-mbedtls_ssl_parse_certificate
	.align	2
	.global	mbedtls_ssl_write_change_cipher_spec
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_write_change_cipher_spec, %function
mbedtls_ssl_write_change_cipher_spec:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, #20
	str	r2, [r3, #180]
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #184]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #176]
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_write_record
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L451
	ldr	r3, [fp, #-8]
	b	.L452
.L451:
	mov	r3, #0
.L452:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_write_change_cipher_spec, .-mbedtls_ssl_write_change_cipher_spec
	.align	2
	.global	mbedtls_ssl_parse_change_cipher_spec
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_parse_change_cipher_spec, %function
mbedtls_ssl_parse_change_cipher_spec:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_read_record
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L454
	ldr	r3, [fp, #-8]
	b	.L455
.L454:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #108]
	cmp	r3, #20
	beq	.L456
	ldr	r3, .L463
	b	.L455
.L456:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #112]
	cmp	r3, #1
	bne	.L457
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #100]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L458
.L457:
	ldr	r3, .L463+4
	b	.L455
.L458:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #64]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #52]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #44]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #32]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L459
	ldr	r0, [fp, #-16]
	bl	ssl_dtls_replay_reset
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3, #120]
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-16]
	strh	r2, [r3, #120]	@ movhi
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3, #120]
	cmp	r3, #0
	bne	.L460
	ldr	r3, .L463+8
	b	.L455
.L459:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #84]
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L460:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	cmp	r3, #1
	ble	.L461
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #96]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #64]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #64]
	ldr	r3, [r3, #16]
	sub	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #100]
	b	.L462
.L461:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #96]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #100]
.L462:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	mov	r3, #0
.L455:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L464:
	.align	2
.L463:
	.word	-30464
	.word	-32256
	.word	-27520
	.size	mbedtls_ssl_parse_change_cipher_spec, .-mbedtls_ssl_parse_change_cipher_spec
	.align	2
	.global	mbedtls_ssl_optimize_checksum
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_optimize_checksum, %function
mbedtls_ssl_optimize_checksum:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	cmp	r3, #7
	beq	.L468
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	ldr	r2, .L469
	str	r2, [r3, #72]
	b	.L465
.L468:
	nop
.L465:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L470:
	.align	2
.L469:
	.word	ssl_update_checksum_sha256
	.size	mbedtls_ssl_optimize_checksum, .-mbedtls_ssl_optimize_checksum
	.align	2
	.global	mbedtls_ssl_reset_checksum
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_reset_checksum, %function
mbedtls_ssl_reset_checksum:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	add	r3, r3, #64
	mov	r0, r3
	bl	mbedtls_sha256_free_alt
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	add	r3, r3, #64
	mov	r0, r3
	bl	mbedtls_sha256_init_alt
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	add	r3, r3, #64
	mov	r1, #0
	mov	r0, r3
	bl	mbedtls_sha256_starts_alt
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_reset_checksum, .-mbedtls_ssl_reset_checksum
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_update_checksum_start, %function
ssl_update_checksum_start:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	add	r3, r3, #64
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	mbedtls_sha256_update_alt
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ssl_update_checksum_start, .-ssl_update_checksum_start
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_update_checksum_sha256, %function
ssl_update_checksum_sha256:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	add	r3, r3, #64
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	mbedtls_sha256_update_alt
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ssl_update_checksum_sha256, .-ssl_update_checksum_sha256
	.section	.rodata
	.align	2
.LC10:
	.ascii	"client finished\000"
	.align	2
.LC11:
	.ascii	"server finished\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_calc_finished_tls_sha256, %function
ssl_calc_finished_tls_sha256:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #92
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	ldr	r3, .L479
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #12
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #44]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L475
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #40]
	str	r3, [fp, #-68]
.L475:
	sub	r3, fp, #56
	mov	r0, r3
	bl	mbedtls_sha256_init_alt
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #48]
	add	r2, r3, #64
	sub	r3, fp, #56
	mov	r1, r2
	mov	r0, r3
	bl	mbedtls_sha256_clone_alt
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L476
	ldr	r3, .L479+4
	b	.L477
.L476:
	ldr	r3, .L479+8
.L477:
	str	r3, [fp, #-60]
	sub	r2, fp, #48
	sub	r3, fp, #56
	mov	r1, r2
	mov	r0, r3
	bl	mbedtls_sha256_finish_alt
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #48]
	ldr	r4, [r3, #84]
	ldr	r3, [fp, #-68]
	add	r0, r3, #44
	ldr	r3, [fp, #-64]
	sub	r2, fp, #48
	str	r3, [sp, #8]
	ldr	r3, [fp, #-76]
	str	r3, [sp, #4]
	mov	r3, #32
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-60]
	mov	r1, #48
	blx	r4
	sub	r3, fp, #56
	mov	r0, r3
	bl	mbedtls_sha256_free_alt
	sub	r3, fp, #48
	mov	r1, #32
	mov	r0, r3
	bl	mbedtls_zeroize
	nop
	ldr	r3, .L479
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L478
	bl	__stack_chk_fail
.L478:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L480:
	.align	2
.L479:
	.word	.LC12
	.word	.LC10
	.word	.LC11
	.size	ssl_calc_finished_tls_sha256, .-ssl_calc_finished_tls_sha256
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_handshake_wrapup_free_hs_transform, %function
ssl_handshake_wrapup_free_hs_transform:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	mov	r0, r3
	bl	mbedtls_ssl_handshake_free
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	mov	r0, r3
	bl	mbedtls_free
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #48]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #60]
	cmp	r3, #0
	beq	.L482
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #60]
	mov	r0, r3
	bl	mbedtls_ssl_transform_free
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #60]
	mov	r0, r3
	bl	mbedtls_free
.L482:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #64]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #60]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #64]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ssl_handshake_wrapup_free_hs_transform, .-ssl_handshake_wrapup_free_hs_transform
	.align	2
	.global	mbedtls_ssl_handshake_wrapup
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_handshake_wrapup, %function
mbedtls_ssl_handshake_wrapup:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #204]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	cmp	r3, #0
	beq	.L484
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	mov	r0, r3
	bl	mbedtls_ssl_session_free
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	mov	r0, r3
	bl	mbedtls_free
.L484:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #44]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #40]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #44]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	beq	.L485
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L485
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L485
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #36]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2]
	ldr	r0, [r2, #40]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2, #40]
	mov	r1, r2
	blx	r3
.L485:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L486
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #40]
	cmp	r3, #0
	beq	.L486
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	ssl_set_timer
	b	.L487
.L486:
	ldr	r0, [fp, #-16]
	bl	ssl_handshake_wrapup_free_hs_transform
.L487:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_handshake_wrapup, .-mbedtls_ssl_handshake_wrapup
	.align	2
	.global	mbedtls_ssl_write_finished
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_write_finished, %function
mbedtls_ssl_write_finished:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	cmp	r3, #1
	ble	.L489
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #172]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #64]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #64]
	ldr	r3, [r3, #16]
	sub	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #176]
	b	.L490
.L489:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #172]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #176]
.L490:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #80]
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, #176]
	add	r1, r2, #4
	ldr	r2, [fp, #-24]
	ldr	r2, [r2]
	ldrb	r2, [r2, #88]
	and	r2, r2, #1
	and	r2, r2, #255
	ldr	r0, [fp, #-24]
	blx	r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L491
	mov	r3, #36
	b	.L492
.L491:
	mov	r3, #12
.L492:
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #184]
	ldr	r3, [fp, #-24]
	mov	r2, #22
	str	r2, [r3, #180]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #176]
	mov	r2, #20
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #204]
	cmp	r3, #0
	beq	.L493
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L494
	ldr	r3, [fp, #-24]
	mov	r2, #15
	str	r2, [r3, #4]
	b	.L494
.L493:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3, #4]
.L494:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L495
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, #56]
	str	r2, [r3, #52]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	add	r0, r3, #56
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #160]
	mov	r2, #8
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #160]
	add	r3, r3, #2
	mov	r2, #6
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strb	r3, [fp, #-13]
	b	.L496
.L499:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #160]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	sub	r3, r3, #1
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r2, r2, #1
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L504
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	sub	r3, r3, #1
	strb	r3, [fp, #-13]
.L496:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L499
	b	.L498
.L504:
	nop
.L498:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L500
	ldr	r3, .L505
	b	.L501
.L495:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #160]
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L500:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #64]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #56]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #44]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #36]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L502
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_send_flight_completed
.L502:
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_write_record
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L503
	ldr	r3, [fp, #-8]
	b	.L501
.L503:
	mov	r3, #0
.L501:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L506:
	.align	2
.L505:
	.word	-27520
	.size	mbedtls_ssl_write_finished, .-mbedtls_ssl_write_finished
	.section	.rodata
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mbedtls_ssl_parse_finished
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_parse_finished, %function
mbedtls_ssl_parse_finished:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	ldr	r3, .L519
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #80]
	ldr	r2, [fp, #-40]
	ldr	r2, [r2]
	ldrb	r2, [r2, #88]
	and	r2, r2, #1
	and	r2, r2, #255
	eor	r2, r2, #1
	and	r2, r2, #255
	sub	r1, fp, #28
	ldr	r0, [fp, #-40]
	blx	r3
	ldr	r0, [fp, #-40]
	bl	mbedtls_ssl_read_record
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L508
	ldr	r3, [fp, #-36]
	b	.L517
.L508:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #108]
	cmp	r3, #22
	beq	.L510
	ldr	r3, .L519+4
	b	.L517
.L510:
	mov	r3, #12
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #100]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #20
	bne	.L511
	ldr	r3, [fp, #-40]
	ldr	r4, [r3, #144]
	ldr	r0, [fp, #-40]
	bl	mbedtls_ssl_hs_hdr_len
	mov	r2, r0
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	cmp	r4, r3
	beq	.L512
.L511:
	ldr	r3, .L519+8
	b	.L517
.L512:
	ldr	r3, [fp, #-40]
	ldr	r4, [r3, #100]
	ldr	r0, [fp, #-40]
	bl	mbedtls_ssl_hs_hdr_len
	mov	r3, r0
	add	r3, r4, r3
	sub	r1, fp, #28
	ldr	r2, [fp, #-32]
	mov	r0, r3
	bl	mbedtls_ssl_safer_memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L513
	ldr	r3, .L519+8
	b	.L517
.L513:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #48]
	ldr	r3, [r3, #204]
	cmp	r3, #0
	beq	.L514
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L515
	ldr	r3, [fp, #-40]
	mov	r2, #10
	str	r2, [r3, #4]
	b	.L515
.L514:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-40]
	str	r2, [r3, #4]
.L515:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L516
	ldr	r0, [fp, #-40]
	bl	mbedtls_ssl_recv_flight_completed
.L516:
	mov	r3, #0
.L517:
	ldr	r2, .L519
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L518
	bl	__stack_chk_fail
.L518:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L520:
	.align	2
.L519:
	.word	.LC13
	.word	-30464
	.word	-32384
	.size	mbedtls_ssl_parse_finished, .-mbedtls_ssl_parse_finished
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_handshake_params_init, %function
ssl_handshake_params_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r2, #220
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	ldr	r3, [fp, #-8]
	add	r3, r3, #64
	mov	r0, r3
	bl	mbedtls_sha256_init_alt
	ldr	r3, [fp, #-8]
	add	r3, r3, #64
	mov	r1, #0
	mov	r0, r3
	bl	mbedtls_sha256_starts_alt
	ldr	r3, [fp, #-8]
	ldr	r2, .L522
	str	r2, [r3, #72]
	ldr	r3, [fp, #-8]
	mov	r2, #2
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L523:
	.align	2
.L522:
	.word	ssl_update_checksum_start
	.size	ssl_handshake_params_init, .-ssl_handshake_params_init
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_transform_init, %function
ssl_transform_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r2, #208
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	ldr	r3, [fp, #-8]
	add	r3, r3, #80
	mov	r0, r3
	bl	mbedtls_cipher_init
	ldr	r3, [fp, #-8]
	add	r3, r3, #144
	mov	r0, r3
	bl	mbedtls_cipher_init
	ldr	r3, [fp, #-8]
	add	r3, r3, #56
	mov	r0, r3
	bl	mbedtls_md_init
	ldr	r3, [fp, #-8]
	add	r3, r3, #68
	mov	r0, r3
	bl	mbedtls_md_init
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ssl_transform_init, .-ssl_transform_init
	.align	2
	.global	mbedtls_ssl_session_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_session_init, %function
mbedtls_ssl_session_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r2, #104
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_session_init, .-mbedtls_ssl_session_init
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_handshake_init, %function
ssl_handshake_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #64]
	cmp	r3, #0
	beq	.L527
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #64]
	mov	r0, r3
	bl	mbedtls_ssl_transform_free
.L527:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #44]
	cmp	r3, #0
	beq	.L528
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #44]
	mov	r0, r3
	bl	mbedtls_ssl_session_free
.L528:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	beq	.L529
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	mov	r0, r3
	bl	mbedtls_ssl_handshake_free
.L529:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #64]
	cmp	r3, #0
	bne	.L530
	mov	r1, #208
	mov	r0, #1
	bl	mbedtls_calloc
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #64]
.L530:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #44]
	cmp	r3, #0
	bne	.L531
	mov	r1, #104
	mov	r0, #1
	bl	mbedtls_calloc
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #44]
.L531:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	bne	.L532
	mov	r1, #220
	mov	r0, #1
	bl	mbedtls_calloc
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #48]
.L532:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	beq	.L533
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #64]
	cmp	r3, #0
	beq	.L533
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #44]
	cmp	r3, #0
	bne	.L534
.L533:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	mov	r0, r3
	bl	mbedtls_free
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #64]
	mov	r0, r3
	bl	mbedtls_free
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #44]
	mov	r0, r3
	bl	mbedtls_free
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #48]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #64]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #44]
	ldr	r3, .L539
	b	.L535
.L534:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #44]
	mov	r0, r3
	bl	mbedtls_ssl_session_init
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #64]
	mov	r0, r3
	bl	ssl_transform_init
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	mov	r0, r3
	bl	ssl_handshake_params_init
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L536
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2, #56]
	str	r2, [r3, #52]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L537
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	mov	r2, #0
	strb	r2, [r3, #36]
	b	.L538
.L537:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	mov	r2, #2
	strb	r2, [r3, #36]
.L538:
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	ssl_set_timer
.L536:
	mov	r3, #0
.L535:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L540:
	.align	2
.L539:
	.word	-32512
	.size	ssl_handshake_init, .-ssl_handshake_init
	.align	2
	.global	mbedtls_ssl_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_init, %function
mbedtls_ssl_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r2, #208
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_init, .-mbedtls_ssl_init
	.align	2
	.global	mbedtls_ssl_setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_setup, %function
mbedtls_ssl_setup:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L549
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r1, [fp, #-12]
	mov	r0, #1
	bl	mbedtls_calloc
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #80]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #80]
	cmp	r3, #0
	beq	.L543
	ldr	r1, [fp, #-12]
	mov	r0, #1
	bl	mbedtls_calloc
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #156]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #156]
	cmp	r3, #0
	bne	.L544
.L543:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #80]
	mov	r0, r3
	bl	mbedtls_free
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #80]
	ldr	r3, .L549+4
	b	.L545
.L544:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L546
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #156]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #164]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #156]
	add	r2, r3, #3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #160]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #156]
	add	r2, r3, #11
	ldr	r3, [fp, #-16]
	str	r2, [r3, #168]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #156]
	add	r2, r3, #13
	ldr	r3, [fp, #-16]
	str	r2, [r3, #172]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #156]
	add	r2, r3, #13
	ldr	r3, [fp, #-16]
	str	r2, [r3, #176]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #80]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #88]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #80]
	add	r2, r3, #3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #84]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #80]
	add	r2, r3, #11
	ldr	r3, [fp, #-16]
	str	r2, [r3, #92]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #80]
	add	r2, r3, #13
	ldr	r3, [fp, #-16]
	str	r2, [r3, #96]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #80]
	add	r2, r3, #13
	ldr	r3, [fp, #-16]
	str	r2, [r3, #100]
	b	.L547
.L546:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #156]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #160]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #156]
	add	r2, r3, #8
	ldr	r3, [fp, #-16]
	str	r2, [r3, #164]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #156]
	add	r2, r3, #11
	ldr	r3, [fp, #-16]
	str	r2, [r3, #168]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #156]
	add	r2, r3, #13
	ldr	r3, [fp, #-16]
	str	r2, [r3, #172]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #156]
	add	r2, r3, #13
	ldr	r3, [fp, #-16]
	str	r2, [r3, #176]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #80]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #84]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #80]
	add	r2, r3, #8
	ldr	r3, [fp, #-16]
	str	r2, [r3, #88]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #80]
	add	r2, r3, #11
	ldr	r3, [fp, #-16]
	str	r2, [r3, #92]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #80]
	add	r2, r3, #13
	ldr	r3, [fp, #-16]
	str	r2, [r3, #96]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #80]
	add	r2, r3, #13
	ldr	r3, [fp, #-16]
	str	r2, [r3, #100]
.L547:
	ldr	r0, [fp, #-16]
	bl	ssl_handshake_init
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L548
	ldr	r3, [fp, #-8]
	b	.L545
.L548:
	mov	r3, #0
.L545:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L550:
	.align	2
.L549:
	.word	4413
	.word	-32512
	.size	mbedtls_ssl_setup, .-mbedtls_ssl_setup
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_session_reset_int, %function
ssl_session_reset_int:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #4]
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	ssl_set_timer
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #200]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #104]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #80]
	add	r2, r3, #13
	ldr	r3, [fp, #-16]
	str	r2, [r3, #100]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #108]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #112]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L552
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #116]
.L552:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #124]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strh	r2, [r3, #120]	@ movhi
	ldr	r0, [fp, #-16]
	bl	ssl_dtls_replay_reset
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #144]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #148]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #152]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #156]
	add	r2, r3, #13
	ldr	r3, [fp, #-16]
	str	r2, [r3, #176]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #180]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #184]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #188]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #52]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #56]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #156]
	ldr	r2, .L558
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L553
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #80]
	ldr	r2, .L558
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L553:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #60]
	cmp	r3, #0
	beq	.L554
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #60]
	mov	r0, r3
	bl	mbedtls_ssl_transform_free
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #60]
	mov	r0, r3
	bl	mbedtls_free
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #60]
.L554:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	cmp	r3, #0
	beq	.L555
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	mov	r0, r3
	bl	mbedtls_ssl_session_free
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	mov	r0, r3
	bl	mbedtls_free
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #40]
.L555:
	ldr	r0, [fp, #-16]
	bl	ssl_handshake_init
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L556
	ldr	r3, [fp, #-8]
	b	.L557
.L556:
	mov	r3, #0
.L557:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L559:
	.align	2
.L558:
	.word	4413
	.size	ssl_session_reset_int, .-ssl_session_reset_int
	.align	2
	.global	mbedtls_ssl_session_reset
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_session_reset, %function
mbedtls_ssl_session_reset:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	ssl_session_reset_int
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_session_reset, .-mbedtls_ssl_session_reset
	.align	2
	.global	mbedtls_ssl_conf_endpoint
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_endpoint, %function
mbedtls_ssl_conf_endpoint:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	and	r3, r3, #1
	and	r1, r3, #255
	ldr	r2, [fp, #-8]
	ldrb	r3, [r2, #88]
	and	r1, r1, #1
	bic	r3, r3, #1
	orr	r3, r1, r3
	strb	r3, [r2, #88]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_conf_endpoint, .-mbedtls_ssl_conf_endpoint
	.align	2
	.global	mbedtls_ssl_conf_transport
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_transport, %function
mbedtls_ssl_conf_transport:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	and	r3, r3, #1
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	ldrb	r2, [r1, #88]
	and	r3, r3, #1
	bic	r2, r2, #2
	lsl	r3, r3, #1
	orr	r3, r3, r2
	mov	r2, r3
	strb	r2, [r1, #88]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_conf_transport, .-mbedtls_ssl_conf_transport
	.align	2
	.global	mbedtls_ssl_conf_dtls_anti_replay
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_dtls_anti_replay, %function
mbedtls_ssl_conf_dtls_anti_replay:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r3, r1
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]
	and	r3, r3, #1
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	ldrb	r2, [r1, #89]
	and	r3, r3, #1
	bic	r2, r2, #2
	lsl	r3, r3, #1
	orr	r3, r3, r2
	mov	r2, r3
	strb	r2, [r1, #89]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_conf_dtls_anti_replay, .-mbedtls_ssl_conf_dtls_anti_replay
	.align	2
	.global	mbedtls_ssl_conf_handshake_timeout
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_handshake_timeout, %function
mbedtls_ssl_conf_handshake_timeout:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #76]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #80]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_conf_handshake_timeout, .-mbedtls_ssl_conf_handshake_timeout
	.align	2
	.global	mbedtls_ssl_conf_authmode
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_authmode, %function
mbedtls_ssl_conf_authmode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	and	r3, r3, #3
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	ldrb	r2, [r1, #88]
	and	r3, r3, #3
	bic	r2, r2, #12
	lsl	r3, r3, #2
	orr	r3, r3, r2
	mov	r2, r3
	strb	r2, [r1, #88]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_conf_authmode, .-mbedtls_ssl_conf_authmode
	.align	2
	.global	mbedtls_ssl_conf_verify
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_verify, %function
mbedtls_ssl_conf_verify:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #44]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #48]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_conf_verify, .-mbedtls_ssl_conf_verify
	.align	2
	.global	mbedtls_ssl_conf_rng
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_rng, %function
mbedtls_ssl_conf_rng:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #28]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_conf_rng, .-mbedtls_ssl_conf_rng
	.align	2
	.global	mbedtls_ssl_conf_dbg
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_dbg, %function
mbedtls_ssl_conf_dbg:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #20]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_conf_dbg, .-mbedtls_ssl_conf_dbg
	.align	2
	.global	mbedtls_ssl_set_bio
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_set_bio, %function
mbedtls_ssl_set_bio:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #4]
	str	r2, [r3, #24]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_set_bio, .-mbedtls_ssl_set_bio
	.align	2
	.global	mbedtls_ssl_conf_read_timeout
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_read_timeout, %function
mbedtls_ssl_conf_read_timeout:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #72]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_conf_read_timeout, .-mbedtls_ssl_conf_read_timeout
	.align	2
	.global	mbedtls_ssl_set_timer_cb
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_set_timer_cb, %function
mbedtls_ssl_set_timer_cb:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #68]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #72]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #76]
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	ssl_set_timer
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_set_timer_cb, .-mbedtls_ssl_set_timer_cb
	.align	2
	.global	mbedtls_ssl_set_session
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_set_session, %function
mbedtls_ssl_set_session:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L574
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L574
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #44]
	cmp	r3, #0
	beq	.L574
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L575
.L574:
	ldr	r3, .L578
	b	.L576
.L575:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #44]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	ssl_session_copy
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L577
	ldr	r3, [fp, #-8]
	b	.L576
.L577:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	mov	r2, #1
	str	r2, [r3, #204]
	mov	r3, #0
.L576:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L579:
	.align	2
.L578:
	.word	-28928
	.size	mbedtls_ssl_set_session, .-mbedtls_ssl_set_session
	.align	2
	.global	mbedtls_ssl_conf_ciphersuites
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_ciphersuites, %function
mbedtls_ssl_conf_ciphersuites:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #12]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_conf_ciphersuites, .-mbedtls_ssl_conf_ciphersuites
	.align	2
	.global	mbedtls_ssl_conf_ciphersuites_for_version
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_ciphersuites_for_version, %function
mbedtls_ssl_conf_ciphersuites_for_version:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bne	.L586
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L587
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	bgt	.L587
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-12]
	str	r1, [r3, r2, lsl #2]
	b	.L581
.L586:
	nop
	b	.L581
.L587:
	nop
.L581:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_conf_ciphersuites_for_version, .-mbedtls_ssl_conf_ciphersuites_for_version
	.align	2
	.global	mbedtls_ssl_conf_cert_profile
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_cert_profile, %function
mbedtls_ssl_conf_cert_profile:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #52]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_conf_cert_profile, .-mbedtls_ssl_conf_cert_profile
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_append_key_cert, %function
ssl_append_key_cert:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r1, #12
	mov	r0, #1
	bl	mbedtls_calloc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L590
	ldr	r3, .L596
	b	.L591
.L590:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L592
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L593
.L592:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L594
.L595:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
.L594:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L595
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #8]
.L593:
	mov	r3, #0
.L591:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L597:
	.align	2
.L596:
	.word	-32512
	.size	ssl_append_key_cert, .-ssl_append_key_cert
	.align	2
	.global	mbedtls_ssl_conf_own_cert
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_own_cert, %function
mbedtls_ssl_conf_own_cert:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #56
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	ssl_append_key_cert
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_conf_own_cert, .-mbedtls_ssl_conf_own_cert
	.align	2
	.global	mbedtls_ssl_conf_ca_chain
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_ca_chain, %function
mbedtls_ssl_conf_ca_chain:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #60]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #64]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_conf_ca_chain, .-mbedtls_ssl_conf_ca_chain
	.align	2
	.global	mbedtls_ssl_conf_sig_hashes
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_sig_hashes, %function
mbedtls_ssl_conf_sig_hashes:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #68]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_conf_sig_hashes, .-mbedtls_ssl_conf_sig_hashes
	.align	2
	.global	mbedtls_ssl_set_hostname
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_set_hostname, %function
mbedtls_ssl_set_hostname:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L603
	ldr	r3, .L608
	b	.L604
.L603:
	ldr	r0, [fp, #-20]
	bl	strlen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L605
	ldr	r3, .L608
	b	.L604
.L605:
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	bls	.L606
	ldr	r3, .L608
	b	.L604
.L606:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, #1
	bl	mbedtls_calloc
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #196]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #196]
	cmp	r3, #0
	bne	.L607
	ldr	r3, .L608+4
	b	.L604
.L607:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #196]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #196]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
.L604:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L609:
	.align	2
.L608:
	.word	-28928
	.word	-32512
	.size	mbedtls_ssl_set_hostname, .-mbedtls_ssl_set_hostname
	.align	2
	.global	mbedtls_ssl_conf_max_version
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_max_version, %function
mbedtls_ssl_conf_max_version:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3, #84]
	ldr	r3, [fp, #-16]
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3, #85]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_conf_max_version, .-mbedtls_ssl_conf_max_version
	.align	2
	.global	mbedtls_ssl_conf_min_version
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_min_version, %function
mbedtls_ssl_conf_min_version:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3, #86]
	ldr	r3, [fp, #-16]
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3, #87]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_conf_min_version, .-mbedtls_ssl_conf_min_version
	.align	2
	.global	mbedtls_ssl_conf_max_frag_len
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_max_frag_len, %function
mbedtls_ssl_conf_max_frag_len:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r3, r1
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #4
	bhi	.L613
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	ldr	r2, .L616
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #4096
	bls	.L614
.L613:
	ldr	r3, .L616+4
	b	.L615
.L614:
	ldrb	r3, [fp, #-9]
	and	r3, r3, #7
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	ldrh	r2, [r1, #88]	@ movhi
	and	r3, r3, #7
	bic	r2, r2, #448
	lsl	r3, r3, #6
	orr	r3, r3, r2
	mov	r2, r3	@ movhi
	strh	r2, [r1, #88]	@ movhi
	mov	r3, #0
.L615:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L617:
	.align	2
.L616:
	.word	mfl_code_to_length
	.word	-28928
	.size	mbedtls_ssl_conf_max_frag_len, .-mbedtls_ssl_conf_max_frag_len
	.align	2
	.global	mbedtls_ssl_conf_legacy_renegotiation
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_conf_legacy_renegotiation, %function
mbedtls_ssl_conf_legacy_renegotiation:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	and	r3, r3, #3
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	ldrb	r2, [r1, #88]
	and	r3, r3, #3
	bic	r2, r2, #48
	lsl	r3, r3, #4
	orr	r3, r3, r2
	mov	r2, r3
	strb	r2, [r1, #88]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_conf_legacy_renegotiation, .-mbedtls_ssl_conf_legacy_renegotiation
	.align	2
	.global	mbedtls_ssl_get_bytes_avail
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_get_bytes_avail, %function
mbedtls_ssl_get_bytes_avail:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #104]
	cmp	r3, #0
	beq	.L620
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #112]
	b	.L622
.L620:
	mov	r3, #0
.L622:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_get_bytes_avail, .-mbedtls_ssl_get_bytes_avail
	.align	2
	.global	mbedtls_ssl_get_verify_result
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_get_verify_result, %function
mbedtls_ssl_get_verify_result:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #40]
	cmp	r3, #0
	beq	.L624
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #40]
	ldr	r3, [r3, #96]
	b	.L625
.L624:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #44]
	cmp	r3, #0
	beq	.L626
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #44]
	ldr	r3, [r3, #96]
	b	.L625
.L626:
	mvn	r3, #0
.L625:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_get_verify_result, .-mbedtls_ssl_get_verify_result
	.align	2
	.global	mbedtls_ssl_get_ciphersuite
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_get_ciphersuite, %function
mbedtls_ssl_get_ciphersuite:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L628
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #40]
	cmp	r3, #0
	bne	.L629
.L628:
	mov	r3, #0
	b	.L630
.L629:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #40]
	ldr	r3, [r3]
	mov	r0, r3
	bl	mbedtls_ssl_get_ciphersuite_name
	mov	r3, r0
.L630:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_get_ciphersuite, .-mbedtls_ssl_get_ciphersuite
	.section	.rodata
	.align	2
.LC14:
	.ascii	"DTLSv1.0\000"
	.align	2
.LC15:
	.ascii	"DTLSv1.2\000"
	.align	2
.LC16:
	.ascii	"unknown (DTLS)\000"
	.align	2
.LC17:
	.ascii	"SSLv3.0\000"
	.align	2
.LC18:
	.ascii	"TLSv1.0\000"
	.align	2
.LC19:
	.ascii	"TLSv1.1\000"
	.align	2
.LC20:
	.ascii	"TLSv1.2\000"
	.align	2
.LC21:
	.ascii	"unknown\000"
	.text
	.align	2
	.global	mbedtls_ssl_get_version
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_get_version, %function
mbedtls_ssl_get_version:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L632
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #2
	beq	.L633
	cmp	r3, #3
	beq	.L634
	b	.L643
.L633:
	ldr	r3, .L644
	b	.L636
.L634:
	ldr	r3, .L644+4
	b	.L636
.L643:
	ldr	r3, .L644+8
	b	.L636
.L632:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L637
.L639:
	.word	.L642
	.word	.L641
	.word	.L640
	.word	.L638
.L642:
	ldr	r3, .L644+12
	b	.L636
.L641:
	ldr	r3, .L644+16
	b	.L636
.L640:
	ldr	r3, .L644+20
	b	.L636
.L638:
	ldr	r3, .L644+24
	b	.L636
.L637:
	ldr	r3, .L644+28
.L636:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L645:
	.align	2
.L644:
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	mbedtls_ssl_get_version, .-mbedtls_ssl_get_version
	.align	2
	.global	mbedtls_ssl_get_record_expansion
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_get_record_expansion, %function
mbedtls_ssl_get_record_expansion:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #56]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L647
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_hdr_len
	mov	r3, r0
	b	.L648
.L647:
	ldr	r3, [fp, #-16]
	add	r3, r3, #80
	mov	r0, r3
	bl	mbedtls_cipher_get_cipher_mode
	mov	r3, r0
	cmp	r3, #2
	beq	.L649
	cmp	r3, #2
	bcc	.L650
	sub	r3, r3, #6
	cmp	r3, #2
	bhi	.L650
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-20]
	b	.L651
.L649:
	ldr	r3, [fp, #-16]
	ldr	r4, [r3, #20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #80
	mov	r0, r3
	bl	mbedtls_cipher_get_block_size
	mov	r3, r0
	add	r3, r4, r3
	str	r3, [fp, #-20]
	b	.L651
.L650:
	ldr	r3, .L652
	b	.L648
.L651:
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_hdr_len
	mov	r2, r0
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
.L648:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L653:
	.align	2
.L652:
	.word	-27648
	.size	mbedtls_ssl_get_record_expansion, .-mbedtls_ssl_get_record_expansion
	.align	2
	.global	mbedtls_ssl_get_max_frag_len
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_get_max_frag_len, %function
mbedtls_ssl_get_max_frag_len:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrh	r3, [r3, #88]
	lsr	r3, r3, #6
	and	r3, r3, #7
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, .L657
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	beq	.L655
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	ldrb	r3, [r3, #100]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L657
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bls	.L655
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	ldrb	r3, [r3, #100]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L657
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-8]
.L655:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L658:
	.align	2
.L657:
	.word	mfl_code_to_length
	.size	mbedtls_ssl_get_max_frag_len, .-mbedtls_ssl_get_max_frag_len
	.align	2
	.global	mbedtls_ssl_get_peer_cert
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_get_peer_cert, %function
mbedtls_ssl_get_peer_cert:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L660
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #40]
	cmp	r3, #0
	bne	.L661
.L660:
	mov	r3, #0
	b	.L662
.L661:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #40]
	ldr	r3, [r3, #92]
.L662:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_get_peer_cert, .-mbedtls_ssl_get_peer_cert
	.align	2
	.global	mbedtls_ssl_get_session
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_get_session, %function
mbedtls_ssl_get_session:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L664
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L664
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #40]
	cmp	r3, #0
	beq	.L664
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L665
.L664:
	ldr	r3, .L667
	b	.L666
.L665:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #40]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	ssl_session_copy
	mov	r3, r0
.L666:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L668:
	.align	2
.L667:
	.word	-28928
	.size	mbedtls_ssl_get_session, .-mbedtls_ssl_get_session
	.align	2
	.global	mbedtls_ssl_handshake_step
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_handshake_step, %function
mbedtls_ssl_handshake_step:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L674
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L670
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L671
.L670:
	ldr	r3, .L674+4
	b	.L672
.L671:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L673
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_handshake_client_step
	str	r0, [fp, #-8]
.L673:
	ldr	r3, [fp, #-8]
.L672:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L675:
	.align	2
.L674:
	.word	-28800
	.word	-28928
	.size	mbedtls_ssl_handshake_step, .-mbedtls_ssl_handshake_step
	.align	2
	.global	mbedtls_ssl_handshake
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_handshake, %function
mbedtls_ssl_handshake:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L677
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L680
.L677:
	ldr	r3, .L684
	b	.L679
.L682:
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_handshake_step
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L683
.L680:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #16
	bne	.L682
	b	.L681
.L683:
	nop
.L681:
	ldr	r3, [fp, #-8]
.L679:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L685:
	.align	2
.L684:
	.word	-28928
	.size	mbedtls_ssl_handshake, .-mbedtls_ssl_handshake
	.align	2
	.global	mbedtls_ssl_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_read, %function
mbedtls_ssl_read:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L687
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L688
.L687:
	ldr	r3, .L704
	b	.L689
.L688:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L690
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_flush_output
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L691
	ldr	r3, [fp, #-12]
	b	.L689
.L691:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	beq	.L690
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	ldrb	r3, [r3, #36]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L690
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_resend
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L690
	ldr	r3, [fp, #-12]
	b	.L689
.L690:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	cmp	r3, #16
	beq	.L692
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_handshake
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #27392
	bne	.L693
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L692
.L693:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L692
	ldr	r3, [fp, #-12]
	b	.L689
.L692:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #104]
	cmp	r3, #0
	bne	.L694
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #76]
	cmp	r3, #0
	beq	.L695
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #76]
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, #68]
	mov	r0, r2
	blx	r3
	mov	r3, r0
	cmn	r3, #1
	bne	.L695
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r3, [r3, #72]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	ssl_set_timer
.L695:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L696
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_read_record
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L696
	ldr	r3, [fp, #-12]
	ldr	r2, .L704+4
	cmp	r3, r2
	bne	.L697
	mov	r3, #0
	b	.L689
.L697:
	ldr	r3, [fp, #-12]
	b	.L689
.L696:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #112]
	cmp	r3, #0
	bne	.L698
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #108]
	cmp	r3, #23
	bne	.L698
	ldr	r0, [fp, #-24]
	bl	mbedtls_ssl_read_record
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L698
	ldr	r3, [fp, #-12]
	ldr	r2, .L704+4
	cmp	r3, r2
	bne	.L699
	mov	r3, #0
	b	.L689
.L699:
	ldr	r3, [fp, #-12]
	b	.L689
.L698:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #108]
	cmp	r3, #21
	bne	.L700
	ldr	r3, .L704+8
	b	.L689
.L700:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #108]
	cmp	r3, #23
	beq	.L701
	ldr	r3, .L704+12
	b	.L689
.L701:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #100]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #104]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	cmp	r3, #16
	bne	.L694
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	ssl_set_timer
.L694:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #112]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	movcc	r3, r2
	movcs	r3, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #104]
	ldr	r2, [fp, #-8]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	memcpy
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #112]
	ldr	r3, [fp, #-8]
	sub	r2, r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #112]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #112]
	cmp	r3, #0
	bne	.L702
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #104]
	b	.L703
.L702:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #104]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #104]
.L703:
	ldr	r3, [fp, #-8]
.L689:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L705:
	.align	2
.L704:
	.word	-28928
	.word	-29312
	.word	-26880
	.word	-30464
	.size	mbedtls_ssl_read, .-mbedtls_ssl_read
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_write_real, %function
ssl_write_real:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_get_max_frag_len
	str	r0, [fp, #-12]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bls	.L707
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrb	r3, [r3, #88]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L708
	ldr	r3, .L713
	b	.L709
.L708:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-24]
.L707:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #188]
	cmp	r3, #0
	beq	.L710
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_flush_output
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L711
	ldr	r3, [fp, #-8]
	b	.L709
.L710:
	ldr	r3, [fp, #-24]
	ldr	r2, .L713+4
	cmp	r3, r2
	bls	.L712
	ldr	r3, .L713
	b	.L709
.L712:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #184]
	ldr	r3, [fp, #-16]
	mov	r2, #23
	str	r2, [r3, #180]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #176]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	memcpy
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_write_record
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L711
	ldr	r3, [fp, #-8]
	b	.L709
.L711:
	ldr	r3, [fp, #-24]
.L709:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L714:
	.align	2
.L713:
	.word	-28928
	.word	4400
	.size	ssl_write_real, .-ssl_write_real
	.align	2
	.global	mbedtls_ssl_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_write, %function
mbedtls_ssl_write:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L716
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L717
.L716:
	ldr	r3, .L720
	b	.L718
.L717:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #16
	beq	.L719
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_handshake
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L719
	ldr	r3, [fp, #-8]
	b	.L718
.L719:
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	ssl_write_real
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
.L718:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L721:
	.align	2
.L720:
	.word	-28928
	.size	mbedtls_ssl_write, .-mbedtls_ssl_write
	.align	2
	.global	mbedtls_ssl_close_notify
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_close_notify, %function
mbedtls_ssl_close_notify:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L723
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L724
.L723:
	ldr	r3, .L728
	b	.L725
.L724:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #188]
	cmp	r3, #0
	beq	.L726
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_flush_output
	mov	r3, r0
	b	.L725
.L726:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #16
	bne	.L727
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	mbedtls_ssl_send_alert_message
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L727
	ldr	r3, [fp, #-8]
	b	.L725
.L727:
	mov	r3, #0
.L725:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L729:
	.align	2
.L728:
	.word	-28928
	.size	mbedtls_ssl_close_notify, .-mbedtls_ssl_close_notify
	.align	2
	.global	mbedtls_ssl_transform_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_transform_free, %function
mbedtls_ssl_transform_free:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L733
	ldr	r3, [fp, #-8]
	add	r3, r3, #80
	mov	r0, r3
	bl	mbedtls_cipher_free
	ldr	r3, [fp, #-8]
	add	r3, r3, #144
	mov	r0, r3
	bl	mbedtls_cipher_free
	ldr	r3, [fp, #-8]
	add	r3, r3, #56
	mov	r0, r3
	bl	mbedtls_md_free
	ldr	r3, [fp, #-8]
	add	r3, r3, #68
	mov	r0, r3
	bl	mbedtls_md_free
	mov	r1, #208
	ldr	r0, [fp, #-8]
	bl	mbedtls_zeroize
	b	.L730
.L733:
	nop
.L730:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_transform_free, .-mbedtls_ssl_transform_free
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_key_cert_free, %function
ssl_key_cert_free:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L735
.L736:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	mbedtls_free
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
.L735:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L736
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ssl_key_cert_free, .-ssl_key_cert_free
	.align	2
	.global	mbedtls_ssl_handshake_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_handshake_free, %function
mbedtls_ssl_handshake_free:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L740
	ldr	r3, [fp, #-8]
	add	r3, r3, #64
	mov	r0, r3
	bl	mbedtls_sha256_free_alt
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	mov	r0, r3
	bl	mbedtls_free
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #28]
	mov	r0, r3
	bl	mbedtls_free
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #40]
	mov	r0, r3
	bl	ssl_flight_free
	mov	r1, #220
	ldr	r0, [fp, #-8]
	bl	mbedtls_zeroize
	b	.L737
.L740:
	nop
.L737:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_handshake_free, .-mbedtls_ssl_handshake_free
	.align	2
	.global	mbedtls_ssl_session_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_session_free, %function
mbedtls_ssl_session_free:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L745
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #92]
	cmp	r3, #0
	beq	.L744
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #92]
	mov	r0, r3
	bl	mbedtls_x509_crt_free
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #92]
	mov	r0, r3
	bl	mbedtls_free
.L744:
	mov	r1, #104
	ldr	r0, [fp, #-8]
	bl	mbedtls_zeroize
	b	.L741
.L745:
	nop
.L741:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_session_free, .-mbedtls_ssl_session_free
	.align	2
	.global	mbedtls_ssl_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_free, %function
mbedtls_ssl_free:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L755
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #156]
	cmp	r3, #0
	beq	.L749
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #156]
	ldr	r1, .L756
	mov	r0, r3
	bl	mbedtls_zeroize
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #156]
	mov	r0, r3
	bl	mbedtls_free
.L749:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #80]
	cmp	r3, #0
	beq	.L750
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #80]
	ldr	r1, .L756
	mov	r0, r3
	bl	mbedtls_zeroize
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #80]
	mov	r0, r3
	bl	mbedtls_free
.L750:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #60]
	cmp	r3, #0
	beq	.L751
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #60]
	mov	r0, r3
	bl	mbedtls_ssl_transform_free
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #60]
	mov	r0, r3
	bl	mbedtls_free
.L751:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	beq	.L752
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	mov	r0, r3
	bl	mbedtls_ssl_handshake_free
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #64]
	mov	r0, r3
	bl	mbedtls_ssl_transform_free
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #44]
	mov	r0, r3
	bl	mbedtls_ssl_session_free
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	mov	r0, r3
	bl	mbedtls_free
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #64]
	mov	r0, r3
	bl	mbedtls_free
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #44]
	mov	r0, r3
	bl	mbedtls_free
.L752:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	cmp	r3, #0
	beq	.L753
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	mov	r0, r3
	bl	mbedtls_ssl_session_free
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	mov	r0, r3
	bl	mbedtls_free
.L753:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #196]
	cmp	r3, #0
	beq	.L754
	ldr	r3, [fp, #-16]
	ldr	r4, [r3, #196]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #196]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	mbedtls_zeroize
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #196]
	mov	r0, r3
	bl	mbedtls_free
.L754:
	mov	r1, #208
	ldr	r0, [fp, #-16]
	bl	mbedtls_zeroize
	b	.L746
.L755:
	nop
.L746:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L757:
	.align	2
.L756:
	.word	4413
	.size	mbedtls_ssl_free, .-mbedtls_ssl_free
	.align	2
	.global	mbedtls_ssl_config_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_config_init, %function
mbedtls_ssl_config_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r2, #92
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_config_init, .-mbedtls_ssl_config_init
	.data
	.align	2
	.type	ssl_preset_default_hashes, %object
	.size	ssl_preset_default_hashes, 16
ssl_preset_default_hashes:
	.word	6
	.word	4
	.word	3
	.word	0
	.text
	.align	2
	.global	mbedtls_ssl_config_defaults
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_config_defaults, %function
mbedtls_ssl_config_defaults:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	mbedtls_ssl_conf_endpoint
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	mbedtls_ssl_conf_transport
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L760
	ldr	r2, [fp, #-8]
	ldrb	r3, [r2, #88]
	bic	r3, r3, #4
	orr	r3, r3, #8
	strb	r3, [r2, #88]
.L760:
	ldr	r2, [fp, #-8]
	ldrb	r3, [r2, #89]
	orr	r3, r3, #2
	strb	r3, [r2, #89]
	ldr	r3, [fp, #-8]
	mov	r2, #1000
	str	r2, [r3, #76]
	ldr	r3, [fp, #-8]
	ldr	r2, .L763
	str	r2, [r3, #80]
	ldr	r3, [fp, #-8]
	mov	r2, #3
	strb	r2, [r3, #86]
	ldr	r3, [fp, #-8]
	mov	r2, #3
	strb	r2, [r3, #87]
	ldr	r3, [fp, #-8]
	mov	r2, #3
	strb	r2, [r3, #84]
	ldr	r3, [fp, #-8]
	mov	r2, #3
	strb	r2, [r3, #85]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L761
	ldr	r3, [fp, #-8]
	mov	r2, #2
	strb	r2, [r3, #87]
.L761:
	bl	mbedtls_ssl_list_ciphersuites
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, .L763+4
	str	r2, [r3, #52]
	ldr	r3, [fp, #-8]
	ldr	r2, .L763+8
	str	r2, [r3, #68]
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L764:
	.align	2
.L763:
	.word	60000
	.word	mbedtls_x509_crt_profile_default
	.word	ssl_preset_default_hashes
	.size	mbedtls_ssl_config_defaults, .-mbedtls_ssl_config_defaults
	.align	2
	.global	mbedtls_ssl_config_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_config_free, %function
mbedtls_ssl_config_free:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #56]
	mov	r0, r3
	bl	ssl_key_cert_free
	mov	r1, #92
	ldr	r0, [fp, #-8]
	bl	mbedtls_zeroize
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_config_free, .-mbedtls_ssl_config_free
	.align	2
	.global	mbedtls_ssl_sig_from_pk
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_sig_from_pk, %function
mbedtls_ssl_sig_from_pk:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	mbedtls_pk_can_do
	mov	r3, r0
	cmp	r3, #0
	beq	.L767
	mov	r3, #1
	b	.L768
.L767:
	mov	r3, #0
.L768:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mbedtls_ssl_sig_from_pk, .-mbedtls_ssl_sig_from_pk
	.align	2
	.global	mbedtls_ssl_pk_alg_from_sig
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_pk_alg_from_sig, %function
mbedtls_ssl_pk_alg_from_sig:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L770
	mov	r3, #1
	b	.L771
.L770:
	mov	r3, #0
.L771:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_pk_alg_from_sig, .-mbedtls_ssl_pk_alg_from_sig
	.align	2
	.global	mbedtls_ssl_md_alg_from_hash
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_md_alg_from_hash, %function
mbedtls_ssl_md_alg_from_hash:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L773
.L775:
	.word	.L778
	.word	.L777
	.word	.L776
	.word	.L774
.L778:
	mov	r3, #3
	b	.L779
.L777:
	mov	r3, #4
	b	.L779
.L776:
	mov	r3, #5
	b	.L779
.L774:
	mov	r3, #6
	b	.L779
.L773:
	mov	r3, #0
.L779:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_md_alg_from_hash, .-mbedtls_ssl_md_alg_from_hash
	.align	2
	.global	mbedtls_ssl_hash_from_md_alg
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_hash_from_md_alg, %function
mbedtls_ssl_hash_from_md_alg:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #3
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L781
.L783:
	.word	.L786
	.word	.L785
	.word	.L784
	.word	.L782
.L786:
	mov	r3, #1
	b	.L787
.L785:
	mov	r3, #2
	b	.L787
.L784:
	mov	r3, #3
	b	.L787
.L782:
	mov	r3, #4
	b	.L787
.L781:
	mov	r3, #0
.L787:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_hash_from_md_alg, .-mbedtls_ssl_hash_from_md_alg
	.align	2
	.global	mbedtls_ssl_check_sig_hash
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_check_sig_hash, %function
mbedtls_ssl_check_sig_hash:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #68]
	cmp	r3, #0
	bne	.L789
	mvn	r3, #0
	b	.L790
.L789:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #68]
	str	r3, [fp, #-8]
	b	.L791
.L793:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L792
	mov	r3, #0
	b	.L790
.L792:
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	str	r3, [fp, #-8]
.L791:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L793
	mvn	r3, #0
.L790:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_check_sig_hash, .-mbedtls_ssl_check_sig_hash
	.align	2
	.global	mbedtls_ssl_check_cert_usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_check_cert_usage, %function
mbedtls_ssl_check_cert_usage:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_check_cert_usage, .-mbedtls_ssl_check_cert_usage
	.align	2
	.global	mbedtls_ssl_write_version
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_write_version, %function
mbedtls_ssl_write_version:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L797
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bne	.L798
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L798:
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	sub	r3, r3, #2
	and	r3, r3, #255
	mvn	r3, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	rsb	r2, r2, #0
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L800
.L797:
	ldr	r3, [fp, #-8]
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-12]
	and	r2, r2, #255
	strb	r2, [r3]
.L800:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_write_version, .-mbedtls_ssl_write_version
	.align	2
	.global	mbedtls_ssl_read_version
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_read_version, %function
mbedtls_ssl_read_version:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L802
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	rsb	r3, r3, #256
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	rsb	r2, r3, #256
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L804
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	b	.L804
.L802:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	str	r2, [r3]
.L804:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mbedtls_ssl_read_version, .-mbedtls_ssl_read_version
	.align	2
	.global	mbedtls_ssl_set_calc_verify_md
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_ssl_set_calc_verify_md, %function
mbedtls_ssl_set_calc_verify_md:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #3
	beq	.L806
	ldr	r3, .L810
	b	.L807
.L806:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	bne	.L808
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	ldr	r2, .L810+4
	str	r2, [r3, #76]
	nop
	mov	r3, #0
	b	.L807
.L808:
	ldr	r3, .L810
.L807:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L811:
	.align	2
.L810:
	.word	-26112
	.word	ssl_calc_verify_tls_sha256
	.size	mbedtls_ssl_set_calc_verify_md, .-mbedtls_ssl_set_calc_verify_md
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
