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>
#include <math.h>
#include <string.h>
#define ll long long
#define rep(i,n) for(ll i=0;i<(n);i++)
#define max(p,q) ((p)>(q)?(p):(q))
#define min(p,q) ((p)<(q)?(p):(q))
#define chmax(a,b) ((a)=(a)>(b)?(a):(b))
#define chmin(a,b) ((a)=(a)<(b)?(a):(b))
#define abs(p) ((p)>=(0)?(p):(-(p)))
#define swap(a,b) do{ll w=(a);(a)=(b);(b)=w;}while(0)
#define swapd(a,b) do{double w=(a);(a)=(b);(b)=w}while(0)
#define in(a) scanf("%lld", &(a))
#define in2(a,b) scanf("%lld %lld",&(a),&(b))
#define in3(a,b,c) scanf("%lld %lld %lld",&(a),&(b),&(c))
#define ind(a) scanf("%lf", &(a))
#define ins(a) scanf("%s", (a))
#define put(a) printf("%lld\n", (a))
#define putd(a) printf("%.15f\n", (a))
//def   puts(a) printf("%s\n", a) 文字はこっち
#define MOD 1000000007
ll powll(ll a,ll b){ll r=1;rep(i,b){r*=a;}return r;}
//your code here!


int main(void){
    char A[55][55], B[55][55];
    ll N, M;
    in2(N,M);
    rep(i,N) ins(A[i]);
    rep(i,M) ins(B[i]);
    ll i,j,issame;
    for(i=0; i<=N-M; i++){
        for(j=0; j<=N-M; j++){//始点を定める
            issame = 1;
            rep(k,M){
                rep(l,M){
                    if(B[k][l]!=A[i+k][j+l]){
                        issame = 0;
                        break;
                    }
                }
            }
            if(issame){
                puts("Yes");
                return 0;
            }
        }
    }
    puts("No");
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	powll
	.type	powll, @function
powll:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	$1, -16(%rbp)
	movq	$0, -8(%rbp)
	jmp	.L2
.L3:
	movq	-16(%rbp), %rax
	imulq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L2:
	movq	-8(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jl	.L3
	movq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	powll, .-powll
	.section	.rodata
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%s"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-6144(%rbp), %rdx
	leaq	-6152(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -6136(%rbp)
	jmp	.L6
.L7:
	leaq	-6080(%rbp), %rcx
	movq	-6136(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -6136(%rbp)
.L6:
	movq	-6152(%rbp), %rax
	cmpq	%rax, -6136(%rbp)
	jl	.L7
	movq	$0, -6128(%rbp)
	jmp	.L8
.L9:
	leaq	-3040(%rbp), %rcx
	movq	-6128(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -6128(%rbp)
.L8:
	movq	-6144(%rbp), %rax
	cmpq	%rax, -6128(%rbp)
	jl	.L9
	movq	$0, -6120(%rbp)
	jmp	.L10
.L21:
	movq	$0, -6112(%rbp)
	jmp	.L11
.L20:
	movq	$1, -6104(%rbp)
	movq	$0, -6096(%rbp)
	jmp	.L12
.L17:
	movq	$0, -6088(%rbp)
	jmp	.L13
.L16:
	movq	-6096(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	leaq	0(%rbp,%rax), %rdx
	movq	-6088(%rbp), %rax
	addq	%rdx, %rax
	subq	$3040, %rax
	movzbl	(%rax), %ecx
	movq	-6120(%rbp), %rdx
	movq	-6096(%rbp), %rax
	addq	%rax, %rdx
	movq	-6112(%rbp), %rsi
	movq	-6088(%rbp), %rax
	addq	%rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$6080, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	je	.L14
	movq	$0, -6104(%rbp)
	jmp	.L15
.L14:
	addq	$1, -6088(%rbp)
.L13:
	movq	-6144(%rbp), %rax
	cmpq	%rax, -6088(%rbp)
	jl	.L16
.L15:
	addq	$1, -6096(%rbp)
.L12:
	movq	-6144(%rbp), %rax
	cmpq	%rax, -6096(%rbp)
	jl	.L17
	cmpq	$0, -6104(%rbp)
	je	.L18
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L22
.L18:
	addq	$1, -6112(%rbp)
.L11:
	movq	-6152(%rbp), %rax
	movq	-6144(%rbp), %rdx
	subq	%rdx, %rax
	cmpq	%rax, -6112(%rbp)
	jle	.L20
	addq	$1, -6120(%rbp)
.L10:
	movq	-6152(%rbp), %rax
	movq	-6144(%rbp), %rdx
	subq	%rdx, %rax
	cmpq	%rax, -6120(%rbp)
	jle	.L21
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L22:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	powll
	.type	powll, @function
powll:
.LFB51:
	.cfi_startproc
	endbr64
	testq	%rsi, %rsi
	jle	.L4
	xorl	%eax, %eax
	movl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %rax
	imulq	%rdi, %r8
	cmpq	%rax, %rsi
	jne	.L3
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$1, %r8d
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE51:
	.size	powll, .-powll
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%s"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4136
	orq	$0, (%rsp)
	subq	$2008, %rsp
	.cfi_def_cfa_offset 6144
	leaq	.LC0(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	movq	%fs:40, %rax
	movq	%rax, 6088(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	leaq	16(%rsp), %rbp
	call	__isoc99_scanf@PLT
	cmpq	$0, (%rsp)
	jle	.L12
.L11:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	addq	$55, %rbp
	cmpq	%rbx, (%rsp)
	jg	.L11
.L12:
	movq	8(%rsp), %rsi
	xorl	%ebx, %ebx
	leaq	3056(%rsp), %rbp
	leaq	.LC1(%rip), %r12
	testq	%rsi, %rsi
	jle	.L10
.L13:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rsi
	addq	$55, %rbp
	cmpq	%rbx, %rsi
	jg	.L13
.L10:
	movq	(%rsp), %r10
	subq	%rsi, %r10
	js	.L14
	leaq	(%rsi,%rsi,4), %rax
	leaq	3056(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	(%rsi,%rax,2), %rax
	leaq	16(%rsp), %r12
	leaq	(%rax,%rax,4), %rdi
	addq	%rbx, %rdi
.L15:
	leaq	0(%rbp,%rbp,4), %rax
	xorl	%r9d, %r9d
	leaq	0(%rbp,%rax,2), %rax
	leaq	(%rax,%rax,4), %r11
	addq	%r12, %r11
	.p2align 4,,10
	.p2align 3
.L24:
	testq	%rsi, %rsi
	jle	.L23
	leaq	(%r9,%r11), %rcx
	movq	%rbx, %rdx
	movl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L18:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L17:
	movzbl	(%rcx,%rax), %r14d
	cmpb	%r14b, (%rdx,%rax)
	jne	.L26
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L17
	addq	$55, %rdx
	addq	$55, %rcx
	cmpq	%rdi, %rdx
	jne	.L18
.L34:
	testq	%r8, %r8
	jne	.L23
	addq	$1, %r9
	cmpq	%r9, %r10
	jge	.L24
	addq	$1, %rbp
	cmpq	%rbp, %r10
	jge	.L15
.L14:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L26:
	addq	$55, %rdx
	xorl	%r8d, %r8d
	addq	$55, %rcx
	cmpq	%rdi, %rdx
	jne	.L18
	jmp	.L34
.L23:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L20:
	movq	6088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$6104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L35:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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
	.p2align 4
	.globl	powll
	.type	powll, @function
powll:
.LFB51:
	.cfi_startproc
	endbr64
	testq	%rsi, %rsi
	jle	.L4
	xorl	%eax, %eax
	movl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %rax
	imulq	%rdi, %r8
	cmpq	%rax, %rsi
	jne	.L3
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$1, %r8d
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE51:
	.size	powll, .-powll
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%s"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4136
	orq	$0, (%rsp)
	subq	$2008, %rsp
	.cfi_def_cfa_offset 6144
	leaq	.LC0(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	movq	%fs:40, %rax
	movq	%rax, 6088(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	leaq	16(%rsp), %rbp
	call	__isoc99_scanf@PLT
	cmpq	$0, (%rsp)
	jle	.L12
.L11:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	addq	$55, %rbp
	cmpq	%rbx, (%rsp)
	jg	.L11
.L12:
	movq	8(%rsp), %rsi
	xorl	%ebx, %ebx
	leaq	3056(%rsp), %rbp
	leaq	.LC1(%rip), %r12
	testq	%rsi, %rsi
	jle	.L10
.L13:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rsi
	addq	$55, %rbp
	cmpq	%rbx, %rsi
	jg	.L13
.L10:
	movq	(%rsp), %r10
	subq	%rsi, %r10
	js	.L14
	leaq	(%rsi,%rsi,4), %rax
	leaq	3056(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	(%rsi,%rax,2), %rax
	leaq	16(%rsp), %r12
	leaq	(%rax,%rax,4), %rdi
	addq	%rbx, %rdi
.L15:
	leaq	0(%rbp,%rbp,4), %rax
	xorl	%r9d, %r9d
	leaq	0(%rbp,%rax,2), %rax
	leaq	(%rax,%rax,4), %r11
	addq	%r12, %r11
	.p2align 4,,10
	.p2align 3
.L24:
	testq	%rsi, %rsi
	jle	.L23
	leaq	(%r9,%r11), %rcx
	movq	%rbx, %rdx
	movl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L18:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L17:
	movzbl	(%rcx,%rax), %r14d
	cmpb	%r14b, (%rdx,%rax)
	jne	.L26
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L17
	addq	$55, %rdx
	addq	$55, %rcx
	cmpq	%rdi, %rdx
	jne	.L18
.L34:
	testq	%r8, %r8
	jne	.L23
	addq	$1, %r9
	cmpq	%r9, %r10
	jge	.L24
	addq	$1, %rbp
	cmpq	%rbp, %r10
	jge	.L15
.L14:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L26:
	addq	$55, %rdx
	xorl	%r8d, %r8d
	addq	$55, %rcx
	cmpq	%rdi, %rdx
	jne	.L18
	jmp	.L34
.L23:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L20:
	movq	6088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$6104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L35:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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>
#include <math.h>
#include <string.h>
#define ll long long
#define rep(i,n) for(ll i=0;i<(n);i++)
#define max(p,q) ((p)>(q)?(p):(q))
#define min(p,q) ((p)<(q)?(p):(q))
#define chmax(a,b) ((a)=(a)>(b)?(a):(b))
#define chmin(a,b) ((a)=(a)<(b)?(a):(b))
#define abs(p) ((p)>=(0)?(p):(-(p)))
#define swap(a,b) do{ll w=(a);(a)=(b);(b)=w;}while(0)
#define swapd(a,b) do{double w=(a);(a)=(b);(b)=w}while(0)
#define in(a) scanf("%lld", &(a))
#define in2(a,b) scanf("%lld %lld",&(a),&(b))
#define in3(a,b,c) scanf("%lld %lld %lld",&(a),&(b),&(c))
#define ind(a) scanf("%lf", &(a))
#define ins(a) scanf("%s", (a))
#define put(a) printf("%lld\n", (a))
#define putd(a) printf("%.15f\n", (a))
//def   puts(a) printf("%s\n", a) 文字はこっち
#define MOD 1000000007
ll powll(ll a,ll b){ll r=1;rep(i,b){r*=a;}return r;}
//your code here!


int main(void){
    char A[55][55], B[55][55];
    ll N, M;
    in2(N,M);
    rep(i,N) ins(A[i]);
    rep(i,M) ins(B[i]);
    ll i,j,issame;
    for(i=0; i<=N-M; i++){
        for(j=0; j<=N-M; j++){//始点を定める
            issame = 1;
            rep(k,M){
                rep(l,M){
                    if(B[k][l]!=A[i+k][j+l]){
                        issame = 0;
                        break;
                    }
                }
            }
            if(issame){
                puts("Yes");
                return 0;
            }
        }
    }
    puts("No");
    return 0;
}

3 2
#.#
.#.
#-#
#.
.#
 3 2
-#
.#.
.#
.
.#
 4 0
....
....
....
....
 3 2
#.#
.".
#-#
#.
.#
 4 1
..-.
....
....
....
 3 2
-#
.#.
#.
.
.#
 3 2
#.#
.".
#-#
$.
.#
 0 1
..-.
....
....
....
 0 2
#.#
.".
#-#
$.
.#
 0 1
..-.
....
....
-...

Yes
 No
 Yes
 No
 No
 No
 No
 No
 No
 No

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>
#include <math.h>
#include <string.h>
#define ll long long
#define rep(i,n) for(ll i=0;i<(n);i++)
#define max(p,q) ((p)>(q)?(p):(q))
#define min(p,q) ((p)<(q)?(p):(q))
#define chmax(a,b) ((a)=(a)>(b)?(a):(b))
#define chmin(a,b) ((a)=(a)<(b)?(a):(b))
#define abs(p) ((p)>=(0)?(p):(-(p)))
#define swap(a,b) do{ll w=(a);(a)=(b);(b)=w;}while(0)
#define swapd(a,b) do{double w=(a);(a)=(b);(b)=w}while(0)
#define in(a) scanf("%lld", &(a))
#define in2(a,b) scanf("%lld %lld",&(a),&(b))
#define in3(a,b,c) scanf("%lld %lld %lld",&(a),&(b),&(c))
#define ind(a) scanf("%lf", &(a))
#define ins(a) scanf("%s", (a))
#define put(a) printf("%lld\n", (a))
#define putd(a) printf("%.15f\n", (a))
//def   puts(a) printf("%s\n", a) 文字はこっち
#define MOD 1000000007
ll powll(ll a,ll b){ll r=1;rep(i,b){r*=a;}return r;}
//your code here!


int main(void){
    char A[55][55], B[55][55];
    ll N, M;
    in2(N,M);
    rep(i,N) ins(A[i]);
    rep(i,M) ins(B[i]);
    ll i,j,issame;
    for(i=0; i<=N-M; i++){
        for(j=0; j<=N-M; j++){//始点を定める
            issame = 1;
            rep(k,M){
                rep(l,M){
                    if(B[k][l]!=A[i+k][j+l]){
                        issame = 0;
                        break;
                    }
                }
            }
            if(issame){
                puts("Yes");
                return 0;
            }
        }
    }
    puts("No");
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	powll
	.type	powll, @function
powll:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	$1, -16(%rbp)
	movq	$0, -8(%rbp)
	jmp	.L2
.L3:
	movq	-16(%rbp), %rax
	imulq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L2:
	movq	-8(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jl	.L3
	movq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	powll, .-powll
	.section	.rodata
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%s"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-6144(%rbp), %rdx
	leaq	-6152(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -6136(%rbp)
	jmp	.L6
.L7:
	leaq	-6080(%rbp), %rcx
	movq	-6136(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -6136(%rbp)
.L6:
	movq	-6152(%rbp), %rax
	cmpq	%rax, -6136(%rbp)
	jl	.L7
	movq	$0, -6128(%rbp)
	jmp	.L8
.L9:
	leaq	-3040(%rbp), %rcx
	movq	-6128(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -6128(%rbp)
.L8:
	movq	-6144(%rbp), %rax
	cmpq	%rax, -6128(%rbp)
	jl	.L9
	movq	$0, -6120(%rbp)
	jmp	.L10
.L21:
	movq	$0, -6112(%rbp)
	jmp	.L11
.L20:
	movq	$1, -6104(%rbp)
	movq	$0, -6096(%rbp)
	jmp	.L12
.L17:
	movq	$0, -6088(%rbp)
	jmp	.L13
.L16:
	movq	-6096(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	leaq	0(%rbp,%rax), %rdx
	movq	-6088(%rbp), %rax
	addq	%rdx, %rax
	subq	$3040, %rax
	movzbl	(%rax), %ecx
	movq	-6120(%rbp), %rdx
	movq	-6096(%rbp), %rax
	addq	%rax, %rdx
	movq	-6112(%rbp), %rsi
	movq	-6088(%rbp), %rax
	addq	%rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$6080, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	je	.L14
	movq	$0, -6104(%rbp)
	jmp	.L15
.L14:
	addq	$1, -6088(%rbp)
.L13:
	movq	-6144(%rbp), %rax
	cmpq	%rax, -6088(%rbp)
	jl	.L16
.L15:
	addq	$1, -6096(%rbp)
.L12:
	movq	-6144(%rbp), %rax
	cmpq	%rax, -6096(%rbp)
	jl	.L17
	cmpq	$0, -6104(%rbp)
	je	.L18
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L22
.L18:
	addq	$1, -6112(%rbp)
.L11:
	movq	-6152(%rbp), %rax
	movq	-6144(%rbp), %rdx
	subq	%rdx, %rax
	cmpq	%rax, -6112(%rbp)
	jle	.L20
	addq	$1, -6120(%rbp)
.L10:
	movq	-6152(%rbp), %rax
	movq	-6144(%rbp), %rdx
	subq	%rdx, %rax
	cmpq	%rax, -6120(%rbp)
	jle	.L21
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L22:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	powll
	.type	powll, @function
powll:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	$1, -16(%rbp)
	movq	$0, -8(%rbp)
	jmp	.L2
.L3:
	movq	-16(%rbp), %rax
	imulq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L2:
	movq	-8(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jl	.L3
	movq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	powll, .-powll
	.section	.rodata
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%s"
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-6144(%rbp), %rdx
	leaq	-6152(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -6136(%rbp)
	jmp	.L6
.L7:
	leaq	-6080(%rbp), %rcx
	movq	-6136(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -6136(%rbp)
.L6:
	movq	-6152(%rbp), %rax
	cmpq	%rax, -6136(%rbp)
	jl	.L7
	movq	$0, -6128(%rbp)
	jmp	.L8
.L9:
	leaq	-3040(%rbp), %rcx
	movq	-6128(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -6128(%rbp)
.L8:
	movq	-6144(%rbp), %rax
	cmpq	%rax, -6128(%rbp)
	jl	.L9
	movq	$0, -6120(%rbp)
	jmp	.L10
.L21:
	movq	$0, -6112(%rbp)
	jmp	.L11
.L20:
	movq	$1, -6104(%rbp)
	movq	$0, -6096(%rbp)
	jmp	.L12
.L17:
	movq	$0, -6088(%rbp)
	jmp	.L13
.L16:
	movq	-6096(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	leaq	0(%rbp,%rax), %rdx
	movq	-6088(%rbp), %rax
	addq	%rdx, %rax
	subq	$3040, %rax
	movzbl	(%rax), %ecx
	movq	-6120(%rbp), %rdx
	movq	-6096(%rbp), %rax
	addq	%rax, %rdx
	movq	-6112(%rbp), %rsi
	movq	-6088(%rbp), %rax
	addq	%rax, %rsi
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$6080, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	je	.L14
	movq	$0, -6104(%rbp)
	jmp	.L15
.L14:
	addq	$1, -6088(%rbp)
.L13:
	movq	-6144(%rbp), %rax
	cmpq	%rax, -6088(%rbp)
	jl	.L16
.L15:
	addq	$1, -6096(%rbp)
.L12:
	movq	-6144(%rbp), %rax
	cmpq	%rax, -6096(%rbp)
	jl	.L17
	cmpq	$0, -6104(%rbp)
	je	.L18
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L22
.L18:
	addq	$1, -6112(%rbp)
.L11:
	movq	-6152(%rbp), %rax
	movq	-6144(%rbp), %rdx
	subq	%rdx, %rax
	cmpq	%rax, -6112(%rbp)
	jle	.L20
	addq	$1, -6120(%rbp)
.L10:
	movq	-6152(%rbp), %rax
	movq	-6144(%rbp), %rdx
	subq	%rdx, %rax
	cmpq	%rax, -6120(%rbp)
	jle	.L21
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L22:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
