	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_repo_submodule_init            ## -- Begin function repo_submodule_init
	.p2align	4, 0x90
_repo_submodule_init:                   ## @repo_submodule_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rax, -56(%rbp)
	movl	$-1, %r15d
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rdx), %ecx
	leaq	L_.str(%rip), %rdx
	leaq	-48(%rbp), %rdi
	callq	_strbuf_repo_worktree_path
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdx
	leaq	-56(%rbp), %rdi
	movq	%r12, %rsi
	callq	_strbuf_repo_worktree_path
	movq	-48(%rbp), %rsi
	movq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_repo_init
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	callq	_strbuf_reset
	movl	4(%rbx), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_strbuf_repo_git_path
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_repo_init
	testq	%rax, %rax
	jne	LBB0_4
LBB0_3:
	movq	(%r12), %rax
	testq	%rax, %rax
	leaq	L_.str.4(%rip), %rsi
	cmovneq	%rax, %rsi
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rdi
	callq	_xstrfmt
	movq	%rax, (%r14)
	xorl	%r15d, %r15d
LBB0_4:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	leaq	-56(%rbp), %rdi
	callq	_strbuf_release
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/.git"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"%s%s/"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_repo_submodule_init            ; -- Begin function repo_submodule_init
	.p2align	2
_repo_submodule_init:                   ; @repo_submodule_init
	.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
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, x8, [sp]
	cbz	x2, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w3, [x2]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_repo_worktree_path
	ldr	w3, [x20]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, sp
	mov	x1, x21
	bl	_strbuf_repo_worktree_path
	ldp	x2, x1, [sp]
	mov	x0, x19
	bl	_repo_init
	cbz	x0, LBB0_4
; %bb.2:
	add	x0, sp, #8
	bl	_strbuf_reset
	ldr	w3, [x20, #4]
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	x1, x21
	bl	_strbuf_repo_git_path
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, #0
	bl	_repo_init
	cbz	x0, LBB0_4
LBB0_3:
	mov	w20, #-1
	b	LBB0_5
LBB0_4:
	ldr	x8, [x21]
Lloh9:
	adrp	x9, l_.str.4@PAGE
Lloh10:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	x8, #0
	csel	x1, x9, x8, eq
	ldr	w2, [x20]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_xstrfmt
	mov	w20, #0
	str	x0, [x19]
LBB0_5:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, sp
	bl	_strbuf_release
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/.git"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"%s%s/"

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

.subsections_via_symbols
