	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_is_git_directory               ## -- Begin function is_git_directory
	.p2align	4, 0x90
_is_git_directory:                      ## @is_git_directory
	.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
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -48(%rbp)
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strbuf_addstr
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strbuf_complete
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strbuf_addstr
	movq	-40(%rbp), %rdi
	callq	_validate_headref
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strbuf_reset
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_get_common_dir
	movq	-48(%rbp), %r14
	movq	_DB_ENVIRONMENT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	callq	_getenv
	movq	_X_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	jmp	LBB0_4
LBB0_3:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strbuf_setlen
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strbuf_addstr
	movq	-40(%rbp), %rdi
	movq	_X_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_4:
	callq	_access
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strbuf_setlen
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strbuf_addstr
	movq	-40(%rbp), %rdi
	movq	_X_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_access
	xorl	%r15d, %r15d
	testq	%rax, %rax
	sete	%r15b
LBB0_6:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HEAD"

	.comm	_DB_ENVIRONMENT,4,2             ## @DB_ENVIRONMENT
	.comm	_X_OK,4,2                       ## @X_OK
L_.str.1:                               ## @.str.1
	.asciz	"/objects"

L_.str.2:                               ## @.str.2
	.asciz	"/refs"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_is_git_directory               ; -- Begin function is_git_directory
	.p2align	2
_is_git_directory:                      ; @is_git_directory
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp]
	mov	x0, sp
	mov	x1, x19
	bl	_strbuf_addstr
	mov	x0, sp
	mov	w1, #47
	bl	_strbuf_complete
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	bl	_strbuf_addstr
	ldr	x0, [sp, #8]
	bl	_validate_headref
	cbnz	x0, LBB0_5
; %bb.1:
	mov	x0, sp
	bl	_strbuf_reset
	mov	x0, sp
	mov	x1, x19
	bl	_get_common_dir
	ldr	x19, [sp]
Lloh5:
	adrp	x21, _DB_ENVIRONMENT@GOTPAGE
Lloh6:
	ldr	x21, [x21, _DB_ENVIRONMENT@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_getenv
Lloh7:
	adrp	x20, _X_OK@GOTPAGE
Lloh8:
	ldr	x20, [x20, _X_OK@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x21]
	bl	_getenv
	b	LBB0_4
LBB0_3:
	mov	x0, sp
	mov	x1, x19
	bl	_strbuf_setlen
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, sp
	bl	_strbuf_addstr
	ldr	x0, [sp, #8]
LBB0_4:
	ldr	w1, [x20]
	bl	_access
	cbz	x0, LBB0_7
LBB0_5:
	mov	w19, #0
LBB0_6:
	mov	x0, sp
	bl	_strbuf_release
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	mov	x0, sp
	mov	x1, x19
	bl	_strbuf_setlen
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, sp
	bl	_strbuf_addstr
	ldr	x0, [sp, #8]
	ldr	w1, [x20]
	bl	_access
	cmp	x0, #0
	cset	w19, eq
	b	LBB0_6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD"

	.comm	_DB_ENVIRONMENT,4,2             ; @DB_ENVIRONMENT
	.comm	_X_OK,4,2                       ; @X_OK
l_.str.1:                               ; @.str.1
	.asciz	"/objects"

l_.str.2:                               ; @.str.2
	.asciz	"/refs"

.subsections_via_symbols
