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

```c
n,m,k;a[99],b[99],c[99];
void push(x,y,z){a[m]=x;b[m]=y;c[m]=z;m++;}
main(i){
	scanf("%d",&k);
	while((1<<n)<=k)n++;
	for(i=n;--i;){
		push(i,i-1,0);
		push(i,i-1,1<<(i-1));
	}
	for(i=n-2;~i;i--){
		if((1<<i)&k){
			push(n-1,i,(k>>(i+1))<<(i+1));
		}
	}
	printf("%d %d\n",n,m);
	for(i=m;i--;){
		printf("%d %d %d\n",n-a[i],n-b[i],c[i]);
	}
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.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	a
	.align 32
	.type	a, @object
	.size	a, 396
a:
	.zero	396
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 396
b:
	.zero	396
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 396
c:
	.zero	396
	.text
	.globl	push
	.type	push, @function
push:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	m(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	m(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	m(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	c(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	m(%rip), %eax
	addl	$1, %eax
	movl	%eax, m(%rip)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	push, .-push
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
.LC2:
	.string	"%d %d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	leaq	k(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L3
.L4:
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
.L3:
	movl	n(%rip), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	k(%rip), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	n(%rip), %eax
	movl	%eax, -4(%rbp)
	jmp	.L5
.L6:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-4(%rbp), %eax
	movl	$0, %edx
	movl	%ecx, %esi
	movl	%eax, %edi
	movl	$0, %eax
	call	push
	movl	-4(%rbp), %eax
	subl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	-4(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-4(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	movl	$0, %eax
	call	push
.L5:
	subl	$1, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jne	.L6
	movl	n(%rip), %eax
	subl	$2, %eax
	movl	%eax, -4(%rbp)
	jmp	.L7
.L9:
	movl	k(%rip), %edx
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L8
	movl	k(%rip), %edx
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	n(%rip), %eax
	leal	-1(%rax), %ecx
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	movl	$0, %eax
	call	push
.L8:
	subl	$1, -4(%rbp)
.L7:
	cmpl	$-1, -4(%rbp)
	jne	.L9
	movl	m(%rip), %edx
	movl	n(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	m(%rip), %eax
	movl	%eax, -4(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	n(%rip), %edx
	movl	-4(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	b(%rip), %rcx
	movl	(%rsi,%rcx), %ecx
	subl	%ecx, %edx
	movl	n(%rip), %ecx
	movl	-4(%rbp), %esi
	movslq	%esi, %rsi
	leaq	0(,%rsi,4), %rdi
	leaq	a(%rip), %rsi
	movl	(%rdi,%rsi), %edi
	movl	%ecx, %esi
	subl	%edi, %esi
	movl	%eax, %ecx
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -4(%rbp)
	testl	%eax, %eax
	jne	.L11
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.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.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	push
	.type	push, @function
push:
.LFB0:
	.cfi_startproc
	endbr64
	movl	%edx, %r8d
	movslq	m(%rip), %rdx
	leaq	a(%rip), %rcx
	movl	%edi, (%rcx,%rdx,4)
	movq	%rdx, %rax
	leaq	b(%rip), %rcx
	movl	%esi, (%rcx,%rdx,4)
	addl	$1, %eax
	leaq	c(%rip), %rcx
	movl	%r8d, (%rcx,%rdx,4)
	movl	%eax, m(%rip)
	ret
	.cfi_endproc
.LFE0:
	.size	push, .-push
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
.LC2:
	.string	"%d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	k(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	scanf@PLT
	movl	n(%rip), %esi
	movl	$1, %eax
	movl	k(%rip), %r8d
	movl	%esi, %ecx
	leal	-1(%rsi), %r10d
	sall	%cl, %eax
	cmpl	%r8d, %eax
	jg	.L5
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%esi, %r10d
	addl	$1, %esi
	movl	%edx, %eax
	movl	%esi, %ecx
	sall	%cl, %eax
	cmpl	%r8d, %eax
	jle	.L4
	movl	%esi, n(%rip)
.L5:
	movl	m(%rip), %r14d
	testl	%r10d, %r10d
	je	.L7
	movslq	%r14d, %r11
	leaq	c(%rip), %r15
	movl	%r10d, %edi
	movl	%esi, %eax
	salq	$2, %r11
	leaq	a(%rip), %r12
	xorl	%edx, %edx
	movl	$1, %ebx
	leaq	b(%rip), %rbp
	leaq	(%r15,%r11), %r9
	leaq	(%r12,%r11), %r13
	addq	%rbp, %r11
	.p2align 4,,10
	.p2align 3
.L8:
	leal	-2(%rax), %ecx
	movd	%edi, %xmm1
	movl	%ebx, %eax
	movl	$0, (%r9,%rdx)
	pshufd	$0xe0, %xmm1, %xmm0
	movd	%ecx, %xmm2
	sall	%cl, %eax
	movq	%xmm0, 0(%r13,%rdx)
	pshufd	$0xe0, %xmm2, %xmm0
	movq	%xmm0, (%r11,%rdx)
	movl	%eax, 4(%r9,%rdx)
	movl	%edi, %eax
	addq	$8, %rdx
	subl	$1, %edi
	jne	.L8
	leal	(%r14,%r10,2), %r9d
	leal	-2(%rsi), %eax
	movl	%r9d, m(%rip)
	cmpl	$1, %esi
	je	.L32
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L11:
	btl	%eax, %r8d
	jnc	.L10
	leal	1(%rax), %ecx
	movl	%r8d, %edi
	movslq	%r9d, %rdx
	addl	$1, %r9d
	sarl	%cl, %edi
	movl	%r10d, (%r12,%rdx,4)
	sall	%cl, %edi
	movl	%eax, 0(%rbp,%rdx,4)
	movl	%edi, (%r15,%rdx,4)
	movl	$1, %edx
.L10:
	subl	$1, %eax
	jnb	.L11
	movl	m(%rip), %r14d
	testb	%dl, %dl
	je	.L7
	movl	%r9d, m(%rip)
.L32:
	movl	%r9d, %r14d
.L7:
	movl	%r14d, %edx
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	movl	m(%rip), %eax
	testl	%eax, %eax
	je	.L29
	movslq	%eax, %rdx
	subl	$1, %eax
	leaq	c(%rip), %r15
	leaq	-4(,%rdx,4), %rbx
	subq	%rax, %rdx
	leaq	a(%rip), %r12
	leaq	-8(,%rdx,4), %r14
	leaq	b(%rip), %rbp
	leaq	.LC2(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L13:
	movl	n(%rip), %esi
	movl	(%r15,%rbx), %ecx
	movq	%r13, %rdi
	xorl	%eax, %eax
	movl	%esi, %edx
	subl	(%r12,%rbx), %esi
	subl	0(%rbp,%rbx), %edx
	subq	$4, %rbx
	call	printf@PLT
	cmpq	%rbx, %r14
	jne	.L13
.L29:
	addq	$8, %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
.LFE1:
	.size	main, .-main
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 396
c:
	.zero	396
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 396
b:
	.zero	396
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 396
a:
	.zero	396
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.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
	.file	"temp.c"
	.text
	.p2align 4
	.globl	push
	.type	push, @function
push:
.LFB0:
	.cfi_startproc
	endbr64
	movl	%edx, %r8d
	movslq	m(%rip), %rdx
	leaq	a(%rip), %rcx
	movl	%edi, (%rcx,%rdx,4)
	movq	%rdx, %rax
	leaq	b(%rip), %rcx
	movl	%esi, (%rcx,%rdx,4)
	addl	$1, %eax
	leaq	c(%rip), %rcx
	movl	%r8d, (%rcx,%rdx,4)
	movl	%eax, m(%rip)
	ret
	.cfi_endproc
.LFE0:
	.size	push, .-push
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
.LC2:
	.string	"%d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	k(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	scanf@PLT
	movl	n(%rip), %esi
	movl	$1, %eax
	movl	k(%rip), %r8d
	movl	%esi, %ecx
	leal	-1(%rsi), %r10d
	sall	%cl, %eax
	cmpl	%r8d, %eax
	jg	.L5
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%esi, %r10d
	addl	$1, %esi
	movl	%edx, %eax
	movl	%esi, %ecx
	sall	%cl, %eax
	cmpl	%r8d, %eax
	jle	.L4
	movl	%esi, n(%rip)
.L5:
	movl	m(%rip), %r14d
	testl	%r10d, %r10d
	je	.L7
	movslq	%r14d, %r11
	leaq	c(%rip), %r15
	movl	%r10d, %edi
	movl	%esi, %eax
	salq	$2, %r11
	leaq	a(%rip), %r12
	xorl	%edx, %edx
	movl	$1, %ebx
	leaq	b(%rip), %rbp
	leaq	(%r15,%r11), %r9
	leaq	(%r12,%r11), %r13
	addq	%rbp, %r11
	.p2align 4,,10
	.p2align 3
.L8:
	leal	-2(%rax), %ecx
	movd	%edi, %xmm1
	movl	%ebx, %eax
	movl	$0, (%r9,%rdx)
	pshufd	$0xe0, %xmm1, %xmm0
	movd	%ecx, %xmm2
	sall	%cl, %eax
	movq	%xmm0, 0(%r13,%rdx)
	pshufd	$0xe0, %xmm2, %xmm0
	movq	%xmm0, (%r11,%rdx)
	movl	%eax, 4(%r9,%rdx)
	movl	%edi, %eax
	addq	$8, %rdx
	subl	$1, %edi
	jne	.L8
	leal	(%r14,%r10,2), %r9d
	leal	-2(%rsi), %eax
	movl	%r9d, m(%rip)
	cmpl	$1, %esi
	je	.L32
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L11:
	btl	%eax, %r8d
	jnc	.L10
	leal	1(%rax), %ecx
	movl	%r8d, %edi
	movslq	%r9d, %rdx
	addl	$1, %r9d
	sarl	%cl, %edi
	movl	%r10d, (%r12,%rdx,4)
	sall	%cl, %edi
	movl	%eax, 0(%rbp,%rdx,4)
	movl	%edi, (%r15,%rdx,4)
	movl	$1, %edx
.L10:
	subl	$1, %eax
	jnb	.L11
	movl	m(%rip), %r14d
	testb	%dl, %dl
	je	.L7
	movl	%r9d, m(%rip)
.L32:
	movl	%r9d, %r14d
.L7:
	movl	%r14d, %edx
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	movl	m(%rip), %eax
	testl	%eax, %eax
	je	.L29
	movslq	%eax, %rdx
	subl	$1, %eax
	leaq	c(%rip), %r15
	leaq	-4(,%rdx,4), %rbx
	subq	%rax, %rdx
	leaq	a(%rip), %r12
	leaq	-8(,%rdx,4), %r14
	leaq	b(%rip), %rbp
	leaq	.LC2(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L13:
	movl	n(%rip), %esi
	movl	(%r15,%rbx), %ecx
	movq	%r13, %rdi
	xorl	%eax, %eax
	movl	%esi, %edx
	subl	(%r12,%rbx), %esi
	subl	0(%rbp,%rbx), %edx
	subq	$4, %rbx
	call	printf@PLT
	cmpq	%rbx, %r14
	jne	.L13
.L29:
	addq	$8, %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
.LFE1:
	.size	main, .-main
	.globl	c
	.bss
	.align 32
	.type	c, @object
	.size	c, 396
c:
	.zero	396
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 396
b:
	.zero	396
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 396
a:
	.zero	396
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.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:

n,m,k;a[99],b[99],c[99];
void push(x,y,z){a[m]=x;b[m]=y;c[m]=z;m++;}
main(i){
	scanf("%d",&k);
	while((1<<n)<=k)n++;
	for(i=n;--i;){
		push(i,i-1,0);
		push(i,i-1,1<<(i-1));
	}
	for(i=n-2;~i;i--){
		if((1<<i)&k){
			push(n-1,i,(k>>(i+1))<<(i+1));
		}
	}
	printf("%d %d\n",n,m);
	for(i=m;i--;){
		printf("%d %d %d\n",n-a[i],n-b[i],c[i]);
	}
	return 0;
}

4

3 4
2 3 1
2 3 0
1 2 2
1 2 0

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

```c
n,m,k;a[99],b[99],c[99];
void push(x,y,z){a[m]=x;b[m]=y;c[m]=z;m++;}
main(i){
	scanf("%d",&k);
	while((1<<n)<=k)n++;
	for(i=n;--i;){
		push(i,i-1,0);
		push(i,i-1,1<<(i-1));
	}
	for(i=n-2;~i;i--){
		if((1<<i)&k){
			push(n-1,i,(k>>(i+1))<<(i+1));
		}
	}
	printf("%d %d\n",n,m);
	for(i=m;i--;){
		printf("%d %d %d\n",n-a[i],n-b[i],c[i]);
	}
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.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	a
	.align 32
	.type	a, @object
	.size	a, 396
a:
	.zero	396
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 396
b:
	.zero	396
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 396
c:
	.zero	396
	.text
	.globl	push
	.type	push, @function
push:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	m(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	m(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	m(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	c(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	m(%rip), %eax
	addl	$1, %eax
	movl	%eax, m(%rip)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	push, .-push
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
.LC2:
	.string	"%d %d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	leaq	k(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L3
.L4:
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
.L3:
	movl	n(%rip), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	k(%rip), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	n(%rip), %eax
	movl	%eax, -4(%rbp)
	jmp	.L5
.L6:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-4(%rbp), %eax
	movl	$0, %edx
	movl	%ecx, %esi
	movl	%eax, %edi
	movl	$0, %eax
	call	push
	movl	-4(%rbp), %eax
	subl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	-4(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-4(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	movl	$0, %eax
	call	push
.L5:
	subl	$1, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jne	.L6
	movl	n(%rip), %eax
	subl	$2, %eax
	movl	%eax, -4(%rbp)
	jmp	.L7
.L9:
	movl	k(%rip), %edx
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L8
	movl	k(%rip), %edx
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	n(%rip), %eax
	leal	-1(%rax), %ecx
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	movl	$0, %eax
	call	push
.L8:
	subl	$1, -4(%rbp)
.L7:
	cmpl	$-1, -4(%rbp)
	jne	.L9
	movl	m(%rip), %edx
	movl	n(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	m(%rip), %eax
	movl	%eax, -4(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	n(%rip), %edx
	movl	-4(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	b(%rip), %rcx
	movl	(%rsi,%rcx), %ecx
	subl	%ecx, %edx
	movl	n(%rip), %ecx
	movl	-4(%rbp), %esi
	movslq	%esi, %rsi
	leaq	0(,%rsi,4), %rdi
	leaq	a(%rip), %rsi
	movl	(%rdi,%rsi), %edi
	movl	%ecx, %esi
	subl	%edi, %esi
	movl	%eax, %ecx
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -4(%rbp)
	testl	%eax, %eax
	jne	.L11
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.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.
train
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.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	a
	.align 32
	.type	a, @object
	.size	a, 396
a:
	.zero	396
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 396
b:
	.zero	396
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 396
c:
	.zero	396
	.text
	.globl	push
	.type	push, @function
push:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	m(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	m(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	m(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	c(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	m(%rip), %eax
	addl	$1, %eax
	movl	%eax, m(%rip)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	push, .-push
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
.LC2:
	.string	"%d %d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	leaq	k(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L3
.L4:
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
.L3:
	movl	n(%rip), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	k(%rip), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	n(%rip), %eax
	movl	%eax, -4(%rbp)
	jmp	.L5
.L6:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-4(%rbp), %eax
	movl	$0, %edx
	movl	%ecx, %esi
	movl	%eax, %edi
	movl	$0, %eax
	call	push
	movl	-4(%rbp), %eax
	subl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	-4(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-4(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	movl	$0, %eax
	call	push
.L5:
	subl	$1, -4(%rbp)
	cmpl	$0, -4(%rbp)
	jne	.L6
	movl	n(%rip), %eax
	subl	$2, %eax
	movl	%eax, -4(%rbp)
	jmp	.L7
.L9:
	movl	k(%rip), %edx
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L8
	movl	k(%rip), %edx
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	n(%rip), %eax
	leal	-1(%rax), %ecx
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	movl	$0, %eax
	call	push
.L8:
	subl	$1, -4(%rbp)
.L7:
	cmpl	$-1, -4(%rbp)
	jne	.L9
	movl	m(%rip), %edx
	movl	n(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	m(%rip), %eax
	movl	%eax, -4(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	n(%rip), %edx
	movl	-4(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	b(%rip), %rcx
	movl	(%rsi,%rcx), %ecx
	subl	%ecx, %edx
	movl	n(%rip), %ecx
	movl	-4(%rbp), %esi
	movslq	%esi, %rsi
	leaq	0(,%rsi,4), %rdi
	leaq	a(%rip), %rsi
	movl	(%rdi,%rsi), %edi
	movl	%ecx, %esi
	subl	%edi, %esi
	movl	%eax, %ecx
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -4(%rbp)
	testl	%eax, %eax
	jne	.L11
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.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:
