	.file	"extr_file.c_ceph_fallocate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ceph_fallocate, @function
ceph_fallocate:
.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
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], rax
	call	file_inode@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	ceph_inode@PLT
	mov	DWORD PTR 28[rsp], 0
	mov	r14, rax
	mov	eax, DWORD PTR FALLOC_FL_KEEP_SIZE[rip]
	or	eax, DWORD PTR FALLOC_FL_PUNCH_HOLE[rip]
	cmp	eax, ebx
	je	.L2
.L23:
	mov	rax, QWORD PTR EOPNOTSUPP[rip]
	neg	rax
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L25
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	call	S_ISREG@PLT
	test	eax, eax
	je	.L23
	xor	eax, eax
	call	ceph_alloc_cap_flush@PLT
	mov	QWORD PTR 32[rsp], rax
	test	rax, rax
	je	.L26
	mov	rdi, rbp
	call	inode_lock@PLT
	mov	rdi, rbp
	call	ceph_snap@PLT
	cmp	rax, QWORD PTR CEPH_NOSNAP[rip]
	je	.L6
	mov	ebx, DWORD PTR EROFS[rip]
	neg	ebx
.L7:
	mov	rdi, rbp
	call	inode_unlock@PLT
	mov	rdi, QWORD PTR 32[rsp]
	call	ceph_free_cap_flush@PLT
	movsx	rax, ebx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR CEPH_INLINE_NONE[rip]
	cmp	QWORD PTR [r14], rax
	je	.L15
	xor	esi, esi
	mov	rdi, r15
	call	ceph_uninline_data@PLT
	mov	ebx, eax
	test	eax, eax
	js	.L7
.L8:
	mov	rdi, rbp
	call	i_size_read@PLT
	cmp	rax, r12
	jle	.L7
	lea	rcx, [r12+r13]
	mov	rdx, rax
	sub	rdx, r12
	cmp	rcx, rax
	mov	rax, QWORD PTR 8[rsp]
	cmovg	r13, rdx
	mov	edx, DWORD PTR CEPH_CAP_FILE_BUFFER[rip]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR CEPH_FILE_MODE_LAZY[rip], eax
	je	.L10
	or	edx, DWORD PTR CEPH_CAP_FILE_LAZYIO[rip]
.L10:
	mov	esi, DWORD PTR CEPH_CAP_FILE_WR[rip]
	xor	r9d, r9d
	lea	r8, 28[rsp]
	xor	ecx, ecx
	mov	rdi, r15
	call	ceph_get_caps@PLT
	mov	ebx, eax
	test	eax, eax
	js	.L7
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, rbp
	call	ceph_zero_pagecache_range@PLT
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, rbp
	call	ceph_zero_objects@PLT
	mov	ebx, eax
	test	eax, eax
	je	.L27
.L12:
	mov	esi, DWORD PTR 28[rsp]
	mov	rdi, r14
	call	ceph_put_cap_refs@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	xor	ebx, ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rax, QWORD PTR ENOMEM[rip]
	neg	rax
	jmp	.L1
.L27:
	lea	r13, 8[r14]
	mov	rdi, r13
	call	spin_lock@PLT
	mov	rax, QWORD PTR CEPH_INLINE_NONE[rip]
	mov	esi, DWORD PTR CEPH_CAP_FILE_WR[rip]
	mov	rdi, r14
	lea	rdx, 32[rsp]
	mov	QWORD PTR [r14], rax
	call	__ceph_mark_dirty_caps@PLT
	mov	rdi, r13
	mov	r12d, eax
	call	spin_unlock@PLT
	test	r12d, r12d
	je	.L12
	mov	esi, r12d
	mov	rdi, rbp
	call	__mark_inode_dirty@PLT
	jmp	.L12
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ceph_fallocate, .-ceph_fallocate
	.comm	FALLOC_FL_PUNCH_HOLE,4,4
	.comm	FALLOC_FL_KEEP_SIZE,4,4
	.comm	EROFS,4,4
	.comm	EOPNOTSUPP,8,8
	.comm	ENOMEM,8,8
	.comm	CEPH_NOSNAP,8,8
	.comm	CEPH_INLINE_NONE,8,8
	.comm	CEPH_FILE_MODE_LAZY,4,4
	.comm	CEPH_CAP_FILE_WR,4,4
	.comm	CEPH_CAP_FILE_LAZYIO,4,4
	.comm	CEPH_CAP_FILE_BUFFER,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_file.c_ceph_fallocate.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ceph_fallocate, %function
