	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grep_object
_grep_object:                           ## @grep_object
	.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	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	(%rdx), %rax
	movq	_OBJ_BLOB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.12:
	addq	$8, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_grep_oid                       ## TAILCALL
LBB0_1:
	movq	_OBJ_COMMIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_OBJ_TREE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	callq	_type_name
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_die
                                        ## implicit-def: $ebx
	jmp	LBB0_11
LBB0_3:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_grep_read_lock
	movl	(%r14), %edi
	leaq	8(%rbx), %r13
	movq	_tree_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rcx
	movq	%r13, %rsi
	xorl	%r8d, %r8d
	callq	_read_object_with_reference
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_grep_read_unlock
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_oid_to_hex
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_die
LBB0_5:
	testq	%r12, %r12
	movl	$0, %r15d
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %r15d
LBB0_7:
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %r13
	leaq	(%rax,%r13), %rsi
	incq	%rsi
	leaq	-48(%rbp), %rdi
	callq	_strbuf_init
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.8:
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_strbuf_add
	movq	%r13, %rdi
	movl	$58, %esi
	callq	_strbuf_addch
LBB0_9:
	movq	-72(%rbp), %rdx
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_init_tree_desc
	movl	-48(%rbp), %r8d
	movq	(%rbx), %rax
	xorl	%r9d, %r9d
	movq	_OBJ_COMMIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%r9b
	leaq	-48(%rbp), %r13
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_grep_tree
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_strbuf_release
	movq	%r15, %rdi
	callq	_free
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJ_BLOB,8,3                   ## @OBJ_BLOB
	.comm	_OBJ_COMMIT,8,3                 ## @OBJ_COMMIT
	.comm	_OBJ_TREE,8,3                   ## @OBJ_TREE
	.comm	_tree_type,4,2                  ## @tree_type
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to read tree (%s)"

	.comm	_PATH_MAX,8,3                   ## @PATH_MAX
L_.str.1:                               ## @.str.1
	.asciz	"unable to grep from object of type %s"

	.no_dead_strip	_grep_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grep_object
_grep_object:                           ; @grep_object
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x22, x3
	mov	x21, x2
	mov	x19, x0
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _OBJ_BLOB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJ_BLOB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x1, x21, #8
	mov	x0, x19
	mov	x2, x22
	mov	w3, #0
	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
	add	sp, sp, #112
	b	_grep_oid
LBB0_2:
Lloh3:
	adrp	x26, _OBJ_COMMIT@GOTPAGE
Lloh4:
	ldr	x26, [x26, _OBJ_COMMIT@GOTPAGEOFF]
	ldr	x9, [x26]
Lloh5:
	adrp	x10, _OBJ_TREE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _OBJ_TREE@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.3:
	mov	x20, x1
	bl	_grep_read_lock
	ldr	w0, [x19]
	add	x24, x21, #8
Lloh8:
	adrp	x8, _tree_type@GOTPAGE
Lloh9:
	ldr	x8, [x8, _tree_type@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x3, sp, #16
	mov	x1, x24
	mov	x4, #0
	bl	_read_object_with_reference
	mov	x23, x0
	bl	_grep_read_unlock
	cbz	x23, LBB0_7
; %bb.4:
	cbz	x22, LBB0_8
LBB0_5:
	mov	x0, x22
	bl	_strlen
	mov	x24, x0
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x19, x0
	ldr	x0, [x21]
	bl	_type_name
	mov	x1, x0
	mov	x0, x19
	bl	_die
                                        ; implicit-def: $w19
	b	LBB0_12
LBB0_7:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x25, x0
	mov	x0, x24
	bl	_oid_to_hex
	mov	x1, x0
	mov	x0, x25
	bl	_die
	cbnz	x22, LBB0_5
LBB0_8:
	mov	w24, #0
LBB0_9:
Lloh15:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x8, x8, w24, sxtw
	add	x1, x8, #1
	add	x0, sp, #8
	bl	_strbuf_init
	cbz	w24, LBB0_11
; %bb.10:
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x24
	bl	_strbuf_add
	add	x0, sp, #8
	mov	w1, #58
	bl	_strbuf_addch
LBB0_11:
	ldr	x2, [sp, #16]
	add	x0, sp, #24
	mov	x1, x23
	bl	_init_tree_desc
	ldr	w4, [sp, #8]
	ldr	x8, [x21]
	ldr	x9, [x26]
	cmp	x8, x9
	cset	w5, eq
	add	x2, sp, #24
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_grep_tree
	mov	x19, x0
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, x23
	bl	_free
LBB0_12:
	mov	x0, x19
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJ_BLOB,8,3                   ; @OBJ_BLOB
	.comm	_OBJ_COMMIT,8,3                 ; @OBJ_COMMIT
	.comm	_OBJ_TREE,8,3                   ; @OBJ_TREE
	.comm	_tree_type,4,2                  ; @tree_type
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to read tree (%s)"

	.comm	_PATH_MAX,8,3                   ; @PATH_MAX
l_.str.1:                               ; @.str.1
	.asciz	"unable to grep from object of type %s"

	.no_dead_strip	_grep_object
.subsections_via_symbols
