	.file	"92292.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%4c"
.LC1:
	.string	"%4d"
.LC2:
	.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
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 120
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -152[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	DWORD PTR -112[rbp+rax*4], 0
	add	DWORD PTR -152[rbp], 1
.L2:
	cmp	DWORD PTR -152[rbp], 10
	jle	.L3
	mov	DWORD PTR -144[rbp], 0
	mov	DWORD PTR -140[rbp], 0
	jmp	.L4
.L10:
	cmp	DWORD PTR -132[rbp], 32
	je	.L5
	cmp	DWORD PTR -132[rbp], 9
	je	.L5
	cmp	DWORD PTR -132[rbp], 10
	jne	.L6
.L5:
	cmp	DWORD PTR -140[rbp], 1
	jne	.L4
	mov	DWORD PTR -140[rbp], 0
	cmp	DWORD PTR -144[rbp], 11
	jle	.L8
	mov	DWORD PTR -144[rbp], 11
.L8:
	mov	eax, DWORD PTR -144[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	edx, DWORD PTR -112[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -112[rbp+rax*4], edx
	mov	DWORD PTR -144[rbp], 0
	jmp	.L4
.L6:
	cmp	DWORD PTR -140[rbp], 0
	jne	.L9
	mov	DWORD PTR -140[rbp], 1
.L9:
	add	DWORD PTR -144[rbp], 1
.L4:
	call	getchar@PLT
	mov	DWORD PTR -132[rbp], eax
	cmp	DWORD PTR -132[rbp], -1
	jne	.L10
	mov	DWORD PTR -136[rbp], 0
	mov	DWORD PTR -152[rbp], 0
	jmp	.L11
.L13:
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	eax, DWORD PTR -112[rbp+rax*4]
	cmp	DWORD PTR -136[rbp], eax
	jge	.L12
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	eax, DWORD PTR -112[rbp+rax*4]
	mov	DWORD PTR -136[rbp], eax
.L12:
	add	DWORD PTR -152[rbp], 1
.L11:
	cmp	DWORD PTR -152[rbp], 10
	jle	.L13
	mov	ecx, DWORD PTR -136[rbp]
	mov	rax, rsp
	mov	rbx, rax
	movsx	rax, ecx
	sub	rax, 1
	mov	QWORD PTR -128[rbp], rax
	movsx	rax, ecx
	mov	r14, rax
	mov	r15d, 0
	imul	rdx, r15, 352
	imul	rax, r14, 0
	lea	rsi, [rdx+rax]
	mov	eax, 352
	mul	r14
	add	rsi, rdx
	mov	rdx, rsi
	movsx	rdx, ecx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	movsx	rax, ecx
	mov	r12, rax
	mov	r13d, 0
	imul	rdx, r13, 352
	imul	rax, r12, 0
	lea	rsi, [rdx+rax]
	mov	eax, 352
	mul	r12
	add	rsi, rdx
	mov	rdx, rsi
	movsx	rdx, ecx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L14:
	cmp	rsp, rdx
	je	.L15
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L14
.L15:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L16
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L16:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -120[rbp], rax
	mov	DWORD PTR -152[rbp], 0
	jmp	.L17
.L20:
	mov	DWORD PTR -148[rbp], 0
	jmp	.L18
.L19:
	mov	rcx, QWORD PTR -120[rbp]
	mov	eax, DWORD PTR -148[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -152[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rsi
	mov	DWORD PTR [rcx+rax*4], 0
	add	DWORD PTR -148[rbp], 1
.L18:
	cmp	DWORD PTR -148[rbp], 10
	jle	.L19
	add	DWORD PTR -152[rbp], 1
.L17:
	mov	eax, DWORD PTR -152[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	jl	.L20
	mov	DWORD PTR -152[rbp], 0
	jmp	.L21
.L24:
	mov	DWORD PTR -148[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -136[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -148[rbp]
	mov	rcx, QWORD PTR -120[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rsi, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rsi
	mov	DWORD PTR [rcx+rax*4], 1
	add	DWORD PTR -148[rbp], 1
.L22:
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	eax, DWORD PTR -112[rbp+rax*4]
	cmp	DWORD PTR -148[rbp], eax
	jl	.L23
	add	DWORD PTR -152[rbp], 1
.L21:
	cmp	DWORD PTR -152[rbp], 10
	jle	.L24
	mov	DWORD PTR -152[rbp], 0
	jmp	.L25
.L30:
	mov	DWORD PTR -148[rbp], 0
	jmp	.L26
.L29:
	mov	rcx, QWORD PTR -120[rbp]
	mov	eax, DWORD PTR -148[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -152[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rsi
	mov	eax, DWORD PTR [rcx+rax*4]
	test	eax, eax
	je	.L27
	mov	esi, 35
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L28
.L27:
	mov	esi, 32
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L28:
	add	DWORD PTR -148[rbp], 1
.L26:
	cmp	DWORD PTR -148[rbp], 10
	jle	.L29
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -152[rbp], 1
.L25:
	mov	eax, DWORD PTR -152[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	jl	.L30
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -152[rbp], 0
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -152[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -152[rbp], 1
.L31:
	cmp	DWORD PTR -152[rbp], 9
	jle	.L32
	mov	esi, 10
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rsp, rbx
	mov	eax, 0
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.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	"92292.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%4c\000"
	.align	2
.LC1:
	.ascii	"%4d\000"
	.align	2
.LC2:
	.ascii	" +%2d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #84
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L2
.L3:
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-48]
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L2:
	ldr	r3, [fp, #-108]
	cmp	r3, #10
	ble	.L3
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L4
.L10:
	ldr	r3, [fp, #-88]
	cmp	r3, #32
	beq	.L5
	ldr	r3, [fp, #-88]
	cmp	r3, #9
	beq	.L5
	ldr	r3, [fp, #-88]
	cmp	r3, #10
	bne	.L6
.L5:
	ldr	r3, [fp, #-96]
	cmp	r3, #1
	bne	.L4
	mov	r3, #0
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-100]
	cmp	r3, #11
	ble	.L8
	mov	r3, #11
	str	r3, [fp, #-100]
.L8:
	ldr	r3, [fp, #-100]
	sub	r2, r3, #1
	lsl	r3, r2, #2
	sub	r1, fp, #28
	add	r3, r1, r3
	ldr	r3, [r3, #-48]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	str	r1, [r3, #-48]
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L4
.L6:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bne	.L9
	mov	r3, #1
	str	r3, [fp, #-96]
.L9:
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L4:
	bl	getchar
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmn	r3, #1
	bne	.L10
	mov	r3, #0
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L11
.L13:
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r3, [r3, #-48]
	ldr	r2, [fp, #-92]
	cmp	r2, r3
	bge	.L12
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r3, [r3, #-48]
	str	r3, [fp, #-92]
.L12:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L11:
	ldr	r3, [fp, #-108]
	cmp	r3, #10
	ble	.L13
	ldr	ip, [fp, #-92]
	mov	r3, sp
	mov	r8, r3
	sub	r3, ip, #1
	str	r3, [fp, #-84]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, r0
	mov	r3, r1
	adds	r4, r2, r2
	adc	r5, r3, r3
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #2
	orr	r5, r5, r2, lsr #30
	lsl	r4, r2, #2
	mov	r2, r4
	mov	r3, r5
	subs	r2, r2, r0
	sbc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r2, r0
	mov	r3, r1
	mov	r2, ip
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, r0
	mov	r3, r1
	adds	r6, r2, r2
	adc	r7, r3, r3
	mov	r2, r6
	mov	r3, r7
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #2
	orr	r5, r5, r2, lsr #30
	lsl	r4, r2, #2
	mov	r2, r4
	mov	r3, r5
	subs	r2, r2, r0
	sbc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r2, r0
	mov	r3, r1
	mov	r2, ip
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L14
.L17:
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L15
.L16:
	ldr	r1, [fp, #-80]
	ldr	r2, [fp, #-108]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-104]
	add	r3, r3, r2
	mov	r2, #0
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L15:
	ldr	r3, [fp, #-104]
	cmp	r3, #10
	ble	.L16
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L14:
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L17
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L18
.L21:
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L19
.L20:
	ldr	r3, [fp, #-92]
	sub	r2, r3, #1
	ldr	r3, [fp, #-104]
	sub	r2, r2, r3
	ldr	r1, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-108]
	add	r3, r3, r2
	mov	r2, #1
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L19:
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r3, [r3, #-48]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	blt	.L20
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L18:
	ldr	r3, [fp, #-108]
	cmp	r3, #10
	ble	.L21
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L22
.L27:
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L23
.L26:
	ldr	r1, [fp, #-80]
	ldr	r2, [fp, #-108]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-104]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #0
	beq	.L24
	mov	r1, #35
	ldr	r0, .L32+4
	bl	printf
	b	.L25
.L24:
	mov	r1, #32
	ldr	r0, .L32+4
	bl	printf
.L25:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L23:
	ldr	r3, [fp, #-104]
	cmp	r3, #10
	ble	.L26
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L22:
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L27
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L28
.L29:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L32+8
	bl	printf
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L28:
	ldr	r3, [fp, #-108]
	cmp	r3, #9
	ble	.L29
	mov	r1, #10
	ldr	r0, .L32+12
	bl	printf
	mov	sp, r8
	mov	r3, #0
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
