	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_repo_set_gitdir                ## -- Begin function repo_set_gitdir
	.p2align	4, 0x90
_repo_set_gitdir:                       ## @repo_set_gitdir
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_read_gitfile
	movq	(%r15), %r12
	testq	%rax, %rax
	cmovneq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_xstrdup
	movq	%rax, (%r15)
	movq	%r12, %rdi
	callq	_free
	movl	16(%r14), %esi
	movq	%r15, %rdi
	callq	_repo_set_commondir
	movq	24(%r15), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movl	$1, %edi
	movl	$8, %esi
	callq	_xcalloc
	movq	%rax, %rdi
	movq	24(%r15), %rax
	movq	%rdi, 8(%rax)
	movq	%rdi, %rcx
	addq	$4, %rcx
	movq	%rcx, 16(%rax)
LBB0_2:
	movl	12(%r14), %esi
	movq	8(%r15), %rdx
	leaq	L_.str(%rip), %rcx
	callq	_expand_base_dir
	movq	24(%r15), %rax
	movq	(%rax), %rdi
	callq	_free
	movl	8(%r14), %edi
	callq	_xstrdup_or_null
	movq	24(%r15), %rcx
	movq	%rax, (%rcx)
	leaq	20(%r15), %rdi
	movl	4(%r14), %esi
	movq	8(%r15), %rdx
	leaq	L_.str.1(%rip), %rcx
	callq	_expand_base_dir
	movl	(%r14), %esi
	movq	(%r15), %rdx
	addq	$16, %r15
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_expand_base_dir                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"objects"

L_.str.1:                               ## @.str.1
	.asciz	"info/grafts"

L_.str.2:                               ## @.str.2
	.asciz	"index"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_repo_set_gitdir                ; -- Begin function repo_set_gitdir
	.p2align	2
_repo_set_gitdir:                       ; @repo_set_gitdir
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_read_gitfile
	ldr	x22, [x20]
	cmp	x0, #0
	csel	x0, x21, x0, eq
	bl	_xstrdup
	str	x0, [x20]
	mov	x0, x22
	bl	_free
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_repo_set_commondir
	ldr	x8, [x20, #24]
	ldr	x0, [x8, #8]
	cbnz	x0, LBB0_2
; %bb.1:
	mov	w0, #1
	mov	w1, #8
	bl	_xcalloc
	ldr	x8, [x20, #24]
	add	x9, x0, #4
	stp	x0, x9, [x8, #8]
LBB0_2:
	ldr	w1, [x19, #12]
	ldr	x2, [x20, #8]
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	bl	_expand_base_dir
	ldr	x8, [x20, #24]
	ldr	x0, [x8]
	bl	_free
	ldr	w0, [x19, #8]
	bl	_xstrdup_or_null
	ldr	x8, [x20, #24]
	str	x0, [x8]
	add	x0, x20, #20
	ldr	w1, [x19, #4]
	ldr	x2, [x20, #8]
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	bl	_expand_base_dir
	add	x0, x20, #16
	ldr	w1, [x19]
	ldr	x2, [x20]
Lloh4:
	adrp	x3, l_.str.2@PAGE
Lloh5:
	add	x3, x3, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_expand_base_dir
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"objects"

l_.str.1:                               ; @.str.1
	.asciz	"info/grafts"

l_.str.2:                               ; @.str.2
	.asciz	"index"

.subsections_via_symbols
