	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grep_submodule
_grep_submodule:                        ## @grep_submodule
	.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	%r9d, -68(%rbp)                 ## 4-byte Spill
	movq	%r8, %r13
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	_null_oid@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movq	%r8, %rdx
	callq	_submodule_from_path
	movq	%rax, %r12
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_grep_read_lock
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_is_submodule_active
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_repo_submodule_init
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%r14d, %r14d
LBB0_1:
	xorl	%eax, %eax
	callq	_grep_read_unlock
	jmp	LBB0_10
LBB0_4:
	movq	%r14, %rdi
	callq	_repo_read_gitmodules
	movq	-64(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_add_to_alternates_memory
	xorl	%eax, %eax
	callq	_grep_read_unlock
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	%r14, -56(%rbp)
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.5:
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%rbx, %rdi
	callq	_oid_to_hex
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_parse_object_or_die
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_grep_read_lock
	movq	%r14, %rbx
	addq	$8, %rbx
	movq	_tree_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rdi
	leaq	-104(%rbp), %rcx
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	callq	_read_object_with_reference
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_grep_read_unlock
	testq	%r12, %r12
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_oid_to_hex
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_die
LBB0_7:
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_strbuf_addstr
	movq	%r13, %rdi
	movl	$47, %esi
	callq	_strbuf_addch
	movq	-104(%rbp), %rdx
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_init_tree_desc
	movl	-48(%rbp), %r8d
	movq	(%r14), %rax
	movq	_OBJ_COMMIT@GOTPCREL(%rip), %rcx
	xorl	%r9d, %r9d
	cmpq	(%rcx), %rax
	sete	%r9b
	leaq	-56(%rbp), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r13, %rcx
	callq	_grep_tree
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_strbuf_release
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_9
LBB0_8:
	leaq	-56(%rbp), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_grep_cache
	movl	%eax, %r14d
LBB0_9:
	leaq	-64(%rbp), %rdi
	callq	_repo_clear
LBB0_10:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_null_oid,4,2                   ## @null_oid
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_tree_type,4,2                  ## @tree_type
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to read tree (%s)"

	.comm	_OBJ_COMMIT,8,3                 ## @OBJ_COMMIT
	.no_dead_strip	_grep_submodule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grep_submodule
_grep_submodule:                        ; @grep_submodule
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x5
	mov	x26, x4
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x24, [x0]
Lloh0:
	adrp	x1, _null_oid@GOTPAGE
Lloh1:
	ldr	x1, [x1, _null_oid@GOTPAGEOFF]
	mov	x0, x24
	mov	x2, x4
	bl	_submodule_from_path
	mov	x25, x0
	bl	_grep_read_lock
	mov	x0, x24
	mov	x1, x26
	bl	_is_submodule_active
	cbz	w0, LBB0_2
; %bb.1:
	add	x26, sp, #40
	add	x0, sp, #40
	mov	x1, x24
	mov	x2, x25
	bl	_repo_submodule_init
	cbz	x0, LBB0_3
LBB0_2:
	bl	_grep_read_unlock
	mov	w19, #0
	b	LBB0_9
LBB0_3:
	add	x0, sp, #40
	bl	_repo_read_gitmodules
	ldr	x8, [sp, #40]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_add_to_alternates_memory
	bl	_grep_read_unlock
	add	x0, sp, #32
	mov	x1, x23
	mov	w2, #8
	bl	_memcpy
	str	x26, [sp, #32]
	cbz	x21, LBB0_7
; %bb.4:
Lloh2:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	mov	x0, x21
	bl	_oid_to_hex
	mov	x1, x0
	mov	x0, x21
	bl	_parse_object_or_die
	mov	x22, x0
	bl	_grep_read_lock
	add	x23, x22, #8
Lloh5:
	adrp	x8, _tree_type@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tree_type@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x0, sp, #40
	add	x3, sp, #16
	mov	x1, x23
	mov	x4, #0
	bl	_read_object_with_reference
	mov	x21, x0
	bl	_grep_read_unlock
	cbnz	x21, LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x24, x0
	mov	x0, x23
	bl	_oid_to_hex
	mov	x1, x0
	mov	x0, x24
	bl	_die
LBB0_6:
	add	x0, sp, #8
	mov	x1, x20
	bl	_strbuf_addstr
	add	x0, sp, #8
	mov	w1, #47
	bl	_strbuf_addch
	ldr	x2, [sp, #16]
	add	x0, sp, #24
	mov	x1, x21
	bl	_init_tree_desc
	ldr	w4, [sp, #8]
	ldr	x8, [x22]
Lloh10:
	adrp	x9, _OBJ_COMMIT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _OBJ_COMMIT@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w5, eq
	add	x0, sp, #32
	add	x2, sp, #24
	add	x3, sp, #8
	mov	x1, x19
	bl	_grep_tree
	mov	x19, x0
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, x21
	bl	_free
	b	LBB0_8
LBB0_7:
	add	x0, sp, #32
	mov	x1, x19
	mov	x2, x22
	bl	_grep_cache
	mov	x19, x0
LBB0_8:
	add	x0, sp, #40
	bl	_repo_clear
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_null_oid,4,2                   ; @null_oid
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_tree_type,4,2                  ; @tree_type
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to read tree (%s)"

	.comm	_OBJ_COMMIT,8,3                 ; @OBJ_COMMIT
	.no_dead_strip	_grep_submodule
.subsections_via_symbols
