	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_renameat               ## -- Begin function generic_renameat
	.p2align	4, 0x90
_generic_renameat:                      ## @generic_renameat
	.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	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_N_SYMLINK_NOFOLLOW@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_path_normalize
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	(%r12), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_N_PARENT_DIR_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r15), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_path_normalize
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	%r13, %rdi
	callq	_contains_mount_point
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	__EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	movl	%eax, %ebx
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r13, %rdi
	callq	_find_mount_and_trim_path
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_find_mount_and_trim_path
	movq	%rax, %r12
	cmpq	%rax, %r15
	je	LBB0_8
## %bb.7:
	movq	__EXDEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_8:
	movq	(%r15), %rax
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	*(%rax)
	movl	%eax, %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_mount_release
	movq	%r12, %rdi
	callq	_mount_release
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_N_SYMLINK_NOFOLLOW,4,2         ## @N_SYMLINK_NOFOLLOW
	.comm	_N_PARENT_DIR_WRITE,4,2         ## @N_PARENT_DIR_WRITE
	.comm	__EBUSY,4,2                     ## @_EBUSY
	.comm	__EXDEV,4,2                     ## @_EXDEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_renameat               ; -- Begin function generic_renameat
	.p2align	2
_generic_renameat:                      ; @generic_renameat
	.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
	sub	sp, sp, #16
	mov	x21, x3
	mov	x22, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x20, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MAX_PATH@GOTPAGEOFF]
	ldr	w8, [x20]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh7:
	adrp	x24, _N_SYMLINK_NOFOLLOW@GOTPAGE
Lloh8:
	ldr	x24, [x24, _N_SYMLINK_NOFOLLOW@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x2, x19
	bl	_path_normalize
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w8, [x20]
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w8, [x24]
Lloh11:
	adrp	x9, _N_PARENT_DIR_WRITE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _N_PARENT_DIR_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_path_normalize
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_contains_mount_point
	cbz	x0, LBB0_7
; %bb.3:
Lloh14:
	adrp	x8, __EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, __EBUSY@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x8]
	b	LBB0_5
LBB0_4:
	mov	x23, x0
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.6:
	mov	x0, x23
	sub	sp, x29, #48
	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
LBB0_7:
	mov	x0, x19
	bl	_find_mount_and_trim_path
	mov	x21, x0
	mov	x0, x20
	bl	_find_mount_and_trim_path
	mov	x22, x0
	cmp	x21, x0
	b.eq	LBB0_9
; %bb.8:
Lloh20:
	adrp	x8, __EXDEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, __EXDEV@GOTPAGEOFF]
Lloh22:
	ldr	w23, [x8]
	b	LBB0_10
LBB0_9:
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	blr	x8
	mov	x23, x0
LBB0_10:
	mov	x0, x21
	bl	_mount_release
	mov	x0, x22
	bl	_mount_release
	b	LBB0_5
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_N_SYMLINK_NOFOLLOW,4,2         ; @N_SYMLINK_NOFOLLOW
	.comm	_N_PARENT_DIR_WRITE,4,2         ; @N_PARENT_DIR_WRITE
	.comm	__EBUSY,4,2                     ; @_EBUSY
	.comm	__EXDEV,4,2                     ; @_EXDEV
.subsections_via_symbols
