	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_outfile
_check_outfile:                         ## @check_outfile
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_lflag@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	cmpq	$0, (%rax)
	jne	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	leaq	-56(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	_fflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	callq	_unlink
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movzwl	l___const.check_outfile.ans+8(%rip), %eax
	movw	%ax, -40(%rbp)
	movq	l___const.check_outfile.ans(%rip), %rax
	movq	%rax, -48(%rbp)
	movq	_stderr@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	movl	$9, %esi
	callq	_fgets
	movb	-48(%rbp), %al
	andb	$-33, %al
	cmpb	$89, %al
	je	LBB0_3
## %bb.6:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_maybe_warnx
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_lflag,8,3                      ## @lflag
	.comm	_fflag,8,3                      ## @fflag
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.section	__TEXT,__const
l___const.check_outfile.ans:            ## @__const.check_outfile.ans
	.byte	110                             ## 0x6e
	.space	9

	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s already exists -- do you wish to overwrite (y or n)? "

	.comm	_stdin,4,2                      ## @stdin
L_.str.1:                               ## @.str.1
	.asciz	"\tnot overwriting\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s already exists -- skipping"

	.no_dead_strip	_check_outfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_outfile
_check_outfile:                         ; @check_outfile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _lflag@GOTPAGE
Lloh4:
	ldr	x8, [x8, _lflag@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	add	x1, sp, #16
	bl	_stat
	cbz	x0, LBB0_5
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldur	x8, [x29, #-24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
Lloh9:
	adrp	x8, _fflag@GOTPAGE
Lloh10:
	ldr	x8, [x8, _fflag@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_unlink
	mov	w0, #1
	b	LBB0_3
LBB0_7:
Lloh12:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_isatty
	cbz	x0, LBB0_10
; %bb.8:
Lloh15:
	adrp	x8, l___const.check_outfile.ans@PAGE
Lloh16:
	add	x8, x8, l___const.check_outfile.ans@PAGEOFF
	ldr	x9, [x8]
	str	x9, [sp, #24]
	ldrh	w8, [x8, #8]
	strh	w8, [sp, #32]
Lloh17:
	adrp	x20, _stderr@GOTPAGE
Lloh18:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w0, [x20]
	str	x19, [sp]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
Lloh21:
	adrp	x8, _stdin@GOTPAGE
Lloh22:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	add	x0, sp, #24
	mov	w1, #9
	bl	_fgets
	ldrb	w8, [sp, #24]
	and	w8, w8, #0xffffffdf
	cmp	w8, #89
	b.eq	LBB0_6
; %bb.9:
	ldr	w0, [x20]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	b	LBB0_11
LBB0_10:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_maybe_warnx
LBB0_11:
	mov	w0, #0
	b	LBB0_3
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_lflag,8,3                      ; @lflag
	.comm	_fflag,8,3                      ; @fflag
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.section	__TEXT,__const
l___const.check_outfile.ans:            ; @__const.check_outfile.ans
	.byte	110                             ; 0x6e
	.space	9

	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s already exists -- do you wish to overwrite (y or n)? "

	.comm	_stdin,4,2                      ; @stdin
l_.str.1:                               ; @.str.1
	.asciz	"\tnot overwriting\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s already exists -- skipping"

	.no_dead_strip	_check_outfile
.subsections_via_symbols
