	.file	"extr_xfs_bmap_util.c_xfs_free_file_space.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	xfs_free_file_space
	.type	xfs_free_file_space, @function
xfs_free_file_space:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r13, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 20[rsp], 0
	call	trace_xfs_free_file_space@PLT
	mov	rdi, r15
	call	xfs_qm_dqattach@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	test	rbx, rbx
	jle	.L1
	mov	rdx, rbx
	mov	rsi, rbp
	mov	rdi, r15
	call	xfs_flush_unmap_range@PLT
	test	eax, eax
	je	.L18
.L13:
	mov	r12d, eax
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	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
.L18:
	.cfi_restore_state
	mov	rdi, r13
	mov	rsi, rbp
	call	XFS_B_TO_FSB@PLT
	mov	rdi, r13
	lea	r13, 20[rsp]
	mov	r14, rax
	lea	rax, [rbx+rbp]
	mov	rsi, rax
	mov	QWORD PTR 8[rsp], rax
	call	XFS_B_TO_FSBT@PLT
	mov	QWORD PTR [rsp], rax
	cmp	r14, rax
	jl	.L4
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, QWORD PTR [rsp]
	mov	rcx, r13
	mov	rsi, r14
	mov	rdi, r15
	sub	rdx, r14
	call	xfs_unmap_extent@PLT
	test	eax, eax
	jne	.L13
.L4:
	mov	eax, DWORD PTR 20[rsp]
	test	eax, eax
	je	.L7
.L8:
	mov	rdi, r15
	call	XFS_ISIZE@PLT
	cmp	rax, rbp
	jle	.L1
	mov	rdi, r15
	call	XFS_ISIZE@PLT
	cmp	QWORD PTR 8[rsp], rax
	jg	.L20
.L9:
	mov	rdi, r15
	call	VFS_I@PLT
	xor	ecx, ecx
	mov	rdx, rbx
	mov	rsi, rbp
	mov	rdi, rax
	lea	r8, xfs_iomap_ops[rip]
	call	iomap_zero_range@PLT
	test	eax, eax
	jne	.L13
	mov	rdi, r15
	add	rbp, rbx
	call	XFS_ISIZE@PLT
	cmp	rbp, rax
	jl	.L1
	mov	rdi, rbp
	call	offset_in_page@PLT
	test	rax, rax
	jle	.L1
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	mov	rdi, rbp
	mov	r12d, DWORD PTR LLONG_MAX[rip]
	call	round_down@PLT
	mov	rdi, r15
	mov	ebp, eax
	call	VFS_I@PLT
	mov	edx, r12d
	mov	esi, ebp
	mov	edi, DWORD PTR [rax]
	call	filemap_write_and_wait_range@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, r15
	call	XFS_ISIZE@PLT
	sub	rax, rbp
	mov	rbx, rax
	jmp	.L9
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	xfs_free_file_space, .-xfs_free_file_space
	.comm	xfs_iomap_ops,4,4
	.comm	PAGE_SIZE,4,4
	.comm	LLONG_MAX,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_xfs_bmap_util.c_xfs_free_file_space.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	xfs_free_file_space
	.syntax unified
	.arm
	.fpu softvfp
	.type	xfs_free_file_space, %function
xfs_free_file_space:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r3, #0
	mov	r4, r0
	mov	r6, r2
	ldr	r2, .L21
	sub	sp, sp, #16
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	mov	r7, r1
	str	r3, [sp, #8]
	ldr	r10, [r0]
	bl	trace_xfs_free_file_space
	mov	r0, r4
	bl	xfs_qm_dqattach
	subs	r5, r0, #0
	bne	.L1
	cmp	r6, #0
	ble	.L1
	mov	r2, r6
	mov	r1, r7
	mov	r0, r4
	bl	xfs_flush_unmap_range
	cmp	r0, #0
	beq	.L18
.L13:
	mov	r5, r0
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	mov	r1, r7
	mov	r0, r10
	bl	XFS_B_TO_FSB
	add	r9, r6, r7
	mov	r8, r0
	mov	r1, r9
	mov	r0, r10
	bl	XFS_B_TO_FSBT
	cmp	r8, r0
	sublt	r10, r0, r8
	blt	.L4
	b	.L8
.L7:
	mov	r2, r10
	mov	r1, r8
	mov	r0, r4
	add	r3, sp, #8
	bl	xfs_unmap_extent
	cmp	r0, #0
	bne	.L13
.L4:
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L7
.L8:
	mov	r0, r4
	bl	XFS_ISIZE
	cmp	r0, r7
	ble	.L1
	mov	r0, r4
	bl	XFS_ISIZE
	cmp	r9, r0
	bgt	.L20
.L9:
	mov	r0, r4
	bl	VFS_I
	ldr	r2, .L21+4
	mov	r3, #0
	str	r2, [sp]
	mov	r1, r7
	mov	r2, r6
	bl	iomap_zero_range
	cmp	r0, #0
	bne	.L13
	mov	r0, r4
	bl	XFS_ISIZE
	add	r6, r6, r7
	cmp	r6, r0
	blt	.L1
	mov	r0, r6
	bl	offset_in_page
	cmp	r0, #0
	ble	.L1
	mov	r0, r4
	bl	VFS_I
	mov	r3, r0
	ldr	r2, .L21+8
	mov	r0, r6
	ldr	r1, [r2]
	ldr	r4, [r3]
	bl	round_down
	ldr	r3, .L21+12
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r4
	bl	filemap_write_and_wait_range
	mov	r5, r0
	b	.L1
.L20:
	mov	r0, r4
	bl	XFS_ISIZE
	sub	r6, r0, r7
	b	.L9
.L19:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	xfs_iomap_ops
	.word	PAGE_SIZE
	.word	LLONG_MAX
	.size	xfs_free_file_space, .-xfs_free_file_space
	.comm	xfs_iomap_ops,4,4
	.comm	PAGE_SIZE,4,4
	.comm	LLONG_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
