	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_finish_repo                    ## -- Begin function finish_repo
	.p2align	4, 0x90
_finish_repo:                           ## @finish_repo
	.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	_flag_use_repository@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.1:
	movq	_errorcount@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_sorrycount@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	jne	LBB0_11
## %bb.2:
	xorl	%eax, %eax
	callq	_reopen_repo_file_for_write
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %r14
	movq	_main_input_filename@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
	callq	_getpwd
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_flag_random_seed@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_6:
	movl	$10, %edi
	movq	%r14, %rsi
	callq	_fputc
LBB0_7:
	movq	_pending_repo@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_10
## %bb.8:
	leaq	L_.str.7(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_TREE_VALUE
	movq	%rax, %rdi
	callq	_DECL_ASSEMBLER_NAME
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IDENTIFIER_REPO_CHOSEN
	testq	%rax, %rax
	movl	$67, %ebx
	movl	$79, %eax
	cmovel	%eax, %ebx
	movq	%r13, %rdi
	callq	_IDENTIFIER_POINTER
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r12, %rdi
	callq	_TREE_CHAIN
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fclose                         ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_flag_use_repository,4,2        ## @flag_use_repository
	.comm	_errorcount,8,3                 ## @errorcount
	.comm	_sorrycount,8,3                 ## @sorrycount
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"M %s\n"

	.comm	_main_input_filename,8,3        ## @main_input_filename
L_.str.1:                               ## @.str.1
	.asciz	"D %s\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"A %s"

L_.str.4:                               ## @.str.4
	.asciz	"'-frandom-seed="

L_.str.5:                               ## @.str.5
	.asciz	" '-frandom-seed=%s'"

	.comm	_flag_random_seed,8,3           ## @flag_random_seed
	.comm	_pending_repo,8,3               ## @pending_repo
L_.str.7:                               ## @.str.7
	.asciz	"%c %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_finish_repo                    ; -- Begin function finish_repo
	.p2align	2
_finish_repo:                           ; @finish_repo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _flag_use_repository@GOTPAGE
Lloh1:
	ldr	x8, [x8, _flag_use_repository@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_11
; %bb.1:
Lloh3:
	adrp	x8, _errorcount@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errorcount@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _sorrycount@GOTPAGE
Lloh7:
	ldr	x9, [x9, _sorrycount@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cbnz	x8, LBB0_11
; %bb.2:
	bl	_reopen_repo_file_for_write
	cbz	x0, LBB0_11
; %bb.3:
	mov	x19, x0
Lloh9:
	adrp	x8, _main_input_filename@GOTPAGE
Lloh10:
	ldr	x8, [x8, _main_input_filename@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	bl	_getpwd
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fprintf
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_7
; %bb.4:
	mov	x20, x0
	str	x0, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_fprintf
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbnz	w0, LBB0_6
; %bb.5:
Lloh22:
	adrp	x8, _flag_random_seed@GOTPAGE
Lloh23:
	ldr	x8, [x8, _flag_random_seed@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_6:
	mov	w0, #10
	mov	x1, x19
	bl	_fputc
LBB0_7:
Lloh27:
	adrp	x8, _pending_repo@GOTPAGE
Lloh28:
	ldr	x8, [x8, _pending_repo@GOTPAGEOFF]
Lloh29:
	ldr	x20, [x8]
	cbz	x20, LBB0_10
; %bb.8:
	mov	w24, #67
	mov	w25, #79
Lloh30:
	adrp	x21, l_.str.7@PAGE
Lloh31:
	add	x21, x21, l_.str.7@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_TREE_VALUE
	bl	_DECL_ASSEMBLER_NAME
	mov	x22, x0
	bl	_IDENTIFIER_REPO_CHOSEN
	mov	x23, x0
	mov	x0, x22
	bl	_IDENTIFIER_POINTER
	cmp	x23, #0
	csel	x8, x25, x24, eq
	stp	x8, x0, [sp]
	mov	x0, x19
	mov	x1, x21
	bl	_fprintf
	mov	x0, x20
	bl	_TREE_CHAIN
	mov	x20, x0
	cbnz	x0, LBB0_9
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_fclose
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_flag_use_repository,4,2        ; @flag_use_repository
	.comm	_errorcount,8,3                 ; @errorcount
	.comm	_sorrycount,8,3                 ; @sorrycount
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"M %s\n"

	.comm	_main_input_filename,8,3        ; @main_input_filename
l_.str.1:                               ; @.str.1
	.asciz	"D %s\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"A %s"

l_.str.4:                               ; @.str.4
	.asciz	"'-frandom-seed="

l_.str.5:                               ; @.str.5
	.asciz	" '-frandom-seed=%s'"

	.comm	_flag_random_seed,8,3           ; @flag_random_seed
	.comm	_pending_repo,8,3               ; @pending_repo
l_.str.7:                               ; @.str.7
	.asciz	"%c %s\n"

.subsections_via_symbols
