	.file	"1106338.c"
	.intel_syntax noprefix
	.text
	.globl	env
	.bss
	.align 32
	.type	env, @object
	.size	env, 200
env:
	.zero	200
	.globl	fd
	.align 4
	.type	fd, @object
	.size	fd, 4
fd:
	.zero	4
	.text
	.globl	call_exit
	.type	call_exit, @function
call_exit:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	mov	eax, 0
	call	close_dev@PLT
	mov	esi, 1
	lea	rdi, env[rip]
	call	longjmp@PLT
	.cfi_endproc
.LFE0:
	.size	call_exit, .-call_exit
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR dev0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	serial_config@PLT
	mov	DWORD PTR fd[rip], eax
	lea	rdi, env[rip]
	call	_setjmp@PLT
	endbr64
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], 0
	jne	.L4
.L5:
	lea	rax, -80[rbp]
	mov	edx, 64
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -80[rbp+rax], 0
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L5
.L4:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.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	"1106338.c"
	.text
	.comm	env,392,8
	.comm	fd,4,4
	.align	2
	.global	call_exit
	.syntax unified
	.arm
	.fpu softvfp
	.type	call_exit, %function
call_exit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r0, r3
	bl	close_dev
	mov	r1, #1
	ldr	r0, .L2+4
	bl	longjmp
.L3:
	.align	2
.L2:
	.word	fd
	.word	env
	.size	call_exit, .-call_exit
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-72]
	sub	r3, fp, #68
	mov	r2, #60
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L10+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	serial_config
	mov	r3, r0
	ldr	r2, .L10+8
	str	r3, [r2]
	ldr	r0, .L10+12
	bl	_setjmp
	mov	r3, r0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L6
.L7:
	sub	r3, fp, #72
	mov	r2, #64
	mov	r1, r3
	mov	r0, #0
	bl	read
	mov	r3, r0
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-68]
	sub	r3, fp, #72
	mov	r0, r3
	bl	puts
	b	.L7
.L6:
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	dev0
	.word	fd
	.word	env
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
