	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_reiserfs_dir
_grub_reiserfs_dir:                     ## @grub_reiserfs_dir
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_my_mod@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_grub_dl_ref
	movl	(%rbx), %edi
	callq	_grub_reiserfs_mount
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	$1, %edi
	callq	_grub_cpu_to_le32
	movq	%rax, -88(%rbp)
	movl	$2, %edi
	callq	_grub_cpu_to_le32
	movq	%rax, -96(%rbp)
	movq	$0, -104(%rbp)
	movq	_GRUB_REISERFS_DIRECTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_grub_reiserfs_set_key_type
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_grub_reiserfs_set_key_offset
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_grub_reiserfs_get_item
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_4
## %bb.2:
	cmpq	$0, -48(%rbp)
	je	LBB0_3
## %bb.5:
	movq	_grub_reiserfs_read_symlink@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_GRUB_FSHELP_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	_grub_reiserfs_iterate_dir@GOTPCREL(%rip), %rcx
	leaq	-48(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	callq	_grub_fshelp_find_file
	movq	_grub_errno@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.6:
	movq	%r15, -80(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -72(%rbp)
	movq	-64(%rbp), %rdi
	movq	_iterate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	callq	_grub_reiserfs_iterate_dir
	movq	%r13, %rdi
	callq	_grub_free
	jmp	LBB0_7
LBB0_3:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_grub_error
LBB0_4:
	movq	%r13, %rdi
	callq	_grub_free
	movq	_grub_errno@GOTPCREL(%rip), %rbx
LBB0_7:
	movl	(%r14), %edi
	callq	_grub_dl_unref
	movq	(%rbx), %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_my_mod,4,2                     ## @my_mod
	.comm	_GRUB_REISERFS_DIRECTORY,4,2    ## @GRUB_REISERFS_DIRECTORY
	.comm	_GRUB_ERR_NONE,8,3              ## @GRUB_ERR_NONE
	.comm	_GRUB_ERR_BAD_FS,4,2            ## @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"root not found"

	.comm	_grub_reiserfs_read_symlink,4,2 ## @grub_reiserfs_read_symlink
	.comm	_GRUB_FSHELP_DIR,4,2            ## @GRUB_FSHELP_DIR
	.comm	_grub_errno,8,3                 ## @grub_errno
	.comm	_iterate,4,2                    ## @iterate
	.no_dead_strip	_grub_reiserfs_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_reiserfs_dir
_grub_reiserfs_dir:                     ; @grub_reiserfs_dir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _my_mod@GOTPAGE
Lloh1:
	ldr	x23, [x23, _my_mod@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_grub_dl_ref
	ldr	w0, [x19]
	bl	_grub_reiserfs_mount
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	mov	w0, #1
	bl	_grub_cpu_to_le32
	str	x0, [sp, #40]
	mov	w0, #2
	bl	_grub_cpu_to_le32
	stp	xzr, x0, [sp, #24]
Lloh2:
	adrp	x8, _GRUB_REISERFS_DIRECTORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GRUB_REISERFS_DIRECTORY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x0, sp, #24
	mov	w2, #2
	bl	_grub_reiserfs_set_key_type
	add	x0, sp, #24
	mov	w1, #1
	bl	_grub_reiserfs_set_key_offset
	add	x1, sp, #24
	add	x2, sp, #56
	mov	x0, x19
	bl	_grub_reiserfs_get_item
Lloh5:
	adrp	x8, _GRUB_ERR_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GRUB_ERR_NONE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [sp, #56]
	cbz	x8, LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _grub_reiserfs_read_symlink@GOTPAGE
Lloh9:
	ldr	x8, [x8, _grub_reiserfs_read_symlink@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
Lloh11:
	adrp	x8, _GRUB_FSHELP_DIR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GRUB_FSHELP_DIR@GOTPAGEOFF]
Lloh13:
	ldr	w6, [x8]
Lloh14:
	adrp	x3, _grub_reiserfs_iterate_dir@GOTPAGE
Lloh15:
	ldr	x3, [x3, _grub_reiserfs_iterate_dir@GOTPAGEOFF]
	add	x1, sp, #56
	add	x2, sp, #48
	mov	x0, x22
	mov	w4, #0
	bl	_grub_fshelp_find_file
Lloh16:
	adrp	x8, _grub_errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbnz	x8, LBB0_6
; %bb.4:
	stp	x21, x20, [sp, #8]
	ldr	x0, [sp, #48]
Lloh19:
	adrp	x8, _iterate@GOTPAGE
Lloh20:
	ldr	x8, [x8, _iterate@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_grub_reiserfs_iterate_dir
	mov	x0, x19
	bl	_grub_free
Lloh22:
	adrp	x19, _GRUB_ERR_NONE@GOTPAGE
Lloh23:
	ldr	x19, [x19, _GRUB_ERR_NONE@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh24:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	bl	_grub_error
LBB0_6:
	mov	x0, x19
	bl	_grub_free
Lloh29:
	adrp	x19, _grub_errno@GOTPAGE
Lloh30:
	ldr	x19, [x19, _grub_errno@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x23]
	bl	_grub_dl_unref
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_my_mod,4,2                     ; @my_mod
	.comm	_GRUB_REISERFS_DIRECTORY,4,2    ; @GRUB_REISERFS_DIRECTORY
	.comm	_GRUB_ERR_NONE,8,3              ; @GRUB_ERR_NONE
	.comm	_GRUB_ERR_BAD_FS,4,2            ; @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"root not found"

	.comm	_grub_reiserfs_read_symlink,4,2 ; @grub_reiserfs_read_symlink
	.comm	_GRUB_FSHELP_DIR,4,2            ; @GRUB_FSHELP_DIR
	.comm	_grub_errno,8,3                 ; @grub_errno
	.comm	_iterate,4,2                    ; @iterate
	.no_dead_strip	_grub_reiserfs_dir
.subsections_via_symbols
