	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_existing_file
_handle_existing_file:                  ## @handle_existing_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_stderr@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r14
	leaq	-44(%rbp), %r15
	leaq	LJTI0_0(%rip), %r12
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	(%rbx), %rdx
	movq	%r14, %rsi
	callq	_fprintf
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movsbl	-44(%rbp), %eax
	addl	$-65, %eax
	cmpl	$56, %eax
	ja	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r12,%rax,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	(%rbx), %rdi
	callq	_free
	movq	$0, (%rbx)
	movq	$0, -56(%rbp)
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_getdelim
	movq	(%rbx), %rcx
	movslq	%eax, %rdx
	xorl	%eax, %eax
	cmpb	$10, -1(%rdx,%rcx)
	jne	LBB0_11
## %bb.10:
	movb	$0, -1(%rcx,%rdx)
	jmp	LBB0_11
LBB0_2:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_clearerr
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_3:
	movq	_n_opt@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_4:
	movl	$-1, %eax
	jmp	LBB0_11
LBB0_7:
	movq	_o_opt@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_8:
	movq	(%rbx), %rdi
	callq	_unlink
	movl	$1, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_3
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_9
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_8
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_4
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_9
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_1
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"replace %s? [y]es, [n]o, [A]ll, [N]one, [r]ename: "

	.comm	_stdin,4,2                      ## @stdin
	.comm	_n_opt,4,2                      ## @n_opt
	.comm	_o_opt,4,2                      ## @o_opt
L_.str.2:                               ## @.str.2
	.asciz	"New name: "

	.comm	_stdout,4,2                     ## @stdout
L_str:                                  ## @str
	.asciz	"NULL\n(EOF or read error, treating as \"[N]one\"...)"

	.no_dead_strip	_handle_existing_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_existing_file
_handle_existing_file:                  ; @handle_existing_file
	.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	x19, x0
Lloh0:
	adrp	x22, _stderr@GOTPAGE
Lloh1:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
Lloh4:
	adrp	x21, _stdin@GOTPAGE
Lloh5:
	ldr	x21, [x21, _stdin@GOTPAGEOFF]
Lloh6:
	adrp	x23, lJTI0_0@PAGE
Lloh7:
	add	x23, x23, lJTI0_0@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	ldr	x2, [x19]
	mov	x1, x20
	bl	_fprintf
	ldr	w2, [x21]
	add	x0, sp, #4
	mov	w1, #4
	bl	_fgets
	cbz	x0, LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrsb	w8, [sp, #4]
	sub	w8, w8, #65
	cmp	w8, #56
	b.hi	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	adr	x9, LBB0_1
	ldrb	w10, [x23, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
Lloh10:
	adrp	x8, _stdout@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_fflush
	ldr	x0, [x19]
	bl	_free
	str	xzr, [x19]
	str	xzr, [sp, #8]
	ldr	w3, [x21]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #10
	bl	_getdelim
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19]
	sxtw	x9, w0
	sub	x9, x9, #1
	ldrb	w10, [x8, x9]
	cmp	w10, #10
	b.ne	LBB0_11
; %bb.5:
	mov	w0, #0
	strb	wzr, [x8, x9]
	b	LBB0_12
LBB0_6:
	ldr	w0, [x21]
	bl	_clearerr
Lloh13:
	adrp	x0, l_str@PAGE
Lloh14:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_7:
Lloh15:
	adrp	x8, _n_opt@GOTPAGE
Lloh16:
	ldr	x8, [x8, _n_opt@GOTPAGEOFF]
	mov	w9, #1
Lloh17:
	str	w9, [x8]
LBB0_8:
	mov	w0, #-1
	b	LBB0_12
LBB0_9:
Lloh18:
	adrp	x8, _o_opt@GOTPAGE
Lloh19:
	ldr	x8, [x8, _o_opt@GOTPAGEOFF]
	mov	w9, #1
Lloh20:
	str	w9, [x8]
LBB0_10:
	ldr	x0, [x19]
	bl	_unlink
	mov	w0, #1
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte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>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_10-LBB0_1)>>2
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"replace %s? [y]es, [n]o, [A]ll, [N]one, [r]ename: "

	.comm	_stdin,4,2                      ; @stdin
	.comm	_n_opt,4,2                      ; @n_opt
	.comm	_o_opt,4,2                      ; @o_opt
l_.str.2:                               ; @.str.2
	.asciz	"New name: "

	.comm	_stdout,4,2                     ; @stdout
l_str:                                  ; @str
	.asciz	"NULL\n(EOF or read error, treating as \"[N]one\"...)"

	.no_dead_strip	_handle_existing_file
.subsections_via_symbols
