	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function graph_cmd
_graph_cmd:                             ## @graph_cmd
	.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, %r13
	movq	%rsi, %r14
	movl	(%rdi), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_r_config_get
	movq	%rax, %r15
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rdi
	callq	_r_file_path
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_free
	leaq	L_.str.2(%rip), %rbx
	movq	%rbx, %rdi
	callq	_r_file_path
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
LBB0_2:
	testq	%r13, %r13
	je	LBB0_5
## %bb.3:
	cmpb	$0, (%r13)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_r_str_newf
	movq	%rax, %rbx
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
	callq	_getViewerPath
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %r13
	movq	%r15, (%rsp)
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movq	%r15, %r8
	movq	%rax, %r9
	xorl	%eax, %eax
	callq	_r_str_newf
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.6(%rip), %rdi
	callq	_eprintf
	xorl	%ebx, %ebx
LBB0_8:
	movq	%r12, %rdi
	callq	_free
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r12, %rdi
	callq	_free
	leaq	L_.str.3(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_r_str_new                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dot"

L_.str.1:                               ## @.str.1
	.asciz	"graph.gv.format"

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

L_.str.3:                               ## @.str.3
	.asciz	"agf"

L_.str.4:                               ## @.str.4
	.asciz	"%s > a.dot;!%s -T%s -o%s a.dot;"

L_.str.5:                               ## @.str.5
	.asciz	"%s > a.dot;!%s -T%s -oa.%s a.dot;!%s a.%s"

L_.str.6:                               ## @.str.6
	.asciz	"Cannot find a valid picture viewer\n"

	.no_dead_strip	_graph_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function graph_cmd
_graph_cmd:                             ; @graph_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x20, x1
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_r_config_get
	mov	x21, x0
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
	mov	x0, x23
	bl	_r_file_path
	mov	x19, x0
	mov	x1, x23
	bl	_strcmp
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_free
Lloh4:
	adrp	x23, l_.str.2@PAGE
Lloh5:
	add	x23, x23, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_r_file_path
	mov	x19, x0
	mov	x1, x23
	bl	_strcmp
	cbz	w0, LBB0_9
LBB0_2:
	cbz	x22, LBB0_5
; %bb.3:
	ldrb	w8, [x22]
	cbz	w8, LBB0_5
; %bb.4:
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	mov	x2, x23
	mov	x3, x21
	mov	x4, x22
	bl	_r_str_newf
	mov	x20, x0
	b	LBB0_8
LBB0_5:
	bl	_getViewerPath
	cbz	x0, LBB0_7
; %bb.6:
	mov	x22, x0
Lloh8:
	adrp	x0, l_.str.5@PAGE
Lloh9:
	add	x0, x0, l_.str.5@PAGEOFF
	stp	x22, x21, [sp]
	mov	x1, x20
	mov	x2, x23
	mov	x3, x21
	mov	x4, x21
	bl	_r_str_newf
	mov	x20, x0
	mov	x0, x22
	bl	_free
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x0, l_.str.6@PAGE
Lloh11:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_eprintf
	mov	x20, #0
LBB0_8:
	mov	x0, x19
	bl	_free
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	mov	x0, x19
	bl	_free
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_r_str_new
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dot"

l_.str.1:                               ; @.str.1
	.asciz	"graph.gv.format"

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

l_.str.3:                               ; @.str.3
	.asciz	"agf"

l_.str.4:                               ; @.str.4
	.asciz	"%s > a.dot;!%s -T%s -o%s a.dot;"

l_.str.5:                               ; @.str.5
	.asciz	"%s > a.dot;!%s -T%s -oa.%s a.dot;!%s a.%s"

l_.str.6:                               ; @.str.6
	.asciz	"Cannot find a valid picture viewer\n"

	.no_dead_strip	_graph_cmd
.subsections_via_symbols
