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

```c
#include <stdio.h>
#include <stdlib.h>
#define int long long

signed main(){
	int N, k, i, j;
	scanf("%lld", &N);
	for(k = 1; (k * (k + 1)) / 2 <= N; k++){
		if((k * (k + 1)) / 2 == N){
			printf("Yes\n");
			printf("%lld\n", k + 1);
			int **A = (int **)malloc(sizeof(int *) * (k + 1));
			for(i = 0; i <= k; i++){
				A[i] = (int *)malloc(sizeof(int) * (N + 1));
				for(j = 0; j <= N; j++){
					A[i][j] = 0;
				}
			}
			for(i = 1; i <= k; i++){
				for(j = 1; j <= i; j++){
//					printf("(i, j) = (%lld, %lld)\n", i, j);
					A[j - 1][(i * (i - 1)) / 2 + j] = 1;
					A[i][(i * (i - 1)) / 2 + j] = 1;
				}
			}
			for(i = 0; i <= k; i++){
				printf("%lld ", k);
				for(j = 1; j <= N; j++){
					if(A[i][j] == 1){
						printf("%lld ", j);
					}
				}
				printf("\n");
			}
			return 0;
		}
	}
	printf("No\n");
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"Yes"
.LC2:
	.string	"%lld\n"
.LC3:
	.string	"%lld "
.LC4:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$1, -56(%rbp)
	jmp	.L2
.L18:
	movq	-56(%rbp), %rax
	addq	$1, %rax
	imulq	-56(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	cmpq	%rax, %rdx
	jne	.L3
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movq	-56(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	-56(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -32(%rbp)
	movq	$0, -48(%rbp)
	jmp	.L4
.L7:
	movq	-64(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	-48(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movq	$0, -40(%rbp)
	jmp	.L5
.L6:
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-40(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$0, (%rax)
	addq	$1, -40(%rbp)
.L5:
	movq	-64(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jle	.L6
	addq	$1, -48(%rbp)
.L4:
	movq	-48(%rbp), %rax
	cmpq	-56(%rbp), %rax
	jle	.L7
	movq	$1, -48(%rbp)
	jmp	.L8
.L11:
	movq	$1, -40(%rbp)
	jmp	.L9
.L10:
	movq	-40(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-48(%rbp), %rax
	subq	$1, %rax
	imulq	-48(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$1, (%rax)
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-48(%rbp), %rax
	subq	$1, %rax
	imulq	-48(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$1, (%rax)
	addq	$1, -40(%rbp)
.L9:
	movq	-40(%rbp), %rax
	cmpq	-48(%rbp), %rax
	jle	.L10
	addq	$1, -48(%rbp)
.L8:
	movq	-48(%rbp), %rax
	cmpq	-56(%rbp), %rax
	jle	.L11
	movq	$0, -48(%rbp)
	jmp	.L12
.L16:
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	$1, -40(%rbp)
	jmp	.L13
.L15:
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-40(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	$1, %rax
	jne	.L14
	movq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	addq	$1, -40(%rbp)
.L13:
	movq	-64(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jle	.L15
	movl	$10, %edi
	call	putchar@PLT
	addq	$1, -48(%rbp)
.L12:
	movq	-48(%rbp), %rax
	cmpq	-56(%rbp), %rax
	jle	.L16
	movl	$0, %eax
	jmp	.L19
.L3:
	addq	$1, -56(%rbp)
.L2:
	movq	-56(%rbp), %rax
	addq	$1, %rax
	imulq	-56(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L18
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L19:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"Yes"
.LC2:
	.string	"%lld\n"
.LC3:
	.string	"%lld "
.LC4:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %rdx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	je	.L30
.L2:
	movq	%r12, %rbx
	addq	$1, %r12
	movq	%r12, %rax
	imulq	%rbx, %rax
	sarq	%rax
	cmpq	%rdx, %rax
	jle	.L19
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
.L14:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$56, %rsp
	.cfi_remember_state
	.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
.L30:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	movq	%r12, %rdx
	movl	$1, %edi
	xorl	%eax, %eax
	salq	$3, %r12
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	%r12, %rdi
	call	malloc@PLT
	movq	32(%rsp), %r14
	movq	%rax, %rbp
	movq	%rax, %r13
	leaq	(%r12,%rax), %rax
	leaq	1(%r14), %rdi
	movq	%rax, 8(%rsp)
	movq	%rdi, %rax
	movq	%rdi, 24(%rsp)
	leaq	0(,%rdi,8), %r15
	andq	$-2, %rdi
	shrq	%rax
	movq	%rdi, %r12
	salq	$4, %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rdi
	call	malloc@PLT
	movq	%rax, 0(%r13)
	testq	%r14, %r14
	js	.L9
	je	.L21
	movq	16(%rsp), %rsi
	movq	%rax, %rdx
	pxor	%xmm0, %xmm0
	leaq	(%rsi,%rax), %rcx
	.p2align 4,,10
	.p2align 3
.L7:
	movups	%xmm0, (%rdx)
	addq	$16, %rdx
	cmpq	%rdx, %rcx
	jne	.L7
	movq	%r12, %rdx
	cmpq	24(%rsp), %r12
	je	.L9
.L6:
	movq	$0, (%rax,%rdx,8)
.L9:
	addq	$8, %r13
	cmpq	%r13, 8(%rsp)
	jne	.L4
	movl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	-1(%r8), %rdx
	leaq	1(%r8), %r9
	movq	0(%rbp,%r8,8), %rdi
	imulq	%r8, %rdx
	sarq	%rdx
	leaq	(%r9,%rdx), %rcx
	leaq	8(,%rdx,8), %rax
	negq	%rdx
	salq	$3, %rcx
	leaq	0(%rbp,%rdx,8), %rsi
	.p2align 4,,10
	.p2align 3
.L11:
	movq	-8(%rsi,%rax), %rdx
	movq	$1, (%rdx,%rax)
	movq	$1, (%rdi,%rax)
	addq	$8, %rax
	cmpq	%rcx, %rax
	jne	.L11
	cmpq	%r8, %rbx
	je	.L22
	movq	%r9, %r8
	jmp	.L5
.L22:
	xorl	%r13d, %r13d
	leaq	.LC3(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rbx, %rdx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	32(%rsp), %rax
	testq	%rax, %rax
	jle	.L17
	movq	0(%rbp,%r13,8), %r15
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L18:
	cmpq	$1, (%r15,%r12,8)
	je	.L32
	addq	$1, %r12
	cmpq	%rax, %r12
	jle	.L18
.L17:
	movl	$10, %edi
	call	putchar@PLT
	leaq	1(%r13), %rax
	cmpq	%r13, %rbx
	je	.L14
	movq	%rax, %r13
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L32:
	movq	%r12, %rdx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	32(%rsp), %rax
	addq	$1, %r12
	cmpq	%rax, %r12
	jle	.L18
	jmp	.L17
.L21:
	xorl	%edx, %edx
	jmp	.L6
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"Yes"
.LC2:
	.string	"%lld\n"
.LC3:
	.string	"%lld "
.LC4:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %rdx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	je	.L30
.L2:
	movq	%r12, %rbx
	addq	$1, %r12
	movq	%r12, %rax
	imulq	%rbx, %rax
	sarq	%rax
	cmpq	%rdx, %rax
	jle	.L19
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
.L14:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$56, %rsp
	.cfi_remember_state
	.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
.L30:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	movq	%r12, %rdx
	movl	$1, %edi
	xorl	%eax, %eax
	salq	$3, %r12
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	%r12, %rdi
	call	malloc@PLT
	movq	32(%rsp), %r14
	movq	%rax, %rbp
	movq	%rax, %r13
	leaq	(%r12,%rax), %rax
	leaq	1(%r14), %rdi
	movq	%rax, 8(%rsp)
	movq	%rdi, %rax
	movq	%rdi, 24(%rsp)
	leaq	0(,%rdi,8), %r15
	andq	$-2, %rdi
	shrq	%rax
	movq	%rdi, %r12
	salq	$4, %rax
	movq	%rax, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rdi
	call	malloc@PLT
	movq	%rax, 0(%r13)
	testq	%r14, %r14
	js	.L9
	je	.L21
	movq	16(%rsp), %rsi
	movq	%rax, %rdx
	pxor	%xmm0, %xmm0
	leaq	(%rsi,%rax), %rcx
	.p2align 4,,10
	.p2align 3
.L7:
	movups	%xmm0, (%rdx)
	addq	$16, %rdx
	cmpq	%rdx, %rcx
	jne	.L7
	movq	%r12, %rdx
	cmpq	24(%rsp), %r12
	je	.L9
.L6:
	movq	$0, (%rax,%rdx,8)
.L9:
	addq	$8, %r13
	cmpq	%r13, 8(%rsp)
	jne	.L4
	movl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	-1(%r8), %rdx
	leaq	1(%r8), %r9
	movq	0(%rbp,%r8,8), %rdi
	imulq	%r8, %rdx
	sarq	%rdx
	leaq	(%r9,%rdx), %rcx
	leaq	8(,%rdx,8), %rax
	negq	%rdx
	salq	$3, %rcx
	leaq	0(%rbp,%rdx,8), %rsi
	.p2align 4,,10
	.p2align 3
.L11:
	movq	-8(%rsi,%rax), %rdx
	movq	$1, (%rdx,%rax)
	movq	$1, (%rdi,%rax)
	addq	$8, %rax
	cmpq	%rcx, %rax
	jne	.L11
	cmpq	%r8, %rbx
	je	.L22
	movq	%r9, %r8
	jmp	.L5
.L22:
	xorl	%r13d, %r13d
	leaq	.LC3(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rbx, %rdx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	32(%rsp), %rax
	testq	%rax, %rax
	jle	.L17
	movq	0(%rbp,%r13,8), %r15
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L18:
	cmpq	$1, (%r15,%r12,8)
	je	.L32
	addq	$1, %r12
	cmpq	%rax, %r12
	jle	.L18
.L17:
	movl	$10, %edi
	call	putchar@PLT
	leaq	1(%r13), %rax
	cmpq	%r13, %rbx
	je	.L14
	movq	%rax, %r13
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L32:
	movq	%r12, %rdx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	32(%rsp), %rax
	addq	$1, %r12
	cmpq	%rax, %r12
	jle	.L18
	jmp	.L17
.L21:
	xorl	%edx, %edx
	jmp	.L6
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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:

#include <stdio.h>
#include <stdlib.h>
#define int long long

signed main(){
	int N, k, i, j;
	scanf("%lld", &N);
	for(k = 1; (k * (k + 1)) / 2 <= N; k++){
		if((k * (k + 1)) / 2 == N){
			printf("Yes\n");
			printf("%lld\n", k + 1);
			int **A = (int **)malloc(sizeof(int *) * (k + 1));
			for(i = 0; i <= k; i++){
				A[i] = (int *)malloc(sizeof(int) * (N + 1));
				for(j = 0; j <= N; j++){
					A[i][j] = 0;
				}
			}
			for(i = 1; i <= k; i++){
				for(j = 1; j <= i; j++){
//					printf("(i, j) = (%lld, %lld)\n", i, j);
					A[j - 1][(i * (i - 1)) / 2 + j] = 1;
					A[i][(i * (i - 1)) / 2 + j] = 1;
				}
			}
			for(i = 0; i <= k; i++){
				printf("%lld ", k);
				for(j = 1; j <= N; j++){
					if(A[i][j] == 1){
						printf("%lld ", j);
					}
				}
				printf("\n");
			}
			return 0;
		}
	}
	printf("No\n");
	return 0;
}
3

Yes
3
2 1 2 
2 1 3 
2 2 3 

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

```c
#include <stdio.h>
#include <stdlib.h>
#define int long long

