	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_is_nonbare_repository_dir      ## -- Begin function is_nonbare_repository_dir
	.p2align	4, 0x90
_is_nonbare_repository_dir:             ## @is_nonbare_repository_dir
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strbuf_complete
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strbuf_addstr
	movl	8(%r15), %edi
	leaq	-28(%rbp), %rsi
	callq	_read_gitfile_gently
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	8(%r15), %edi
	callq	_is_git_directory
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movl	$1, %ebx
LBB0_4:
	movl	-28(%rbp), %eax
	movq	_READ_GITFILE_ERR_READ_FAILED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	_READ_GITFILE_ERR_OPEN_FAILED@GOTPCREL(%rip), %rcx
	movl	$1, %edx
	cmovel	%edx, %ebx
	cmpl	(%rcx), %eax
	cmovel	%edx, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_strbuf_setlen
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".git"

	.comm	_READ_GITFILE_ERR_OPEN_FAILED,4,2 ## @READ_GITFILE_ERR_OPEN_FAILED
	.comm	_READ_GITFILE_ERR_READ_FAILED,4,2 ## @READ_GITFILE_ERR_READ_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_is_nonbare_repository_dir      ; -- Begin function is_nonbare_repository_dir
	.p2align	2
_is_nonbare_repository_dir:             ; @is_nonbare_repository_dir
	.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	x20, x0
	ldr	x19, [x0]
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x20
	mov	w1, #47
	bl	_strbuf_complete
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strbuf_addstr
	ldr	w0, [x20, #8]
	add	x1, sp, #12
	bl	_read_gitfile_gently
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #8]
	bl	_is_git_directory
	cbz	x0, LBB0_4
LBB0_2:
	mov	w8, #1
LBB0_3:
	ldr	w9, [sp, #12]
Lloh2:
	adrp	x10, _READ_GITFILE_ERR_OPEN_FAILED@GOTPAGE
Lloh3:
	ldr	x10, [x10, _READ_GITFILE_ERR_OPEN_FAILED@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
Lloh5:
	adrp	x11, _READ_GITFILE_ERR_READ_FAILED@GOTPAGE
Lloh6:
	ldr	x11, [x11, _READ_GITFILE_ERR_READ_FAILED@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	cmp	w9, w11
	ccmp	w9, w10, #4, ne
	csinc	w21, w8, wzr, ne
	mov	x0, x20
	mov	x1, x19
	bl	_strbuf_setlen
	mov	x0, x21
	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_4:
	mov	w8, #0
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".git"

	.comm	_READ_GITFILE_ERR_OPEN_FAILED,4,2 ; @READ_GITFILE_ERR_OPEN_FAILED
	.comm	_READ_GITFILE_ERR_READ_FAILED,4,2 ; @READ_GITFILE_ERR_READ_FAILED
.subsections_via_symbols
