	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_to_index                   ## -- Begin function add_to_index
	.p2align	4, 0x90
_add_to_index:                          ## @add_to_index
	.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	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_CE_MATCH_IGNORE_VALID@GOTPCREL(%rip), %rsi
	movq	_CE_MATCH_IGNORE_SKIP_WORKTREE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ADD_CACHE_PRETEND@GOTPCREL(%rip), %rdi
	movq	_ADD_CACHE_INTENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movq	_ADD_CACHE_OK_TO_REPLACE@GOTPCREL(%rip), %rdx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	andl	%ecx, %r13d
	je	LBB0_2
## %bb.1:
	movq	_ADD_CACHE_NEW_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_2:
	movq	_ADD_CACHE_OK_TO_ADD@GOTPCREL(%rip), %rax
	movl	(%rdx), %r14d
	orl	(%rsi), %ebx
	movq	_CE_MATCH_RACY_IS_DIRTY@GOTPCREL(%rip), %rdx
	movq	_ADD_CACHE_VERBOSE@GOTPCREL(%rip), %rsi
	movl	(%rdi), %r15d
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %r12d
	movq	_HASH_WRITE_OBJECT@GOTPCREL(%rip), %rcx
	movq	_ADD_CACHE_RENORMALIZE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	-44(%rbp), %edi                 ## 4-byte Folded Reload
	je	LBB0_4
## %bb.3:
	movq	_HASH_RENORMALIZE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
