	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function relocate_single_git_dir_into_superproject
_relocate_single_git_dir_into_superproject: ## @relocate_single_git_dir_into_superproject
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_submodule_uses_worktrees
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_die
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	callq	_xstrfmt
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_read_gitfile
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_real_pathdup
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_null_oid@GOTPCREL(%rip), %rsi
	movq	%r13, %rdx
	callq	_submodule_from_path
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_die
LBB0_5:
	movl	(%r12), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_git_path
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_safe_create_leading_directories_const
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_die
LBB0_7:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_real_pathdup
	movq	%rax, %r12
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_get_super_prefix_or_empty
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%rax, %rdx
	movq	%r13, %rcx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	movq	%r12, %r9
	callq	_fprintf
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_relocate_gitdir
	movq	%r14, %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"relocate_gitdir for submodule '%s' with more than one worktree not supported"

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

	.comm	_the_repository,4,2             ## @the_repository
	.comm	_null_oid,4,2                   ## @null_oid
L_.str.2:                               ## @.str.2
	.asciz	"could not lookup name for submodule '%s'"

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

L_.str.4:                               ## @.str.4
	.asciz	"could not create directory '%s'"

	.comm	_stderr,4,2                     ## @stderr
L_.str.5:                               ## @.str.5
	.asciz	"Migrating git directory of '%s%s' from\n'%s' to\n'%s'\n"

	.no_dead_strip	_relocate_single_git_dir_into_superproject
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function relocate_single_git_dir_into_superproject
_relocate_single_git_dir_into_superproject: ; @relocate_single_git_dir_into_superproject
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_submodule_uses_worktrees
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_die
LBB0_2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_xstrfmt
	mov	x20, x0
	bl	_read_gitfile
	cbz	x0, LBB0_4
; %bb.3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x20
	mov	w1, #1
	bl	_real_pathdup
	mov	x21, x0
Lloh4:
	adrp	x8, _the_repository@GOTPAGE
Lloh5:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, _null_oid@GOTPAGE
Lloh8:
	ldr	x1, [x1, _null_oid@GOTPAGEOFF]
	mov	x2, x19
	bl	_submodule_from_path
	mov	x22, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_die
LBB0_6:
	ldr	w1, [x22]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_git_path
	mov	x22, x0
	bl	_safe_create_leading_directories_const
	tbz	x0, #63, LBB0_8
; %bb.7:
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x1, x22
	bl	_die
LBB0_8:
	mov	x0, x22
	mov	w1, #1
	bl	_real_pathdup
	mov	x22, x0
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w23, [x8]
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x24, x0
	bl	_get_super_prefix_or_empty
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	mov	x3, x19
	mov	x4, x21
	mov	x5, x22
	bl	_fprintf
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_relocate_gitdir
	mov	x0, x20
	bl	_free
	mov	x0, x21
	bl	_free
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_free
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"relocate_gitdir for submodule '%s' with more than one worktree not supported"

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

	.comm	_the_repository,4,2             ; @the_repository
	.comm	_null_oid,4,2                   ; @null_oid
l_.str.2:                               ; @.str.2
	.asciz	"could not lookup name for submodule '%s'"

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

l_.str.4:                               ; @.str.4
	.asciz	"could not create directory '%s'"

	.comm	_stderr,4,2                     ; @stderr
l_.str.5:                               ; @.str.5
	.asciz	"Migrating git directory of '%s%s' from\n'%s' to\n'%s'\n"

	.no_dead_strip	_relocate_single_git_dir_into_superproject
.subsections_via_symbols
