	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_reiserfs_get_item
_grub_reiserfs_get_item:                ## @grub_reiserfs_get_item
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GRUB_ERR_TEST_FAILURE@GOTPCREL(%rip), %rax
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.2:
	movq	%rdx, %rbx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.3:
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	callq	_grub_le_to_cpu16
	movl	%eax, %r13d
	movl	4(%r15), %edi
	callq	_grub_le_to_cpu32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_grub_malloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movq	%rax, %r14
	movq	$0, 24(%rbx)
	movl	(%r15), %edi
	movq	_GRUB_DISK_SECTOR_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %eax
	imull	%r13d, %eax
	movl	%r13d, %esi
	sarl	%cl, %esi
	imull	%edx, %esi
	movq	_GRUB_DISK_SECTOR_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	decl	%edx
	andl	%eax, %edx
	movl	%r13d, %ecx
	movq	%r14, %r8
	callq	_grub_disk_read
	movq	_grub_errno@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	%r14, %r13
	jne	LBB0_12
## %bb.5:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %edi
	callq	_grub_le_to_cpu16
	movq	%r13, %rbx
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_grub_dprintf
	cmpl	$-1, %r13d
	jl	LBB0_15
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_grub_dprintf
	leaq	L_.str.6(%rip), %rsi
	movq	_GRUB_ERR_FILE_READ_ERROR@GOTPCREL(%rip), %rax
	movq	%rbx, %r13
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
LBB0_10:
	xorl	%r13d, %r13d
LBB0_11:
	movl	(%rax), %edi
	callq	_grub_error
LBB0_12:
	movq	_grub_errno@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	setne	%dil
	callq	_assert
	movq	%r13, %rdi
	callq	_grub_free
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	setne	%dil
	callq	_assert
