	.file	"extr_sch_cake.c_cobalt_should_drop.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cobalt_should_drop, @function
cobalt_should_drop:
.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	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	rdi, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rcx
	call	cobalt_get_enqueue_time@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	ktime_sub@PLT
	mov	rdi, rax
	call	ktime_to_ns@PLT
	mov	rsi, QWORD PTR 24[rbx]
	mov	rdi, rbp
	mov	QWORD PTR [rsp], rax
	call	ktime_sub@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	r13, rax
	cmp	DWORD PTR [r12], edx
	jge	.L2
	mov	eax, DWORD PTR 4[r12]
	mov	r15d, DWORD PTR [rbx]
	imul	r14d, eax
	add	r14d, r14d
	cmp	r14d, edx
	jl	.L46
.L3:
	test	r15d, r15d
	jne	.L47
.L40:
	mov	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 4[rbx], 0
	test	eax, eax
	je	.L13
	mov	DWORD PTR 8[rbx], 0
.L10:
	cmp	QWORD PTR 16[rbx], 0
	jne	.L21
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	je	.L24
.L16:
	mov	rdi, r13
	call	ktime_to_ns@PLT
	test	rax, rax
	jle	.L1
	test	r15b, 1
	jne	.L1
	mov	QWORD PTR 24[rbx], rbp
	xor	r15d, r15d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L48:
	mov	rdi, rax
	call	ktime_to_ns@PLT
.L44:
	test	rax, rax
	js	.L25
.L14:
	sub	DWORD PTR [rbx], 1
	mov	rdi, rbx
	call	cobalt_invsqrt@PLT
	mov	edx, DWORD PTR 32[rbx]
	mov	esi, DWORD PTR 8[r12]
	mov	rdi, QWORD PTR 24[rbx]
	call	cobalt_control@PLT
	mov	rdi, rbp
	mov	QWORD PTR 24[rbx], rax
	mov	rsi, rax
	call	ktime_sub@PLT
	mov	ecx, DWORD PTR [rbx]
	mov	r13, rax
	test	ecx, ecx
	jne	.L48
.L13:
	xor	r15d, r15d
	cmp	QWORD PTR 16[rbx], 0
	je	.L24
.L21:
	xor	eax, eax
	call	prandom_u32@PLT
	cmp	rax, QWORD PTR 16[rbx]
	setl	al
	movzx	eax, al
	or	r15d, eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r15d, DWORD PTR [rbx]
	test	r15d, r15d
	je	.L40
.L47:
	mov	rdi, r13
	call	ktime_to_ns@PLT
	mov	r8d, DWORD PTR 8[rbx]
	mov	DWORD PTR 4[rbx], 0
	test	r8d, r8d
	je	.L44
	mov	DWORD PTR 8[rbx], 0
	jmp	.L44
	.p2align 4,,10
	.p2align 3
.L24:
	mov	esi, DWORD PTR 8[r12]
	mov	rdi, rbp
	call	ktime_add_ns@PLT
	mov	QWORD PTR 24[rbx], rax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L46:
	.cfi_restore_state
	sal	eax, 2
	cmp	eax, edx
	jge	.L3
	test	r15d, r15d
	jne	.L49
	mov	r14d, DWORD PTR 8[rbx]
	mov	DWORD PTR 4[rbx], 0
	test	r14d, r14d
	je	.L5
	cmp	QWORD PTR 16[rbx], 0
	mov	DWORD PTR [rbx], 1
	je	.L16
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L25:
	xor	r15d, r15d
	jmp	.L10
.L49:
	mov	rdi, r13
	call	ktime_to_ns@PLT
	mov	r9d, DWORD PTR 8[rbx]
	mov	DWORD PTR 4[rbx], 0
	not	rax
	mov	r14, rax
	shr	r14, 63
	test	r9d, r9d
	je	.L5
.L6:
	mov	edi, DWORD PTR [rbx]
	test	edi, edi
	jne	.L9
	mov	DWORD PTR [rbx], 1
.L9:
	test	r14d, r14d
	je	.L25
	mov	esi, DWORD PTR 8[rbx]
	test	esi, esi
	je	.L14
	mov	rdi, QWORD PTR 8[rsp]
	xor	r15d, r15d
	call	INET_ECN_set_ce@PLT
	test	eax, eax
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR [rbx]
	sete	r15b
	add	eax, 1
	je	.L12
	mov	DWORD PTR [rbx], eax
.L12:
	mov	rdi, rbx
	call	cobalt_invsqrt@PLT
	mov	edx, DWORD PTR 32[rbx]
	mov	esi, DWORD PTR 8[r12]
	mov	rdi, QWORD PTR 24[rbx]
	call	cobalt_control@PLT
	mov	rdi, rbp
	mov	QWORD PTR 24[rbx], rax
	mov	rsi, rax
	call	ktime_sub@PLT
	mov	r13, rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L5:
	mov	DWORD PTR 8[rbx], 1
	mov	edx, DWORD PTR 32[rbx]
	mov	rdi, rbp
	mov	esi, DWORD PTR 8[r12]
	call	cobalt_control@PLT
	mov	QWORD PTR 24[rbx], rax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	cobalt_should_drop, .-cobalt_should_drop
	.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_sch_cake.c_cobalt_should_drop.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cobalt_should_drop, %function
