	.file	"extr_bbr.c_bbr_nf_measurement.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bbr_nf_measurement, @function
bbr_nf_measurement:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR [rdi], 0
	je	.L42
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, 1
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR 16[rdi]
	mov	esi, DWORD PTR [rsi]
	mov	DWORD PTR [rsp], edx
	call	TSTMP_GT@PLT
	mov	r8d, DWORD PTR [rsp]
	test	rax, rax
	jne	.L43
.L4:
	mov	eax, DWORD PTR USECS_IN_SECOND[rip]
	mov	r14d, DWORD PTR 20[rbp]
	sub	r14d, DWORD PTR 4[rbx]
	imul	eax, r14d
	cdq
	idiv	r13d
	mov	r15d, eax
	mov	r10d, eax
	test	eax, eax
	je	.L1
	cmp	QWORD PTR 56[rbx], 0
	je	.L6
	cmp	QWORD PTR 64[rbp], 0
	je	.L6
	cmp	QWORD PTR 56[rbp], 0
	je	.L6
	cmp	QWORD PTR 8[rbp], 0
	jne	.L6
	cmp	QWORD PTR 48[rbp], 0
	je	.L6
	mov	edi, DWORD PTR 24[rbp]
	mov	esi, 1
	sub	edi, DWORD PTR 8[rbx]
	mov	DWORD PTR 4[rsp], r8d
	mov	DWORD PTR [rsp], eax
	call	max@PLT
	imul	eax, DWORD PTR 28[rbp]
	test	r14d, r14d
	mov	r10d, DWORD PTR [rsp]
	mov	r11d, eax
	je	.L14
	mov	r8d, DWORD PTR 4[rsp]
	cmp	r8d, 999
	jle	.L14
	mov	ecx, 32
	mov	eax, r15d
	mov	DWORD PTR 12[rsp], r10d
	xor	r9d, r9d
	sar	eax, cl
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	esi, 62
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR USECS_IN_SECOND[rip]
	push	r14
	.cfi_def_cfa_offset 96
	imul	eax, r14d
	push	r11
	.cfi_def_cfa_offset 104
	cdq
	mov	DWORD PTR 32[rsp], r11d
	idiv	r11d
	push	0
	.cfi_def_cfa_offset 112
	push	0
	.cfi_def_cfa_offset 120
	push	0
	.cfi_def_cfa_offset 128
	mov	edx, eax
	mov	r8d, eax
	mov	DWORD PTR 48[rsp], eax
	sar	edx, cl
	mov	ecx, edx
	mov	edx, r12d
	call	bbr_log_type_bbrupd@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 80
	cmp	QWORD PTR 40[rbp], 0
	mov	r11d, DWORD PTR 8[rsp]
	mov	r10d, DWORD PTR 12[rsp]
	je	.L9
	cmp	r15d, DWORD PTR [rsp]
	jl	.L44
.L9:
	mov	eax, DWORD PTR [rsp]
	test	eax, eax
	je	.L6
	cmp	r15d, eax
	jle	.L6
	push	rax
	.cfi_def_cfa_offset 88
	mov	r8d, r11d
	mov	ecx, r14d
	mov	edx, r12d
	push	0
	.cfi_def_cfa_offset 96
	mov	esi, 7
	mov	rdi, rbp
	push	0
	.cfi_def_cfa_offset 104
	push	0
	.cfi_def_cfa_offset 112
	push	0
	.cfi_def_cfa_offset 120
	push	r15
	.cfi_def_cfa_offset 128
	mov	r9d, DWORD PTR 52[rsp]
	call	bbr_log_type_bbrupd@PLT
	mov	r10d, DWORD PTR 48[rsp]
	add	rsp, 48
	.cfi_def_cfa_offset 80
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR 12[rbx]
	test	esi, esi
	jne	.L45
.L10:
	cmp	QWORD PTR 32[rbx], 0
	mov	DWORD PTR 32[rbp], r10d
	jne	.L11
