	.file	"extr_mtip32xx.c_mtip_quiesce_io.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mtip_quiesce_io, @function
mtip_quiesce_io:
.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
	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
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	mov	edi, DWORD PTR [rax]
	call	blk_mq_quiesce_queue@PLT
	mov	rdi, rbp
	lea	rbp, 8[rbx]
	call	msecs_to_jiffies@PLT
	add	rax, QWORD PTR jiffies[rip]
	mov	r13, rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, 100
	call	msleep@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR 4[rax]
	call	mtip_check_surprise_removal@PLT
	test	rax, rax
	jne	.L18
	mov	rdi, rbx
	call	mtip_commands_active@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L6
.L3:
	mov	rdi, QWORD PTR jiffies[rip]
	mov	rsi, r13
	call	time_before@PLT
	test	rax, rax
	je	.L19
.L7:
	mov	edi, DWORD PTR MTIP_PF_SVC_THD_ACTIVE_BIT[rip]
	mov	rsi, rbp
	call	test_bit@PLT
	test	rax, rax
	je	.L2
	mov	edi, DWORD PTR MTIP_PF_ISSUE_CMDS_BIT[rip]
	mov	rsi, rbp
	call	test_bit@PLT
	test	rax, rax
	je	.L2
	mov	edi, 20
	call	msleep@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR [rax]
	call	blk_mq_unquiesce_queue@PLT
	mov	r12d, DWORD PTR EBUSY[rip]
	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
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR [rax]
	call	blk_mq_unquiesce_queue@PLT
	mov	r12d, DWORD PTR EFAULT[rip]
	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
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR [rax]
	call	blk_mq_unquiesce_queue@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.cfi_endproc
.LFE0:
	.size	mtip_quiesce_io, .-mtip_quiesce_io
	.comm	jiffies,8,8
	.comm	MTIP_PF_SVC_THD_ACTIVE_BIT,4,4
	.comm	MTIP_PF_ISSUE_CMDS_BIT,4,4
	.comm	EFAULT,4,4
	.comm	EBUSY,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_mtip32xx.c_mtip_quiesce_io.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mtip_quiesce_io, %function
mtip_quiesce_io:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	mov	r4, r1
	ldr	r3, [r6], #4
	mov	r5, r0
	ldr	r0, [r3]
	bl	blk_mq_quiesce_queue
	mov	r0, r4
	bl	msecs_to_jiffies
	ldr	r8, .L20
	ldr	r9, .L20+4
	ldr	r3, [r8]
	ldr	r10, .L20+8
	add	r7, r0, r3
	b	.L7
.L2:
	mov	r0, #100
	bl	msleep
	ldr	r3, [r5]
	ldr	r0, [r3, #4]
	bl	mtip_check_surprise_removal
	cmp	r0, #0
	bne	.L18
	mov	r0, r5
	bl	mtip_commands_active
	subs	r4, r0, #0
	beq	.L6
.L3:
	mov	r1, r7
	ldr	r0, [r8]
	bl	time_before
	cmp	r0, #0
	beq	.L19
.L7:
	mov	r1, r6
	ldr	r0, [r9]
	bl	test_bit
	cmp	r0, #0
	beq	.L2
	mov	r1, r6
	ldr	r0, [r10]
	bl	test_bit
	cmp	r0, #0
	beq	.L2
	mov	r0, #20
	bl	msleep
	b	.L3
.L19:
	ldr	r3, [r5]
	ldr	r0, [r3]
	bl	blk_mq_unquiesce_queue
	ldr	r3, .L20+12
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	ldr	r3, [r5]
	ldr	r0, [r3]
	bl	blk_mq_unquiesce_queue
	ldr	r3, .L20+16
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	ldr	r3, [r5]
	ldr	r0, [r3]
	bl	blk_mq_unquiesce_queue
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	.align	2
.L20:
	.word	jiffies
	.word	MTIP_PF_SVC_THD_ACTIVE_BIT
	.word	MTIP_PF_ISSUE_CMDS_BIT
	.word	EBUSY
	.word	EFAULT
	.size	mtip_quiesce_io, .-mtip_quiesce_io
	.comm	jiffies,4,4
	.comm	MTIP_PF_SVC_THD_ACTIVE_BIT,4,4
	.comm	MTIP_PF_ISSUE_CMDS_BIT,4,4
	.comm	EFAULT,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
