	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_udf_dir
_grub_udf_dir:                          ## @grub_udf_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_my_mod@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_grub_dl_ref
	movl	(%rbx), %edi
	callq	_grub_udf_mount
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_grub_udf_read_icb
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movq	_GRUB_FSHELP_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	_grub_udf_iterate_dir@GOTPCREL(%rip), %rcx
	leaq	-48(%rbp), %rax
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rax, %r12
	movq	%rax, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_grub_fshelp_find_file
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	%r15, -72(%rbp)
	movq	%r14, -64(%rbp)
	movq	-56(%rbp), %rdi
	movq	_iterate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	callq	_grub_udf_iterate_dir
LBB0_5:
	movq	-56(%rbp), %rdi
	cmpq	%r12, %rdi
	je	LBB0_7
## %bb.6:
	callq	_grub_free
LBB0_7:
	movq	%rbx, %rdi
	callq	_grub_free
	movl	(%r13), %edi
	callq	_grub_dl_unref
	movq	_grub_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %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_FSHELP_DIR,4,2            ## @GRUB_FSHELP_DIR
	.comm	_iterate,4,2                    ## @iterate
	.comm	_grub_errno,4,2                 ## @grub_errno
	.no_dead_strip	_grub_udf_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_dir
_grub_udf_dir:                          ; @grub_udf_dir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	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_udf_mount
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, x19
	bl	_grub_udf_read_icb
	cbnz	x0, LBB0_7
; %bb.2:
Lloh2:
	adrp	x8, _GRUB_FSHELP_DIR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GRUB_FSHELP_DIR@GOTPAGEOFF]
Lloh4:
	ldr	w6, [x8]
Lloh5:
	adrp	x3, _grub_udf_iterate_dir@GOTPAGE
Lloh6:
	ldr	x3, [x3, _grub_udf_iterate_dir@GOTPAGEOFF]
	add	x1, sp, #24
	add	x2, sp, #16
	mov	x0, x22
	mov	w4, #0
	mov	w5, #0
	bl	_grub_fshelp_find_file
	cbnz	x0, LBB0_7
; %bb.3:
	cbz	x21, LBB0_5
; %bb.4:
	stp	x21, x20, [sp]
	ldr	x0, [sp, #16]
Lloh7:
	adrp	x8, _iterate@GOTPAGE
Lloh8:
	ldr	x8, [x8, _iterate@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_grub_udf_iterate_dir
LBB0_5:
	ldr	x0, [sp, #16]
	add	x8, sp, #24
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
	bl	_grub_free
LBB0_7:
	mov	x0, x19
	bl	_grub_free
	ldr	w0, [x23]
	bl	_grub_dl_unref
Lloh10:
	adrp	x8, _grub_errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_my_mod,4,2                     ; @my_mod
	.comm	_GRUB_FSHELP_DIR,4,2            ; @GRUB_FSHELP_DIR
	.comm	_iterate,4,2                    ; @iterate
	.comm	_grub_errno,4,2                 ; @grub_errno
	.no_dead_strip	_grub_udf_dir
.subsections_via_symbols
