	.file	"65112.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/dev/rfcomm0"
	.align 8
.LC1:
	.string	"bluetooth slave master communication not yet established\n"
.LC2:
	.string	"/proc/sensor"
	.align 8
.LC3:
	.string	"sensor communication not yet established\n"
.LC4:
	.string	"/proc/sensor2"
	.align 8
.LC5:
	.string	"sensor2 communication not yet established\n"
.LC6:
	.string	"i am danger"
	.align 8
.LC7:
	.string	"madplay /home/root/mp3/Iamthedanger.mp3 -r 44100 --output=wave:- | aplay -D jbl&"
.LC8:
	.string	"killall madplay"
.LC9:
	.string	"danger ahead"
	.align 8
.LC10:
	.string	"madplay /home/root/mp3/DangerAhead.mp3 -r 44100 --output=wave:- | aplay -D jbl&"
.LC11:
	.string	"danger behind"
	.align 8
.LC12:
	.string	"madplay /home/root/mp3/DangerBehind.mp3 -r 44100 --output=wave:- | aplay -D jbl&"
.LC13:
	.string	"danger step"
	.align 8
.LC14:
	.string	"madplay /home/root/mp3/DangerStep.mp3 -r 44100 --output=wave:- | aplay -D jbl&"
.LC15:
	.string	"warning ahead"
	.align 8
.LC16:
	.string	"madplay /home/root/mp3/Warningahead.mp3 -r 44100 --output=wave:- | aplay -D jbl&"
.LC17:
	.string	"warning behind"
	.align 8
.LC18:
	.string	"madplay /home/root/mp3/Warningbehind.mp3 -r 44100 --output=wave:- | aplay -D jbl&"
.LC19:
	.string	"warning step"
	.align 8
.LC20:
	.string	"madplay /home/root/mp3/Warningstep.mp3 -r 44100 --output=wave:- | aplay -D jbl&"
.LC21:
	.string	"safe"
	.align 8
.LC22:
	.string	"madplay /home/root/mp3/Safe.mp3 -r 44100 --output=wave:- | aplay -D jbl&"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], 0
