	.file	"51700806.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s"
	.text
	.type	cat, @function
cat:
.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, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L4:
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], 0
	jle	.L7
	mov	eax, DWORD PTR -276[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], 0
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L7:
	nop
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cat, .-cat
	.section	.rodata
	.align 8
.LC1:
	.ascii	"stdout: echo '1' to the stdout with no linefeed.\nstderr: ec"
	.ascii	"ho '2' to the stderr with no linefeed.\ncat:    cat the stdi"
	.ascii	"n to the stdout (does not take arguments)\n{}:     wrap the "
	.ascii	"stdin with {}\nincr:   read the first intter f"
	.string	"rom the stdin, add 1, and print to stdout.\ncomma:  read the rest of the arguments and print to the stdout comma separated.\ntrue:   set the return value to 0 (the default).\nfalse:  set the return value to 1.\nreturn: set the return value to the next argument"
.LC2:
	.string	"stdout"
.LC3:
	.string	"stderr"
.LC4:
	.string	"cat"
.LC5:
	.string	"{}"
.LC6:
	.string	"incr"
.LC7:
	.string	"%d"
.LC8:
	.string	"comma"
.LC9:
	.string	""
.LC10:
	.string	"%s%s"
.LC11:
	.string	","
.LC12:
	.string	"false"
.LC13:
	.string	"return"
.LC14:
	.string	"\nInvalid option %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 0
	cmp	DWORD PTR -36[rbp], 1
	jne	.L9
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -24[rbp]
	jmp	.L10
.L9:
	mov	DWORD PTR -20[rbp], 1
	jmp	.L11
.L24:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L12
	mov	edi, 49
	call	putchar@PLT
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 50
	call	fputc@PLT
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
	call	cat
	jmp	.L13
.L15:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L16
	mov	edi, 123
	call	putchar@PLT
	call	cat
	mov	edi, 125
	call	putchar@PLT
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L17
	mov	DWORD PTR -28[rbp], 0
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	test	eax, eax
	je	.L18
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	DWORD PTR -28[rbp], eax
.L18:
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L17:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L19
	lea	rax, .LC9[rip]
	mov	QWORD PTR -16[rbp], rax
	add	DWORD PTR -20[rbp], 1
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, .LC11[rip]
	mov	QWORD PTR -16[rbp], rax
	add	DWORD PTR -20[rbp], 1
.L20:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L21
	jmp	.L13
.L19:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L22
	mov	DWORD PTR -24[rbp], 1
	jmp	.L13
.L22:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L23
	add	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jge	.L13
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -24[rbp], eax
	jmp	.L13
.L23:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	add	DWORD PTR -20[rbp], 1
.L11:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L24
	mov	eax, DWORD PTR -24[rbp]
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"51700806.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cat, %function
cat:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L4:
	sub	r3, fp, #268
	mov	r2, #256
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	ble	.L7
	sub	r2, fp, #268
	ldr	r3, [fp, #-272]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #268
	mov	r1, r3
	ldr	r0, .L8+4
	bl	printf
	b	.L4
.L7:
	nop
	nop
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC1
	.word	.LC0
	.size	cat, .-cat
	.section	.rodata
	.align	2
.LC2:
	.ascii	"stdout: echo '1' to the stdout with no linefeed.\012"
	.ascii	"stderr: echo '2' to the stderr with no linefeed.\012"
	.ascii	"cat:    cat the stdin to the stdout (does not take "
	.ascii	"arguments)\012{}:     wrap the stdin with {}\012inc"
	.ascii	"r:   read the first intter from the stdin, add 1, a"
	.ascii	"nd print to stdout.\012comma:  read the rest of the"
	.ascii	" arguments and print to the stdout comma separated."
	.ascii	"\012true:   set the return value to 0 (the default)"
	.ascii	".\012false:  set the return value to 1.\012return: "
	.ascii	"set the return value to the next argument\000"
	.align	2
.LC3:
	.ascii	"stdout\000"
	.align	2
.LC4:
	.ascii	"stderr\000"
	.align	2
.LC5:
	.ascii	"cat\000"
	.align	2
.LC6:
	.ascii	"{}\000"
	.align	2
.LC7:
	.ascii	"incr\000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.ascii	"comma\000"
	.align	2
.LC10:
	.ascii	"\000"
	.align	2
.LC11:
	.ascii	"%s%s\000"
	.align	2
.LC12:
	.ascii	",\000"
	.align	2
.LC13:
	.ascii	"false\000"
	.align	2
.LC14:
	.ascii	"return\000"
	.align	2
.LC15:
	.ascii	"\012Invalid option %s\012\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L11
	ldr	r0, .L28+4
	bl	puts
	ldr	r3, [fp, #-20]
	b	.L12
.L11:
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L13
.L26:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L28+8
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	mov	r0, #49
	bl	putchar
	b	.L15
.L14:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L28+12
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L28+16
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #50
	bl	fputc
	b	.L15
.L16:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L28+20
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	bl	cat
	b	.L15
.L17:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L28+24
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	mov	r0, #123
	bl	putchar
	bl	cat
	mov	r0, #125
	bl	putchar
	b	.L15
.L18:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L28+28
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	mov	r3, #0
	str	r3, [fp, #-24]
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L28+32
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L20:
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L28+32
	bl	printf
	b	.L15
.L19:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L28+36
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L28+40
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L22
.L23:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, .L28+44
	bl	printf
	ldr	r3, .L28+48
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L22:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L23
	b	.L15
.L21:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L28+52
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L15
.L24:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L28+56
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bge	.L15
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-20]
	b	.L15
.L25:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L28+60
	bl	printf
.L15:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L13:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L26
	ldr	r3, [fp, #-20]
.L12:
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC16
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	stderr
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
