	.file	"extr_crisv10.c_add_char_and_flag.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	add_char_and_flag, @function
add_char_and_flag:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	QWORD PTR 16[rdi], 0
	mov	rbx, rdi
	je	.L2
	mov	edi, 4
	call	alloc_recv_buffer@PLT
	mov	rsi, rax
	xor	eax, eax
	test	rsi, rsi
	je	.L1
	mov	rax, QWORD PTR 8[rsi]
	mov	DWORD PTR [rsi], 1
	mov	rdi, rbx
	mov	BYTE PTR 4[rsi], r12b
	mov	BYTE PTR [rax], bpl
	call	append_recv_buffer@PLT
	add	DWORD PTR [rbx], 1
	mov	eax, 1
.L1:
	pop	rbx
	.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
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rdi]
	movzx	edx, dl
	movzx	esi, sil
	call	tty_insert_flip_char@PLT
	add	DWORD PTR [rbx], 1
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	add_char_and_flag, .-add_char_and_flag
	.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_crisv10.c_add_char_and_flag.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_char_and_flag, %function
add_char_and_flag:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	mov	r4, r0
	beq	.L2
	mov	r0, #4
	mov	r5, r1
	mov	r6, r2
	bl	alloc_recv_buffer
	subs	r1, r0, #0
	beq	.L4
	mov	r7, #1
	ldr	r3, [r1, #8]
	strb	r6, [r1, #4]
	str	r7, [r1]
	mov	r0, r4
	strb	r5, [r3]
	bl	append_recv_buffer
	ldr	r3, [r4]
	mov	r0, r7
	add	r3, r3, r7
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r0, [r0, #4]
	bl	tty_insert_flip_char
	mov	r0, #1
	ldr	r3, [r4]
	add	r3, r3, r0
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, r1
	pop	{r4, r5, r6, r7, r8, pc}
	.size	add_char_and_flag, .-add_char_and_flag
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
