	.file	"extr_blk-timeout.c_blk_add_timer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	blk_add_timer
	.type	blk_add_timer, @function
blk_add_timer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	eax, DWORD PTR 4[rdi]
	mov	r12, QWORD PTR 16[rdi]
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR 8[r12]
	mov	DWORD PTR 4[rdi], eax
.L2:
	mov	edx, DWORD PTR RQF_TIMED_OUT[rip]
	add	eax, DWORD PTR jiffies[rip]
	movsx	rbp, eax
	not	edx
	and	DWORD PTR 8[rdi], edx
	mov	edi, DWORD PTR [rdi]
	mov	rsi, rbp
	call	WRITE_ONCE@PLT
	mov	rdi, rbp
	call	round_jiffies_up@PLT
	mov	edi, eax
	call	blk_rq_timeout@PLT
	mov	rdi, r12
	mov	rbp, rax
	call	timer_pending@PLT
	test	eax, eax
	je	.L6
	mov	rsi, QWORD PTR [r12]
	mov	rdi, rbp
	call	time_before@PLT
	test	rax, rax
	je	.L1
.L6:
	mov	rdi, r12
	mov	rbx, QWORD PTR [r12]
	call	timer_pending@PLT
	test	eax, eax
	je	.L4
	mov	edx, DWORD PTR HZ[rip]
	sub	rbx, rbp
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	sar	eax
	cdqe
	cmp	rax, rbx
	ja	.L1
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rsi, rbp
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	mod_timer@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	blk_add_timer, .-blk_add_timer
	.comm	jiffies,4,4
	.comm	RQF_TIMED_OUT,4,4
	.comm	HZ,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_blk-timeout.c_blk_add_timer.c"
	.text
	.align	2
	.global	blk_add_timer
	.syntax unified
	.arm
	.fpu softvfp
	.type	blk_add_timer, %function
blk_add_timer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r1, [r0, #4]
	push	{r4, r5, r6, lr}
	ldr	ip, .L16
	ldr	r5, [r0, #12]
	ldr	r3, .L16+4
	cmp	r1, #0
	ldreq	r1, [r5, #4]
	ldr	r2, [r3]
	ldr	r4, [ip]
	ldr	r3, [r0, #8]
	add	r4, r1, r4
	bic	r3, r3, r2
	streq	r1, [r0, #4]
	str	r3, [r0, #8]
	mov	r1, r4
	ldr	r0, [r0]
	bl	WRITE_ONCE
	mov	r0, r4
	bl	round_jiffies_up
	bl	blk_rq_timeout
	mov	r4, r0
	mov	r0, r5
	bl	timer_pending
	cmp	r0, #0
	beq	.L6
	mov	r0, r4
	ldr	r1, [r5]
	bl	time_before
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
.L6:
	mov	r0, r5
	ldr	r6, [r5]
	bl	timer_pending
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L16+8
	sub	r6, r6, r4
	ldr	r3, [r3]
	add	r3, r3, r3, lsr #31
	cmp	r6, r3, asr #1
	popcc	{r4, r5, r6, pc}
.L4:
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	mod_timer
.L17:
	.align	2
.L16:
	.word	jiffies
	.word	RQF_TIMED_OUT
	.word	HZ
	.size	blk_add_timer, .-blk_add_timer
	.comm	jiffies,4,4
	.comm	RQF_TIMED_OUT,4,4
	.comm	HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
