	.file	"extr_scrub.c_btrfs_scrub_pause.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	btrfs_scrub_pause
	.type	btrfs_scrub_pause, @function
btrfs_scrub_pause:
.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	r13, 8[rbp]
	lea	r12, 4[rbp]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	mutex_lock@PLT
	lea	rdi, 16[rbp]
	call	atomic_inc@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	call	mutex_unlock@PLT
	mov	rdi, r13
	call	atomic_read@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	atomic_read@PLT
	mov	edi, DWORD PTR 12[rbp]
	xor	esi, esi
	cmp	rbx, rax
	sete	sil
	call	wait_event@PLT
	mov	rdi, rbp
	call	mutex_lock@PLT
.L2:
	mov	rdi, r13
	call	atomic_read@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	atomic_read@PLT
	mov	rdi, rbp
	cmp	rbx, rax
	jne	.L3
	add	rsp, 8
	.cfi_def_cfa_offset 40
	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	mutex_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	btrfs_scrub_pause, .-btrfs_scrub_pause
	.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_scrub.c_btrfs_scrub_pause.c"
	.text
	.align	2
	.global	btrfs_scrub_pause
	.syntax unified
	.arm
	.fpu softvfp
	.type	btrfs_scrub_pause, %function
btrfs_scrub_pause:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	bl	mutex_lock
	add	r0, r5, #16
	bl	atomic_inc
	add	r7, r5, #8
	add	r6, r5, #4
	b	.L2
.L3:
	bl	mutex_unlock
	mov	r0, r7
	ldr	r8, [r5, #12]
	bl	atomic_read
	mov	r4, r0
	mov	r0, r6
	bl	atomic_read
	mov	r1, r0
	sub	r1, r4, r1
	clz	r1, r1
	mov	r0, r8
	lsr	r1, r1, #5
	bl	wait_event
	mov	r0, r5
	bl	mutex_lock
.L2:
	mov	r0, r7
	bl	atomic_read
	mov	r4, r0
	mov	r0, r6
	bl	atomic_read
	cmp	r4, r0
	mov	r0, r5
	bne	.L3
	pop	{r4, r5, r6, r7, r8, lr}
	b	mutex_unlock
	.size	btrfs_scrub_pause, .-btrfs_scrub_pause
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
