	.file	"extr_rack.c_rack_do_fin_wait_2.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rack_do_fin_wait_2, @function
rack_do_fin_wait_2:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	mov	rdi, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	mov	rsi, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 12[rsp], r9d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 16[rsp], 0
	mov	DWORD PTR 20[rsp], 0
	call	ctf_calc_rwin@PLT
	mov	eax, DWORD PTR 112[rsp]
	test	DWORD PTR TH_RST[rip], eax
	jne	.L2
	cmp	QWORD PTR 40[r12], 0
	jne	.L51
.L3:
	test	DWORD PTR TH_SYN[rip], eax
	jne	.L52
	mov	eax, DWORD PTR [rbx]
	lea	r15, 16[rsp]
	test	DWORD PTR TOF_TS[rip], eax
	je	.L6
	mov	rsi, QWORD PTR 24[r12]
	lea	r15, 16[rsp]
	test	rsi, rsi
	jne	.L53
.L6:
	push	r15
	.cfi_def_cfa_offset 104
	mov	rcx, r12
	mov	rdx, rbp
	mov	rsi, r14
	mov	rdi, rbx
	lea	rax, 20[rsp]
	push	rax
	.cfi_def_cfa_offset 112
	lea	r9, 128[rsp]
	lea	r8, 112[rsp]
	call	ctf_drop_checks@PLT
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	test	rax, rax
	jne	.L48
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR SS_NOFDREF[rip], eax
	jne	.L8
.L11:
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR TOF_TS[rip], eax
	jne	.L54
.L12:
	mov	ecx, DWORD PTR 112[rsp]
	test	DWORD PTR TH_ACK[rip], ecx
	jne	.L13
	mov	r8d, DWORD PTR 4[r12]
	test	DWORD PTR TF_NEEDSYN[rip], r8d
	jne	.L55
	and	r8d, DWORD PTR TF_ACKNOW[rip]
	je	.L15
	mov	r8d, DWORD PTR 96[rsp]
	mov	r9, r15
	mov	rdx, rbp
	mov	rsi, r12
	mov	rdi, r14
	call	ctf_do_dropafterack@PLT
	mov	rax, QWORD PTR 16[r12]
	add	DWORD PTR [rax], 1
.L48:
	mov	r8d, DWORD PTR 16[rsp]
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L56
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L51:
	.cfi_restore_state
	test	DWORD PTR TH_FIN[rip], eax
	je	.L3
