	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_move_submodule
_prepare_move_submodule:                ## @prepare_move_submodule
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_active_cache@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edi
	callq	_S_ISGITLINK
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_die
LBB0_2:
	movq	_the_index@GOTPCREL(%rip), %rdi
	callq	_is_staging_gitmodules_ok
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_die
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	leaq	-24(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_strbuf_addf
	movl	-24(%rbp), %edi
	callq	_read_gitfile
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rdi
	callq	_xstrdup
	jmp	LBB0_7
LBB0_6:
	movq	_SUBMODULE_WITH_GITDIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_7:
	movq	%rax, (%r14)
	leaq	-24(%rbp), %rdi
	callq	_strbuf_release
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_active_cache,8,3               ## @active_cache
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Directory %s is in index and no submodule?"

	.comm	_the_index,4,2                  ## @the_index
L_.str.1:                               ## @.str.1
	.asciz	"Please stage your changes to .gitmodules or stash them to proceed"

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

	.comm	_SUBMODULE_WITH_GITDIR,8,3      ## @SUBMODULE_WITH_GITDIR
	.no_dead_strip	_prepare_move_submodule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_move_submodule
_prepare_move_submodule:                ; @prepare_move_submodule
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x8, _active_cache@GOTPAGE
Lloh4:
	ldr	x8, [x8, _active_cache@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8, w1, sxtw #3]
	ldr	w0, [x8]
	bl	_S_ISGITLINK
	cbnz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	str	x20, [sp]
	bl	_die
LBB0_2:
Lloh8:
	adrp	x0, _the_index@GOTPAGE
Lloh9:
	ldr	x0, [x0, _the_index@GOTPAGEOFF]
	bl	_is_staging_gitmodules_ok
	cbnz	w0, LBB0_4
; %bb.3:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_die
LBB0_4:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	x2, x20
	bl	_strbuf_addf
	ldr	w0, [sp, #8]
	bl	_read_gitfile
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_xstrdup
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _SUBMODULE_WITH_GITDIR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SUBMODULE_WITH_GITDIR@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
LBB0_7:
	str	x0, [x19]
	add	x0, sp, #8
	bl	_strbuf_release
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_active_cache,8,3               ; @active_cache
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Directory %s is in index and no submodule?"

	.comm	_the_index,4,2                  ; @the_index
l_.str.1:                               ; @.str.1
	.asciz	"Please stage your changes to .gitmodules or stash them to proceed"

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

	.comm	_SUBMODULE_WITH_GITDIR,8,3      ; @SUBMODULE_WITH_GITDIR
	.no_dead_strip	_prepare_move_submodule
.subsections_via_symbols
