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

```c
#include <stdio.h>
short rml[100];
int d,g,n,k,i,j,s[100];
int main(void){
	while(scanf("%d%d",&n,&k),(n != k || k )){
		for(i = 0;i < k;i++)scanf("%d",s+i);
		for(i = 0;i < n * k;i++){
			scanf("%d",&g);
			s[i % k] -= g;
			if(s[i % k] < 0)rml[d] = 1;
		}
		d++;
	}
	for(i = 0;i < d;i++)printf("%s\n",(!rml[i]?"Yes":"No"));
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	k(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	n(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	rml(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	s(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	movl	k(%rip), %edx
	movl	$0, i(%rip)
	cmpl	%edx, %eax
	jne	.L9
	testl	%edx, %edx
	je	.L23
.L9:
	testl	%edx, %edx
	jle	.L3
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	cltq
	movq	%rbp, %rdi
	leaq	(%rbx,%rax,4), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	%edx, %eax
	jl	.L4
	movl	n(%rip), %eax
.L3:
	imull	%edx, %eax
	leaq	g(%rip), %r12
	movl	$0, i(%rip)
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	xorl	%eax, %eax
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movl	i(%rip), %ecx
	movl	k(%rip), %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movslq	%edx, %rdx
	movl	(%rbx,%rdx,4), %eax
	subl	g(%rip), %eax
	movl	%eax, (%rbx,%rdx,4)
	jns	.L6
	movslq	d(%rip), %rax
	movl	$1, %edi
	movw	%di, 0(%r13,%rax,2)
.L6:
	imull	n(%rip), %esi
	addl	$1, %ecx
	movl	%ecx, i(%rip)
	cmpl	%esi, %ecx
	jl	.L5
.L8:
	addl	$1, d(%rip)
	jmp	.L2
.L23:
	movl	d(%rip), %edx
	xorl	%eax, %eax
	leaq	rml(%rip), %rbx
	leaq	.LC3(%rip), %r12
	leaq	.LC2(%rip), %rbp
	testl	%edx, %edx
	jle	.L16
	.p2align 4,,10
	.p2align 3
.L10:
	cltq
	cmpw	$0, (%rbx,%rax,2)
	jne	.L11
	movq	%rbp, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	%eax, d(%rip)
	movl	%eax, i(%rip)
	jg	.L10
.L16:
	addq	$8, %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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movq	%r12, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	d(%rip), %eax
	movl	%eax, i(%rip)
	jl	.L10
	jmp	.L16
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 400
s:
	.zero	400
	.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
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	g
	.align 4
	.type	g, @object
	.size	g, 4
g:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	rml
	.align 32
	.type	rml, @object
	.size	rml, 200
rml:
	.zero	200
	.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%d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	k(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	n(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	rml(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	s(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	movl	k(%rip), %edx
	movl	$0, i(%rip)
	cmpl	%edx, %eax
	jne	.L9
	testl	%edx, %edx
	je	.L23
.L9:
	testl	%edx, %edx
	jle	.L3
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	cltq
	movq	%rbp, %rdi
	leaq	(%rbx,%rax,4), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	%edx, %eax
	jl	.L4
	movl	n(%rip), %eax
.L3:
	imull	%edx, %eax
	leaq	g(%rip), %r12
	movl	$0, i(%rip)
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	xorl	%eax, %eax
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movl	i(%rip), %ecx
	movl	k(%rip), %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movslq	%edx, %rdx
	movl	(%rbx,%rdx,4), %eax
	subl	g(%rip), %eax
	movl	%eax, (%rbx,%rdx,4)
	jns	.L6
	movslq	d(%rip), %rax
	movl	$1, %edi
	movw	%di, 0(%r13,%rax,2)
.L6:
	imull	n(%rip), %esi
	addl	$1, %ecx
	movl	%ecx, i(%rip)
	cmpl	%esi, %ecx
	jl	.L5
.L8:
	addl	$1, d(%rip)
	jmp	.L2
.L23:
	movl	d(%rip), %edx
	xorl	%eax, %eax
	leaq	rml(%rip), %rbx
	leaq	.LC3(%rip), %r12
	leaq	.LC2(%rip), %rbp
	testl	%edx, %edx
	jle	.L16
	.p2align 4,,10
	.p2align 3
.L10:
	cltq
	cmpw	$0, (%rbx,%rax,2)
	jne	.L11
	movq	%rbp, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	%eax, d(%rip)
	movl	%eax, i(%rip)
	jg	.L10
.L16:
	addq	$8, %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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movq	%r12, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	d(%rip), %eax
	movl	%eax, i(%rip)
	jl	.L10
	jmp	.L16
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 400
s:
	.zero	400
	.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
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	g
	.align 4
	.type	g, @object
	.size	g, 4
g:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	rml
	.align 32
	.type	rml, @object
	.size	rml, 200
rml:
	.zero	200
	.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%d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	k(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	n(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	rml(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	s(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	movl	k(%rip), %edx
	movl	$0, i(%rip)
	cmpl	%edx, %eax
	jne	.L9
	testl	%edx, %edx
	je	.L23
.L9:
	testl	%edx, %edx
	jle	.L3
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	cltq
	movq	%rbp, %rdi
	leaq	(%rbx,%rax,4), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	%edx, %eax
	jl	.L4
	movl	n(%rip), %eax
.L3:
	imull	%edx, %eax
	leaq	g(%rip), %r12
	movl	$0, i(%rip)
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	xorl	%eax, %eax
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movl	i(%rip), %ecx
	movl	k(%rip), %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movslq	%edx, %rdx
	movl	(%rbx,%rdx,4), %eax
	subl	g(%rip), %eax
	movl	%eax, (%rbx,%rdx,4)
	jns	.L6
	movslq	d(%rip), %rax
	movl	$1, %edi
	movw	%di, 0(%r13,%rax,2)
.L6:
	imull	n(%rip), %esi
	addl	$1, %ecx
	movl	%ecx, i(%rip)
	cmpl	%esi, %ecx
	jl	.L5
.L8:
	addl	$1, d(%rip)
	jmp	.L2
.L23:
	movl	d(%rip), %edx
	xorl	%eax, %eax
	leaq	rml(%rip), %rbx
	leaq	.LC3(%rip), %r12
	leaq	.LC2(%rip), %rbp
	testl	%edx, %edx
	jle	.L16
	.p2align 4,,10
	.p2align 3
.L10:
	cltq
	cmpw	$0, (%rbx,%rax,2)
	jne	.L11
	movq	%rbp, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	%eax, d(%rip)
	movl	%eax, i(%rip)
	jg	.L10
.L16:
	addq	$8, %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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movq	%r12, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	d(%rip), %eax
	movl	%eax, i(%rip)
	jl	.L10
	jmp	.L16
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 400
s:
	.zero	400
	.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
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	g
	.align 4
	.type	g, @object
	.size	g, 4
g:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	rml
	.align 32
	.type	rml, @object
	.size	rml, 200
rml:
	.zero	200
	.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
#include <stdio.h>
short rml[100];
int d,g,n,k,i,j,s[100];
int main(void){
	while(scanf("%d%d",&n,&k),(n != k || k )){
		for(i = 0;i < k;i++)scanf("%d",s+i);
		for(i = 0;i < n * k;i++){
			scanf("%d",&g);
			s[i % k] -= g;
			if(s[i % k] < 0)rml[d] = 1;
		}
		d++;
	}
	for(i = 0;i < d;i++)printf("%s\n",(!rml[i]?"Yes":"No"));
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
short rml[100];
int d,g,n,k,i,j,s[100];
int main(void){
	while(scanf("%d%d",&n,&k),(n != k || k )){
		for(i = 0;i < k;i++)scanf("%d",s+i);
		for(i = 0;i < n * k;i++){
			scanf("%d",&g);
			s[i % k] -= g;
			if(s[i % k] < 0)rml[d] = 1;
		}
		d++;
	}
	for(i = 0;i < d;i++)printf("%s\n",(!rml[i]?"Yes":"No"));
	return 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:

2 3
5 4 5
1 2 3
3 2 1
3 5
1 2 3 4 5
-1 1 0 1 2
0 1 1 2 2
1 0 3 1 1
0 0
 2 3
5 4 5
1 2 3
3 2 1
3 5
1 2 3 4 5
0 1 -1 1 2
0 1 1 2 2
1 0 3 1 1
0 0
 2 3
2 4 5
1 2 3
3 2 1
3 5
1 2 3 4 5
-1 1 0 1 2
0 1 1 2 2
1 0 3 1 1
0 0
 2 3
5 4 5
1 2 3
3 4 1
3 5
1 2 3 7 5
1 1 -1 1 2
-1 1 1 0 2
1 0 3 1 1
0 0
 2 3
5 4 5
1 1 3
3 2 1
3 5
1 2 3 4 5
-1 1 0 1 2
0 1 1 2 2
1 0 3 1 1
0 0
 2 3
5 4 6
1 1 3
3 2 1
3 5
1 2 3 4 5
-1 1 0 1 2
0 1 1 2 2
1 0 3 1 1
0 0
 2 3
5 4 6
1 1 3
3 2 1
3 5
1 2 3 6 5
-1 1 0 1 2
0 1 1 2 2
1 0 3 1 1
0 0
 2 3
5 4 6
1 1 3
3 2 1
3 5
1 2 3 6 5
-1 1 0 1 2
0 0 1 2 2
1 0 3 1 1
0 0
 2 3
5 4 6
1 1 3
3 2 1
3 5
1 2 3 6 5
-1 1 0 1 2
0 0 1 2 2
1 0 3 0 1
0 0
 2 3
5 4 5
1 1 4
3 2 1
3 5
1 2 3 4 5
-1 1 0 1 2
0 1 1 2 2
1 0 3 1 1
0 0

Yes
No
 Yes
Yes
 No
No
 No
Yes
 Yes
No
 Yes
No
 Yes
No
 Yes
No
 Yes
No
 Yes
No

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

```c
#include <stdio.h>
short rml[100];
int d,g,n,k,i,j,s[100];
int main(void){
	while(scanf("%d%d",&n,&k),(n != k || k )){
		for(i = 0;i < k;i++)scanf("%d",s+i);
		for(i = 0;i < n * k;i++){
			scanf("%d",&g);
			s[i % k] -= g;
			if(s[i % k] < 0)rml[d] = 1;
		}
		d++;
	}
	for(i = 0;i < d;i++)printf("%s\n",(!rml[i]?"Yes":"No"));
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	k(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	n(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	rml(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	s(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	movl	k(%rip), %edx
	movl	$0, i(%rip)
	cmpl	%edx, %eax
	jne	.L9
	testl	%edx, %edx
	je	.L23
.L9:
	testl	%edx, %edx
	jle	.L3
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	cltq
	movq	%rbp, %rdi
	leaq	(%rbx,%rax,4), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	%edx, %eax
	jl	.L4
	movl	n(%rip), %eax
.L3:
	imull	%edx, %eax
	leaq	g(%rip), %r12
	movl	$0, i(%rip)
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	xorl	%eax, %eax
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movl	i(%rip), %ecx
	movl	k(%rip), %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movslq	%edx, %rdx
	movl	(%rbx,%rdx,4), %eax
	subl	g(%rip), %eax
	movl	%eax, (%rbx,%rdx,4)
	jns	.L6
	movslq	d(%rip), %rax
	movl	$1, %edi
	movw	%di, 0(%r13,%rax,2)
.L6:
	imull	n(%rip), %esi
	addl	$1, %ecx
	movl	%ecx, i(%rip)
	cmpl	%esi, %ecx
	jl	.L5
.L8:
	addl	$1, d(%rip)
	jmp	.L2
.L23:
	movl	d(%rip), %edx
	xorl	%eax, %eax
	leaq	rml(%rip), %rbx
	leaq	.LC3(%rip), %r12
	leaq	.LC2(%rip), %rbp
	testl	%edx, %edx
	jle	.L16
	.p2align 4,,10
	.p2align 3
.L10:
	cltq
	cmpw	$0, (%rbx,%rax,2)
	jne	.L11
	movq	%rbp, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	%eax, d(%rip)
	movl	%eax, i(%rip)
	jg	.L10
.L16:
	addq	$8, %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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movq	%r12, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	d(%rip), %eax
	movl	%eax, i(%rip)
	jl	.L10
	jmp	.L16
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 400
s:
	.zero	400
	.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
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	g
	.align 4
	.type	g, @object
	.size	g, 4
g:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	rml
	.align 32
	.type	rml, @object
	.size	rml, 200
rml:
	.zero	200
	.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%d"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	k(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	n(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	rml(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	s(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	movl	k(%rip), %edx
	movl	$0, i(%rip)
	cmpl	%edx, %eax
	jne	.L9
	testl	%edx, %edx
	je	.L23
.L9:
	testl	%edx, %edx
	jle	.L3
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	cltq
	movq	%rbp, %rdi
	leaq	(%rbx,%rax,4), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	i(%rip), %eax
	movl	k(%rip), %edx
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	%edx, %eax
	jl	.L4
	movl	n(%rip), %eax
.L3:
	imull	%edx, %eax
	leaq	g(%rip), %r12
	movl	$0, i(%rip)
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	xorl	%eax, %eax
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movl	i(%rip), %ecx
	movl	k(%rip), %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movslq	%edx, %rdx
	movl	(%rbx,%rdx,4), %eax
	subl	g(%rip), %eax
	movl	%eax, (%rbx,%rdx,4)
	jns	.L6
	movslq	d(%rip), %rax
	movl	$1, %edi
	movw	%di, 0(%r13,%rax,2)
.L6:
	imull	n(%rip), %esi
	addl	$1, %ecx
	movl	%ecx, i(%rip)
	cmpl	%esi, %ecx
	jl	.L5
.L8:
	addl	$1, d(%rip)
	jmp	.L2
.L23:
	movl	d(%rip), %edx
	xorl	%eax, %eax
	leaq	rml(%rip), %rbx
	leaq	.LC3(%rip), %r12
	leaq	.LC2(%rip), %rbp
	testl	%edx, %edx
	jle	.L16
	.p2align 4,,10
	.p2align 3
.L10:
	cltq
	cmpw	$0, (%rbx,%rax,2)
	jne	.L11
	movq	%rbp, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	%eax, d(%rip)
	movl	%eax, i(%rip)
	jg	.L10
.L16:
	addq	$8, %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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movq	%r12, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	d(%rip), %eax
	movl	%eax, i(%rip)
	jl	.L10
	jmp	.L16
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 400
s:
	.zero	400
	.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
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	g
	.align 4
	.type	g, @object
	.size	g, 4
g:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	rml
	.align 32
	.type	rml, @object
	.size	rml, 200
rml:
	.zero	200
	.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:
```