	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_udf_open
_grub_udf_open:                         ## @grub_udf_open
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_my_mod@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_grub_dl_ref
	movq	24(%r14), %rax
	movl	(%rax), %edi
	callq	_grub_udf_mount
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_grub_udf_read_icb
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_grub_udf_iterate_dir@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GRUB_FSHELP_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_grub_fshelp_find_file
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movl	(%r13), %edi
	callq	_grub_dl_unref
	movq	%rbx, %rdi
	callq	_grub_free
	movq	_grub_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-56(%rbp), %rax
	movq	%rax, 16(%r14)
	movq	$0, 8(%r14)
	movl	(%rax), %edi
	callq	_U64
	movl	%eax, (%r14)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_my_mod,4,2                     ## @my_mod
	.comm	_grub_udf_iterate_dir,4,2       ## @grub_udf_iterate_dir
	.comm	_GRUB_FSHELP_REG,4,2            ## @GRUB_FSHELP_REG
	.comm	_grub_errno,4,2                 ## @grub_errno
	.no_dead_strip	_grub_udf_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_udf_open
_grub_udf_open:                         ; @grub_udf_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _my_mod@GOTPAGE
Lloh1:
	ldr	x22, [x22, _my_mod@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_grub_dl_ref
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_grub_udf_mount
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x20
	bl	_grub_udf_read_icb
	cbnz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _grub_udf_iterate_dir@GOTPAGE
Lloh3:
	ldr	x8, [x8, _grub_udf_iterate_dir@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x8, _GRUB_FSHELP_REG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GRUB_FSHELP_REG@GOTPAGEOFF]
Lloh7:
	ldr	w6, [x8]
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x21
	mov	w4, #0
	mov	w5, #0
	bl	_grub_fshelp_find_file
	cbz	x0, LBB0_5
LBB0_3:
	ldr	w0, [x22]
	bl	_grub_dl_unref
	mov	x0, x20
	bl	_grub_free
Lloh8:
	adrp	x8, _grub_errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	x8, [sp]
	stp	xzr, x8, [x19, #8]
	ldr	w0, [x8]
	bl	_U64
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_my_mod,4,2                     ; @my_mod
	.comm	_grub_udf_iterate_dir,4,2       ; @grub_udf_iterate_dir
	.comm	_GRUB_FSHELP_REG,4,2            ; @GRUB_FSHELP_REG
	.comm	_grub_errno,4,2                 ; @grub_errno
	.no_dead_strip	_grub_udf_open
.subsections_via_symbols
