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>
#include <string.h>

int main(void)
{
    char A[1001];
    char B[1001];
    int len_a, len_b;
    int i, j;
    int flag;
    
    scanf("%s%s", A, B);
    
    len_a = strlen(A);
    len_b = strlen(B);
    
    flag = 0;
    for (i = 0; i < len_a - len_b + 1; i++){
        for (j = 0; j < len_b; j++){
            if (B[j] == '_'){
                continue;
            }
            if (B[j] != A[i + j]){
                break;
            }
        }
        if (j == len_b){
            flag = 1;
            break;
        }
    }
    
    if (flag == 0){
        printf("No\n");
    }
    else {
        printf("Yes\n");
    }
    
    return (0);
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s%s"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$2032, %rsp
	.cfi_def_cfa_offset 2064
	movq	%fs:40, %rax
	movq	%rax, 2024(%rsp)
	xorl	%eax, %eax
	leaq	1008(%rsp), %r12
	movq	%rsp, %rbx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%r12, %rdi
	movq	%rax, %rbp
	call	strlen@PLT
	movl	%ebp, %r10d
	subl	%eax, %r10d
	js	.L2
	movl	%eax, %r11d
	movq	%rbx, %rsi
	leal	1(%rax), %r8d
	xorl	%r9d, %r9d
	leaq	1007(%rsp), %rdi
	.p2align 4,,10
	.p2align 3
.L3:
	testq	%rax, %rax
	je	.L7
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	(%rdi,%rdx), %ecx
	cmpb	$95, %cl
	je	.L4
	cmpb	-1(%rsi,%rdx), %cl
	jne	.L5
.L4:
	movl	%edx, %ecx
	addq	$1, %rdx
	cmpq	%r8, %rdx
	jne	.L6
	cmpl	%ecx, %r11d
	je	.L7
.L5:
	addl	$1, %r9d
	addq	$1, %rsi
	cmpl	%r10d, %r9d
	jle	.L3
.L2:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L9:
	movq	2024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$2032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s%s"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$2032, %rsp
	.cfi_def_cfa_offset 2064
	movq	%fs:40, %rax
	movq	%rax, 2024(%rsp)
	xorl	%eax, %eax
	leaq	1008(%rsp), %r12
	movq	%rsp, %rbx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%r12, %rdi
	movq	%rax, %rbp
	call	strlen@PLT
	movl	%ebp, %r10d
	subl	%eax, %r10d
	js	.L2
	movl	%eax, %r11d
	movq	%rbx, %rsi
	leal	1(%rax), %r8d
	xorl	%r9d, %r9d
	leaq	1007(%rsp), %rdi
	.p2align 4,,10
	.p2align 3
.L3:
	testq	%rax, %rax
	je	.L7
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	(%rdi,%rdx), %ecx
	cmpb	$95, %cl
	je	.L4
	cmpb	-1(%rsi,%rdx), %cl
	jne	.L5
.L4:
	movl	%edx, %ecx
	addq	$1, %rdx
	cmpq	%r8, %rdx
	jne	.L6
	cmpl	%ecx, %r11d
	je	.L7
.L5:
	addl	$1, %r9d
	addq	$1, %rsi
	cmpl	%r10d, %r9d
	jle	.L3
.L2:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L9:
	movq	2024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$2032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s%s"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$2032, %rsp
	.cfi_def_cfa_offset 2064
	movq	%fs:40, %rax
	movq	%rax, 2024(%rsp)
	xorl	%eax, %eax
	leaq	1008(%rsp), %r12
	movq	%rsp, %rbx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%r12, %rdi
	movq	%rax, %rbp
	call	strlen@PLT
	movl	%ebp, %r10d
	subl	%eax, %r10d
	js	.L2
	movl	%eax, %r11d
	movq	%rbx, %rsi
	leal	1(%rax), %r8d
	xorl	%r9d, %r9d
	leaq	1007(%rsp), %rdi
	.p2align 4,,10
	.p2align 3
.L3:
	testq	%rax, %rax
	je	.L7
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	(%rdi,%rdx), %ecx
	cmpb	$95, %cl
	je	.L4
	cmpb	-1(%rsi,%rdx), %cl
	jne	.L5
.L4:
	movl	%edx, %ecx
	addq	$1, %rdx
	cmpq	%r8, %rdx
	jne	.L6
	cmpl	%ecx, %r11d
	je	.L7
.L5:
	addl	$1, %r9d
	addq	$1, %rsi
	cmpl	%r10d, %r9d
	jle	.L3
.L2:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L9:
	movq	2024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$2032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
```
```c
#include <stdio.h>
#include <string.h>

int main(void)
{
    char A[1001];
    char B[1001];
    int len_a, len_b;
    int i, j;
    int flag;
    
    scanf("%s%s", A, B);
    
    len_a = strlen(A);
    len_b = strlen(B);
    
    flag = 0;
    for (i = 0; i < len_a - len_b + 1; i++){
        for (j = 0; j < len_b; j++){
            if (B[j] == '_'){
                continue;
            }
            if (B[j] != A[i + j]){
                break;
            }
        }
        if (j == len_b){
            flag = 1;
            break;
        }
    }
    
    if (flag == 0){
        printf("No\n");
    }
    else {
        printf("Yes\n");
    }
    
    return (0);
}

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

```c
#include <stdio.h>
#include <string.h>

int main(void)
{
    char A[1001];
    char B[1001];
    int len_a, len_b;
    int i, j;
    int flag;
    
    scanf("%s%s", A, B);
    
    len_a = strlen(A);
    len_b = strlen(B);
    
    flag = 0;
    for (i = 0; i < len_a - len_b + 1; i++){
        for (j = 0; j < len_b; j++){
            if (B[j] == '_'){
                continue;
            }
            if (B[j] != A[i + j]){
                break;
            }
        }
        if (j == len_b){
            flag = 1;
            break;
        }
    }
    
    if (flag == 0){
        printf("No\n");
    }
    else {
        printf("Yes\n");
    }
    
    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:

KUSATSU
LSATSU
 RUPCUAOC
__PC
 ABC@BC
ACBA_B
 AI[U
_A
 ABCDE
CBA
 KUSATSU
LSATRU
 CB@CBA
ACBA_B
 RUPCUAOC
__OC
 U[IA
_A
 AACDE
CBA

No
 Yes
 No
 No
 No
 No
 No
 Yes
 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>
#include <string.h>

int main(void)
{
    char A[1001];
    char B[1001];
    int len_a, len_b;
    int i, j;
    int flag;
    
    scanf("%s%s", A, B);
    
    len_a = strlen(A);
    len_b = strlen(B);
    
    flag = 0;
    for (i = 0; i < len_a - len_b + 1; i++){
        for (j = 0; j < len_b; j++){
            if (B[j] == '_'){
                continue;
            }
            if (B[j] != A[i + j]){
                break;
            }
        }
        if (j == len_b){
            flag = 1;
            break;
        }
    }
    
    if (flag == 0){
        printf("No\n");
    }
    else {
        printf("Yes\n");
    }
    
    return (0);
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s%s"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$2032, %rsp
	.cfi_def_cfa_offset 2064
	movq	%fs:40, %rax
	movq	%rax, 2024(%rsp)
	xorl	%eax, %eax
	leaq	1008(%rsp), %r12
	movq	%rsp, %rbx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%r12, %rdi
	movq	%rax, %rbp
	call	strlen@PLT
	movl	%ebp, %r10d
	subl	%eax, %r10d
	js	.L2
	movl	%eax, %r11d
	movq	%rbx, %rsi
	leal	1(%rax), %r8d
	xorl	%r9d, %r9d
	leaq	1007(%rsp), %rdi
	.p2align 4,,10
	.p2align 3
.L3:
	testq	%rax, %rax
	je	.L7
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	(%rdi,%rdx), %ecx
	cmpb	$95, %cl
	je	.L4
	cmpb	-1(%rsi,%rdx), %cl
	jne	.L5
.L4:
	movl	%edx, %ecx
	addq	$1, %rdx
	cmpq	%r8, %rdx
	jne	.L6
	cmpl	%ecx, %r11d
	je	.L7
.L5:
	addl	$1, %r9d
	addq	$1, %rsi
	cmpl	%r10d, %r9d
	jle	.L3
.L2:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L9:
	movq	2024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$2032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s%s"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$2032, %rsp
	.cfi_def_cfa_offset 2064
	movq	%fs:40, %rax
	movq	%rax, 2024(%rsp)
	xorl	%eax, %eax
	leaq	1008(%rsp), %r12
	movq	%rsp, %rbx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%r12, %rdi
	movq	%rax, %rbp
	call	strlen@PLT
	movl	%ebp, %r10d
	subl	%eax, %r10d
	js	.L2
	movl	%eax, %r11d
	movq	%rbx, %rsi
	leal	1(%rax), %r8d
	xorl	%r9d, %r9d
	leaq	1007(%rsp), %rdi
	.p2align 4,,10
	.p2align 3
.L3:
	testq	%rax, %rax
	je	.L7
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L6:
	movzbl	(%rdi,%rdx), %ecx
	cmpb	$95, %cl
	je	.L4
	cmpb	-1(%rsi,%rdx), %cl
	jne	.L5
.L4:
	movl	%edx, %ecx
	addq	$1, %rdx
	cmpq	%r8, %rdx
	jne	.L6
	cmpl	%ecx, %r11d
	je	.L7
.L5:
	addl	$1, %r9d
	addq	$1, %rsi
	cmpl	%r10d, %r9d
	jle	.L3
.L2:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L9:
	movq	2024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$2032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
```