	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_discover_git_directory         ## -- Begin function discover_git_directory
	.p2align	4, 0x90
_discover_git_directory:                ## @discover_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	(%rsi), %r13
	movq	(%rdi), %r14
	movq	_REPOSITORY_FORMAT_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_strbuf_getcwd
	movl	$-1, %ecx
	testq	%rax, %rax
	je	LBB0_1
LBB0_12:
	movl	%ecx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	-64(%rbp), %r15
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_setup_git_directory_gently_1
	testq	%rax, %rax
	jle	LBB0_2
## %bb.3:
	cmpq	%r15, -64(%rbp)
	movq	%r14, %r15
	jae	LBB0_9
## %bb.4:
	movq	8(%rbx), %rdi
	addq	%r13, %rdi
	callq	_is_absolute_path
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	8(%rbx), %rsi
	addq	%r13, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leaq	-64(%rbp), %rdi
	movl	$47, %esi
	callq	_strbuf_addch
	jmp	LBB0_8
LBB0_2:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	movl	$-1, %ecx
	jmp	LBB0_12
LBB0_6:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_strbuf_setlen
LBB0_8:
	movq	-64(%rbp), %rcx
	movq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_strbuf_insert
LBB0_9:
	movq	8(%rbx), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	callq	_get_common_dir
	movq	%r13, %r14
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	callq	_strbuf_reset
	movq	8(%r12), %rdx
	addq	%r15, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_strbuf_addf
	movq	-56(%rbp), %rsi
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_read_repository_format
	movq	%r13, %rdi
	callq	_strbuf_release
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	callq	_verify_repository_format
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:
	leaq	-48(%rbp), %rdi
	callq	_clear_repository_format
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_10:
	movq	8(%rbx), %rsi
	addq	%r14, %rsi
	movq	-72(%rbp), %rdx
	leaq	L_.str.2(%rip), %rdi
	callq	_warning
	leaq	-80(%rbp), %rdi
	callq	_strbuf_release
	movq	%r12, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_strbuf_setlen
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strbuf_setlen
	leaq	-48(%rbp), %rdi
	callq	_clear_repository_format
	movl	$-1, %ecx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.comm	_REPOSITORY_FORMAT_INIT,4,2     ## @REPOSITORY_FORMAT_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

L_.str.1:                               ## @.str.1
	.asciz	"%s/config"

L_.str.2:                               ## @.str.2
	.asciz	"ignoring git dir '%s': %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_discover_git_directory         ; -- Begin function discover_git_directory
	.p2align	2
_discover_git_directory:                ; @discover_git_directory
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	stp	q0, q0, [sp, #16]
	ldr	x20, [x1]
	ldr	x22, [x0]
Lloh3:
	adrp	x8, _REPOSITORY_FORMAT_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REPOSITORY_FORMAT_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x0, sp, #32
	bl	_strbuf_getcwd
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #-1
LBB0_2:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
	ldr	x23, [sp, #32]
	add	x0, sp, #32
	mov	x1, x19
	mov	w2, #0
	bl	_setup_git_directory_gently_1
	cmp	x0, #0
	b.le	LBB0_8
; %bb.4:
	ldr	x8, [sp, #32]
	cmp	x8, x23
	b.hs	LBB0_11
; %bb.5:
	ldr	x8, [x19, #8]
	add	x0, x8, x20
	bl	_is_absolute_path
	cbnz	w0, LBB0_11
; %bb.6:
	ldr	x8, [x19, #8]
	add	x1, x8, x20
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.7:
	add	x0, sp, #32
	mov	w1, #47
	bl	_strbuf_addch
	b	LBB0_10
LBB0_8:
	add	x0, sp, #32
	bl	_strbuf_release
	b	LBB0_1
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_strbuf_setlen
LBB0_10:
	ldp	x3, x2, [sp, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_strbuf_insert
LBB0_11:
	ldr	x8, [x19, #8]
	add	x1, x8, x20
	mov	x0, x21
	bl	_get_common_dir
	add	x0, sp, #32
	bl	_strbuf_reset
	ldr	x8, [x21, #8]
	add	x2, x8, x22
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #32
	bl	_strbuf_addf
	ldr	x1, [sp, #40]
	add	x0, sp, #8
	bl	_read_repository_format
	add	x0, sp, #32
	bl	_strbuf_release
	add	x0, sp, #8
	add	x1, sp, #16
	bl	_verify_repository_format
	tbnz	x0, #63, LBB0_13
; %bb.12:
	add	x0, sp, #8
	bl	_clear_repository_format
	mov	w0, #0
	b	LBB0_2
LBB0_13:
	ldr	x8, [x19, #8]
	add	x1, x8, x20
	ldr	x2, [sp, #24]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warning
	add	x0, sp, #16
	bl	_strbuf_release
	mov	x0, x21
	mov	x1, x22
	bl	_strbuf_setlen
	mov	x0, x19
	mov	x1, x20
	bl	_strbuf_setlen
	add	x0, sp, #8
	bl	_clear_repository_format
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.comm	_REPOSITORY_FORMAT_INIT,4,2     ; @REPOSITORY_FORMAT_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

l_.str.1:                               ; @.str.1
	.asciz	"%s/config"

l_.str.2:                               ; @.str.2
	.asciz	"ignoring git dir '%s': %s"

.subsections_via_symbols
