	.file	"extr_rack_bbr_common.c_ctf_fixed_maxseg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ctf_fixed_maxseg
	.type	ctf_fixed_maxseg, @function
ctf_fixed_maxseg:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR TF_NOOPT[rip], eax
	je	.L2
	mov	rax, QWORD PTR 8[rdi]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rdi]
	call	TCPS_HAVEESTABLISHED@PLT
	test	rax, rax
	je	.L4
	mov	edi, DWORD PTR [rbx]
	and	edi, DWORD PTR TF_RCVD_TSTMP[rip]
	cmovne	edi, DWORD PTR TCPOLEN_TSTAMP_APPA[rip]
.L5:
	mov	esi, DWORD PTR TCP_MAXOLEN[rip]
	call	min@PLT
	movsx	rdx, eax
	mov	rax, QWORD PTR 8[rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	sub	rax, rdx
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR [rbx]
	mov	edi, DWORD PTR TCPOLEN_TSTAMP_APPA[rip]
	test	DWORD PTR TF_REQ_TSTMP[rip], eax
	jne	.L7
	mov	edx, DWORD PTR TCPOLEN_MAXSEG[rip]
	xor	ecx, ecx
	test	dl, 3
	lea	edi, 3[rdx]
	setne	cl
	test	edx, edx
	cmovns	edi, edx
	sar	edi, 2
	add	edi, ecx
	sal	edi, 2
.L7:
	test	DWORD PTR TF_REQ_SCALE[rip], eax
	je	.L8
	mov	ecx, DWORD PTR TCPOLEN_WINDOW[rip]
	xor	esi, esi
	test	cl, 3
	lea	edx, 3[rcx]
	setne	sil
	test	ecx, ecx
	cmovns	edx, ecx
	sar	edx, 2
	add	edx, esi
	lea	edi, [rdi+rdx*4]
.L8:
	test	DWORD PTR TF_SACK_PERMIT[rip], eax
	je	.L5
	mov	edx, DWORD PTR TCPOLEN_SACK_PERMITTED[rip]
	xor	ecx, ecx
	test	dl, 3
	lea	eax, 3[rdx]
	setne	cl
	test	edx, edx
	cmovns	eax, edx
	sar	eax, 2
	add	eax, ecx
	lea	edi, [rdi+rax*4]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ctf_fixed_maxseg, .-ctf_fixed_maxseg
	.comm	TF_SIGNATURE,4,4
	.comm	TF_SACK_PERMIT,4,4
	.comm	TF_REQ_TSTMP,4,4
	.comm	TF_REQ_SCALE,4,4
	.comm	TF_RCVD_TSTMP,4,4
	.comm	TF_NOOPT,4,4
	.comm	TCP_MAXOLEN,4,4
	.comm	TCPOLEN_WINDOW,4,4
	.comm	TCPOLEN_TSTAMP_APPA,4,4
	.comm	TCPOLEN_SIGNATURE,4,4
	.comm	TCPOLEN_SACK_PERMITTED,4,4
	.comm	TCPOLEN_MAXSEG,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_bbr_common.c_ctf_fixed_maxseg.c"
	.text
	.align	2
	.global	ctf_fixed_maxseg
	.syntax unified
	.arm
	.fpu softvfp
	.type	ctf_fixed_maxseg, %function
ctf_fixed_maxseg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L21
	ldr	r2, [r0]
	ldr	r3, [r3]
	push	{r4, lr}
	tst	r2, r3
	mov	r4, r0
	beq	.L2
	ldr	r0, [r0, #4]
	pop	{r4, pc}
.L2:
	ldr	r0, [r0, #8]
	bl	TCPS_HAVEESTABLISHED
	cmp	r0, #0
	beq	.L4
	ldr	r2, .L21+4
	ldr	r3, [r4]
	ldr	r0, [r2]
	ands	r0, r3, r0
	ldrne	r3, .L21+8
	ldrne	r0, [r3]
.L5:
	ldr	r3, .L21+12
	ldr	r1, [r3]
	bl	min
	ldr	r3, [r4, #4]
	sub	r0, r3, r0
	pop	{r4, pc}
.L4:
	ldr	r2, .L21+16
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L20
	ldr	r2, .L21+20
	ldr	r2, [r2]
	ands	r0, r2, #3
	movne	r0, #1
	add	r1, r2, #3
	cmp	r2, #0
	movlt	r2, r1
	add	r0, r0, r2, asr #2
	lsl	r0, r0, #2
.L7:
	ldr	r2, .L21+24
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L8
	ldr	r2, .L21+28
	ldr	r2, [r2]
	ands	r1, r2, #3
	movne	r1, #1
	add	ip, r2, #3
	cmp	r2, #0
	movlt	r2, ip
	add	r2, r1, r2, asr #2
	add	r0, r0, r2, lsl #2
.L8:
	ldr	r2, .L21+32
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L5
	ldr	r3, .L21+36
	ldr	r3, [r3]
	ands	r2, r3, #3
	movne	r2, #1
	add	r1, r3, #3
	cmp	r3, #0
	movlt	r3, r1
	add	r3, r2, r3, asr #2
	add	r0, r0, r3, lsl #2
	b	.L5
.L20:
	ldr	r2, .L21+8
	ldr	r0, [r2]
	b	.L7
.L22:
	.align	2
.L21:
	.word	TF_NOOPT
	.word	TF_RCVD_TSTMP
	.word	TCPOLEN_TSTAMP_APPA
	.word	TCP_MAXOLEN
	.word	TF_REQ_TSTMP
	.word	TCPOLEN_MAXSEG
	.word	TF_REQ_SCALE
	.word	TCPOLEN_WINDOW
	.word	TF_SACK_PERMIT
	.word	TCPOLEN_SACK_PERMITTED
	.size	ctf_fixed_maxseg, .-ctf_fixed_maxseg
	.comm	TF_SIGNATURE,4,4
	.comm	TF_SACK_PERMIT,4,4
	.comm	TF_REQ_TSTMP,4,4
	.comm	TF_REQ_SCALE,4,4
	.comm	TF_RCVD_TSTMP,4,4
	.comm	TF_NOOPT,4,4
	.comm	TCP_MAXOLEN,4,4
	.comm	TCPOLEN_WINDOW,4,4
	.comm	TCPOLEN_TSTAMP_APPA,4,4
	.comm	TCPOLEN_SIGNATURE,4,4
	.comm	TCPOLEN_SACK_PERMITTED,4,4
	.comm	TCPOLEN_MAXSEG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
