	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DismountMain
_DismountMain:                          ## @DismountMain
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$1, %edi
	jg	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__T
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	__ftprintf
	movl	(%r14), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	__T
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	__ftprintf
	movl	$1, %ebx
	jmp	LBB0_8
LBB0_2:
	movq	%rsi, %r14
	movq	8(%rsi), %rdi
	movq	_FALSE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	%rdx, %rsi
	callq	_OpenVolume
	movq	%rax, %r15
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	cmpq	(%rax), %r15
	je	LBB0_8
## %bb.3:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_LockOrUnlockVolume
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	_FSCTL_DISMOUNT_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rax
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	callq	_DeviceIoControl
	addq	$16, %rsp
	movq	(%r12), %rsi
	cmpq	%rsi, %rax
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %edi
	callq	_PrintErrorMessage
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_LockOrUnlockVolume
LBB0_4:
	movq	%r15, %rdi
	callq	_CloseHandle
	jmp	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	callq	_LockOrUnlockVolume
	movq	%r15, %rdi
	callq	_CloseHandle
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	__T
	movq	8(%r14), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	__ftprintf
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Usage: fsutil volume dismount <volume>\n"

L_.str.1:                               ## @.str.1
	.asciz	"\tFor example: fsutil volume dismount d:\n"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FSCTL_DISMOUNT_VOLUME,4,2      ## @FSCTL_DISMOUNT_VOLUME
	.comm	_stdout,4,2                     ## @stdout
L_.str.2:                               ## @.str.2
	.asciz	"The %s volume has been dismounted\n"

	.no_dead_strip	_DismountMain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DismountMain
_DismountMain:                          ; @DismountMain
	.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
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x20, _stderr@GOTPAGE
Lloh1:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w19, [x20]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x1, x0
	mov	x0, x19
	bl	__ftprintf
	ldr	w19, [x20]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__T
	mov	x1, x0
	mov	x0, x19
	bl	__ftprintf
	mov	w0, #1
	b	LBB0_9
LBB0_2:
	mov	x19, x1
	ldr	x0, [x1, #8]
Lloh6:
	adrp	x21, _FALSE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x2, x1
	bl	_OpenVolume
Lloh8:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #1
	b	LBB0_9
LBB0_4:
	mov	x20, x0
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh13:
	ldr	x1, [x8]
	bl	_LockOrUnlockVolume
	cbnz	x0, LBB0_7
; %bb.5:
Lloh14:
	adrp	x8, _FSCTL_DISMOUNT_VOLUME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FSCTL_DISMOUNT_VOLUME@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x6, sp, #12
	mov	x0, x20
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	mov	x7, #0
	bl	_DeviceIoControl
	ldr	x1, [x21]
	cmp	x0, x1
	b.ne	LBB0_8
; %bb.6:
	bl	_GetLastError
	bl	_PrintErrorMessage
	ldr	x1, [x21]
	mov	x0, x20
	bl	_LockOrUnlockVolume
LBB0_7:
	mov	x0, x20
	bl	_CloseHandle
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_LockOrUnlockVolume
	mov	x0, x20
	bl	_CloseHandle
Lloh17:
	adrp	x8, _stdout@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__T
	mov	x1, x0
	ldr	x8, [x19, #8]
	str	x8, [sp]
	mov	x0, x20
	bl	__ftprintf
	mov	w0, #0
LBB0_9:
	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
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Usage: fsutil volume dismount <volume>\n"

l_.str.1:                               ; @.str.1
	.asciz	"\tFor example: fsutil volume dismount d:\n"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FSCTL_DISMOUNT_VOLUME,4,2      ; @FSCTL_DISMOUNT_VOLUME
	.comm	_stdout,4,2                     ; @stdout
l_.str.2:                               ; @.str.2
	.asciz	"The %s volume has been dismounted\n"

	.no_dead_strip	_DismountMain
.subsections_via_symbols
