	.file	"extr_git.c_git_proto_stream_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	git_proto_stream_read, @function
git_proto_stream_read:
.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, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 4[rdi]
	mov	QWORD PTR [rcx], 0
	test	eax, eax
	jne	.L5
	call	send_command@PLT
	test	eax, eax
	js	.L1
.L5:
	mov	edi, DWORD PTR [rbx]
	mov	r14, rsp
	mov	rcx, r13
	mov	rdx, r12
	mov	rsi, r14
	call	gitno_buffer_setup_fromstream@PLT
	mov	rdi, r14
	call	gitno_recv@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 0[rbp], rax
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.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
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	git_proto_stream_read, .-git_proto_stream_read
	.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_git.c_git_proto_stream_read.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	git_proto_stream_read, %function
git_proto_stream_read:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r3
	mov	r3, #0
	ldr	ip, [r0, #4]
	mov	r7, r2
	ldr	r2, .L11
	sub	sp, sp, #12
	cmp	ip, r3
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	mov	r4, r0
	mov	r6, r1
	str	r3, [r5]
	bne	.L5
	bl	send_command
	cmp	r0, #0
	blt	.L1
.L5:
	mov	r3, r7
	mov	r2, r6
	mov	r1, sp
	ldr	r0, [r4]
	bl	gitno_buffer_setup_fromstream
	mov	r0, sp
	bl	gitno_recv
	cmp	r0, #0
	movge	r0, #0
	ldrge	r3, [sp]
	strge	r3, [r5]
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	git_proto_stream_read, .-git_proto_stream_read
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
