	.file	"215509.c"
	.intel_syntax noprefix
	.text
	.globl	readuntil
	.type	readuntil, @function
readuntil:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	eax, ecx
	mov	BYTE PTR -40[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	jmp	.L2
.L6:
	lea	rdx, -24[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	edi, eax
	mov	eax, 0
	call	receive@PLT
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -40[rbp], al
	je	.L11
	add	QWORD PTR -48[rbp], 1
.L2:
	mov	rax, QWORD PTR -48[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jne	.L6
	jmp	.L5
.L11:
	nop
.L5:
	mov	rax, QWORD PTR -48[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	je	.L7
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -40[rbp], al
	je	.L8
.L7:
	mov	eax, 1
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 0
	mov	eax, 0
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	readuntil, .-readuntil
	.globl	writeall
	.type	writeall, @function
writeall:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	jmp	.L13
.L16:
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	lea	rcx, -32[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	mov	eax, 0
	call	transmit@PLT
	test	eax, eax
	jne	.L15
	mov	rax, QWORD PTR -32[rbp]
	test	rax, rax
	je	.L15
	mov	rax, QWORD PTR -32[rbp]
	add	QWORD PTR -24[rbp], rax
.L13:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jne	.L16
.L15:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR -48[rbp]
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	writeall, .-writeall
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"215509.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readuntil
	.syntax unified
	.arm
	.fpu softvfp
	.type	readuntil, %function
readuntil:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	strb	r3, [fp, #-33]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	b	.L2
.L6:
	sub	r3, fp, #16
	mov	r2, #1
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	receive
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-33]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L11
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L2:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L6
	b	.L5
.L11:
	nop
.L5:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	beq	.L7
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-33]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L8
.L7:
	mov	r3, #1
	b	.L9
.L8:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
.L9:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.size	readuntil, .-readuntil
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	writeall
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeall, %function
writeall:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	b	.L15
.L18:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r2, r2, r3
	sub	r3, fp, #20
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	transmit
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L15:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L18
.L17:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC1
	.size	writeall, .-writeall
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
