	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_content_merge
_handle_content_merge:                  ## @handle_content_merge
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %r13
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_is_valid
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
LBB0_3:
	movq	24(%rbp), %rbx
	movq	16(%rbp), %rax
	xorl	%edi, %edi
	cmpq	$0, 8(%r13)
	je	LBB0_6
## %bb.4:
	cmpq	$0, 8(%r15)
	je	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	cmpq	$0, 8(%rax)
	setne	%dil
LBB0_6:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	callq	_assert
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movq	(%rax), %r14
	xorl	%r15d, %r15d
	cmpl	$0, (%rcx)
	sete	%r15b
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_S_ISGITLINK
	movq	%r14, %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r15d, %edx
	movq	%rax, %rcx
	callq	_dir_in_way
	testq	%rax, %rax
	setne	%r15b
	jmp	LBB0_9
LBB0_8:
	xorl	%r15d, %r15d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_9:
	movl	20(%r12), %r9d
	movl	16(%r12), %eax
	movq	8(%r12), %rcx
	movl	(%rcx), %ebx
	addl	%ebx, %ebx
	subq	$8, %rsp
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rbp), %rcx
	movq	%r14, %r8
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%rbx
	pushq	%rax
	callq	_merge_mode_and_contents
	addq	$32, %rsp
	movl	$-1, %ecx
	testq	%rax, %rax
	je	LBB0_10
LBB0_29:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rbx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_was_tracked_and_matches
	testq	%rax, %rax
	sete	%al
	orb	%r15b, %al
	je	LBB0_25
## %bb.12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jne	LBB0_18
LBB0_13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	callq	_S_ISGITLINK
	testq	%rax, %rax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_15
## %bb.14:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	%rax, %rbx
LBB0_15:
	cmpq	$0, 24(%rbp)
	sete	%r14b
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rax, %rdx
	movq	%rbx, %rcx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_output
	orb	%r15b, %r14b
	movq	%rbx, %r14
	jne	LBB0_18
## %bb.16:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rbp), %r8
	callq	_update_stages
	testq	%rax, %rax
	jne	LBB0_17
LBB0_18:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	sete	%al
	xorb	$1, %r15b
	testb	%r15b, %al
	jne	LBB0_30
## %bb.19:
	movq	8(%r12), %rax
	cmpl	$0, (%rax)
	je	LBB0_32
## %bb.20:
	movq	(%r12), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	callq	_remove_file_from_index
