	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	cmpl	$3, %edi
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	callq	_usage
LBB0_2:
	movq	8(%rbx), %rdi
	movq	16(%rbx), %r14
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	8(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%rbx), %rdi
	callq	_usage
	jmp	LBB0_8
LBB0_3:
	movq	_logmsg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_vcfiled_lock
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movl	$300, %edi                      ## imm = 0x12C
	callq	_sleep
	jmp	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	callq	_vcfiled_is_running
	testq	%rax, %rax
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_printf
LBB0_8:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_printf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lock"

	.comm	_logmsg,4,2                     ## @logmsg
L_.str.1:                               ## @.str.1
	.asciz	"failed to lock %s\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"%s\n"

L_.str.4:                               ## @.str.4
	.asciz	"running"

L_.str.5:                               ## @.str.5
	.asciz	"not running"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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
	mov	x20, x1
	cmp	w0, #3
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x20]
	bl	_usage
LBB0_2:
	ldp	x0, x19, [x20, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x0, [x20, #8]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x0, [x20]
	bl	_usage
	b	LBB0_8
LBB0_5:
Lloh4:
	adrp	x8, _logmsg@GOTPAGE
Lloh5:
	ldr	x8, [x8, _logmsg@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vcfiled_lock
	cbnz	w0, LBB0_9
; %bb.6:
	mov	w0, #300
	bl	_sleep
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_vcfiled_is_running
Lloh7:
	adrp	x8, l_.str.4@PAGE
Lloh8:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh9:
	adrp	x9, l_.str.5@PAGE
Lloh10:
	add	x9, x9, l_.str.5@PAGEOFF
	cmp	x0, #0
	csel	x1, x9, x8, eq
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_printf
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lock"

	.comm	_logmsg,4,2                     ; @logmsg
l_.str.1:                               ; @.str.1
	.asciz	"failed to lock %s\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"%s\n"

l_.str.4:                               ; @.str.4
	.asciz	"running"

l_.str.5:                               ; @.str.5
	.asciz	"not running"

.subsections_via_symbols
