	.file	"159217.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%-*d"
.LC1:
	.string	"%*d"
.LC2:
	.string	"%0*d"
	.text
	.globl	out
	.type	out, @function
out:
.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, 160
	mov	DWORD PTR -132[rbp], edi
	mov	DWORD PTR -136[rbp], esi
	mov	DWORD PTR -140[rbp], edx
	mov	DWORD PTR -144[rbp], ecx
	mov	DWORD PTR -148[rbp], r8d
	mov	QWORD PTR -160[rbp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -144[rbp], 1
	jne	.L2
	mov	edx, DWORD PTR -132[rbp]
	lea	rax, -112[rbp]
	mov	ecx, edx
	mov	edx, DWORD PTR 16[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -120[rbp], eax
.L2:
	cmp	DWORD PTR -144[rbp], 2
	jne	.L3
	mov	edx, DWORD PTR -132[rbp]
	lea	rax, -112[rbp]
	mov	ecx, edx
	mov	edx, DWORD PTR 16[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -120[rbp], eax
.L3:
	cmp	DWORD PTR -144[rbp], 3
	jne	.L4
	mov	edx, DWORD PTR -132[rbp]
	lea	rax, -112[rbp]
	mov	ecx, edx
	mov	edx, DWORD PTR 16[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -120[rbp], eax
.L4:
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	lea	rax, -112[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	eax, DWORD PTR -148[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	jmp	.L5
.L15:
	movzx	eax, BYTE PTR -121[rbp]
	cmp	al, 10
	je	.L6
	lea	rax, -121[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
.L6:
	movzx	eax, BYTE PTR -121[rbp]
	cmp	al, 10
	jne	.L5
	lea	rax, -121[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	eax, DWORD PTR -140[rbp]
	add	DWORD PTR -132[rbp], eax
	lea	rcx, -121[rbp]
	mov	eax, DWORD PTR -136[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -116[rbp], eax
	jmp	.L7
.L9:
	lea	rax, -121[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	lea	rcx, -121[rbp]
	mov	eax, DWORD PTR -136[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -116[rbp], eax
.L7:
	cmp	DWORD PTR -116[rbp], 0
	jle	.L8
	movzx	eax, BYTE PTR -121[rbp]
	cmp	al, 10
	je	.L9
.L8:
	cmp	DWORD PTR -116[rbp], 0
	jle	.L10
	cmp	DWORD PTR -144[rbp], 1
	jne	.L11
	mov	edx, DWORD PTR -132[rbp]
	lea	rax, -112[rbp]
	mov	ecx, edx
	mov	edx, DWORD PTR 16[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -120[rbp], eax
.L11:
	cmp	DWORD PTR -144[rbp], 2
	jne	.L12
	mov	edx, DWORD PTR -132[rbp]
	lea	rax, -112[rbp]
	mov	ecx, edx
	mov	edx, DWORD PTR 16[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -120[rbp], eax
.L12:
	cmp	DWORD PTR -144[rbp], 3
	jne	.L13
	mov	edx, DWORD PTR -132[rbp]
	lea	rax, -112[rbp]
	mov	ecx, edx
	mov	edx, DWORD PTR 16[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -120[rbp], eax
.L13:
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	lea	rax, -112[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	eax, DWORD PTR -148[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	lea	rax, -121[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
.L10:
	cmp	DWORD PTR -116[rbp], 0
	jg	.L5
	mov	eax, DWORD PTR -132[rbp]
	jmp	.L16
.L5:
	lea	rcx, -121[rbp]
	mov	eax, DWORD PTR -136[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jg	.L15
	mov	eax, DWORD PTR -140[rbp]
	add	DWORD PTR -132[rbp], eax
	mov	BYTE PTR -121[rbp], 10
	lea	rax, -121[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	eax, DWORD PTR -132[rbp]
.L16:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	out, .-out
	.section	.rodata
.LC3:
	.string	"-i"
.LC4:
	.string	"-n"
.LC5:
	.string	"ln"
.LC6:
	.string	"rn"
.LC7:
	.string	"rz"
.LC8:
	.string	"-s"
.LC9:
	.string	"-w"
.LC10:
	.string	"-"
	.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
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -108[rbp], 1
	mov	DWORD PTR -104[rbp], 1
	mov	DWORD PTR -100[rbp], 2
	mov	QWORD PTR -64[rbp], 32
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	WORD PTR -16[rbp], 0
	mov	DWORD PTR -96[rbp], 1
	mov	DWORD PTR -92[rbp], 6
	mov	DWORD PTR -88[rbp], 0
	mov	DWORD PTR -84[rbp], 1
	jmp	.L19
.L34:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jge	.L20
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 2
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L20
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 5
	jle	.L21
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, 1
	jmp	.L39
.L21:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, 2[rax]
	lea	rax, -67[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -67[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -104[rbp], eax
	cmp	DWORD PTR -104[rbp], 0
	jle	.L23
	cmp	DWORD PTR -104[rbp], 100
	jle	.L20
.L23:
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, 1
	jmp	.L39
.L20:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jge	.L24
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 2
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L24
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 5
	jle	.L25
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, 1
	jmp	.L39
.L25:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, 2[rax]
	lea	rax, -67[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -67[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L26
	mov	DWORD PTR -100[rbp], 1
.L26:
	lea	rax, -67[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L27
	mov	DWORD PTR -100[rbp], 2
.L27:
	lea	rax, -67[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L24
	mov	DWORD PTR -100[rbp], 3
.L24:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jge	.L28
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 2
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L28
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], 52
	jle	.L29
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, 1
	jmp	.L39
.L29:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, 2[rax]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -96[rbp], eax
.L28:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jge	.L30
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 2
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L30
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 5
	jle	.L31
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, 1
	jmp	.L39
.L31:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, 2[rax]
	lea	rax, -67[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -67[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 1
	jle	.L32
	cmp	DWORD PTR -92[rbp], 100
	jle	.L30
.L32:
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, 1
	jmp	.L39
.L30:
	add	DWORD PTR -84[rbp], 1
.L19:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jge	.L33
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 1
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L34
.L33:
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR -80[rbp], eax
	jmp	.L35
.L37:
	mov	DWORD PTR -88[rbp], 1
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], -1
	jne	.L36
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, 1
	jmp	.L39
.L36:
	lea	r9, -64[rbp]
	mov	r8d, DWORD PTR -96[rbp]
	mov	ecx, DWORD PTR -100[rbp]
	mov	edx, DWORD PTR -104[rbp]
	mov	esi, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -108[rbp]
	sub	rsp, 8
	mov	edi, DWORD PTR -92[rbp]
	push	rdi
	mov	edi, eax
	call	out
	add	rsp, 16
	mov	DWORD PTR -108[rbp], eax
	add	DWORD PTR -80[rbp], 1
.L35:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -116[rbp]
	jl	.L37
	cmp	DWORD PTR -88[rbp], 0
	jne	.L38
	lea	r8, -64[rbp]
	mov	edi, DWORD PTR -96[rbp]
	mov	ecx, DWORD PTR -100[rbp]
	mov	edx, DWORD PTR -104[rbp]
	mov	eax, DWORD PTR -108[rbp]
	sub	rsp, 8
	mov	esi, DWORD PTR -92[rbp]
	push	rsi
	mov	r9, r8
	mov	r8d, edi
	mov	esi, 0
	mov	edi, eax
	call	out
	add	rsp, 16
	mov	DWORD PTR -108[rbp], eax
.L38:
	mov	eax, 0
.L39:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	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	"159217.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%-*d\000"
	.align	2
.LC1:
	.ascii	"%*d\000"
	.align	2
.LC2:
	.ascii	"%0*d\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	out
	.syntax unified
	.arm
	.fpu softvfp
	.type	out, %function
out:
	@ args = 12, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	str	r2, [fp, #-136]
	str	r3, [fp, #-140]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-144]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-140]
	cmp	r3, #1
	bne	.L2
	sub	r0, fp, #108
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #12]
	ldr	r1, .L18+4
	bl	sprintf
	str	r0, [fp, #-116]
.L2:
	ldr	r3, [fp, #-140]
	cmp	r3, #2
	bne	.L3
	sub	r0, fp, #108
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #12]
	ldr	r1, .L18+8
	bl	sprintf
	str	r0, [fp, #-116]
.L3:
	ldr	r3, [fp, #-140]
	cmp	r3, #3
	bne	.L4
	sub	r0, fp, #108
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #12]
	ldr	r1, .L18+12
	bl	sprintf
	str	r0, [fp, #-116]
.L4:
	ldr	r2, [fp, #-116]
	sub	r3, fp, #108
	mov	r1, r3
	mov	r0, #1
	bl	write
	ldr	r3, [fp, #4]
	mov	r2, r3
	ldr	r1, [fp, #-144]
	mov	r0, #1
	bl	write
	b	.L5
.L15:
	ldrb	r3, [fp, #-117]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L6
	sub	r3, fp, #117
	mov	r2, #1
	mov	r1, r3
	mov	r0, #1
	bl	write
.L6:
	ldrb	r3, [fp, #-117]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L5
	sub	r3, fp, #117
	mov	r2, #1
	mov	r1, r3
	mov	r0, #1
	bl	write
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-136]
	add	r3, r2, r3
	str	r3, [fp, #-128]
	sub	r3, fp, #117
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-132]
	bl	read
	str	r0, [fp, #-112]
	b	.L7
.L9:
	sub	r3, fp, #117
	mov	r2, #1
	mov	r1, r3
	mov	r0, #1
	bl	write
	sub	r3, fp, #117
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-132]
	bl	read
	str	r0, [fp, #-112]
.L7:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	ble	.L8
	ldrb	r3, [fp, #-117]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L9
.L8:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	ble	.L10
	ldr	r3, [fp, #-140]
	cmp	r3, #1
	bne	.L11
	sub	r0, fp, #108
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #12]
	ldr	r1, .L18+4
	bl	sprintf
	str	r0, [fp, #-116]
.L11:
	ldr	r3, [fp, #-140]
	cmp	r3, #2
	bne	.L12
	sub	r0, fp, #108
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #12]
	ldr	r1, .L18+8
	bl	sprintf
	str	r0, [fp, #-116]
.L12:
	ldr	r3, [fp, #-140]
	cmp	r3, #3
	bne	.L13
	sub	r0, fp, #108
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #12]
	ldr	r1, .L18+12
	bl	sprintf
	str	r0, [fp, #-116]
.L13:
	ldr	r2, [fp, #-116]
	sub	r3, fp, #108
	mov	r1, r3
	mov	r0, #1
	bl	write
	ldr	r3, [fp, #4]
	mov	r2, r3
	ldr	r1, [fp, #-144]
	mov	r0, #1
	bl	write
	sub	r3, fp, #117
	mov	r2, #1
	mov	r1, r3
	mov	r0, #1
	bl	write
.L10:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bgt	.L5
	ldr	r3, [fp, #-128]
	b	.L16
.L5:
	sub	r3, fp, #117
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-132]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bgt	.L15
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-136]
	add	r3, r2, r3
	str	r3, [fp, #-128]
	mov	r3, #10
	strb	r3, [fp, #-117]
	sub	r3, fp, #117
	mov	r2, #1
	mov	r1, r3
	mov	r0, #1
	bl	write
	ldr	r3, [fp, #-128]
.L16:
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	out, .-out
	.section	.rodata
	.align	2
.LC4:
	.ascii	"-i\000"
	.align	2
.LC5:
	.ascii	"-n\000"
	.align	2
.LC6:
	.ascii	"ln\000"
	.align	2
.LC7:
	.ascii	"rn\000"
	.align	2
.LC8:
	.ascii	"rz\000"
	.align	2
.LC9:
	.ascii	"-s\000"
	.align	2
.LC10:
	.ascii	"-w\000"
	.align	2
.LC11:
	.ascii	"-\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-104]
	mov	r3, #1
	str	r3, [fp, #-100]
	mov	r3, #2
	str	r3, [fp, #-96]
	mov	r3, #32
	str	r3, [fp, #-60]
	sub	r3, fp, #56
	mov	r2, #46
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-92]
	mov	r3, #6
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-84]
	mov	r3, #1
	str	r3, [fp, #-80]
	b	.L21
.L36:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	bge	.L22
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r1, .L43+4
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #5
	ble	.L23
	ldr	r3, [fp, #-116]
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r3, #1
	b	.L41
.L23:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r2, r3, #2
	sub	r3, fp, #64
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #64
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	ble	.L25
	ldr	r3, [fp, #-100]
	cmp	r3, #100
	ble	.L22
.L25:
	ldr	r3, [fp, #-116]
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r3, #1
	b	.L41
.L22:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	bge	.L26
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r1, .L43+8
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #5
	ble	.L27
	ldr	r3, [fp, #-116]
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r3, #1
	b	.L41
.L27:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r2, r3, #2
	sub	r3, fp, #64
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #64
	ldr	r1, .L43+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	mov	r3, #1
	str	r3, [fp, #-96]
.L28:
	sub	r3, fp, #64
	ldr	r1, .L43+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	mov	r3, #2
	str	r3, [fp, #-96]
.L29:
	sub	r3, fp, #64
	ldr	r1, .L43+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	mov	r3, #3
	str	r3, [fp, #-96]
.L26:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	bge	.L30
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r1, .L43+24
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #52
	ble	.L31
	ldr	r3, [fp, #-116]
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r3, #1
	b	.L41
.L31:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r2, r3, #2
	sub	r3, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #60
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-92]
.L30:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	bge	.L32
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r1, .L43+28
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #5
	ble	.L33
	ldr	r3, [fp, #-116]
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r3, #1
	b	.L41
.L33:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r2, r3, #2
	sub	r3, fp, #64
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #64
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #1
	ble	.L34
	ldr	r3, [fp, #-88]
	cmp	r3, #100
	ble	.L32
.L34:
	ldr	r3, [fp, #-116]
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r3, #1
	b	.L41
.L32:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L21:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	bge	.L35
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, .L43+32
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
.L35:
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-76]
	b	.L37
.L39:
	mov	r3, #1
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmn	r3, #1
	bne	.L38
	ldr	r3, [fp, #-116]
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r3, #1
	b	.L41
.L38:
	ldr	r3, [fp, #-88]
	str	r3, [sp, #8]
	sub	r3, fp, #60
	str	r3, [sp, #4]
	ldr	r3, [fp, #-92]
	str	r3, [sp]
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-100]
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-104]
	bl	out
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L37:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	blt	.L39
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L40
	ldr	r3, [fp, #-88]
	str	r3, [sp, #8]
	sub	r3, fp, #60
	str	r3, [sp, #4]
	ldr	r3, [fp, #-92]
	str	r3, [sp]
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-100]
	mov	r1, #0
	ldr	r0, [fp, #-104]
	bl	out
	str	r0, [fp, #-104]
.L40:
	mov	r3, #0
.L41:
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC12
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