LBB0_4:
	orl	(%rax), %r14d
	orl	(%rdx), %ebx
	movl	%ebx, -88(%rbp)                 ## 4-byte Spill
	movl	(%rsi), %ebx
	orl	%r15d, %ebx
	orl	(%rcx), %edi
	movl	%edi, -92(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_S_ISREG
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	%r12d, %edi
	callq	_S_ISLNK
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	%r12d, %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_49
LBB0_7:
	movl	%r15d, -100(%rbp)               ## 4-byte Spill
	movl	%ebx, -96(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %r15d
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	leaq	-104(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_resolve_gitlink_ref
	testq	%rax, %rax
	movq	%rbx, %r12
	js	LBB0_13
## %bb.9:
	movslq	%r15d, %rax
	incl	%r15d
	movq	%rax, %rcx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	subq	$1, %rcx
	jb	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	decl	%r15d
	cmpb	$47, -1(%r12,%rax)
	movq	%rcx, %rax
	je	LBB0_10
	jmp	LBB0_15
LBB0_12:
	movq	%rbx, %r12
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_57
LBB0_14:
	xorl	%r15d, %r15d
LBB0_15:
	movl	%r14d, -84(%rbp)                ## 4-byte Spill
	movl	%r13d, -72(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_make_empty_cache_entry
	movq	%rax, %r14
	movl	24(%rax), %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movl	%r15d, (%r14)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_17
## %bb.16:
	movq	_CE_INTENT_TO_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%r14)
	jmp	LBB0_18
LBB0_17:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_fill_stat_cache_info
LBB0_18:
	movq	_ADD_CACHE_RENORMALIZE@GOTPCREL(%rip), %r13
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	_trust_executable_bit@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.19:
	movq	_has_symlinks@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.20:
	callq	_create_ce_mode
	jmp	LBB0_25
LBB0_21:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_index_name_pos_also_unmerged
	testl	%eax, %eax
	js	LBB0_23
## %bb.22:
	movq	(%rbx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rdi
	jmp	LBB0_24
LBB0_23:
	xorl	%edi, %edi
LBB0_24:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_ce_mode_from_stat
LBB0_25:
	movq	%rax, 8(%r14)
	movq	_ignore_case@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_27
## %bb.26:
	movl	24(%r14), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_adjust_dirname_case
LBB0_27:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, (%r13)
	je	LBB0_38
LBB0_28:
	xorl	%ebx, %ebx
LBB0_29:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_44
## %bb.30:
	movq	%r14, %rdi
	callq	_set_object_name_for_intent_to_add_entry
LBB0_31:
	cmpq	$0, (%r15)
	je	LBB0_35
## %bb.32:
	testq	%rbx, %rbx
	je	LBB0_35
## %bb.33:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_different_name
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_create_alias_ce
	movq	%rax, %r14
LBB0_35:
	movq	_CE_ADDED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%r14)
	testq	%rbx, %rbx
	je	LBB0_50
## %bb.36:
	movq	%rbx, %rdi
	callq	_ce_stage
	testl	%eax, %eax
	je	LBB0_47
LBB0_50:
	xorl	%r15d, %r15d
LBB0_51:
	movl	-100(%rbp), %eax                ## 4-byte Reload
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_55
## %bb.52:
	movq	%r14, %rdi
	callq	_discard_cache_entry
LBB0_53:
	movl	-96(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	sete	%al
	xorl	%ebx, %ebx
	orb	%r15b, %al
	jne	LBB0_58
## %bb.54:
	leaq	L_.str.5(%rip), %rdi
	movq	%r12, %rsi
	callq	_printf
	jmp	LBB0_58
LBB0_38:
	movl	24(%r14), %ebx
	movq	%r14, %rdi
	callq	_ce_namelen
	movq	(%r15), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_index_file_exists
	testq	%rax, %rax
	je	LBB0_28
## %bb.39:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ce_stage
	testl	%eax, %eax
	jne	LBB0_29
## %bb.40:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	callq	_ie_match_stat
	testl	%eax, %eax
	jne	LBB0_29
## %bb.41:
	movq	8(%rbx), %rdi
	callq	_S_ISGITLINK
	testl	%eax, %eax
	jne	LBB0_43
## %bb.42:
	movq	%rbx, %rdi
	callq	_ce_mark_uptodate
LBB0_43:
	movq	_CE_ADDED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rbx)
	movq	%r14, %rdi
	callq	_discard_cache_entry
	xorl	%ebx, %ebx
	jmp	LBB0_58
LBB0_44:
	movq	%r14, %rsi
	addq	$16, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	-92(%rbp), %r8d                 ## 4-byte Reload
	callq	_index_path
	testq	%rax, %rax
	je	LBB0_31
## %bb.45:
	movq	%r14, %rdi
	callq	_discard_cache_entry
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_57
LBB0_55:
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	orl	-72(%rbp), %edx                 ## 4-byte Folded Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_add_index_entry
	testq	%rax, %rax
	je	LBB0_53
## %bb.56:
	movq	%r14, %rdi
	callq	_discard_cache_entry
	leaq	L_.str.4(%rip), %rdi
LBB0_57:
	callq	__
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_error
	movl	%eax, %ebx
LBB0_58:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_47:
	leaq	16(%rbx), %rdi
	leaq	16(%r14), %rsi
	callq	_oideq
	testq	%rax, %rax
	je	LBB0_50
## %bb.48:
	movq	8(%r14), %rax
	cmpq	8(%rbx), %rax
	sete	%r15b
	jmp	LBB0_51
LBB0_49:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CE_MATCH_IGNORE_VALID,4,2      ## @CE_MATCH_IGNORE_VALID
	.comm	_CE_MATCH_IGNORE_SKIP_WORKTREE,4,2 ## @CE_MATCH_IGNORE_SKIP_WORKTREE
	.comm	_CE_MATCH_RACY_IS_DIRTY,4,2     ## @CE_MATCH_RACY_IS_DIRTY
	.comm	_ADD_CACHE_VERBOSE,4,2          ## @ADD_CACHE_VERBOSE
	.comm	_ADD_CACHE_PRETEND,4,2          ## @ADD_CACHE_PRETEND
	.comm	_ADD_CACHE_INTENT,4,2           ## @ADD_CACHE_INTENT
	.comm	_ADD_CACHE_OK_TO_ADD,4,2        ## @ADD_CACHE_OK_TO_ADD
	.comm	_ADD_CACHE_OK_TO_REPLACE,4,2    ## @ADD_CACHE_OK_TO_REPLACE
	.comm	_ADD_CACHE_NEW_ONLY,4,2         ## @ADD_CACHE_NEW_ONLY
	.comm	_HASH_WRITE_OBJECT,4,2          ## @HASH_WRITE_OBJECT
	.comm	_ADD_CACHE_RENORMALIZE,4,2      ## @ADD_CACHE_RENORMALIZE
	.comm	_HASH_RENORMALIZE,4,2           ## @HASH_RENORMALIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: can only add regular files, symbolic links or git-directories"

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

L_.str.2:                               ## @.str.2
	.asciz	"'%s' does not have a commit checked out"

	.comm	_CE_INTENT_TO_ADD,4,2           ## @CE_INTENT_TO_ADD
	.comm	_trust_executable_bit,8,3       ## @trust_executable_bit
	.comm	_has_symlinks,8,3               ## @has_symlinks
	.comm	_ignore_case,8,3                ## @ignore_case
	.comm	_CE_ADDED,4,2                   ## @CE_ADDED
L_.str.3:                               ## @.str.3
	.asciz	"unable to index file '%s'"

L_.str.4:                               ## @.str.4
	.asciz	"unable to add '%s' to index"

L_.str.5:                               ## @.str.5
	.asciz	"add '%s'\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_to_index                   ; -- Begin function add_to_index
	.p2align	2
_add_to_index:                          ; @add_to_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x3
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w24, [x2]
Lloh0:
	adrp	x8, _CE_MATCH_IGNORE_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CE_MATCH_IGNORE_VALID@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CE_MATCH_IGNORE_SKIP_WORKTREE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CE_MATCH_IGNORE_SKIP_WORKTREE@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x8]
Lloh5:
	ldr	w8, [x9]
	stp	w8, w10, [sp, #8]               ; 8-byte Folded Spill
Lloh6:
	adrp	x8, _CE_MATCH_RACY_IS_DIRTY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CE_MATCH_RACY_IS_DIRTY@GOTPAGEOFF]
Lloh8:
	adrp	x9, _ADD_CACHE_VERBOSE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ADD_CACHE_VERBOSE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
Lloh11:
	ldr	w22, [x9]
Lloh12:
	adrp	x8, _ADD_CACHE_PRETEND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ADD_CACHE_PRETEND@GOTPAGEOFF]
Lloh14:
	adrp	x9, _ADD_CACHE_INTENT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ADD_CACHE_INTENT@GOTPAGEOFF]
