	.file	"608852.c"
	.intel_syntax noprefix
	.text
	.local	receive
	.comm	receive,256,32
	.section	.rodata
	.align 8
.LC0:
	.string	"Starting device test code example..."
.LC1:
	.string	"/proc/useproc"
.LC2:
	.string	"Failed to open the device..."
	.align 8
.LC3:
	.string	"Type in a short string to send to the kernel module:"
.LC4:
	.string	"%[^\n]%*c"
	.align 8
.LC5:
	.string	"Writing message to the device [%s].\n"
	.align 8
.LC6:
	.string	"Failed to write the message to the device."
	.align 8
.LC7:
	.string	"Press ENTER to read back from the device..."
.LC8:
	.string	"Reading from the device..."
	.align 8
.LC9:
	.string	"Failed to read the message from the device."
	.align 8
.LC10:
	.string	"The received message is: [%s]\n"
.LC11:
	.string	"End of the program"
	.text
	.globl	main
	.type	main, @function
main:
.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, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	esi, 2
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -280[rbp], eax
	cmp	DWORD PTR -280[rbp], 0
	jns	.L2
	lea	rdi, .LC2[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L6
.L2:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -280[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], 0
	jns	.L4
	lea	rdi, .LC6[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L6
.L4:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	call	getchar@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -280[rbp]
	mov	edx, 256
	lea	rsi, receive[rip]
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], 0
	jns	.L5
	lea	rdi, .LC9[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L6
.L5:
	lea	rsi, receive[rip]
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, 0
.L6:
	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
.LFE6:
	.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	"608852.c"
	.text
	.local	receive
	.comm	receive,256,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Starting device test code example...\000"
	.align	2
.LC1:
	.ascii	"/proc/useproc\000"
	.align	2
.LC2:
	.ascii	"Failed to open the device...\000"
	.align	2
.LC3:
	.ascii	"Type in a short string to send to the kernel module"
	.ascii	":\000"
	.align	2
.LC4:
	.ascii	"%[^\012]%*c\000"
	.align	2
.LC5:
	.ascii	"Writing message to the device [%s].\012\000"
	.align	2
.LC6:
	.ascii	"Failed to write the message to the device.\000"
	.align	2
.LC7:
	.ascii	"Press ENTER to read back from the device...\000"
	.align	2
.LC8:
	.ascii	"Reading from the device...\000"
	.align	2
.LC9:
	.ascii	"Failed to read the message from the device.\000"
	.align	2
.LC10:
	.ascii	"The received message is: [%s]\012\000"
	.align	2
.LC11:
	.ascii	"End of the program\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L8+4
	bl	puts
	mov	r1, #2
	ldr	r0, .L8+8
	bl	open
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L8+12
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L6
.L2:
	ldr	r0, .L8+16
	bl	puts
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L8+20
	bl	__isoc99_scanf
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L8+24
	bl	printf
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-272]
	bl	write
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L8+28
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L6
.L4:
	ldr	r0, .L8+32
	bl	puts
	bl	getchar
	ldr	r0, .L8+36
	bl	puts
	mov	r2, #256
	ldr	r1, .L8+40
	ldr	r0, [fp, #-272]
	bl	read
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L8+44
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L6
.L5:
	ldr	r1, .L8+40
	ldr	r0, .L8+48
	bl	printf
	ldr	r0, .L8+52
	bl	puts
	mov	r3, #0
.L6:
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	receive
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
