	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_udf_iterate_dir
_grub_udf_iterate_dir:                  ## @grub_udf_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$4, %edi
	callq	_grub_malloc
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_42
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_grub_memcpy
	movq	_GRUB_FSHELP_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	*%r12
	movl	$1, %ecx
	testl	%eax, %eax
	jne	LBB0_42
## %bb.2:
	movl	4(%r13), %edi
	callq	_U64
	testl	%eax, %eax
	jle	LBB0_40
## %bb.3:
	xorl	%ebx, %ebx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_GRUB_FSHELP_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	*%r12
	testl	%eax, %eax
	jne	LBB0_45
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	-92(%rbp), %eax
	addl	%eax, %ebx
	addl	$3, %ebx
	andl	$-4, %ebx
	movl	4(%r13), %edi
	callq	_U64
	cmpl	%eax, %ebx
	jge	LBB0_40
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
                                        ##     Child Loop BB0_25 Depth 2
	subq	$8, %rsp
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	movl	$20, %r9d
	leaq	-96(%rbp), %rax
	pushq	%rax
	callq	_grub_udf_read_file
	addq	$16, %rsp
	cmpl	$20, %eax
	jne	LBB0_41
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-80(%rbp), %edi
	callq	_U16
	movq	_GRUB_UDF_TAG_IDENT_FID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_44
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$4, %edi
	callq	_grub_malloc
	testq	%rax, %rax
	je	LBB0_41
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r15
	movl	(%r13), %edi
	leaq	-84(%rbp), %rsi
	movq	%rax, %rdx
	callq	_grub_udf_read_icb
	testq	%rax, %rax
	jne	LBB0_41
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-88(%rbp), %edi
	callq	_U16
	addl	%eax, %ebx
	addl	$20, %ebx
	movq	_GRUB_UDF_FID_CHAR_PARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -96(%rbp)
	jne	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsp, -120(%rbp)                ## 8-byte Spill
	movl	-92(%rbp), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	-92(%rbp), %ebx
	leal	-1(%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	leal	(%rbx,%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -136(%rbp)                ## 8-byte Spill
	movq	_GRUB_UDF_FID_CHAR_DIRECTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GRUB_FSHELP_DIR@GOTPCREL(%rip), %rax
	andl	-96(%rbp), %ecx
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_GRUB_FSHELP_REG@GOTPCREL(%rip), %rax
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	subq	$8, %rsp
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%ebx, %r9d
	pushq	%r14
	callq	_grub_udf_read_file
	addq	$16, %rsp
	cmpl	-92(%rbp), %eax
	jne	LBB0_47
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %ebx
	movl	(%r14), %r9d
	cmpl	$16, %r9d
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edx, %edx
	cmpl	$8, %r9d
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_33
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	decl	%ebx
	je	LBB0_26
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	addq	$4, %r14
	movl	%ebx, %edx
	shlq	$2, %rdx
	movq	%rsi, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	jmp	LBB0_35
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	leal	-1(%rbx), %ecx
	shrl	$31, %ecx
	leal	(%rbx,%rcx), %edx
	decl	%edx
	sarl	%edx
	cmpl	$3, %ebx
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	jb	LBB0_35
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$2, %edx
	movl	$1, %r10d
	cmovael	%edx, %r10d
	cmpl	$8, %r10d
	jae	LBB0_27
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r8d, %r8d
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r8, %r11
	testb	$1, %r10b
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_6 Depth=1
	leal	(%r8,%r8), %eax
	leal	(%r8,%r8), %edi
	incl	%edi
	movl	(%r14,%rdi,4), %edi
	shll	$8, %edi
	orl	$2, %eax
	orl	(%r14,%rax,4), %edi
	movl	%edi, (%rsi,%r8,4)
	movq	%r8, %r11
	orq	$1, %r11
LBB0_23:                                ##   in Loop: Header=BB0_6 Depth=1
	notq	%r8
	addq	%r10, %r8
	je	LBB0_33
## %bb.24:                              ##   in Loop: Header=BB0_6 Depth=1
	subq	%r11, %r10
	leaq	(%rsi,%r11,4), %r8
	addq	$4, %r8
	andl	$2147483647, %r11d              ## imm = 0x7FFFFFFF
	addq	%r11, %r11
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r11,%rbx), %eax
	incl	%eax
	movl	(%r14,%rax,4), %eax
	shll	$8, %eax
	leal	(%r11,%rbx), %ecx
	addl	$2, %ecx
	orl	(%r14,%rcx,4), %eax
	leal	(%r11,%rbx), %ecx
	addl	$3, %ecx
	movl	(%r14,%rcx,4), %edi
	shll	$8, %edi
	leal	(%r11,%rbx), %ecx
	addl	$4, %ecx
	orl	(%r14,%rcx,4), %edi
	movl	%eax, -4(%r8,%rbx,2)
	movl	%edi, (%r8,%rbx,2)
	addq	$4, %rbx
	addq	$-2, %r10
	jne	LBB0_25
	jmp	LBB0_33
LBB0_26:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_35
LBB0_27:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	-1(%r10), %rax
	movl	%eax, %edi
	addl	%eax, %edi
	setb	%bl
	cmpl	$-2, %edi
	je	LBB0_20
## %bb.28:                              ##   in Loop: Header=BB0_6 Depth=1
	testb	%bl, %bl
	jne	LBB0_20
## %bb.29:                              ##   in Loop: Header=BB0_6 Depth=1
	shrq	$32, %rax
	movl	$0, %r8d
	jne	LBB0_21
## %bb.30:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r10d, %r8d
	andl	$-8, %r8d
	movq	%r8, %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, %ebx
	andl	$-16, %ebx
	movups	4(%r14,%rbx,4), %xmm0
	movups	20(%r14,%rbx,4), %xmm1
	movups	36(%r14,%rbx,4), %xmm2
	movups	52(%r14,%rbx,4), %xmm3
	movaps	%xmm0, %xmm4
	shufps	$136, %xmm1, %xmm4              ## xmm4 = xmm4[0,2],xmm1[0,2]
	movaps	%xmm2, %xmm5
	shufps	$136, %xmm3, %xmm5              ## xmm5 = xmm5[0,2],xmm3[0,2]
	shufps	$221, %xmm1, %xmm0              ## xmm0 = xmm0[1,3],xmm1[1,3]
	shufps	$221, %xmm3, %xmm2              ## xmm2 = xmm2[1,3],xmm3[1,3]
	pslld	$8, %xmm4
	por	%xmm0, %xmm4
	pslld	$8, %xmm5
	por	%xmm2, %xmm5
	movdqa	%xmm4, (%rsi,%rax,2)
	movdqa	%xmm5, 16(%rsi,%rax,2)
	addq	$16, %rax
	addq	$-8, %rdi
	jne	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%r10, %r8
	jne	LBB0_21
LBB0_33:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$16, %r9d
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$8, %r9d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_36
	jmp	LBB0_37
LBB0_35:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_36:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %r13
	movq	-136(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	callq	_grub_utf16_to_utf8
	movb	$0, (%rax)
	movq	%r12, %rdi
	movq	%r13, %r12
	movq	-128(%rbp), %r13                ## 8-byte Reload
	movl	-100(%rbp), %esi                ## 4-byte Reload
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	*%r12
	testl	%eax, %eax
	jne	LBB0_46
LBB0_37:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-120(%rbp), %rsp                ## 8-byte Reload
	jmp	LBB0_5
LBB0_40:
	movq	%r15, %rdi
	callq	_grub_free
LBB0_41:
	xorl	%ecx, %ecx
LBB0_42:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_48
## %bb.43:
	movl	%ecx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_44:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_grub_error
	jmp	LBB0_41
LBB0_45:
	movl	$1, %ecx
	jmp	LBB0_42
LBB0_46:
	movl	$1, %r12d
LBB0_47:
	movq	-120(%rbp), %rsp                ## 8-byte Reload
	movl	%r12d, %ecx
	jmp	LBB0_42
LBB0_48:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.comm	_GRUB_FSHELP_DIR,4,2            ## @GRUB_FSHELP_DIR
	.comm	_GRUB_UDF_TAG_IDENT_FID,8,3     ## @GRUB_UDF_TAG_IDENT_FID
	.comm	_GRUB_ERR_BAD_FS,4,2            ## @GRUB_ERR_BAD_FS
L_.str.1:                               ## @.str.1
	.asciz	"invalid fid tag"

	.comm	_GRUB_UDF_FID_CHAR_PARENT,4,2   ## @GRUB_UDF_FID_CHAR_PARENT
L_.str.2:                               ## @.str.2
	.asciz	".."

	.comm	_GRUB_UDF_FID_CHAR_DIRECTORY,4,2 ## @GRUB_UDF_FID_CHAR_DIRECTORY
	.comm	_GRUB_FSHELP_REG,4,2            ## @GRUB_FSHELP_REG
	.no_dead_strip	_grub_udf_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_udf_iterate_dir
_grub_udf_iterate_dir:                  ; @grub_udf_iterate_dir
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	w0, #4
	bl	_grub_malloc
	cbz	x0, LBB0_37
; %bb.1:
	mov	x23, x0
	mov	x1, x21
	mov	w2, #4
	bl	_grub_memcpy
Lloh3:
	adrp	x28, _GRUB_FSHELP_DIR@GOTPAGE
Lloh4:
	ldr	x28, [x28, _GRUB_FSHELP_DIR@GOTPAGEOFF]
	ldr	w1, [x28]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x19
	blr	x20
	cbz	w0, LBB0_3
LBB0_2:
	mov	w0, #1
	b	LBB0_37
LBB0_3:
	ldr	w0, [x21, #4]
	bl	_U64
	cmp	w0, #1
	b.lt	LBB0_35
; %bb.4:
	mov	w22, #0
	sub	x8, x29, #112
	add	x24, x8, #12
Lloh7:
	adrp	x26, _GRUB_UDF_TAG_IDENT_FID@GOTPAGE
Lloh8:
	ldr	x26, [x26, _GRUB_UDF_TAG_IDENT_FID@GOTPAGEOFF]
Lloh9:
	adrp	x27, _GRUB_UDF_FID_CHAR_PARENT@GOTPAGE
Lloh10:
	ldr	x27, [x27, _GRUB_UDF_FID_CHAR_PARENT@GOTPAGEOFF]
	stur	x24, [x29, #-128]               ; 8-byte Folded Spill
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x28]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x23
	mov	x3, x19
	blr	x20
	cbnz	w0, LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldur	w8, [x29, #-108]
	add	w8, w25, w8
	add	w8, w8, #3
	and	w22, w8, #0xfffffffc
	ldr	w0, [x21, #4]
	bl	_U64
	cmp	w22, w0
	b.ge	LBB0_35
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_33 Depth 2
                                        ;     Child Loop BB0_21 Depth 2
	sub	x6, x29, #112
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	x4, x22
	mov	w5, #20
	bl	_grub_udf_read_file
	cmp	w0, #20
	b.ne	LBB0_36
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	w0, [x29, #-96]
	bl	_U16
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_39
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #4
	bl	_grub_malloc
	cbz	x0, LBB0_37
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, x0
	ldr	w0, [x21]
	mov	x1, x24
	mov	x2, x23
	bl	_grub_udf_read_icb
	cbnz	x0, LBB0_36
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldur	w0, [x29, #-104]
	bl	_U16
	add	w8, w22, w0
	add	w25, w8, #20
	ldur	w8, [x29, #-112]
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, sp
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
	ldur	w8, [x29, #-108]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	ldur	w5, [x29, #-108]
	sub	w8, w5, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x26, x9, x8
	mov	sp, x26
	lsl	w8, w5, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh17:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh18:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x27, x9, x8
	mov	sp, x27
	ldur	w8, [x29, #-112]
Lloh19:
	adrp	x9, _GRUB_UDF_FID_CHAR_DIRECTORY@GOTPAGE
Lloh20:
	ldr	x9, [x9, _GRUB_UDF_FID_CHAR_DIRECTORY@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	mov	x22, x28
Lloh22:
	adrp	x8, _GRUB_FSHELP_REG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GRUB_FSHELP_REG@GOTPAGEOFF]
	csel	x8, x8, x28, eq
	ldr	w28, [x8]
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	x4, x25
	mov	x6, x24
	bl	_grub_udf_read_file
	ldur	w8, [x29, #-108]
	cmp	w0, w8
	b.ne	LBB0_40
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x24]
	cmp	w8, #16
	b.eq	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #8
	b.ne	LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	subs	w8, w0, #1
	b.eq	LBB0_25
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x1, x24, #4
	mov	x24, x8
	lsl	x2, x8, #2
	mov	x0, x26
	bl	_memcpy
	mov	x2, x24
	b	LBB0_26
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w9, w0, #1
	cmp	w9, #0
	csel	w9, w0, w9, lt
	asr	w2, w9, #1
	cmp	w0, #3
	b.lo	LBB0_26
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w2, #1
	csinc	w9, w2, wzr, hi
	cmp	w9, #16
	b.hs	LBB0_29
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x10, #0
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x11, x26, x10, lsl #2
	mov	w12, #1
	bfi	w12, w10, #1, #31
	sub	x9, x9, x10
LBB0_21:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x24, w12, uxtw #2]
	add	w13, w12, #1
	ldr	w13, [x24, w13, uxtw #2]
	orr	w10, w13, w10, lsl #8
	str	w10, [x11], #4
	add	w12, w12, #2
	subs	x9, x9, #1
	b.ne	LBB0_21
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w2, #0
LBB0_23:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #16
	ldur	x24, [x29, #-120]               ; 8-byte Folded Reload
	b.eq	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #8
	b.eq	LBB0_27
	b	LBB0_28
LBB0_25:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w2, #0
LBB0_26:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	x24, [x29, #-120]               ; 8-byte Folded Reload
LBB0_27:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x27
	mov	x1, x26
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_grub_utf16_to_utf8
	strb	wzr, [x0]
	mov	x0, x27
	mov	x1, x28
	mov	x2, x23
	mov	x3, x19
	blr	x20
	cbnz	w0, LBB0_41
LBB0_28:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	sp, x24
	mov	x28, x22
	ldur	x24, [x29, #-128]               ; 8-byte Folded Reload
Lloh24:
	adrp	x26, _GRUB_UDF_TAG_IDENT_FID@GOTPAGE
Lloh25:
	ldr	x26, [x26, _GRUB_UDF_TAG_IDENT_FID@GOTPAGEOFF]
Lloh26:
	adrp	x27, _GRUB_UDF_FID_CHAR_PARENT@GOTPAGE
Lloh27:
	ldr	x27, [x27, _GRUB_UDF_FID_CHAR_PARENT@GOTPAGEOFF]
	b	LBB0_6
LBB0_29:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x10, #0
	sub	x11, x9, #1
	adds	w13, w11, w11
	cset	w12, hs
	cmn	w13, #2
	b.eq	LBB0_20
; %bb.30:                               ;   in Loop: Header=BB0_7 Depth=1
	tbnz	w12, #0, LBB0_20
; %bb.31:                               ;   in Loop: Header=BB0_7 Depth=1
	lsr	x11, x11, #32
	cbnz	x11, LBB0_20
; %bb.32:                               ;   in Loop: Header=BB0_7 Depth=1
	and	x10, x9, #0xfffffff0
	add	x12, x26, #32
	mov	x13, x10
LBB0_33:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	x14, x11, #0xffffffe0
	add	x14, x24, x14, lsl #2
	add	x15, x14, #4
	ld2.4s	{ v0, v1 }, [x15]
	add	x15, x14, #36
	ld2.4s	{ v2, v3 }, [x15]
	add	x15, x14, #68
	ld2.4s	{ v4, v5 }, [x15]
	add	x14, x14, #100
	ld2.4s	{ v6, v7 }, [x14]
	shl.4s	v16, v0, #8
	shl.4s	v17, v2, #8
	shl.4s	v18, v4, #8
	shl.4s	v19, v6, #8
	orr.16b	v0, v16, v1
	orr.16b	v1, v17, v3
	orr.16b	v2, v18, v5
	stp	q0, q1, [x12, #-32]
	orr.16b	v0, v19, v7
	stp	q2, q0, [x12], #64
	add	x11, x11, #32
	subs	x13, x13, #16
	b.ne	LBB0_33
; %bb.34:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x10, x9
	b.ne	LBB0_20
	b	LBB0_23
LBB0_35:
	mov	x0, x23
	bl	_grub_free
LBB0_36:
	mov	w0, #0
LBB0_37:
	ldur	x8, [x29, #-88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_42
; %bb.38:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_39:
Lloh31:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_grub_error
	b	LBB0_36
LBB0_40:
	mov	w0, #0
	ldur	x24, [x29, #-120]               ; 8-byte Folded Reload
	mov	sp, x24
	b	LBB0_37
LBB0_41:
	mov	w0, #1
	mov	sp, x24
	b	LBB0_37
LBB0_42:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.comm	_GRUB_FSHELP_DIR,4,2            ; @GRUB_FSHELP_DIR
	.comm	_GRUB_UDF_TAG_IDENT_FID,8,3     ; @GRUB_UDF_TAG_IDENT_FID
	.comm	_GRUB_ERR_BAD_FS,4,2            ; @GRUB_ERR_BAD_FS
l_.str.1:                               ; @.str.1
	.asciz	"invalid fid tag"

	.comm	_GRUB_UDF_FID_CHAR_PARENT,4,2   ; @GRUB_UDF_FID_CHAR_PARENT
l_.str.2:                               ; @.str.2
	.asciz	".."

	.comm	_GRUB_UDF_FID_CHAR_DIRECTORY,4,2 ; @GRUB_UDF_FID_CHAR_DIRECTORY
	.comm	_GRUB_FSHELP_REG,4,2            ; @GRUB_FSHELP_REG
	.no_dead_strip	_grub_udf_iterate_dir
.subsections_via_symbols
