	.file	"extr_234.c_xrecieve.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"read"
	.text
	.p2align 4
	.globl	xrecieve
	.type	xrecieve, @function
xrecieve:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movsx	r12, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	add	r12, rsi
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	rsi, r12
	jnb	.L2
	lea	r13, .LC0[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	al, 13
	setne	al
	movzx	eax, al
	add	rbx, rax
	cmp	r12, rbx
	jbe	.L2
.L7:
	mov	edx, 1
	mov	rsi, rbx
	mov	edi, ebp
	call	read@PLT
	cmp	eax, 1
	je	.L3
	mov	rdi, r13
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L3:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 10
	jne	.L4
	mov	BYTE PTR [rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	r12, -1[rbx]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	cmp	BYTE PTR -1[rbx], 10
	je	.L19
.L8:
	mov	edx, 1
	mov	rsi, r12
	mov	edi, ebp
	call	read@PLT
	cmp	eax, 1
	je	.L9
	lea	rdi, .LC0[rip]
	call	perror@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edi, -1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	exit@PLT
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	BYTE PTR -1[rbx], 0
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	xrecieve, .-xrecieve
	.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_234.c_xrecieve.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"read\000"
	.text
	.align	2
	.global	xrecieve
	.syntax unified
	.arm
	.fpu softvfp
	.type	xrecieve, %function
xrecieve:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	add	r6, r1, r2
	cmp	r1, r6
	mov	r4, r1
	mov	r5, r0
	bcs	.L2
	ldr	r7, .L21
	b	.L7
.L4:
	cmp	r3, #13
	addne	r4, r4, #1
	cmp	r6, r4
	bls	.L2
.L7:
	mov	r2, #1
	mov	r1, r4
	mov	r0, r5
	bl	read
	cmp	r0, #1
	beq	.L3
	mov	r0, r7
	bl	perror
	mvn	r0, #0
	bl	exit
.L3:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L4
	mov	r3, #0
	strb	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	sub	r6, r4, #1
	b	.L8
.L9:
	ldrb	r3, [r4, #-1]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L20
.L8:
	mov	r2, #1
	mov	r1, r6
	mov	r0, r5
	bl	read
	cmp	r0, #1
	beq	.L9
	ldr	r0, .L21
	bl	perror
	pop	{r4, r5, r6, r7, r8, lr}
	mvn	r0, #0
	b	exit
.L20:
	mov	r3, #0
	strb	r3, [r4, #-1]
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	.align	2
.L21:
	.word	.LC0
	.size	xrecieve, .-xrecieve
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
