	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connect_wt_gitdir_in_nested
_connect_wt_gitdir_in_nested:           ## @connect_wt_gitdir_in_nested
	.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, %r14
	movq	%rdi, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%eax, -48(%rbp)
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_repo_init
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	leaq	-72(%rbp), %rdi
	callq	_repo_read_index
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	-64(%rbp), %esi
	movl	%eax, %edi
	callq	_die
LBB0_3:
	movq	-72(%rbp), %rax
	cmpl	$0, (%rax)
	jle	LBB0_14
## %bb.4:
	xorl	%r13d, %r13d
	leaq	-72(%rbp), %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %r15d
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%r15d
	movq	-72(%rbp), %rax
	movl	%r15d, %r13d
	cmpl	(%rax), %r15d
	jge	LBB0_14
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	8(%rax), %rax
	movslq	%r13d, %rbx
	movq	(%rax,%rbx,8), %r14
	movl	4(%r14), %edi
	callq	_S_ISGITLINK
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r13d, %r15d
	movq	-72(%rbp), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movl	(%r14), %edi
	movq	8(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %esi
	callq	_strcmp
	leal	1(%r15), %r13d
	incq	%rbx
	testl	%eax, %eax
	je	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %edx
	movq	%r12, %rdi
	movq	_null_oid@GOTPCREL(%rip), %rsi
	callq	_submodule_from_path
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r13
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_is_submodule_active
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strbuf_reset
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_strbuf_reset
	movl	4(%r13), %ecx
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_strbuf_addf
	movl	(%r13), %ecx
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_strbuf_addf
	movl	-56(%rbp), %edi
	movl	-48(%rbp), %esi
	movl	$1, %edx
	callq	_connect_work_tree_and_git_dir
	jmp	LBB0_13
LBB0_14:
	leaq	-56(%rbp), %rdi
	callq	_strbuf_release
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	leaq	-72(%rbp), %rdi
	callq	_repo_clear
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"index file corrupt in repo %s"

	.comm	_null_oid,4,2                   ## @null_oid
L_.str.1:                               ## @.str.1
	.asciz	"%s/%s"

L_.str.2:                               ## @.str.2
	.asciz	"%s/modules/%s"

	.no_dead_strip	_connect_wt_gitdir_in_nested
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connect_wt_gitdir_in_nested
_connect_wt_gitdir_in_nested:           ; @connect_wt_gitdir_in_nested
	.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, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	w8, [sp]
	add	x0, sp, #16
	mov	x2, x20
	bl	_repo_init
	cbnz	x0, LBB0_15
; %bb.1:
	add	x0, sp, #16
	bl	_repo_read_index
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	w1, [sp, #24]
	bl	_die
LBB0_3:
	ldr	x8, [sp, #16]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.4:
	mov	w24, #0
Lloh5:
	adrp	x21, _null_oid@GOTPAGE
Lloh6:
	ldr	x21, [x21, _null_oid@GOTPAGEOFF]
Lloh7:
	adrp	x22, l_.str.1@PAGE
Lloh8:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh9:
	adrp	x23, l_.str.2@PAGE
Lloh10:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, x24
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w24, w25, #1
	ldr	x8, [sp, #16]
	ldr	w9, [x8]
	cmp	w24, w9
	b.ge	LBB0_14
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x8, [x8, #8]
	ldr	x26, [x8, w24, sxtw #3]
	ldr	w0, [x26, #4]
	bl	_S_ISGITLINK
	cbz	w0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sxtw	x8, w24
	add	x27, x8, #1
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x25, x24
	ldr	x8, [sp, #16]
	ldrsw	x9, [x8]
	cmp	x27, x9
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w0, [x26]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x27, lsl #3]
	ldr	w1, [x8]
	bl	_strcmp
	add	w24, w25, #1
	add	x27, x27, #1
	cbz	w0, LBB0_9
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x26]
	add	x0, sp, #16
	mov	x1, x21
	bl	_submodule_from_path
	cbz	x0, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, x0
	ldr	w1, [x26]
	add	x0, sp, #16
	bl	_is_submodule_active
	cbz	w0, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #8
	bl	_strbuf_reset
	mov	x0, sp
	bl	_strbuf_reset
	ldr	w3, [x24, #4]
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x20
	bl	_strbuf_addf
	ldr	w3, [x24]
	mov	x0, sp
	mov	x1, x23
	mov	x2, x19
	bl	_strbuf_addf
	ldr	w0, [sp, #8]
	ldr	w1, [sp]
	mov	w2, #1
	bl	_connect_work_tree_and_git_dir
	b	LBB0_6
LBB0_14:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, sp
	bl	_strbuf_release
	add	x0, sp, #16
	bl	_repo_clear
LBB0_15:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"index file corrupt in repo %s"

	.comm	_null_oid,4,2                   ; @null_oid
l_.str.1:                               ; @.str.1
	.asciz	"%s/%s"

l_.str.2:                               ; @.str.2
	.asciz	"%s/modules/%s"

	.no_dead_strip	_connect_wt_gitdir_in_nested
.subsections_via_symbols
