	.file	"extr_reada.c_reada_start_machine_dev.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	reada_start_machine_dev, @function
reada_start_machine_dev:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rbp, QWORD PTR 24[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	lea	r13, 4[rbp]
	mov	rdi, r13
	call	spin_lock@PLT
	cmp	QWORD PTR 16[rbx], 0
	je	.L28
.L2:
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	edx, DWORD PTR [rbx]
	lea	r14, 8[rbx]
	lea	r15, 8[rsp]
	mov	rsi, r15
	mov	rdi, r14
	sar	edx, cl
	mov	ecx, 1
	call	radix_tree_gang_lookup@PLT
	test	eax, eax
	je	.L4
	mov	rdx, QWORD PTR 8[rsp]
	mov	rcx, QWORD PTR 16[rbx]
	mov	eax, DWORD PTR [rdx]
	cmp	eax, DWORD PTR [rcx]
	jg	.L4
.L5:
	add	eax, DWORD PTR 0[rbp]
	mov	rdi, r13
	mov	DWORD PTR [rbx], eax
	add	DWORD PTR 32[rdx], 1
	call	spin_unlock@PLT
	mov	rax, QWORD PTR 8[rsp]
	lea	rdi, 24[rax]
	call	spin_lock@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	r12d, DWORD PTR 4[rdi]
	test	r12d, r12d
	jne	.L8
	add	rdi, 28
	call	list_empty@PLT
	mov	rdi, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L9
.L8:
	add	rdi, 24
	xor	r12d, r12d
	call	spin_unlock@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, rbp
	call	reada_extent_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbx
	call	reada_pick_zone@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	edx, DWORD PTR [rbx]
	mov	rsi, r15
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], 0
	sar	edx, cl
	mov	ecx, 1
	call	radix_tree_gang_lookup@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L29
.L7:
	mov	rdi, r13
	call	spin_unlock@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L28:
	.cfi_restore_state
	mov	rdi, rbx
	call	reada_pick_zone@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rdx, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR [rdx]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	DWORD PTR 4[rdi], 1
	add	rdi, 24
	call	spin_unlock@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR 8[rdi]
	test	eax, eax
	jle	.L10
	lea	ecx, -1[rax]
	mov	rsi, QWORD PTR 16[rdi]
	mov	eax, 1
	add	rcx, 2
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L31:
	add	rax, 1
	cmp	rcx, rax
	je	.L10
.L11:
	mov	rdx, QWORD PTR -8[rsi+rax*8]
	cmp	QWORD PTR [rdx], rbx
	jne	.L31
	mov	r12d, eax
.L10:
	mov	r14d, DWORD PTR [rdi]
	lea	r13, 4[rbx]
	mov	rdi, r13
	call	atomic_inc@PLT
	lea	rcx, 16[rsp]
	mov	edx, r12d
	mov	esi, r14d
	mov	rdi, rbp
	call	reada_tree_block_flagged@PLT
	test	eax, eax
	jne	.L32
	mov	rdx, QWORD PTR 16[rsp]
	test	rdx, rdx
	je	.L15
	mov	rsi, QWORD PTR 8[rsp]
	xor	ecx, ecx
	mov	rdi, rbp
	call	__readahead_hook@PLT
.L13:
	mov	rdi, QWORD PTR 16[rsp]
	test	rdi, rdi
	je	.L15
	call	free_extent_buffer@PLT
.L15:
	mov	rdi, r13
	mov	r12d, 1
	call	atomic_dec@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, rbp
	call	reada_extent_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rsi, QWORD PTR 8[rsp]
	mov	ecx, eax
	xor	edx, edx
	mov	rdi, rbp
	call	__readahead_hook@PLT
	jmp	.L13
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	reada_start_machine_dev, .-reada_start_machine_dev
	.comm	PAGE_SHIFT,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_reada.c_reada_start_machine_dev.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	reada_start_machine_dev, %function
