	.file	"extr_extents.c_ext4_ext_find_goal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ext4_ext_find_goal, @function
ext4_ext_find_goal:
.LFB0:
	.cfi_startproc
	endbr64
	test	rsi, rsi
	je	.L13
	movsx	rax, DWORD PTR [rsi]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	lea	rax, [rax+rax*2]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	lea	rax, [rsi+rax*8]
	mov	r12, QWORD PTR 16[rax]
	test	r12, r12
	je	.L3
	mov	rdi, r12
	mov	rbx, rdx
	call	ext4_ext_pblock@PLT
	mov	edi, DWORD PTR [r12]
	mov	rbp, rax
	call	le32_to_cpu@PLT
	cmp	rax, rbx
	jge	.L4
	sub	rbx, rax
	lea	rax, [rbx+rbp]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L2
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, QWORD PTR [rax]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	ext4_inode_to_goal_block@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	sub	rax, rbx
	pop	rbx
	.cfi_def_cfa_offset 24
	sub	rbp, rax
	mov	rax, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	jmp	ext4_inode_to_goal_block@PLT
	.cfi_endproc
.LFE0:
	.size	ext4_ext_find_goal, .-ext4_ext_find_goal
	.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_extents.c_ext4_ext_find_goal.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ext4_ext_find_goal, %function
ext4_ext_find_goal:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	beq	.L13
	ldr	r3, [r1]
	push	{r4, r5, r6, lr}
	add	r3, r3, r3, lsl #1
	add	r1, r1, r3, lsl #2
	ldr	r5, [r1, #8]
	cmp	r5, #0
	beq	.L3
	mov	r0, r5
	mov	r4, r2
	bl	ext4_ext_pblock
	mov	r2, r0
	ldr	r0, [r5]
	mov	r5, r2
	bl	le32_to_cpu
	cmp	r0, r4
	sublt	r2, r4, r0
	subge	r2, r0, r4
	addlt	r0, r2, r5
	subge	r0, r5, r2
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r3, [r1, #4]
	cmp	r3, #0
	beq	.L2
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	pop	{r4, r5, r6, lr}
	b	ext4_inode_to_goal_block
.L13:
	b	ext4_inode_to_goal_block
	.size	ext4_ext_find_goal, .-ext4_ext_find_goal
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
