	.file	"extr_pd.c_pd_next_buf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pd_next_buf, @function
pd_next_buf:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR pd_count[rip]
	add	DWORD PTR pd_block[rip], 1
	mov	r8d, 1
	add	QWORD PTR pd_buf[rip], 2048
	lea	rdx, -1[rax]
	mov	eax, DWORD PTR pd_run[rip]
	mov	QWORD PTR pd_count[rip], rdx
	sub	eax, 1
	mov	DWORD PTR pd_run[rip], eax
	test	eax, eax
	je	.L9
	xor	r8d, r8d
	test	rdx, rdx
	je	.L13
.L9:
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	xor	esi, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	lea	rdi, pd_lock[rip]
	call	spin_lock_irqsave@PLT
	mov	rdi, QWORD PTR pd_req[rip]
	call	blk_rq_cur_bytes@PLT
	mov	rdi, QWORD PTR pd_req[rip]
	xor	esi, esi
	mov	edx, eax
	call	blk_update_request@PLT
	test	eax, eax
	je	.L14
	mov	rdi, QWORD PTR pd_req[rip]
	call	blk_rq_cur_sectors@PLT
	mov	QWORD PTR pd_count[rip], rax
	mov	rax, QWORD PTR pd_req[rip]
	mov	edi, DWORD PTR [rax]
	call	bio_data@PLT
	mov	QWORD PTR pd_buf[rip], rax
.L4:
	xor	esi, esi
	lea	rdi, pd_lock[rip]
	call	spin_unlock_irqrestore@PLT
	xor	r8d, r8d
	cmp	QWORD PTR pd_count[rip], 0
	sete	r8b
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, QWORD PTR pd_req[rip]
	xor	esi, esi
	call	__blk_mq_end_request@PLT
	mov	QWORD PTR pd_req[rip], 0
	mov	QWORD PTR pd_count[rip], 0
	mov	QWORD PTR pd_buf[rip], 0
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	pd_next_buf, .-pd_next_buf
	.comm	pd_run,4,4
	.comm	pd_req,8,8
	.comm	pd_lock,4,4
	.comm	pd_count,8,8
	.comm	pd_buf,8,8
	.comm	pd_block,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_pd.c_pd_next_buf.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pd_next_buf, %function
pd_next_buf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r0, .L11
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r0]
	ldr	r5, .L11+4
	ldr	r6, .L11+8
	ldr	r1, .L11+12
	sub	r3, r3, #1
	ldr	r4, [r5]
	ldr	r2, [r6]
	cmp	r3, #0
	str	r3, [r0]
	ldr	r3, [r1]
	sub	r4, r4, #1
	add	r2, r2, #2048
	add	r3, r3, #1
	str	r4, [r5]
	str	r2, [r6]
	str	r3, [r1]
	beq	.L5
	cmp	r4, #0
	beq	.L9
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r7, .L11+16
	mov	r1, #0
	ldr	r0, .L11+20
	bl	spin_lock_irqsave
	ldr	r8, [r7]
	mov	r0, r8
	bl	blk_rq_cur_bytes
	mov	r1, r4
	mov	r2, r0
	mov	r0, r8
	bl	blk_update_request
	subs	r4, r0, #0
	beq	.L10
	ldr	r0, [r7]
	bl	blk_rq_cur_sectors
	ldr	r3, [r7]
	str	r0, [r5]
	ldr	r0, [r3]
	bl	bio_data
	str	r0, [r6]
.L4:
	mov	r1, #0
	ldr	r0, .L11+20
	bl	spin_unlock_irqrestore
	ldr	r0, [r5]
	clz	r0, r0
	lsr	r0, r0, #5
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r1, r4
	ldr	r0, [r7]
	bl	__blk_mq_end_request
	str	r4, [r7]
	str	r4, [r5]
	str	r4, [r6]
	b	.L4
.L12:
	.align	2
.L11:
	.word	pd_run
	.word	pd_count
	.word	pd_buf
	.word	pd_block
	.word	pd_req
	.word	pd_lock
	.size	pd_next_buf, .-pd_next_buf
	.comm	pd_run,4,4
	.comm	pd_req,4,4
	.comm	pd_lock,4,4
	.comm	pd_count,4,4
	.comm	pd_buf,4,4
	.comm	pd_block,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
