	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_overlay_tree_on_index          ## -- Begin function overlay_tree_on_index
	.p2align	4, 0x90
_overlay_tree_on_index:                 ## @overlay_tree_on_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_get_oid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_die
LBB0_2:
	leaq	-56(%rbp), %rdi
	callq	_parse_tree_indirect
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_die
LBB0_4:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r13)
	jle	LBB0_9
## %bb.5:
	xorl	%r15d, %r15d
	movq	_CE_STAGEMASK@GOTPCREL(%rip), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%r15,8), %rbx
	movq	%rbx, %rdi
	callq	_ce_stage
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r14), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_8
LBB0_9:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:
	movq	$0, _overlay_tree_on_index.matchbuf(%rip)
	leaq	_overlay_tree_on_index.matchbuf(%rip), %r8
	movq	_PATHSPEC_ALL_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PATHSPEC_PREFER_CWD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	callq	_parse_pathspec
	jmp	LBB0_12
LBB0_11:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_12:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rcx
	movq	%r12, %rsi
	movl	$1, %edx
	movq	%r13, %r8
	callq	_read_tree
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_die
LBB0_14:
	cmpl	$0, (%r13)
	jle	LBB0_24
## %bb.15:
	xorl	%ebx, %ebx
	movq	_CE_UPDATE@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_16
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_24
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %r14
	movq	%r14, %rdi
	callq	_ce_stage
	cmpl	$1, %eax
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	testl	%eax, %eax
	jne	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r14, %r12
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	testq	%r12, %r12
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	4(%r12), %edi
	movl	4(%r14), %esi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	(%r15), %eax
	orl	%eax, (%r14)
	jmp	LBB0_23
LBB0_24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tree-ish %s not found."

L_.str.1:                               ## @.str.1
	.asciz	"bad tree-ish %s"

	.comm	_CE_STAGEMASK,4,2               ## @CE_STAGEMASK
.zerofill __DATA,__bss,_overlay_tree_on_index.matchbuf,8,3 ## @overlay_tree_on_index.matchbuf
	.comm	_PATHSPEC_ALL_MAGIC,4,2         ## @PATHSPEC_ALL_MAGIC
	.comm	_PATHSPEC_PREFER_CWD,4,2        ## @PATHSPEC_PREFER_CWD
	.comm	_the_repository,4,2             ## @the_repository
L_.str.2:                               ## @.str.2
	.asciz	"unable to read tree entries %s"

	.comm	_CE_UPDATE,4,2                  ## @CE_UPDATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_overlay_tree_on_index          ; -- Begin function overlay_tree_on_index
	.p2align	2
_overlay_tree_on_index:                 ; @overlay_tree_on_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	add	x1, sp, #8
	mov	x0, x20
	bl	_get_oid
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_die
LBB0_2:
	add	x0, sp, #8
	bl	_parse_tree_indirect
	mov	x21, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_die
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x24, #0
Lloh4:
	adrp	x25, _CE_STAGEMASK@GOTPAGE
Lloh5:
	ldr	x25, [x25, _CE_STAGEMASK@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19]
	cmp	x24, x8
	b.ge	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x23, [x8, x24, lsl #3]
	mov	x0, x23
	bl	_ce_stage
	cbz	w0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x25]
	ldr	w9, [x23]
	orr	w8, w9, w8
	str	w8, [x23]
	b	LBB0_6
LBB0_9:
	cbz	x22, LBB0_11
; %bb.10:
Lloh6:
	adrp	x4, _overlay_tree_on_index.matchbuf@PAGE
Lloh7:
	add	x4, x4, _overlay_tree_on_index.matchbuf@PAGEOFF
	str	xzr, [x4]
Lloh8:
	adrp	x8, _PATHSPEC_ALL_MAGIC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PATHSPEC_ALL_MAGIC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _PATHSPEC_PREFER_CWD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PATHSPEC_PREFER_CWD@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, sp
	mov	x3, x22
	bl	_parse_pathspec
	b	LBB0_12
LBB0_11:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_12:
Lloh14:
	adrp	x8, _the_repository@GOTPAGE
Lloh15:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x3, sp
	mov	x1, x21
	mov	w2, #1
	mov	x4, x19
	bl	_read_tree
	cbz	x0, LBB0_14
; %bb.13:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_die
LBB0_14:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.15:
	mov	x21, #0
	mov	x23, #0
Lloh19:
	adrp	x22, _CE_UPDATE@GOTPAGE
Lloh20:
	ldr	x22, [x22, _CE_UPDATE@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	cmp	w0, #0
	csel	x23, x23, x20, ne
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_22
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x20, [x8, x21, lsl #3]
	mov	x0, x20
	bl	_ce_stage
	cmp	w0, #1
	b.ne	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	cbz	x23, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w0, [x23, #4]
	ldr	w1, [x20, #4]
	bl	_strcmp
	cbnz	w0, LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_17
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tree-ish %s not found."

l_.str.1:                               ; @.str.1
	.asciz	"bad tree-ish %s"

	.comm	_CE_STAGEMASK,4,2               ; @CE_STAGEMASK
.zerofill __DATA,__bss,_overlay_tree_on_index.matchbuf,8,3 ; @overlay_tree_on_index.matchbuf
	.comm	_PATHSPEC_ALL_MAGIC,4,2         ; @PATHSPEC_ALL_MAGIC
	.comm	_PATHSPEC_PREFER_CWD,4,2        ; @PATHSPEC_PREFER_CWD
	.comm	_the_repository,4,2             ; @the_repository
l_.str.2:                               ; @.str.2
	.asciz	"unable to read tree entries %s"

	.comm	_CE_UPDATE,4,2                  ; @CE_UPDATE
.subsections_via_symbols
