	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_fake_ancestor
_build_fake_ancestor:                   ## @build_fake_ancestor
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	$0, -64(%rbp)
	movq	_LOCK_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.1:
	movq	%rsi, %rbx
	leaq	-72(%rbp), %r13
	leaq	-64(%rbp), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %r15
	cmpq	$0, 16(%rbx)
	jle	LBB0_6
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	40(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 16(%rbx)
	jg	LBB0_2
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%rbx), %edi
	callq	_S_ISGITLINK
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_preimage_oid_in_gitlink_patch
	testl	%eax, %eax
	je	LBB0_12
	jmp	LBB0_19
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	36(%rbx), %edi
	movq	%r13, %rsi
	callq	_get_oid_blob
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 32(%rbx)
	jne	LBB0_21
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 28(%rbx)
	jne	LBB0_21
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_get_current_oid
	testq	%rax, %rax
	jne	LBB0_22
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%rbx), %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_make_cache_entry
	testq	%rax, %rax
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	movq	_ADD_CACHE_OK_TO_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_add_index_entry
	testq	%rax, %rax
	je	LBB0_2
## %bb.14:
	movq	%r14, %rdi
	callq	_discard_cache_entry
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_23
LBB0_15:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rsi
	movq	_LOCK_DIE_ON_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	callq	_hold_lock_file_for_update
	movq	_COMMIT_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_write_locked_index
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_discard_index
	testl	%ebx, %ebx
	je	LBB0_17
## %bb.16:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movq	(%r12), %rsi
	movl	%eax, %edi
	jmp	LBB0_24
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_18:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_23
LBB0_19:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_23
LBB0_21:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_23
LBB0_22:
	leaq	L_.str.1(%rip), %rdi
LBB0_23:
	callq	__
	movl	%eax, %edi
	movq	%r15, %rsi
LBB0_24:
	callq	_error
LBB0_25:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOCK_INIT,4,2                  ## @LOCK_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sha1 information is lacking or useless for submodule %s"

L_.str.1:                               ## @.str.1
	.asciz	"mode change for %s, which is not in current HEAD"

L_.str.2:                               ## @.str.2
	.asciz	"sha1 information is lacking or useless (%s)."

L_.str.3:                               ## @.str.3
	.asciz	"make_cache_entry failed for path '%s'"

	.comm	_ADD_CACHE_OK_TO_ADD,4,2        ## @ADD_CACHE_OK_TO_ADD
L_.str.4:                               ## @.str.4
	.asciz	"could not add %s to temporary index"

	.comm	_LOCK_DIE_ON_ERROR,4,2          ## @LOCK_DIE_ON_ERROR
	.comm	_COMMIT_LOCK,4,2                ## @COMMIT_LOCK
L_.str.5:                               ## @.str.5
	.asciz	"could not write temporary index to %s"

	.no_dead_strip	_build_fake_ancestor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_fake_ancestor
_build_fake_ancestor:                   ; @build_fake_ancestor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	str	xzr, [sp, #24]
Lloh0:
	adrp	x8, _LOCK_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOCK_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	cbz	x1, LBB0_15
; %bb.1:
	mov	x22, x1
Lloh3:
	adrp	x24, l_.str.2@PAGE
Lloh4:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh5:
	adrp	x25, l_.str.1@PAGE
Lloh6:
	add	x25, x25, l_.str.1@PAGEOFF
Lloh7:
	adrp	x26, l_.str.3@PAGE
Lloh8:
	add	x26, x26, l_.str.3@PAGEOFF
Lloh9:
	adrp	x27, _ADD_CACHE_OK_TO_ADD@GOTPAGE
Lloh10:
	ldr	x27, [x27, _ADD_CACHE_OK_TO_ADD@GOTPAGEOFF]
Lloh11:
	adrp	x21, l_.str@PAGE
Lloh12:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x22, #40]
	cbz	x22, LBB0_15
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x22]
	cbnz	x20, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x22, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #16]
	cmp	x8, #0
	b.gt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22, #24]
	bl	_S_ISGITLINK
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #8
	mov	x0, x22
	bl	_preimage_oid_in_gitlink_patch
	cbz	w0, LBB0_12
	b	LBB0_21
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22, #36]
	add	x1, sp, #8
	bl	_get_oid_blob
	cbz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22, #32]
	cbnz	w8, LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22, #28]
	cbnz	w8, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x22]
	add	x2, sp, #8
	mov	x0, x19
	bl	_get_current_oid
	cbnz	x0, LBB0_20
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x22, #24]
	add	x0, sp, #24
	add	x2, sp, #8
	mov	x3, x20
	mov	w4, #0
	mov	w5, #0
	bl	_make_cache_entry
	cbz	x0, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	ldr	w2, [x27]
	add	x0, sp, #24
	mov	x1, x23
	bl	_add_index_entry
	cbz	x0, LBB0_2
; %bb.14:
	mov	x0, x23
	bl	_discard_cache_entry
Lloh13:
	adrp	x21, l_.str.4@PAGE
Lloh14:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_21
LBB0_15:
	ldr	x1, [x19]
Lloh15:
	adrp	x8, _LOCK_DIE_ON_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LOCK_DIE_ON_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x0, sp, #16
	bl	_hold_lock_file_for_update
Lloh18:
	adrp	x8, _COMMIT_LOCK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _COMMIT_LOCK@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_write_locked_index
	mov	x20, x0
	add	x0, sp, #24
	bl	_discard_index
	cbz	w20, LBB0_17
; %bb.16:
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	ldr	x1, [x19]
	b	LBB0_22
LBB0_17:
	mov	w0, #0
	b	LBB0_23
LBB0_18:
	mov	x21, x26
	b	LBB0_21
LBB0_19:
	mov	x21, x24
	b	LBB0_21
LBB0_20:
	mov	x21, x25
LBB0_21:
	mov	x0, x21
	bl	__
	mov	x1, x20
LBB0_22:
	bl	_error
LBB0_23:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_LOCK_INIT,4,2                  ; @LOCK_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sha1 information is lacking or useless for submodule %s"

l_.str.1:                               ; @.str.1
	.asciz	"mode change for %s, which is not in current HEAD"

l_.str.2:                               ; @.str.2
	.asciz	"sha1 information is lacking or useless (%s)."

l_.str.3:                               ; @.str.3
	.asciz	"make_cache_entry failed for path '%s'"

	.comm	_ADD_CACHE_OK_TO_ADD,4,2        ; @ADD_CACHE_OK_TO_ADD
l_.str.4:                               ; @.str.4
	.asciz	"could not add %s to temporary index"

	.comm	_LOCK_DIE_ON_ERROR,4,2          ; @LOCK_DIE_ON_ERROR
	.comm	_COMMIT_LOCK,4,2                ; @COMMIT_LOCK
l_.str.5:                               ; @.str.5
	.asciz	"could not write temporary index to %s"

	.no_dead_strip	_build_fake_ancestor
.subsections_via_symbols
