	.file	"extr_sctp_cc_functions.c_htcp_cong_avoid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	htcp_cong_avoid, @function
htcp_cong_avoid:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rdx, QWORD PTR [rsi]
	cmp	rdx, QWORD PTR 8[rsi]
	jg	.L2
	movsx	rax, DWORD PTR 24[rsi]
	mov	rbx, rax
	add	rax, QWORD PTR 16[rsi]
	cmp	rdx, rax
	jle	.L24
	mov	edi, DWORD PTR sctp_logging_level[rip]
	call	SCTP_BASE_SYSCTL@PLT
	test	DWORD PTR SCTP_CWND_LOGGING_ENABLE[rip], eax
	jne	.L25
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	edi, DWORD PTR sctp_L2_abc_variable[rip]
	mov	r13d, DWORD PTR 28[rsi]
	call	SCTP_BASE_SYSCTL@PLT
	imul	r13d, eax
	cmp	ebx, r13d
	jle	.L4
	mov	edi, DWORD PTR sctp_L2_abc_variable[rip]
	mov	ebx, DWORD PTR 28[rbp]
	call	SCTP_BASE_SYSCTL@PLT
	mov	edi, DWORD PTR sctp_logging_level[rip]
	imul	ebx, eax
	movsx	rbx, ebx
	add	QWORD PTR 0[rbp], rbx
	call	SCTP_BASE_SYSCTL@PLT
	test	DWORD PTR SCTP_CWND_MONITOR_ENABLE[rip], eax
	je	.L6
	mov	edx, DWORD PTR 28[rbp]
	mov	ecx, DWORD PTR SCTP_CWND_LOG_FROM_SS[rip]
	mov	rsi, rbp
	mov	rdi, r12
	call	sctp_log_cwnd@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rsi
	call	measure_rtt@PLT
	mov	esi, DWORD PTR 32[rbp]
	movsx	rcx, DWORD PTR 28[rbp]
	mov	rdi, QWORD PTR 0[rbp]
	mov	eax, esi
	cdq
	idiv	ecx
	imul	eax, DWORD PTR 36[rbp]
	sar	eax, 7
	imul	eax, ecx
	cdqe
	cmp	rax, rdi
	jl	.L9
	add	rcx, rdi
	mov	DWORD PTR 32[rbp], 0
	mov	rsi, rbp
	mov	rdi, r12
	mov	QWORD PTR 0[rbp], rcx
	call	sctp_enforce_cwnd_limit@PLT
	lea	rdi, 36[rbp]
	call	htcp_alpha_update@PLT
	mov	edi, DWORD PTR sctp_logging_level[rip]
	call	SCTP_BASE_SYSCTL@PLT
	test	DWORD PTR SCTP_CWND_MONITOR_ENABLE[rip], eax
	je	.L11
	mov	edx, DWORD PTR 28[rbp]
	mov	ecx, DWORD PTR SCTP_CWND_LOG_FROM_CA[rip]
	mov	rsi, rbp
	mov	rdi, r12
	call	sctp_log_cwnd@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L4:
	movsx	rax, DWORD PTR 24[rbp]
	add	QWORD PTR 0[rbp], rax
	mov	edi, DWORD PTR sctp_logging_level[rip]
	call	SCTP_BASE_SYSCTL@PLT
	test	DWORD PTR SCTP_CWND_MONITOR_ENABLE[rip], eax
	jne	.L26
.L6:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, rbp
	mov	rdi, r12
	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	sctp_enforce_cwnd_limit@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	add	esi, DWORD PTR 24[rbp]
	mov	edi, DWORD PTR sctp_logging_level[rip]
	mov	DWORD PTR 32[rbp], esi
	call	SCTP_BASE_SYSCTL@PLT
	test	DWORD PTR SCTP_CWND_LOGGING_ENABLE[rip], eax
	jne	.L27
