	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rename_c_file
_rename_c_file:                         ## @rename_c_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), %r12
	movq	%r12, %rdi
	callq	_strlen
	movslq	%eax, %r15
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	_cplus_suffix@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax), %edi
	incl	%edi
	callq	_alloca
	cmpb	$99, -1(%r12,%r15)
	jne	LBB0_5
## %bb.1:
	cmpb	$46, -2(%r15,%r12)
	jne	LBB0_5
## %bb.2:
	movq	%rax, %r14
	movq	_syscalls_absolute_filename@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_IS_SAME_PATH
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	decq	%r15
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_strcpy
	addq	%r14, %r15
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_strcpy
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_rename
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_pname@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_shortpath
	movl	%eax, %r12d
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_shortpath
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_xstrerror
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_notice
	movq	_errors@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cplus_suffix,8,3               ## @cplus_suffix
	.comm	_syscalls_absolute_filename,4,2 ## @syscalls_absolute_filename
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: warning: can't rename file '%s' to '%s': %s\n"

	.comm	_pname,4,2                      ## @pname
	.comm	_errors,4,2                     ## @errors
	.no_dead_strip	_rename_c_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rename_c_file
_rename_c_file:                         ; @rename_c_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
	ldr	x19, [x0]
	mov	x0, x19
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
	sub	x21, x23, #1
	mov	x0, x19
	bl	_strlen
	mov	x20, x0
Lloh0:
	adrp	x22, _cplus_suffix@GOTPAGE
Lloh1:
	ldr	x22, [x22, _cplus_suffix@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_strlen
	add	w8, w20, w0
	add	w0, w8, #1
	bl	_alloca
	ldrb	w8, [x19, x21]
	cmp	w8, #99
	b.ne	LBB0_5
; %bb.1:
	add	x8, x23, x19
	ldurb	w8, [x8, #-2]
	cmp	w8, #46
	b.ne	LBB0_5
; %bb.2:
	mov	x20, x0
Lloh2:
	adrp	x8, _syscalls_absolute_filename@GOTPAGE
Lloh3:
	ldr	x8, [x8, _syscalls_absolute_filename@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_IS_SAME_PATH
	cbnz	x0, LBB0_5
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_strcpy
	add	x0, x20, x21
	ldr	x1, [x22]
	bl	_strcpy
	mov	x0, x19
	mov	x1, x20
	bl	_rename
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
Lloh8:
	adrp	x8, _pname@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pname@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	mov	x0, #0
	mov	x1, x19
	bl	_shortpath
	mov	x19, x0
	mov	x0, #0
	mov	x1, x20
	bl	_shortpath
	mov	x20, x0
	mov	x0, x21
	bl	_xstrerror
	mov	x4, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x19
	mov	x3, x20
	bl	_notice
Lloh13:
	adrp	x8, _errors@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errors@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cplus_suffix,8,3               ; @cplus_suffix
	.comm	_syscalls_absolute_filename,4,2 ; @syscalls_absolute_filename
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: warning: can't rename file '%s' to '%s': %s\n"

	.comm	_pname,4,2                      ; @pname
	.comm	_errors,4,2                     ; @errors
	.no_dead_strip	_rename_c_file
.subsections_via_symbols