cobalt_should_drop:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	mov	r0, r3
	mov	r5, r2
	mov	r10, r3
	mov	r6, r1
	bl	cobalt_get_enqueue_time
	mov	r1, r0
	mov	r0, r5
	bl	ktime_sub
	bl	ktime_to_ns
	ldr	r1, [r4, #16]
	mov	r9, r0
	mov	r0, r5
	bl	ktime_sub
	ldr	r3, [r6]
	mov	r7, r0
	cmp	r3, r9
	bge	.L2
	ldr	r2, [r6, #4]
	ldr	r3, [sp, #32]
	ldr	r8, [r4]
	mul	r3, r2, r3
	cmp	r9, r3, lsl #1
	bgt	.L52
.L3:
	cmp	r8, #0
	bne	.L53
.L47:
	ldr	r3, [r4, #8]
	str	r8, [r4, #4]
	cmp	r3, #0
	bne	.L18
.L13:
	ldr	r9, [r4, #12]
	cmp	r9, #0
	beq	.L24
	mov	r8, #0
.L21:
	bl	prandom_u32
	ldr	r3, [r4, #12]
	cmp	r0, r3
	movge	r9, r8
	orrlt	r9, r8, #1
.L15:
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L24
.L16:
	mov	r0, r7
	bl	ktime_to_ns
	eor	r3, r9, #1
	cmp	r0, #0
	movle	r3, #0
	andgt	r3, r3, #1
	cmp	r3, #0
	movne	r9, #0
	strne	r5, [r4, #16]
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r8, [r4]
	cmp	r8, #0
	beq	.L47
.L53:
	mov	r0, r7
	bl	ktime_to_ns
	mov	r3, #0
	ldr	r2, [r4, #8]
	str	r3, [r4, #4]
	cmp	r2, r3
	strne	r3, [r4, #8]
	cmp	r0, #0
	blt	.L50
.L14:
	ldr	r3, [r4]
	mov	r0, r4
	sub	r3, r3, #1
	str	r3, [r4]
	bl	cobalt_invsqrt
	ldr	r2, [r4, #20]
	ldr	r1, [r6, #8]
	ldr	r0, [r4, #16]
	bl	cobalt_control
	mov	r1, r0
	mov	r0, r5
	str	r1, [r4, #16]
	bl	ktime_sub
	ldr	r3, [r4]
	mov	r7, r0
	cmp	r3, #0
	beq	.L13
	bl	ktime_to_ns
	cmp	r0, #0
	bge	.L14
.L50:
	mov	r8, #0
	b	.L10
.L24:
	mov	r0, r5
	ldr	r1, [r6, #8]
	bl	ktime_add_ns
	str	r0, [r4, #16]
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	str	r8, [r4, #8]
.L10:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	moveq	r9, r8
	beq	.L15
	b	.L21
.L52:
	cmp	r9, r2, lsl #2
	ble	.L3
	cmp	r8, #0
	bne	.L54
	ldr	r9, [r4, #8]
	str	r8, [r4, #4]
	cmp	r9, #0
	beq	.L5
	mov	r3, #1
	ldr	r9, [r4, #12]
	str	r3, [r4]
	cmp	r9, #0
	beq	.L16
	b	.L21
.L54:
	bl	ktime_to_ns
	mov	r3, #0
	ldr	r2, [r4, #8]
	cmp	r0, r3
	movlt	r9, #0
	movge	r9, #1
	cmp	r2, r3
	str	r3, [r4, #4]
	beq	.L5
.L6:
	ldr	r3, [r4]
	cmp	r3, #0
	moveq	r3, #1
	streq	r3, [r4]
	cmp	r9, #0
	beq	.L25
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L14
	mov	r0, r10
	bl	INET_ECN_set_ce
	ldr	r3, [r4]
	clz	r8, r0
	adds	r3, r3, #1
	strne	r3, [r4]
	str	r0, [r4, #4]
	mov	r0, r4
	bl	cobalt_invsqrt
	ldr	r2, [r4, #20]
	ldr	r1, [r6, #8]
	ldr	r0, [r4, #16]
	bl	cobalt_control
	mov	r1, r0
	mov	r0, r5
	str	r1, [r4, #16]
	bl	ktime_sub
	lsr	r8, r8, #5
	mov	r7, r0
	b	.L10
.L5:
	mov	r3, #1
	mov	r0, r5
	ldr	r2, [r4, #20]
	ldr	r1, [r6, #8]
	str	r3, [r4, #8]
	bl	cobalt_control
	str	r0, [r4, #16]
	b	.L6
.L25:
	mov	r8, r9
	b	.L10
	.size	cobalt_should_drop, .-cobalt_should_drop
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
