	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OpenVolume                     ## -- Begin function OpenVolume
	.p2align	4, 0x90
_OpenVolume:                            ## @OpenVolume
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.1:
	cmpl	$58, 4(%r14)
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_GetDriveType
	movq	_DRIVE_REMOTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__T
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	__ftprintf
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_13
LBB0_4:
	testq	%r12, %r12
	je	LBB0_11
## %bb.5:
	movq	%rsp, %r12
	movq	_MAX_PATH@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	incl	%eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	__T
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	__stprintf
	movl	(%r13), %eax
	incl	%eax
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%rbx
	callq	_GetVolumeInformation
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	__T
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	__tcscmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	__T
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	__ftprintf
	jmp	LBB0_9
LBB0_6:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %edi
	callq	_PrintErrorMessage
LBB0_9:
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r12, %rsp
	jmp	LBB0_13
LBB0_10:
	movq	%r12, %rsp
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	callq	__T
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	__stprintf
	movq	_GENERIC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FILE_SHARE_READ@GOTPCREL(%rip), %rax
	movq	_FILE_SHARE_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_OPEN_EXISTING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_FILE_ATTRIBUTE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	pushq	$0
	callq	_CreateFile
	addq	$16, %rsp
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %edi
	callq	_PrintErrorMessage
	movq	(%rbx), %rax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_DRIVE_REMOTE,8,3               ## @DRIVE_REMOTE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FSUTIL needs a local device\n"

	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
L_.str.1:                               ## @.str.1
	.asciz	"\\\\.\\%s\\"

L_.str.2:                               ## @.str.2
	.asciz	"NTFS"

L_.str.3:                               ## @.str.3
	.asciz	"FSUTIL needs a NTFS device\n"

L_.str.4:                               ## @.str.4
	.asciz	"\\\\.\\%s"

	.comm	_GENERIC_READ,4,2               ## @GENERIC_READ
	.comm	_FILE_SHARE_READ,4,2            ## @FILE_SHARE_READ
	.comm	_FILE_SHARE_WRITE,4,2           ## @FILE_SHARE_WRITE
	.comm	_OPEN_EXISTING,4,2              ## @OPEN_EXISTING
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ## @FILE_ATTRIBUTE_NORMAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OpenVolume                     ; -- Begin function OpenVolume
	.p2align	2
_OpenVolume:                            ; @OpenVolume
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x21, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	cbnz	x1, LBB0_4
; %bb.1:
	ldr	w8, [x20, #4]
	cmp	w8, #58
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_GetDriveType
Lloh8:
	adrp	x8, _DRIVE_REMOTE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRIVE_REMOTE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x1, x0
	mov	x0, x19
	bl	__ftprintf
Lloh16:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
	b	LBB0_13
LBB0_4:
	cbz	x21, LBB0_11
; %bb.5:
	mov	x22, sp
Lloh19:
	adrp	x23, _MAX_PATH@GOTPAGE
Lloh20:
	ldr	x23, [x23, _MAX_PATH@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w8, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh21:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh22:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__T
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	__stprintf
	ldr	w8, [x23]
	add	w7, w8, #1
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, x21
	bl	_GetVolumeInformation
	cbz	w0, LBB0_8
; %bb.6:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__T
	mov	x1, x0
	mov	x0, x21
	bl	__tcscmp
	cbz	x0, LBB0_10
; %bb.7:
Lloh27:
	adrp	x8, _stderr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh29:
	ldr	w19, [x8]
Lloh30:
	adrp	x0, l_.str.3@PAGE
Lloh31:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__T
	mov	x1, x0
	mov	x0, x19
	bl	__ftprintf
	b	LBB0_9
LBB0_8:
	bl	_GetLastError
	bl	_PrintErrorMessage
LBB0_9:
Lloh32:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh34:
	ldr	x0, [x8]
	mov	sp, x22
	b	LBB0_13
LBB0_10:
	mov	sp, x22
LBB0_11:
Lloh35:
	adrp	x0, l_.str.4@PAGE
Lloh36:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__T
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	__stprintf
Lloh37:
	adrp	x8, _GENERIC_READ@GOTPAGE
Lloh38:
	ldr	x8, [x8, _GENERIC_READ@GOTPAGEOFF]
Lloh39:
	adrp	x9, _FILE_SHARE_READ@GOTPAGE
Lloh40:
	ldr	x9, [x9, _FILE_SHARE_READ@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	ldr	w8, [x9]
Lloh43:
	adrp	x9, _FILE_SHARE_WRITE@GOTPAGE
Lloh44:
	ldr	x9, [x9, _FILE_SHARE_WRITE@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh46:
	adrp	x8, _OPEN_EXISTING@GOTPAGE
Lloh47:
	ldr	x8, [x8, _OPEN_EXISTING@GOTPAGEOFF]
Lloh48:
	ldr	w4, [x8]
Lloh49:
	adrp	x8, _FILE_ATTRIBUTE_NORMAL@GOTPAGE
Lloh50:
	ldr	x8, [x8, _FILE_ATTRIBUTE_NORMAL@GOTPAGEOFF]
Lloh51:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x3, #0
	mov	x6, #0
	bl	_CreateFile
Lloh52:
	adrp	x19, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh53:
	ldr	x19, [x19, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.12:
	bl	_GetLastError
	bl	_PrintErrorMessage
	ldr	x0, [x19]
LBB0_13:
	ldur	x8, [x29, #-56]
Lloh54:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh55:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh41
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_DRIVE_REMOTE,8,3               ; @DRIVE_REMOTE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FSUTIL needs a local device\n"

	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
l_.str.1:                               ; @.str.1
	.asciz	"\\\\.\\%s\\"

l_.str.2:                               ; @.str.2
	.asciz	"NTFS"

l_.str.3:                               ; @.str.3
	.asciz	"FSUTIL needs a NTFS device\n"

l_.str.4:                               ; @.str.4
	.asciz	"\\\\.\\%s"

	.comm	_GENERIC_READ,4,2               ; @GENERIC_READ
	.comm	_FILE_SHARE_READ,4,2            ; @FILE_SHARE_READ
	.comm	_FILE_SHARE_WRITE,4,2           ; @FILE_SHARE_WRITE
	.comm	_OPEN_EXISTING,4,2              ; @OPEN_EXISTING
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ; @FILE_ATTRIBUTE_NORMAL
.subsections_via_symbols