.L15:
	mov	esi, 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	jns	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 57
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L16
.L2:
	mov	esi, 0
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jns	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L16
.L4:
	mov	esi, 0
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jns	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 42
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L16
.L5:
	lea	rcx, -11[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rcx, -10[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rcx, -9[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	movzx	eax, BYTE PTR -10[rbp]
	cmp	al, 50
	jne	.L6
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 50
	jne	.L6
	movzx	eax, BYTE PTR -11[rbp]
	cmp	al, 50
	jne	.L6
	cmp	DWORD PTR -28[rbp], 1
	je	.L8
	mov	DWORD PTR -28[rbp], 1
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	system@PLT
	mov	edi, 1500000
	call	usleep@PLT
	lea	rdi, .LC8[rip]
	call	system@PLT
	jmp	.L8
.L6:
	movzx	eax, BYTE PTR -10[rbp]
	cmp	al, 50
	jne	.L9
	cmp	DWORD PTR -28[rbp], 2
	je	.L8
	mov	DWORD PTR -28[rbp], 2
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	system@PLT
	mov	edi, 1500000
	call	usleep@PLT
	lea	rdi, .LC8[rip]
	call	system@PLT
	jmp	.L8
.L9:
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 50
	jne	.L10
	cmp	DWORD PTR -28[rbp], 3
	je	.L8
	mov	DWORD PTR -28[rbp], 3
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	system@PLT
	mov	edi, 1500000
	call	usleep@PLT
	lea	rdi, .LC8[rip]
	call	system@PLT
	jmp	.L8
.L10:
	movzx	eax, BYTE PTR -11[rbp]
	cmp	al, 50
	jne	.L11
	cmp	DWORD PTR -28[rbp], 4
	je	.L8
	mov	DWORD PTR -28[rbp], 4
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	call	system@PLT
	mov	edi, 1500000
	call	usleep@PLT
	lea	rdi, .LC8[rip]
	call	system@PLT
	jmp	.L8
.L11:
	movzx	eax, BYTE PTR -10[rbp]
	cmp	al, 49
	jne	.L12
	cmp	DWORD PTR -28[rbp], 5
	je	.L8
	mov	DWORD PTR -28[rbp], 5
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC16[rip]
	call	system@PLT
	mov	edi, 1500000
	call	usleep@PLT
	lea	rdi, .LC8[rip]
	call	system@PLT
	jmp	.L8
.L12:
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 49
	jne	.L13
	cmp	DWORD PTR -28[rbp], 6
	je	.L8
	mov	DWORD PTR -28[rbp], 6
	lea	rdi, .LC17[rip]
	call	puts@PLT
	lea	rdi, .LC18[rip]
	call	system@PLT
	mov	edi, 1500000
	call	usleep@PLT
	lea	rdi, .LC8[rip]
	call	system@PLT
	jmp	.L8
.L13:
	movzx	eax, BYTE PTR -11[rbp]
	cmp	al, 49
	jne	.L14
	cmp	DWORD PTR -28[rbp], 7
	je	.L8
	mov	DWORD PTR -28[rbp], 7
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rdi, .LC20[rip]
	call	system@PLT
	mov	edi, 1500000
	call	usleep@PLT
	lea	rdi, .LC8[rip]
	call	system@PLT
	jmp	.L8
.L14:
	movzx	eax, BYTE PTR -11[rbp]
	cmp	al, 48
	jne	.L8
	movzx	eax, BYTE PTR -10[rbp]
	cmp	al, 48
	jne	.L8
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 48
	jne	.L8
	cmp	DWORD PTR -28[rbp], 8
	je	.L8
	mov	DWORD PTR -28[rbp], 8
	lea	rdi, .LC21[rip]
	call	puts@PLT
	lea	rdi, .LC22[rip]
	call	system@PLT
	mov	edi, 1500000
	call	usleep@PLT
	lea	rdi, .LC8[rip]
	call	system@PLT
.L8:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L15
.L16:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	"65112.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/rfcomm0\000"
	.align	2
.LC1:
	.ascii	"bluetooth slave master communication not yet establ"
	.ascii	"ished\012\000"
	.align	2
.LC2:
	.ascii	"/proc/sensor\000"
	.align	2
.LC3:
	.ascii	"sensor communication not yet established\012\000"
	.align	2
.LC4:
	.ascii	"/proc/sensor2\000"
	.align	2
.LC5:
	.ascii	"sensor2 communication not yet established\012\000"
	.align	2
.LC6:
	.ascii	"i am danger\000"
	.align	2
.LC7:
	.ascii	"madplay /home/root/mp3/Iamthedanger.mp3 -r 44100 --"
	.ascii	"output=wave:- | aplay -D jbl&\000"
	.align	2
.LC8:
	.ascii	"killall madplay\000"
	.align	2
.LC9:
	.ascii	"danger ahead\000"
	.align	2
.LC10:
	.ascii	"madplay /home/root/mp3/DangerAhead.mp3 -r 44100 --o"
	.ascii	"utput=wave:- | aplay -D jbl&\000"
	.align	2
.LC11:
	.ascii	"danger behind\000"
	.align	2
.LC12:
	.ascii	"madplay /home/root/mp3/DangerBehind.mp3 -r 44100 --"
	.ascii	"output=wave:- | aplay -D jbl&\000"
	.align	2
.LC13:
	.ascii	"danger step\000"
	.align	2
.LC14:
	.ascii	"madplay /home/root/mp3/DangerStep.mp3 -r 44100 --ou"
	.ascii	"tput=wave:- | aplay -D jbl&\000"
	.align	2
.LC15:
	.ascii	"warning ahead\000"
	.align	2
.LC16:
	.ascii	"madplay /home/root/mp3/Warningahead.mp3 -r 44100 --"
	.ascii	"output=wave:- | aplay -D jbl&\000"
	.align	2
.LC17:
	.ascii	"warning behind\000"
	.align	2
.LC18:
	.ascii	"madplay /home/root/mp3/Warningbehind.mp3 -r 44100 -"
	.ascii	"-output=wave:- | aplay -D jbl&\000"
	.align	2
.LC19:
	.ascii	"warning step\000"
	.align	2
.LC20:
	.ascii	"madplay /home/root/mp3/Warningstep.mp3 -r 44100 --o"
	.ascii	"utput=wave:- | aplay -D jbl&\000"
	.align	2
.LC21:
	.ascii	"safe\000"
	.align	2
.LC22:
	.ascii	"madplay /home/root/mp3/Safe.mp3 -r 44100 --output=w"
	.ascii	"ave:- | aplay -D jbl&\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-36]
.L15:
	mov	r1, #0
	ldr	r0, .L18+4
	bl	open
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L2
	ldr	r3, .L18+8
	ldr	r3, [r3]
	mov	r2, #57
	mov	r1, #1
	ldr	r0, .L18+12
	bl	fwrite
	mov	r3, #1
	b	.L16
.L2:
	mov	r1, #0
	ldr	r0, .L18+16
	bl	open
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L4
	ldr	r3, .L18+8
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L18+20
	bl	fwrite
	mov	r3, #1
	b	.L16
.L4:
	mov	r1, #0
	ldr	r0, .L18+24
	bl	open
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L5
	ldr	r3, .L18+8
	ldr	r3, [r3]
	mov	r2, #42
	mov	r1, #1
	ldr	r0, .L18+28
	bl	fwrite
	mov	r3, #1
	b	.L16
.L5:
	sub	r3, fp, #20
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	read
	sub	r3, fp, #16
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	read
	sub	r3, fp, #12
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	read
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #50
	bne	.L6
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #50
	bne	.L6
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #50
	bne	.L6
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	beq	.L8
	mov	r3, #1
	str	r3, [fp, #-36]
	ldr	r0, .L18+32
	bl	puts
	ldr	r0, .L18+36
	bl	system
	ldr	r0, .L18+40
	bl	usleep
	ldr	r0, .L18+44
	bl	system
	b	.L8
.L6:
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #50
	bne	.L9
	ldr	r3, [fp, #-36]
	cmp	r3, #2
	beq	.L8
	mov	r3, #2
	str	r3, [fp, #-36]
	ldr	r0, .L18+48
	bl	puts
	ldr	r0, .L18+52
	bl	system
	ldr	r0, .L18+40
	bl	usleep
	ldr	r0, .L18+44
	bl	system
	b	.L8
.L9:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #50
	bne	.L10
	ldr	r3, [fp, #-36]
	cmp	r3, #3
	beq	.L8
	mov	r3, #3
	str	r3, [fp, #-36]
	ldr	r0, .L18+56
	bl	puts
	ldr	r0, .L18+60
	bl	system
	ldr	r0, .L18+40
	bl	usleep
	ldr	r0, .L18+44
	bl	system
	b	.L8
.L10:
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #50
	bne	.L11
	ldr	r3, [fp, #-36]
	cmp	r3, #4
	beq	.L8
	mov	r3, #4
	str	r3, [fp, #-36]
	ldr	r0, .L18+64
	bl	puts
	ldr	r0, .L18+68
	bl	system
	ldr	r0, .L18+40
	bl	usleep
	ldr	r0, .L18+44
	bl	system
	b	.L8
.L11:
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L12
	ldr	r3, [fp, #-36]
	cmp	r3, #5
	beq	.L8
	mov	r3, #5
	str	r3, [fp, #-36]
	ldr	r0, .L18+72
	bl	puts
	ldr	r0, .L18+76
	bl	system
	ldr	r0, .L18+40
	bl	usleep
	ldr	r0, .L18+44
	bl	system
	b	.L8
.L12:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L13
	ldr	r3, [fp, #-36]
	cmp	r3, #6
	beq	.L8
	mov	r3, #6
	str	r3, [fp, #-36]
	ldr	r0, .L18+80
	bl	puts
	ldr	r0, .L18+84
	bl	system
	ldr	r0, .L18+40
	bl	usleep
	ldr	r0, .L18+44
	bl	system
	b	.L8
.L13:
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L14
	ldr	r3, [fp, #-36]
	cmp	r3, #7
	beq	.L8
	mov	r3, #7
	str	r3, [fp, #-36]
	ldr	r0, .L18+88
	bl	puts
	ldr	r0, .L18+92
	bl	system
	ldr	r0, .L18+40
	bl	usleep
	ldr	r0, .L18+44
	bl	system
	b	.L8
.L14:
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L8
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L8
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L8
	ldr	r3, [fp, #-36]
	cmp	r3, #8
	beq	.L8
	mov	r3, #8
	str	r3, [fp, #-36]
	ldr	r0, .L18+96
	bl	puts
	ldr	r0, .L18+100
	bl	system
	ldr	r0, .L18+40
	bl	usleep
	ldr	r0, .L18+44
	bl	system
.L8:
	ldr	r0, [fp, #-32]
	bl	close
	ldr	r0, [fp, #-28]
	bl	close
	ldr	r0, [fp, #-24]
	bl	close
	b	.L15
.L16:
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC23
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	1500000
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
