	.file	"extr_shallow.c_setup_temporary_shallow.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"shallow_XXXXXX"
.LC2:
	.string	"failed to write to %s"
	.text
	.p2align 4
	.globl	setup_temporary_shallow
	.type	setup_temporary_shallow, @function
setup_temporary_shallow:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rdx, rdi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rbp, rsp
	mov	rax, QWORD PTR STRBUF_INIT[rip]
	mov	rdi, rbp
	mov	QWORD PTR [rsp], rax
	call	write_shallow_commits@PLT
	mov	r8, rax
	lea	rax, .LC0[rip]
	test	r8, r8
	jne	.L12
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	git_path@PLT
	mov	edi, eax
	call	xmks_tempfile@PLT
	mov	edx, DWORD PTR [rsp]
	mov	esi, DWORD PTR 4[rsp]
	mov	edi, DWORD PTR [rax]
	mov	r12, rax
	call	write_in_full@PLT
	test	rax, rax
	js	.L5
	mov	rdi, r12
	call	close_tempfile_gently@PLT
	test	rax, rax
	js	.L5
.L4:
	mov	rdi, rbp
	call	strbuf_release@PLT
	mov	rdi, r12
	call	get_tempfile_path@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r12
	call	get_tempfile_path@PLT
	lea	rdi, .LC2[rip]
	mov	rsi, rax
	call	die_errno@PLT
	jmp	.L4
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	setup_temporary_shallow, .-setup_temporary_shallow
	.comm	STRBUF_INIT,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_shallow.c_setup_temporary_shallow.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"shallow_XXXXXX\000"
	.align	2
.LC2:
	.ascii	"failed to write to %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	setup_temporary_shallow
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_temporary_shallow, %function
setup_temporary_shallow:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L12
	sub	sp, sp, #20
	add	r4, sp, #4
	mov	r2, r0
	ldm	r3, {r0, r1}
	stm	r4, {r0, r1}
	ldr	r3, .L12+4
	mov	r0, r4
	mov	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	write_shallow_commits
	cmp	r0, #0
	ldreq	r0, .L12+8
	bne	.L10
.L1:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L10:
	ldr	r0, .L12+12
	bl	git_path
	bl	xmks_tempfile
	ldr	r2, [sp, #4]
	mov	r5, r0
	ldr	r1, [sp, #8]
	ldr	r0, [r0]
	bl	write_in_full
	cmp	r0, #0
	blt	.L5
	mov	r0, r5
	bl	close_tempfile_gently
	cmp	r0, #0
	blt	.L5
.L4:
	mov	r0, r4
	bl	strbuf_release
	mov	r0, r5
	bl	get_tempfile_path
	b	.L1
.L5:
	mov	r0, r5
	bl	get_tempfile_path
	mov	r1, r0
	ldr	r0, .L12+16
	bl	die_errno
	b	.L4
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	STRBUF_INIT
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	setup_temporary_shallow, .-setup_temporary_shallow
	.comm	STRBUF_INIT,8,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
