	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grep_cache
_grep_cache:                            ## @grep_cache
	.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
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_strlen
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	8(%r14), %rsi
	leaq	-56(%rbp), %rdi
	callq	_strbuf_addstr
	jmp	LBB0_3
LBB0_2:
	movl	$0, -72(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movq	%r14, %rdi
	callq	_repo_read_index
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_5:
	movq	(%r14), %rax
	cmpl	$0, (%rax)
	jle	LBB0_33
## %bb.6:
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	xorl	%r12d, %r12d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_10 Depth=1
	movl	%r12d, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r15d
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	incl	%ebx
	movq	(%r14), %rax
	movl	%r15d, %ecx
	movl	%ebx, %r12d
	cmpl	(%rax), %ebx
	jge	LBB0_34
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movslq	%r12d, %r13
	movq	(%rax,%r13,8), %r14
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	callq	_strbuf_setlen
	movq	8(%r14), %rsi
	movq	%rbx, %rdi
	callq	_strbuf_addstr
	movl	16(%r14), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
	movl	-56(%rbp), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	-52(%rbp), %ebx
	movl	16(%r14), %edi
	callq	_S_ISDIR
	movb	$1, %cl
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	16(%r14), %edi
	callq	_S_ISGITLINK
	testq	%rax, %rax
	setne	%cl
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movzbl	%cl, %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_match_pathspec
	testq	%rax, %rax
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_CE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	callq	_ce_skip_worktree
	testq	%rax, %rax
	je	LBB0_32
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	callq	_ce_stage
	testq	%rax, %rax
	jne	LBB0_7
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	callq	_ce_intent_to_add
	testq	%rax, %rax
	jne	LBB0_7
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	20(%r14), %rsi
	movl	-56(%rbp), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movl	%edx, %r8d
	callq	_grep_oid
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_recurse_submodules@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	16(%r14), %edi
	callq	_S_ISGITLINK
	testq	%rax, %rax
	je	LBB0_7
## %bb.22:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movl	-56(%rbp), %edx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_submodule_path_match
	testq	%rax, %rax
	je	LBB0_7
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%r14), %rcx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%rcx, %r8
	movl	-68(%rbp), %r9d                 ## 4-byte Reload
	callq	_grep_submodule
LBB0_24:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %r15d
	orl	-64(%rbp), %r15d                ## 4-byte Folded Reload
	movq	%r14, %rdi
	callq	_ce_stage
	testq	%rax, %rax
	je	LBB0_30
