	.file	"extr_dm-raid45.c_rs_set_read_ahead.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rs_set_read_ahead, @function
rs_set_read_ahead:
.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, rdi
	mov	edi, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR SECTORS_PER_PAGE[rip]
	call	dm_div_up@PLT
	mov	r12d, eax
	mov	rax, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR [rax]
	call	dm_table_get_md@PLT
	mov	rdi, rax
	mov	r13, rax
	call	dm_disk@PLT
	test	r12d, r12d
	je	.L2
	imul	ebx, DWORD PTR 12[rbp]
	mov	edx, DWORD PTR 8[rbp]
	mov	rax, QWORD PTR [rax]
	imul	ebx, r12d
	mov	DWORD PTR [rax], ebx
	lea	ebx, -1[rdx]
	test	edx, edx
	je	.L2
	sal	rbx, 3
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rax+rbx]
	sub	rbx, 8
	mov	edi, DWORD PTR [rax]
	call	bdev_get_queue@PLT
	mov	DWORD PTR [rax], r12d
	cmp	rbx, -8
	jne	.L3
.L2:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	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
	jmp	dm_put@PLT
	.cfi_endproc
.LFE0:
	.size	rs_set_read_ahead, .-rs_set_read_ahead
	.comm	SECTORS_PER_PAGE,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_dm-raid45.c_rs_set_read_ahead.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rs_set_read_ahead, %function
rs_set_read_ahead:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r0, r1
	ldr	r1, [r3]
	mov	r4, r2
	bl	dm_div_up
	ldr	r3, [r5, #12]
	mov	r6, r0
	ldr	r0, [r3]
	bl	dm_table_get_md
	mov	r7, r0
	bl	dm_disk
	cmp	r6, #0
	beq	.L2
	ldr	r2, [r5, #8]
	ldr	r3, [r0]
	mul	r2, r4, r2
	mul	r2, r6, r2
	ldr	r4, [r5, #4]
	str	r2, [r3]
	cmp	r4, #0
	sub	r4, r4, #1
	beq	.L2
.L3:
	ldr	r3, [r5]
	ldr	r3, [r3, r4, lsl #2]
	sub	r4, r4, #1
	ldr	r0, [r3]
	bl	bdev_get_queue
	cmn	r4, #1
	str	r6, [r0]
	bne	.L3
.L2:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	dm_put
.L14:
	.align	2
.L13:
	.word	SECTORS_PER_PAGE
	.size	rs_set_read_ahead, .-rs_set_read_ahead
	.comm	SECTORS_PER_PAGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
