	.file	"extr_file.c_f2fs_seek_block.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	f2fs_seek_block, @function
f2fs_seek_block:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	r13, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[r13]
	mov	rdi, r13
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 12[rsp], eax
	call	inode_lock@PLT
	mov	rdi, r13
	call	i_size_read@PLT
	mov	DWORD PTR 32[rsp], eax
	cmp	ebp, eax
	jl	.L28
.L14:
	mov	rdi, r13
	call	inode_unlock@PLT
	mov	eax, DWORD PTR ENXIO[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 72[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L29
	add	rsp, 88
	.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
.L28:
	.cfi_restore_state
	mov	rdi, r13
	call	f2fs_has_inline_data@PLT
	test	rax, rax
	jne	.L6
	mov	rdi, r13
	call	f2fs_has_inline_dentry@PLT
	test	rax, rax
	je	.L30
.L6:
	cmp	DWORD PTR SEEK_HOLE[rip], ebx
	je	.L4
.L5:
	mov	rdi, r13
	call	inode_unlock@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, ebp
	mov	rdi, r12
	call	vfs_setpos@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	r14d, ebp
	mov	edi, DWORD PTR 0[r13]
	mov	edx, ebx
	sar	r14d, cl
	movsx	r14, r14d
	mov	rsi, r14
	call	__get_first_dirty_index@PLT
	mov	QWORD PTR 16[rsp], rax
	lea	rax, 48[rsp]
	mov	QWORD PTR 40[rsp], rax
.L18:
	mov	r15, QWORD PTR 40[rsp]
	xor	edx, edx
	xor	r8d, r8d
	xor	ecx, ecx
	mov	rsi, r13
	mov	rdi, r15
	call	set_new_dnode@PLT
	mov	edx, DWORD PTR LOOKUP_NODE[rip]
	mov	rsi, r14
	mov	rdi, r15
	call	f2fs_get_dnode_of_data@PLT
	test	eax, eax
	je	.L7
	add	eax, DWORD PTR ENOENT[rip]
	jne	.L14
.L8:
	cmp	DWORD PTR SEEK_DATA[rip], ebx
	je	.L31
.L10:
	cmp	DWORD PTR SEEK_HOLE[rip], ebx
	jne	.L5
	mov	eax, DWORD PTR 32[rsp]
	cmp	eax, ebp
	cmovle	ebp, eax
	mov	DWORD PTR 32[rsp], ebp
.L4:
	mov	ebp, DWORD PTR 32[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR ENOENT[rip]
	test	eax, eax
	je	.L8
	mov	edi, DWORD PTR 56[rsp]
	mov	rsi, r13
	call	ADDRS_PER_PAGE@PLT
	mov	rdx, QWORD PTR 48[rsp]
	mov	QWORD PTR 24[rsp], rax
	cmp	rdx, rax
	jl	.L16
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR 48[rsp]
	add	r14, 1
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	ebp, r14d
	mov	r15d, r14d
	lea	rdx, 1[rax]
	sal	ebp, cl
	mov	QWORD PTR 48[rsp], rdx
	cmp	rdx, QWORD PTR 24[rsp]
	jge	.L17
.L16:
	mov	edi, DWORD PTR 60[rsp]
	mov	esi, DWORD PTR 56[rsp]
	call	datablock_addr@PLT
	mov	edi, eax
	mov	r15d, eax
	call	__is_valid_data_blkaddr@PLT
	test	rax, rax
	je	.L13
	mov	edx, DWORD PTR DATA_GENERIC_ENHANCE[rip]
	mov	rdi, r13
	mov	DWORD PTR 36[rsp], edx
	call	F2FS_I_SB@PLT
	mov	edx, DWORD PTR 36[rsp]
	mov	esi, r15d
	mov	edi, eax
	call	f2fs_is_valid_blkaddr@PLT
	test	eax, eax
	je	.L32
.L13:
	mov	rdi, r13
	call	F2FS_I_SB@PLT
	mov	rdx, QWORD PTR 16[rsp]
	mov	r8d, ebx
	mov	rcx, r14
	mov	edi, eax
	mov	esi, r15d
	call	__found_offset@PLT
	test	rax, rax
	je	.L15
	mov	rdi, QWORD PTR 40[rsp]
	call	f2fs_put_dnode@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, QWORD PTR 40[rsp]
	mov	rsi, r14
	call	f2fs_get_next_page_offset@PLT
	mov	r14, rax
	mov	r15d, eax
.L11:
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	sal	r15d, cl
	mov	ebp, r15d
	cmp	DWORD PTR 32[rsp], r15d
	jg	.L18
	cmp	DWORD PTR SEEK_DATA[rip], ebx
	jne	.L10
	jmp	.L14
.L12:
	mov	r15d, r14d
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, QWORD PTR 40[rsp]
	call	f2fs_put_dnode@PLT
	jmp	.L11
.L32:
	mov	rdi, QWORD PTR 40[rsp]
	call	f2fs_put_dnode@PLT
	jmp	.L14
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	f2fs_seek_block, .-f2fs_seek_block
	.comm	SEEK_HOLE,4,4
	.comm	SEEK_DATA,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	LOOKUP_NODE,4,4
	.comm	ENXIO,4,4
	.comm	ENOENT,4,4
	.comm	DATA_GENERIC_ENHANCE,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_seek_block.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	f2fs_seek_block, %function
f2fs_seek_block:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0]
	mov	r8, r2
	ldr	r4, [r3]
	ldr	r2, .L33
	ldr	r3, [r4, #4]
	sub	sp, sp, #44
	mov	r6, r0
	mov	r0, r4
	mov	r5, r1
	ldr	r2, [r2]
	str	r2, [sp, #36]
	mov	r2,#0
	ldr	fp, [r3]
	bl	inode_lock
	mov	r0, r4
	bl	i_size_read
	cmp	r5, r0
	blt	.L28
.L14:
	mov	r0, r4
	bl	inode_unlock
	ldr	r3, .L33+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L28:
	mov	r7, r0
	mov	r0, r4
	bl	f2fs_has_inline_data
	cmp	r0, #0
	bne	.L6
	mov	r0, r4
	bl	f2fs_has_inline_dentry
	cmp	r0, #0
	beq	.L30
.L6:
	ldr	r3, .L33+8
	ldr	r3, [r3]
	cmp	r3, r8
	beq	.L4
.L5:
	mov	r0, r4
	bl	inode_unlock
	mov	r2, fp
	mov	r1, r5
	mov	r0, r6
	bl	vfs_setpos
	b	.L1
.L30:
	ldr	r3, .L33+12
	mov	r2, r8
	ldr	r9, [r3]
	ldr	r0, [r4]
	asr	r9, r5, r9
	mov	r1, r9
	bl	__get_first_dirty_index
	str	fp, [sp, #12]
	str	r0, [sp, #20]
	str	r6, [sp, #16]
.L17:
	mov	r3, #0
	mov	r1, r4
	mov	r2, r3
	str	r3, [sp]
	add	r0, sp, #24
	bl	set_new_dnode
	ldr	r3, .L33+16
	mov	r1, r9
	ldr	r2, [r3]
	add	r0, sp, #24
	bl	f2fs_get_dnode_of_data
	ldr	r3, .L33+20
	cmp	r0, #0
	ldr	r3, [r3]
	beq	.L7
	cmn	r0, r3
	bne	.L14
.L8:
	ldr	r3, .L33+24
	ldr	r3, [r3]
	cmp	r3, r8
	beq	.L31
	ldr	fp, [sp, #12]
	ldr	r6, [sp, #16]
.L10:
	ldr	r3, .L33+8
	ldr	r3, [r3]
	cmp	r3, r8
	bne	.L5
	cmp	r7, r5
	movge	r7, r5
.L4:
	mov	r5, r7
	b	.L5
.L7:
	cmp	r3, #0
	beq	.L8
	mov	r1, r4
	ldr	r0, [sp, #28]
	bl	ADDRS_PER_PAGE
	ldr	r2, [sp, #24]
	mov	r10, r0
	cmp	r2, r0
	bge	.L12
	ldr	fp, [sp, #20]
	b	.L16
.L15:
	ldr	r2, [sp, #24]
	ldr	r3, .L33+12
	add	r2, r2, #1
	ldr	r5, [r3]
	add	r9, r9, #1
	cmp	r2, r10
	str	r2, [sp, #24]
	lsl	r5, r9, r5
	bge	.L12
.L16:
	ldr	r1, [sp, #28]
	ldr	r0, [sp, #32]
	bl	datablock_addr
	mov	r6, r0
	bl	__is_valid_data_blkaddr
	cmp	r0, #0
	beq	.L13
	mov	r0, r4
	bl	F2FS_I_SB
	ldr	r3, .L33+28
	mov	r1, r6
	ldr	r2, [r3]
	bl	f2fs_is_valid_blkaddr
	cmp	r0, #0
	beq	.L32
.L13:
	mov	r0, r4
	bl	F2FS_I_SB
	mov	r1, r6
	mov	r3, r9
	mov	r2, fp
	str	r8, [sp]
	bl	__found_offset
	cmp	r0, #0
	beq	.L15
	add	r0, sp, #24
	ldr	fp, [sp, #12]
	ldr	r6, [sp, #16]
	bl	f2fs_put_dnode
	b	.L10
.L31:
	mov	r1, r9
	add	r0, sp, #24
	bl	f2fs_get_next_page_offset
	mov	r9, r0
.L11:
	ldr	r3, .L33+12
	ldr	r5, [r3]
	cmp	r7, r9, lsl r5
	lsl	r5, r9, r5
	bgt	.L17
	ldr	r3, .L33+24
	ldr	fp, [sp, #12]
	ldr	r3, [r3]
	ldr	r6, [sp, #16]
	cmp	r3, r8
	bne	.L10
	b	.L14
.L12:
	add	r0, sp, #24
	bl	f2fs_put_dnode
	b	.L11
.L32:
	add	r0, sp, #24
	bl	f2fs_put_dnode
	b	.L14
.L29:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	.LC0
	.word	ENXIO
	.word	SEEK_HOLE
	.word	PAGE_SHIFT
	.word	LOOKUP_NODE
	.word	ENOENT
	.word	SEEK_DATA
	.word	DATA_GENERIC_ENHANCE
	.size	f2fs_seek_block, .-f2fs_seek_block
	.comm	SEEK_HOLE,4,4
	.comm	SEEK_DATA,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	LOOKUP_NODE,4,4
	.comm	ENXIO,4,4
	.comm	ENOENT,4,4
	.comm	DATA_GENERIC_ENHANCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
