	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remove_path_from_gitmodules    ## -- Begin function remove_path_from_gitmodules
	.p2align	4, 0x90
_remove_path_from_gitmodules:           ## @remove_path_from_gitmodules
	.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, %r15
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_GITMODULES_FILE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_file_exists
	movl	$-1, %r14d
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	_the_repository@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_is_gitmodules_unmerged
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_3:
	movq	(%rbx), %rdi
	movq	_null_oid@GOTPCREL(%rip), %rsi
	movq	%r15, %rdx
	callq	_submodule_from_path
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	callq	_strbuf_addstr
	movq	(%rbx), %rsi
	movq	%r12, %rdi
	callq	_strbuf_addstr
	movl	(%r13), %edi
	movl	-48(%rbp), %esi
	xorl	%edx, %edx
	callq	_git_config_rename_section_in_file
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_warning
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_warning
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %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
	.comm	_GITMODULES_FILE,4,2            ## @GITMODULES_FILE
	.comm	_the_repository,8,3             ## @the_repository
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot change unmerged .gitmodules, resolve merge conflicts first"

	.comm	_null_oid,4,2                   ## @null_oid
L_.str.1:                               ## @.str.1
	.asciz	"Could not find section in .gitmodules where path=%s"

L_.str.2:                               ## @.str.2
	.asciz	"submodule."

L_.str.3:                               ## @.str.3
	.asciz	"Could not remove .gitmodules entry for %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remove_path_from_gitmodules    ; -- Begin function remove_path_from_gitmodules
	.p2align	2
_remove_path_from_gitmodules:           ; @remove_path_from_gitmodules
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x21, _GITMODULES_FILE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GITMODULES_FILE@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_file_exists
	cbz	w0, LBB0_9
; %bb.1:
Lloh5:
	adrp	x20, _the_repository@GOTPAGE
Lloh6:
	ldr	x20, [x20, _the_repository@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_is_gitmodules_unmerged
	cbz	x0, LBB0_3
; %bb.2:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_die
LBB0_3:
	ldr	x0, [x20]
Lloh9:
	adrp	x1, _null_oid@GOTPAGE
Lloh10:
	ldr	x1, [x1, _null_oid@GOTPAGEOFF]
	mov	x2, x19
	bl	_submodule_from_path
	cbz	x0, LBB0_7
; %bb.4:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.5:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_addstr
	ldr	x1, [x20]
	add	x0, sp, #8
	bl	_strbuf_addstr
	ldr	w0, [x21]
	ldr	w1, [sp, #8]
	mov	x2, #0
	bl	_git_config_rename_section_in_file
	tbnz	x0, #63, LBB0_8
; %bb.6:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	w0, #0
	b	LBB0_10
LBB0_7:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_warning
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_warning
	add	x0, sp, #8
	bl	_strbuf_release
LBB0_9:
	mov	w0, #-1
LBB0_10:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_GITMODULES_FILE,4,2            ; @GITMODULES_FILE
	.comm	_the_repository,8,3             ; @the_repository
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot change unmerged .gitmodules, resolve merge conflicts first"

	.comm	_null_oid,4,2                   ; @null_oid
l_.str.1:                               ; @.str.1
	.asciz	"Could not find section in .gitmodules where path=%s"

l_.str.2:                               ; @.str.2
	.asciz	"submodule."

l_.str.3:                               ; @.str.3
	.asciz	"Could not remove .gitmodules entry for %s"

.subsections_via_symbols
