	.file	"extr_reada.c_btrfs_reada_wait.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	btrfs_reada_wait
	.type	btrfs_reada_wait, @function
btrfs_reada_wait:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	lea	rbx, 4[rdi]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR 16[rdi]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR HZ[rip]
	mov	rdi, rbx
	add	eax, 9
	movsx	r12, eax
	sar	eax, 31
	imul	r12, r12, 1717986919
	sar	r12, 34
	sub	r12d, eax
	call	atomic_read@PLT
	xor	esi, esi
	mov	edi, DWORD PTR 8[rbp]
	mov	edx, r12d
	test	rax, rax
	sete	sil
	call	wait_event_timeout@PLT
.L2:
	mov	rdi, rbx
	call	atomic_read@PLT
	test	rax, rax
	je	.L7
	mov	rdi, r13
	call	atomic_read@PLT
	test	rax, rax
	jne	.L3
	mov	rdi, r13
	call	reada_start_machine@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR reada_control_release[rip]
	mov	rdi, rbp
	call	kref_put@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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	btrfs_reada_wait, .-btrfs_reada_wait
	.comm	reada_control_release,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_reada.c_btrfs_reada_wait.c"
	.text
	.align	2
	.global	btrfs_reada_wait
	.syntax unified
	.arm
	.fpu softvfp
	.type	btrfs_reada_wait, %function
btrfs_reada_wait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r8, .L8
	ldr	r6, [r0, #12]
	ldr	r7, .L8+4
	add	r4, r0, #4
	b	.L2
.L3:
	mov	r0, r4
	ldr	r9, [r5, #8]
	bl	atomic_read
	clz	r1, r0
	ldr	r3, [r8]
	lsr	r1, r1, #5
	add	r3, r3, #9
	smull	r0, r2, r7, r3
	asr	r3, r3, #31
	mov	r0, r9
	rsb	r2, r3, r2, asr #2
	bl	wait_event_timeout
.L2:
	mov	r0, r4
	bl	atomic_read
	subs	r9, r0, #0
	beq	.L7
	mov	r0, r6
	bl	atomic_read
	cmp	r0, #0
	bne	.L3
	mov	r0, r6
	bl	reada_start_machine
	b	.L3
.L7:
	ldr	r3, .L8+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	kref_put
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	.align	2
.L8:
	.word	HZ
	.word	1717986919
	.word	reada_control_release
	.size	btrfs_reada_wait, .-btrfs_reada_wait
	.comm	reada_control_release,4,4
	.comm	HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
