Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
i,j,k,m,t,a[100];main(n){while(scanf("%d%d",&n,&m),n|m){memset(a,0,100);for(i=0;i<n*m;scanf("%d",&t),a[i++%m]+=t);n=m;while(n--){for(t=i=0;i<m;++i)t=t<a[i]?a[k=i]:t;printf("%d%c",k+1,n?32:10),t=a[k]=0;}}}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%c"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	a(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	m(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	leaq	12(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rdx
	movq	%r13, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edx
	movl	m(%rip), %esi
	movl	%edx, %eax
	orl	%esi, %eax
	je	.L28
	movl	$12, %ecx
	imull	%esi, %edx
	xorl	%eax, %eax
	movq	%r14, %rdi
	rep stosq
	movl	$0, i(%rip)
	movl	$0, (%rdi)
	testl	%edx, %edx
	jle	.L3
	leaq	t(%rip), %r15
	leaq	.LC0(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	movl	m(%rip), %esi
	cltd
	leal	1(%rax), %ecx
	idivl	%esi
	movl	t(%rip), %eax
	movl	%ecx, i(%rip)
	movslq	%edx, %rdx
	addl	%eax, (%r14,%rdx,4)
	movl	12(%rsp), %eax
	imull	%esi, %eax
	cmpl	%eax, %ecx
	jl	.L4
.L3:
	leal	-1(%rsi), %r10d
	movl	%r10d, 12(%rsp)
	testl	%esi, %esi
	je	.L2
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L13:
	movl	$0, i(%rip)
	movl	$0, t(%rip)
	testl	%esi, %esi
	jle	.L25
	movslq	%esi, %rdi
	xorl	%eax, %eax
	xorl	%r9d, %r9d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%r14,%rax,4), %edx
	cmpl	%ecx, %edx
	jle	.L8
	movl	%eax, %ebp
	movl	%edx, %ecx
	movl	$1, %r9d
.L8:
	addq	$1, %rax
	cmpq	%rdi, %rax
	jne	.L9
	movl	%ecx, t(%rip)
	movl	%esi, i(%rip)
	testb	%r9b, %r9b
	je	.L25
	movl	%ebp, k(%rip)
.L7:
	leal	1(%rbp), %esi
	movl	$32, %edx
	testl	%r10d, %r10d
	jne	.L26
	movl	$10, %edx
.L26:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	movslq	k(%rip), %rax
	movl	$0, t(%rip)
	movl	$0, (%r14,%rax,4)
	movl	12(%rsp), %eax
	leal	-1(%rax), %r10d
	movl	%r10d, 12(%rsp)
	testl	%eax, %eax
	je	.L2
	movl	m(%rip), %esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	movl	k(%rip), %ebp
	jmp	.L7
.L28:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400
a:
	.zero	400
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%c"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	a(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	m(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	leaq	12(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rdx
	movq	%r13, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edx
	movl	m(%rip), %esi
	movl	%edx, %eax
	orl	%esi, %eax
	je	.L28
	movl	$12, %ecx
	imull	%esi, %edx
	xorl	%eax, %eax
	movq	%r14, %rdi
	rep stosq
	movl	$0, i(%rip)
	movl	$0, (%rdi)
	testl	%edx, %edx
	jle	.L3
	leaq	t(%rip), %r15
	leaq	.LC0(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	movl	m(%rip), %esi
	cltd
	leal	1(%rax), %ecx
	idivl	%esi
	movl	t(%rip), %eax
	movl	%ecx, i(%rip)
	movslq	%edx, %rdx
	addl	%eax, (%r14,%rdx,4)
	movl	12(%rsp), %eax
	imull	%esi, %eax
	cmpl	%eax, %ecx
	jl	.L4
.L3:
	leal	-1(%rsi), %r10d
	movl	%r10d, 12(%rsp)
	testl	%esi, %esi
	je	.L2
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L13:
	movl	$0, i(%rip)
	movl	$0, t(%rip)
	testl	%esi, %esi
	jle	.L25
	movslq	%esi, %rdi
	xorl	%eax, %eax
	xorl	%r9d, %r9d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%r14,%rax,4), %edx
	cmpl	%ecx, %edx
	jle	.L8
	movl	%eax, %ebp
	movl	%edx, %ecx
	movl	$1, %r9d
