	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_finish_graph_dump_file         ## -- Begin function finish_graph_dump_file
	.p2align	4, 0x90
_finish_graph_dump_file:                ## @finish_graph_dump_file
	.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	%rdi, %r14
	callq	_strlen
	movslq	%eax, %rbx
	movq	_graph_ext@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_graph_dump_format@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_strlen
	movslq	%eax, %r15
	leaq	(%r15,%rbx), %rdi
	incq	%rdi
	incq	%r15
	callq	_alloca
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	addq	%r12, %rbx
	movq	_graph_ext@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_memcpy
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%r13), %rax
	movq	_vcg@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_gcc_assert
	leaq	L_.str.1(%rip), %rdi
	movl	$2, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fclose                         ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_graph_ext,8,3                  ## @graph_ext
	.comm	_graph_dump_format,8,3          ## @graph_dump_format
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"a"

	.comm	_vcg,8,3                        ## @vcg
L_.str.1:                               ## @.str.1
	.asciz	"}\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_finish_graph_dump_file         ; -- Begin function finish_graph_dump_file
	.p2align	2
_finish_graph_dump_file:                ; @finish_graph_dump_file
	.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
	mov	x19, x0
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
Lloh0:
	adrp	x24, _graph_ext@GOTPAGE
Lloh1:
	ldr	x24, [x24, _graph_ext@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh2:
	adrp	x23, _graph_dump_format@GOTPAGE
Lloh3:
	ldr	x23, [x23, _graph_dump_format@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	x0, [x8, x9, lsl #3]
	bl	_strlen
	add	w8, w0, #1
	sxtw	x21, w8
	add	x0, x21, x20
	bl	_alloca
	mov	x22, x0
	mov	x1, x19
	mov	x2, x20
	bl	_memcpy
	add	x0, x22, x20
	ldr	x8, [x24]
	ldr	x9, [x23]
	ldr	x1, [x8, x9, lsl #3]
	mov	x2, x21
	bl	_memcpy
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_fopen
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x23]
Lloh6:
	adrp	x9, _vcg@GOTPAGE
Lloh7:
	ldr	x9, [x9, _vcg@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_gcc_assert
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #2
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	mov	x0, x19
	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
	b	_fclose
LBB0_2:
	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
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_graph_ext,8,3                  ; @graph_ext
	.comm	_graph_dump_format,8,3          ; @graph_dump_format
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"a"

	.comm	_vcg,8,3                        ; @vcg
l_.str.1:                               ; @.str.1
	.asciz	"}\n"

.subsections_via_symbols