LBB0_21:
	movq	24(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_unique_path
	movq	%rax, %r15
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_23
## %bb.22:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rax, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_output
LBB0_23:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rax, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_output
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r15, %rcx
	callq	_update_file
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_free
	testq	%rbx, %rbx
	movl	$-1, %ecx
	jne	LBB0_29
## %bb.24:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	xorl	%ecx, %ecx
	jmp	LBB0_29
LBB0_25:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	%r12, %rdi
	movl	$3, %esi
	movq	%rax, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_output
	movq	8(%r12), %rax
	xorl	%r8d, %r8d
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	sete	%r8b
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_add_cacheinfo
	testq	%rax, %rax
	movl	$-1, %ecx
	jne	LBB0_29
## %bb.26:
	movq	8(%r12), %rbx
	addq	$8, %rbx
	movq	%r14, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_index_name_pos
	movq	8(%r12), %rcx
	movq	8(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rdi
	callq	_ce_skip_worktree
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	(%r12), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_index_name_pos
	movq	(%r12), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movq	_CE_SKIP_WORKTREE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_28:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	jmp	LBB0_29
LBB0_30:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	leaq	8(%rax), %rdx
	movq	%r12, %rdi
	movq	%r14, %rcx
	callq	_update_file
	testq	%rax, %rax
	movl	$-1, %ecx
	jne	LBB0_29
## %bb.31:
	xorl	%ecx, %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	setne	%cl
	jmp	LBB0_29
LBB0_32:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_34
## %bb.33:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_was_tracked
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	8(%rcx), %r8
	xorl	%edx, %edx
	testl	%eax, %eax
	movq	%r8, %rcx
	cmoveq	%rdx, %rcx
	cmovneq	%rdx, %r8
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	jmp	LBB0_35
LBB0_34:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rbp), %r8
LBB0_35:
	callq	_update_stages
	testq	%rax, %rax
	je	LBB0_21
LBB0_17:
	movl	$-1, %ecx
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"content"

L_.str.1:                               ## @.str.1
	.asciz	"add/add"

L_.str.2:                               ## @.str.2
	.asciz	"Skipped %s (merged same as existing)"

	.comm	_CE_SKIP_WORKTREE,4,2           ## @CE_SKIP_WORKTREE
L_.str.3:                               ## @.str.3
	.asciz	"submodule"

L_.str.4:                               ## @.str.4
	.asciz	"CONFLICT (%s): Merge conflict in %s"

L_.str.5:                               ## @.str.5
	.asciz	"Refusing to lose dirty file at %s"

L_.str.6:                               ## @.str.6
	.asciz	"Adding as %s instead"

	.no_dead_strip	_handle_content_merge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_content_merge
_handle_content_merge:                  ; @handle_content_merge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x7
	mov	x24, x6
	mov	x25, x5
	mov	x26, x4
	str	w3, [sp, #12]                   ; 4-byte Folded Spill
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x27, x0
	mov	x0, x26
	bl	_is_valid
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x26, #8]
	cbnz	x8, LBB0_3
	b	LBB0_6
LBB0_2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x27, x0
	ldr	x8, [x26, #8]
	cbz	x8, LBB0_6
LBB0_3:
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x24, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	cbnz	x23, LBB0_7
LBB0_5:
	mov	w22, #0
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	bl	_assert
	cbz	x23, LBB0_5
LBB0_7:
	ldp	x8, x9, [x20]
	ldr	x28, [x8]
	ldr	w8, [x9]
	cmp	w8, #0
	cset	w22, eq
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_S_ISGITLINK
	mov	x3, x0
	mov	x0, x28
	mov	x1, x21
	mov	x2, x22
	bl	_dir_in_way
	cmp	x0, #0
	cset	w22, ne
LBB0_8:
	ldp	w6, w5, [x20, #16]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	lsl	w7, w8, #1
	str	x19, [sp]
	mov	x0, x20
	mov	x1, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x21
	bl	_merge_mode_and_contents
	cbz	x0, LBB0_11
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	ldr	w8, [x19]
	cbz	w8, LBB0_14
; %bb.12:
	add	x28, x19, #8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x28
	bl	_was_tracked_and_matches
	cmp	x0, #0
	cset	w8, eq
	orr	w8, w22, w8
	tbz	w8, #0, LBB0_25
; %bb.13:
	ldr	w8, [x19]
	cbnz	w8, LBB0_18
LBB0_14:
	ldr	w0, [x19, #8]
	bl	_S_ISGITLINK
	cbz	x0, LBB0_16
; %bb.15:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x27, x0
LBB0_16:
	cmp	x23, #0
	cset	w28, eq
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x2, x0
	str	x21, [sp]
	mov	x0, x20
	mov	w1, #1
	mov	x3, x27
	bl	_output
	orr	w8, w28, w22
	tbnz	w8, #0, LBB0_18
; %bb.17:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x26
	mov	x3, x25
	mov	x4, x24
	bl	_update_stages
	cbnz	x0, LBB0_9
LBB0_18:
	ldr	w27, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w27, #0
	cset	w8, eq
	eor	w9, w22, #0x1
	and	w8, w8, w9
	tbnz	w8, #0, LBB0_29
; %bb.19:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_31
; %bb.20:
	ldr	x8, [x20]
	ldr	x0, [x8]
	mov	x1, x21
	bl	_remove_file_from_index
LBB0_21:
	ldr	x8, [x23]
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_unique_path
	mov	x23, x0
	cbz	w27, LBB0_23
; %bb.22:
Lloh8:
	adrp	x0, l_.str.5@PAGE
Lloh9:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x2, x0
	mov	x0, x20
	mov	w1, #1
	mov	x3, x21
	bl	_output
LBB0_23:
Lloh10:
	adrp	x0, l_.str.6@PAGE
Lloh11:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	mov	x2, x0
	mov	x0, x20
	mov	w1, #1
	mov	x3, x23
	bl	_output
	add	x2, x19, #8
	mov	x0, x20
	mov	w1, #0
	mov	x3, x23
	bl	_update_file
	mov	x20, x0
	mov	x0, x23
	bl	_free
	cbnz	x20, LBB0_9
; %bb.24:
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_10
LBB0_25:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x2, x0
	mov	x0, x20
	mov	w1, #3
	mov	x3, x21
	bl	_output
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	orr	w8, w8, w9
	cmp	w8, #0
	cset	w4, eq
	mov	x0, x20
	mov	x1, x28
	mov	x2, x21
	mov	w3, #0
	mov	w5, #0
	bl	_add_cacheinfo
	cbnz	x0, LBB0_9
; %bb.26:
	ldr	x8, [x20, #8]
	add	x22, x8, #8
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_index_name_pos
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	ldr	x0, [x8, w0, sxtw #3]
	bl	_ce_skip_worktree
	cbz	x0, LBB0_28
; %bb.27:
	ldr	x8, [x20]
	ldr	x22, [x8]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_index_name_pos
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
Lloh14:
	adrp	x9, _CE_SKIP_WORKTREE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CE_SKIP_WORKTREE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_28:
	ldr	w0, [x19]
	b	LBB0_10
LBB0_29:
	mov	x2, x19
	ldr	w1, [x2], #8
	mov	x0, x20
	mov	x3, x21
	bl	_update_file
	cbnz	x0, LBB0_9
; %bb.30:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, ne
	b	LBB0_10
LBB0_31:
	ldr	w8, [x19]
	cbz	w8, LBB0_33
; %bb.32:
	mov	x0, x20
	mov	x1, x21
	bl	_was_tracked
	add	x8, x19, #8
	cmp	w0, #0
	csel	x3, xzr, x8, eq
	csel	x4, x8, xzr, eq
	mov	x0, x20
	mov	x1, x21
	mov	x2, #0
	bl	_update_stages
	cbnz	x0, LBB0_9
	b	LBB0_21
LBB0_33:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x26
	mov	x3, x25
	mov	x4, x24
	bl	_update_stages
	cbnz	x0, LBB0_9
	b	LBB0_21
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"content"

l_.str.1:                               ; @.str.1
	.asciz	"add/add"

l_.str.2:                               ; @.str.2
	.asciz	"Skipped %s (merged same as existing)"

	.comm	_CE_SKIP_WORKTREE,4,2           ; @CE_SKIP_WORKTREE
l_.str.3:                               ; @.str.3
	.asciz	"submodule"

l_.str.4:                               ; @.str.4
	.asciz	"CONFLICT (%s): Merge conflict in %s"

l_.str.5:                               ; @.str.5
	.asciz	"Refusing to lose dirty file at %s"

l_.str.6:                               ; @.str.6
	.asciz	"Adding as %s instead"

	.no_dead_strip	_handle_content_merge
.subsections_via_symbols
