	.file	"extr_tcp_input.c_tcp_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tcp_reset
	.type	tcp_reset, @function
tcp_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	trace_tcp_receive_reset@PLT
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, 129
	je	.L2
	cmp	eax, 130
	je	.L1
	cmp	eax, 128
	je	.L11
	mov	eax, DWORD PTR ECONNRESET[rip]
	mov	DWORD PTR 16[rbp], eax
.L5:
	xor	eax, eax
	call	smp_wmb@PLT
	mov	rdi, rbp
	call	tcp_write_queue_purge@PLT
	mov	rdi, rbp
	call	tcp_done@PLT
	mov	esi, DWORD PTR SOCK_DEAD[rip]
	mov	rdi, rbp
	call	sock_flag@PLT
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	rax
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	eax, DWORD PTR ECONNREFUSED[rip]
	mov	DWORD PTR 16[rbp], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR EPIPE[rip]
	mov	DWORD PTR 16[rbp], eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	tcp_reset, .-tcp_reset
	.comm	SOCK_DEAD,4,4
	.comm	EPIPE,4,4
	.comm	ECONNRESET,4,4
	.comm	ECONNREFUSED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tcp_input.c_tcp_reset.c"
	.text
	.align	2
	.global	tcp_reset
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcp_reset, %function
tcp_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	trace_tcp_receive_reset
	ldr	r3, [r4]
	cmp	r3, #129
	beq	.L2
	cmp	r3, #130
	popeq	{r4, pc}
	cmp	r3, #128
	beq	.L11
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [r4, #8]
.L5:
	bl	smp_wmb
	mov	r0, r4
	bl	tcp_write_queue_purge
	mov	r0, r4
	bl	tcp_done
	ldr	r3, .L12+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	sock_flag
	cmp	r0, #0
	popne	{r4, pc}
	mov	r0, r4
	ldr	r3, [r4, #4]
	pop	{r4, lr}
	bx	r3
.L11:
	ldr	r3, .L12+8
	ldr	r3, [r3]
	str	r3, [r4, #8]
	b	.L5
.L2:
	ldr	r3, .L12+12
	ldr	r3, [r3]
	str	r3, [r4, #8]
	b	.L5
.L13:
	.align	2
.L12:
	.word	ECONNRESET
	.word	SOCK_DEAD
	.word	ECONNREFUSED
	.word	EPIPE
	.size	tcp_reset, .-tcp_reset
	.comm	SOCK_DEAD,4,4
	.comm	EPIPE,4,4
	.comm	ECONNRESET,4,4
	.comm	ECONNREFUSED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
