	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function merge_working_tree
_merge_working_tree:                    ## @merge_working_tree
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LOCK_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_LOCK_DIE_ON_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdi
	callq	_hold_locked_index
	xorl	%edi, %edi
	callq	_read_cache_preload
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_resolve_undo_clear
	cmpq	$0, 48(%r12)
	je	LBB0_7
## %bb.3:
	cmpq	$0, 40(%r12)
	je	LBB0_7
## %bb.4:
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_BUG
LBB0_6:
	movq	_the_hash_algo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_parse_tree_indirect
	jmp	LBB0_8
LBB0_7:
	movq	(%rbx), %rdi
	callq	_get_commit_tree
LBB0_8:
	movq	%rax, %r13
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%r12)
	je	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_reset_tree
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_38
	jmp	LBB0_28
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_error
	movl	%eax, %r14d
	jmp	LBB0_38
LBB0_10:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	leaq	-200(%rbp), %rbx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movl	$-1, -200(%rbp)
	movq	_the_index@GOTPCREL(%rip), %rax
	movq	%rax, -152(%rbp)
	movq	%rax, -160(%rbp)
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_setup_unpack_trees_porcelain
	movq	_REFRESH_QUIET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_refresh_cache
	xorl	%eax, %eax
	callq	_unmerged_cache
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_error
	movl	$1, %r14d
	jmp	LBB0_38