Lloh16:
	ldr	w25, [x8]
Lloh17:
	ldr	w8, [x9]
	ands	w28, w8, w3
Lloh18:
	adrp	x8, _ADD_CACHE_OK_TO_ADD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ADD_CACHE_OK_TO_ADD@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
Lloh21:
	adrp	x8, _ADD_CACHE_OK_TO_REPLACE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ADD_CACHE_OK_TO_REPLACE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
Lloh24:
	adrp	x8, _ADD_CACHE_NEW_ONLY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ADD_CACHE_NEW_ONLY@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	csel	w8, wzr, w8, eq
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
Lloh27:
	adrp	x8, _HASH_WRITE_OBJECT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HASH_WRITE_OBJECT@GOTPAGEOFF]
Lloh29:
	adrp	x26, _ADD_CACHE_RENORMALIZE@GOTPAGE
Lloh30:
	ldr	x26, [x26, _ADD_CACHE_RENORMALIZE@GOTPAGEOFF]
	ldr	w9, [x26]
Lloh31:
	adrp	x10, _HASH_RENORMALIZE@GOTPAGE
Lloh32:
	ldr	x10, [x10, _HASH_RENORMALIZE@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	tst	w9, w3
	csel	w27, wzr, w10, eq
Lloh34:
	ldr	w8, [x8]
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
	mov	x0, x24
	bl	_S_ISREG
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x0, x24
	bl	_S_ISLNK
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x24
	bl	_S_ISDIR
	cbz	x0, LBB0_51
LBB0_3:
	str	w25, [sp, #36]                  ; 4-byte Folded Spill
	mov	x0, x19
	bl	_strlen
	mov	x25, x0
	mov	x0, x24
	bl	_S_ISDIR
	cbz	x0, LBB0_10
; %bb.4:
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #40
	mov	x0, x19
	bl	_resolve_gitlink_ref
	tbnz	x0, #63, LBB0_8
; %bb.5:
	sxtw	x9, w25
	add	w25, w25, #1
	sub	x8, x19, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x9, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w10, [x8, x9]
	sub	x9, x9, #1
	sub	w25, w25, #1
	cmp	w10, #47
	b.eq	LBB0_6
	b	LBB0_10
LBB0_8:
Lloh37:
	adrp	x0, l_.str.2@PAGE
Lloh38:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_42
LBB0_9:
	mov	w25, #0
LBB0_10:
	str	w22, [sp, #16]                  ; 4-byte Folded Spill
	mov	x0, x21
	mov	x1, x25
	bl	_make_empty_cache_entry
	mov	x22, x0
	ldr	w0, [x0, #24]
	mov	x1, x19
	mov	x2, x25
	bl	_memcpy
	str	w25, [x22]
	cbz	w28, LBB0_12
; %bb.11:
Lloh39:
	adrp	x8, _CE_INTENT_TO_ADD@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CE_INTENT_TO_ADD@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	ldr	w9, [x22, #20]
	orr	w8, w9, w8
	str	w8, [x22, #20]
	b	LBB0_13
LBB0_12:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_fill_stat_cache_info
LBB0_13:
Lloh42:
	adrp	x8, _trust_executable_bit@GOTPAGE
Lloh43:
	ldr	x8, [x8, _trust_executable_bit@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
Lloh45:
	adrp	x9, _has_symlinks@GOTPAGE
Lloh46:
	ldr	x9, [x9, _has_symlinks@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.ne	LBB0_16
; %bb.14:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x25
	bl	_index_name_pos_also_unmerged
	tbnz	w0, #31, LBB0_17
; %bb.15:
	ldr	x8, [x21]
	ldr	x0, [x8, w0, uxtw #3]
	b	LBB0_18
LBB0_16:
	mov	x0, x24
	bl	_create_ce_mode
	b	LBB0_19
LBB0_17:
	mov	x0, #0
LBB0_18:
	mov	x1, x24
	bl	_ce_mode_from_stat
LBB0_19:
	str	x0, [x22, #8]
Lloh48:
	adrp	x25, _ignore_case@GOTPAGE
Lloh49:
	ldr	x25, [x25, _ignore_case@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_21
; %bb.20:
	ldr	w1, [x22, #24]
	mov	x0, x21
	bl	_adjust_dirname_case
LBB0_21:
	ldr	w8, [x26]
	tst	w8, w20
	b.eq	LBB0_34
; %bb.22:
	mov	x24, #0
LBB0_23:
	cbz	w28, LBB0_40
; %bb.24:
	mov	x0, x22
	bl	_set_object_name_for_intent_to_add_entry
LBB0_25:
	ldr	x8, [x25]
	cbz	x8, LBB0_29
; %bb.26:
	cbz	x24, LBB0_29
; %bb.27:
	mov	x0, x22
	mov	x1, x24
	bl	_different_name
	cbz	x0, LBB0_29
; %bb.28:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x24
	bl	_create_alias_ce
	mov	x22, x0
LBB0_29:
	ldr	w25, [sp, #36]                  ; 4-byte Folded Reload
	and	w23, w25, w20
Lloh50:
	adrp	x8, _CE_ADDED@GOTPAGE
Lloh51:
	ldr	x8, [x8, _CE_ADDED@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	ldr	w9, [x22, #20]
	orr	w8, w9, w8
	str	w8, [x22, #20]
	cbz	x24, LBB0_45
; %bb.30:
	mov	x0, x24
	bl	_ce_stage
	cbz	w0, LBB0_43
LBB0_31:
	mov	w24, #0
	cbnz	w23, LBB0_46
LBB0_32:
	ldp	w9, w8, [sp, #24]               ; 8-byte Folded Reload
	orr	w8, w9, w8
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	orr	w2, w8, w9
	mov	x0, x21
	mov	x1, x22
	bl	_add_index_entry
	cbz	x0, LBB0_47
; %bb.33:
	mov	x0, x22
	bl	_discard_cache_entry
Lloh53:
	adrp	x0, l_.str.4@PAGE
Lloh54:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_42
LBB0_34:
	ldr	w24, [x22, #24]
	mov	x0, x22
	bl	_ce_namelen
	mov	x2, x0
	ldr	x3, [x25]
	mov	x0, x21
	mov	x1, x24
	bl	_index_file_exists
	mov	x24, x0
	cbz	x0, LBB0_23
; %bb.35:
	mov	x0, x24
	bl	_ce_stage
	cbnz	w0, LBB0_23
; %bb.36:
	ldp	w9, w8, [sp, #8]                ; 8-byte Folded Reload
	orr	w8, w9, w8
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	orr	w3, w8, w9
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_ie_match_stat
	cbnz	w0, LBB0_23
; %bb.37:
	ldr	x0, [x24, #8]
	bl	_S_ISGITLINK
	cbnz	w0, LBB0_39
; %bb.38:
	mov	x0, x24
	bl	_ce_mark_uptodate
LBB0_39:
Lloh55:
	adrp	x8, _CE_ADDED@GOTPAGE
Lloh56:
	ldr	x8, [x8, _CE_ADDED@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	ldr	w9, [x24, #20]
	orr	w8, w9, w8
	str	w8, [x24, #20]
	mov	x0, x22
	bl	_discard_cache_entry
	mov	w0, #0
	b	LBB0_50
LBB0_40:
	ldr	w8, [sp, #32]                   ; 4-byte Folded Reload
	orr	w4, w27, w8
	add	x1, x22, #16
	mov	x0, x21
	mov	x2, x19
	mov	x3, x23
	bl	_index_path
	cbz	x0, LBB0_25
; %bb.41:
	mov	x0, x22
	bl	_discard_cache_entry
Lloh58:
	adrp	x0, l_.str.3@PAGE
Lloh59:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_42:
	bl	__
	mov	x1, x19
	bl	_error
	b	LBB0_50
LBB0_43:
	add	x0, x24, #16
	add	x1, x22, #16
	bl	_oideq
	cbz	x0, LBB0_31
; %bb.44:
	ldr	x8, [x22, #8]
	ldr	x9, [x24, #8]
	cmp	x8, x9
	cset	w24, eq
LBB0_45:
	cbz	w23, LBB0_32
LBB0_46:
	mov	x0, x22
	bl	_discard_cache_entry
LBB0_47:
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	orr	w8, w25, w8
	and	w8, w8, w20
	cmp	w8, #0
	cset	w8, eq
	orr	w8, w8, w24
	tbnz	w8, #0, LBB0_49
; %bb.48:
Lloh60:
	adrp	x0, l_.str.5@PAGE
Lloh61:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_printf
LBB0_49:
	mov	w0, #0
LBB0_50:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_51:
Lloh62:
	adrp	x0, l_.str@PAGE
Lloh63:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_error
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh34
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_CE_MATCH_IGNORE_VALID,4,2      ; @CE_MATCH_IGNORE_VALID
	.comm	_CE_MATCH_IGNORE_SKIP_WORKTREE,4,2 ; @CE_MATCH_IGNORE_SKIP_WORKTREE
	.comm	_CE_MATCH_RACY_IS_DIRTY,4,2     ; @CE_MATCH_RACY_IS_DIRTY
	.comm	_ADD_CACHE_VERBOSE,4,2          ; @ADD_CACHE_VERBOSE
	.comm	_ADD_CACHE_PRETEND,4,2          ; @ADD_CACHE_PRETEND
	.comm	_ADD_CACHE_INTENT,4,2           ; @ADD_CACHE_INTENT
	.comm	_ADD_CACHE_OK_TO_ADD,4,2        ; @ADD_CACHE_OK_TO_ADD
	.comm	_ADD_CACHE_OK_TO_REPLACE,4,2    ; @ADD_CACHE_OK_TO_REPLACE
	.comm	_ADD_CACHE_NEW_ONLY,4,2         ; @ADD_CACHE_NEW_ONLY
	.comm	_HASH_WRITE_OBJECT,4,2          ; @HASH_WRITE_OBJECT
	.comm	_ADD_CACHE_RENORMALIZE,4,2      ; @ADD_CACHE_RENORMALIZE
	.comm	_HASH_RENORMALIZE,4,2           ; @HASH_RENORMALIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: can only add regular files, symbolic links or git-directories"

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

l_.str.2:                               ; @.str.2
	.asciz	"'%s' does not have a commit checked out"

	.comm	_CE_INTENT_TO_ADD,4,2           ; @CE_INTENT_TO_ADD
	.comm	_trust_executable_bit,8,3       ; @trust_executable_bit
	.comm	_has_symlinks,8,3               ; @has_symlinks
	.comm	_ignore_case,8,3                ; @ignore_case
	.comm	_CE_ADDED,4,2                   ; @CE_ADDED
l_.str.3:                               ; @.str.3
	.asciz	"unable to index file '%s'"

l_.str.4:                               ; @.str.4
	.asciz	"unable to add '%s' to index"

l_.str.5:                               ; @.str.5
	.asciz	"add '%s'\n"

.subsections_via_symbols
