	.file	"81977.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/var/run/spi_pipe"
	.section	.data.rel.local,"aw"
	.align 8
	.type	pipepath, @object
	.size	pipepath, 8
pipepath:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"/dev/spidev0.0"
	.section	.data.rel.local
	.align 8
	.type	device, @object
	.size	device, 8
device:
	.quad	.LC1
	.local	mode
	.comm	mode,1,1
	.data
	.type	bits, @object
	.size	bits, 1
bits:
	.byte	8
	.align 4
	.type	speed, @object
	.size	speed, 4
speed:
	.long	500000
	.local	delay
	.comm	delay,2,2
	.section	.rodata
.LC2:
	.string	"can't open device"
.LC3:
	.string	"can't set spi mode"
.LC4:
	.string	"can't get spi mode"
.LC5:
	.string	"can't set bits per word"
.LC6:
	.string	"can't get bits per word"
.LC7:
	.string	"can't set max speed hz"
.LC8:
	.string	"can't get max speed hz"
.LC9:
	.string	"spi mode: %d\n"
.LC10:
	.string	"bits per word: %d\n"
.LC11:
	.string	"max speed: %d Hz (%d KHz)\n"
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR device[rip]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L2
	lea	rdi, .LC2[rip]
	call	exit_with
.L2:
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, mode[rip]
	mov	esi, 1073834753
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L3
	lea	rdi, .LC3[rip]
	call	exit_with
.L3:
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, mode[rip]
	mov	esi, 2147576577
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L4
	lea	rdi, .LC4[rip]
	call	exit_with
.L4:
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, bits[rip]
	mov	esi, 1073834755
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L5
	lea	rdi, .LC5[rip]
	call	exit_with
.L5:
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, bits[rip]
	mov	esi, 2147576579
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L6
	lea	rdi, .LC6[rip]
	call	exit_with
.L6:
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, speed[rip]
	mov	esi, 1074031364
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L7
	lea	rdi, .LC7[rip]
	call	exit_with
.L7:
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, speed[rip]
	mov	esi, 2147773188
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L8
	lea	rdi, .LC8[rip]
	call	exit_with
.L8:
	movzx	eax, BYTE PTR mode[rip]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR bits[rip]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR speed[rip]
	mov	eax, eax
	imul	rax, rax, 274877907
	shr	rax, 32
	mov	edx, eax
	shr	edx, 6
	mov	eax, DWORD PTR speed[rip]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	send_message
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	receive_message
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.type	exit_with, @function
exit_with:
.LFB7:
	.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	exit_with, .-exit_with
	.section	.rodata
	.align 8
.LC12:
	.string	"Pipe at %s already exists, go on\n"
	.text
	.type	create_pipe, @function
