	.file	"extr_reiserfs.c_grub_reiserfs_compare_keys.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	grub_reiserfs_compare_keys, @function
grub_reiserfs_compare_keys:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L15
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	rsi, rsi
	je	.L9
	mov	rbp, rdi
	mov	edi, DWORD PTR 4[rdi]
	call	grub_le_to_cpu32@PLT
	mov	edi, DWORD PTR 4[r12]
	mov	rbx, rax
	call	grub_le_to_cpu32@PLT
	cmp	rbx, rax
	jl	.L5
	jle	.L4
.L6:
	mov	eax, 1
.L1:
	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
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	call	grub_le_to_cpu32@PLT
	mov	edi, DWORD PTR [r12]
	mov	rbx, rax
	call	grub_le_to_cpu32@PLT
	cmp	rbx, rax
	jl	.L5
	jg	.L6
	mov	rdi, rbp
	call	grub_reiserfs_get_key_offset@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	grub_reiserfs_get_key_offset@PLT
	cmp	rbx, rax
	jl	.L5
	jg	.L6
	mov	rdi, rbp
	call	grub_reiserfs_get_key_type@PLT
	mov	rdi, r12
	mov	ebx, eax
	call	grub_reiserfs_get_key_type@PLT
	mov	ecx, DWORD PTR GRUB_REISERFS_ANY[rip]
	mov	edx, eax
	cmp	ebx, ecx
	je	.L20
.L7:
	cmp	edx, ecx
	je	.L21
.L8:
	cmp	ebx, edx
	jb	.L5
	seta	al
	movzx	eax, al
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	xor	eax, eax
	cmp	edx, DWORD PTR GRUB_REISERFS_DIRECT[rip]
	je	.L1
	cmp	edx, DWORD PTR GRUB_REISERFS_INDIRECT[rip]
	jne	.L7
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	xor	eax, eax
	cmp	ebx, DWORD PTR GRUB_REISERFS_DIRECT[rip]
	je	.L1
	cmp	ebx, DWORD PTR GRUB_REISERFS_INDIRECT[rip]
	jne	.L8
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, -2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, -1
	jmp	.L1
.L15:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	mov	eax, -2
	ret
	.cfi_endproc
.LFE0:
	.size	grub_reiserfs_compare_keys, .-grub_reiserfs_compare_keys
	.comm	GRUB_REISERFS_INDIRECT,4,4
	.comm	GRUB_REISERFS_DIRECT,4,4
	.comm	GRUB_REISERFS_ANY,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_reiserfs.c_grub_reiserfs_compare_keys.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	grub_reiserfs_compare_keys, %function
grub_reiserfs_compare_keys:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r1
	cmp	r0, #0
	lsr	r3, r3, #5
	push	{r4, r5, r6, r7, r8, lr}
	movne	r4, r3
	moveq	r4, #1
	cmp	r4, #0
	bne	.L9
	mov	r7, r0
	ldr	r0, [r0, #4]
	mov	r6, r1
	bl	grub_le_to_cpu32
	mov	r5, r0
	ldr	r0, [r6, #4]
	bl	grub_le_to_cpu32
	cmp	r5, r0
	blt	.L5
	ble	.L4
.L6:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r0, [r7]
	bl	grub_le_to_cpu32
	mov	r5, r0
	ldr	r0, [r6]
	bl	grub_le_to_cpu32
	cmp	r5, r0
	blt	.L5
	bgt	.L6
	mov	r0, r7
	bl	grub_reiserfs_get_key_offset
	mov	r5, r0
	mov	r0, r6
	bl	grub_reiserfs_get_key_offset
	cmp	r5, r0
	blt	.L5
	bgt	.L6
	mov	r0, r7
	bl	grub_reiserfs_get_key_type
	mov	r5, r0
	mov	r0, r6
	bl	grub_reiserfs_get_key_type
	ldr	r3, .L18
	ldr	r3, [r3]
	cmp	r5, r3
	beq	.L16
.L7:
	cmp	r0, r3
	beq	.L17
.L8:
	cmp	r5, r0
	bcc	.L5
	movhi	r0, #1
	movls	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r2, .L18+4
	ldr	r2, [r2]
	cmp	r0, r2
	beq	.L13
	ldr	r2, .L18+8
	ldr	r2, [r2]
	cmp	r0, r2
	bne	.L7
.L13:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	cmp	r5, r3
	beq	.L13
	ldr	r3, .L18+8
	ldr	r3, [r3]
	cmp	r5, r3
	bne	.L8
	b	.L13
.L9:
	mvn	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	.align	2
.L18:
	.word	GRUB_REISERFS_ANY
	.word	GRUB_REISERFS_DIRECT
	.word	GRUB_REISERFS_INDIRECT
	.size	grub_reiserfs_compare_keys, .-grub_reiserfs_compare_keys
	.comm	GRUB_REISERFS_INDIRECT,4,4
	.comm	GRUB_REISERFS_DIRECT,4,4
	.comm	GRUB_REISERFS_ANY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
