	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_temporary_shallow        ## -- Begin function setup_temporary_shallow
	.p2align	4, 0x90
_setup_temporary_shallow:               ## @setup_temporary_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rdx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	leaq	-16(%rbp), %rdi
	xorl	%esi, %esi
	callq	_write_shallow_commits
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_git_path
	movl	%eax, %edi
	callq	_xmks_tempfile
	movq	%rax, %rbx
	movl	(%rax), %edi
	movl	-16(%rbp), %edx
	movl	-12(%rbp), %esi
	callq	_write_in_full
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_close_tempfile_gently
	testq	%rax, %rax
	jns	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_get_tempfile_path
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_die_errno
LBB0_5:
	leaq	-16(%rbp), %rdi
	callq	_strbuf_release
	movq	%rbx, %rdi
	callq	_get_tempfile_path
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str.2(%rip), %rax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"shallow_XXXXXX"

L_.str.1:                               ## @.str.1
	.asciz	"failed to write to %s"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_temporary_shallow        ; -- Begin function setup_temporary_shallow
	.p2align	2
_setup_temporary_shallow:               ; @setup_temporary_shallow
	.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	x2, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	add	x0, sp, #8
	mov	w1, #0
	bl	_write_shallow_commits
	cbz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_git_path
	bl	_xmks_tempfile
	mov	x19, x0
	ldr	w0, [x0]
	ldp	w2, w1, [sp, #8]
	bl	_write_in_full
	tbnz	x0, #63, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_close_tempfile_gently
	tbz	x0, #63, LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_get_tempfile_path
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die_errno
LBB0_4:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, x19
	bl	_get_tempfile_path
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"shallow_XXXXXX"

l_.str.1:                               ; @.str.1
	.asciz	"failed to write to %s"

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

.subsections_via_symbols