create_pipe:
.LFB8:
	.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 -8[rbp], 438
	mov	rax, QWORD PTR pipepath[rip]
	mov	edx, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	mkfifo@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 17
	jne	.L13
	mov	rdx, QWORD PTR pipepath[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L13:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	create_pipe, .-create_pipe
	.section	.rodata
.LC13:
	.string	"can't send spi message"
	.text
	.type	send_message, @function
send_message:
.LFB9:
	.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	DWORD PTR -84[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, -1578157476020084310
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 1
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	lea	rax, -24[rbp]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, -16[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -48[rbp], 8
	mov	eax, DWORD PTR speed[rip]
	mov	DWORD PTR -44[rbp], eax
	movzx	eax, WORD PTR delay[rip]
	mov	WORD PTR -40[rbp], ax
	movzx	eax, BYTE PTR bits[rip]
	mov	BYTE PTR -38[rbp], al
	lea	rdx, -64[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 1075866368
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	jg	.L17
	lea	rdi, .LC13[rip]
	call	exit_with
.L17:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	send_message, .-send_message
	.section	.rodata
.LC14:
	.string	"w"
.LC15:
	.string	"error opening pipe"
.LC16:
	.string	"%.2X "
	.text
	.type	receive_message, @function
receive_message:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -16[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
	lea	rax, -16[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -32[rbp], 8
	mov	eax, DWORD PTR speed[rip]
	mov	DWORD PTR -28[rbp], eax
	movzx	eax, WORD PTR delay[rip]
	mov	WORD PTR -24[rbp], ax
	movzx	eax, BYTE PTR bits[rip]
	mov	BYTE PTR -22[rbp], al
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, 1075866368
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	jg	.L19
	lea	rdi, .LC13[rip]
	call	exit_with
.L19:
	mov	eax, 0
	call	create_pipe
	mov	rax, QWORD PTR pipepath[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L20
	lea	rdi, .LC15[rip]
	call	exit_with
.L20:
	mov	DWORD PTR -64[rbp], 0
	jmp	.L21
.L22:
	mov	edi, 0
	call	sleep@PLT
	mov	eax, DWORD PTR -64[rbp]
	movzx	eax, BYTE PTR -16[rbp+rax]
	movzx	edx, al
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -64[rbp]
	movzx	eax, BYTE PTR -16[rbp+rax]
	movzx	edx, al
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -64[rbp], 1
.L21:
	cmp	DWORD PTR -64[rbp], 7
	jbe	.L22
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	receive_message, .-receive_message
	.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	"81977.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/var/run/spi_pipe\000"
	.data
	.align	2
	.type	pipepath, %object
	.size	pipepath, 4
pipepath:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/dev/spidev0.0\000"
	.data
	.align	2
	.type	device, %object
	.size	device, 4
device:
	.word	.LC1
	.local	mode
	.comm	mode,1,1
	.type	bits, %object
	.size	bits, 1
bits:
	.byte	8
	.align	2
	.type	speed, %object
	.size	speed, 4
speed:
	.word	500000
	.local	delay
	.comm	delay,2,2
	.section	.rodata
	.align	2
.LC2:
	.ascii	"can't open device\000"
	.align	2
.LC3:
	.ascii	"can't set spi mode\000"
	.align	2
.LC4:
	.ascii	"can't get spi mode\000"
	.align	2
.LC5:
	.ascii	"can't set bits per word\000"
	.align	2
.LC6:
	.ascii	"can't get bits per word\000"
	.align	2
.LC7:
	.ascii	"can't set max speed hz\000"
	.align	2
.LC8:
	.ascii	"can't get max speed hz\000"
	.align	2
.LC9:
	.ascii	"spi mode: %d\012\000"
	.align	2
.LC10:
	.ascii	"bits per word: %d\012\000"
	.align	2
.LC11:
	.ascii	"max speed: %d Hz (%d KHz)\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L10+4
	bl	exit_with
.L2:
	ldr	r2, .L10+8
	ldr	r1, .L10+12
	ldr	r0, [fp, #-8]
	bl	ioctl
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L10+16
	bl	exit_with
.L3:
	ldr	r2, .L10+8
	ldr	r1, .L10+20
	ldr	r0, [fp, #-8]
	bl	ioctl
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L10+24
	bl	exit_with
.L4:
	ldr	r2, .L10+28
	ldr	r1, .L10+32
	ldr	r0, [fp, #-8]
	bl	ioctl
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L10+36
	bl	exit_with
.L5:
	ldr	r2, .L10+28
	ldr	r1, .L10+40
	ldr	r0, [fp, #-8]
	bl	ioctl
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L10+44
	bl	exit_with
.L6:
	ldr	r2, .L10+48
	ldr	r1, .L10+52
	ldr	r0, [fp, #-8]
	bl	ioctl
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L10+56
	bl	exit_with
.L7:
	ldr	r2, .L10+48
	ldr	r1, .L10+60
	ldr	r0, [fp, #-8]
	bl	ioctl
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L10+64
	bl	exit_with
.L8:
	ldr	r3, .L10+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L10+68
	bl	printf
	ldr	r3, .L10+28
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L10+72
	bl	printf
	ldr	r3, .L10+48
	ldr	r1, [r3]
	ldr	r3, .L10+48
	ldr	r3, [r3]
	ldr	r2, .L10+76
	umull	r0, r3, r2, r3
	lsr	r3, r3, #6
	mov	r2, r3
	ldr	r0, .L10+80
	bl	printf
	ldr	r0, [fp, #-8]
	bl	send_message
	ldr	r0, [fp, #-8]
	bl	receive_message
	ldr	r0, [fp, #-8]
	bl	close
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	device
	.word	.LC2
	.word	mode
	.word	1073834753
	.word	.LC3
	.word	-2147390719
	.word	.LC4
	.word	bits
	.word	1073834755
	.word	.LC5
	.word	-2147390717
	.word	.LC6
	.word	speed
	.word	1074031364
	.word	.LC7
	.word	-2147194108
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	274877907
	.word	.LC11
	.size	main, .-main
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	exit_with, %function
exit_with:
	@ 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	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	exit_with, .-exit_with
	.section	.rodata
	.align	2
.LC12:
	.ascii	"Pipe at %s already exists, go on\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_pipe, %function
create_pipe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L16
	str	r3, [fp, #-12]
	ldr	r3, .L16+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	mkfifo
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #17
	bne	.L15
	ldr	r3, .L16+8
	ldr	r3, [r3]
	ldr	r2, .L16+4
	ldr	r2, [r2]
	ldr	r1, .L16+12
	mov	r0, r3
	bl	fprintf
.L15:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	438
	.word	pipepath
	.word	stderr
	.word	.LC12
	.size	create_pipe, .-create_pipe
	.section	.rodata
	.align	2
.LC15:
	.ascii	"can't send spi message\000"
	.align	2
.LC13:
	.ascii	"\252!2\022#B\031\352"
	.align	2
.LC14:
	.ascii	"\001\000\000\000\000\000\000\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_message, %function
send_message:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L22+4
	sub	r3, fp, #24
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r2, .L22+8
	sub	r3, fp, #16
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #60
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #24
	mov	r2, r3
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r3, fp, #16
	mov	r2, r3
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r3, #8
	str	r3, [fp, #-44]
	ldr	r3, .L22+12
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	ldr	r3, .L22+16
	ldrh	r3, [r3]
	strh	r3, [fp, #-36]	@ movhi
	ldr	r3, .L22+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [fp, #-34]
	sub	r3, fp, #60
	mov	r2, r3
	ldr	r1, .L22+24
	ldr	r0, [fp, #-72]
	bl	ioctl
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bgt	.L21
	ldr	r0, .L22+28
	bl	exit_with
.L21:
	nop
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC16
	.word	.LC13
	.word	.LC14
	.word	speed
	.word	delay
	.word	bits
	.word	1075866368
	.word	.LC15
	.size	send_message, .-send_message
	.section	.rodata
	.align	2
.LC18:
	.ascii	"w\000"
	.align	2
.LC19:
	.ascii	"error opening pipe\000"
	.align	2
.LC20:
	.ascii	"%.2X \000"
	.align	2
.LC17:
	.ascii	"\000\000\000\000\000\000\000\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	receive_message, %function
receive_message:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L30+4
	sub	r3, fp, #16
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #52
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #16
	mov	r2, r3
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r3, #8
	str	r3, [fp, #-36]
	ldr	r3, .L30+8
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	ldr	r3, .L30+12
	ldrh	r3, [r3]
	strh	r3, [fp, #-28]	@ movhi
	ldr	r3, .L30+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [fp, #-26]
	sub	r3, fp, #52
	mov	r2, r3
	ldr	r1, .L30+20
	ldr	r0, [fp, #-72]
	bl	ioctl
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bgt	.L25
	ldr	r0, .L30+24
	bl	exit_with
.L25:
	bl	create_pipe
	ldr	r3, .L30+28
	ldr	r3, [r3]
	ldr	r1, .L30+32
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L26
	ldr	r0, .L30+36
	bl	exit_with
.L26:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L27
.L28:
	mov	r0, #0
	bl	sleep
	sub	r2, fp, #16
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L30+40
	ldr	r0, [fp, #-56]
	bl	fprintf
	ldr	r3, .L30+44
	ldr	r0, [r3]
	sub	r2, fp, #16
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L30+40
	bl	fprintf
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L27:
	ldr	r3, [fp, #-64]
	cmp	r3, #7
	bls	.L28
	ldr	r0, [fp, #-56]
	bl	fclose
	nop
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC21
	.word	.LC17
	.word	speed
	.word	delay
	.word	bits
	.word	1075866368
	.word	.LC15
	.word	pipepath
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	stdout
	.size	receive_message, .-receive_message
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
