	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_conflicted_stages_file
_add_conflicted_stages_file:            ## @add_conflicted_stages_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
	cmpl	$0, 8(%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	4(%rsi), %edi
	callq	_strlen
	movq	_S_IFREG@GOTPCREL(%rip), %rcx
	movl	$420, %r12d                     ## imm = 0x1A4
	orl	(%rcx), %r12d
	movl	%eax, %r15d
	movl	(%r13), %eax
	movl	4(%r13), %esi
	testl	%eax, %eax
	cmovnel	%eax, %r12d
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_remove_file_from_index
	movq	8(%r13), %rdi
	callq	_is_null_oid
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_make_empty_cache_entry
	movq	%rax, %rbx
	movl	16(%rax), %edi
	movl	4(%r13), %esi
	movl	%r15d, %edx
	callq	_memcpy
	movl	%r12d, %edi
	callq	_create_ce_mode
	movl	%eax, 12(%rbx)
	movl	$1, %edi
	callq	_create_ce_flags
	movl	%eax, 8(%rbx)
	movl	%r15d, (%rbx)
	leaq	4(%rbx), %rdi
	movq	8(%r13), %rsi
	callq	_oidcpy
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_ADD_CACHE_OK_TO_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_add_index_entry
	testq	%rax, %rax
	js	LBB0_8
LBB0_3:
	movq	8(%r13), %rdi
	addq	$4, %rdi
	callq	_is_null_oid
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_make_empty_cache_entry
	movq	%rax, %rbx
	movl	16(%rax), %edi
	movl	4(%r13), %esi
	movl	%r15d, %edx
	callq	_memcpy
	movl	%r12d, %edi
	callq	_create_ce_mode
	movl	%eax, 12(%rbx)
	movl	$2, %edi
	callq	_create_ce_flags
	movl	%eax, 8(%rbx)
	movl	%r15d, (%rbx)
	leaq	4(%rbx), %rdi
	movq	8(%r13), %rsi
	addq	$4, %rsi
	callq	_oidcpy
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_ADD_CACHE_OK_TO_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_add_index_entry
	testq	%rax, %rax
	js	LBB0_8
LBB0_5:
	movq	8(%r13), %rdi
	addq	$8, %rdi
	callq	_is_null_oid
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_make_empty_cache_entry
	movq	%rax, %rbx
	movl	16(%rax), %edi
	movl	4(%r13), %esi
	movl	%r15d, %edx
	callq	_memcpy
	movl	%r12d, %edi
	callq	_create_ce_mode
	movl	%eax, 12(%rbx)
	movl	$3, %edi
	callq	_create_ce_flags
	movl	%eax, 8(%rbx)
	movl	%r15d, (%rbx)
	leaq	4(%rbx), %rdi
	movq	8(%r13), %rsi
	addq	$8, %rsi
	callq	_oidcpy
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_ADD_CACHE_OK_TO_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_add_index_entry
	testq	%rax, %rax
	js	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	callq	_discard_cache_entry
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	4(%r13), %esi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.comm	_ADD_CACHE_OK_TO_ADD,4,2        ## @ADD_CACHE_OK_TO_ADD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to add cache entry for %s"

	.no_dead_strip	_add_conflicted_stages_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_conflicted_stages_file
_add_conflicted_stages_file:            ; @add_conflicted_stages_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	w8, [x0, #8]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #4]
	bl	_strlen
	mov	x21, x0
Lloh0:
	adrp	x8, _S_IFREG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_IFREG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #420
	orr	w8, w8, w9
	ldp	w9, w1, [x19]
	cmp	w9, #0
	csel	w22, w8, w9, eq
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_remove_file_from_index
	ldr	x0, [x19, #8]
	bl	_is_null_oid
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_make_empty_cache_entry
	mov	x23, x0
	ldr	w0, [x0, #16]
	ldr	w1, [x19, #4]
	mov	x2, x21
	bl	_memcpy
	mov	x0, x22
	bl	_create_ce_mode
	str	w0, [x23, #12]
	mov	w0, #1
	bl	_create_ce_flags
	str	w0, [x23, #8]
	str	w21, [x23]
	add	x0, x23, #4
	ldr	x1, [x19, #8]
	bl	_oidcpy
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ADD_CACHE_OK_TO_ADD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADD_CACHE_OK_TO_ADD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_add_index_entry
	tbnz	x0, #63, LBB0_8
LBB0_3:
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	bl	_is_null_oid
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_make_empty_cache_entry
	mov	x23, x0
	ldr	w0, [x0, #16]
	ldr	w1, [x19, #4]
	mov	x2, x21
	bl	_memcpy
	mov	x0, x22
	bl	_create_ce_mode
	str	w0, [x23, #12]
	mov	w0, #2
	bl	_create_ce_flags
	str	w0, [x23, #8]
	str	w21, [x23]
	add	x0, x23, #4
	ldr	x8, [x19, #8]
	add	x1, x8, #4
	bl	_oidcpy
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ADD_CACHE_OK_TO_ADD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADD_CACHE_OK_TO_ADD@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_add_index_entry
	tbnz	x0, #63, LBB0_8
LBB0_5:
	ldr	x8, [x19, #8]
	add	x0, x8, #8
	bl	_is_null_oid
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_make_empty_cache_entry
	mov	x23, x0
	ldr	w0, [x0, #16]
	ldr	w1, [x19, #4]
	mov	x2, x21
	bl	_memcpy
	mov	x0, x22
	bl	_create_ce_mode
	str	w0, [x23, #12]
	mov	w0, #3
	bl	_create_ce_flags
	str	w0, [x23, #8]
	str	w21, [x23]
	add	x0, x23, #4
	ldr	x8, [x19, #8]
	add	x1, x8, #8
	bl	_oidcpy
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _ADD_CACHE_OK_TO_ADD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADD_CACHE_OK_TO_ADD@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_add_index_entry
	tbnz	x0, #63, LBB0_8
LBB0_7:
	mov	w0, #0
	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_8:
	mov	x0, x23
	bl	_discard_cache_entry
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	w1, [x19, #4]
	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
	b	_error
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.comm	_ADD_CACHE_OK_TO_ADD,4,2        ; @ADD_CACHE_OK_TO_ADD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to add cache entry for %s"

	.no_dead_strip	_add_conflicted_stages_file
.subsections_via_symbols
