	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_index_objects_to_pending   ## -- Begin function add_index_objects_to_pending
	.p2align	4, 0x90
_add_index_objects_to_pending:          ## @add_index_objects_to_pending
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_repo_read_index
	movq	8(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_do_add_index_objects_to_pending
	cmpq	$0, (%rbx)
	jne	LBB0_9
## %bb.1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	xorl	%edi, %edi
	callq	_get_worktrees
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.2:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	addq	$8, %r14
	leaq	-64(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_discard_index
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %r15
	addq	$8, %r14
	testq	%r15, %r15
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -64(%rbp)
	cmpq	$0, (%r15)
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_worktree_git_path
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_get_worktree_git_dir
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_read_index_from
	testq	%rax, %rax
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_do_add_index_objects_to_pending
	jmp	LBB0_6
LBB0_8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free_worktrees
LBB0_9:
	addq	$24, %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	"index"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_index_objects_to_pending   ; -- Begin function add_index_objects_to_pending
	.p2align	2
_add_index_objects_to_pending:          ; @add_index_objects_to_pending
	.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	x19, x1
	mov	x20, x0
	ldr	x0, [x0, #8]
	bl	_repo_read_index
	ldr	x8, [x20, #8]
	ldr	x1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_do_add_index_objects_to_pending
	ldr	x8, [x20]
	cbnz	x8, LBB0_9
; %bb.1:
	mov	w0, #0
	bl	_get_worktrees
	mov	x21, x0
	ldr	x23, [x0]
	cbz	x23, LBB0_8
; %bb.2:
	add	x25, x21, #8
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	bl	_discard_index
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x23, [x25], #8
	cbz	x23, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #8]
	ldr	x8, [x23]
	cbnz	x8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_worktree_git_path
	mov	x24, x0
	mov	x0, x23
	bl	_get_worktree_git_dir
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, x24
	bl	_read_index_from
	cmp	x0, #1
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	_do_add_index_objects_to_pending
	b	LBB0_3
LBB0_8:
	mov	x0, x21
	bl	_free_worktrees
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index"

.subsections_via_symbols
