	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_rename_via_dir
_handle_rename_via_dir:                 ## @handle_rename_via_dir
	.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, %r14
	movq	(%rsi), %rcx
	movq	16(%rcx), %rax
	movq	(%rax), %r12
	movq	(%r12), %r13
	movq	(%rdi), %rbx
	movq	_MERGE_DIRECTORY_RENAMES_CONFLICT@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	8(%rcx), %edi
	callq	_assert
	movq	16(%r14), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
LBB0_3:
	cmpq	%r15, %rbx
	je	LBB0_4
## %bb.8:
	movq	(%r12), %rcx
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	callq	_update_file
	xorl	%ebx, %ebx
	negq	%rax
	sbbl	%ebx, %ebx
	orl	$1, %ebx
	jmp	LBB0_9
LBB0_1:
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_would_lose_untracked
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r12), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	%r14, %rdi
	callq	_unique_path
	movq	%rax, %r13
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	(%r12), %rcx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	movq	%r13, %r8
	callq	_output
LBB0_4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_update_file
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	cmpq	(%r12), %r13
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_free
	movq	(%r12), %r13
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	cmpq	8(%r14), %rax
	movl	$0, %ecx
	cmoveq	%r12, %rcx
	cmoveq	%rbx, %r12
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_update_stages
	negq	%rax
	sbbl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MERGE_DIRECTORY_RENAMES_CONFLICT,8,3 ## @MERGE_DIRECTORY_RENAMES_CONFLICT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: Refusing to lose untracked file at %s; writing to %s instead."

	.no_dead_strip	_handle_rename_via_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_rename_via_dir
_handle_rename_via_dir:                 ; @handle_rename_via_dir
	.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
	mov	x19, x0
	ldr	x22, [x1]
	ldr	x8, [x22, #16]
	ldr	x20, [x8]
	ldr	x21, [x20]
	ldr	x23, [x0]
Lloh0:
	adrp	x8, _MERGE_DIRECTORY_RENAMES_CONFLICT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MERGE_DIRECTORY_RENAMES_CONFLICT@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	ldr	w0, [x22, #8]
	bl	_assert
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_3
LBB0_1:
	cmp	x23, x24
	b.eq	LBB0_5
; %bb.2:
	ldr	x3, [x20]
	mov	w21, #1
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	bl	_update_file
	cmp	x0, #0
	cneg	w0, w21, ne
	b	LBB0_10
LBB0_3:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_would_lose_untracked
	cbz	x0, LBB0_1
; %bb.4:
	ldr	x1, [x20]
	ldr	x2, [x22]
	mov	x0, x19
	bl	_unique_path
	mov	x21, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x2, x0
	ldr	x3, [x20]
	mov	x0, x19
	mov	w1, #1
	mov	x4, x21
	bl	_output
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	x3, x21
	bl	_update_file
	cbz	x0, LBB0_7
; %bb.6:
	mov	w0, #-1
	b	LBB0_10
LBB0_7:
	ldr	x8, [x20]
	cmp	x21, x8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_free
	ldr	x21, [x20]
LBB0_9:
	ldr	x8, [x22]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	csel	x3, x20, xzr, eq
	csel	x4, xzr, x20, eq
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	bl	_update_stages
	cmp	x0, #0
	csetm	w0, ne
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MERGE_DIRECTORY_RENAMES_CONFLICT,8,3 ; @MERGE_DIRECTORY_RENAMES_CONFLICT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: Refusing to lose untracked file at %s; writing to %s instead."

	.no_dead_strip	_handle_rename_via_dir
.subsections_via_symbols