LBB0_13:
	movq	(%rbx), %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_15:
	movl	(%rbx), %edi
	callq	_grub_le_to_cpu16
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.7(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_grub_dprintf
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	addq	$8, %rbx
	testl	%r13d, %r13d
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	jle	LBB0_20
## %bb.16:
	movl	%r13d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rbx, %r13
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_grub_reiserfs_compare_keys
	testq	%rax, %rax
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%r14
	addq	$16, %r13
	cmpq	%r14, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_17
## %bb.19:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, 16(%rbx)
	jmp	LBB0_24
LBB0_20:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_22
LBB0_21:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
LBB0_22:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, 16(%rbx)
	cmpl	-60(%rbp), %r14d                ## 4-byte Folded Reload
	je	LBB0_24
## %bb.23:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_grub_reiserfs_compare_keys
	testq	%rax, %rax
	je	LBB0_26
LBB0_24:
	movq	$0, (%rbx)
	movq	_GRUB_REISERFS_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
LBB0_25:
	movq	_grub_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_assert
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_grub_free
	jmp	LBB0_13
LBB0_26:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movl	%r14d, 4(%rbx)
	movq	%r13, %rdi
	callq	_grub_reiserfs_get_key_type
	movl	%eax, 12(%rbx)
	addq	$8, %rbx
	movl	%r14d, %eax
	shlq	$4, %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	%rax, %rsi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_grub_memcpy
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_ERR_TEST_FAILURE,4,2      ## @GRUB_ERR_TEST_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data is NULL"

L_.str.1:                               ## @.str.1
	.asciz	"key is NULL"

L_.str.2:                               ## @.str.2
	.asciz	"item is NULL"

	.comm	_GRUB_DISK_SECTOR_BITS,4,2      ## @GRUB_DISK_SECTOR_BITS
	.comm	_GRUB_DISK_SECTOR_SIZE,4,2      ## @GRUB_DISK_SECTOR_SIZE
	.comm	_grub_errno,8,3                 ## @grub_errno
L_.str.3:                               ## @.str.3
	.asciz	"reiserfs_tree"

L_.str.4:                               ## @.str.4
	.asciz	" at level %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"level loop detected, aborting\n"

	.comm	_GRUB_ERR_FILE_READ_ERROR,4,2   ## @GRUB_ERR_FILE_READ_ERROR
L_.str.6:                               ## @.str.6
	.asciz	"level loop"

L_.str.7:                               ## @.str.7
	.asciz	" number of contained items : %d\n"

	.comm	_GRUB_REISERFS_UNKNOWN,4,2      ## @GRUB_REISERFS_UNKNOWN
	.comm	_GRUB_ERR_NONE,8,3              ## @GRUB_ERR_NONE
	.no_dead_strip	_grub_reiserfs_get_item
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_reiserfs_get_item
_grub_reiserfs_get_item:                ; @grub_reiserfs_get_item
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x26, _grub_errno@GOTPAGE
Lloh1:
	ldr	x26, [x26, _grub_errno@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_8
; %bb.2:
	mov	x20, x2
	cbz	x2, LBB0_9
; %bb.3:
	mov	x22, x0
	ldr	w0, [x0, #8]
	bl	_grub_le_to_cpu16
	mov	x24, x0
	ldr	w0, [x22, #4]
	bl	_grub_le_to_cpu32
	mov	x23, x0
	mov	x0, x24
	bl	_grub_malloc
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.4:
	str	xzr, [x20, #24]
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _GRUB_DISK_SECTOR_BITS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GRUB_DISK_SECTOR_BITS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	asr	w8, w24, w8
	mul	w1, w8, w23
	mul	w8, w23, w24
Lloh5:
	adrp	x9, _GRUB_DISK_SECTOR_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GRUB_DISK_SECTOR_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	sub	w9, w9, #1
	and	w2, w9, w8
	mov	x3, x24
	mov	x4, x19
	bl	_grub_disk_read
	ldr	x8, [x26]
	cbnz	x8, LBB0_12
; %bb.5:
	ldr	w0, [x19, #4]
	bl	_grub_le_to_cpu16
	mov	x24, x0
	str	x24, [sp]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_grub_dprintf
	cmn	w24, #1
	b.lt	LBB0_14
; %bb.6:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_grub_dprintf
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
Lloh18:
	adrp	x8, _GRUB_ERR_FILE_READ_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GRUB_ERR_FILE_READ_ERROR@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	mov	x19, #0
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_8:
	mov	x19, #0
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
	mov	x19, #0
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
Lloh26:
	adrp	x8, _GRUB_ERR_TEST_FAILURE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GRUB_ERR_TEST_FAILURE@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	bl	_grub_error
LBB0_12:
	ldr	x8, [x26]
Lloh28:
	adrp	x20, _GRUB_ERR_NONE@GOTPAGE
Lloh29:
	ldr	x20, [x20, _GRUB_ERR_NONE@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, ne
	bl	_assert
	mov	x0, x19
	bl	_grub_free
	ldr	x8, [x26]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, ne
	bl	_assert
LBB0_13:
	ldr	x0, [x26]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	mov	x25, x19
	ldr	w0, [x25], #8
	bl	_grub_le_to_cpu16
	mov	x24, x0
	str	x24, [sp]
Lloh30:
	adrp	x0, l_.str.3@PAGE
Lloh31:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_grub_dprintf
	cmp	w24, #1
	str	x25, [sp, #8]                   ; 8-byte Folded Spill
	b.lt	LBB0_19
; %bb.15:
	mov	x28, #0
	mov	w27, w24
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x25
	bl	_grub_reiserfs_compare_keys
	cbz	x0, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x28, x28, #1
	add	x25, x25, #16
	cmp	x27, x28
	b.ne	LBB0_16
; %bb.18:
	str	x22, [x20, #16]
	b	LBB0_22
LBB0_19:
	mov	w28, #0
	mov	x25, #0
LBB0_20:
	str	x22, [x20, #16]
	cmp	w28, w24
	b.eq	LBB0_22
; %bb.21:
	mov	x0, x21
	mov	x1, x25
	bl	_grub_reiserfs_compare_keys
	cbz	x0, LBB0_24
LBB0_22:
	str	xzr, [x20]
Lloh34:
	adrp	x8, _GRUB_REISERFS_UNKNOWN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _GRUB_REISERFS_UNKNOWN@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [x20, #12]
LBB0_23:
	ldr	x8, [x26]
Lloh37:
	adrp	x26, _GRUB_ERR_NONE@GOTPAGE
Lloh38:
	ldr	x26, [x26, _GRUB_ERR_NONE@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_grub_free
	b	LBB0_13
LBB0_24:
	stp	w23, w28, [x20]
	mov	x0, x25
	bl	_grub_reiserfs_get_key_type
	str	w0, [x20, #12]
	add	x0, x20, #8
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x1, x8, w28, uxtw #4
	mov	w2, #16
	bl	_grub_memcpy
	b	LBB0_23
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_ERR_TEST_FAILURE,4,2      ; @GRUB_ERR_TEST_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data is NULL"

l_.str.1:                               ; @.str.1
	.asciz	"key is NULL"

l_.str.2:                               ; @.str.2
	.asciz	"item is NULL"

	.comm	_GRUB_DISK_SECTOR_BITS,4,2      ; @GRUB_DISK_SECTOR_BITS
	.comm	_GRUB_DISK_SECTOR_SIZE,4,2      ; @GRUB_DISK_SECTOR_SIZE
	.comm	_grub_errno,8,3                 ; @grub_errno
l_.str.3:                               ; @.str.3
	.asciz	"reiserfs_tree"

l_.str.4:                               ; @.str.4
	.asciz	" at level %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"level loop detected, aborting\n"

	.comm	_GRUB_ERR_FILE_READ_ERROR,4,2   ; @GRUB_ERR_FILE_READ_ERROR
l_.str.6:                               ; @.str.6
	.asciz	"level loop"

l_.str.7:                               ; @.str.7
	.asciz	" number of contained items : %d\n"

	.comm	_GRUB_REISERFS_UNKNOWN,4,2      ; @GRUB_REISERFS_UNKNOWN
	.comm	_GRUB_ERR_NONE,8,3              ; @GRUB_ERR_NONE
	.no_dead_strip	_grub_reiserfs_get_item
.subsections_via_symbols
