	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_absorb_git_dir_into_superproject ## -- Begin function absorb_git_dir_into_superproject
	.p2align	4, 0x90
_absorb_git_dir_into_superproject:      ## @absorb_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_STRBUF_INIT@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r15, %rdx
	callq	_strbuf_addf
	movl	-48(%rbp), %edi
	leaq	-60(%rbp), %rsi
	callq	_resolve_gitdir_gently
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_real_pathdup
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_get_git_common_dir
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_real_pathdup
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_starts_with
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_relocate_single_git_dir_into_superproject
LBB0_10:
	movq	%r12, %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_11
LBB0_1:
	movl	-60(%rbp), %edi
	movq	_READ_GITFILE_ERR_STAT_FAILED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_3
## %bb.2:
	leaq	-48(%rbp), %rdi
	jmp	LBB0_17
LBB0_3:
	movq	_READ_GITFILE_ERR_NOT_A_REPO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	je	LBB0_5
## %bb.4:
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_read_gitfile_error_die
LBB0_5:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_null_oid@GOTPCREL(%rip), %rsi
	movq	%r15, %rdx
	callq	_submodule_from_path
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_die
LBB0_7:
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_git_path
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_connect_work_tree_and_git_dir
LBB0_11:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	movq	_ABSORB_GITDIR_RECURSE_SUBMODULES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r14d, %eax
	je	LBB0_18
## %bb.12:
	movq	_CHILD_PROCESS_INIT@GOTPCREL(%rip), %rcx
	movq	16(%rcx), %rdx
	movq	%rdx, -80(%rbp)
	movups	(%rcx), %xmm0
	movaps	%xmm0, -96(%rbp)
	movl	(%r13), %ecx
	movl	%ecx, -56(%rbp)
	notl	%eax
	testl	%r14d, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rdi
	callq	_BUG
