	.file	"777267.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%4d | "
.LC1:
	.string	"*** "
.LC2:
	.string	"    "
.LC3:
	.string	"      "
.LC4:
	.string	"\342\200\276\342\200\276\342\200\276\342\200\276"
.LC5:
	.string	"\n       "
.LC6:
	.string	"%3d "
.LC7:
	.string	">%2d \n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -124[rbp], 0
	mov	DWORD PTR -120[rbp], 0
	mov	DWORD PTR -116[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	DWORD PTR -80[rbp+rax*4], 0
	add	DWORD PTR -116[rbp], 1
.L2:
	cmp	DWORD PTR -116[rbp], 17
	jle	.L3
	jmp	.L4
.L9:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L5
	mov	DWORD PTR -120[rbp], 0
	cmp	DWORD PTR -124[rbp], 17
	jle	.L6
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L7
.L6:
	cmp	DWORD PTR -124[rbp], 0
	jle	.L7
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	edx, DWORD PTR -80[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -80[rbp+rax*4], edx
.L7:
	mov	DWORD PTR -124[rbp], 0
	jmp	.L8
.L5:
	cmp	DWORD PTR -120[rbp], 0
	jne	.L8
	mov	DWORD PTR -120[rbp], 1
.L8:
	cmp	DWORD PTR -120[rbp], 1
	jne	.L4
	add	DWORD PTR -124[rbp], 1
.L4:
	call	getchar@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], -1
	jne	.L9
	mov	DWORD PTR -112[rbp], 0
	mov	DWORD PTR -108[rbp], 0
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	mov	eax, DWORD PTR -80[rbp+rax*4]
	cmp	DWORD PTR -112[rbp], eax
	jge	.L11
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	mov	eax, DWORD PTR -80[rbp+rax*4]
	mov	DWORD PTR -112[rbp], eax
.L11:
	add	DWORD PTR -108[rbp], 1
.L10:
	cmp	DWORD PTR -108[rbp], 17
	jle	.L12
	mov	eax, DWORD PTR -112[rbp]
	mov	DWORD PTR -104[rbp], eax
	jmp	.L13
.L18:
	mov	edx, DWORD PTR -104[rbp]
	movsx	rax, edx
	imul	rax, rax, 1759218605
	shr	rax, 32
	sar	eax, 12
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 10000
	mov	eax, edx
	sub	eax, ecx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -100[rbp], 0
	jmp	.L14
.L17:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	eax, DWORD PTR -80[rbp+rax*4]
	cmp	DWORD PTR -104[rbp], eax
	jg	.L15
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L16
.L15:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	add	DWORD PTR -100[rbp], 1
.L14:
	cmp	DWORD PTR -100[rbp], 17
	jle	.L17
	mov	edi, 10
	call	putchar@PLT
	sub	DWORD PTR -104[rbp], 1
.L13:
	cmp	DWORD PTR -104[rbp], 0
	jg	.L18
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -96[rbp], 0
	jmp	.L19
.L20:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -96[rbp], 1
.L19:
	cmp	DWORD PTR -96[rbp], 17
	jle	.L20
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -92[rbp], 1
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -92[rbp], 1
.L21:
	cmp	DWORD PTR -92[rbp], 17
	jle	.L22
	mov	esi, 17
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"777267.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%4d | \000"
	.align	2
.LC1:
	.ascii	"*** \000"
	.align	2
.LC2:
	.ascii	"    \000"
	.align	2
.LC3:
	.ascii	"      \000"
	.align	2
.LC4:
	.ascii	"\342\200\276\342\200\276\342\200\276\342\200\276\000"
	.align	2
.LC5:
	.ascii	"\012       \000"
	.align	2
.LC6:
	.ascii	"%3d \000"
	.align	2
.LC7:
	.ascii	">%2d \012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L2
.L3:
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-76]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L2:
	ldr	r3, [fp, #-116]
	cmp	r3, #17
	ble	.L3
	b	.L4
.L9:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L5
	mov	r3, #0
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-124]
	cmp	r3, #17
	ble	.L6
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L7
.L6:
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	ble	.L7
	ldr	r3, [fp, #-124]
	sub	r2, r3, #1
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-76]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-76]
.L7:
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L8
.L5:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L8
	mov	r3, #1
	str	r3, [fp, #-120]
.L8:
	ldr	r3, [fp, #-120]
	cmp	r3, #1
	bne	.L4
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L4:
	bl	getchar
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmn	r3, #1
	bne	.L9
	mov	r3, #0
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L10
.L12:
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-76]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	bge	.L11
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-76]
	str	r3, [fp, #-112]
.L11:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L10:
	ldr	r3, [fp, #-108]
	cmp	r3, #17
	ble	.L12
	ldr	r3, [fp, #-112]
	str	r3, [fp, #-104]
	b	.L13
.L18:
	ldr	r1, [fp, #-104]
	ldr	r3, .L25+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #12
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r2, r1, r3
	mov	r1, r2
	ldr	r0, .L25+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L14
.L17:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-76]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	bgt	.L15
	ldr	r0, .L25+12
	bl	printf
	b	.L16
.L15:
	ldr	r0, .L25+16
	bl	printf
.L16:
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L14:
	ldr	r3, [fp, #-100]
	cmp	r3, #17
	ble	.L17
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	str	r3, [fp, #-104]
.L13:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bgt	.L18
	ldr	r0, .L25+20
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L19
.L20:
	ldr	r0, .L25+24
	bl	printf
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L19:
	ldr	r3, [fp, #-96]
	cmp	r3, #17
	ble	.L20
	ldr	r0, .L25+28
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-92]
	b	.L21
.L22:
	ldr	r1, [fp, #-92]
	ldr	r0, .L25+32
	bl	printf
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L21:
	ldr	r3, [fp, #-92]
	cmp	r3, #17
	ble	.L22
	mov	r1, #17
	ldr	r0, .L25+36
	bl	printf
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC8
	.word	1759218605
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
