	.file	"870008.c"
	.intel_syntax noprefix
	.text
	.local	rxbuf
	.comm	rxbuf,2048,32
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: serialdump [-x] [-s[on]] [-i] [-bSPEED] [SERIALDEVICE]"
	.align 8
.LC1:
	.string	"       -x for hexadecimal output"
.LC2:
	.string	"       -i for decimal output"
	.align 8
.LC3:
	.string	"       -s for automatic SLIP mode"
	.align 8
.LC4:
	.string	"       -so for SLIP only mode (all data is SLIP packets)"
	.align 8
.LC5:
	.string	"       -sn to hide SLIP packages"
	.align 8
.LC6:
	.string	"       -T[format] to add time for each text line"
	.align 8
.LC7:
	.string	"         (see man page for strftime() for format description)"
	.text
	.type	usage, @function
usage:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
.LC8:
	.string	"\r%s"
.LC9:
	.string	"%02X"
.LC10:
	.string	"  "
	.text
	.type	print_hex_line, @function
print_hex_line:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L5
	mov	edi, 32
	call	putchar@PLT
.L5:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L4:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L6
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L8
	mov	edi, 32
	call	putchar@PLT
.L8:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L7:
	cmp	DWORD PTR -4[rbp], 19
	jle	.L9
	mov	DWORD PTR -4[rbp], 0
	jmp	.L10
.L14:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 29
	jbe	.L11
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 126
	jbe	.L12
.L11:
	mov	edi, 46
	call	putchar@PLT
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	putchar@PLT
.L13:
	add	DWORD PTR -4[rbp], 1
.L10:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L14
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_hex_line, .-print_hex_line
	.section	.rodata
.LC11:
	.string	"115200"
.LC12:
	.string	"/dev/ttyS0"
.LC13:
	.string	"38400"
.LC14:
	.string	"19200"
.LC15:
	.string	"57600"
.LC16:
	.string	"unsupported speed: %s\n"
.LC17:
	.string	"%Y-%m-%d %H:%M:%S"
.LC18:
	.string	"unknown option '%c'\n"
.LC19:
	.string	"too many arguments\n"
.LC20:
	.string	"connecting to %s (%s)"
.LC21:
	.string	"open"
.LC22:
	.string	" [OK]\n"
.LC23:
	.string	"could not set fcntl"
.LC24:
	.string	"could not get options"
.LC25:
	.string	"could not set options"
.LC26:
	.string	"interrupted system call\n"
.LC27:
	.string	"select"
.LC28:
	.string	"could not read"
.LC29:
	.string	"write"
.LC30:
	.string	"%s|"
.LC31:
	.string	"%03d "
.LC32:
	.string	""
.LC33:
	.string	"SLIP: "