LBB0_14:
	xorl	%eax, %eax
	callq	_get_super_prefix_or_empty
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_strbuf_addstr
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strbuf_addstr
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strbuf_addch
	movq	%r15, -96(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -88(%rbp)
	leaq	-76(%rbp), %rdi
	movl	-56(%rbp), %edx
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str.5(%rip), %rcx
	leaq	L_.str.6(%rip), %r8
	xorl	%r9d, %r9d
	callq	_argv_array_pushl
	leaq	-80(%rbp), %rdi
	callq	_prepare_submodule_repo_env
	leaq	-96(%rbp), %rdi
	callq	_run_command
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.7(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_die
LBB0_16:
	leaq	-56(%rbp), %rdi
LBB0_17:
	callq	_strbuf_release
LBB0_18:
	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	"%s/.git"

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

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

	.comm	_ABSORB_GITDIR_RECURSE_SUBMODULES,4,2 ## @ABSORB_GITDIR_RECURSE_SUBMODULES
	.comm	_CHILD_PROCESS_INIT,24,3        ## @CHILD_PROCESS_INIT
L_.str.3:                               ## @.str.3
	.asciz	"we don't know how to pass the flags down?"

L_.str.4:                               ## @.str.4
	.asciz	"--super-prefix"

L_.str.5:                               ## @.str.5
	.asciz	"submodule--helper"

L_.str.6:                               ## @.str.6
	.asciz	"absorb-git-dirs"

L_.str.7:                               ## @.str.7
	.asciz	"could not recurse into submodule '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_absorb_git_dir_into_superproject ; -- Begin function absorb_git_dir_into_superproject
	.p2align	2
_absorb_git_dir_into_superproject:      ; @absorb_git_dir_into_superproject
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _STRBUF_INIT@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [sp, #40]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #40
	mov	x2, x19
	bl	_strbuf_addf
	ldr	w0, [sp, #40]
	add	x1, sp, #44
	bl	_resolve_gitdir_gently
	cbz	x0, LBB0_4
; %bb.1:
	mov	w1, #1
	bl	_real_pathdup
	mov	x21, x0
	bl	_get_git_common_dir
	mov	w1, #1
	bl	_real_pathdup
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_starts_with
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_relocate_single_git_dir_into_superproject
LBB0_3:
	mov	x0, x21
	bl	_free
	mov	x0, x22
	bl	_free
	b	LBB0_11
LBB0_4:
	ldr	w0, [sp, #44]
Lloh4:
	adrp	x8, _READ_GITFILE_ERR_STAT_FAILED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _READ_GITFILE_ERR_STAT_FAILED@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
	add	x0, sp, #40
	b	LBB0_17
LBB0_6:
Lloh7:
	adrp	x8, _READ_GITFILE_ERR_NOT_A_REPO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _READ_GITFILE_ERR_NOT_A_REPO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x1, x19
	mov	x2, #0
	bl	_read_gitfile_error_die
LBB0_8:
Lloh10:
	adrp	x8, _the_repository@GOTPAGE
Lloh11:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, _null_oid@GOTPAGE
Lloh14:
	ldr	x1, [x1, _null_oid@GOTPAGEOFF]
	mov	x2, x19
	bl	_submodule_from_path
	mov	x21, x0
	cbnz	x0, LBB0_10
; %bb.9:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_die
LBB0_10:
	ldr	w1, [x21]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_git_path
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_connect_work_tree_and_git_dir
LBB0_11:
	add	x0, sp, #40
	bl	_strbuf_release
Lloh19:
	adrp	x8, _ABSORB_GITDIR_RECURSE_SUBMODULES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ABSORB_GITDIR_RECURSE_SUBMODULES@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_18
; %bb.12:
Lloh22:
	adrp	x9, _CHILD_PROCESS_INIT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CHILD_PROCESS_INIT@GOTPAGEOFF]
	ldr	q0, [x9]
	str	q0, [sp, #16]
	ldr	x9, [x9, #16]
	str	x9, [sp, #32]
	ldr	w9, [x23]
	str	w9, [sp, #8]
	bics	wzr, w20, w8
	b.eq	LBB0_14
; %bb.13:
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_BUG
LBB0_14:
	bl	_get_super_prefix_or_empty
	mov	x1, x0
	add	x0, sp, #8
	bl	_strbuf_addstr
	add	x0, sp, #8
	mov	x1, x19
	bl	_strbuf_addstr
	add	x0, sp, #8
	mov	w1, #47
	bl	_strbuf_addch
	str	x19, [sp, #16]
	movi.2s	v0, #1
	str	d0, [sp, #24]
	add	x20, sp, #16
	add	x0, x20, #20
	ldr	w2, [sp, #8]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh28:
	adrp	x3, l_.str.5@PAGE
Lloh29:
	add	x3, x3, l_.str.5@PAGEOFF
Lloh30:
	adrp	x4, l_.str.6@PAGE
Lloh31:
	add	x4, x4, l_.str.6@PAGEOFF
	mov	x5, #0
	bl	_argv_array_pushl
	add	x0, x20, #16
	bl	_prepare_submodule_repo_env
	add	x0, sp, #16
	bl	_run_command
	cbz	x0, LBB0_16
; %bb.15:
Lloh32:
	adrp	x0, l_.str.7@PAGE
Lloh33:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_die
LBB0_16:
	add	x0, sp, #8
LBB0_17:
	bl	_strbuf_release
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/.git"

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

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

	.comm	_ABSORB_GITDIR_RECURSE_SUBMODULES,4,2 ; @ABSORB_GITDIR_RECURSE_SUBMODULES
	.comm	_CHILD_PROCESS_INIT,24,3        ; @CHILD_PROCESS_INIT
l_.str.3:                               ; @.str.3
	.asciz	"we don't know how to pass the flags down?"

l_.str.4:                               ; @.str.4
	.asciz	"--super-prefix"

l_.str.5:                               ; @.str.5
	.asciz	"submodule--helper"

l_.str.6:                               ; @.str.6
	.asciz	"absorb-git-dirs"

l_.str.7:                               ; @.str.7
	.asciz	"could not recurse into submodule '%s'"

.subsections_via_symbols
