	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_repo_path_1
_get_repo_path_1:                       ## @get_repo_path_1
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r15
	leaq	_get_repo_path_1.suffix(%rip), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	xorl	%r12d, %r12d
	movq	%r14, %r13
	jmp	LBB0_2
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	_get_repo_path_1.suffix(%rip), %r14
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$8, %r13
	cmpq	%rax, %r12
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strbuf_setlen
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	callq	_strbuf_addstr
	movq	8(%rbx), %rdi
	leaq	-64(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-60(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rdi
	callq	_is_git_directory
	testq	%rax, %rax
	jne	LBB0_5
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-60(%rbp), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$9, -64(%rbp)
	jl	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	movl	%eax, %edi
	leaq	-56(%rbp), %rsi
	movl	$8, %edx
	callq	_read_in_full
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_close
	cmpl	$8, -76(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	-56(%rbp), %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	$8, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rdi
	callq	_read_gitfile
	testq	%rax, %rax
	je	LBB0_17
## %bb.23:
	movq	%rax, %rcx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_21
LBB0_6:
	leaq	_get_repo_path_1.bundle_suffix(%rip), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_20
## %bb.7:
	leaq	-64(%rbp), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	leaq	_get_repo_path_1.bundle_suffix(%rip), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$8, %r12
	cmpq	%rax, %r14
	jge	LBB0_20
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strbuf_setlen
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_strbuf_addstr
	movq	8(%rbx), %rdi
	movq	%r13, %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	-60(%rbp), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	8(%rbx), %rcx
	jmp	LBB0_21
LBB0_20:
	xorl	%ecx, %ecx
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.22:
	movq	%rcx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	8(%rbx), %rcx
	jmp	LBB0_21
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @get_repo_path_1.suffix
_get_repo_path_1.suffix:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	L_.str.3

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/.git"

L_.str.1:                               ## @.str.1
	.space	1

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

L_.str.3:                               ## @.str.3
	.asciz	".git"

	.section	__DATA,__data
	.p2align	4                               ## @get_repo_path_1.bundle_suffix
_get_repo_path_1.bundle_suffix:
	.quad	L_.str.4
	.quad	L_.str.1

	.section	__TEXT,__cstring,cstring_literals
L_.str.4:                               ## @.str.4
	.asciz	".bundle"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.5:                               ## @.str.5
	.asciz	"gitdir: "

	.no_dead_strip	_get_repo_path_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_repo_path_1
_get_repo_path_1:                       ; @get_repo_path_1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x21, [x0]
Lloh3:
	adrp	x22, _get_repo_path_1.suffix@PAGE
Lloh4:
	add	x22, x22, _get_repo_path_1.suffix@PAGEOFF
	mov	x0, x22
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x26, #0
Lloh5:
	adrp	x27, _O_RDONLY@GOTPAGE
Lloh6:
	ldr	x27, [x27, _O_RDONLY@GOTPAGEOFF]
Lloh7:
	adrp	x23, l_.str.5@PAGE
Lloh8:
	add	x23, x23, l_.str.5@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	mov	x0, x22
	bl	_ARRAY_SIZE
	cmp	x26, w0, sxtw
	b.ge	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_strbuf_setlen
	ldr	x1, [x22, x26, lsl #3]
	mov	x0, x20
	bl	_strbuf_addstr
	ldr	x0, [x20, #8]
	add	x1, sp, #8
	bl	_stat
	cbnz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #12]
	bl	_S_ISDIR
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20, #8]
	bl	_is_git_directory
	cbnz	x0, LBB0_22
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #12]
	bl	_S_ISREG
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #8]
	cmp	w8, #9
	b.lt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20, #8]
	ldr	w1, [x27]
	bl	_open
	tbnz	w0, #31, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	add	x1, sp, #16
	mov	w2, #8
	bl	_read_in_full
	mov	x25, x0
	mov	x0, x24
	bl	_close
	cmp	w25, #8
	b.ne	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #16
	mov	x1, x23
	mov	w2, #8
	bl	_strncmp
	cbnz	x0, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20, #8]
	bl	_read_gitfile
	cbz	x0, LBB0_2
; %bb.12:
	str	wzr, [x19]
	b	LBB0_20
LBB0_13:
Lloh9:
	adrp	x22, _get_repo_path_1.bundle_suffix@PAGE
Lloh10:
	add	x22, x22, _get_repo_path_1.bundle_suffix@PAGEOFF
	mov	x0, x22
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.14:
	mov	x23, #0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x23, x23, #1
	mov	x0, x22
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_strbuf_setlen
	ldr	x1, [x22, x23, lsl #3]
	mov	x0, x20
	bl	_strbuf_addstr
	ldr	x0, [x20, #8]
	add	x1, sp, #8
	bl	_stat
	cbnz	x0, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [sp, #12]
	bl	_S_ISREG
	cbz	x0, LBB0_15
; %bb.18:
	mov	w8, #1
	str	w8, [x19]
	ldr	x0, [x20, #8]
	b	LBB0_20
LBB0_19:
	mov	x0, #0
LBB0_20:
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.21:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_22:
	str	wzr, [x19]
	ldr	x0, [x20, #8]
	b	LBB0_20
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	3                               ; @get_repo_path_1.suffix
_get_repo_path_1.suffix:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/.git"

l_.str.1:                               ; @.str.1
	.space	1

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

l_.str.3:                               ; @.str.3
	.asciz	".git"

	.section	__DATA,__data
	.p2align	3                               ; @get_repo_path_1.bundle_suffix
_get_repo_path_1.bundle_suffix:
	.quad	l_.str.4
	.quad	l_.str.1

	.section	__TEXT,__cstring,cstring_literals
l_.str.4:                               ; @.str.4
	.asciz	".bundle"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.5:                               ; @.str.5
	.asciz	"gitdir: "

	.no_dead_strip	_get_repo_path_1
.subsections_via_symbols