## %bb.25:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%r13
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %r13
	jge	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=2
	movq	8(%r14), %rdi
	movq	8(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movq	8(%rax), %rsi
	callq	_strcmp
	leal	1(%rbx), %r12d
	incq	%r13
	testl	%eax, %eax
	je	LBB0_26
LBB0_28:                                ##   in Loop: Header=BB0_10 Depth=1
	testl	%r15d, %r15d
	je	LBB0_31
LBB0_29:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_9
	jmp	LBB0_34
LBB0_30:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%r12d, %ebx
	testl	%r15d, %r15d
	jne	LBB0_29
LBB0_31:                                ##   in Loop: Header=BB0_10 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_32:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	-56(%rbp), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_grep_file
	jmp	LBB0_24
LBB0_33:
	xorl	%r15d, %r15d
LBB0_34:
	leaq	-56(%rbp), %rdi
	callq	_strbuf_release
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"index file corrupt"

	.comm	_CE_VALID,4,2                   ## @CE_VALID
	.comm	_recurse_submodules,8,3         ## @recurse_submodules
	.no_dead_strip	_grep_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grep_cache
_grep_cache:                            ; @grep_cache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x20, x1
	str	x0, [sp]                        ; 8-byte Folded Spill
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x0, [x22, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_strlen
	mov	x23, x0
	ldr	x1, [x22, #8]
	add	x0, sp, #8
	bl	_strbuf_addstr
	b	LBB0_3
LBB0_2:
	mov	w23, #0
LBB0_3:
	mov	x0, x22
	bl	_repo_read_index
	tbz	x0, #63, LBB0_5
; %bb.4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_die
LBB0_5:
	ldr	x8, [x22]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_32
; %bb.6:
	mov	w24, #0
	mov	w21, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x27, x21
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w21, w27, #1
	ldr	x8, [x22]
	ldr	w9, [x8]
	cmp	w21, w9
	b.ge	LBB0_33
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
	ldr	x8, [x8, #8]
	ldr	x25, [x8, w21, sxtw #3]
	add	x0, sp, #8
	mov	x1, x23
	bl	_strbuf_setlen
	ldr	x1, [x25, #8]
	add	x0, sp, #8
	bl	_strbuf_addstr
	ldr	w0, [x25, #16]
	bl	_S_ISREG
	cbz	x0, LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x28, [x22]
	ldp	w26, w27, [sp, #8]
	ldr	w0, [x25, #16]
	bl	_S_ISDIR
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w6, #1
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x25, #16]
	bl	_S_ISGITLINK
	cmp	x0, #0
	cset	w6, ne
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x28
	mov	x1, x20
	mov	x2, x26
	mov	x3, x27
	mov	w4, #0
	mov	x5, #0
	bl	_match_pathspec
	cbz	x0, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	cbnz	w19, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x25]
Lloh5:
	adrp	x9, _CE_VALID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CE_VALID@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x25
	bl	_ce_skip_worktree
	cbz	x0, LBB0_31
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x25
	bl	_ce_stage
	cbnz	x0, LBB0_7
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x25
	bl	_ce_intent_to_add
	cbnz	x0, LBB0_7
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x1, x25, #20
	ldr	w2, [sp, #8]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	w3, #0
	mov	x4, x2
	bl	_grep_oid
	b	LBB0_24
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh8:
	adrp	x8, _recurse_submodules@GOTPAGE
Lloh9:
	ldr	x8, [x8, _recurse_submodules@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.21:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x25, #16]
	bl	_S_ISGITLINK
	cbz	x0, LBB0_7
; %bb.22:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x22]
	ldr	w2, [sp, #8]
	mov	x1, x20
	mov	x3, #0
	bl	_submodule_path_match
	cbz	x0, LBB0_7
; %bb.23:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x3, [x25, #8]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x20
	mov	x2, #0
	mov	x4, x3
	mov	x5, x19
	bl	_grep_submodule
LBB0_24:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x26, x0
	mov	x0, x25
	bl	_ce_stage
	cbz	x0, LBB0_29
; %bb.25:                               ;   in Loop: Header=BB0_9 Depth=1
	sxtw	x8, w21
	add	x28, x8, #1
LBB0_26:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x27, x21
	ldr	x8, [x22]
	ldrsw	x9, [x8]
	cmp	x28, x9
	b.ge	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	ldr	x0, [x25, #8]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x28, lsl #3]
	ldr	x1, [x8, #8]
	bl	_strcmp
	add	w21, w27, #1
	add	x28, x28, #1
	cbz	w0, LBB0_26
LBB0_28:                                ;   in Loop: Header=BB0_9 Depth=1
	orr	w24, w26, w24
	cbnz	w24, LBB0_30
	b	LBB0_8
LBB0_29:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x27, x21
	orr	w24, w26, w24
	cbz	w24, LBB0_8
LBB0_30:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x8]
	cbz	x8, LBB0_8
	b	LBB0_33
LBB0_31:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [sp, #8]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_grep_file
	b	LBB0_24
LBB0_32:
	mov	w24, #0
LBB0_33:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index file corrupt"

	.comm	_CE_VALID,4,2                   ; @CE_VALID
	.comm	_recurse_submodules,8,3         ; @recurse_submodules
	.no_dead_strip	_grep_cache
.subsections_via_symbols