.L8:
	addq	$1, %rax
	cmpq	%rdi, %rax
	jne	.L9
	movl	%ecx, t(%rip)
	movl	%esi, i(%rip)
	testb	%r9b, %r9b
	je	.L25
	movl	%ebp, k(%rip)
.L7:
	leal	1(%rbp), %esi
	movl	$32, %edx
	testl	%r10d, %r10d
	jne	.L26
	movl	$10, %edx
.L26:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	movslq	k(%rip), %rax
	movl	$0, t(%rip)
	movl	$0, (%r14,%rax,4)
	movl	12(%rsp), %eax
	leal	-1(%rax), %r10d
	movl	%r10d, 12(%rsp)
	testl	%eax, %eax
	je	.L2
	movl	m(%rip), %esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	movl	k(%rip), %ebp
	jmp	.L7
.L28:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400
a:
	.zero	400
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%c"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	a(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	m(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	leaq	12(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rdx
	movq	%r13, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edx
	movl	m(%rip), %esi
	movl	%edx, %eax
	orl	%esi, %eax
	je	.L28
	movl	$12, %ecx
	imull	%esi, %edx
	xorl	%eax, %eax
	movq	%r14, %rdi
	rep stosq
	movl	$0, i(%rip)
	movl	$0, (%rdi)
	testl	%edx, %edx
	jle	.L3
	leaq	t(%rip), %r15
	leaq	.LC0(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	movl	m(%rip), %esi
	cltd
	leal	1(%rax), %ecx
	idivl	%esi
	movl	t(%rip), %eax
	movl	%ecx, i(%rip)
	movslq	%edx, %rdx
	addl	%eax, (%r14,%rdx,4)
	movl	12(%rsp), %eax
	imull	%esi, %eax
	cmpl	%eax, %ecx
	jl	.L4
.L3:
	leal	-1(%rsi), %r10d
	movl	%r10d, 12(%rsp)
	testl	%esi, %esi
	je	.L2
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L13:
	movl	$0, i(%rip)
	movl	$0, t(%rip)
	testl	%esi, %esi
	jle	.L25
	movslq	%esi, %rdi
	xorl	%eax, %eax
	xorl	%r9d, %r9d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%r14,%rax,4), %edx
	cmpl	%ecx, %edx
	jle	.L8
	movl	%eax, %ebp
	movl	%edx, %ecx
	movl	$1, %r9d
.L8:
	addq	$1, %rax
	cmpq	%rdi, %rax
	jne	.L9
	movl	%ecx, t(%rip)
	movl	%esi, i(%rip)
	testb	%r9b, %r9b
	je	.L25
	movl	%ebp, k(%rip)
.L7:
	leal	1(%rbp), %esi
	movl	$32, %edx
	testl	%r10d, %r10d
	jne	.L26
	movl	$10, %edx
.L26:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	movslq	k(%rip), %rax
	movl	$0, t(%rip)
	movl	$0, (%r14,%rax,4)
	movl	12(%rsp), %eax
	leal	-1(%rax), %r10d
	movl	%r10d, 12(%rsp)
	testl	%eax, %eax
	je	.L2
	movl	m(%rip), %esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	movl	k(%rip), %ebp
	jmp	.L7
