	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_file_collision
_handle_file_collision:                 ## @handle_file_collision
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	%r8, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	movq	%r9, %r8
	movq	%r15, %r9
	pushq	16(%rbp)
	pushq	24(%rbp)
	callq	_handle_file_collision
	addq	$88, %rsp
	jmp	LBB0_31
LBB0_2:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	8(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.3:
	movq	%r13, %rax
	orq	%r12, %rax
	je	LBB0_18
## %bb.4:
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	16(%rbp), %rdx
	testq	%r13, %r13
	je	LBB0_6
## %bb.5:
	movq	%r13, %rcx
	jmp	LBB0_7
LBB0_12:
	testq	%r13, %r13
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_would_lose_untracked
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	callq	_remove_file
LBB0_14:
	testq	%r12, %r12
	je	LBB0_18
## %bb.15:
	movq	8(%rbx), %rax
	movl	$1, %ecx
	cmpl	$0, (%rax)
	jne	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_would_lose_untracked
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
LBB0_17:
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	callq	_remove_file
LBB0_18:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_was_dirty
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_20
LBB0_21:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_would_lose_untracked
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	leaq	L_.str.2(%rip), %rdi
LBB0_20:
	callq	__
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_output
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_unique_path
	movq	%rax, %r12
	movq	%rax, %r13
LBB0_24:
	movq	%r14, -104(%rbp)
	leaq	-88(%rbp), %rdi
	movq	_null_oid@GOTPCREL(%rip), %rsi
	callq	_oidcpy
	movq	$0, -96(%rbp)
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	subq	$8, %rsp
	leaq	-80(%rbp), %r10
	leaq	-104(%rbp), %rsi
	movq	%rbx, %rdi
	movq	16(%rbp), %rdx
	movq	24(%rbp), %rcx
	movq	%r14, %r8
	movq	%r15, %r9
	pushq	%r10
	pushq	%rax
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	callq	_merge_mode_and_contents
	addq	$32, %rsp
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_30
## %bb.25:
	xorl	%esi, %esi
	testq	%r12, %r12
	sete	%sil
	andl	-80(%rbp), %esi
	movl	%esi, -80(%rbp)
	leaq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rcx
	callq	_update_file
	testq	%rax, %rax
	jne	LBB0_30
## %bb.26:
	cmpl	$0, -80(%rbp)
	jne	LBB0_29
## %bb.27:
	movq	8(%rbx), %rax
	cmpl	$0, (%rax)
	jne	LBB0_29
## %bb.28:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	16(%rbp), %rcx
	movq	24(%rbp), %r8
	callq	_update_stages
	testq	%rax, %rax
	jne	LBB0_30
LBB0_29:
	movq	%r12, %rdi
	callq	_free
	movl	-80(%rbp), %r15d
	jmp	LBB0_30
LBB0_6:
	movq	%r14, %rcx
LBB0_7:
	callq	_update_file
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_8
LBB0_30:
	movl	%r15d, %eax
	addq	$72, %rsp
LBB0_31:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	testq	%r12, %r12
	je	LBB0_32
## %bb.9:
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	24(%rbp), %rdx
	movq	%r12, %rcx
	callq	_update_file
	xorl	%r15d, %r15d
	testq	%rax, %rax
	setne	%r15b
	negl	%r15d
	testq	%rax, %rax
	jne	LBB0_30
## %bb.10:
	testq	%r13, %r13
	je	LBB0_30
## %bb.11:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_remove_file
	jmp	LBB0_30
LBB0_23:
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_remove_file
	movq	%r14, %r13
	jmp	LBB0_24
LBB0_32:
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	24(%rbp), %rdx
	movq	%r14, %rcx
	callq	_update_file
	xorl	%r15d, %r15d
	negq	%rax
	sbbl	%r15d, %r15d
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Refusing to lose dirty file at %s"

L_.str.1:                               ## @.str.1
	.asciz	"merged"

L_.str.2:                               ## @.str.2
	.asciz	"Refusing to lose untracked file at %s, even though it's in the way."

	.comm	_null_oid,4,2                   ## @null_oid
	.no_dead_strip	_handle_file_collision
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_file_collision
_handle_file_collision:                 ; @handle_file_collision
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x7
	mov	x22, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0]
	cmp	x8, x4
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x25
	mov	x3, x26
	mov	x4, x23
	mov	x5, x24
	mov	x6, x20
	mov	x7, x22
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_handle_file_collision
LBB0_2:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.3:
	orr	x8, x26, x25
	cbz	x8, LBB0_18