reada_start_machine_dev:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r3, #0
	mov	r4, r0
	ldr	r7, [r0, #16]
	ldr	r2, .L33
	add	r8, r7, #4
	sub	sp, sp, #20
	mov	r0, r8
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	bl	spin_lock
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L28
.L2:
	mov	r6, r4
	ldr	r9, .L33+4
	ldr	r2, [r6], #8
	ldr	r3, [r9]
	mov	r0, r6
	asr	r2, r2, r3
	add	r1, sp, #4
	mov	r3, #1
	bl	radix_tree_gang_lookup
	cmp	r0, #0
	beq	.L4
	ldr	r3, [sp, #4]
	ldr	r2, [r4, #12]
	ldr	r0, [r3]
	ldr	r2, [r2]
	cmp	r0, r2
	bgt	.L4
.L5:
	ldr	r2, [r3, #24]
	ldr	r1, [r7]
	add	r2, r2, #1
	add	r1, r1, r0
	str	r1, [r4]
	mov	r0, r8
	str	r2, [r3, #24]
	bl	spin_unlock
	ldr	r0, [sp, #4]
	add	r0, r0, #16
	bl	spin_lock
	ldr	r0, [sp, #4]
	ldr	r3, [r0, #4]
	cmp	r3, #0
	bne	.L8
	add	r0, r0, #20
	bl	list_empty
	subs	r5, r0, #0
	beq	.L9
	ldr	r0, [sp, #4]
.L8:
	add	r0, r0, #16
	bl	spin_unlock
	mov	r0, r7
	ldr	r1, [sp, #4]
	bl	reada_extent_put
	mov	r5, #0
	b	.L1
.L4:
	mov	r0, r4
	bl	reada_pick_zone
	subs	r5, r0, #0
	beq	.L7
	mov	ip, #0
	ldr	r3, [r9]
	ldr	r2, [r4]
	mov	r0, r6
	asr	r2, r2, r3
	add	r1, sp, #4
	mov	r3, #1
	str	ip, [sp, #4]
	bl	radix_tree_gang_lookup
	subs	r5, r0, #0
	bne	.L29
.L7:
	mov	r0, r8
	bl	spin_unlock
.L1:
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L28:
	mov	r0, r4
	bl	reada_pick_zone
	subs	r5, r0, #0
	bne	.L2
	b	.L7
.L29:
	ldr	r3, [sp, #4]
	ldr	r0, [r3]
	b	.L5
.L9:
	mov	r3, #1
	ldr	r0, [sp, #4]
	str	r3, [r0, #4]
	add	r0, r0, #16
	bl	spin_unlock
	ldr	r2, [sp, #4]
	ldr	lr, [r2, #8]
	cmp	lr, #0
	ble	.L10
	ldr	r1, [r2, #12]
	mov	r3, r5
	sub	r1, r1, #4
	b	.L11
.L31:
	cmp	lr, r3
	beq	.L10
.L11:
	ldr	ip, [r1, #4]!
	add	r3, r3, #1
	ldr	ip, [ip]
	cmp	ip, r4
	bne	.L31
	mov	r5, r3
.L10:
	ldr	r6, [r2]
	add	r4, r4, #4
	mov	r0, r4
	bl	atomic_inc
	add	r3, sp, #8
	mov	r1, r6
	mov	r2, r5
	mov	r0, r7
	bl	reada_tree_block_flagged
	subs	r3, r0, #0
	bne	.L32
	ldr	r2, [sp, #8]
	cmp	r2, #0
	beq	.L15
	mov	r0, r7
	ldr	r1, [sp, #4]
	bl	__readahead_hook
.L13:
	ldr	r0, [sp, #8]
	cmp	r0, #0
	beq	.L15
	bl	free_extent_buffer
.L15:
	mov	r0, r4
	bl	atomic_dec
	mov	r0, r7
	ldr	r1, [sp, #4]
	bl	reada_extent_put
	mov	r5, #1
	b	.L1
.L32:
	mov	r2, #0
	mov	r0, r7
	ldr	r1, [sp, #4]
	bl	__readahead_hook
	b	.L13
.L30:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	.LC0
	.word	PAGE_SHIFT
	.size	reada_start_machine_dev, .-reada_start_machine_dev
	.comm	PAGE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