.L28:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400
a:
	.zero	400
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```
```c
i,j,k,m,t,a[100];main(n){while(scanf("%d%d",&n,&m),n|m){memset(a,0,100);for(i=0;i<n*m;scanf("%d",&t),a[i++%m]+=t);n=m;while(n--){for(t=i=0;i<m;++i)t=t<a[i]?a[k=i]:t;printf("%d%c",k+1,n?32:10),t=a[k]=0;}}}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
i,j,k,m,t,a[100];main(n){while(scanf("%d%d",&n,&m),n|m){memset(a,0,100);for(i=0;i<n*m;scanf("%d",&t),a[i++%m]+=t);n=m;while(n--){for(t=i=0;i<m;++i)t=t<a[i]?a[k=i]:t;printf("%d%c",k+1,n?32:10),t=a[k]=0;}}}```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

4 6
1 0 1 0 1 1
1 2 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
4 6
1 0 1 0 1 1
1 1 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
0 0
 4 6
1 0 1 0 1 1
1 2 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
4 6
1 0 1 0 1 1
2 1 0 1 1 0
1 1 1 0 0 0
1 0 1 0 1 0
0 0
 4 6
1 0 1 0 1 1
1 1 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
4 6
0 0 1 0 1 1
1 1 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
0 0
 4 6
1 0 1 0 1 1
1 2 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
4 6
1 0 1 0 1 1
1 1 -1 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
0 0
 4 6
1 0 1 0 1 2
1 2 0 1 1 0
1 1 1 0 0 0
1 0 1 0 1 0
4 6
1 0 1 0 1 1
2 1 0 1 1 0
1 1 1 0 0 0
1 0 1 0 1 0
0 0
 4 6
1 0 1 0 1 1
1 1 0 1 0 0
1 0 1 0 0 0
1 0 1 0 1 0
4 6
0 0 1 0 1 1
1 1 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
0 0
 4 6
1 0 1 0 1 1
1 2 0 1 0 0
1 1 1 0 0 1
1 0 1 0 1 0
4 6
1 0 1 0 1 1
1 1 -1 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
0 0
 4 6
1 0 0 0 1 1
1 2 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
4 6
1 0 1 0 1 1
2 1 0 1 1 0
1 1 0 0 0 0
1 0 1 0 1 0
0 0
 4 6
1 0 1 0 1 2
1 0 0 1 1 0
1 1 1 0 0 0
1 0 1 0 1 0
4 6
1 0 1 0 1 1
2 1 0 1 1 0
1 1 1 0 0 0
1 0 1 0 1 0
0 0
 4 6
1 0 1 0 1 1
1 1 0 1 0 0
1 1 1 0 0 0
1 0 1 0 1 0
4 6
0 0 1 0 1 1
1 1 0 1 0 0
1 1 1 0 0 0
1 -1 1 0 1 0
0 0

1 2 3 5 4 6
1 3 2 5 4 6
 1 2 3 5 4 6
1 3 5 2 4 6
 1 3 2 5 4 6
1 3 2 5 4 6
 1 2 3 5 4 6
1 2 3 5 4 6
 1 2 3 5 6 4
1 3 5 2 4 6
 1 3 5 2 4 6
1 3 2 5 4 6
 1 2 3 5 6 4
1 2 3 5 4 6
 1 2 3 5 4 6
1 5 2 3 4 6
 1 3 5 6 2 4
1 3 5 2 4 6
 1 3 2 5 4 6
1 3 5 2 4 6

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
i,j,k,m,t,a[100];main(n){while(scanf("%d%d",&n,&m),n|m){memset(a,0,100);for(i=0;i<n*m;scanf("%d",&t),a[i++%m]+=t);n=m;while(n--){for(t=i=0;i<m;++i)t=t<a[i]?a[k=i]:t;printf("%d%c",k+1,n?32:10),t=a[k]=0;}}}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%c"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	a(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	m(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	leaq	12(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rdx
	movq	%r13, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edx
	movl	m(%rip), %esi
	movl	%edx, %eax
	orl	%esi, %eax
	je	.L28
	movl	$12, %ecx
	imull	%esi, %edx
	xorl	%eax, %eax
	movq	%r14, %rdi
	rep stosq
	movl	$0, i(%rip)
	movl	$0, (%rdi)
	testl	%edx, %edx
	jle	.L3
	leaq	t(%rip), %r15
	leaq	.LC0(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	movl	m(%rip), %esi
	cltd
	leal	1(%rax), %ecx
	idivl	%esi
	movl	t(%rip), %eax
	movl	%ecx, i(%rip)
	movslq	%edx, %rdx
	addl	%eax, (%r14,%rdx,4)
	movl	12(%rsp), %eax
	imull	%esi, %eax
	cmpl	%eax, %ecx
	jl	.L4
.L3:
	leal	-1(%rsi), %r10d
	movl	%r10d, 12(%rsp)
	testl	%esi, %esi
	je	.L2
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L13:
	movl	$0, i(%rip)
	movl	$0, t(%rip)
	testl	%esi, %esi
	jle	.L25
	movslq	%esi, %rdi
	xorl	%eax, %eax
	xorl	%r9d, %r9d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%r14,%rax,4), %edx
	cmpl	%ecx, %edx
	jle	.L8
	movl	%eax, %ebp
	movl	%edx, %ecx
	movl	$1, %r9d
.L8:
	addq	$1, %rax
	cmpq	%rdi, %rax
	jne	.L9
	movl	%ecx, t(%rip)
	movl	%esi, i(%rip)
	testb	%r9b, %r9b
	je	.L25
	movl	%ebp, k(%rip)
.L7:
	leal	1(%rbp), %esi
	movl	$32, %edx
	testl	%r10d, %r10d
	jne	.L26
	movl	$10, %edx
.L26:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	movslq	k(%rip), %rax
	movl	$0, t(%rip)
	movl	$0, (%r14,%rax,4)
	movl	12(%rsp), %eax
	leal	-1(%rax), %r10d
	movl	%r10d, 12(%rsp)
	testl	%eax, %eax
	je	.L2
	movl	m(%rip), %esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	movl	k(%rip), %ebp
	jmp	.L7
.L28:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400
a:
	.zero	400
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%c"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	a(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	m(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	leaq	12(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rdx
	movq	%r13, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edx
	movl	m(%rip), %esi
	movl	%edx, %eax
	orl	%esi, %eax
	je	.L28
	movl	$12, %ecx
	imull	%esi, %edx
	xorl	%eax, %eax
	movq	%r14, %rdi
	rep stosq
	movl	$0, i(%rip)
	movl	$0, (%rdi)
	testl	%edx, %edx
	jle	.L3
	leaq	t(%rip), %r15
	leaq	.LC0(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	movl	m(%rip), %esi
	cltd
	leal	1(%rax), %ecx
	idivl	%esi
	movl	t(%rip), %eax
	movl	%ecx, i(%rip)
	movslq	%edx, %rdx
	addl	%eax, (%r14,%rdx,4)
	movl	12(%rsp), %eax
	imull	%esi, %eax
	cmpl	%eax, %ecx
	jl	.L4
.L3:
	leal	-1(%rsi), %r10d
	movl	%r10d, 12(%rsp)
	testl	%esi, %esi
	je	.L2
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L13:
	movl	$0, i(%rip)
	movl	$0, t(%rip)
	testl	%esi, %esi
	jle	.L25
	movslq	%esi, %rdi
	xorl	%eax, %eax
	xorl	%r9d, %r9d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%r14,%rax,4), %edx
	cmpl	%ecx, %edx
	jle	.L8
	movl	%eax, %ebp
	movl	%edx, %ecx
	movl	$1, %r9d
.L8:
	addq	$1, %rax
	cmpq	%rdi, %rax
	jne	.L9
	movl	%ecx, t(%rip)
	movl	%esi, i(%rip)
	testb	%r9b, %r9b
	je	.L25
	movl	%ebp, k(%rip)
.L7:
	leal	1(%rbp), %esi
	movl	$32, %edx
	testl	%r10d, %r10d
	jne	.L26
	movl	$10, %edx
.L26:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	movslq	k(%rip), %rax
	movl	$0, t(%rip)
	movl	$0, (%r14,%rax,4)
	movl	12(%rsp), %eax
	leal	-1(%rax), %r10d
	movl	%r10d, 12(%rsp)
	testl	%eax, %eax
	je	.L2
	movl	m(%rip), %esi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	movl	k(%rip), %ebp
	jmp	.L7
.L28:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400
a:
	.zero	400
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```