	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MountDVD
_MountDVD:                              ## @MountDVD
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edx
	callq	_GUI_MsgBoxOpen
	movq	_dvd_mounted@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	callq	_ISO9660_Unmount
	movl	$0, (%r14)
LBB0_2:
	movq	_dvd@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	*(%rcx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	(%r15), %rsi
	leaq	L_.str.5(%rip), %rdi
	callq	_ISO9660_Mount
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	$1, (%r14)
	xorl	%eax, %eax
	callq	_GUI_MsgBoxClose
	movl	$1, %ebx
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_GUI_WaitPrompt
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_GUI_WaitPrompt
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Information"

L_.str.1:                               ## @.str.1
	.asciz	"Mounting DVD ..."

	.comm	_dvd_mounted,4,2                ## @dvd_mounted
L_.str.2:                               ## @.str.2
	.asciz	"dvd:"

	.comm	_dvd,8,3                        ## @dvd
L_.str.3:                               ## @.str.3
	.asciz	"Error"

L_.str.4:                               ## @.str.4
	.asciz	"No Disc inserted !"

L_.str.5:                               ## @.str.5
	.asciz	"dvd"

L_.str.6:                               ## @.str.6
	.asciz	"Disc can not be read !"

	.no_dead_strip	_MountDVD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MountDVD
_MountDVD:                              ; @MountDVD
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_GUI_MsgBoxOpen
Lloh4:
	adrp	x20, _dvd_mounted@GOTPAGE
Lloh5:
	ldr	x20, [x20, _dvd_mounted@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ISO9660_Unmount
	str	wzr, [x20]
LBB0_2:
Lloh8:
	adrp	x19, _dvd@GOTPAGE
Lloh9:
	ldr	x19, [x19, _dvd@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x8, [x8]
	blr	x8
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x1, [x19]
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_ISO9660_Mount
	cbz	w0, LBB0_6
; %bb.4:
	mov	w19, #1
	str	w19, [x20]
	bl	_GUI_MsgBoxClose
	b	LBB0_8
LBB0_5:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_7:
	bl	_GUI_WaitPrompt
	mov	w19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Information"

l_.str.1:                               ; @.str.1
	.asciz	"Mounting DVD ..."

	.comm	_dvd_mounted,4,2                ; @dvd_mounted
l_.str.2:                               ; @.str.2
	.asciz	"dvd:"

	.comm	_dvd,8,3                        ; @dvd
l_.str.3:                               ; @.str.3
	.asciz	"Error"

l_.str.4:                               ; @.str.4
	.asciz	"No Disc inserted !"

l_.str.5:                               ; @.str.5
	.asciz	"dvd"

l_.str.6:                               ; @.str.6
	.asciz	"Disc can not be read !"

	.no_dead_strip	_MountDVD
.subsections_via_symbols
