	.file	"830260.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%04x: "
.LC1:
	.string	"%02x "
	.text
	.globl	hexdump
	.type	hexdump, @function
hexdump:
.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	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L2
.L7:
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 16
	jle	.L3
	mov	DWORD PTR -12[rbp], 16
.L3:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	and	eax, 3
	test	eax, eax
	jne	.L5
	mov	edi, 32
	call	putchar@PLT
.L5:
	add	DWORD PTR -16[rbp], 1
	add	QWORD PTR -8[rbp], 1
.L4:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L6
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -12[rbp]
	add	DWORD PTR -20[rbp], eax
.L2:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L7
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	hexdump, .-hexdump
	.section	.rodata
.LC2:
	.string	"open"
.LC3:
	.string	"%s: not a tty\n"
.LC4:
	.string	"tcsetattr"
	.text
	.globl	rcx_init
	.type	rcx_init, @function
rcx_init:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jns	.L9
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	isatty@PLT
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -104[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	lea	rax, -80[rbp]
	mov	edx, 60
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -72[rbp], 2992
	lea	rax, -80[rbp]
	mov	esi, 11
	mov	rdi, rax
	call	cfsetispeed@PLT
	lea	rax, -80[rbp]
	mov	esi, 11
	mov	rdi, rax
	call	cfsetospeed@PLT
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcsetattr@PLT
	cmp	eax, -1
	jne	.L11
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	eax, DWORD PTR -84[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	rcx_init, .-rcx_init
	.globl	rcx_close
	.type	rcx_close, @function
rcx_close:
.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 -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	rcx_close, .-rcx_close
	.section	.rodata
.LC5:
	.string	"write"
.LC6:
	.string	"select"
.LC7:
	.string	"read"
	.text
	.globl	rcx_send
	.type	rcx_send, @function
rcx_send:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 240
	mov	DWORD PTR -8404[rbp], edi
	mov	QWORD PTR -8416[rbp], rsi
	mov	DWORD PTR -8408[rbp], edx
	mov	QWORD PTR -8424[rbp], rcx
	mov	DWORD PTR -8428[rbp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -8416[rbp]
	mov	QWORD PTR -8360[rbp], rax
	mov	DWORD PTR -8400[rbp], 0
	mov	DWORD PTR -8384[rbp], 0
	mov	eax, DWORD PTR -8400[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8400[rbp], edx
	cdqe
	mov	BYTE PTR -8208[rbp+rax], 85
	mov	eax, DWORD PTR -8400[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8400[rbp], edx
	cdqe
	mov	BYTE PTR -8208[rbp+rax], -1
	mov	eax, DWORD PTR -8400[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8400[rbp], edx
	cdqe
	mov	BYTE PTR -8208[rbp+rax], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -8400[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8400[rbp], edx
	mov	rdx, QWORD PTR -8360[rbp]
	movzx	edx, BYTE PTR [rdx]
	cdqe
	mov	BYTE PTR -8208[rbp+rax], dl
	mov	rax, QWORD PTR -8360[rbp]
	movzx	ecx, BYTE PTR [rax]
	mov	eax, DWORD PTR -8400[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8400[rbp], edx
	not	ecx
	mov	edx, ecx
	cdqe
	mov	BYTE PTR -8208[rbp+rax], dl
	mov	rax, QWORD PTR -8360[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8360[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	DWORD PTR -8384[rbp], eax
.L16:
	mov	eax, DWORD PTR -8408[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -8408[rbp], edx
	test	eax, eax
	jne	.L17
	mov	eax, DWORD PTR -8400[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8400[rbp], edx
	mov	edx, DWORD PTR -8384[rbp]
	cdqe
	mov	BYTE PTR -8208[rbp+rax], dl
	mov	eax, DWORD PTR -8384[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -8400[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8400[rbp], edx
	not	ecx
	mov	edx, ecx
	cdqe
	mov	BYTE PTR -8208[rbp+rax], dl
	mov	DWORD PTR -8380[rbp], 0
	jmp	.L18
.L47:
	mov	eax, DWORD PTR -8400[rbp]
	movsx	rdx, eax
	lea	rcx, -8208[rbp]
	mov	eax, DWORD PTR -8404[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edx, DWORD PTR -8400[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L19
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	DWORD PTR -8396[rbp], 0
.L24:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -8336[rbp]
	mov	rdi, rdx
#APP
# 171 "the_stack_data/830260.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -8372[rbp], edx
	mov	DWORD PTR -8368[rbp], eax
	mov	eax, DWORD PTR -8404[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -8336[rbp+rax*8]
	mov	eax, DWORD PTR -8404[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 -8336[rbp+rax*8], rdx
	mov	QWORD PTR -8352[rbp], 0
	mov	QWORD PTR -8344[rbp], 300000
	lea	rdx, -8352[rbp]
	lea	rax, -8336[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1024
	call	select@PLT
	cmp	eax, -1
	jne	.L20
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	mov	eax, DWORD PTR -8404[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -8336[rbp+rax*8]
	mov	eax, DWORD PTR -8404[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	.L51
	mov	eax, 4096
	sub	eax, DWORD PTR -8396[rbp]
	movsx	rdx, eax
	lea	rcx, -4112[rbp]
	mov	eax, DWORD PTR -8396[rbp]
	cdqe
	add	rcx, rax
	mov	eax, DWORD PTR -8404[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -8364[rbp], eax
	cmp	DWORD PTR -8364[rbp], -1
	jne	.L23
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	eax, DWORD PTR -8364[rbp]
	add	DWORD PTR -8396[rbp], eax
	jmp	.L24
.L51:
	nop
	mov	DWORD PTR -8376[rbp], -2
	mov	eax, DWORD PTR -8396[rbp]
	cmp	eax, DWORD PTR -8400[rbp]
	jl	.L52
	mov	DWORD PTR -8392[rbp], 0
	jmp	.L27
.L30:
	mov	eax, DWORD PTR -8392[rbp]
	cdqe
	movzx	edx, BYTE PTR -8208[rbp+rax]
	mov	eax, DWORD PTR -8392[rbp]
	cdqe
	movzx	eax, BYTE PTR -4112[rbp+rax]
	cmp	dl, al
	jne	.L53
	add	DWORD PTR -8392[rbp], 1
.L27:
	mov	eax, DWORD PTR -8392[rbp]
	cmp	eax, DWORD PTR -8400[rbp]
	jl	.L30
	jmp	.L29
.L53:
	nop
.L29:
	mov	eax, DWORD PTR -8392[rbp]
	cmp	eax, DWORD PTR -8400[rbp]
	jl	.L54
	mov	DWORD PTR -8376[rbp], 0
	mov	eax, DWORD PTR -8392[rbp]
	cmp	eax, DWORD PTR -8396[rbp]
	je	.L55
	mov	DWORD PTR -8376[rbp], -1
	mov	eax, DWORD PTR -8396[rbp]
	sub	eax, DWORD PTR -8392[rbp]
	cmp	eax, 4
	jle	.L56
	mov	eax, DWORD PTR -8392[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8392[rbp], edx
	cdqe
	movzx	eax, BYTE PTR -4112[rbp+rax]
	cmp	al, 85
	jne	.L57
	mov	eax, DWORD PTR -8392[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8392[rbp], edx
	cdqe
	movzx	eax, BYTE PTR -4112[rbp+rax]
	cmp	al, -1
	jne	.L58
	mov	eax, DWORD PTR -8392[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8392[rbp], edx
	cdqe
	movzx	eax, BYTE PTR -4112[rbp+rax]
	test	al, al
	jne	.L59
	mov	DWORD PTR -8384[rbp], 0
	mov	DWORD PTR -8388[rbp], 0
	jmp	.L38
.L42:
	mov	eax, DWORD PTR -8392[rbp]
	cdqe
	movzx	eax, BYTE PTR -4112[rbp+rax]
	movzx	edx, al
	mov	eax, DWORD PTR -8392[rbp]
	add	eax, 1
	cdqe
	movzx	eax, BYTE PTR -4112[rbp+rax]
	movzx	eax, al
	not	eax
	movzx	eax, al
	cmp	edx, eax
	jne	.L60
	mov	eax, DWORD PTR -8392[rbp]
	cdqe
	movzx	eax, BYTE PTR -4112[rbp+rax]
	movzx	eax, al
	add	DWORD PTR -8384[rbp], eax
	mov	eax, DWORD PTR -8388[rbp]
	cmp	eax, DWORD PTR -8428[rbp]
	jge	.L41
	mov	eax, DWORD PTR -8388[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8424[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8392[rbp]
	cdqe
	movzx	eax, BYTE PTR -4112[rbp+rax]
	mov	BYTE PTR [rdx], al
.L41:
	add	DWORD PTR -8392[rbp], 2
	add	DWORD PTR -8388[rbp], 1
.L38:
	mov	eax, DWORD PTR -8396[rbp]
	sub	eax, 2
	cmp	DWORD PTR -8392[rbp], eax
	jl	.L42
	jmp	.L40
.L60:
	nop
.L40:
	mov	eax, DWORD PTR -8396[rbp]
	sub	eax, 2
	cmp	DWORD PTR -8392[rbp], eax
	jne	.L61
	mov	eax, DWORD PTR -8392[rbp]
	cdqe
	movzx	eax, BYTE PTR -4112[rbp+rax]
	movzx	edx, al
	mov	eax, DWORD PTR -8392[rbp]
	add	eax, 1
	cdqe
	movzx	eax, BYTE PTR -4112[rbp+rax]
	movzx	eax, al
	not	eax
	movzx	eax, al
	cmp	edx, eax
	jne	.L62
	mov	eax, DWORD PTR -8384[rbp]
	movzx	edx, al
	mov	eax, DWORD PTR -8392[rbp]
	cdqe
	movzx	eax, BYTE PTR -4112[rbp+rax]
	movzx	eax, al
	cmp	edx, eax
	jne	.L63
	mov	eax, DWORD PTR -8388[rbp]
	jmp	.L48
.L52:
	nop
	jmp	.L26
.L54:
	nop
	jmp	.L26
.L55:
	nop
.L26:
	add	DWORD PTR -8380[rbp], 1
.L18:
	cmp	DWORD PTR -8380[rbp], 4
	jle	.L47
	jmp	.L34
.L56:
	nop
	jmp	.L34
.L57:
	nop
	jmp	.L34
.L58:
	nop
	jmp	.L34
.L59:
	nop
	jmp	.L34
.L61:
	nop
	jmp	.L34
.L62:
	nop
	jmp	.L34
.L63:
	nop
.L34:
	mov	eax, DWORD PTR -8376[rbp]
.L48:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	rcx_send, .-rcx_send
	.section	.rodata
.LC8:
	.string	"usage: %s byte [byte ...]\n"
.LC9:
	.string	"RCXTTY"
.LC10:
	.string	"/dev/ttyS0"
.LC11:
	.string	"%s: Bad link.\n"
.LC12:
	.string	"%s: Bad response.\n"
.LC13:
	.string	"%s: No response.\n"
.LC14:
	.string	"%s: Response too large.\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 64
	mov	DWORD PTR -8244[rbp], edi
	mov	QWORD PTR -8256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -8208[rbp]
	mov	QWORD PTR -8224[rbp], rax
	cmp	DWORD PTR -8244[rbp], 1
	jne	.L65
	mov	rax, QWORD PTR -8256[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L65:
	lea	rdi, .LC9[rip]
	call	getenv@PLT
	mov	QWORD PTR -8216[rbp], rax
	cmp	QWORD PTR -8216[rbp], 0
	jne	.L66
	lea	rax, .LC10[rip]
	mov	QWORD PTR -8216[rbp], rax
.L66:
	mov	rax, QWORD PTR -8216[rbp]
	mov	rdi, rax
	call	rcx_init
	mov	DWORD PTR -8232[rbp], eax
	mov	DWORD PTR -8236[rbp], 1
	jmp	.L67
.L68:
	mov	eax, DWORD PTR -8236[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8256[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR -8224[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8224[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -8236[rbp], 1
.L67:
	mov	eax, DWORD PTR -8236[rbp]
	cmp	eax, DWORD PTR -8244[rbp]
	jl	.L68
	lea	rdx, -8208[rbp]
	mov	rax, QWORD PTR -8224[rbp]
	sub	rax, rdx
	mov	edi, eax
	lea	rdx, -4112[rbp]
	lea	rsi, -8208[rbp]
	mov	eax, DWORD PTR -8232[rbp]
	mov	r8d, 4096
	mov	rcx, rdx
	mov	edx, edi
	mov	edi, eax
	call	rcx_send
	mov	DWORD PTR -8228[rbp], eax
	mov	eax, DWORD PTR -8232[rbp]
	mov	edi, eax
	call	rcx_close
	cmp	DWORD PTR -8228[rbp], -2
	jne	.L69
	mov	rax, QWORD PTR -8256[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 4
	call	exit@PLT
.L69:
	cmp	DWORD PTR -8228[rbp], -1
	jne	.L70
	mov	rax, QWORD PTR -8256[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L70:
	cmp	DWORD PTR -8228[rbp], 0
	jne	.L71
	mov	rax, QWORD PTR -8256[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 3
	call	exit@PLT
.L71:
	cmp	DWORD PTR -8228[rbp], 4096
	jle	.L72
	mov	rax, QWORD PTR -8256[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 5
	call	exit@PLT
.L72:
	mov	edx, DWORD PTR -8228[rbp]
	lea	rax, -4112[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	hexdump
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L74
	call	__stack_chk_fail@PLT
.L74:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"830260.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%04x: \000"
	.align	2
.LC1:
	.ascii	"%02x \000"
	.text
	.align	2
	.global	hexdump
	.syntax unified
	.arm
	.fpu softvfp
	.type	hexdump, %function
hexdump:
	@ 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, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L7:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #16
	ble	.L3
	mov	r3, #16
	str	r3, [fp, #-8]
.L3:
	ldr	r1, [fp, #-16]
	ldr	r0, .L8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L4
.L6:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L8+4
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L5
	mov	r0, #32
	bl	putchar
.L5:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L4:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L6
	mov	r0, #10
	bl	putchar
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L7
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.size	hexdump, .-hexdump
	.section	.rodata
	.align	2
.LC2:
	.ascii	"open\000"
	.align	2
.LC3:
	.ascii	"%s: not a tty\012\000"
	.align	2
.LC4:
	.ascii	"tcsetattr\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	rcx_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	rcx_init, %function
rcx_init:
	@ 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, #-80]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #2
	ldr	r0, [fp, #-80]
	bl	open
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L16+4
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	ldr	r0, [fp, #-72]
	bl	isatty
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r0, [fp, #-72]
	bl	close
	ldr	r3, .L16+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L16+12
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L12:
	sub	r3, fp, #68
	mov	r2, #60
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2992
	str	r3, [fp, #-60]
	sub	r3, fp, #68
	mov	r1, #11
	mov	r0, r3
	bl	cfsetispeed
	sub	r3, fp, #68
	mov	r1, #11
	mov	r0, r3
	bl	cfsetospeed
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	tcsetattr
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L16+16
	bl	perror
	mov	r0, #1
	bl	exit
.L13:
	ldr	r3, [fp, #-72]
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC5
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.size	rcx_init, .-rcx_init
	.align	2
	.global	rcx_close
	.syntax unified
	.arm
	.fpu softvfp
	.type	rcx_close, %function
rcx_close:
	@ 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	close
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	rcx_close, .-rcx_close
	.section	.rodata
	.align	2
.LC6:
	.ascii	"write\000"
	.align	2
.LC7:
	.ascii	"select\000"
	.align	2
.LC8:
	.ascii	"read\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	rcx_send
	.syntax unified
	.arm
	.fpu softvfp
	.type	rcx_send, %function
rcx_send:
	@ args = 4, pretend = 0, frame = 8392
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8384
	sub	sp, sp, #20
	sub	ip, fp, #8192
	sub	ip, ip, #12
	str	r0, [ip, #-188]
	sub	r0, fp, #8192
	sub	r0, r0, #12
	str	r1, [r0, #-192]
	sub	r1, fp, #8192
	sub	r1, r1, #12
	str	r2, [r1, #-196]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-200]
	ldr	r3, .L70
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-192]
	str	r3, [r2, #-184]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-180]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-164]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-180]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-180]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	add	r3, r2, r3
	mov	r2, #85
	strb	r2, [r3, #-4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-180]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-180]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	add	r3, r2, r3
	mvn	r2, #0
	strb	r2, [r3, #-4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-180]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-180]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-4]
	b	.L20
.L21:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-180]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-180]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-184]
	ldrb	r2, [r2]	@ zero_extendqisi2
	sub	r1, fp, #8192
	sub	r1, r1, #12
	add	r3, r1, r3
	strb	r2, [r3, #-4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-184]
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-180]
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	add	r1, r3, #1
	str	r1, [r0, #-180]
	mvn	r2, r2
	and	r2, r2, #255
	sub	r1, fp, #8192
	sub	r1, r1, #12
	add	r3, r1, r3
	strb	r2, [r3, #-4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-184]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-184]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-164]
	add	r3, r3, r1
	str	r3, [r2, #-164]
.L20:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, r3, #1
	str	r2, [r1, #-196]
	cmp	r3, #0
	bne	.L21
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-180]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-180]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-164]
	and	r2, r2, #255
	sub	r1, fp, #8192
	sub	r1, r1, #12
	add	r3, r1, r3
	strb	r2, [r3, #-4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-164]
	and	r2, r3, #255
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-180]
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	add	r1, r3, #1
	str	r1, [r0, #-180]
	mvn	r2, r2
	and	r2, r2, #255
	sub	r1, fp, #8192
	sub	r1, r1, #12
	add	r3, r1, r3
	strb	r2, [r3, #-4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-160]
	b	.L22
.L53:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-180]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-188]
	bl	write
	mov	r2, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-180]
	cmp	r3, r2
	beq	.L23
	ldr	r0, .L70+4
	bl	perror
	mov	r0, #1
	bl	exit
.L23:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-176]
.L30:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8320
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-148]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-152]
	b	.L24
.L25:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-148]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-152]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-152]
	add	r3, r3, #1
	str	r3, [r2, #-152]
.L24:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-152]
	cmp	r3, #31
	bls	.L25
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-188]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-188]
	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
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-132]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-140]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L70+8
	str	r3, [r2, #-136]
	sub	r1, fp, #8320
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8320
	sub	r3, r3, #12
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r0, #1024
	bl	select
	mov	r3, r0
	cmn	r3, #1
	bne	.L26
	ldr	r0, .L70+12
	bl	perror
	mov	r0, #1
	bl	exit
.L26:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-188]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	sub	r2, fp, #8192
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-132]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-188]
	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	.L57
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-176]
	add	r1, r3, r2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-176]
	rsb	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-188]
	bl	read
	str	r0, [r4, #-144]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-144]
	cmn	r3, #1
	bne	.L29
	ldr	r0, .L70+16
	bl	perror
	mov	r0, #1
	bl	exit
.L29:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-176]
	ldr	r3, [r3, #-144]
	add	r3, r2, r3
	str	r3, [r1, #-176]
	b	.L30
.L57:
	nop
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mvn	r3, #1
	str	r3, [r2, #-156]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-176]
	ldr	r3, [r3, #-180]
	cmp	r2, r3
	blt	.L58
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-172]
	b	.L33
.L36:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-172]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-172]
	add	r3, r1, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L59
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-172]
	add	r3, r3, #1
	str	r3, [r2, #-172]
.L33:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-172]
	ldr	r3, [r3, #-180]
	cmp	r2, r3
	blt	.L36
	b	.L35
.L59:
	nop
.L35:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-172]
	ldr	r3, [r3, #-180]
	cmp	r2, r3
	blt	.L60
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-156]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-172]
	ldr	r3, [r3, #-176]
	cmp	r2, r3
	beq	.L61
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-156]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-176]
	ldr	r3, [r3, #-172]
	sub	r3, r2, r3
	cmp	r3, #4
	ble	.L62
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-172]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-172]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	cmp	r3, #85
	bne	.L63
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-172]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-172]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	cmp	r3, #255
	bne	.L64
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-172]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-172]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L65
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-164]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-168]
	b	.L44
.L48:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-172]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-172]
	add	r3, r3, #1
	sub	r1, fp, #4096
	sub	r1, r1, #12
	add	r3, r1, r3
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	mvn	r3, r3
	and	r3, r3, #255
	cmp	r2, r3
	bne	.L66
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-172]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-164]
	add	r3, r3, r1
	str	r3, [r2, #-164]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-168]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	bge	.L47
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-168]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-200]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-172]
	add	r2, r1, r2
	sub	r2, r2, #4
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L47:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-172]
	add	r3, r3, #2
	str	r3, [r2, #-172]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-168]
	add	r3, r3, #1
	str	r3, [r2, #-168]
.L44:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-176]
	sub	r3, r3, #2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-172]
	cmp	r2, r3
	blt	.L48
	b	.L46
.L66:
	nop
.L46:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-176]
	sub	r3, r3, #2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-172]
	cmp	r2, r3
	bne	.L67
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-172]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-172]
	add	r3, r3, #1
	sub	r1, fp, #4096
	sub	r1, r1, #12
	add	r3, r1, r3
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	mvn	r3, r3
	and	r3, r3, #255
	cmp	r2, r3
	bne	.L68
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-164]
	and	r3, r3, #255
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-172]
	add	r2, r1, r2
	sub	r2, r2, #4
	ldrb	r2, [r2]	@ zero_extendqisi2
	cmp	r3, r2
	bne	.L69
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-168]
	b	.L54
.L58:
	nop
	b	.L32
.L60:
	nop
	b	.L32
.L61:
	nop
.L32:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-160]
	add	r3, r3, #1
	str	r3, [r2, #-160]
.L22:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-160]
	cmp	r3, #4
	ble	.L53
	b	.L40
.L62:
	nop
	b	.L40
.L63:
	nop
	b	.L40
.L64:
	nop
	b	.L40
.L65:
	nop
	b	.L40
.L67:
	nop
	b	.L40
.L68:
	nop
	b	.L40
.L69:
	nop
.L40:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-156]
.L54:
	ldr	r2, .L70
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L55
	bl	__stack_chk_fail
.L55:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC9
	.word	.LC6
	.word	300000
	.word	.LC7
	.word	.LC8
	.size	rcx_send, .-rcx_send
	.section	.rodata
	.align	2
.LC10:
	.ascii	"usage: %s byte [byte ...]\012\000"
	.align	2
.LC11:
	.ascii	"RCXTTY\000"
	.align	2
.LC12:
	.ascii	"/dev/ttyS0\000"
	.align	2
.LC13:
	.ascii	"%s: Bad link.\012\000"
	.align	2
.LC14:
	.ascii	"%s: Bad response.\012\000"
	.align	2
.LC15:
	.ascii	"%s: No response.\012\000"
	.align	2
.LC16:
	.ascii	"%s: Response too large.\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8192
	sub	sp, sp, #44
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-28]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-32]
	ldr	r3, .L83
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-24]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmp	r3, #1
	bne	.L73
	ldr	r3, .L83+4
	ldr	r0, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L83+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L73:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r0, .L83+12
	bl	getenv
	str	r0, [r4, #-20]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	cmp	r3, #0
	bne	.L74
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L83+16
	str	r3, [r2, #-20]
.L74:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-20]
	bl	rcx_init
	str	r0, [r4, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-16]
	b	.L75
.L76:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	lsl	r3, r3, #2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r1, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	add	r2, r3, #1
	str	r2, [r0, #-24]
	and	r2, r1, #255
	strb	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r3, r3, #1
	str	r3, [r2, #-16]
.L75:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-16]
	ldr	r3, [r3, #-28]
	cmp	r2, r3
	blt	.L76
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-24]
	sub	r2, r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #8192
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r0, fp, #8192
	sub	r0, r0, #12
	mov	ip, r0
	mov	r0, #4096
	str	r0, [sp]
	ldr	r0, [ip, #-12]
	bl	rcx_send
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	rcx_close
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmn	r3, #2
	bne	.L77
	ldr	r3, .L83+4
	ldr	r0, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L83+20
	bl	fprintf
	mov	r0, #4
	bl	exit
.L77:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmn	r3, #1
	bne	.L78
	ldr	r3, .L83+4
	ldr	r0, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L83+24
	bl	fprintf
	mov	r0, #2
	bl	exit
.L78:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bne	.L79
	ldr	r3, .L83+4
	ldr	r0, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L83+28
	bl	fprintf
	mov	r0, #3
	bl	exit
.L79:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #4096
	ble	.L80
	ldr	r3, .L83+4
	ldr	r0, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L83+32
	bl	fprintf
	mov	r0, #5
	bl	exit
.L80:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-8]
	mov	r0, r3
	bl	hexdump
	mov	r3, #0
	ldr	r2, .L83
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L82
	bl	__stack_chk_fail
.L82:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L84:
	.align	2
.L83:
	.word	.LC17
	.word	stderr
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
