	.file	"541792.c"
	.intel_syntax noprefix
	.text
	.globl	table
	.bss
	.align 32
	.type	table, @object
	.size	table, 2048
table:
	.zero	2048
	.globl	total
	.align 8
	.type	total, @object
	.size	total, 8
total:
	.zero	8
	.section	.rodata
.LC0:
	.string	"Total: %ld\n\n"
.LC1:
	.string	"%3.3ld "
	.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
	sub	rsp, 16
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, table[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rcx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, table[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	rax, QWORD PTR total[rip]
	add	rax, 1
	mov	QWORD PTR total[rip], rax
.L2:
	call	getchar@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L3
	mov	rax, QWORD PTR total[rip]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, table[rip]
	mov	rax, QWORD PTR [rdx+rax]
	imul	rax, rax, 1000
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, table[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, table[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, QWORD PTR total[rip]
	cqo
	idiv	rsi
	mov	rcx, rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, table[rip]
	mov	QWORD PTR [rdx+rax], rcx
	add	DWORD PTR -8[rbp], 1
.L4:
	cmp	DWORD PTR -8[rbp], 255
	jle	.L5
	mov	DWORD PTR -8[rbp], 0
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, table[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	and	eax, 15
	test	eax, eax
	jne	.L7
	mov	edi, 10
	call	putchar@PLT
.L7:
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	and	eax, 127
	test	eax, eax
	jne	.L8
	mov	edi, 10
	call	putchar@PLT
.L8:
	add	DWORD PTR -8[rbp], 1
.L6:
	cmp	DWORD PTR -8[rbp], 255
	jle	.L9
	mov	eax, 0
	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	"541792.c"
	.text
	.comm	table,1024,4
	.comm	total,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Total: %ld\012\012\000"
	.global	__aeabi_idiv
	.align	2
.LC1:
	.ascii	"%3.3ld \000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	b	.L2
.L3:
	ldr	r2, .L11
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	add	r2, r3, #1
	ldr	r1, .L11
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L11+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L11+4
	str	r3, [r2]
.L2:
	bl	getchar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L3
	ldr	r3, .L11+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L4
.L5:
	ldr	r2, .L11
	ldr	r3, [fp, #-12]
	ldr	r2, [r2, r3, lsl #2]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r1, r3
	ldr	r2, .L11
	ldr	r3, [fp, #-12]
	str	r1, [r2, r3, lsl #2]
	ldr	r2, .L11
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L11+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L11
	ldr	r3, [fp, #-12]
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L4:
	ldr	r3, [fp, #-12]
	cmp	r3, #255
	ble	.L5
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L6
.L9:
	ldr	r2, .L11
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L11+12
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	and	r3, r3, #15
	cmp	r3, #0
	bne	.L7
	mov	r0, #10
	bl	putchar
.L7:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L8
	mov	r0, #10
	bl	putchar
.L8:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L6:
	ldr	r3, [fp, #-12]
	cmp	r3, #255
	ble	.L9
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	table
	.word	total
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