LBB0_12:
	xorl	%eax, %eax
	callq	_is_cache_unborn
	movl	%eax, -168(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -196(%rbp)
	cmpq	$0, 16(%r12)
	je	LBB0_14
## %bb.13:
	xorl	%r14d, %r14d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	setne	%r14b
LBB0_14:
	movl	%r14d, -188(%rbp)
	movl	32(%r12), %eax
	movl	%eax, -172(%rbp)
	movq	_twoway_merge@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -176(%rbp)
	cmpq	$0, 24(%r12)
	je	LBB0_16
## %bb.15:
	movl	$1, %edi
	movl	$4, %esi
	callq	_xcalloc
	movq	%rax, -184(%rbp)
	movq	_DIR_SHOW_IGNORED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	movq	%rax, %rdi
	callq	_setup_standard_excludes
LBB0_16:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_18
## %bb.17:
	movq	_the_hash_algo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
LBB0_18:
	callq	_parse_tree_indirect
	movl	(%rax), %edx
	movl	4(%rax), %esi
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_init_tree_desc
	movq	%r13, %rdi
	callq	_parse_tree
	leaq	-52(%rbp), %rdi
	movl	(%r13), %edx
	movl	4(%r13), %esi
	callq	_init_tree_desc
	leaq	-200(%rbp), %r14
	movl	$2, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_unpack_trees
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_clear_unpack_trees_porcelain
	cmpl	$-1, %ebx
	je	LBB0_19
LBB0_28:
	movq	_active_cache_tree@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_30
## %bb.29:
	xorl	%eax, %eax
	callq	_cache_tree
	movq	%rax, %rdi
	movq	%rax, (%rbx)
LBB0_30:
	callq	_cache_tree_fully_valid
	testl	%eax, %eax
	jne	LBB0_32
## %bb.31:
	movq	_WRITE_TREE_SILENT@GOTPCREL(%rip), %rax
	movq	_WRITE_TREE_REPAIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_the_index@GOTPCREL(%rip), %rdi
	callq	_cache_tree_update
LBB0_32:
	movq	_COMMIT_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_the_index@GOTPCREL(%rip), %rdi
	leaq	-64(%rbp), %rsi
	callq	_write_locked_index
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_34:
	xorl	%r14d, %r14d
	cmpq	$0, 8(%r12)
	jne	LBB0_38
## %bb.35:
	cmpl	$0, 4(%r12)
	jne	LBB0_38
## %bb.36:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_38
## %bb.37:
	movq	%r12, %rsi
	callq	_show_local_changes
	jmp	LBB0_38
LBB0_19:
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	movq	%rax, -80(%rbp)
	movl	$1, %r14d
	cmpq	$0, 16(%r12)
	je	LBB0_38
## %bb.20:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_38
## %bb.21:
	callq	_get_commit_tree
	movq	_the_repository@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-88(%rbp), %rdx
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rax, %rsi
	callq	_repo_index_has_changes
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movq	-88(%rbp), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_23:
	leaq	-88(%rbp), %rdi
	callq	_strbuf_release
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_add_files_to_cache
	movl	(%rbx), %esi
	leaq	-144(%rbp), %rdi
	callq	_init_merge_options
	movq	$0, -112(%rbp)
	movl	(%rbx), %edi
	callq	_write_in_core_index_as_tree
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_reset_tree
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_38
## %bb.24:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movq	%rax, -120(%rbp)
	testq	%rax, %rax
	jne	LBB0_26
## %bb.25:
	movq	(%rcx), %rsi
	movq	_DEFAULT_ABBREV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rdi
	callq	_strbuf_add_unique_abbrev
	movq	-80(%rbp), %rax
	movq	%rax, -120(%rbp)
LBB0_26:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	%rax, -128(%rbp)
	leaq	L_.str.5(%rip), %rax
	movq	%rax, -144(%rbp)
	leaq	-144(%rbp), %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	callq	_merge_trees
	testl	%eax, %eax
	js	LBB0_40
## %bb.27:
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_reset_tree
	movl	%eax, %r14d
	leaq	-136(%rbp), %rdi
	callq	_strbuf_release
	leaq	-80(%rbp), %rdi
	callq	_strbuf_release
	testl	%r14d, %r14d
	je	LBB0_28
LBB0_38:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_39
## %bb.41:
	movl	%r14d, %eax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	callq	___stack_chk_fail
LBB0_40:
	movl	$128, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_LOCK_INIT,4,2                  ## @LOCK_INIT
	.comm	_LOCK_DIE_ON_ERROR,4,2          ## @LOCK_DIE_ON_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"index file corrupt"

L_.str.1:                               ## @.str.1
	.asciz	"'switch --orphan' should never accept a commit as starting point"

	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.comm	_the_index,4,2                  ## @the_index
L_.str.2:                               ## @.str.2
	.asciz	"checkout"

	.comm	_REFRESH_QUIET,4,2              ## @REFRESH_QUIET
L_.str.3:                               ## @.str.3
	.asciz	"you need to resolve your current index first"

	.comm	_twoway_merge,4,2               ## @twoway_merge
	.comm	_DIR_SHOW_IGNORED,4,2           ## @DIR_SHOW_IGNORED
	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.comm	_the_repository,4,2             ## @the_repository
L_.str.4:                               ## @.str.4
	.asciz	"cannot continue with staged changes in the following files:\n%s"

	.comm	_DEFAULT_ABBREV,4,2             ## @DEFAULT_ABBREV
L_.str.5:                               ## @.str.5
	.asciz	"local"

	.comm	_active_cache_tree,8,3          ## @active_cache_tree
	.comm	_WRITE_TREE_SILENT,4,2          ## @WRITE_TREE_SILENT
	.comm	_WRITE_TREE_REPAIR,4,2          ## @WRITE_TREE_REPAIR
	.comm	_COMMIT_LOCK,4,2                ## @COMMIT_LOCK
L_.str.6:                               ## @.str.6
	.asciz	"unable to write new index file"

	.no_dead_strip	_merge_working_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function merge_working_tree
_merge_working_tree:                    ; @merge_working_tree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _LOCK_INIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LOCK_INIT@GOTPAGEOFF]
	stur	x8, [x29, #-72]
Lloh5:
	ldr	w8, [x9]
	stur	w8, [x29, #-88]
Lloh6:
	adrp	x8, _LOCK_DIE_ON_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LOCK_DIE_ON_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	sub	x0, x29, #88
	bl	_hold_locked_index
	mov	x0, #0
	bl	_read_cache_preload
	tbnz	x0, #63, LBB0_9
; %bb.1:
	bl	_resolve_undo_clear
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BUG
LBB0_5:
Lloh11:
	adrp	x8, _the_hash_algo@GOTPAGE
Lloh12:
	ldr	x8, [x8, _the_hash_algo@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x0, [x8]
	bl	_parse_tree_indirect
	b	LBB0_7
LBB0_6:
	ldr	x0, [x20]
	bl	_get_commit_tree
LBB0_7:
	mov	x23, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.8:
	mov	x0, x23
	mov	x1, x19
	mov	w2, #1
	mov	x3, x21
	bl	_reset_tree
	mov	x25, x0
	cbnz	w0, LBB0_28
	b	LBB0_19
LBB0_9:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_error
	mov	x25, x0
	b	LBB0_28
LBB0_10:
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	mov	w8, #-1
	str	w8, [sp, #64]
Lloh16:
	adrp	x8, _the_index@GOTPAGE
Lloh17:
	ldr	x8, [x8, _the_index@GOTPAGEOFF]
	stp	x8, x8, [sp, #104]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #64
	bl	_setup_unpack_trees_porcelain
Lloh20:
	adrp	x8, _REFRESH_QUIET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _REFRESH_QUIET@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_refresh_cache
	bl	_unmerged_cache
	cbz	x0, LBB0_12
; %bb.11:
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	bl	_error
	mov	w25, #1
	b	LBB0_28
LBB0_12:
	bl	_is_cache_unborn
	str	w0, [sp, #96]
	movi.2s	v0, #1
	stur	d0, [sp, #68]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w8, ne
LBB0_14:
	ldr	w9, [x19, #32]
	str	w9, [sp, #92]
Lloh25:
	adrp	x9, _twoway_merge@GOTPAGE
Lloh26:
	ldr	x9, [x9, _twoway_merge@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	str	w8, [sp, #76]
	str	w9, [sp, #88]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_16
; %bb.15:
	mov	w0, #1
	mov	w1, #4
	bl	_xcalloc
	str	x0, [sp, #80]
Lloh28:
	adrp	x8, _DIR_SHOW_IGNORED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DIR_SHOW_IGNORED@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	bl	_setup_standard_excludes
LBB0_16:
	ldr	x0, [x22]
	cbnz	x0, LBB0_18
; %bb.17:
Lloh31:
	adrp	x8, _the_hash_algo@GOTPAGE
Lloh32:
	ldr	x8, [x8, _the_hash_algo@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	ldr	x0, [x8]
LBB0_18:
	bl	_parse_tree_indirect
	ldp	w2, w1, [x0]
	sub	x24, x29, #80
	sub	x0, x29, #80
	bl	_init_tree_desc
	mov	x0, x23
	bl	_parse_tree
	orr	x0, x24, #0x4
	ldp	w2, w1, [x23]
	bl	_init_tree_desc
	sub	x1, x29, #80
	add	x2, sp, #64
	mov	w0, #2
	bl	_unpack_trees
	mov	x24, x0
	add	x0, sp, #64
	bl	_clear_unpack_trees_porcelain
	cmn	w24, #1
	b.eq	LBB0_32
LBB0_19:
Lloh34:
	adrp	x21, _active_cache_tree@GOTPAGE
Lloh35:
	ldr	x21, [x21, _active_cache_tree@GOTPAGEOFF]
	ldr	x0, [x21]
	cbz	x0, LBB0_30
; %bb.20:
	bl	_cache_tree_fully_valid
	cbz	w0, LBB0_31
LBB0_21:
Lloh36:
	adrp	x8, _COMMIT_LOCK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _COMMIT_LOCK@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
Lloh39:
	adrp	x0, _the_index@GOTPAGE
Lloh40:
	ldr	x0, [x0, _the_index@GOTPAGEOFF]
	sub	x1, x29, #88
	bl	_write_locked_index
	cbz	x0, LBB0_23
; %bb.22:
Lloh41:
	adrp	x0, l_.str.6@PAGE
Lloh42:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	bl	_die
LBB0_23:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_27
; %bb.24:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_27
; %bb.25:
	ldr	x0, [x20]
	cbz	x0, LBB0_27
; %bb.26:
	mov	x1, x19
	bl	_show_local_changes
LBB0_27:
	mov	w25, #0
LBB0_28:
	ldur	x8, [x29, #-72]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_42
; %bb.29:
	mov	x0, x25
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_30:
	bl	_cache_tree
	str	x0, [x21]
	bl	_cache_tree_fully_valid
	cbnz	w0, LBB0_21
LBB0_31:
Lloh46:
	adrp	x8, _WRITE_TREE_SILENT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _WRITE_TREE_SILENT@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	adrp	x9, _WRITE_TREE_REPAIR@GOTPAGE
Lloh50:
	ldr	x9, [x9, _WRITE_TREE_REPAIR@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh52:
	adrp	x0, _the_index@GOTPAGE
Lloh53:
	ldr	x0, [x0, _the_index@GOTPAGEOFF]
	bl	_cache_tree_update
	b	LBB0_21
LBB0_32:
Lloh54:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh55:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	stp	x8, x8, [sp, #8]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_41
; %bb.33:
	ldr	x0, [x22]
	cbz	x0, LBB0_41
; %bb.34:
	bl	_get_commit_tree
	mov	x24, x0
Lloh57:
	adrp	x25, _the_repository@GOTPAGE
Lloh58:
	ldr	x25, [x25, _the_repository@GOTPAGEOFF]
	ldr	w0, [x25]
	add	x2, sp, #16
	mov	x1, x24
	bl	_repo_index_has_changes
	cbz	x0, LBB0_36
; %bb.35:
Lloh59:
	adrp	x0, l_.str.4@PAGE
Lloh60:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	ldr	x8, [sp, #16]
	str	x8, [sp]
	bl	_die
LBB0_36:
	add	x0, sp, #16
	bl	_strbuf_release
	mov	x0, #0
	mov	x1, #0
	mov	w2, #0
	bl	_add_files_to_cache
	ldr	w1, [x25]
	add	x0, sp, #24
	bl	_init_merge_options
	str	xzr, [sp, #56]
	ldr	w0, [x25]
	bl	_write_in_core_index_as_tree
	mov	x26, x0
	mov	x0, x23
	mov	x1, x19
	mov	w2, #1
	mov	x3, x21
	bl	_reset_tree
	mov	x25, x0
	cbnz	w0, LBB0_28
; %bb.37:
	ldr	x8, [x22, #8]
	str	x8, [sp, #48]
	cbnz	x8, LBB0_39
; %bb.38:
	ldr	x1, [x22]
Lloh61:
	adrp	x8, _DEFAULT_ABBREV@GOTPAGE
Lloh62:
	ldr	x8, [x8, _DEFAULT_ABBREV@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x8]
	add	x0, sp, #8
	bl	_strbuf_add_unique_abbrev
	ldr	x8, [sp, #8]
	str	x8, [sp, #48]
LBB0_39:
	ldr	x8, [x20, #8]
Lloh64:
	adrp	x9, l_.str.5@PAGE
Lloh65:
	add	x9, x9, l_.str.5@PAGEOFF
	str	x8, [sp, #40]
	str	x9, [sp, #24]
	add	x22, sp, #24
	add	x0, sp, #24
	mov	x1, x23
	mov	x2, x26
	mov	x3, x24
	bl	_merge_trees
	tbnz	w0, #31, LBB0_43
; %bb.40:
	mov	x0, x23
	mov	x1, x19
	mov	w2, #0
	mov	x3, x21
	bl	_reset_tree
	mov	x25, x0
	add	x0, x22, #8
	bl	_strbuf_release
	add	x0, sp, #8
	bl	_strbuf_release
	cbnz	w25, LBB0_28
	b	LBB0_19
LBB0_41:
	mov	w25, #1
	b	LBB0_28
LBB0_42:
	bl	___stack_chk_fail
LBB0_43:
	mov	w0, #128
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.comm	_LOCK_INIT,4,2                  ; @LOCK_INIT
	.comm	_LOCK_DIE_ON_ERROR,4,2          ; @LOCK_DIE_ON_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index file corrupt"

l_.str.1:                               ; @.str.1
	.asciz	"'switch --orphan' should never accept a commit as starting point"

	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.comm	_the_index,4,2                  ; @the_index
l_.str.2:                               ; @.str.2
	.asciz	"checkout"

	.comm	_REFRESH_QUIET,4,2              ; @REFRESH_QUIET
l_.str.3:                               ; @.str.3
	.asciz	"you need to resolve your current index first"

	.comm	_twoway_merge,4,2               ; @twoway_merge
	.comm	_DIR_SHOW_IGNORED,4,2           ; @DIR_SHOW_IGNORED
	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.comm	_the_repository,4,2             ; @the_repository
l_.str.4:                               ; @.str.4
	.asciz	"cannot continue with staged changes in the following files:\n%s"

	.comm	_DEFAULT_ABBREV,4,2             ; @DEFAULT_ABBREV
l_.str.5:                               ; @.str.5
	.asciz	"local"

	.comm	_active_cache_tree,8,3          ; @active_cache_tree
	.comm	_WRITE_TREE_SILENT,4,2          ; @WRITE_TREE_SILENT
	.comm	_WRITE_TREE_REPAIR,4,2          ; @WRITE_TREE_REPAIR
	.comm	_COMMIT_LOCK,4,2                ; @COMMIT_LOCK
l_.str.6:                               ; @.str.6
	.asciz	"unable to write new index file"

	.no_dead_strip	_merge_working_tree
.subsections_via_symbols
