	.file	"extr_ext2.c_grub_ext4_find_leaf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	grub_ext4_find_leaf, @function
grub_ext4_find_leaf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	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
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR 12[r12]
	call	grub_le_to_cpu16@PLT
	cmp	eax, DWORD PTR EXT4_EXT_MAGIC[rip]
	jne	.L2
	cmp	QWORD PTR [r12], 0
	je	.L10
	lea	rbp, 24[r12]
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR 0[rbp]
	add	rbp, 12
	call	grub_le_to_cpu32@PLT
	cmp	eax, r13d
	jg	.L8
	add	ebx, 1
.L4:
	mov	edi, DWORD PTR 8[r12]
	call	grub_le_to_cpu16@PLT
	cmp	eax, ebx
	jg	.L7
.L8:
	lea	eax, -1[rbx]
	test	ebx, ebx
	je	.L2
	cdqe
	lea	rax, [rax+rax*2]
	lea	rbx, 16[r12+rax*4]
	mov	edi, DWORD PTR 4[rbx]
	call	grub_le_to_cpu16@PLT
	mov	edi, DWORD PTR [rbx]
	call	grub_le_to_cpu32@PLT
	mov	rdi, r14
	mov	ebx, eax
	call	EXT2_BLOCK_SIZE@PLT
	mov	rdi, r14
	mov	r12d, eax
	call	LOG2_EXT2_BLOCK_SIZE@PLT
	mov	esi, ebx
	mov	edi, DWORD PTR [r14]
	xor	edx, edx
	mov	ecx, eax
	mov	r8, r15
	sal	esi, cl
	mov	ecx, r12d
	call	grub_disk_read@PLT
	test	rax, rax
	jne	.L2
	mov	r12, r15
	jmp	.L9
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L10:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
	.cfi_endproc
.LFE0:
	.size	grub_ext4_find_leaf, .-grub_ext4_find_leaf
	.comm	EXT4_EXT_MAGIC,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_ext2.c_grub_ext4_find_leaf.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	grub_ext4_find_leaf, %function
grub_ext4_find_leaf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r0
	mov	r9, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r10, .L18
	sub	sp, sp, #8
.L9:
	ldr	r0, [r6, #8]
	bl	grub_le_to_cpu16
	ldr	r3, [r10]
	cmp	r0, r3
	bne	.L2
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L10
	mov	r5, r6
	mov	r4, #0
	b	.L4
.L7:
	ldr	r0, [r5, #20]
	bl	grub_le_to_cpu32
	cmp	r0, r7
	add	r5, r5, #12
	bgt	.L8
	add	r4, r4, #1
.L4:
	ldr	r0, [r6, #4]
	bl	grub_le_to_cpu16
	cmp	r0, r4
	bgt	.L7
.L8:
	cmp	r4, #0
	beq	.L2
	add	r4, r4, r4, lsl #1
	add	r3, r6, r4, lsl #2
	ldr	r0, [r3, #4]
	bl	grub_le_to_cpu16
	ldr	r0, [r6, r4, lsl #2]
	bl	grub_le_to_cpu32
	mov	r4, r0
	mov	r0, r8
	ldr	r5, [r8]
	bl	LOG2_EXT2_BLOCK_SIZE
	mov	r1, r0
	mov	r0, r8
	lsl	r4, r4, r1
	bl	EXT2_BLOCK_SIZE
	mov	r1, r4
	mov	r3, r0
	mov	r2, #0
	mov	r0, r5
	str	r9, [sp]
	bl	grub_disk_read
	cmp	r0, #0
	moveq	r6, r9
	beq	.L9
.L2:
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	.align	2
.L18:
	.word	EXT4_EXT_MAGIC
	.size	grub_ext4_find_leaf, .-grub_ext4_find_leaf
	.comm	EXT4_EXT_MAGIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
