	.file	"890048.c"
	.intel_syntax noprefix
	.text
	.section	.data.rel.local,"aw"
	.align 8
	.type	end.2, @object
	.size	end.2, 8
end.2:
	.quad	buf.0+2097152
	.text
	.type	readChar, @function
readChar:
.LFB0:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rdx, QWORD PTR temp.1[rip]
	mov	rax, QWORD PTR end.2[rip]
	cmp	rdx, rax
	jne	.L2
	mov	rax, QWORD PTR end.2[rip]
	lea	rdx, buf.0[rip+2097152]
	cmp	rax, rdx
	jnb	.L3
	mov	eax, -1
	jmp	.L4
.L3:
	mov	rax, QWORD PTR stdin[rip]
	mov	rcx, rax
	mov	edx, 2097152
	mov	esi, 1
	lea	rdi, buf.0[rip]
	call	fread@PLT
	lea	rdx, buf.0[rip]
	add	rax, rdx
	mov	QWORD PTR end.2[rip], rax
	lea	rax, buf.0[rip]
	mov	QWORD PTR temp.1[rip], rax
.L2:
	mov	rax, QWORD PTR temp.1[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR temp.1[rip], rdx
	movzx	eax, BYTE PTR [rax]
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	readChar, .-readChar
	.type	readint, @function
readint:
.LFB1:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	r12, rdi
	mov	DWORD PTR -20[rbp], 1
	jmp	.L6
.L9:
	cmp	bl, -1
	jne	.L6
	mov	eax, 0
	jmp	.L7
.L6:
	mov	eax, 0
	call	readChar
	mov	ebx, eax
	cmp	bl, 47
	jg	.L8
	cmp	bl, 45
	jne	.L9
.L8:
	cmp	bl, 45
	jne	.L10
	mov	eax, 0
	call	readChar
	mov	ebx, eax
	mov	DWORD PTR -20[rbp], -1
.L10:
	mov	eax, ebx
	xor	eax, 48
	movsx	eax, al
	mov	DWORD PTR [r12], eax
	jmp	.L11
.L12:
	mov	eax, DWORD PTR [r12]
	lea	edx, 0[0+rax*8]
	mov	eax, DWORD PTR [r12]
	add	eax, eax
	add	edx, eax
	mov	eax, ebx
	xor	eax, 48
	movsx	eax, al
	add	eax, edx
	mov	DWORD PTR [r12], eax
.L11:
	mov	eax, 0
	call	readChar
	mov	ebx, eax
	cmp	bl, 47
	jg	.L12
	mov	eax, DWORD PTR [r12]
	imul	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [r12], eax
	mov	eax, 1
.L7:
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	readint, .-readint
	.type	putint, @function
putint:
.LFB2:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	ebx, edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	test	ebx, ebx
	jne	.L14
	mov	edi, 48
	call	putchar@PLT
.L14:
	lea	rax, -37[rbp]
	add	rax, 11
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 0
	test	ebx, ebx
	jns	.L16
	mov	edi, 45
	call	putchar@PLT
	neg	ebx
	jmp	.L16
.L17:
	movsx	rax, ebx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, ebx
	sar	ecx, 31
	sub	eax, ecx
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, ebx
	sub	edx, eax
	mov	ecx, edx
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, -1[rax]
	mov	QWORD PTR -48[rbp], rdx
	xor	ecx, 48
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	movsx	rax, ebx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	sar	ebx, 31
	mov	edx, ebx
	sub	eax, edx
	mov	ebx, eax
.L16:
	test	ebx, ebx
	jne	.L17
	mov	rdx, QWORD PTR stdout[rip]
	add	QWORD PTR -48[rbp], 1
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	edi, 32
	call	putchar@PLT
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	putint, .-putint
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4032
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L20
.L26:
	mov	eax, DWORD PTR -4028[rbp]
	sub	eax, 1
	mov	DWORD PTR -4024[rbp], eax
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -4024[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, -4016[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	readint
	mov	eax, DWORD PTR -4024[rbp]
	cdqe
	mov	eax, DWORD PTR -4016[rbp+rax*4]
	imul	eax, DWORD PTR -4024[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4024[rbp]
	cdqe
	mov	DWORD PTR -4016[rbp+rax*4], edx
	sub	DWORD PTR -4024[rbp], 1
.L21:
	cmp	DWORD PTR -4024[rbp], 0
	jns	.L22
	mov	eax, DWORD PTR -4028[rbp]
	sub	eax, 1
	mov	DWORD PTR -4028[rbp], eax
	mov	eax, DWORD PTR -4028[rbp]
	mov	DWORD PTR -4020[rbp], eax
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -4020[rbp]
	cdqe
	mov	eax, DWORD PTR -4016[rbp+rax*4]
	mov	edi, eax
	call	putint
	sub	DWORD PTR -4020[rbp], 1
.L23:
	cmp	DWORD PTR -4020[rbp], 0
	jg	.L24
	mov	eax, DWORD PTR -4028[rbp]
	test	eax, eax
	jne	.L25
	mov	edi, 48
	call	putchar@PLT
.L25:
	mov	edi, 10
	call	putchar@PLT
.L20:
	lea	rax, -4028[rbp]
	mov	rdi, rax
	call	readint
	test	al, al
	jne	.L26
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.section	.data.rel.local
	.align 8
	.type	temp.1, @object
	.size	temp.1, 8
temp.1:
	.quad	buf.0+2097152
	.local	buf.0
	.comm	buf.0,2097152,32
	.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	"890048.c"
	.text
	.data
	.align	2
	.type	end.4602, %object
	.size	end.4602, 4
end.4602:
	.word	buf.4600+2097152
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	readChar, %function
readChar:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L5
	ldr	r2, [r3]
	ldr	r3, .L5+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L2
	ldr	r3, .L5+4
	ldr	r3, [r3]
	ldr	r2, .L5+8
	cmp	r3, r2
	bcs	.L3
	mov	r3, #255
	b	.L4
.L3:
	ldr	r3, .L5+12
	ldr	r3, [r3]
	mov	r2, #2097152
	mov	r1, #1
	ldr	r0, .L5+16
	bl	fread
	mov	r3, r0
	ldr	r2, .L5+16
	add	r3, r3, r2
	ldr	r2, .L5+4
	str	r3, [r2]
	ldr	r3, .L5
	ldr	r2, .L5+16
	str	r2, [r3]
.L2:
	ldr	r3, .L5
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L5
	str	r2, [r1]
	ldrb	r3, [r3]	@ zero_extendqisi2
.L4:
	mov	r0, r3
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	temp.4601
	.word	end.4602
	.word	buf.4600+2097152
	.word	stdin
	.word	buf.4600
	.size	readChar, .-readChar
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	readint, %function
readint:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	mov	r5, r0
	mov	r3, #1
	str	r3, [fp, #-16]
	nop
.L9:
	bl	readChar
	mov	r3, r0
	mov	r4, r3
	cmp	r4, #47
	bhi	.L8
	cmp	r4, #45
	bne	.L9
.L8:
	cmp	r4, #45
	bne	.L10
	bl	readChar
	mov	r3, r0
	mov	r4, r3
	mvn	r3, #0
	str	r3, [fp, #-16]
.L10:
	eor	r3, r4, #48
	and	r3, r3, #255
	str	r3, [r5]
	b	.L11
.L12:
	ldr	r3, [r5]
	lsl	r2, r3, #3
	ldr	r3, [r5]
	lsl	r3, r3, #1
	add	r3, r2, r3
	eor	r2, r4, #48
	and	r2, r2, #255
	add	r3, r3, r2
	str	r3, [r5]
.L11:
	bl	readChar
	mov	r3, r0
	mov	r4, r3
	cmp	r4, #47
	bhi	.L12
	ldr	r3, [r5]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	str	r3, [r5]
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	readint, .-readint
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	putint, %function
putint:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	mov	r4, r0
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	cmp	r4, #0
	bne	.L15
	mov	r0, #48
	bl	putchar
.L15:
	sub	r3, fp, #32
	add	r3, r3, #11
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	mov	r2, #0
	strb	r2, [r3]
	cmp	r4, #0
	bge	.L17
	mov	r0, #45
	bl	putchar
	rsb	r4, r4, #0
	b	.L17
.L18:
	ldr	r3, .L20+4
	smull	r2, r3, r4, r3
	asr	r2, r3, #2
	asr	r3, r4, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r4, r3
	lsl	r3, r2, #24
	asr	r3, r3, #24
	eor	r3, r3, #48
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-36]
	sub	r1, r3, #1
	str	r1, [fp, #-36]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, .L20+4
	smull	r2, r3, r4, r3
	asr	r2, r3, #2
	asr	r3, r4, #31
	sub	r3, r2, r3
	mov	r4, r3
.L17:
	cmp	r4, #0
	bne	.L18
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, .L20+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	fputs
	mov	r0, #32
	bl	putchar
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	1717986919
	.word	stdout
	.size	putint, .-putint
	.section	.rodata
	.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 = 4016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4016
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L23
.L29:
	ldr	r3, [fp, #-4020]
	sub	r3, r3, #1
	str	r3, [fp, #-4016]
	b	.L24
.L25:
	ldr	r3, [fp, #-4016]
	lsl	r2, r3, #2
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r2
	mov	r0, r3
	bl	readint
	ldr	r3, [fp, #-4016]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-4004]
	ldr	r2, [fp, #-4016]
	mul	r2, r3, r2
	ldr	r3, [fp, #-4016]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-4004]
	ldr	r3, [fp, #-4016]
	sub	r3, r3, #1
	str	r3, [fp, #-4016]
.L24:
	ldr	r3, [fp, #-4016]
	cmp	r3, #0
	bge	.L25
	ldr	r3, [fp, #-4020]
	sub	r3, r3, #1
	str	r3, [fp, #-4020]
	ldr	r3, [fp, #-4020]
	str	r3, [fp, #-4012]
	b	.L26
.L27:
	ldr	r3, [fp, #-4012]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-4004]
	mov	r0, r3
	bl	putint
	ldr	r3, [fp, #-4012]
	sub	r3, r3, #1
	str	r3, [fp, #-4012]
.L26:
	ldr	r3, [fp, #-4012]
	cmp	r3, #0
	bgt	.L27
	ldr	r3, [fp, #-4020]
	cmp	r3, #0
	bne	.L28
	mov	r0, #48
	bl	putchar
.L28:
	mov	r0, #10
	bl	putchar
.L23:
	sub	r3, fp, #4016
	sub	r3, r3, #4
	mov	r0, r3
	bl	readint
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	mov	r3, #0
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC1
	.size	main, .-main
	.data
	.align	2
	.type	temp.4601, %object
	.size	temp.4601, 4
temp.4601:
	.word	buf.4600+2097152
	.local	buf.4600
	.comm	buf.4600,2097152,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
