	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_iso9660_dir
_grub_iso9660_dir:                      ## @grub_iso9660_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, %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_iso9660_mount
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rbx, -72(%rbp)
	movl	4(%rbx), %edi
	callq	_grub_le_to_cpu32
	movq	%rax, -80(%rbp)
	movl	(%rbx), %edi
	callq	_grub_le_to_cpu32
	movq	%rax, -88(%rbp)
	movq	_grub_iso9660_read_symlink@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_GRUB_FSHELP_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	_grub_iso9660_iterate_dir@GOTPCREL(%rip), %rcx
	leaq	-96(%rbp), %rax
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rax, %r12
	movq	%rax, %rsi
	xorl	%r8d, %r8d
	callq	_grub_fshelp_find_file
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	%r15, -64(%rbp)
	movq	%r14, -56(%rbp)
	movq	-48(%rbp), %rdi
	movq	_iterate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	callq	_grub_iso9660_iterate_dir
	movq	-48(%rbp), %rdi
	cmpq	%r12, %rdi
	je	LBB0_4
## %bb.3:
	callq	_grub_free
LBB0_4:
	movq	%rbx, %rdi
	callq	_grub_free
	movl	(%r13), %edi
	callq	_grub_dl_unref
	movq	_grub_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	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_iso9660_read_symlink,4,2  ## @grub_iso9660_read_symlink
	.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_iso9660_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_iso9660_dir
_grub_iso9660_dir:                      ; @grub_iso9660_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_iso9660_mount
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	str	x19, [sp, #56]
	ldr	w0, [x19, #4]
	bl	_grub_le_to_cpu32
	str	x0, [sp, #48]
	ldr	w0, [x19]
	bl	_grub_le_to_cpu32
	str	x0, [sp, #40]
Lloh2:
	adrp	x8, _grub_iso9660_read_symlink@GOTPAGE
Lloh3:
	ldr	x8, [x8, _grub_iso9660_read_symlink@GOTPAGEOFF]
Lloh4:
	ldr	w5, [x8]
Lloh5:
	adrp	x8, _GRUB_FSHELP_DIR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GRUB_FSHELP_DIR@GOTPAGEOFF]
Lloh7:
	ldr	w6, [x8]
Lloh8:
	adrp	x3, _grub_iso9660_iterate_dir@GOTPAGE
Lloh9:
	ldr	x3, [x3, _grub_iso9660_iterate_dir@GOTPAGEOFF]
	add	x24, sp, #32
	add	x1, sp, #32
	add	x2, sp, #24
	mov	x0, x22
	mov	w4, #0
	bl	_grub_fshelp_find_file
	cbnz	x0, LBB0_4
; %bb.2:
	stp	x21, x20, [sp, #8]
	ldr	x0, [sp, #24]
Lloh10:
	adrp	x8, _iterate@GOTPAGE
Lloh11:
	ldr	x8, [x8, _iterate@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_grub_iso9660_iterate_dir
	ldr	x0, [sp, #24]
	cmp	x0, x24
	b.eq	LBB0_4
; %bb.3:
	bl	_grub_free
LBB0_4:
	mov	x0, x19
	bl	_grub_free
	ldr	w0, [x23]
	bl	_grub_dl_unref
Lloh13:
	adrp	x8, _grub_errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_my_mod,4,2                     ; @my_mod
	.comm	_grub_iso9660_read_symlink,4,2  ; @grub_iso9660_read_symlink
	.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_iso9660_dir
.subsections_via_symbols
