	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_reiserfs_iterate_dir
_grub_reiserfs_iterate_dir:             ## @grub_reiserfs_iterate_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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	_GRUB_REISERFS_DIRECTORY@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_33
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	%rsi, %r12
	movq	40(%rdi), %rax
	movl	(%rdi), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %edi
	callq	_grub_le_to_cpu16
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_grub_malloc
	testq	%rax, %rax
	je	LBB0_34
## %bb.2:
	movq	%rax, %r15
	movq	%r14, -136(%rbp)                ## 8-byte Spill
	movl	16(%rbx), %r14d
	movl	20(%rbx), %ebx
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_grub_dprintf
	testq	%r12, %r12
	je	LBB0_35
## %bb.3:
	movq	%r12, %rsi
	leaq	48(%r15), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	12(%r15), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movq	_GRUB_DISK_SECTOR_BITS@GOTPCREL(%rip), %rcx
	movq	_GRUB_DISK_SECTOR_SIZE@GOTPCREL(%rip), %rdx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -128(%rbp)                ## 8-byte Spill
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	%ebx, %r12d
	movaps	%xmm0, -176(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -208(%rbp)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movb	(%rcx), %cl
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %esi
	sarl	%cl, %esi
	imull	%r14d, %esi
	imull	%eax, %r14d
	movl	(%rdx), %edx
	decl	%edx
	andl	%r14d, %edx
	movl	%eax, %ecx
	movq	%r15, %r8
	callq	_grub_disk_read
	movq	_grub_errno@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_38
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r12d, %rax
	leaq	(%rax,%rax,2), %rbx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	20(%r15,%rbx,8), %edi
	callq	_grub_le_to_cpu16
	movl	%eax, %r14d
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movl	16(%r15,%rbx,8), %edi
	callq	_grub_le_to_cpu16
	testl	%eax, %eax
	jle	LBB0_29
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r14d, %rbx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	%rbx, %rcx
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	movl	%eax, %eax
	addq	-112(%rbp), %rbx                ## 8-byte Folded Reload
	shlq	$4, %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_10 Depth=2
	movq	%rbx, %rdi
	callq	_grub_free
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=2
	movq	_GRUB_REISERFS_DIRECTORY@GOTPCREL(%rip), %r13
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=2
	addq	$16, %r14
	cmpq	%r14, -152(%rbp)                ## 8-byte Folded Reload
	je	LBB0_29
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx,%r14), %edi
	callq	_grub_le_to_cpu16
	movq	_GRUB_REISERFS_VISIBLE_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	-4(%rbx,%r14), %edi
	callq	_grub_le_to_cpu16
	movl	%eax, %r15d
	movl	-8(%rbx,%r14), %eax
	movl	%eax, -92(%rbp)
	movl	-12(%rbx,%r14), %eax
	movl	%eax, -96(%rbp)
	movq	$0, -104(%rbp)
	movq	%r13, %r12
	movq	(%r13), %rsi
	leaq	-104(%rbp), %r13
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_grub_reiserfs_set_key_type
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_grub_reiserfs_set_key_offset
	movl	$48, %edi
	callq	_grub_malloc
	testq	%rax, %rax
	je	LBB0_37
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rax, %rbx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	_grub_reiserfs_get_item
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_36
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movslq	%r15d, %r13
	addq	-144(%rbp), %r13                ## 8-byte Folded Reload
	movq	8(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rbx, %r15
	movq	_GRUB_FSHELP_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%rbx, %r15
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_grub_reiserfs_set_key_offset
	movq	_GRUB_REISERFS_STAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_grub_reiserfs_set_key_type
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r15, %rbx
	movq	%r15, %rdx
	callq	_grub_reiserfs_get_item
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_36
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpl	$0, 16(%rbx)
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	28(%rbx), %edi
	callq	_grub_le_to_cpu16
	movl	16(%rbx), %edx
	testl	%eax, %eax
	je	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	_GRUB_DISK_SECTOR_BITS@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movq	%rbx, %rsi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	sarl	%cl, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r12d
	imull	%edx, %ebx
	movl	24(%rsi), %edi
	callq	_grub_le_to_cpu16
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	$44, %ecx
	leaq	-256(%rbp), %r8
	callq	_grub_disk_read
	movq	_grub_errno@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_37
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	-252(%rbp), %edi
	jmp	LBB0_24
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_grub_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=2
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_grub_dprintf
	jmp	LBB0_7
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	_GRUB_DISK_SECTOR_BITS@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movq	%rbx, %rsi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	sarl	%cl, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r12d
	imull	%edx, %ebx
	movl	24(%rsi), %edi
	callq	_grub_le_to_cpu16
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	$40, %ecx
	leaq	-256(%rbp), %r8
	callq	_grub_disk_read
	movq	_grub_errno@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_37
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	-256(%rbp), %edi
LBB0_24:                                ##   in Loop: Header=BB0_10 Depth=2
	callq	_grub_le_to_cpu16
	notl	%eax
	movq	_GRUB_FSHELP_REG@GOTPCREL(%rip), %rcx
	movq	_S_IFLNK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	_GRUB_FSHELP_SYMLINK@GOTPCREL(%rip), %rcx
LBB0_26:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	(%rcx), %ebx
LBB0_27:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	callq	*-128(%rbp)                     ## 8-byte Folded Reload
	testl	%eax, %eax
	jne	LBB0_40
## %bb.28:                              ##   in Loop: Header=BB0_10 Depth=2
	movb	$0, (%r13)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	je	LBB0_43
## %bb.30:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx,8), %rbx
	movq	%rbx, %rdi
	callq	_grub_reiserfs_set_key_offset
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	leaq	-208(%rbp), %rdx
	callq	_grub_reiserfs_get_item
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_38
## %bb.31:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-208(%rbp), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	-192(%rbp), %r14d
	movl	-188(%rbp), %ebx
	testl	%r14d, %r14d
	movq	_grub_errno@GOTPCREL(%rip), %r12
	xorps	%xmm0, %xmm0
	movq	_GRUB_DISK_SECTOR_BITS@GOTPCREL(%rip), %rcx
	movq	_GRUB_DISK_SECTOR_SIZE@GOTPCREL(%rip), %rdx
	jne	LBB0_4
## %bb.32:
	xorl	%ebx, %ebx
	jmp	LBB0_42
LBB0_33:
	movq	_GRUB_ERR_BAD_FILE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_grub_error
	jmp	LBB0_38
LBB0_34:
	xorl	%r15d, %r15d
	jmp	LBB0_38
LBB0_35:
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_39
LBB0_36:
	movq	%rbx, %rdi
	callq	_grub_free
LBB0_37:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_38:
	movq	_grub_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setne	%dil
	callq	_assert
	movq	%r15, %rdi
	callq	_grub_free
	xorl	%ebx, %ebx
LBB0_39:
	movl	%ebx, %eax
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_40:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_grub_dprintf
	movl	$1, %ebx
LBB0_41:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	_grub_errno@GOTPCREL(%rip), %r12
LBB0_42:
	movl	(%r12), %eax
	xorl	%edi, %edi
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_assert
	movq	%r15, %rdi
	callq	_grub_free
	jmp	LBB0_39
LBB0_43:
	xorl	%ebx, %ebx
	jmp	LBB0_41
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_REISERFS_DIRECTORY,8,3    ## @GRUB_REISERFS_DIRECTORY
	.comm	_GRUB_ERR_BAD_FILE_TYPE,4,2     ## @GRUB_ERR_BAD_FILE_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"grub_reiserfs_iterate_dir called on a non-directory item"

L_.str.1:                               ## @.str.1
	.asciz	"reiserfs"

L_.str.2:                               ## @.str.2
	.asciz	"Iterating directory...\n"

	.comm	_GRUB_ERR_NONE,4,2              ## @GRUB_ERR_NONE
	.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,4,2                 ## @grub_errno
	.comm	_GRUB_REISERFS_VISIBLE_MASK,4,2 ## @GRUB_REISERFS_VISIBLE_MASK
	.comm	_GRUB_FSHELP_DIR,4,2            ## @GRUB_FSHELP_DIR
	.comm	_GRUB_REISERFS_STAT,8,3         ## @GRUB_REISERFS_STAT
	.comm	_S_IFLNK,4,2                    ## @S_IFLNK
	.comm	_GRUB_FSHELP_SYMLINK,4,2        ## @GRUB_FSHELP_SYMLINK
	.comm	_GRUB_FSHELP_REG,4,2            ## @GRUB_FSHELP_REG
L_.str.3:                               ## @.str.3
	.asciz	".."

L_.str.4:                               ## @.str.4
	.asciz	"Warning : %s has no stat block !\n"

L_.str.5:                               ## @.str.5
	.asciz	"Found : %s, type=%d\n"

	.comm	_GRUB_ERR_TEST_FAILURE,4,2      ## @GRUB_ERR_TEST_FAILURE
	.no_dead_strip	_grub_reiserfs_iterate_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_iterate_dir
_grub_reiserfs_iterate_dir:             ; @grub_reiserfs_iterate_dir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x28, _GRUB_REISERFS_DIRECTORY@GOTPAGE
Lloh1:
	ldr	x28, [x28, _GRUB_REISERFS_DIRECTORY@GOTPAGEOFF]
	ldr	x9, [x28]
Lloh2:
	adrp	x21, _grub_errno@GOTPAGE
Lloh3:
	ldr	x21, [x21, _grub_errno@GOTPAGEOFF]
Lloh4:
	adrp	x27, _GRUB_ERR_NONE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _GRUB_ERR_NONE@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.1:
	mov	x24, x1
	mov	x25, x0
	str	x2, [sp, #56]                   ; 8-byte Folded Spill
	ldr	x22, [x0, #40]
	ldr	w26, [x0]
	ldr	w0, [x22, #4]
	bl	_grub_le_to_cpu16
	mov	x23, x0
	bl	_grub_malloc
	mov	x19, x0
	cbz	x0, LBB0_34
; %bb.2:
	ldp	w20, w8, [x25, #16]
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_grub_dprintf
	cbz	x24, LBB0_31
; %bb.3:
	add	x8, x19, #48
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	add	x8, x19, #12
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	movi.2d	v0, #0000000000000000
Lloh10:
	adrp	x8, _GRUB_DISK_SECTOR_BITS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GRUB_DISK_SECTOR_BITS@GOTPAGEOFF]
Lloh12:
	adrp	x9, _GRUB_DISK_SECTOR_SIZE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GRUB_DISK_SECTOR_SIZE@GOTPAGEOFF]
	ldr	x25, [sp, #56]                  ; 8-byte Folded Reload
	str	x24, [sp, #64]                  ; 8-byte Folded Spill
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	stp	q0, q0, [sp, #160]
	str	q0, [sp, #144]
	ldr	w0, [x22]
	ldr	w8, [x8]
	asr	w8, w23, w8
	mul	w1, w8, w20
	mul	w8, w20, w23
	ldr	w9, [x9]
	sub	w9, w9, #1
	and	w2, w9, w8
	mov	x3, x23
	mov	x4, x19
	bl	_grub_disk_read
	ldr	w8, [x21]
	cbnz	w8, LBB0_34
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w26, [sp, #36]                  ; 4-byte Folded Spill
	ldp	x8, x10, [sp, #40]              ; 16-byte Folded Reload
	mov	w9, #24
	smaddl	x20, w10, w9, x8
	ldr	w0, [x20, #20]
	bl	_grub_le_to_cpu16
	mov	x26, x0
	ldr	w0, [x20, #16]
	bl	_grub_le_to_cpu16
	cmp	w0, #1
	b.lt	LBB0_27
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w26
	add	x9, x19, x8
	str	x9, [sp, #72]                   ; 8-byte Folded Spill
	mov	w21, w0
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x24, x9, x8
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x28
	bl	_grub_free
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	mov	x28, x20
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x24, x24, #16
	subs	x21, x21, #1
	b.eq	LBB0_27
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x24]
	bl	_grub_le_to_cpu16
Lloh14:
	adrp	x8, _GRUB_REISERFS_VISIBLE_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GRUB_REISERFS_VISIBLE_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldur	w0, [x24, #-4]
	bl	_grub_le_to_cpu16
	mov	x26, x0
	ldur	d0, [x24, #-12]
	str	d0, [sp, #136]
	str	xzr, [sp, #128]
	mov	x20, x28
	ldr	x1, [x28]
	add	x0, sp, #128
	mov	w2, #2
	bl	_grub_reiserfs_set_key_type
	add	x0, sp, #128
	mov	w1, #1
	bl	_grub_reiserfs_set_key_offset
	mov	w0, #48
	bl	_grub_malloc
	cbz	x0, LBB0_33
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x28, x0
	add	x1, sp, #128
	mov	x0, x22
	mov	x2, x28
	bl	_grub_reiserfs_get_item
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_32
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	add	x26, x8, w26, sxtw
	ldr	x8, [x28, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=2
Lloh17:
	adrp	x8, _GRUB_FSHELP_DIR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GRUB_FSHELP_DIR@GOTPAGEOFF]
Lloh19:
	ldr	w27, [x8]
	b	LBB0_25
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=2
	add	x0, sp, #128
	mov	w1, #0
	bl	_grub_reiserfs_set_key_offset
Lloh20:
	adrp	x8, _GRUB_REISERFS_STAT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GRUB_REISERFS_STAT@GOTPAGEOFF]
Lloh22:
	ldr	x1, [x8]
	add	x0, sp, #128
	mov	w2, #2
	bl	_grub_reiserfs_set_key_type
	add	x1, sp, #128
	mov	x0, x22
	mov	x2, x28
	bl	_grub_reiserfs_get_item
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_32
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [x28, #16]
	cbz	w8, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w0, [x28, #28]
	bl	_grub_le_to_cpu16
	ldr	w8, [x28, #16]
	cbz	w0, LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w25, [x22]
Lloh23:
	adrp	x9, _GRUB_DISK_SECTOR_BITS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _GRUB_DISK_SECTOR_BITS@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	asr	w9, w23, w9
	mul	w27, w9, w8
	ldr	w0, [x28, #24]
	bl	_grub_le_to_cpu16
	mov	x2, x0
	add	x4, sp, #80
	mov	x0, x25
	mov	x1, x27
	mov	w3, #44
	bl	_grub_disk_read
Lloh26:
	adrp	x8, _grub_errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cbnz	w8, LBB0_39
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w0, [sp, #84]
	b	LBB0_24
LBB0_20:                                ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x26
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_grub_strcmp
	cbz	x0, LBB0_7
; %bb.21:                               ;   in Loop: Header=BB0_10 Depth=2
	str	x26, [sp]
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_grub_dprintf
	b	LBB0_7
LBB0_22:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	w27, [x22]
Lloh35:
	adrp	x9, _GRUB_DISK_SECTOR_BITS@GOTPAGE
Lloh36:
	ldr	x9, [x9, _GRUB_DISK_SECTOR_BITS@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	asr	w9, w23, w9
	mul	w25, w9, w8
	ldr	w0, [x28, #24]
	bl	_grub_le_to_cpu16
	mov	x2, x0
	add	x4, sp, #80
	mov	x0, x27
	mov	x1, x25
	mov	w3, #40
	bl	_grub_disk_read
Lloh38:
	adrp	x8, _grub_errno@GOTPAGE
Lloh39:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	cbnz	w8, LBB0_39
; %bb.23:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w0, [sp, #80]
LBB0_24:                                ;   in Loop: Header=BB0_10 Depth=2
	bl	_grub_le_to_cpu16
Lloh41:
	adrp	x8, _S_IFLNK@GOTPAGE
Lloh42:
	ldr	x8, [x8, _S_IFLNK@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	bics	wzr, w8, w0
Lloh44:
	adrp	x8, _GRUB_FSHELP_SYMLINK@GOTPAGE
Lloh45:
	ldr	x8, [x8, _GRUB_FSHELP_SYMLINK@GOTPAGEOFF]
Lloh46:
	adrp	x9, _GRUB_FSHELP_REG@GOTPAGE
Lloh47:
	ldr	x9, [x9, _GRUB_FSHELP_REG@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w27, [x8]
	ldr	x25, [sp, #56]                  ; 8-byte Folded Reload
LBB0_25:                                ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x26
	mov	x1, x27
	mov	x2, x28
	mov	x3, x25
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	blr	x8
	cbnz	w0, LBB0_36
; %bb.26:                               ;   in Loop: Header=BB0_10 Depth=2
	strb	wzr, [x26]
Lloh48:
	adrp	x27, _GRUB_ERR_NONE@GOTPAGE
Lloh49:
	ldr	x27, [x27, _GRUB_ERR_NONE@GOTPAGEOFF]
	b	LBB0_8
LBB0_27:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [sp, #36]                   ; 4-byte Folded Reload
	cbz	w1, LBB0_40
; %bb.28:                               ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x8, [sp, #40]               ; 16-byte Folded Reload
	sxtw	x8, w8
	mov	w10, #24
	madd	x25, x8, x10, x9
	mov	x0, x25
	bl	_grub_reiserfs_set_key_offset
	add	x2, sp, #144
	mov	x0, x22
	mov	x1, x25
	ldr	x25, [sp, #56]                  ; 8-byte Folded Reload
	bl	_grub_reiserfs_get_item
	ldr	w8, [x27]
	cmp	w0, w8
Lloh50:
	adrp	x21, _grub_errno@GOTPAGE
Lloh51:
	ldr	x21, [x21, _grub_errno@GOTPAGEOFF]
	b.ne	LBB0_34
; %bb.29:                               ;   in Loop: Header=BB0_4 Depth=1
	ldp	w20, w8, [sp, #160]
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	ldr	w26, [sp, #144]
	movi.2d	v0, #0000000000000000
Lloh52:
	adrp	x8, _GRUB_DISK_SECTOR_BITS@GOTPAGE
Lloh53:
	ldr	x8, [x8, _GRUB_DISK_SECTOR_BITS@GOTPAGEOFF]
Lloh54:
	adrp	x9, _GRUB_DISK_SECTOR_SIZE@GOTPAGE
Lloh55:
	ldr	x9, [x9, _GRUB_DISK_SECTOR_SIZE@GOTPAGEOFF]
	cbnz	w20, LBB0_4
	b	LBB0_38
LBB0_30:
Lloh56:
	adrp	x8, _GRUB_ERR_BAD_FILE_TYPE@GOTPAGE
Lloh57:
	ldr	x8, [x8, _GRUB_ERR_BAD_FILE_TYPE@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
Lloh59:
	adrp	x1, l_.str@PAGE
Lloh60:
	add	x1, x1, l_.str@PAGEOFF
	bl	_grub_error
	mov	x19, #0
	b	LBB0_34
LBB0_31:
	ldr	w20, [x27]
	b	LBB0_35
LBB0_32:
	mov	x0, x28
	bl	_grub_free
LBB0_33:
Lloh61:
	adrp	x21, _grub_errno@GOTPAGE
Lloh62:
	ldr	x21, [x21, _grub_errno@GOTPAGEOFF]
LBB0_34:
	ldr	w8, [x21]
	ldr	w9, [x27]
	cmp	w8, w9
	cset	w0, ne
	bl	_assert
	mov	x0, x19
	bl	_grub_free
	mov	w20, #0
LBB0_35:
	mov	x0, x20
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_36:
	stp	x26, x27, [sp]
Lloh63:
	adrp	x0, l_.str.1@PAGE
Lloh64:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh65:
	adrp	x1, l_.str.5@PAGE
Lloh66:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_grub_dprintf
	mov	w20, #1
Lloh67:
	adrp	x27, _GRUB_ERR_NONE@GOTPAGE
Lloh68:
	ldr	x27, [x27, _GRUB_ERR_NONE@GOTPAGEOFF]
LBB0_37:
Lloh69:
	adrp	x21, _grub_errno@GOTPAGE
Lloh70:
	ldr	x21, [x21, _grub_errno@GOTPAGEOFF]
LBB0_38:
	ldr	w8, [x21]
	ldr	w9, [x27]
	cmp	w8, w9
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_grub_free
	b	LBB0_35
LBB0_39:
Lloh71:
	adrp	x27, _GRUB_ERR_NONE@GOTPAGE
Lloh72:
	ldr	x27, [x27, _GRUB_ERR_NONE@GOTPAGEOFF]
	b	LBB0_33
LBB0_40:
	mov	w20, #0
	b	LBB0_37
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh71, Lloh72
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_REISERFS_DIRECTORY,8,3    ; @GRUB_REISERFS_DIRECTORY
	.comm	_GRUB_ERR_BAD_FILE_TYPE,4,2     ; @GRUB_ERR_BAD_FILE_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"grub_reiserfs_iterate_dir called on a non-directory item"

l_.str.1:                               ; @.str.1
	.asciz	"reiserfs"

l_.str.2:                               ; @.str.2
	.asciz	"Iterating directory...\n"

	.comm	_GRUB_ERR_NONE,4,2              ; @GRUB_ERR_NONE
	.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,4,2                 ; @grub_errno
	.comm	_GRUB_REISERFS_VISIBLE_MASK,4,2 ; @GRUB_REISERFS_VISIBLE_MASK
	.comm	_GRUB_FSHELP_DIR,4,2            ; @GRUB_FSHELP_DIR
	.comm	_GRUB_REISERFS_STAT,8,3         ; @GRUB_REISERFS_STAT
	.comm	_S_IFLNK,4,2                    ; @S_IFLNK
	.comm	_GRUB_FSHELP_SYMLINK,4,2        ; @GRUB_FSHELP_SYMLINK
	.comm	_GRUB_FSHELP_REG,4,2            ; @GRUB_FSHELP_REG
l_.str.3:                               ; @.str.3
	.asciz	".."

l_.str.4:                               ; @.str.4
	.asciz	"Warning : %s has no stat block !\n"

l_.str.5:                               ; @.str.5
	.asciz	"Found : %s, type=%d\n"

	.comm	_GRUB_ERR_TEST_FAILURE,4,2      ; @GRUB_ERR_TEST_FAILURE
	.no_dead_strip	_grub_reiserfs_iterate_dir
.subsections_via_symbols
