	.file	"73695.c"
	.intel_syntax noprefix
	.text
	.globl	readBuf
	.bss
	.align 32
	.type	readBuf, @object
	.size	readBuf, 512
readBuf:
	.zero	512
	.section	.rodata
.LC0:
	.string	"/dev/rpmsg_pru30"
.LC1:
	.string	"Failed to open %s\n"
	.align 8
.LC2:
	.string	"Opened %s, sending %d messages\n\n"
.LC3:
	.string	"hello PRU!"
	.align 8
.LC4:
	.string	"Message %d received from PRU:%s\n\n"
	.align 8
.LC5:
	.string	"Received %d messages, closing %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 0
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	jns	.L2
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L7
.L2:
	mov	edx, 10
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 10
	lea	rsi, .LC3[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	edi, 5
	call	delay
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 13
	lea	rsi, readBuf[rip]
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jle	.L5
	mov	eax, DWORD PTR -24[rbp]
	lea	rdx, readBuf[rip]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	add	DWORD PTR -24[rbp], 1
.L4:
	cmp	DWORD PTR -24[rbp], 9
	jle	.L6
	lea	rdx, .LC0[rip]
	mov	esi, 10
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.type	delay, @function
delay:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, eax, 100000
	mov	DWORD PTR -12[rbp], eax
	call	clock@PLT
	mov	QWORD PTR -8[rbp], rax
	nop
.L10:
	call	clock@PLT
	mov	edx, DWORD PTR -12[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	cmp	rax, rdx
	jl	.L10
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	delay, .-delay
	.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	"73695.c"
	.text
	.comm	readBuf,512,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/rpmsg_pru30\000"
	.align	2
.LC1:
	.ascii	"Failed to open %s\012\000"
	.align	2
.LC2:
	.ascii	"Opened %s, sending %d messages\012\012\000"
	.align	2
.LC3:
	.ascii	"hello PRU!\000"
	.align	2
.LC4:
	.ascii	"Message %d received from PRU:%s\012\012\000"
	.align	2
.LC5:
	.ascii	"Received %d messages, closing %s\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r1, #2
	ldr	r0, .L9+4
	bl	open
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L2
	ldr	r1, .L9+4
	ldr	r0, .L9+8
	bl	printf
	mvn	r3, #0
	b	.L7
.L2:
	mov	r2, #10
	ldr	r1, .L9+4
	ldr	r0, .L9+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L4
.L6:
	ldr	r3, [fp, #-16]
	mov	r2, #10
	ldr	r1, .L9+16
	mov	r0, r3
	bl	write
	str	r0, [fp, #-20]
	mov	r0, #5
	bl	delay
	ldr	r3, [fp, #-16]
	mov	r2, #13
	ldr	r1, .L9+20
	mov	r0, r3
	bl	read
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L5
	ldr	r2, .L9+20
	ldr	r1, [fp, #-24]
	ldr	r0, .L9+24
	bl	printf
.L5:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L4:
	ldr	r3, [fp, #-24]
	cmp	r3, #9
	ble	.L6
	ldr	r2, .L9+4
	mov	r1, #10
	ldr	r0, .L9+28
	bl	printf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	mov	r3, #0
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	readBuf
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	delay, %function
delay:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, .L13
	mul	r3, r2, r3
	str	r3, [fp, #-12]
	bl	clock
	str	r0, [fp, #-8]
	nop
.L12:
	bl	clock
	mov	r1, r0
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	cmp	r1, r3
	blt	.L12
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	100000
	.size	delay, .-delay
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
