	.file	"499305.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d\t%d\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
	jmp	.L2
.L6:
	cmp	DWORD PTR -128[rbp], 48
	jle	.L2
	cmp	DWORD PTR -128[rbp], 56
	jle	.L4
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -128[rbp]
	lea	ecx, -48[rax]
	mov	eax, DWORD PTR -124[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -124[rbp], edx
	mov	edx, ecx
	cdqe
	mov	BYTE PTR -112[rbp+rax], dl
.L2:
	call	getchar@PLT
	mov	DWORD PTR -128[rbp], eax
	cmp	DWORD PTR -128[rbp], -1
	je	.L5
	cmp	DWORD PTR -124[rbp], 99
	jle	.L6
.L5:
	mov	DWORD PTR -128[rbp], 0
	mov	DWORD PTR -124[rbp], 1
	jmp	.L7
.L10:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	update
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -124[rbp], 100
	jg	.L8
	mov	eax, DWORD PTR -116[rbp]
	add	DWORD PTR -128[rbp], eax
.L8:
	cmp	DWORD PTR -116[rbp], 100
	jne	.L9
	cmp	DWORD PTR -120[rbp], 0
	jne	.L9
	mov	eax, DWORD PTR -124[rbp]
	mov	DWORD PTR -120[rbp], eax
.L9:
	add	DWORD PTR -124[rbp], 1
.L7:
	cmp	DWORD PTR -124[rbp], 100
	jle	.L10
	cmp	DWORD PTR -120[rbp], 0
	je	.L10
	mov	edx, DWORD PTR -120[rbp]
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.type	update, @function
update:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	esi, edx
	sub	esi, eax
	mov	edx, DWORD PTR -4[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	edi, edx
	sar	edi, 31
	sub	eax, edi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, esi
	mov	esi, ecx
	mov	rdi, rax
	call	update_cell
	add	DWORD PTR -8[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L14:
	cmp	DWORD PTR -4[rbp], 99
	jle	.L15
	mov	DWORD PTR -4[rbp], 0
	jmp	.L16
.L18:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jns	.L17
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L17:
	add	DWORD PTR -4[rbp], 1
.L16:
	cmp	DWORD PTR -4[rbp], 99
	jle	.L18
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	update, .-update
	.type	update_cell, @function
update_cell:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -8[rbp], 1
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	js	.L21
	cmp	DWORD PTR -28[rbp], 9
	jg	.L21
	cmp	DWORD PTR -32[rbp], 0
	js	.L21
	cmp	DWORD PTR -32[rbp], 9
	jle	.L22
.L21:
	mov	eax, 0
	jmp	.L23
.L22:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jns	.L24
	mov	eax, 0
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	add	edx, 1
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 9
	jg	.L25
	mov	eax, 0
	jmp	.L23
.L25:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], -1
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -28[rbp]
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	update_cell
	add	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, -1[rax]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	update_cell
	add	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -28[rbp]
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	update_cell
	add	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	lea	ecx, -1[rax]
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	update_cell
	add	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	lea	ecx, 1[rax]
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	update_cell
	add	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -28[rbp]
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	update_cell
	add	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	update_cell
	add	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -28[rbp]
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	update_cell
	add	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	update_cell, .-update_cell
	.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	"499305.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\011%d\012\000"
	.align	2
.LC1:
	.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, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L2
.L6:
	ldr	r3, [fp, #-124]
	cmp	r3, #48
	ble	.L2
	ldr	r3, [fp, #-124]
	cmp	r3, #56
	ble	.L4
	b	.L2
.L4:
	ldr	r3, [fp, #-124]
	and	r3, r3, #255
	sub	r3, r3, #48
	and	r2, r3, #255
	ldr	r3, [fp, #-120]
	add	r1, r3, #1
	str	r1, [fp, #-120]
	lsl	r2, r2, #24
	asr	r2, r2, #24
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-104]
.L2:
	bl	getchar
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmn	r3, #1
	beq	.L5
	ldr	r3, [fp, #-120]
	cmp	r3, #99
	ble	.L6
.L5:
	mov	r3, #0
	str	r3, [fp, #-124]
	mov	r3, #1
	str	r3, [fp, #-120]
	b	.L7
.L10:
	sub	r3, fp, #108
	mov	r0, r3
	bl	update
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-120]
	cmp	r3, #100
	bgt	.L8
	ldr	r2, [fp, #-124]
	ldr	r3, [fp, #-112]
	add	r3, r2, r3
	str	r3, [fp, #-124]
.L8:
	ldr	r3, [fp, #-112]
	cmp	r3, #100
	bne	.L9
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-116]
.L9:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L7:
	ldr	r3, [fp, #-120]
	cmp	r3, #100
	ble	.L10
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L10
	ldr	r2, [fp, #-116]
	ldr	r1, [fp, #-124]
	ldr	r0, .L13+4
	bl	printf
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update, %function
update:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L16
.L17:
	ldr	r2, [fp, #-8]
	ldr	r3, .L22
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r1, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r2, .L22
	smull	r0, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	update_cell
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L16:
	ldr	r3, [fp, #-8]
	cmp	r3, #99
	ble	.L17
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L18
.L20:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrsb	r3, [r3]
	cmp	r3, #0
	bge	.L19
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L19:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L18:
	ldr	r3, [fp, #-8]
	cmp	r3, #99
	ble	.L20
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	1717986919
	.size	update, .-update
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_cell, %function
update_cell:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L25
	ldr	r3, [fp, #-20]
	cmp	r3, #9
	bgt	.L25
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	blt	.L25
	ldr	r3, [fp, #-24]
	cmp	r3, #9
	ble	.L26
.L25:
	mov	r3, #0
	b	.L27
.L26:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrsb	r3, [r3]
	cmp	r3, #0
	bge	.L28
	mov	r3, #0
	b	.L27
.L28:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrsb	r2, [r3]
	and	r2, r2, #255
	add	r2, r2, #1
	and	r2, r2, #255
	lsl	r2, r2, #24
	asr	r2, r2, #24
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrsb	r3, [r3]
	cmp	r3, #9
	bgt	.L29
	mov	r3, #0
	b	.L27
.L29:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	sub	r1, r3, #1
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	update_cell
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	update_cell
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r1, r3, #1
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	update_cell
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	update_cell
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	update_cell
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	sub	r1, r3, #1
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	update_cell
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	update_cell
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r1, r3, #1
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	update_cell
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	update_cell, .-update_cell
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
