	.file	"extr_file.c_f2fs_insert_range.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	f2fs_insert_range, @function
f2fs_insert_range:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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	ebx, edx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	call	F2FS_I_SB@PLT
	mov	rdi, rbp
	mov	r14, rax
	call	i_size_read@PLT
	mov	rdi, rbp
	lea	r12d, [rax+rbx]
	mov	esi, r12d
	call	inode_newsize_ok@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L16
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L16:
	.cfi_restore_state
	mov	rdi, rbp
	call	i_size_read@PLT
	cmp	eax, r13d
	jle	.L4
	mov	eax, DWORD PTR F2FS_BLKSIZE[rip]
	mov	edx, ebx
	or	edx, r13d
	sub	eax, 1
	test	eax, edx
	je	.L17
.L4:
	mov	r15d, DWORD PTR EINVAL[rip]
	neg	r15d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rbp
	call	f2fs_convert_inline_inode@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L1
	mov	esi, 1
	mov	rdi, r14
	call	f2fs_balance_fs@PLT
	mov	rdi, rbp
	call	F2FS_I@PLT
	mov	rdi, rax
	call	down_write@PLT
	mov	rdi, rbp
	call	i_size_read@PLT
	mov	edx, 1
	mov	rdi, rbp
	mov	esi, eax
	call	f2fs_truncate_blocks@PLT
	mov	rdi, rbp
	mov	r15d, eax
	call	F2FS_I@PLT
	mov	rdi, rax
	call	up_write@PLT
	test	r15d, r15d
	jne	.L1
	mov	edx, DWORD PTR LLONG_MAX[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, r13d
	call	filemap_write_and_wait_range@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L1
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	add	ebx, r13d
	mov	eax, r13d
	mov	rdi, rbp
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	sar	ebx, cl
	sar	eax, cl
	mov	ecx, ebx
	mov	DWORD PTR 24[rsp], ebx
	mov	ebx, eax
	sub	ecx, eax
	mov	DWORD PTR 16[rsp], esi
	mov	DWORD PTR 28[rsp], ecx
	mov	DWORD PTR 12[rsp], eax
	call	i_size_read@PLT
	mov	esi, DWORD PTR 16[rsp]
	mov	edi, eax
	call	DIV_ROUND_UP@PLT
	mov	rdi, rbp
	mov	DWORD PTR 16[rsp], eax
	call	F2FS_I@PLT
	mov	rdx, QWORD PTR WRITE[rip]
	mov	rax, QWORD PTR 8[rax]
	lea	rdi, [rax+rdx*4]
	call	down_write@PLT
	mov	rdi, rbp
	call	F2FS_I@PLT
	mov	rdi, rax
	call	down_write@PLT
	mov	esi, r13d
	mov	rdi, rbp
	call	truncate_pagecache@PLT
	mov	ecx, DWORD PTR 16[rsp]
	cmp	ebx, ecx
	jge	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r15d, DWORD PTR 24[rsp]
	cmp	r15d, ecx
	jl	.L6
	sub	ecx, DWORD PTR 12[rsp]
	mov	rdi, r14
	mov	ebx, ecx
	call	f2fs_lock_op@PLT
	mov	rdi, rbp
	call	f2fs_drop_extent_tree@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	ecx, r15d
	mov	rdi, rbp
	xor	r9d, r9d
	mov	r8d, ebx
	mov	rsi, rbp
	call	__exchange_data_block@PLT
	mov	rdi, r14
	mov	r15d, eax
	call	f2fs_unlock_op@PLT
.L5:
	mov	rdi, rbp
	call	F2FS_I@PLT
	mov	rdi, rax
	call	up_write@PLT
	mov	rdi, rbp
	call	F2FS_I@PLT
	mov	rdx, QWORD PTR WRITE[rip]
	mov	rax, QWORD PTR 8[rax]
	lea	rdi, [rax+rdx*4]
	call	up_write@PLT
	mov	rdi, rbp
	call	F2FS_I@PLT
	mov	rdi, rax
	call	down_write@PLT
	mov	edx, DWORD PTR LLONG_MAX[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, r13d
	call	filemap_write_and_wait_range@PLT
	mov	esi, r13d
	mov	rdi, rbp
	call	truncate_pagecache@PLT
	mov	rdi, rbp
	call	F2FS_I@PLT
	mov	rdi, rax
	call	up_write@PLT
	test	r15d, r15d
	jne	.L1
	mov	esi, r12d
	mov	rdi, rbp
	call	f2fs_i_size_write@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r15d, DWORD PTR 28[rsp]
	mov	ebx, ecx
	mov	rdi, r14
	mov	DWORD PTR 20[rsp], ecx
	sub	ebx, r15d
	cmp	ebx, DWORD PTR 12[rsp]
	setg	BYTE PTR 16[rsp]
	call	f2fs_lock_op@PLT
	mov	rdi, rbp
	call	f2fs_drop_extent_tree@PLT
	mov	ecx, DWORD PTR 20[rsp]
	xor	r9d, r9d
	mov	r8d, r15d
	mov	rdi, rbp
	mov	edx, ebx
	mov	rsi, rbp
	call	__exchange_data_block@PLT
	mov	rdi, r14
	mov	r15d, eax
	call	f2fs_unlock_op@PLT
	test	r15d, r15d
	jne	.L5
	cmp	BYTE PTR 16[rsp], 0
	je	.L5
	mov	ecx, ebx
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	f2fs_insert_range, .-f2fs_insert_range
	.comm	WRITE,8,8
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	LLONG_MAX,4,4
	.comm	F2FS_BLKSIZE,4,4
	.comm	EINVAL,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_f2fs_insert_range.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	f2fs_insert_range, %function
f2fs_insert_range:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	mov	r5, r2
	mov	r4, r0
	mov	r7, r1
	bl	F2FS_I_SB
	mov	r8, r0
	mov	r0, r4
	bl	i_size_read
	add	r6, r0, r5
	mov	r1, r6
	mov	r0, r4
	bl	inode_newsize_ok
	subs	fp, r0, #0
	beq	.L12
.L1:
	mov	r0, fp
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r0, r4
	bl	i_size_read
	cmp	r0, r7
	ble	.L4
	ldr	r2, .L15
	orr	r3, r5, r7
	ldr	r2, [r2]
	sub	r2, r2, #1
	tst	r2, r3
	beq	.L13
.L4:
	ldr	r3, .L15+4
	ldr	r0, [r3]
	rsb	fp, r0, #0
	mov	r0, fp
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	mov	r0, r4
	bl	f2fs_convert_inline_inode
	subs	fp, r0, #0
	bne	.L1
	mov	r1, #1
	mov	r0, r8
	bl	f2fs_balance_fs
	mov	r0, r4
	bl	F2FS_I
	bl	down_write
	mov	r0, r4
	bl	i_size_read
	mov	r2, #1
	mov	r1, r0
	mov	r0, r4
	bl	f2fs_truncate_blocks
	mov	fp, r0
	mov	r0, r4
	bl	F2FS_I
	bl	up_write
	cmp	fp, #0
	bne	.L1
	ldr	r3, .L15+8
	mov	r1, r7
	ldr	r2, [r3]
	ldr	r0, [r4]
	bl	filemap_write_and_wait_range
	subs	fp, r0, #0
	bne	.L1
	ldr	r2, .L15+12
	add	r5, r5, r7
	ldr	r10, [r2]
	mov	r0, r4
	asr	r9, r5, r10
	str	r9, [sp, #12]
	bl	i_size_read
	ldr	r2, .L15+16
	asr	r10, r7, r10
	ldr	r1, [r2]
	bl	DIV_ROUND_UP
	mov	r5, r0
	mov	r0, r4
	bl	F2FS_I
	ldr	r3, .L15+20
	ldr	r0, [r0, #4]
	ldr	ip, [r3]
	sub	r9, r9, r10
	add	r0, r0, ip, lsl #2
	bl	down_write
	mov	r0, r4
	bl	F2FS_I
	bl	down_write
	mov	r1, r7
	mov	r0, r4
	bl	truncate_pagecache
	cmp	r10, r5
	bge	.L5
	str	fp, [sp, #16]
	mov	fp, r9
	str	r6, [sp, #20]
.L8:
	ldr	r3, [sp, #12]
	sub	r9, r5, fp
	cmp	r3, r5
	blt	.L6
	mov	r0, r8
	ldr	r6, [sp, #20]
	bl	f2fs_lock_op
	mov	r0, r4
	bl	f2fs_drop_extent_tree
	mov	r1, #0
	sub	r2, r5, r10
	str	r2, [sp]
	str	r1, [sp, #4]
	mov	r2, r10
	mov	r1, r4
	mov	r0, r4
	ldr	r3, [sp, #12]
	bl	__exchange_data_block
	mov	fp, r0
	mov	r0, r8
	bl	f2fs_unlock_op
.L5:
	mov	r0, r4
	bl	F2FS_I
	bl	up_write
	mov	r0, r4
	bl	F2FS_I
	ldr	r3, .L15+20
	ldr	r0, [r0, #4]
	ldr	r1, [r3]
	add	r0, r0, r1, lsl #2
	bl	up_write
	mov	r0, r4
	bl	F2FS_I
	bl	down_write
	ldr	r3, .L15+8
	mov	r1, r7
	ldr	r2, [r3]
	ldr	r0, [r4]
	bl	filemap_write_and_wait_range
	mov	r1, r7
	mov	r0, r4
	bl	truncate_pagecache
	mov	r0, r4
	bl	F2FS_I
	bl	up_write
	cmp	fp, #0
	bne	.L1
	mov	r1, r6
	mov	r0, r4
	bl	f2fs_i_size_write
	b	.L1
.L6:
	mov	r0, r8
	bl	f2fs_lock_op
	mov	r0, r4
	bl	f2fs_drop_extent_tree
	ldr	r3, [sp, #16]
	mov	r2, r9
	mov	r1, r4
	str	r3, [sp, #4]
	mov	r0, r4
	mov	r3, r5
	str	fp, [sp]
	bl	__exchange_data_block
	cmp	r9, r10
	mov	r5, r0
	movle	r6, #0
	movgt	r6, #1
	mov	r0, r8
	bl	f2fs_unlock_op
	cmp	r5, #0
	moveq	r3, r6
	movne	r3, #0
	cmp	r3, #0
	movne	r5, r9
	bne	.L8
.L14:
	mov	fp, r5
	ldr	r6, [sp, #20]
	b	.L5
.L16:
	.align	2
.L15:
	.word	F2FS_BLKSIZE
	.word	EINVAL
	.word	LLONG_MAX
	.word	PAGE_SHIFT
	.word	PAGE_SIZE
	.word	WRITE
	.size	f2fs_insert_range, .-f2fs_insert_range
	.comm	WRITE,4,4
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	LLONG_MAX,4,4
	.comm	F2FS_BLKSIZE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