signed main(){
	int N, k, i, j;
	scanf("%lld", &N);
	for(k = 1; (k * (k + 1)) / 2 <= N; k++){
		if((k * (k + 1)) / 2 == N){
			printf("Yes\n");
			printf("%lld\n", k + 1);
			int **A = (int **)malloc(sizeof(int *) * (k + 1));
			for(i = 0; i <= k; i++){
				A[i] = (int *)malloc(sizeof(int) * (N + 1));
				for(j = 0; j <= N; j++){
					A[i][j] = 0;
				}
			}
			for(i = 1; i <= k; i++){
				for(j = 1; j <= i; j++){
//					printf("(i, j) = (%lld, %lld)\n", i, j);
					A[j - 1][(i * (i - 1)) / 2 + j] = 1;
					A[i][(i * (i - 1)) / 2 + j] = 1;
				}
			}
			for(i = 0; i <= k; i++){
				printf("%lld ", k);
				for(j = 1; j <= N; j++){
					if(A[i][j] == 1){
						printf("%lld ", j);
					}
				}
				printf("\n");
			}
			return 0;
		}
	}
	printf("No\n");
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"Yes"
.LC2:
	.string	"%lld\n"
.LC3:
	.string	"%lld "
.LC4:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$1, -56(%rbp)
	jmp	.L2
.L18:
	movq	-56(%rbp), %rax
	addq	$1, %rax
	imulq	-56(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	cmpq	%rax, %rdx
	jne	.L3
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movq	-56(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	-56(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -32(%rbp)
	movq	$0, -48(%rbp)
	jmp	.L4
.L7:
	movq	-64(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	-48(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movq	$0, -40(%rbp)
	jmp	.L5
.L6:
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-40(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$0, (%rax)
	addq	$1, -40(%rbp)
.L5:
	movq	-64(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jle	.L6
	addq	$1, -48(%rbp)
.L4:
	movq	-48(%rbp), %rax
	cmpq	-56(%rbp), %rax
	jle	.L7
	movq	$1, -48(%rbp)
	jmp	.L8
.L11:
	movq	$1, -40(%rbp)
	jmp	.L9
.L10:
	movq	-40(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-48(%rbp), %rax
	subq	$1, %rax
	imulq	-48(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$1, (%rax)
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-48(%rbp), %rax
	subq	$1, %rax
	imulq	-48(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$1, (%rax)
	addq	$1, -40(%rbp)
.L9:
	movq	-40(%rbp), %rax
	cmpq	-48(%rbp), %rax
	jle	.L10
	addq	$1, -48(%rbp)
.L8:
	movq	-48(%rbp), %rax
	cmpq	-56(%rbp), %rax
	jle	.L11
	movq	$0, -48(%rbp)
	jmp	.L12
.L16:
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	$1, -40(%rbp)
	jmp	.L13
.L15:
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-40(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	$1, %rax
	jne	.L14
	movq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	addq	$1, -40(%rbp)
.L13:
	movq	-64(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jle	.L15
	movl	$10, %edi
	call	putchar@PLT
	addq	$1, -48(%rbp)
.L12:
	movq	-48(%rbp), %rax
	cmpq	-56(%rbp), %rax
	jle	.L16
	movl	$0, %eax
	jmp	.L19
.L3:
	addq	$1, -56(%rbp)
.L2:
	movq	-56(%rbp), %rax
	addq	$1, %rax
	imulq	-56(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L18
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L19:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"Yes"
.LC2:
	.string	"%lld\n"
.LC3:
	.string	"%lld "
.LC4:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$1, -56(%rbp)
	jmp	.L2
.L18:
	movq	-56(%rbp), %rax
	addq	$1, %rax
	imulq	-56(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	cmpq	%rax, %rdx
	jne	.L3
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movq	-56(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	-56(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -32(%rbp)
	movq	$0, -48(%rbp)
	jmp	.L4
.L7:
	movq	-64(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	-48(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movq	$0, -40(%rbp)
	jmp	.L5
.L6:
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-40(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$0, (%rax)
	addq	$1, -40(%rbp)
.L5:
	movq	-64(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jle	.L6
	addq	$1, -48(%rbp)
.L4:
	movq	-48(%rbp), %rax
	cmpq	-56(%rbp), %rax
	jle	.L7
	movq	$1, -48(%rbp)
	jmp	.L8
.L11:
	movq	$1, -40(%rbp)
	jmp	.L9
.L10:
	movq	-40(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-48(%rbp), %rax
	subq	$1, %rax
	imulq	-48(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$1, (%rax)
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-48(%rbp), %rax
	subq	$1, %rax
	imulq	-48(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$1, (%rax)
	addq	$1, -40(%rbp)
.L9:
	movq	-40(%rbp), %rax
	cmpq	-48(%rbp), %rax
	jle	.L10
	addq	$1, -48(%rbp)
.L8:
	movq	-48(%rbp), %rax
	cmpq	-56(%rbp), %rax
	jle	.L11
	movq	$0, -48(%rbp)
	jmp	.L12
.L16:
	movq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	$1, -40(%rbp)
	jmp	.L13
.L15:
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-40(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	$1, %rax
	jne	.L14
	movq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L14:
	addq	$1, -40(%rbp)
.L13:
	movq	-64(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jle	.L15
	movl	$10, %edi
	call	putchar@PLT
	addq	$1, -48(%rbp)
.L12:
	movq	-48(%rbp), %rax
	cmpq	-56(%rbp), %rax
	jle	.L16
	movl	$0, %eax
	jmp	.L19
.L3:
	addq	$1, -56(%rbp)
.L2:
	movq	-56(%rbp), %rax
	addq	$1, %rax
	imulq	-56(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L18
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L19:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