.L12:
	mov	esi, r12d
	mov	rdi, rbp
	call	tcp_bbr_commit_bw@PLT
	mov	eax, DWORD PTR [rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	xor	r9d, r9d
	mov	r8d, r14d
	mov	ecx, r13d
	mov	edx, r12d
	mov	esi, 10
	push	rax
	.cfi_def_cfa_offset 96
	mov	eax, DWORD PTR 16[rbp]
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 104
	push	0
	.cfi_def_cfa_offset 112
	push	0
	.cfi_def_cfa_offset 120
	push	0
	.cfi_def_cfa_offset 128
	call	bbr_log_type_bbrupd@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 80
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L43:
	.cfi_restore_state
	mov	r13d, DWORD PTR 16[rbp]
	sub	r13d, DWORD PTR [rbx]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rdi, 36[rbp]
	mov	DWORD PTR [rsp], r10d
	call	get_filter_value@PLT
	mov	r10d, DWORD PTR [rsp]
	cmp	eax, r10d
	jl	.L12
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L45:
	movsx	rdx, DWORD PTR 24[rbx]
	mov	rax, QWORD PTR 16[rbx]
	mov	DWORD PTR [rsp], r10d
	mov	edi, DWORD PTR -4[rax+rdx*4]
	call	TSTMP_GT@PLT
	mov	r10d, DWORD PTR [rsp]
	test	rax, rax
	je	.L10
	mov	rdx, QWORD PTR 16[rbx]
	movsx	rsi, DWORD PTR 24[rbx]
	mov	rax, QWORD PTR USECS_IN_SECOND[rip]
	imul	eax, DWORD PTR 48[rbx]
	mov	r8d, DWORD PTR -4[rdx+rsi*4]
	mov	edi, DWORD PTR 12[rbx]
	cdq
	sub	r8d, edi
	add	r8d, DWORD PTR 40[rbx]
	idiv	r8d
	mov	r15d, eax
	cmp	r10d, eax
	jle	.L10
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	ecx, 32
	mov	r9d, r10d
	mov	edx, r12d
	push	rax
	.cfi_def_cfa_offset 96
	sar	eax, cl
	sar	r9d, cl
	mov	esi, 6
	push	rax
	.cfi_def_cfa_offset 104
	mov	ecx, r14d
	push	0
	.cfi_def_cfa_offset 112
	push	rdi
	.cfi_def_cfa_offset 120
	mov	rdi, rbp
	push	r10
	.cfi_def_cfa_offset 128
	call	bbr_log_type_bbrupd@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 80
	mov	r10d, r15d
	jmp	.L10
.L14:
	mov	DWORD PTR [rsp], r10d
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	ecx, r11d
	mov	edx, r12d
	push	r14
	.cfi_def_cfa_offset 96
	mov	esi, 61
	mov	rdi, rbp
	push	0
	.cfi_def_cfa_offset 104
	push	0
	.cfi_def_cfa_offset 112
	push	0
	.cfi_def_cfa_offset 120
	push	0
	.cfi_def_cfa_offset 128
	mov	r9d, DWORD PTR 8[rbx]
	mov	r8d, DWORD PTR 24[rbp]
	call	bbr_log_type_bbrupd@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 80
	mov	r10d, DWORD PTR [rsp]
	jmp	.L6
.L44:
	push	rdx
	.cfi_def_cfa_offset 88
	mov	r8d, r11d
	mov	ecx, r14d
	mov	edx, r12d
	push	0
	.cfi_def_cfa_offset 96
	mov	esi, 8
	mov	rdi, rbp
	push	0
	.cfi_def_cfa_offset 104
	push	0
	.cfi_def_cfa_offset 112
	push	0
	.cfi_def_cfa_offset 120
	push	r15
	.cfi_def_cfa_offset 128
	mov	r9d, DWORD PTR 52[rsp]
	call	bbr_log_type_bbrupd@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 80
	mov	r10d, DWORD PTR [rsp]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	bbr_nf_measurement, .-bbr_nf_measurement
	.comm	USECS_IN_SECOND,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_bbr.c_bbr_nf_measurement.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bbr_nf_measurement, %function
bbr_nf_measurement:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r0, [r0]
	sub	sp, sp, #44
	cmp	r0, #0
	beq	.L39
.L1:
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L39:
	mov	r5, r1
	ldr	r0, [r4, #8]
	ldr	r1, [r1]
	mov	r6, r3
	mov	r7, r2
	bl	TSTMP_GT
	cmp	r0, #0
	moveq	r10, #1
	ldrne	r10, [r4, #8]
	ldrne	r3, [r5]
	ldr	fp, .L42
	subne	r10, r10, r3
	ldr	r9, [r4, #12]
	ldr	r3, [r5, #4]
	ldr	r0, [fp]
	sub	r9, r9, r3
	mov	r1, r10
	mul	r0, r9, r0
	bl	__aeabi_idiv
	subs	r8, r0, #0
	beq	.L1
	ldr	r3, [r5, #36]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [r4, #44]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [r4, #40]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L6
	ldr	r2, [r4, #36]
	cmp	r2, #0
	beq	.L6
	ldr	r2, [r5, #8]
	ldr	r0, [r4, #16]
	mov	r1, #1
	sub	r0, r0, r2
	str	r3, [sp, #36]
	bl	max
	cmp	r7, #1000
	movge	r7, #0
	movlt	r7, #1
	cmp	r9, #0
	moveq	r7, #1
	ldr	r2, [r4, #20]
	cmp	r7, #0
	mul	r3, r2, r0
	mov	r0, r3
	str	r3, [sp, #32]
	beq	.L7
	ldr	r1, [r5, #8]
	ldr	r2, [r4, #16]
	ldr	r3, [sp, #36]
	str	r1, [sp, #4]
	str	r3, [sp, #20]
	str	r3, [sp, #16]
	str	r3, [sp, #12]
	str	r3, [sp, #8]
	str	r2, [sp]
	mov	r3, r0
	mov	r2, r6
	mov	r1, #61
	mov	r0, r4
	str	r9, [sp, #24]
	bl	bbr_log_type_bbrupd
.L6:
	ldr	r1, [r5, #12]
	cmp	r1, #0
	bne	.L40
.L9:
	ldr	r3, [r5, #24]
	str	r8, [r4, #24]
	cmp	r3, #0
	bne	.L10
.L11:
	mov	r1, r6
	mov	r0, r4
	bl	tcp_bbr_commit_bw
	mov	r1, #0
	ldr	r3, [r5]
	ldr	r0, [r4, #8]
	mov	r2, r6
	str	r3, [sp, #24]
	str	r1, [sp, #16]
	str	r1, [sp, #12]
	str	r1, [sp, #8]
	str	r1, [sp, #4]
	str	r0, [sp, #20]
	mov	r3, r10
	mov	r0, r4
	mov	r1, #10
	str	r9, [sp]
	bl	bbr_log_type_bbrupd
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	add	r0, r4, #28
	bl	get_filter_value
	cmp	r0, r8
	blt	.L11
	b	.L1
.L40:
	ldr	r3, [r5, #20]
	ldr	r2, [r5, #16]
	sub	r3, r3, #-1073741823
	ldr	r0, [r2, r3, lsl #2]
	bl	TSTMP_GT
	cmp	r0, #0
	beq	.L9
	ldr	r3, [r5, #20]
	ldr	r2, [r5, #16]
	sub	r3, r3, #-1073741823
	ldr	r7, [r2, r3, lsl #2]
	ldr	r3, [r5, #12]
	ldr	r1, [r5, #28]
	sub	r7, r7, r3
	ldr	r2, [r5, #32]
	ldr	r0, [fp]
	add	r7, r7, r1
	mov	r1, r7
	mul	r0, r2, r0
	str	r3, [sp, #32]
	bl	__aeabi_idiv
	cmp	r8, r0
	mov	ip, r0
	ldr	r3, [sp, #32]
	ble	.L9
	mov	r2, #32
	mov	r1, #0
	str	r3, [sp, #12]
	asr	r3, r8, r2
	asr	r2, r0, r2
	str	r0, [sp, #24]
	str	r8, [sp, #8]
	str	r3, [sp, #4]
	str	r2, [sp, #20]
	str	r1, [sp, #16]
	mov	r3, r9
	mov	r2, r6
	mov	r1, #6
	mov	r0, r4
	str	r7, [sp]
	mov	r8, ip
	bl	bbr_log_type_bbrupd
	b	.L9
.L7:
	ldr	r0, [fp]
	ldr	r1, [sp, #32]
	mul	r0, r9, r0
	bl	__aeabi_idiv
	mov	r3, r0
	ldr	r2, [sp, #32]
	mov	r1, #62
	str	r0, [sp]
	str	r2, [sp, #20]
	str	r0, [sp, #36]
	mov	r2, r6
	asr	r3, r3, #32
	mov	r0, r4
	str	r9, [sp, #24]
	str	r7, [sp, #16]
	str	r7, [sp, #12]
	str	r7, [sp, #8]
	str	r7, [sp, #4]
	bl	bbr_log_type_bbrupd
	ldr	r3, [sp, #36]
	ldr	r1, [r4, #32]
	cmp	r8, r3
	movge	r3, #0
	movlt	r3, #1
	cmp	r1, #0
	moveq	r3, #0
	cmp	r3, #0
	asr	r2, r8, #32
	bne	.L41
	ldr	r1, [sp, #36]
	cmp	r1, #0
	cmpne	r8, r1
	ble	.L6
	str	r3, [sp, #24]
	str	r3, [sp, #20]
	str	r3, [sp, #16]
	str	r3, [sp, #12]
	ldr	r3, [sp, #32]
	stmib	sp, {r2, r8}
	str	r3, [sp]
	mov	r2, r6
	mov	r3, r9
	mov	r1, #7
	mov	r0, r4
	ldr	r8, [sp, #36]
	bl	bbr_log_type_bbrupd
	b	.L6
.L41:
	ldr	r3, [sp, #32]
	stmib	sp, {r2, r8}
	str	r3, [sp]
	mov	r2, r6
	mov	r3, r9
	mov	r1, #8
	mov	r0, r4
	str	r7, [sp, #24]
	str	r7, [sp, #20]
	str	r7, [sp, #16]
	str	r7, [sp, #12]
	ldr	r8, [sp, #36]
	bl	bbr_log_type_bbrupd
	b	.L6
.L43:
	.align	2
.L42:
	.word	USECS_IN_SECOND
	.size	bbr_nf_measurement, .-bbr_nf_measurement
	.comm	USECS_IN_SECOND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
