	.file	"extr_receive-pack.c_update_shallow_info.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"shallow update not allowed"
	.text
	.p2align 4
	.type	update_shallow_info, @function
update_shallow_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	remove_nonexistent_theirs_shallow@PLT
	cmp	QWORD PTR 8[r13], 0
	je	.L2
	mov	rbx, rbp
	test	rbp, rbp
	je	.L25
	.p2align 4,,10
	.p2align 3
.L3:
	lea	r14, 20[rbx]
	mov	rdi, r14
	call	is_null_oid@PLT
	test	rax, rax
	jne	.L6
	mov	rsi, r14
	mov	rdi, r12
	call	oid_array_append@PLT
	mov	eax, DWORD PTR [r12]
	sub	eax, 1
	cdqe
	mov	QWORD PTR [rbx], rax
.L6:
	mov	rbx, QWORD PTR 24[rbx]
	test	rbx, rbx
	jne	.L3
	cmp	QWORD PTR shallow_update[rip], 0
	mov	QWORD PTR 0[r13], r12
	jne	.L11
	mov	esi, DWORD PTR [r12]
	xor	r12d, r12d
	lea	rbx, .LC0[rip]
	mov	rdi, r12
	call	ALLOC_ARRAY@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	rdi, r13
	call	assign_shallow_commits_to_refs@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdi, 20[rbp]
	call	is_null_oid@PLT
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR 0[rbp]
	xor	r12d, r12d
	mov	eax, DWORD PTR [r12+rax*4]
	test	eax, eax
	je	.L8
	mov	QWORD PTR 8[rbp], rbx
	mov	DWORD PTR 16[rbp], 1
.L8:
	mov	rbp, QWORD PTR 24[rbp]
	test	rbp, rbp
	jne	.L9
.L10:
	xor	r12d, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rdi, r12
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	free@PLT
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	cmp	QWORD PTR shallow_update[rip], 0
	mov	QWORD PTR 0[r13], r12
	je	.L21
.L11:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	prepare_shallow_update@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	QWORD PTR shallow_update[rip], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	mov	esi, DWORD PTR [r12]
	xor	r12d, r12d
	mov	rdi, r12
	call	ALLOC_ARRAY@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	rdi, r13
	call	assign_shallow_commits_to_refs@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	update_shallow_info, .-update_shallow_info
	.comm	shallow_update,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_receive-pack.c_update_shallow_info.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"shallow update not allowed\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_shallow_info, %function
update_shallow_info:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r1
	mov	r5, r0
	mov	r0, r1
	mov	r7, r2
	bl	remove_nonexistent_theirs_shallow
	ldr	r3, [r8, #8]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [r8, #4]
	cmp	r3, #0
	beq	.L3
.L2:
	cmp	r5, #0
	movne	r4, r5
	beq	.L28
.L4:
	add	r6, r4, #12
	mov	r0, r6
	bl	is_null_oid
	cmp	r0, #0
	bne	.L7
	mov	r1, r6
	mov	r0, r7
	bl	oid_array_append
	ldr	r3, [r7]
	sub	r3, r3, #1
	str	r3, [r4]
.L7:
	ldr	r4, [r4, #16]
	cmp	r4, #0
	bne	.L4
	ldr	r3, .L29
	str	r7, [r8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	mov	r6, #0
	ldr	r1, [r7]
	mov	r0, r6
	bl	ALLOC_ARRAY
	mov	r1, r4
	mov	r2, r6
	mov	r0, r8
	bl	assign_shallow_commits_to_refs
	mov	r4, #1
	ldr	r7, .L29+4
.L10:
	add	r0, r5, #12
	bl	is_null_oid
	cmp	r0, #0
	bne	.L9
	mov	r6, #0
	ldr	r3, [r5]
	ldr	r3, [r6, r3, lsl #2]
	cmp	r3, r6
	strne	r7, [r5, #4]
	strne	r4, [r5, #8]
.L9:
	ldr	r5, [r5, #16]
	cmp	r5, #0
	bne	.L10
.L11:
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r0, #0
	b	free
.L12:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, lr}
	b	prepare_shallow_update
.L3:
	ldr	r2, .L29
	str	r3, [r2]
	pop	{r4, r5, r6, r7, r8, pc}
.L28:
	ldr	r3, .L29
	str	r7, [r8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	mov	r6, #0
	ldr	r1, [r7]
	mov	r0, r6
	bl	ALLOC_ARRAY
	mov	r2, r6
	mov	r1, r5
	mov	r0, r8
	bl	assign_shallow_commits_to_refs
	b	.L11
.L30:
	.align	2
.L29:
	.word	shallow_update
	.word	.LC0
	.size	update_shallow_info, .-update_shallow_info
	.comm	shallow_update,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
