	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_reiserfs_compare_keys
_grub_reiserfs_compare_keys:            ## @grub_reiserfs_compare_keys
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-2, %r14d
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.2:
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	callq	_grub_le_to_cpu32
	movq	%rax, %rbx
	movl	4(%r15), %edi
	callq	_grub_le_to_cpu32
	cmpq	%rax, %rbx
	jge	LBB0_4
LBB0_3:
	movl	$-1, %r14d
	jmp	LBB0_19
LBB0_4:
	movl	$1, %r14d
	jle	LBB0_5
LBB0_19:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r12), %edi
	callq	_grub_le_to_cpu32
	movq	%rax, %rbx
	movl	(%r15), %edi
	callq	_grub_le_to_cpu32
	cmpq	%rax, %rbx
	jl	LBB0_3
## %bb.7:
	jg	LBB0_19
## %bb.8:
	movq	%r12, %rdi
	callq	_grub_reiserfs_get_key_offset
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_grub_reiserfs_get_key_offset
	cmpq	%rax, %rbx
	jl	LBB0_3
## %bb.10:
	jg	LBB0_19
## %bb.11:
	movq	%r12, %rdi
	callq	_grub_reiserfs_get_key_type
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_grub_reiserfs_get_key_type
	movq	_GRUB_REISERFS_ANY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %ebx
	jne	LBB0_14
## %bb.12:
	movq	_GRUB_REISERFS_DIRECT@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	cmpl	(%rdx), %eax
	je	LBB0_19
## %bb.13:
	movq	_GRUB_REISERFS_INDIRECT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_19
LBB0_14:
	cmpl	%ecx, %eax
	jne	LBB0_17
## %bb.15:
	movq	_GRUB_REISERFS_DIRECT@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpl	(%rcx), %ebx
	je	LBB0_19
## %bb.16:
	movq	_GRUB_REISERFS_INDIRECT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	je	LBB0_19
LBB0_17:
	movl	$-1, %r14d
	cmpl	%eax, %ebx
	jb	LBB0_19
## %bb.18:
	seta	%al
	movzbl	%al, %r14d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_REISERFS_ANY,4,2          ## @GRUB_REISERFS_ANY
	.comm	_GRUB_REISERFS_DIRECT,4,2       ## @GRUB_REISERFS_DIRECT
	.comm	_GRUB_REISERFS_INDIRECT,4,2     ## @GRUB_REISERFS_INDIRECT
	.no_dead_strip	_grub_reiserfs_compare_keys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_reiserfs_compare_keys
_grub_reiserfs_compare_keys:            ; @grub_reiserfs_compare_keys
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	mov	w0, #-2
	cbz	x20, LBB0_6
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_6
; %bb.2:
	ldr	w0, [x20, #4]
	bl	_grub_le_to_cpu32
	mov	x21, x0
	ldr	w0, [x19, #4]
	bl	_grub_le_to_cpu32
	cmp	x21, x0
	b.ge	LBB0_4
LBB0_3:
	mov	w0, #-1
	b	LBB0_6
LBB0_4:
	b.le	LBB0_7
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w0, [x20]
	bl	_grub_le_to_cpu32
	mov	x21, x0
	ldr	w0, [x19]
	bl	_grub_le_to_cpu32
	cmp	x21, x0
	b.lt	LBB0_3
; %bb.8:
	b.gt	LBB0_5
; %bb.9:
	mov	x0, x20
	bl	_grub_reiserfs_get_key_offset
	mov	x21, x0
	mov	x0, x19
	bl	_grub_reiserfs_get_key_offset
	cmp	x21, x0
	b.lt	LBB0_3
; %bb.10:
	b.gt	LBB0_5
; %bb.11:
	mov	x0, x20
	bl	_grub_reiserfs_get_key_type
	mov	x20, x0
	mov	x0, x19
	bl	_grub_reiserfs_get_key_type
	mov	x8, x0
Lloh0:
	adrp	x9, _GRUB_REISERFS_ANY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GRUB_REISERFS_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w20, w9
	b.ne	LBB0_14
; %bb.12:
	mov	w0, #0
Lloh3:
	adrp	x10, _GRUB_REISERFS_DIRECT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _GRUB_REISERFS_DIRECT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w10
	b.eq	LBB0_6
; %bb.13:
Lloh6:
	adrp	x10, _GRUB_REISERFS_INDIRECT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _GRUB_REISERFS_INDIRECT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w10
	b.eq	LBB0_6
LBB0_14:
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.15:
	mov	w0, #0
Lloh9:
	adrp	x9, _GRUB_REISERFS_DIRECT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GRUB_REISERFS_DIRECT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w20, w9
	b.eq	LBB0_6
; %bb.16:
Lloh12:
	adrp	x9, _GRUB_REISERFS_INDIRECT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GRUB_REISERFS_INDIRECT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w20, w9
	b.eq	LBB0_6
LBB0_17:
	cmp	w20, w8
	b.lo	LBB0_3
; %bb.18:
	cset	w0, hi
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_REISERFS_ANY,4,2          ; @GRUB_REISERFS_ANY
	.comm	_GRUB_REISERFS_DIRECT,4,2       ; @GRUB_REISERFS_DIRECT
	.comm	_GRUB_REISERFS_INDIRECT,4,2     ; @GRUB_REISERFS_INDIRECT
	.no_dead_strip	_grub_reiserfs_compare_keys
.subsections_via_symbols