.L2:
	mov	rcx, r12
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r14
	call	ctf_process_rst@PLT
	mov	r8d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 96[rsp]
	test	eax, eax
	je	.L11
	mov	r8, r13
	mov	rcx, rbp
	lea	rdx, 96[rsp]
	mov	rsi, r12
	mov	rdi, r14
	call	rack_check_data_after_close@PLT
	mov	r8d, 1
	test	rax, rax
	je	.L11
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L53:
	mov	rdi, QWORD PTR 8[rbx]
	call	TSTMP_LT@PLT
	test	rax, rax
	je	.L6
	mov	r8d, DWORD PTR 112[rsp]
	mov	ecx, DWORD PTR 96[rsp]
	mov	r9, r15
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, r14
	call	ctf_ts_check@PLT
	test	rax, rax
	je	.L6
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L52:
	lea	rcx, 16[rsp]
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, r14
	call	ctf_challenge_ack@PLT
	mov	r8d, DWORD PTR 16[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	push	r15
	.cfi_def_cfa_offset 104
	mov	r8, rbx
	mov	rdx, r13
	mov	rsi, rbp
	push	rcx
	.cfi_def_cfa_offset 112
	mov	rdi, r14
	mov	rcx, r12
	lea	rax, 36[rsp]
	push	rax
	.cfi_def_cfa_offset 120
	mov	eax, DWORD PTR 120[rsp]
	push	rax
	.cfi_def_cfa_offset 128
	mov	r9d, DWORD PTR 136[rsp]
	call	rack_process_ack@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 96
	test	rax, rax
	jne	.L48
	lea	rdi, 4[r13]
	call	sbavail@PLT
	test	rax, rax
	je	.L17
	mov	rdi, r12
	call	rack_progress_timeout_check@PLT
	test	rax, rax
	je	.L17
	mov	edi, DWORD PTR 8[r12]
	mov	esi, DWORD PTR ETIMEDOUT[rip]
	call	tcp_set_inp_to_drop@PLT
	mov	r8d, DWORD PTR 96[rsp]
	mov	rdx, rbp
	mov	rsi, r12
	mov	ecx, DWORD PTR BANDLIM_RST_OPENPORT[rip]
	mov	rdi, r14
	call	ctf_do_dropwithreset@PLT
	mov	r8d, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L54:
	mov	esi, DWORD PTR [r12]
	mov	edi, DWORD PTR 0[rbp]
	call	SEQ_LEQ@PLT
	test	rax, rax
	je	.L12
	xor	esi, esi
	mov	eax, DWORD PTR TH_SYN[rip]
	or	eax, DWORD PTR TH_FIN[rip]
	test	DWORD PTR 112[rsp], eax
	mov	edi, DWORD PTR [r12]
	setne	sil
	mov	eax, DWORD PTR 96[rsp]
	add	eax, DWORD PTR 0[rbp]
	add	esi, eax
	call	SEQ_LEQ@PLT
	test	rax, rax
	je	.L12
	xor	eax, eax
	call	tcp_ts_getticks@PLT
	mov	DWORD PTR 32[r12], eax
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 24[r12], rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	xor	esi, esi
	mov	rdi, r14
	mov	DWORD PTR 8[rsp], r8d
	call	ctf_do_drop@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L55:
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	eax, DWORD PTR 128[rsp]
	push	rax
	.cfi_def_cfa_offset 112
	push	rcx
	.cfi_def_cfa_offset 120
.L49:
	mov	eax, DWORD PTR 128[rsp]
	mov	rcx, r12
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r14
	push	rax
	.cfi_def_cfa_offset 128
	mov	r8d, DWORD PTR 44[rsp]
	mov	r9d, DWORD PTR 128[rsp]
	call	rack_process_data@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 96
	mov	r8d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	sub	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 104
	mov	eax, DWORD PTR 128[rsp]
	push	rax
	.cfi_def_cfa_offset 112
	mov	eax, DWORD PTR 128[rsp]
	push	rax
	.cfi_def_cfa_offset 120
	jmp	.L49
.L56:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rack_do_fin_wait_2, .-rack_do_fin_wait_2
	.comm	TOF_TS,4,4
	.comm	TH_SYN,4,4
	.comm	TH_RST,4,4
	.comm	TH_FIN,4,4
	.comm	TH_ACK,4,4
	.comm	TF_NEEDSYN,4,4
	.comm	TF_ACKNOW,4,4
	.comm	SS_NOFDREF,4,4
	.comm	ETIMEDOUT,4,4
	.comm	BANDLIM_RST_OPENPORT,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_rack.c_rack_do_fin_wait_2.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rack_do_fin_wait_2, %function
rack_do_fin_wait_2:
	@ args = 24, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r3
	mov	r3, #0
	mov	r5, r2
	mov	r7, r0
	mov	r0, r2
	ldr	r2, .L64
	sub	sp, sp, #44
	mov	r6, r1
	mov	r1, r4
	ldr	r2, [r2]
	str	r2, [sp, #36]
	mov	r2,#0
	ldr	r8, [sp, #80]
	str	r3, [sp, #28]
	str	r3, [sp, #32]
	bl	ctf_calc_rwin
	ldr	r2, .L64+4
	ldr	r3, [sp, #96]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L2
	ldr	r2, [r4, #24]
	cmp	r2, #0
	bne	.L59
.L3:
	ldr	r10, .L64+8
	ldr	r2, [r10]
	tst	r3, r2
	bne	.L60
	ldr	r9, .L64+12
	ldr	r2, [r8]
	ldr	r3, [r9]
	tst	r2, r3
	beq	.L55
	ldr	r1, [r4, #16]
	cmp	r1, #0
	bne	.L51
.L55:
	add	fp, sp, #28
.L6:
	add	r3, sp, #96
	add	r2, sp, #84
	str	r3, [sp, #4]
	add	r3, sp, #88
	str	r2, [sp, #8]
	str	r3, [sp]
	mov	r2, r6
	mov	r3, r4
	mov	r1, r7
	mov	r0, r8
	str	fp, [sp, #12]
	bl	ctf_drop_checks
	cmp	r0, #0
	bne	.L57
	ldr	r3, .L64+16
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L8
.L11:
	ldr	r3, [r9]
	ldr	r2, [r8]
	tst	r2, r3
	bne	.L61
.L12:
	ldr	r2, .L64+20
	ldr	r3, [sp, #96]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L13
	ldr	r2, .L64+24
	ldr	r0, [r4, #4]
	ldr	r2, [r2]
	tst	r0, r2
	bne	.L62
	ldr	r2, .L64+28
	ldr	r5, [r2]
	ands	r5, r0, r5
	beq	.L15
	ldr	r1, [sp, #88]
	mov	r2, r6
	str	r1, [sp]
	mov	r0, r7
	mov	r1, r4
	str	fp, [sp, #4]
	bl	ctf_do_dropafterack
	ldr	r2, [r4, #12]
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
.L57:
	ldr	r5, [sp, #28]
	b	.L1
.L59:
	ldr	r2, .L64+32
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L3
.L2:
	mov	r2, r5
	mov	r3, r4
	mov	r1, r6
	mov	r0, r7
	bl	ctf_process_rst
	mov	r5, r0
.L1:
	ldr	r3, .L64
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L63
	mov	r0, r5
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	ldr	r3, [sp, #88]
	cmp	r3, #0
	beq	.L11
	mov	r3, r6
	mov	r1, r4
	mov	r0, r7
	str	r5, [sp]
	add	r2, sp, #88
	bl	rack_check_data_after_close
	cmp	r0, #0
	beq	.L11
	mov	r5, #1
	b	.L1
.L60:
	mov	r2, r4
	mov	r1, r6
	mov	r0, r7
	add	r3, sp, #28
	bl	ctf_challenge_ack
	ldr	r5, [sp, #28]
	b	.L1
.L51:
	ldr	r0, [r8, #4]
	bl	TSTMP_LT
	cmp	r0, #0
	beq	.L55
	ldr	r3, [sp, #96]
	add	fp, sp, #28
	stm	sp, {r3, fp}
	mov	r2, r4
	mov	r1, r6
	mov	r0, r7
	ldr	r3, [sp, #88]
	bl	ctf_ts_check
	cmp	r0, #0
	beq	.L6
	b	.L57
.L13:
	ldr	r1, [sp, #88]
	str	r3, [sp, #16]
	ldr	r3, [sp, #92]
	add	r2, sp, #32
	str	r3, [sp, #4]
	str	r1, [sp, #8]
	str	r2, [sp, #12]
	mov	r3, r4
	mov	r2, r5
	mov	r1, r6
	mov	r0, r7
	str	fp, [sp, #20]
	str	r8, [sp]
	bl	rack_process_ack
	cmp	r0, #0
	bne	.L57
	add	r0, r5, #4
	bl	sbavail
	cmp	r0, #0
	beq	.L17
	mov	r0, r4
	bl	rack_progress_timeout_check
	cmp	r0, #0
	beq	.L17
	ldr	r3, .L64+36
	ldr	r0, [r4, #8]
	ldr	r1, [r3]
	bl	tcp_set_inp_to_drop
	ldr	ip, [sp, #88]
	ldr	r3, .L64+40
	mov	r2, r6
	ldr	r3, [r3]
	mov	r1, r4
	mov	r0, r7
	str	ip, [sp]
	bl	ctf_do_dropwithreset
	mov	r5, #1
	b	.L1
.L61:
	ldr	r1, [r4]
	ldr	r0, [r6]
	bl	SEQ_LEQ
	cmp	r0, #0
	beq	.L12
	ldr	r2, .L64+32
	ldr	r3, [r10]
	ldr	r2, [r2]
	ldr	r0, [sp, #96]
	ldr	r1, [r6]
	orr	r3, r3, r2
	ldr	r2, [sp, #88]
	and	r3, r3, r0
	add	r1, r1, r2
	cmp	r3, #0
	addne	r1, r1, #1
	ldr	r0, [r4]
	bl	SEQ_LEQ
	cmp	r0, #0
	beq	.L12
	bl	tcp_ts_getticks
	ldr	r3, [r8, #4]
	str	r0, [r4, #20]
	str	r3, [r4, #16]
	b	.L12
.L15:
	mov	r0, r7
	mov	r1, r5
	bl	ctf_do_drop
	b	.L1
.L62:
	ldr	r2, [sp, #100]
	ldr	lr, [sp, #88]
	ldr	ip, [sp, #84]
	str	r3, [sp, #12]
	ldr	r3, [sp, #92]
	str	r2, [sp, #16]
	str	r3, [sp, #8]
	mov	r2, r5
	mov	r3, r4
	mov	r1, r6
	mov	r0, r7
	stm	sp, {ip, lr}
	bl	rack_process_data
	mov	r5, r0
	b	.L1
.L17:
	ldr	ip, [sp, #96]
	ldr	r3, [sp, #100]
	ldr	lr, [sp, #88]
	str	r3, [sp, #16]
	str	ip, [sp, #12]
	ldr	r3, [sp, #92]
	ldr	ip, [sp, #84]
	mov	r2, r5
	str	r3, [sp, #8]
	mov	r1, r6
	mov	r3, r4
	mov	r0, r7
	stm	sp, {ip, lr}
	bl	rack_process_data
	mov	r5, r0
	b	.L1
.L63:
	bl	__stack_chk_fail
.L65:
	.align	2
.L64:
	.word	.LC0
	.word	TH_RST
	.word	TH_SYN
	.word	TOF_TS
	.word	SS_NOFDREF
	.word	TH_ACK
	.word	TF_NEEDSYN
	.word	TF_ACKNOW
	.word	TH_FIN
	.word	ETIMEDOUT
	.word	BANDLIM_RST_OPENPORT
	.size	rack_do_fin_wait_2, .-rack_do_fin_wait_2
	.comm	TOF_TS,4,4
	.comm	TH_SYN,4,4
	.comm	TH_RST,4,4
	.comm	TH_FIN,4,4
	.comm	TH_ACK,4,4
	.comm	TF_NEEDSYN,4,4
	.comm	TF_ACKNOW,4,4
	.comm	SS_NOFDREF,4,4
	.comm	ETIMEDOUT,4,4
	.comm	BANDLIM_RST_OPENPORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