.L11:
	mov	eax, DWORD PTR 28[rbp]
	mov	DWORD PTR 40[rbp], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	edx, DWORD PTR 24[rbp]
	mov	ecx, DWORD PTR SCTP_CWND_LOG_NOADV_SS[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	sctp_log_cwnd@PLT
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	edx, DWORD PTR 24[rbp]
	mov	ecx, DWORD PTR SCTP_CWND_LOG_FROM_SS[rip]
	mov	rsi, rbp
	mov	rdi, r12
	call	sctp_log_cwnd@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edx, DWORD PTR 24[rbp]
	mov	ecx, DWORD PTR SCTP_CWND_LOG_NOADV_CA[rip]
	mov	rsi, rbp
	mov	rdi, r12
	call	sctp_log_cwnd@PLT
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	htcp_cong_avoid, .-htcp_cong_avoid
	.comm	sctp_logging_level,4,4
	.comm	sctp_L2_abc_variable,4,4
	.comm	SCTP_CWND_MONITOR_ENABLE,4,4
	.comm	SCTP_CWND_LOG_NOADV_SS,4,4
	.comm	SCTP_CWND_LOG_NOADV_CA,4,4
	.comm	SCTP_CWND_LOG_FROM_SS,4,4
	.comm	SCTP_CWND_LOG_FROM_CA,4,4
	.comm	SCTP_CWND_LOGGING_ENABLE,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_sctp_cc_functions.c_htcp_cong_avoid.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	htcp_cong_avoid, %function
htcp_cong_avoid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldm	r1, {r2, r3}
	cmp	r2, r3
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, r0
	bgt	.L2
	ldr	r6, [r1, #12]
	ldr	r3, [r1, #8]
	add	r3, r6, r3
	cmp	r2, r3
	bgt	.L3
	ldr	r8, .L26
	ldr	r7, [r1, #16]
	ldr	r0, [r8]
	bl	SCTP_BASE_SYSCTL
	mul	r7, r0, r7
	cmp	r6, r7
	ble	.L4
	ldr	r0, [r8]
	ldr	r6, [r4, #16]
	bl	SCTP_BASE_SYSCTL
	ldr	r2, [r4]
	ldr	r3, .L26+4
	mla	r6, r0, r6, r2
	ldr	r0, [r3]
	str	r6, [r4]
	bl	SCTP_BASE_SYSCTL
	ldr	r3, .L26+8
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L6
	ldr	r3, .L26+12
	mov	r1, r4
	mov	r0, r5
	ldr	r2, [r4, #16]
	ldr	r3, [r3]
	bl	sctp_log_cwnd
	b	.L6
.L3:
	ldr	r3, .L26+4
	ldr	r0, [r3]
	bl	SCTP_BASE_SYSCTL
	ldr	r3, .L26+16
	ldr	r3, [r3]
	tst	r0, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L26+20
	mov	r0, r5
	mov	r1, r4
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	pop	{r4, r5, r6, r7, r8, lr}
	b	sctp_log_cwnd
.L2:
	mov	r0, r1
	bl	measure_rtt
	ldr	r6, [r4, #16]
	ldr	r7, [r4, #20]
	mov	r1, r6
	mov	r0, r7
	bl	__aeabi_idiv
	ldr	r3, [r4, #24]
	ldr	r1, [r4]
	mul	r0, r3, r0
	asr	r0, r0, #7
	mul	r0, r6, r0
	cmp	r0, r1
	blt	.L9
	mov	r3, #0
	add	r6, r6, r1
	str	r3, [r4, #20]
	mov	r1, r4
	mov	r0, r5
	str	r6, [r4]
	bl	sctp_enforce_cwnd_limit
	add	r0, r4, #24
	bl	htcp_alpha_update
	ldr	r3, .L26+4
	ldr	r0, [r3]
	bl	SCTP_BASE_SYSCTL
	ldr	r3, .L26+8
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L11
	ldr	r3, .L26+24
	mov	r0, r5
	mov	r1, r4
	ldr	r3, [r3]
	ldr	r2, [r4, #16]
	bl	sctp_log_cwnd
	b	.L11
.L4:
	ldr	r3, [r4]
	ldr	r1, [r4, #12]
	ldr	r2, .L26+4
	add	r3, r3, r1
	str	r3, [r4]
	ldr	r0, [r2]
	bl	SCTP_BASE_SYSCTL
	ldr	r3, .L26+8
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L24
.L6:
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	sctp_enforce_cwnd_limit
.L9:
	ldr	r3, [r4, #12]
	ldr	r2, .L26+4
	add	r7, r3, r7
	ldr	r0, [r2]
	str	r7, [r4, #20]
	bl	SCTP_BASE_SYSCTL
	ldr	r3, .L26+16
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L25
.L11:
	ldr	r3, [r4, #16]
	str	r3, [r4, #28]
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	ldr	r3, .L26+12
	mov	r1, r4
	mov	r0, r5
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	bl	sctp_log_cwnd
	b	.L6
.L25:
	ldr	r3, .L26+28
	mov	r0, r5
	mov	r1, r4
	ldr	r3, [r3]
	ldr	r2, [r4, #12]
	bl	sctp_log_cwnd
	b	.L11
.L27:
	.align	2
.L26:
	.word	sctp_L2_abc_variable
	.word	sctp_logging_level
	.word	SCTP_CWND_MONITOR_ENABLE
	.word	SCTP_CWND_LOG_FROM_SS
	.word	SCTP_CWND_LOGGING_ENABLE
	.word	SCTP_CWND_LOG_NOADV_SS
	.word	SCTP_CWND_LOG_FROM_CA
	.word	SCTP_CWND_LOG_NOADV_CA
	.size	htcp_cong_avoid, .-htcp_cong_avoid
	.comm	sctp_logging_level,4,4
	.comm	sctp_L2_abc_variable,4,4
	.comm	SCTP_CWND_MONITOR_ENABLE,4,4
	.comm	SCTP_CWND_LOG_NOADV_SS,4,4
	.comm	SCTP_CWND_LOG_NOADV_CA,4,4
	.comm	SCTP_CWND_LOG_FROM_SS,4,4
	.comm	SCTP_CWND_LOG_FROM_CA,4,4
	.comm	SCTP_CWND_LOGGING_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