; %bb.4:
	mov	x0, x21
	mov	w1, #1
	mov	x2, x22
	cbz	x26, LBB0_11
; %bb.5:
	mov	x3, x26
	bl	_update_file
	cbnz	x0, LBB0_25
	b	LBB0_12
LBB0_6:
	cbz	x26, LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x26
	bl	_would_lose_untracked
	cmp	x0, #0
	cset	w3, ne
	mov	x0, x21
	mov	w1, #1
	mov	x2, x26
	bl	_remove_file
LBB0_8:
	cbz	x25, LBB0_18
; %bb.9:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_16
; %bb.10:
	mov	w3, #1
	b	LBB0_17
LBB0_11:
	mov	x3, x19
	bl	_update_file
	cbnz	x0, LBB0_25
LBB0_12:
	cbz	x25, LBB0_31
; %bb.13:
	mov	x0, x21
	mov	w1, #1
	mov	x2, x20
	mov	x3, x25
	bl	_update_file
	mov	x8, x0
	cmp	x0, #0
	csetm	w0, ne
	cbnz	x8, LBB0_26
; %bb.14:
	cbz	x26, LBB0_26
; %bb.15:
	mov	x0, x21
	mov	w1, #1
	mov	x2, x19
	mov	w3, #0
	bl	_remove_file
	mov	w0, #0
	b	LBB0_26
LBB0_16:
	mov	x0, x21
	mov	x1, x25
	bl	_would_lose_untracked
	cmp	x0, #0
	cset	w3, ne
LBB0_17:
	mov	x0, x21
	mov	w1, #1
	mov	x2, x25
	bl	_remove_file
LBB0_18:
	mov	x0, x21
	mov	x1, x19
	bl	_was_dirty
	cbz	x0, LBB0_20
; %bb.19:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_22
LBB0_20:
	mov	x0, x21
	mov	x1, x19
	bl	_would_lose_untracked
	cbz	x0, LBB0_27
; %bb.21:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_22:
	bl	__
	mov	x2, x0
	mov	x0, x21
	mov	w1, #1
	mov	x3, x19
	bl	_output
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	bl	_unique_path
	mov	x25, x0
	mov	x26, x0
LBB0_23:
	str	x19, [sp, #8]
	add	x8, sp, #8
	add	x0, x8, #16
Lloh6:
	adrp	x1, _null_oid@GOTPAGE
Lloh7:
	ldr	x1, [x1, _null_oid@GOTPAGEOFF]
	bl	_oidcpy
	str	xzr, [sp, #16]
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	lsl	w7, w8, #1
	add	x27, sp, #32
	str	x27, [sp]
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	mov	x5, x24
	mov	x6, x23
	bl	_merge_mode_and_contents
	cbnz	x0, LBB0_25
; %bb.24:
	cmp	x25, #0
	cset	w8, eq
	ldr	w9, [sp, #32]
	and	w1, w9, w8
	str	w1, [sp, #32]
	add	x2, x27, #8
	mov	x0, x21
	mov	x3, x26
	bl	_update_file
	cbz	x0, LBB0_28
LBB0_25:
	mov	w0, #-1
LBB0_26:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_27:
	mov	x0, x21
	mov	w1, #0
	mov	x2, x19
	mov	w3, #0
	bl	_remove_file
	mov	x25, #0
	mov	x26, x19
	b	LBB0_23
LBB0_28:
	ldr	w8, [sp, #32]
	cbnz	w8, LBB0_30
; %bb.29:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_32
LBB0_30:
	mov	x0, x25
	bl	_free
	ldr	w0, [sp, #32]
	b	LBB0_26
LBB0_31:
	mov	x0, x21
	mov	w1, #1
	mov	x2, x20
	mov	x3, x19
	bl	_update_file
	cmp	x0, #0
	csetm	w0, ne
	b	LBB0_26
LBB0_32:
	mov	x0, x21
	mov	x1, x19
	mov	x2, #0
	mov	x3, x22
	mov	x4, x20
	bl	_update_stages
	cbnz	x0, LBB0_25
	b	LBB0_30
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Refusing to lose dirty file at %s"

l_.str.1:                               ; @.str.1
	.asciz	"merged"

l_.str.2:                               ; @.str.2
	.asciz	"Refusing to lose untracked file at %s, even though it's in the way."

	.comm	_null_oid,4,2                   ; @null_oid
	.no_dead_strip	_handle_file_collision
.subsections_via_symbols
