	.file	"extr_smart_protocol.c_git_smart__download_pack.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"oversized progress message"
	.text
	.p2align 4
	.globl	git_smart__download_pack
	.type	git_smart__download_pack, @function
git_smart__download_pack:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	xmm0, xmm0
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	mov	edx, 8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	rdi, r14
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	movaps	XMMWORD PTR 32[rsp], xmm0
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 64[rsp], 0
	movaps	XMMWORD PTR 48[rsp], xmm0
	call	memset@PLT
	test	rbp, rbp
	je	.L3
	mov	rax, QWORD PTR network_packetsize@GOTPCREL[rip]
	mov	rdi, QWORD PTR 48[rbx]
	lea	rsi, 32[rsp]
	mov	QWORD PTR 32[rsp], rbp
	mov	QWORD PTR 48[rsp], r13
	mov	QWORD PTR 56[rsp], r14
	mov	QWORD PTR 16[rbx], rax
	mov	QWORD PTR 8[rbx], rsi
	test	rdi, rdi
	jle	.L3
	cmp	QWORD PTR 32[rbx], 0
	je	.L45
.L3:
	mov	rsi, r12
	lea	rdi, 8[rsp]
	call	git_repository_odb__weakptr@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L5
	mov	rsi, QWORD PTR 8[rsp]
	lea	rdi, 16[rsp]
	mov	rcx, r13
	mov	rdx, rbp
	call	git_odb_write_pack@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	cmp	QWORD PTR 40[rbx], 0
	lea	r13, 48[rbx]
	je	.L46
	cmp	QWORD PTR 32[rbx], 0
	lea	r15, 24[rsp]
	mov	QWORD PTR 24[rsp], 0
	je	.L7
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L51:
	cmp	QWORD PTR 32[rbx], 0
	jne	.L47
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, QWORD PTR [rdi]
	cmp	rsi, QWORD PTR GIT_PKT_PROGRESS[rip]
	je	.L48
	cmp	rsi, QWORD PTR GIT_PKT_DATA[rip]
	je	.L49
	cmp	rsi, QWORD PTR GIT_PKT_FLUSH[rip]
	je	.L50
.L13:
	call	git_pkt_free@PLT
	cmp	QWORD PTR 32[rbx], 0
	mov	QWORD PTR 24[rsp], 0
	jne	.L17
.L7:
	mov	rdx, r13
	xor	esi, esi
	mov	rdi, r15
	call	recv_pkt@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L51
	mov	rdi, QWORD PTR 24[rsp]
	call	git_pkt_free@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 16[rsp]
	test	rax, rax
	je	.L19
	mov	rdi, rax
	call	[QWORD PTR 16[rax]]
.L19:
	test	rbp, rbp
	je	.L1
	mov	QWORD PTR 16[rbx], 0
	mov	QWORD PTR 8[rbx], 0
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L52
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L47:
	.cfi_restore_state
	xor	eax, eax
	call	git_error_clear@PLT
	mov	r12d, DWORD PTR GIT_EUSER[rip]
.L11:
	mov	rdi, QWORD PTR 24[rsp]
	call	git_pkt_free@PLT
	test	r12d, r12d
	js	.L5
	mov	QWORD PTR 24[rsp], 0
	cmp	QWORD PTR 32[rbx], 0
	je	.L7