.LC34:
	.string	"**** slip overflow\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 504
	.cfi_offset 3, -24
	mov	DWORD PTR -500[rbp], edi
	mov	QWORD PTR -512[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -488[rbp], 4098
	lea	rax, .LC11[rip]
	mov	QWORD PTR -440[rbp], rax
	lea	rax, .LC12[rip]
	mov	QWORD PTR -432[rbp], rax
	mov	QWORD PTR -424[rbp], 0
	mov	BYTE PTR -494[rbp], 2
	mov	DWORD PTR -484[rbp], 0
	mov	BYTE PTR -493[rbp], 0
	mov	DWORD PTR -480[rbp], 1
	jmp	.L16
.L39:
	mov	eax, DWORD PTR -480[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -512[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L17
	mov	eax, DWORD PTR -480[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -512[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 84
	cmp	eax, 36
	ja	.L18
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L20[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L20[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L20:
	.long	.L25-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L24-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L23-.L20
	.long	.L22-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L21-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L18-.L20
	.long	.L19-.L20
	.text
.L24:
	mov	eax, DWORD PTR -480[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -512[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L26
	mov	DWORD PTR -488[rbp], 15
	lea	rax, .LC13[rip]
	mov	QWORD PTR -440[rbp], rax
	jmp	.L32
.L26:
	mov	eax, DWORD PTR -480[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -512[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L28
	mov	DWORD PTR -488[rbp], 14
	lea	rax, .LC14[rip]
	mov	QWORD PTR -440[rbp], rax
	jmp	.L32
.L28:
	mov	eax, DWORD PTR -480[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -512[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L29
	mov	DWORD PTR -488[rbp], 4097
	lea	rax, .LC15[rip]
	mov	QWORD PTR -440[rbp], rax
	jmp	.L32
.L29:
	mov	eax, DWORD PTR -480[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -512[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L30
	mov	DWORD PTR -488[rbp], 4098
	lea	rax, .LC11[rip]
	mov	QWORD PTR -440[rbp], rax
	jmp	.L32
.L30:
	mov	eax, DWORD PTR -480[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -512[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	usage
	jmp	.L81
.L19:
	mov	BYTE PTR -494[rbp], 5
	jmp	.L32
.L22:
	mov	BYTE PTR -494[rbp], 4
	jmp	.L32
.L21:
	mov	eax, DWORD PTR -480[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -512[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 110
	je	.L33
	cmp	eax, 111
	je	.L34
	jmp	.L83
.L33:
	mov	BYTE PTR -494[rbp], 8
	jmp	.L36
.L34:
	mov	BYTE PTR -494[rbp], 7
	jmp	.L36
.L83:
	mov	BYTE PTR -494[rbp], 6
	nop
.L36:
	jmp	.L32
.L25:
	mov	eax, DWORD PTR -480[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -512[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L37
	lea	rax, .LC17[rip]
	mov	QWORD PTR -424[rbp], rax
	jmp	.L38
.L37:
	mov	eax, DWORD PTR -480[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -512[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	mov	QWORD PTR -424[rbp], rax
.L38:
	mov	BYTE PTR -494[rbp], 0
	jmp	.L32
.L23:
	mov	edi, 0
	call	usage
	jmp	.L81
.L18:
	mov	eax, DWORD PTR -480[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -512[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	usage
	jmp	.L81
.L32:
	add	DWORD PTR -480[rbp], 1
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -480[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -480[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -512[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -432[rbp], rax
	mov	eax, DWORD PTR -480[rbp]
	cmp	eax, DWORD PTR -500[rbp]
	jge	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	usage
	jmp	.L81
.L16:
	mov	eax, DWORD PTR -480[rbp]
	cmp	eax, DWORD PTR -500[rbp]
	jl	.L39
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -440[rbp]
	mov	rdx, QWORD PTR -432[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -432[rbp]
	mov	esi, 1071362
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -492[rbp], eax
	cmp	DWORD PTR -492[rbp], 0
	jns	.L40
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	jne	.L40
	mov	rax, QWORD PTR -432[rbp]
	mov	esi, 1054978
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -492[rbp], eax
.L40:
	cmp	DWORD PTR -492[rbp], 0
	jns	.L41
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	lea	rdi, .LC21[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L41:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -492[rbp]
	mov	edx, 0
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	test	eax, eax
	jns	.L42
	lea	rdi, .LC23[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L42:
	lea	rdx, -416[rbp]
	mov	eax, DWORD PTR -492[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tcgetattr@PLT
	test	eax, eax
	jns	.L43
	lea	rdi, .LC24[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L43:
	mov	edx, DWORD PTR -488[rbp]
	lea	rax, -416[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	cfsetispeed@PLT
	mov	edx, DWORD PTR -488[rbp]
	lea	rax, -416[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	cfsetospeed@PLT
	mov	eax, DWORD PTR -408[rbp]
	or	eax, 2176
	mov	DWORD PTR -408[rbp], eax
	mov	eax, DWORD PTR -408[rbp]
	and	eax, -817
	mov	DWORD PTR -408[rbp], eax
	mov	eax, DWORD PTR -408[rbp]
	or	eax, 48
	mov	DWORD PTR -408[rbp], eax
	mov	eax, DWORD PTR -404[rbp]
	and	eax, -28
	mov	DWORD PTR -404[rbp], eax
	mov	eax, DWORD PTR -412[rbp]
	and	eax, -2
	mov	DWORD PTR -412[rbp], eax
	lea	rdx, -416[rbp]
	mov	eax, DWORD PTR -492[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcsetattr@PLT
	test	eax, eax
	jns	.L44
	lea	rdi, .LC25[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L44:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -352[rbp]
	mov	rdi, rdx
#APP
# 226 "the_stack_data/870008.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -468[rbp], edx
	mov	DWORD PTR -464[rbp], eax
	mov	eax, DWORD PTR -492[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -352[rbp+rax*8]
	mov	eax, DWORD PTR -492[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -352[rbp+rax*8], rdx
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fileno@PLT
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	mov	rbx, rax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fileno@PLT
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	ecx, eax
	movsx	rax, ecx
	mov	rax, QWORD PTR -352[rbp+rax*8]
	or	rbx, rax
	mov	rdx, rbx
	movsx	rax, ecx
	mov	QWORD PTR -352[rbp+rax*8], rdx
	mov	DWORD PTR -480[rbp], 0
.L80:
	mov	rax, QWORD PTR -352[rbp]
	mov	rdx, QWORD PTR -344[rbp]
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], rdx
	mov	rax, QWORD PTR -336[rbp]
	mov	rdx, QWORD PTR -328[rbp]
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], rdx
	mov	rax, QWORD PTR -320[rbp]
	mov	rdx, QWORD PTR -312[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], rdx
	mov	rax, QWORD PTR -304[rbp]
	mov	rdx, QWORD PTR -296[rbp]
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], rdx
	mov	rax, QWORD PTR -288[rbp]
	mov	rdx, QWORD PTR -280[rbp]
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -152[rbp], rdx
	mov	rax, QWORD PTR -272[rbp]
	mov	rdx, QWORD PTR -264[rbp]
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], rdx
	mov	rax, QWORD PTR -256[rbp]
	mov	rdx, QWORD PTR -248[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	QWORD PTR -120[rbp], rdx
	mov	rax, QWORD PTR -240[rbp]
	mov	rdx, QWORD PTR -232[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	lea	rax, -224[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1024
	call	select@PLT
	mov	DWORD PTR -460[rbp], eax
	cmp	DWORD PTR -460[rbp], 0
	jns	.L45
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L46
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC26[rip]
	call	fwrite@PLT
	jmp	.L47
.L46:
	lea	rdi, .LC27[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L45:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fileno@PLT
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rbx, QWORD PTR -224[rbp+rax*8]
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fileno@PLT
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rbx
	test	rax, rax
	je	.L48
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fileno@PLT
	mov	ecx, eax
	lea	rax, -64[rbp]
	mov	edx, 40
	mov	rsi, rax
	mov	edi, ecx
	call	read@PLT
	mov	DWORD PTR -456[rbp], eax
	cmp	DWORD PTR -456[rbp], 0
	jns	.L49
	lea	rdi, .LC28[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L49:
	cmp	DWORD PTR -456[rbp], 0
	jle	.L50
	cmp	DWORD PTR -456[rbp], 0
	jle	.L48
	mov	DWORD PTR -476[rbp], 0
	jmp	.L51
.L53:
	lea	rdx, -64[rbp]
	mov	eax, DWORD PTR -476[rbp]
	cdqe
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -492[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	jg	.L52
	lea	rdi, .LC29[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L52:
	mov	edi, 0
	call	fflush@PLT
	mov	edi, 6000
	call	usleep@PLT
	add	DWORD PTR -476[rbp], 1
.L51:
	mov	eax, DWORD PTR -476[rbp]
	cmp	eax, DWORD PTR -456[rbp]
	jl	.L53
	jmp	.L48
.L50:
	mov	edi, 0
	call	exit@PLT
.L48:
	mov	eax, DWORD PTR -492[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -224[rbp+rax*8]
	mov	eax, DWORD PTR -492[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L80
	lea	rcx, -64[rbp]
	mov	eax, DWORD PTR -492[rbp]
	mov	edx, 40
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -452[rbp], eax
	cmp	DWORD PTR -452[rbp], 0
	jns	.L54
	lea	rdi, .LC28[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L54:
	mov	DWORD PTR -472[rbp], 0
	jmp	.L55
.L78:
	movzx	eax, BYTE PTR -494[rbp]
	cmp	eax, 8
	ja	.L56
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L58[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L58[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L58:
	.long	.L64-.L58
	.long	.L63-.L58
	.long	.L62-.L58
	.long	.L62-.L58
	.long	.L61-.L58
	.long	.L60-.L58
	.long	.L57-.L58
	.long	.L59-.L58
	.long	.L57-.L58
	.text
.L62:
	mov	eax, DWORD PTR -472[rbp]
	cdqe
	movzx	eax, BYTE PTR -64[rbp+rax]
	movzx	eax, al
	mov	edi, eax
	call	putchar@PLT
	jmp	.L56
.L64:
	lea	rax, -448[rbp]
	mov	rdi, rax
	call	time@PLT
	mov	QWORD PTR -448[rbp], rax
	lea	rax, -448[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR -424[rbp]
	lea	rax, -96[rbp]
	mov	esi, 20
	mov	rdi, rax
	call	strftime@PLT
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR -494[rbp], 1
.L63:
	mov	eax, DWORD PTR -472[rbp]
	cdqe
	movzx	eax, BYTE PTR -64[rbp+rax]
	movzx	eax, al
	mov	edi, eax
	call	putchar@PLT
	mov	eax, DWORD PTR -472[rbp]
	cdqe
	movzx	eax, BYTE PTR -64[rbp+rax]
	cmp	al, 10
	jne	.L84
	mov	BYTE PTR -494[rbp], 0
	jmp	.L84
.L61:
	mov	eax, DWORD PTR -472[rbp]
	cdqe
	movzx	eax, BYTE PTR -64[rbp+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -480[rbp], 1
	cmp	DWORD PTR -480[rbp], 17
	jle	.L85
	mov	DWORD PTR -480[rbp], 0
	mov	edi, 10
	call	putchar@PLT
	jmp	.L85
.L60:
	mov	eax, DWORD PTR -480[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -480[rbp], edx
	mov	edx, DWORD PTR -472[rbp]
	movsx	rdx, edx
	movzx	edx, BYTE PTR -64[rbp+rdx]
	cdqe
	lea	rcx, rxbuf[rip]
	mov	BYTE PTR [rax+rcx], dl
	cmp	DWORD PTR -480[rbp], 19
	jle	.L86
	mov	eax, DWORD PTR -480[rbp]
	mov	edx, eax
	lea	rsi, rxbuf[rip]
	lea	rdi, .LC32[rip]
	call	print_hex_line
	mov	DWORD PTR -480[rbp], 0
	mov	edi, 10
	call	putchar@PLT
	jmp	.L86
.L57:
	cmp	DWORD PTR -484[rbp], 0
	jne	.L59
	mov	eax, DWORD PTR -472[rbp]
	cdqe
	movzx	eax, BYTE PTR -64[rbp+rax]
	cmp	al, -64
	je	.L59
	mov	eax, DWORD PTR -472[rbp]
	cdqe
	movzx	eax, BYTE PTR -64[rbp+rax]
	movzx	eax, al
	mov	edi, eax
	call	putchar@PLT
	jmp	.L56
.L59:
	mov	eax, DWORD PTR -472[rbp]
	cdqe
	movzx	eax, BYTE PTR -64[rbp+rax]
	movzx	eax, al
	cmp	eax, 192
	je	.L68
	cmp	eax, 219
	jne	.L69
	mov	BYTE PTR -493[rbp], -37
	jmp	.L70
.L68:
	cmp	DWORD PTR -480[rbp], 0
	jle	.L71
	cmp	DWORD PTR -484[rbp], 2
	je	.L72
	cmp	BYTE PTR -494[rbp], 8
	je	.L72
	mov	eax, 20
	cmp	DWORD PTR -480[rbp], 20
	cmovle	eax, DWORD PTR -480[rbp]
	mov	edx, eax
	lea	rsi, rxbuf[rip]
	lea	rdi, .LC33[rip]
	call	print_hex_line
	mov	edi, 10
	call	putchar@PLT
.L72:
	mov	BYTE PTR -493[rbp], 0
	mov	DWORD PTR -480[rbp], 0
	mov	DWORD PTR -484[rbp], 0
	jmp	.L70
.L71:
	cmp	DWORD PTR -484[rbp], 0
	sete	al
	movzx	eax, al
	mov	DWORD PTR -484[rbp], eax
	jmp	.L70
.L69:
	cmp	BYTE PTR -493[rbp], -37
	jne	.L87
	mov	BYTE PTR -493[rbp], 0
	mov	eax, DWORD PTR -472[rbp]
	cdqe
	movzx	eax, BYTE PTR -64[rbp+rax]
	movzx	eax, al
	cmp	eax, 220
	je	.L75
	cmp	eax, 221
	je	.L76
	jmp	.L74
.L75:
	mov	eax, DWORD PTR -472[rbp]
	cdqe
	mov	BYTE PTR -64[rbp+rax], -64
	jmp	.L74
.L76:
	mov	eax, DWORD PTR -472[rbp]
	cdqe
	mov	BYTE PTR -64[rbp+rax], -37
	jmp	.L74
.L87:
	nop
.L74:
	mov	eax, DWORD PTR -480[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -480[rbp], edx
	mov	edx, DWORD PTR -472[rbp]
	movsx	rdx, edx
	movzx	edx, BYTE PTR -64[rbp+rdx]
	cdqe
	lea	rcx, rxbuf[rip]
	mov	BYTE PTR [rax+rcx], dl
	mov	eax, DWORD PTR -480[rbp]
	cmp	eax, 2047
	jbe	.L88
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC34[rip]
	call	fwrite@PLT
	mov	DWORD PTR -480[rbp], 0
	mov	DWORD PTR -484[rbp], 2
.L88:
	nop
.L70:
	jmp	.L56
.L84:
	nop
	jmp	.L56
.L85:
	nop
	jmp	.L56
.L86:
	nop
.L56:
	add	DWORD PTR -472[rbp], 1
.L55:
	mov	eax, DWORD PTR -472[rbp]
	cmp	eax, DWORD PTR -452[rbp]
	jl	.L78
	cmp	DWORD PTR -480[rbp], 0
	jle	.L89
	movzx	eax, BYTE PTR -494[rbp]
	cmp	eax, 5
	jne	.L79
	mov	eax, DWORD PTR -480[rbp]
	mov	edx, eax
	lea	rsi, rxbuf[rip]
	lea	rdi, .LC32[rip]
	call	print_hex_line
	jmp	.L79
.L89:
	nop
.L79:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L47:
	jmp	.L80
.L81:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L82
	call	__stack_chk_fail@PLT
.L82:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"870008.c"
	.text
	.local	rxbuf
	.comm	rxbuf,2048,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: serialdump [-x] [-s[on]] [-i] [-bSPEED] [SER"
	.ascii	"IALDEVICE]\000"
	.align	2
.LC1:
	.ascii	"       -x for hexadecimal output\000"
	.align	2
.LC2:
	.ascii	"       -i for decimal output\000"
	.align	2
.LC3:
	.ascii	"       -s for automatic SLIP mode\000"
	.align	2
.LC4:
	.ascii	"       -so for SLIP only mode (all data is SLIP pac"
	.ascii	"kets)\000"
	.align	2
.LC5:
	.ascii	"       -sn to hide SLIP packages\000"
	.align	2
.LC6:
	.ascii	"       -T[format] to add time for each text line\000"
	.align	2
.LC7:
	.ascii	"         (see man page for strftime() for format de"
	.ascii	"scription)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ 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, .L3
	bl	puts
	ldr	r0, .L3+4
	bl	puts
	ldr	r0, .L3+8
	bl	puts
	ldr	r0, .L3+12
	bl	puts
	ldr	r0, .L3+16
	bl	puts
	ldr	r0, .L3+20
	bl	puts
	ldr	r0, .L3+24
	bl	puts
	ldr	r0, .L3+28
	bl	puts
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\015%s\000"
	.align	2
.LC9:
	.ascii	"%02X\000"
	.align	2
.LC10:
	.ascii	"  \000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_hex_line, %function
print_hex_line:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r1, [fp, #-16]
	ldr	r0, .L17
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L6
.L8:
	ldr	r3, [fp, #-8]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L7
	mov	r0, #32
	bl	putchar
.L7:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L17+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L6:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L8
	ldr	r0, .L17+8
	bl	printf
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	b	.L9
.L11:
	ldr	r3, [fp, #-8]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L10
	mov	r0, #32
	bl	putchar
.L10:
	ldr	r0, .L17+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	ble	.L11
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L12
.L16:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #29
	bls	.L13
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #126
	bls	.L14
.L13:
	mov	r0, #46
	bl	putchar
	b	.L15
.L14:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
.L15:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L12:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L16
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	print_hex_line, .-print_hex_line
	.section	.rodata
	.align	2
.LC11:
	.ascii	"115200\000"
	.align	2
.LC12:
	.ascii	"/dev/ttyS0\000"
	.align	2
.LC13:
	.ascii	"38400\000"
	.align	2
.LC14:
	.ascii	"19200\000"
	.align	2
.LC15:
	.ascii	"57600\000"
	.align	2
.LC16:
	.ascii	"unsupported speed: %s\012\000"
	.align	2
.LC17:
	.ascii	"%Y-%m-%d %H:%M:%S\000"
	.align	2
.LC18:
	.ascii	"unknown option '%c'\012\000"
	.align	2
.LC19:
	.ascii	"too many arguments\012\000"
	.align	2
.LC20:
	.ascii	"connecting to %s (%s)\000"
	.align	2
.LC21:
	.ascii	"open\000"
	.align	2
.LC22:
	.ascii	" [OK]\012\000"
	.align	2
.LC23:
	.ascii	"could not set fcntl\000"
	.align	2
.LC24:
	.ascii	"could not get options\000"
	.align	2
.LC25:
	.ascii	"could not set options\000"
	.align	2
.LC26:
	.ascii	"interrupted system call\012\000"
	.align	2
.LC27:
	.ascii	"select\000"
	.align	2
.LC28:
	.ascii	"could not read\000"
	.align	2
.LC29:
	.ascii	"write\000"
	.align	2
.LC30:
	.ascii	"%s|\000"
	.align	2
.LC31:
	.ascii	"%03d \000"
	.align	2
.LC32:
	.ascii	"\000"
	.align	2
.LC33:
	.ascii	"SLIP: \000"
	.align	2
.LC34:
	.ascii	"**** slip overflow\012\000"
	.align	2
.LC35:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 456
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #468
	str	r0, [fp, #-464]
	str	r1, [fp, #-468]
	ldr	r3, .L96
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L96+4
	str	r3, [fp, #-444]
	ldr	r3, .L96+8
	str	r3, [fp, #-440]
	ldr	r3, .L96+12
	str	r3, [fp, #-436]
	mov	r3, #0
	str	r3, [fp, #-432]
	mov	r3, #2
	strb	r3, [fp, #-454]
	mov	r3, #0
	str	r3, [fp, #-428]
	mov	r3, #0
	strb	r3, [fp, #-453]
	mov	r3, #1
	str	r3, [fp, #-424]
	b	.L20
.L43:
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-468]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L21
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-468]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #84
	cmp	r3, #36
	ldrls	pc, [pc, r3, asl #2]
	b	.L22
.L24:
	.word	.L29
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L28
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L27
	.word	.L26
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L25
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L23
.L28:
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-468]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #2
	ldr	r1, .L96+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	mov	r3, #15
	str	r3, [fp, #-444]
	ldr	r3, .L96+16
	str	r3, [fp, #-440]
	b	.L36
.L30:
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-468]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #2
	ldr	r1, .L96+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	mov	r3, #14
	str	r3, [fp, #-444]
	ldr	r3, .L96+20
	str	r3, [fp, #-440]
	b	.L36
.L32:
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-468]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #2
	ldr	r1, .L96+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	ldr	r3, .L96+28
	str	r3, [fp, #-444]
	ldr	r3, .L96+24
	str	r3, [fp, #-440]
	b	.L36
.L33:
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-468]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #2
	ldr	r1, .L96+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	ldr	r3, .L96+4
	str	r3, [fp, #-444]
	ldr	r3, .L96+8
	str	r3, [fp, #-440]
	b	.L36
.L34:
	ldr	r3, .L96+32
	ldr	r0, [r3]
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-468]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #2
	mov	r2, r3
	ldr	r1, .L96+36
	bl	fprintf
	mov	r0, #1
	bl	usage
	mov	r3, r0
	b	.L87
.L23:
	mov	r3, #5
	strb	r3, [fp, #-454]
	b	.L36
.L26:
	mov	r3, #4
	strb	r3, [fp, #-454]
	b	.L36
.L25:
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-468]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L37
	cmp	r3, #111
	beq	.L38
	b	.L89
.L37:
	mov	r3, #8
	strb	r3, [fp, #-454]
	b	.L40
.L38:
	mov	r3, #7
	strb	r3, [fp, #-454]
	b	.L40
.L89:
	mov	r3, #6
	strb	r3, [fp, #-454]
	nop
.L40:
	b	.L36
.L29:
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-468]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L41
	ldr	r3, .L96+40
	str	r3, [fp, #-432]
	b	.L42
.L41:
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-468]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #2
	str	r3, [fp, #-432]
.L42:
	mov	r3, #0
	strb	r3, [fp, #-454]
	b	.L36
.L27:
	mov	r0, #0
	bl	usage
	mov	r3, r0
	b	.L87
.L22:
	ldr	r3, .L96+32
	ldr	r0, [r3]
	ldr	r3, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-468]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L96+44
	bl	fprintf
	mov	r0, #1
	bl	usage
	mov	r3, r0
	b	.L87
.L36:
	ldr	r3, [fp, #-424]
	add	r3, r3, #1
	str	r3, [fp, #-424]
	b	.L20
.L21:
	ldr	r3, [fp, #-424]
	add	r2, r3, #1
	str	r2, [fp, #-424]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-468]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-436]
	ldr	r2, [fp, #-424]
	ldr	r3, [fp, #-464]
	cmp	r2, r3
	bge	.L20
	ldr	r3, .L96+32
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L96+48
	bl	fwrite
	mov	r0, #1
	bl	usage
	mov	r3, r0
	b	.L87
.L20:
	ldr	r2, [fp, #-424]
	ldr	r3, [fp, #-464]
	cmp	r2, r3
	blt	.L43
	ldr	r3, .L96+32
	ldr	r0, [r3]
	ldr	r3, [fp, #-440]
	ldr	r2, [fp, #-436]
	ldr	r1, .L96+52
	bl	fprintf
	ldr	r1, .L96+56
	ldr	r0, [fp, #-436]
	bl	open
	str	r0, [fp, #-448]
	ldr	r3, [fp, #-448]
	cmp	r3, #0
	bge	.L44
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	bne	.L44
	ldr	r1, .L96+60
	ldr	r0, [fp, #-436]
	bl	open
	str	r0, [fp, #-448]
.L44:
	ldr	r3, [fp, #-448]
	cmp	r3, #0
	bge	.L45
	ldr	r3, .L96+32
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r0, .L96+64
	bl	perror
	mvn	r0, #0
	bl	exit
.L45:
	ldr	r3, .L96+32
	ldr	r3, [r3]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L96+68
	bl	fwrite
	mov	r2, #0
	mov	r1, #4
	ldr	r0, [fp, #-448]
	bl	fcntl
	mov	r3, r0
	cmp	r3, #0
	bge	.L46
	ldr	r0, .L96+72
	bl	perror
	mvn	r0, #0
	bl	exit
.L46:
	sub	r3, fp, #392
	mov	r1, r3
	ldr	r0, [fp, #-448]
	bl	tcgetattr
	mov	r3, r0
	cmp	r3, #0
	bge	.L47
	ldr	r0, .L96+76
	bl	perror
	mvn	r0, #0
	bl	exit
.L47:
	sub	r3, fp, #392
	ldr	r1, [fp, #-444]
	mov	r0, r3
	bl	cfsetispeed
	sub	r3, fp, #392
	ldr	r1, [fp, #-444]
	mov	r0, r3
	bl	cfsetospeed
	ldr	r3, [fp, #-384]
	orr	r3, r3, #2176
	str	r3, [fp, #-384]
	ldr	r3, [fp, #-384]
	bic	r3, r3, #816
	str	r3, [fp, #-384]
	ldr	r3, [fp, #-384]
	orr	r3, r3, #48
	str	r3, [fp, #-384]
	ldr	r3, [fp, #-380]
	bic	r3, r3, #27
	str	r3, [fp, #-380]
	ldr	r3, [fp, #-388]
	bic	r3, r3, #1
	str	r3, [fp, #-388]
	sub	r3, fp, #392
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-448]
	bl	tcsetattr
	mov	r3, r0
	cmp	r3, #0
	bge	.L48
	ldr	r0, .L96+80
	bl	perror
	mvn	r0, #0
	bl	exit
.L48:
	sub	r3, fp, #332
	str	r3, [fp, #-408]
	mov	r3, #0
	str	r3, [fp, #-420]
	b	.L49
.L50:
	ldr	r3, [fp, #-408]
	ldr	r2, [fp, #-420]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-420]
	add	r3, r3, #1
	str	r3, [fp, #-420]
.L49:
	ldr	r3, [fp, #-420]
	cmp	r3, #31
	bls	.L50
	ldr	r3, [fp, #-448]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-320]
	ldr	r3, [fp, #-448]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	str	r1, [r3, #-320]
	ldr	r3, .L96+84
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #31
	and	r2, r2, #31
	rsbpl	r3, r2, #0
	mov	r2, #1
	lsl	r3, r2, r3
	mov	r4, r3
	ldr	r3, .L96+84
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	mov	r3, r0
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-320]
	orr	r1, r4, r3
	lsl	r3, r2, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	str	r1, [r3, #-320]
	mov	r3, #0
	str	r3, [fp, #-424]
.L86:
	sub	r3, fp, #204
	sub	r1, fp, #332
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	sub	r1, fp, #204
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r0, #1024
	bl	select
	str	r0, [fp, #-404]
	ldr	r3, [fp, #-404]
	cmp	r3, #0
	bge	.L51
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L52
	ldr	r3, .L96+32
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L96+88
	bl	fwrite
	b	.L53
.L52:
	ldr	r0, .L96+92
	bl	perror
	mov	r0, #1
	bl	exit
.L51:
	ldr	r3, .L96+84
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	mov	r3, r0
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r4, [r3, #-192]
	ldr	r3, .L96+84
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #31
	and	r2, r2, #31
	rsbpl	r3, r2, #0
	mov	r2, #1
	lsl	r3, r2, r3
	and	r3, r3, r4
	cmp	r3, #0
	beq	.L54
	ldr	r3, .L96+84
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	sub	r3, fp, #56
	mov	r2, #40
	mov	r1, r3
	bl	read
	str	r0, [fp, #-400]
	ldr	r3, [fp, #-400]
	cmp	r3, #0
	bge	.L55
	ldr	r0, .L96+96
	bl	perror
	mvn	r0, #0
	bl	exit
.L55:
	ldr	r3, [fp, #-400]
	cmp	r3, #0
	ble	.L56
	ldr	r3, [fp, #-400]
	cmp	r3, #0
	ble	.L54
	mov	r3, #0
	str	r3, [fp, #-416]
	b	.L57
.L59:
	sub	r2, fp, #56
	ldr	r3, [fp, #-416]
	add	r3, r2, r3
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-448]
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bgt	.L58
	ldr	r0, .L96+100
	bl	perror
	mov	r0, #1
	bl	exit
.L58:
	mov	r0, #0
	bl	fflush
	ldr	r0, .L96+104
	bl	usleep
	ldr	r3, [fp, #-416]
	add	r3, r3, #1
	str	r3, [fp, #-416]
.L57:
	ldr	r2, [fp, #-416]
	ldr	r3, [fp, #-400]
	cmp	r2, r3
	blt	.L59
	b	.L54
.L56:
	mov	r0, #0
	bl	exit
.L54:
	ldr	r3, [fp, #-448]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-192]
	ldr	r3, [fp, #-448]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L86
	sub	r3, fp, #56
	mov	r2, #40
	mov	r1, r3
	ldr	r0, [fp, #-448]
	bl	read
	str	r0, [fp, #-396]
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	bge	.L60
	ldr	r0, .L96+96
	bl	perror
	mvn	r0, #0
	bl	exit
.L60:
	mov	r3, #0
	str	r3, [fp, #-412]
	b	.L61
.L84:
	ldrb	r3, [fp, #-454]	@ zero_extendqisi2
	cmp	r3, #8
	ldrls	pc, [pc, r3, asl #2]
	b	.L62
.L64:
	.word	.L70
	.word	.L69
	.word	.L68
	.word	.L68
	.word	.L67
	.word	.L66
	.word	.L63
	.word	.L65
	.word	.L63
.L68:
	sub	r2, fp, #56
	ldr	r3, [fp, #-412]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	b	.L62
.L70:
	sub	r3, fp, #452
	mov	r0, r3
	bl	time
	mov	r3, r0
	str	r3, [fp, #-452]
	sub	r3, fp, #452
	mov	r0, r3
	bl	localtime
	mov	r3, r0
	sub	r0, fp, #76
	ldr	r2, [fp, #-432]
	mov	r1, #20
	bl	strftime
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, .L96+108
	bl	printf
	mov	r3, #1
	strb	r3, [fp, #-454]
.L69:
	sub	r2, fp, #56
	ldr	r3, [fp, #-412]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	sub	r2, fp, #56
	ldr	r3, [fp, #-412]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L90
	mov	r3, #0
	strb	r3, [fp, #-454]
	b	.L90
.L67:
	sub	r2, fp, #56
	ldr	r3, [fp, #-412]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L96+112
	bl	printf
	ldr	r3, [fp, #-424]
	add	r3, r3, #1
	str	r3, [fp, #-424]
	ldr	r3, [fp, #-424]
	cmp	r3, #17
	ble	.L91
	mov	r3, #0
	str	r3, [fp, #-424]
	mov	r0, #10
	bl	putchar
	b	.L91
.L66:
	ldr	r3, [fp, #-424]
	add	r2, r3, #1
	str	r2, [fp, #-424]
	sub	r1, fp, #56
	ldr	r2, [fp, #-412]
	add	r2, r1, r2
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, .L96+116
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-424]
	cmp	r3, #19
	ble	.L92
	ldr	r2, [fp, #-424]
	ldr	r1, .L96+116
	ldr	r0, .L96+120
	bl	print_hex_line
	mov	r3, #0
	str	r3, [fp, #-424]
	mov	r0, #10
	bl	putchar
	b	.L92
.L63:
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	bne	.L65
	sub	r2, fp, #56
	ldr	r3, [fp, #-412]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #192
	beq	.L65
	sub	r2, fp, #56
	ldr	r3, [fp, #-412]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	b	.L62
.L65:
	sub	r2, fp, #56
	ldr	r3, [fp, #-412]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #192
	beq	.L74
	cmp	r3, #219
	bne	.L75
	mvn	r3, #36
	strb	r3, [fp, #-453]
	b	.L76
.L74:
	ldr	r3, [fp, #-424]
	cmp	r3, #0
	ble	.L77
	ldr	r3, [fp, #-428]
	cmp	r3, #2
	beq	.L78
	ldrb	r3, [fp, #-454]	@ zero_extendqisi2
	cmp	r3, #8
	beq	.L78
	ldr	r3, [fp, #-424]
	cmp	r3, #20
	movlt	r3, r3
	movge	r3, #20
	mov	r2, r3
	ldr	r1, .L96+116
	ldr	r0, .L96+124
	bl	print_hex_line
	mov	r0, #10
	bl	putchar
.L78:
	mov	r3, #0
	strb	r3, [fp, #-453]
	mov	r3, #0
	str	r3, [fp, #-424]
	mov	r3, #0
	str	r3, [fp, #-428]
	b	.L76
.L77:
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-428]
	b	.L76
.L75:
	ldrb	r3, [fp, #-453]	@ zero_extendqisi2
	cmp	r3, #219
	bne	.L93
	mov	r3, #0
	strb	r3, [fp, #-453]
	sub	r2, fp, #56
	ldr	r3, [fp, #-412]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #220
	beq	.L81
	cmp	r3, #221
	beq	.L82
	b	.L80
.L81:
	sub	r2, fp, #56
	ldr	r3, [fp, #-412]
	add	r3, r2, r3
	mvn	r2, #63
	strb	r2, [r3]
	b	.L80
.L82:
	sub	r2, fp, #56
	ldr	r3, [fp, #-412]
	add	r3, r2, r3
	mvn	r2, #36
	strb	r2, [r3]
	b	.L80
.L93:
	nop
.L80:
	ldr	r3, [fp, #-424]
	add	r2, r3, #1
	str	r2, [fp, #-424]
	sub	r1, fp, #56
	ldr	r2, [fp, #-412]
	add	r2, r1, r2
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, .L96+116
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-424]
	cmp	r3, #2048
	bcc	.L94
	ldr	r3, .L96+32
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L96+128
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-424]
	mov	r3, #2
	str	r3, [fp, #-428]
.L94:
	nop
.L76:
	b	.L62
.L90:
	nop
	b	.L62
.L91:
	nop
	b	.L62
.L92:
	nop
.L62:
	ldr	r3, [fp, #-412]
	add	r3, r3, #1
	str	r3, [fp, #-412]
.L61:
	ldr	r2, [fp, #-412]
	ldr	r3, [fp, #-396]
	cmp	r2, r3
	blt	.L84
	ldr	r3, [fp, #-424]
	cmp	r3, #0
	ble	.L95
	ldrb	r3, [fp, #-454]	@ zero_extendqisi2
	cmp	r3, #5
	bne	.L85
	ldr	r2, [fp, #-424]
	ldr	r1, .L96+116
	ldr	r0, .L96+120
	bl	print_hex_line
	b	.L85
.L95:
	nop
.L85:
	ldr	r3, .L96+132
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L53:
	b	.L86
.L87:
	ldr	r2, .L96
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L88
	bl	__stack_chk_fail
.L88:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L97:
	.align	2
.L96:
	.word	.LC35
	.word	4098
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	4097
	.word	stderr
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	1120514
	.word	1054978
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	stdin
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	6000
	.word	.LC30
	.word	.LC31
	.word	rxbuf
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
