	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_alternate_shallow        ## -- Begin function setup_alternate_shallow
	.p2align	4, 0x90
_setup_alternate_shallow:               ## @setup_alternate_shallow
	.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	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_the_repository@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_git_path_shallow
	movq	_LOCK_DIE_ON_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_hold_lock_file_for_update
	movl	%eax, %r12d
	movl	(%rbx), %edi
	callq	_check_shallow_file_for_update
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_write_shallow_commits
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %esi
	movl	%r12d, %edi
	callq	_write_in_full
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_get_lock_file_path
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_die_errno
LBB0_4:
	movq	%r15, %rdi
	callq	_get_lock_file_path
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str.1(%rip), %rax
LBB0_5:
	movq	%rax, (%r14)
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.comm	_the_repository,4,2             ## @the_repository
	.comm	_LOCK_DIE_ON_ERROR,4,2          ## @LOCK_DIE_ON_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to write to %s"

L_.str.1:                               ## @.str.1
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_alternate_shallow        ; -- Begin function setup_alternate_shallow
	.p2align	2
_setup_alternate_shallow:               ; @setup_alternate_shallow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x23, _the_repository@GOTPAGE
Lloh4:
	ldr	x23, [x23, _the_repository@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_git_path_shallow
	mov	x1, x0
Lloh5:
	adrp	x8, _LOCK_DIE_ON_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOCK_DIE_ON_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_hold_lock_file_for_update
	mov	x21, x0
	ldr	w0, [x23]
	bl	_check_shallow_file_for_update
	add	x0, sp, #8
	mov	w1, #0
	mov	x2, x22
	bl	_write_shallow_commits
	cbz	x0, LBB0_4
; %bb.1:
	ldp	w2, w1, [sp, #8]
	mov	x0, x21
	bl	_write_in_full
	tbz	x0, #63, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_get_lock_file_path
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die_errno
LBB0_3:
	mov	x0, x20
	bl	_get_lock_file_path
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	str	x0, [x19]
	add	x0, sp, #8
	bl	_strbuf_release
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.comm	_the_repository,4,2             ; @the_repository
	.comm	_LOCK_DIE_ON_ERROR,4,2          ; @LOCK_DIE_ON_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to write to %s"

l_.str.1:                               ; @.str.1
	.space	1

.subsections_via_symbols
