	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LockOrUnlockVolume
_LockOrUnlockVolume:                    ## @LockOrUnlockVolume
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rsi, %rsi
	jne	LBB0_1
## %bb.2:
	movq	_FSCTL_UNLOCK_VOLUME@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_FSCTL_LOCK_VOLUME@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	leaq	-12(%rbp), %rax
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	callq	_DeviceIoControl
	addq	$16, %rsp
	movq	_FALSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %edi
	callq	_PrintErrorMessage
	movl	$1, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSCTL_LOCK_VOLUME,4,2          ## @FSCTL_LOCK_VOLUME
	.comm	_FSCTL_UNLOCK_VOLUME,4,2        ## @FSCTL_UNLOCK_VOLUME
	.comm	_FALSE,8,3                      ## @FALSE
	.no_dead_strip	_LockOrUnlockVolume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LockOrUnlockVolume
_LockOrUnlockVolume:                    ; @LockOrUnlockVolume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _FSCTL_LOCK_VOLUME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FSCTL_LOCK_VOLUME@GOTPAGEOFF]
Lloh2:
	adrp	x9, _FSCTL_UNLOCK_VOLUME@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FSCTL_UNLOCK_VOLUME@GOTPAGEOFF]
	cmp	x1, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	sub	x6, x29, #4
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	mov	x7, #0
	bl	_DeviceIoControl
	mov	x8, x0
	mov	w0, #0
Lloh4:
	adrp	x9, _FALSE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	bl	_GetLastError
	bl	_PrintErrorMessage
	mov	w0, #1
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FSCTL_LOCK_VOLUME,4,2          ; @FSCTL_LOCK_VOLUME
	.comm	_FSCTL_UNLOCK_VOLUME,4,2        ; @FSCTL_UNLOCK_VOLUME
	.comm	_FALSE,8,3                      ; @FALSE
	.no_dead_strip	_LockOrUnlockVolume
.subsections_via_symbols
