	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_index_path                     ## -- Begin function index_path
	.p2align	4, 0x90
_index_path:                            ## @index_path
	.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
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_S_IFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rcx), %eax
	cmpl	$130, %eax
	je	LBB0_6
## %bb.1:
	movl	%r8d, %r15d
	movq	%rcx, %rbx
	cmpl	$129, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.3:
	movq	%rdi, %r13
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	movq	_OBJ_BLOB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r15d, (%rsp)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	movq	%rbx, %rcx
	movq	%r12, %r9
	callq	_index_fd
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_18
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_resolve_gitlink_ref            ## TAILCALL
LBB0_7:
	movl	4(%rbx), %edx
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_strbuf_readlink
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	callq	_error_errno
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
LBB0_10:
	callq	__
	movl	%eax, %edi
	movq	%r12, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_11:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error_errno                    ## TAILCALL
LBB0_12:
	movq	_HASH_WRITE_OBJECT@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edi
	movq	_blob_type@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%r15d, (%rax)
	je	LBB0_15
## %bb.13:
	movq	%r14, %rcx
	callq	_write_object_file
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_error
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_15:
	movq	%r14, %rcx
	callq	_hash_object_file
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %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
	.comm	_S_IFMT,4,2                     ## @S_IFMT
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"open(\"%s\")"

	.comm	_OBJ_BLOB,4,2                   ## @OBJ_BLOB
L_.str.1:                               ## @.str.1
	.asciz	"%s: failed to insert into database"

L_.str.2:                               ## @.str.2
	.asciz	"readlink(\"%s\")"

	.comm	_HASH_WRITE_OBJECT,4,2          ## @HASH_WRITE_OBJECT
	.comm	_blob_type,4,2                  ## @blob_type
L_.str.3:                               ## @.str.3
	.asciz	"HEAD"

L_.str.4:                               ## @.str.4
	.asciz	"%s: unsupported file type"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_index_path                     ; -- Begin function index_path
	.p2align	2
_index_path:                            ; @index_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	w8, [x3]
Lloh0:
	adrp	x9, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	x9, [sp, #8]
Lloh3:
	adrp	x9, _S_IFMT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _S_IFMT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.1:
	mov	x21, x4
	mov	x22, x3
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.3:
	mov	x23, x0
Lloh6:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_open
	tbnz	w0, #31, LBB0_11
; %bb.4:
	mov	x2, x0
Lloh9:
	adrp	x8, _OBJ_BLOB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OBJ_BLOB@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x0, x23
	mov	x1, x20
	mov	x3, x22
	mov	x5, x19
	mov	x6, x21
	bl	_index_fd
	tbnz	w0, #31, LBB0_15
; %bb.5:
	mov	w19, #0
	b	LBB0_19
LBB0_6:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_resolve_gitlink_ref
LBB0_7:
	ldr	w2, [x22, #4]
	add	x0, sp, #8
	mov	x1, x19
	bl	_strbuf_readlink
	cbz	w0, LBB0_12
; %bb.8:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_error_errno
	mov	x19, x0
	b	LBB0_19
LBB0_9:
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_10:
	bl	__
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_error
LBB0_11:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_error_errno
LBB0_12:
Lloh20:
	adrp	x8, _HASH_WRITE_OBJECT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HASH_WRITE_OBJECT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldp	w1, w0, [sp, #8]
Lloh23:
	adrp	x9, _blob_type@GOTPAGE
Lloh24:
	ldr	x9, [x9, _blob_type@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x9]
	mov	x3, x20
	tst	w8, w21
	b.eq	LBB0_16
; %bb.13:
	bl	_write_object_file
	cbz	w0, LBB0_17
; %bb.14:
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_error
	mov	x19, x0
	b	LBB0_18
LBB0_15:
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_16:
	bl	_hash_object_file
LBB0_17:
	mov	w19, #0
LBB0_18:
	add	x0, sp, #8
	bl	_strbuf_release
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.comm	_S_IFMT,4,2                     ; @S_IFMT
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"open(\"%s\")"

	.comm	_OBJ_BLOB,4,2                   ; @OBJ_BLOB
l_.str.1:                               ; @.str.1
	.asciz	"%s: failed to insert into database"

l_.str.2:                               ; @.str.2
	.asciz	"readlink(\"%s\")"

	.comm	_HASH_WRITE_OBJECT,4,2          ; @HASH_WRITE_OBJECT
	.comm	_blob_type,4,2                  ; @blob_type
l_.str.3:                               ; @.str.3
	.asciz	"HEAD"

l_.str.4:                               ; @.str.4
	.asciz	"%s: unsupported file type"

.subsections_via_symbols