ceph_fallocate:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r3
	ldr	r3, .L28
	sub	sp, sp, #28
	mov	fp, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r5, r0
	ldr	r10, [r0]
	bl	file_inode
	mov	r4, #0
	mov	r6, r0
	bl	ceph_inode
	ldr	r3, .L28+4
	ldr	r2, .L28+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r4, [sp, #16]
	orr	r3, r3, r2
	cmp	r3, fp
	beq	.L2
.L23:
	ldr	r3, .L28+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r8, r0
	ldr	r0, [r6]
	bl	S_ISREG
	cmp	r0, #0
	beq	.L23
	bl	ceph_alloc_cap_flush
	cmp	r0, #0
	str	r0, [sp, #12]
	beq	.L26
	mov	r0, r6
	bl	inode_lock
	mov	r0, r6
	bl	ceph_snap
	ldr	r3, .L28+16
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L6
	ldr	r3, .L28+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L7:
	mov	r0, r6
	bl	inode_unlock
	ldr	r0, [sp, #12]
	bl	ceph_free_cap_flush
	b	.L1
.L6:
	ldr	fp, .L28+24
	ldr	r2, [r8]
	ldr	r3, [fp]
	cmp	r2, r3
	beq	.L8
	mov	r1, r4
	mov	r0, r5
	bl	ceph_uninline_data
	subs	r4, r0, #0
	blt	.L7
.L8:
	mov	r0, r6
	bl	i_size_read
	cmp	r0, r7
	ble	.L7
	add	r3, r7, r9
	cmp	r3, r0
	ldr	r3, .L28+28
	ldr	r1, [r10]
	ldr	r2, [r3]
	ldr	r3, .L28+32
	subgt	r9, r0, r7
	tst	r1, r2
	ldr	r2, [r3]
	ldrne	r3, .L28+36
	ldr	r10, .L28+40
	ldrne	r3, [r3]
	add	ip, sp, #16
	orrne	r2, r2, r3
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r1, [r10]
	mov	r0, r5
	str	ip, [sp]
	bl	ceph_get_caps
	subs	r4, r0, #0
	blt	.L7
	mov	r2, r9
	mov	r1, r7
	mov	r0, r6
	bl	ceph_zero_pagecache_range
	mov	r2, r9
	mov	r1, r7
	mov	r0, r6
	bl	ceph_zero_objects
	subs	r4, r0, #0
	beq	.L27
.L12:
	mov	r0, r8
	ldr	r1, [sp, #16]
	bl	ceph_put_cap_refs
	b	.L7
.L26:
	ldr	r3, .L28+44
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L27:
	add	r7, r8, #4
	mov	r0, r7
	bl	spin_lock
	ldr	r3, [fp]
	ldr	r1, [r10]
	add	r2, sp, #12
	str	r3, [r8]
	mov	r0, r8
	bl	__ceph_mark_dirty_caps
	mov	r5, r0
	mov	r0, r7
	bl	spin_unlock
	cmp	r5, #0
	beq	.L12
	mov	r1, r5
	mov	r0, r6
	bl	__mark_inode_dirty
	b	.L12
.L25:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC0
	.word	FALLOC_FL_KEEP_SIZE
	.word	FALLOC_FL_PUNCH_HOLE
	.word	EOPNOTSUPP
	.word	CEPH_NOSNAP
	.word	EROFS
	.word	CEPH_INLINE_NONE
	.word	CEPH_FILE_MODE_LAZY
	.word	CEPH_CAP_FILE_BUFFER
	.word	CEPH_CAP_FILE_LAZYIO
	.word	CEPH_CAP_FILE_WR
	.word	ENOMEM
	.size	ceph_fallocate, .-ceph_fallocate
	.comm	FALLOC_FL_PUNCH_HOLE,4,4
	.comm	FALLOC_FL_KEEP_SIZE,4,4
	.comm	EROFS,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENOMEM,4,4
	.comm	CEPH_NOSNAP,4,4
	.comm	CEPH_INLINE_NONE,4,4
	.comm	CEPH_FILE_MODE_LAZY,4,4
	.comm	CEPH_CAP_FILE_WR,4,4
	.comm	CEPH_CAP_FILE_LAZYIO,4,4
	.comm	CEPH_CAP_FILE_BUFFER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
