	.file	"extr_ssl_tls.c_ssl_check_ctr_renegotiate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"record counter limit reached: renegotiate"
	.text
	.p2align 4
	.type	ssl_check_ctr_renegotiate, @function
ssl_check_ctr_renegotiate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	ssl_ep_len@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR MBEDTLS_SSL_HANDSHAKE_OVER[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L3
	mov	rax, QWORD PTR MBEDTLS_SSL_RENEGOTIATION_PENDING[rip]
	cmp	QWORD PTR 8[rbp], rax
	je	.L3
	mov	rax, QWORD PTR 16[rbp]
	mov	rcx, QWORD PTR MBEDTLS_SSL_RENEGOTIATION_DISABLED[rip]
	cmp	QWORD PTR [rax], rcx
	je	.L3
	mov	rsi, QWORD PTR 8[rax]
	mov	rdi, QWORD PTR 32[rbp]
	mov	r12d, 8
	sub	r12d, ebx
	add	rsi, rbx
	add	rdi, rbx
	mov	edx, r12d
	call	memcmp@PLT
	mov	edx, r12d
	mov	r13d, eax
	mov	rax, QWORD PTR 16[rbp]
	mov	rsi, QWORD PTR 8[rax]
	add	rsi, rbx
	add	rbx, QWORD PTR 24[rbp]
	mov	rdi, rbx
	call	memcmp@PLT
	test	r13d, r13d
	jg	.L6
	test	eax, eax
	jle	.L3
.L6:
	mov	edi, 1
	lea	rsi, .LC0[rip]
	call	MBEDTLS_SSL_DEBUG_MSG@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mbedtls_ssl_renegotiate@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ssl_check_ctr_renegotiate, .-ssl_check_ctr_renegotiate
	.comm	MBEDTLS_SSL_RENEGOTIATION_PENDING,8,8
	.comm	MBEDTLS_SSL_RENEGOTIATION_DISABLED,8,8
	.comm	MBEDTLS_SSL_HANDSHAKE_OVER,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ssl_tls.c_ssl_check_ctr_renegotiate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"record counter limit reached: renegotiate\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_check_ctr_renegotiate, %function
ssl_check_ctr_renegotiate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	ssl_ep_len
	ldr	r3, .L8
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L3
	ldr	r3, .L8+4
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L3
	ldr	r3, [r4, #8]
	ldr	r2, .L8+8
	ldr	r1, [r3]
	ldr	r2, [r2]
	cmp	r1, r2
	beq	.L3
	mov	r5, r0
	ldr	r1, [r3, #4]
	ldr	r0, [r4, #16]
	rsb	r6, r5, #8
	add	r1, r5, r1
	mov	r2, r6
	add	r0, r5, r0
	bl	memcmp
	mov	r3, r0
	ldr	r2, [r4, #8]
	ldr	r0, [r4, #12]
	ldr	r1, [r2, #4]
	add	r0, r5, r0
	add	r1, r5, r1
	mov	r2, r6
	mov	r5, r3
	bl	memcmp
	cmp	r5, #0
	cmple	r0, #0
	bgt	.L7
.L3:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L7:
	mov	r0, #1
	ldr	r1, .L8+12
	bl	MBEDTLS_SSL_DEBUG_MSG
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	mbedtls_ssl_renegotiate
.L9:
	.align	2
.L8:
	.word	MBEDTLS_SSL_HANDSHAKE_OVER
	.word	MBEDTLS_SSL_RENEGOTIATION_PENDING
	.word	MBEDTLS_SSL_RENEGOTIATION_DISABLED
	.word	.LC0
	.size	ssl_check_ctr_renegotiate, .-ssl_check_ctr_renegotiate
	.comm	MBEDTLS_SSL_RENEGOTIATION_PENDING,4,4
	.comm	MBEDTLS_SSL_RENEGOTIATION_DISABLED,4,4
	.comm	MBEDTLS_SSL_HANDSHAKE_OVER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
