	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function repo_init_gitdir
_repo_init_gitdir:                      ## @repo_init_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$0, -28(%rbp)
	movq	$0, -40(%rbp)
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_real_pathdup
	movq	%rax, %rbx
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_resolve_gitdir_gently
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_repo_set_gitdir
	xorl	%r15d, %r15d
LBB0_3:
	movq	%rbx, %rdi
	callq	_free
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_repo_init_gitdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function repo_init_gitdir
_repo_init_gitdir:                      ; @repo_init_gitdir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	str	wzr, [sp, #12]
	str	xzr, [sp]
	mov	x0, x1
	mov	w1, #0
	bl	_real_pathdup
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	add	x1, sp, #12
	mov	x0, x19
	bl	_resolve_gitdir_gently
	cbz	x0, LBB0_3
; %bb.2:
	mov	x1, x0
	mov	x2, sp
	mov	x0, x20
	bl	_repo_set_gitdir
	mov	w20, #0
	b	LBB0_4
LBB0_3:
	mov	w20, #-1
LBB0_4:
	mov	x0, x19
	bl	_free
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_repo_init_gitdir
.subsections_via_symbols