.L17:
	xor	eax, eax
	call	git_error_clear@PLT
	mov	r12d, DWORD PTR GIT_EUSER[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L48:
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L13
	cmp	rsi, QWORD PTR INT_MAX[rip]
	jg	.L53
	mov	edx, DWORD PTR 24[rbx]
	mov	edi, DWORD PTR 8[rdi]
	call	rax
	mov	r12d, eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L49:
	test	rsi, rsi
	je	.L13
	mov	r8d, DWORD PTR 8[rdi]
	mov	rax, QWORD PTR 16[rsp]
	mov	rdx, rsi
	mov	rcx, r14
	mov	esi, r8d
	mov	rdi, rax
	call	[QWORD PTR [rax]]
	mov	r12d, eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L45:
	call	network_packetsize@PLT
	test	rax, rax
	je	.L3
	lea	rdi, 32[rbx]
	mov	esi, 1
	call	git_atomic_set@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L46:
	mov	rsi, QWORD PTR 16[rsp]
	mov	rcx, r14
	mov	rdx, r13
	mov	rdi, rbx
	call	no_sideband@PLT
	mov	r12d, eax
	jmp	.L5
.L50:
	call	git__free@PLT
	mov	rax, QWORD PTR 32[rsp]
	test	rax, rax
	je	.L18
	mov	rdi, QWORD PTR 56[rsp]
	mov	rcx, QWORD PTR 40[rsp]
	cmp	QWORD PTR [rdi], rcx
	jle	.L18
	mov	rsi, QWORD PTR 48[rsp]
	call	rax
	mov	r12d, eax
	test	eax, eax
	jne	.L5
.L18:
	mov	rax, QWORD PTR 16[rsp]
	mov	rsi, r14
	mov	rdi, rax
	call	[QWORD PTR 8[rax]]
	mov	r12d, eax
	jmp	.L5
.L53:
	mov	edi, DWORD PTR GIT_ERROR_NET[rip]
	lea	rsi, .LC0[rip]
	call	git_error_set@PLT
	mov	r12d, DWORD PTR GIT_ERROR[rip]
	jmp	.L5
.L52:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	git_smart__download_pack, .-git_smart__download_pack
	.comm	INT_MAX,8,8
	.comm	GIT_PKT_PROGRESS,8,8
	.comm	GIT_PKT_FLUSH,8,8
	.comm	GIT_PKT_DATA,8,8
	.comm	GIT_EUSER,4,4
	.comm	GIT_ERROR_NET,4,4
	.comm	GIT_ERROR,4,4
	.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_smart_protocol.c_git_smart__download_pack.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"oversized progress message\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	git_smart__download_pack
	.syntax unified
	.arm
	.fpu softvfp
	.type	git_smart__download_pack, %function
git_smart__download_pack:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r2
	mov	r2, #0
	subs	r7, r3, #0
	ldr	r3, .L54
	sub	sp, sp, #44
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r4, r0
	mov	r6, r1
	ldr	r8, [sp, #80]
	str	r2, [sp, #8]
	strb	r2, [r5]
	strb	r2, [r5, #1]
	strb	r2, [r5, #2]
	strb	r2, [r5, #3]
	str	r2, [sp, #16]
	str	r2, [sp, #20]
	str	r2, [sp, #24]
	str	r2, [sp, #28]
	str	r2, [sp, #32]
	beq	.L3
	ldr	r0, [r0, #28]
	ldr	r3, .L54+4
	cmp	r0, r2
	add	r2, sp, #16
	stmib	r4, {r2, r3}
	str	r7, [sp, #16]
	str	r8, [sp, #24]
	str	r5, [sp, #28]
	ble	.L3
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L45
.L3:
	mov	r1, r6
	add	r0, sp, #4
	bl	git_repository_odb__weakptr
	subs	fp, r0, #0
	blt	.L5
	mov	r3, r8
	mov	r2, r7
	ldr	r1, [sp, #4]
	add	r0, sp, #8
	bl	git_odb_write_pack
	subs	fp, r0, #0
	bne	.L5
	ldr	r3, [r4, #24]
	add	r8, r4, #28
	cmp	r3, #0
	beq	.L46
.L6:
	mov	r3, #0
	ldr	r6, [r4, #16]
	str	r3, [sp, #12]
	cmp	r6, r3
	bne	.L8
	ldr	r9, .L54+8
	ldr	r10, .L54+12
	b	.L9
.L51:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L47
	ldr	r0, [sp, #12]
	ldr	r3, [r9]
	ldr	r1, [r0]
	cmp	r1, r3
	beq	.L48
	ldr	r3, [r10]
	cmp	r1, r3
	beq	.L49
	ldr	r3, .L54+16
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L50
.L15:
	bl	git_pkt_free
	ldr	r3, [r4, #16]
	str	r6, [sp, #12]
	cmp	r3, #0
	bne	.L8
.L9:
	mov	r2, r8
	mov	r1, #0
	add	r0, sp, #12
	bl	recv_pkt
	subs	fp, r0, #0
	bge	.L51
	ldr	r0, [sp, #12]
	bl	git_pkt_free
.L5:
	ldr	r0, [sp, #8]
	cmp	r0, #0
	beq	.L20
	ldr	r3, [r0, #8]
	blx	r3
.L20:
	cmp	r7, #0
	movne	r3, #0
	strne	r3, [r4, #8]
	strne	r3, [r4, #4]
.L1:
	ldr	r3, .L54
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L52
	mov	r0, fp
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L47:
	bl	git_error_clear
	ldr	r3, .L54+20
	ldr	fp, [r3]
.L13:
	ldr	r0, [sp, #12]
	bl	git_pkt_free
	cmp	fp, #0
	blt	.L5
	ldr	r3, [r4, #16]
	str	r6, [sp, #12]
	cmp	r3, #0
	beq	.L9
.L8:
	bl	git_error_clear
	ldr	r3, .L54+20
	ldr	fp, [r3]
	b	.L5
.L48:
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L15
	ldr	r2, .L54+24
	ldr	r2, [r2]
	cmp	r1, r2
	bgt	.L53
	ldr	r0, [r0, #4]
	ldr	r2, [r4, #12]
	blx	r3
	mov	fp, r0
	b	.L13
.L49:
	cmp	r1, #0
	beq	.L15
	ldr	r3, [sp, #8]
	mov	r2, r1
	ldr	fp, [r3]
	ldr	r1, [r0, #4]
	mov	r0, r3
	mov	r3, r5
	blx	fp
	mov	fp, r0
	b	.L13
.L46:
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L6
	mov	r3, r5
	mov	r2, r8
	mov	r0, r4
	ldr	r1, [sp, #8]
	bl	no_sideband
	mov	fp, r0
	b	.L5
.L45:
	mov	r1, r2
	bl	network_packetsize
	cmp	r0, #0
	beq	.L3
	mov	r1, #1
	add	r0, r4, #16
	bl	git_atomic_set
	b	.L3
.L50:
	bl	git__free
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L19
	ldr	r0, [sp, #28]
	ldr	r2, [sp, #20]
	ldr	r1, [r0]
	cmp	r1, r2
	ble	.L19
	ldr	r1, [sp, #24]
	blx	r3
	subs	fp, r0, #0
	bne	.L5
.L19:
	ldr	r0, [sp, #8]
	mov	r1, r5
	ldr	r3, [r0, #4]
	blx	r3
	mov	fp, r0
	b	.L5
.L53:
	ldr	r3, .L54+28
	ldr	r1, .L54+32
	ldr	r0, [r3]
	bl	git_error_set
	ldr	r3, .L54+36
	ldr	fp, [r3]
	b	.L5
.L52:
	bl	__stack_chk_fail
.L55:
	.align	2
.L54:
	.word	.LC1
	.word	network_packetsize
	.word	GIT_PKT_PROGRESS
	.word	GIT_PKT_DATA
	.word	GIT_PKT_FLUSH
	.word	GIT_EUSER
	.word	INT_MAX
	.word	GIT_ERROR_NET
	.word	.LC0
	.word	GIT_ERROR
	.size	git_smart__download_pack, .-git_smart__download_pack
	.comm	INT_MAX,4,4
	.comm	GIT_PKT_PROGRESS,4,4
	.comm	GIT_PKT_FLUSH,4,4
	.comm	GIT_PKT_DATA,4,4
	.comm	GIT_EUSER,4,4
	.comm	GIT_ERROR_NET,4,4
	.comm	GIT_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
