	.file	"754390.c"
	.intel_syntax noprefix
	.text
	.globl	data_out
	.data
	.align 8
	.type	data_out, @object
	.size	data_out, 8
data_out:
	.string	"\252\001\200\002\001"
	.string	""
	.string	""
	.globl	data_in
	.bss
	.align 8
	.type	data_in, @object
	.size	data_in, 8
data_in:
	.zero	8
	.globl	byte_in
	.type	byte_in, @object
	.size	byte_in, 1
byte_in:
	.zero	1
	.globl	crc
	.type	crc, @object
	.size	crc, 1
crc:
	.zero	1
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	fd
	.align 4
	.type	fd, @object
	.size	fd, 4
fd:
	.zero	4
	.section	.rodata
.LC0:
	.string	"error %d from tcgetattr"
.LC1:
	.string	"error %d from tcsetattr"
	.text
	.globl	set_interface_attribs
	.type	set_interface_attribs, @function
set_interface_attribs:
.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	DWORD PTR -88[rbp], esi
	mov	DWORD PTR -92[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -80[rbp]
	mov	edx, 60
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tcgetattr@PLT
	test	eax, eax
	je	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L5
.L2:
	mov	edx, DWORD PTR -88[rbp]
	lea	rax, -80[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	cfsetospeed@PLT
	mov	edx, DWORD PTR -88[rbp]
	lea	rax, -80[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	cfsetispeed@PLT
	mov	eax, DWORD PTR -72[rbp]
	or	eax, 48
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	and	eax, -2
	mov	DWORD PTR -80[rbp], eax
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -76[rbp], 0
	mov	BYTE PTR -57[rbp], 0
	mov	BYTE PTR -58[rbp], 5
	mov	eax, DWORD PTR -80[rbp]
	and	ah, -29
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	or	eax, 2176
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	and	ah, -4
	mov	DWORD PTR -72[rbp], eax
	mov	edx, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -92[rbp]
	or	eax, edx
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	and	eax, -65
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	and	eax, 2147483647
	mov	DWORD PTR -72[rbp], eax
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcsetattr@PLT
	test	eax, eax
	je	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L5
.L4:
	mov	eax, 0
.L5:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	set_interface_attribs, .-set_interface_attribs
	.section	.rodata
.LC2:
	.string	"error %d from tggetattr"
	.align 8
.LC3:
	.string	"error %d setting term attributes"
	.text
	.globl	set_blocking
	.type	set_blocking, @function
set_blocking:
.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	DWORD PTR -84[rbp], edi
	mov	DWORD PTR -88[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -80[rbp]
	mov	edx, 60
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tcgetattr@PLT
	test	eax, eax
	je	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L8:
	cmp	DWORD PTR -88[rbp], 0
	setne	al
	mov	BYTE PTR -57[rbp], al
	mov	BYTE PTR -58[rbp], 5
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcsetattr@PLT
	test	eax, eax
	je	.L7
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	set_blocking, .-set_blocking
	.section	.rodata
.LC4:
	.string	"0x%02X "
.LC5:
	.string	"    "
	.text
	.globl	capture
	.type	capture, @function
capture:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 1000
	call	usleep@PLT
	mov	DWORD PTR i[rip], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR fd[rip]
	mov	edx, 1
	lea	rsi, byte_in[rip]
	mov	edi, eax
	call	read@PLT
	mov	eax, DWORD PTR i[rip]
	movzx	edx, BYTE PTR byte_in[rip]
	cdqe
	lea	rcx, data_in[rip]
	mov	BYTE PTR [rax+rcx], dl
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L13:
	mov	eax, DWORD PTR i[rip]
	cmp	eax, 7
	jle	.L14
	mov	DWORD PTR i[rip], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, data_in[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L15:
	mov	eax, DWORD PTR i[rip]
	cmp	eax, 7
	jle	.L16
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR i[rip], 0
	jmp	.L17
.L20:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, data_in[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 31
	jbe	.L18
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, data_in[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 126
	ja	.L18
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, data_in[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	mov	edi, eax
	call	putchar@PLT
	jmp	.L19
.L18:
	mov	edi, 46
	call	putchar@PLT
.L19:
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L17:
	mov	eax, DWORD PTR i[rip]
	cmp	eax, 7
	jle	.L20
	mov	edi, 10
	call	putchar@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	capture, .-capture
	.section	.rodata
.LC6:
	.string	"crc is 0x%02X\n"
	.text
	.globl	calc_crc
	.type	calc_crc, @function
calc_crc:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movzx	edx, BYTE PTR data_out[rip]
	movzx	eax, BYTE PTR data_out[rip+1]
	add	edx, eax
	movzx	eax, BYTE PTR data_out[rip+2]
	add	edx, eax
	movzx	eax, BYTE PTR data_out[rip+3]
	add	edx, eax
	movzx	eax, BYTE PTR data_out[rip+4]
	add	edx, eax
	movzx	eax, BYTE PTR data_out[rip+5]
	add	edx, eax
	movzx	eax, BYTE PTR data_out[rip+6]
	add	eax, edx
	mov	BYTE PTR crc[rip], al
	movzx	eax, BYTE PTR crc[rip]
	neg	eax
	mov	BYTE PTR crc[rip], al
	movzx	eax, BYTE PTR crc[rip]
	mov	BYTE PTR data_out[rip+7], al
	movzx	eax, BYTE PTR crc[rip]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	calc_crc, .-calc_crc
	.section	.rodata
.LC7:
	.string	"Using %s\n"
.LC8:
	.string	"error %d opening %s: %s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 1052930
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR fd[rip]
	test	eax, eax
	jns	.L23
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	mov	eax, 0
	call	strerror@PLT
	mov	r12d, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rbx, QWORD PTR [rax]
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	ecx, r12d
	mov	rdx, rbx
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	jmp	.L22
.L23:
	mov	eax, DWORD PTR fd[rip]
	mov	edx, 0
	mov	esi, 13
	mov	edi, eax
	call	set_interface_attribs
	mov	eax, DWORD PTR fd[rip]
	mov	esi, 1
	mov	edi, eax
	call	set_blocking
	mov	eax, 0
	call	calc_crc
	mov	eax, DWORD PTR fd[rip]
	mov	edx, 8
	lea	rsi, data_out[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, 0
.L22:
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	"754390.c"
	.text
	.global	data_out
	.data
	.align	2
	.type	data_out, %object
	.size	data_out, 8
data_out:
	.ascii	"\252\001\200\002\001\000\000\000"
	.global	data_in
	.bss
	.align	2
	.type	data_in, %object
	.size	data_in, 8
data_in:
	.space	8
	.comm	byte_in,1,1
	.comm	crc,1,1
	.comm	i,4,4
	.comm	fd,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"error %d from tcgetattr\000"
	.align	2
.LC1:
	.ascii	"error %d from tcsetattr\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	set_interface_attribs
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_interface_attribs, %function
set_interface_attribs:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #68
	mov	r2, #60
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	tcgetattr
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L7+4
	bl	printf
	mvn	r3, #0
	b	.L5
.L2:
	ldr	r2, [fp, #-76]
	sub	r3, fp, #68
	mov	r1, r2
	mov	r0, r3
	bl	cfsetospeed
	ldr	r2, [fp, #-76]
	sub	r3, fp, #68
	mov	r1, r2
	mov	r0, r3
	bl	cfsetispeed
	ldr	r3, [fp, #-60]
	orr	r3, r3, #48
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-68]
	bic	r3, r3, #1
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	strb	r3, [fp, #-45]
	mov	r3, #5
	strb	r3, [fp, #-46]
	ldr	r3, [fp, #-68]
	bic	r3, r3, #7168
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-60]
	orr	r3, r3, #2176
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	bic	r3, r3, #768
	str	r3, [fp, #-60]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-80]
	orr	r3, r2, r3
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	bic	r3, r3, #64
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	bic	r3, r3, #-2147483648
	str	r3, [fp, #-60]
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	tcsetattr
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L7+8
	bl	printf
	mvn	r3, #0
	b	.L5
.L4:
	mov	r3, #0
.L5:
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	set_interface_attribs, .-set_interface_attribs
	.section	.rodata
	.align	2
.LC3:
	.ascii	"error %d from tggetattr\000"
	.align	2
.LC4:
	.ascii	"error %d setting term attributes\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	set_blocking
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_blocking, %function
set_blocking:
	@ 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]
	str	r1, [fp, #-76]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #68
	mov	r2, #60
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	tcgetattr
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L14+4
	bl	printf
	b	.L9
.L10:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	strb	r3, [fp, #-45]
	mov	r3, #5
	strb	r3, [fp, #-46]
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	tcsetattr
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L14+8
	bl	printf
.L9:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC5
	.word	.LC3
	.word	.LC4
	.size	set_blocking, .-set_blocking
	.section	.rodata
	.align	2
.LC6:
	.ascii	"0x%02X \000"
	.align	2
.LC7:
	.ascii	"    \000"
	.text
	.align	2
	.global	capture
	.syntax unified
	.arm
	.fpu softvfp
	.type	capture, %function
capture:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #1000
	bl	usleep
	ldr	r3, .L25
	mov	r2, #0
	str	r2, [r3]
	b	.L17
.L18:
	ldr	r3, .L25+4
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, .L25+8
	mov	r0, r3
	bl	read
	ldr	r3, .L25
	ldr	r3, [r3]
	ldr	r2, .L25+8
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, .L25+12
	strb	r1, [r2, r3]
	ldr	r3, .L25
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L25
	str	r3, [r2]
.L17:
	ldr	r3, .L25
	ldr	r3, [r3]
	cmp	r3, #7
	ble	.L18
	ldr	r3, .L25
	mov	r2, #0
	str	r2, [r3]
	b	.L19
.L20:
	ldr	r3, .L25
	ldr	r3, [r3]
	ldr	r2, .L25+12
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L25+16
	bl	printf
	ldr	r3, .L25
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L25
	str	r3, [r2]
.L19:
	ldr	r3, .L25
	ldr	r3, [r3]
	cmp	r3, #7
	ble	.L20
	ldr	r0, .L25+20
	bl	printf
	ldr	r3, .L25
	mov	r2, #0
	str	r2, [r3]
	b	.L21
.L24:
	ldr	r3, .L25
	ldr	r3, [r3]
	ldr	r2, .L25+12
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #31
	bls	.L22
	ldr	r3, .L25
	ldr	r3, [r3]
	ldr	r2, .L25+12
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #126
	bhi	.L22
	ldr	r3, .L25
	ldr	r3, [r3]
	ldr	r2, .L25+12
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	b	.L23
.L22:
	mov	r0, #46
	bl	putchar
.L23:
	ldr	r3, .L25
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L25
	str	r3, [r2]
.L21:
	ldr	r3, .L25
	ldr	r3, [r3]
	cmp	r3, #7
	ble	.L24
	mov	r0, #10
	bl	putchar
	nop
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	i
	.word	fd
	.word	byte_in
	.word	data_in
	.word	.LC6
	.word	.LC7
	.size	capture, .-capture
	.section	.rodata
	.align	2
.LC8:
	.ascii	"crc is 0x%02X\012\000"
	.text
	.align	2
	.global	calc_crc
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc_crc, %function
calc_crc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L28
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L28
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	add	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, .L28
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	add	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, .L28
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	add	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, .L28
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	add	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, .L28
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	add	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, .L28
	ldrb	r3, [r3, #6]	@ zero_extendqisi2
	add	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, .L28+4
	strb	r2, [r3]
	ldr	r3, .L28+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	rsb	r3, r3, #0
	and	r2, r3, #255
	ldr	r3, .L28+4
	strb	r2, [r3]
	ldr	r3, .L28+4
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L28
	strb	r2, [r3, #7]
	ldr	r3, .L28+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L28+8
	bl	printf
	nop
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	data_out
	.word	crc
	.word	.LC8
	.size	calc_crc, .-calc_crc
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Using %s\012\000"
	.align	2
.LC10:
	.ascii	"error %d opening %s: %s\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L34
	mov	r0, r3
	bl	open
	mov	r3, r0
	ldr	r2, .L34+4
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L34+8
	bl	printf
	ldr	r3, .L34+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L31
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L34+12
	bl	printf
	nop
	b	.L30
.L31:
	ldr	r3, .L34+4
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #13
	mov	r0, r3
	bl	set_interface_attribs
	ldr	r3, .L34+4
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	set_blocking
	bl	calc_crc
	ldr	r3, .L34+4
	ldr	r3, [r3]
	mov	r2, #8
	ldr	r1, .L34+16
	mov	r0, r3
	bl	write
	mov	r3, #0
.L30:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L35:
	.align	2
.L34:
	.word	1052930
	.word	fd
	.word	.LC9
	.word	.LC10
	.word	data_out
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
