	.file	"extr_space-info.c_flush_space.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	flush_space, @function
flush_space:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	eax, -128[rcx]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR [rdi]
	cmp	eax, 9
	ja	.L2
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L6:
	xor	ecx, ecx
	cmp	r12d, 133
	lea	esi, [r13+r13]
	mov	edx, r13d
	sete	cl
	call	shrink_delalloc@PLT
	xor	r8d, r8d
.L12:
	mov	esi, DWORD PTR [rbx]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	ecx, r12d
	mov	edx, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	rdi, rbp
	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
	jmp	trace_btrfs_flush_space@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, r14
	call	btrfs_join_transaction@PLT
	mov	rdi, rax
	mov	r14, rax
	call	IS_ERR@PLT
	test	eax, eax
	jne	.L22
	cmp	r12d, 137
	mov	r15d, DWORD PTR CHUNK_ALLOC_NO_FORCE[rip]
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], eax
	cmovne	r15d, DWORD PTR CHUNK_ALLOC_FORCE[rip]
	call	btrfs_metadata_alloc_profile@PLT
	mov	rdi, r14
	mov	edx, r15d
	mov	esi, eax
	call	btrfs_chunk_alloc@PLT
	mov	rdi, r14
	mov	r15d, eax
	call	btrfs_end_transaction@PLT
	test	r15d, r15d
	mov	r8d, DWORD PTR 12[rsp]
	jg	.L12
	mov	eax, r15d
	add	eax, DWORD PTR ENOSPC[rip]
	cmovne	r8d, r15d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r14
	call	btrfs_join_transaction@PLT
	mov	rdi, rax
	mov	r14, rax
	call	IS_ERR@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L22
	xor	esi, esi
	cmp	r12d, 129
	je	.L24
.L14:
	mov	rdi, r14
	mov	DWORD PTR 12[rsp], r8d
	call	btrfs_run_delayed_refs@PLT
	mov	rdi, r14
	call	btrfs_end_transaction@PLT
	mov	r8d, DWORD PTR 12[rsp]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r15d, -1
	cmp	ecx, 131
	je	.L25
.L10:
	mov	rdi, r14
	call	btrfs_join_transaction@PLT
	mov	rdi, rax
	mov	r14, rax
	call	IS_ERR@PLT
	test	eax, eax
	jne	.L22
	mov	esi, r15d
	mov	rdi, r14
	call	btrfs_run_delayed_items_nr@PLT
	mov	rdi, r14
	mov	DWORD PTR 12[rsp], eax
	call	btrfs_end_transaction@PLT
	mov	r8d, DWORD PTR 12[rsp]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L9:
	call	btrfs_run_delayed_iputs@PLT
	mov	rdi, rbp
	call	btrfs_wait_on_delayed_iputs@PLT
	xor	r8d, r8d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	call	may_commit_transaction@PLT
	mov	r8d, eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, r14
	call	PTR_ERR@PLT
	mov	r8d, eax
	jmp	.L12
.L2:
	mov	r8d, DWORD PTR ENOSPC[rip]
	neg	r8d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L25:
	mov	esi, r13d
	call	calc_reclaim_items_nr@PLT
	lea	r15d, [rax+rax]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L24:
	mov	esi, r13d
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], eax
	call	calc_reclaim_items_nr@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	esi, eax
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	flush_space, .-flush_space
	.comm	ENOSPC,4,4
	.comm	CHUNK_ALLOC_NO_FORCE,4,4
	.comm	CHUNK_ALLOC_FORCE,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_space-info.c_flush_space.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	flush_space, %function
flush_space:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r3
	sub	r3, r3, #128
	mov	r4, r0
	mov	r8, r1
	mov	r6, r2
	ldr	r7, [r0]
	sub	sp, sp, #8
	cmp	r3, #9
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L9
	.word	.L8
	.word	.L8
	.word	.L7
	.word	.L7
	.word	.L6
	.word	.L6
	.word	.L5
	.word	.L3
	.word	.L3
.L3:
	mov	r0, r7
	bl	btrfs_join_transaction
	mov	r9, r0
	bl	IS_ERR
	subs	r7, r0, #0
	bne	.L22
	mov	r0, r4
	bl	btrfs_metadata_alloc_profile
	cmp	r5, #137
	ldreq	r3, .L26
	ldrne	r3, .L26+4
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r9
	bl	btrfs_chunk_alloc
	mov	r10, r0
	mov	r0, r9
	bl	btrfs_end_transaction
	cmp	r10, #0
	bgt	.L12
	ldr	r3, .L26+8
	ldr	r3, [r3]
	cmn	r10, r3
	movne	r7, r10
	b	.L12
.L8:
	mov	r0, r7
	bl	btrfs_join_transaction
	mov	r9, r0
	bl	IS_ERR
	subs	r7, r0, #0
	bne	.L22
	cmp	r5, #129
	movne	r1, r7
	beq	.L24
.L14:
	mov	r0, r9
	bl	btrfs_run_delayed_refs
	mov	r0, r9
	bl	btrfs_end_transaction
.L12:
	str	r7, [sp]
	mov	r3, r5
	mov	r2, r6
	mov	r0, r4
	ldr	r1, [r8]
	bl	trace_btrfs_flush_space
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	cmp	r5, #131
	mvnne	r10, #0
	beq	.L25
.L10:
	mov	r0, r7
	bl	btrfs_join_transaction
	mov	r9, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L22
	mov	r1, r10
	mov	r0, r9
	bl	btrfs_run_delayed_items_nr
	mov	r7, r0
	mov	r0, r9
	bl	btrfs_end_transaction
	b	.L12
.L6:
	sub	r3, r5, #133
	clz	r3, r3
	lsl	r1, r2, #1
	lsr	r3, r3, #5
	bl	shrink_delalloc
	mov	r7, #0
	b	.L12
.L9:
	bl	btrfs_run_delayed_iputs
	mov	r0, r4
	bl	btrfs_wait_on_delayed_iputs
	mov	r7, #0
	b	.L12
.L5:
	bl	may_commit_transaction
	mov	r7, r0
	b	.L12
.L22:
	mov	r0, r9
	bl	PTR_ERR
	mov	r7, r0
	b	.L12
.L25:
	mov	r1, r2
	bl	calc_reclaim_items_nr
	lsl	r10, r0, #1
	b	.L10
.L24:
	mov	r1, r6
	mov	r0, r4
	bl	calc_reclaim_items_nr
	mov	r1, r0
	b	.L14
.L2:
	ldr	r3, .L26+8
	ldr	r7, [r3]
	rsb	r7, r7, #0
	b	.L12
.L27:
	.align	2
.L26:
	.word	CHUNK_ALLOC_NO_FORCE
	.word	CHUNK_ALLOC_FORCE
	.word	ENOSPC
	.size	flush_space, .-flush_space
	.comm	ENOSPC,4,4
	.comm	CHUNK_ALLOC_NO_FORCE,4,4
	.comm	CHUNK_ALLOC_FORCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
