	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_finish                         ## -- Begin function finish
	.p2align	4, 0x90
_finish:                                ## @finish
	.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	_in_file_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	cmpb	$0, (%rbx)
	jne	LBB0_5
LBB0_2:
	movq	_save_file_name_prompt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TRUE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_get_string
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rbx
	cmpb	$0, (%rax)
	je	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	callq	_resolve_name
	movq	_tmp_file@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	cmpq	%rbx, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_free
	movq	(%r14), %rbx
LBB0_7:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_write_file
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_text_changes@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_quit                           ## TAILCALL
LBB0_4:
	movq	_com_win@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_wmove
	movl	(%rbx), %edi
	movq	_file_not_saved_msg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wprintw
	movl	(%rbx), %edi
	callq	_wclrtoeol
	movl	(%rbx), %edi
	callq	_wrefresh
	movl	(%r14), %eax
	movq	_clear_com_win@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_in_file_name,8,3               ## @in_file_name
	.comm	_save_file_name_prompt,4,2      ## @save_file_name_prompt
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_com_win,4,2                    ## @com_win
	.comm	_file_not_saved_msg,4,2         ## @file_not_saved_msg
	.comm	_clear_com_win,4,2              ## @clear_com_win
	.comm	_tmp_file,8,3                   ## @tmp_file
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_text_changes,4,2               ## @text_changes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_finish                         ; -- Begin function finish
	.p2align	2
_finish:                                ; @finish
	.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
Lloh0:
	adrp	x8, _in_file_name@GOTPAGE
Lloh1:
	ldr	x8, [x8, _in_file_name@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	cbz	x19, LBB0_2
; %bb.1:
	ldrb	w8, [x19]
	cbnz	w8, LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _save_file_name_prompt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _save_file_name_prompt@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x20, _TRUE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_get_string
	cbz	x0, LBB0_8
; %bb.3:
	mov	x19, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_8
LBB0_4:
	mov	x0, x19
	bl	_resolve_name
Lloh8:
	adrp	x20, _tmp_file@GOTPAGE
Lloh9:
	ldr	x20, [x20, _tmp_file@GOTPAGEOFF]
	str	x0, [x20]
	cmp	x0, x19
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_free
	ldr	x19, [x20]
LBB0_6:
	mov	x0, x19
	mov	w1, #1
	bl	_write_file
	cbz	x0, LBB0_9
; %bb.7:
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _text_changes@GOTPAGE
Lloh14:
	ldr	x9, [x9, _text_changes@GOTPAGEOFF]
Lloh15:
	str	w8, [x9]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_quit
LBB0_8:
Lloh16:
	adrp	x19, _com_win@GOTPAGE
Lloh17:
	ldr	x19, [x19, _com_win@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w1, #0
	mov	w2, #0
	bl	_wmove
	ldr	w0, [x19]
Lloh18:
	adrp	x8, _file_not_saved_msg@GOTPAGE
Lloh19:
	ldr	x8, [x8, _file_not_saved_msg@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_wprintw
	ldr	w0, [x19]
	bl	_wclrtoeol
	ldr	w0, [x19]
	bl	_wrefresh
	ldr	w8, [x20]
Lloh21:
	adrp	x9, _clear_com_win@GOTPAGE
Lloh22:
	ldr	x9, [x9, _clear_com_win@GOTPAGEOFF]
Lloh23:
	str	w8, [x9]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_in_file_name,8,3               ; @in_file_name
	.comm	_save_file_name_prompt,4,2      ; @save_file_name_prompt
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_com_win,4,2                    ; @com_win
	.comm	_file_not_saved_msg,4,2         ; @file_not_saved_msg
	.comm	_clear_com_win,4,2              ; @clear_com_win
	.comm	_tmp_file,8,3                   ; @tmp_file
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_text_changes,4,2               ; @text_changes
.subsections_via_symbols
