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

```c
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>

#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define ABS(a) ((a) < 0 ? -(a) : (a))
#define ABSS(a, b) ((a) > (b) ? (a) - (b) : (b) - (a))

int compare_f(const void* a, const void* b) {
    return *((int64_t*)a) < *((int64_t*)b) ? -1 : 1;
}

int compare_f2(const void* a, const void* b) {
    return *((uint64_t*)a) > * ((uint64_t*)b) ? -1 : 1;
}

static size_t comb(const size_t n, const size_t r) {
    size_t result = 1;

    for (size_t i = 0; i < r; i++) {
        result *= n - i;
        result /= i + 1;
    }

    return result;
}

static uint64_t combU64(const uint64_t n, const uint64_t r) {
    uint64_t result = 1;

    for (uint64_t i = 0; i < r; i++) {
        result *= n - i;
        result /= i + 1;
    }

    return result;
}

static uint64_t gcd(uint64_t m, uint64_t n)
{
    uint64_t temp;

    while (m % n != 0) {
        temp = n;
        n = m % n;
        m = temp;
    }

    return n;
}

static size_t gcdZu(size_t m, size_t n) {
    size_t temp;

    while (m % n != 0) {
        temp = n;
        n = m % n;
        m = temp;
    }

    return n;
}

static char S[200001], T[200001];

int main(void) {
    size_t H, W, N, sr, sc;

    scanf("%zu %zu %zu\n%zu %zu\n%s\n%s", &H, &W, &N, &sr, &sc, S, T);

    sr--;
    sc--;

    int32_t leftBoundary = 0;
    int32_t rightBoundary = W - 1;
    int32_t upperBoundary = 0;
    int32_t bottomBoundary = H - 1;

    bool kickOutable = false;

    for (size_t cnt = 0; cnt < N; cnt++) {
        {
            if (T[N - cnt - 1] == 'L' && rightBoundary < (int32_t)(W - 1)) {
                rightBoundary++;
            }

            if (S[N - cnt - 1] == 'R') {
                rightBoundary--;
            }
        }
        {
            if (T[N - cnt - 1] == 'R' && 0 < leftBoundary) {
                leftBoundary--;
            }

            if (S[N - cnt - 1] == 'L') {
                leftBoundary++;
            }
        }

        if (rightBoundary < leftBoundary) {
            break;
        }

        {
            if (T[N - cnt - 1] == 'D' && 0 < upperBoundary) {
                upperBoundary--;
            }

            if (S[N - cnt - 1] == 'U') {
                upperBoundary++;
            }
        }
        {
            if (T[N - cnt - 1] == 'U' && bottomBoundary < (int32_t)(H - 1)) {
                bottomBoundary++;
            }

            if (S[N - cnt - 1] == 'D') {
                bottomBoundary--;
            }
        }

        if (bottomBoundary < upperBoundary) {
            break;
        }
    }

    if (leftBoundary <= (int32_t)sc && (int32_t)sc <= rightBoundary && upperBoundary <= (int32_t)sr && (int32_t)sr <= bottomBoundary) {
        puts("YES");
    }
    else {
        puts("NO");
    }

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	compare_f
	.type	compare_f, @function
compare_f:
.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, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jge	.L2
	movl	$-1, %eax
	jmp	.L4
.L2:
	movl	$1, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_f, .-compare_f
	.globl	compare_f2
	.type	compare_f2, @function
compare_f2:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jbe	.L6
	movl	$-1, %eax
	jmp	.L8
.L6:
	movl	$1, %eax
.L8:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compare_f2, .-compare_f2
	.type	comb, @function
comb:
.LFB8:
	.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	.L10
.L11:
	movq	-24(%rbp), %rax
	subq	-8(%rbp), %rax
	movq	-16(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-16(%rbp), %rax
	movl	$0, %edx
	divq	%rcx
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L10:
	movq	-8(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jb	.L11
	movq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	comb, .-comb
	.type	combU64, @function
combU64:
.LFB9:
	.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	.L14
.L15:
	movq	-24(%rbp), %rax
	subq	-8(%rbp), %rax
	movq	-16(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-16(%rbp), %rax
	movl	$0, %edx
	divq	%rcx
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L14:
	movq	-8(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jb	.L15
	movq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	combU64, .-combU64
	.type	gcd, @function
gcd:
.LFB10:
	.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)
	jmp	.L18
.L19:
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, -32(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, -24(%rbp)
.L18:
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L19
	movq	-32(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	gcd, .-gcd
	.type	gcdZu, @function
gcdZu:
.LFB11:
	.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)
	jmp	.L22
.L23:
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, -32(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, -24(%rbp)
.L22:
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L23
	movq	-32(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	gcdZu, .-gcdZu
	.local	S
	.comm	S,200001,32
	.local	T
	.comm	T,200001,32
	.section	.rodata
.LC0:
	.string	"%zu %zu %zu\n%zu %zu\n%s\n%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-24(%rbp), %r8
	leaq	-32(%rbp), %rdi
	leaq	-40(%rbp), %rcx
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rax
	leaq	T(%rip), %rsi
	pushq	%rsi
	leaq	S(%rip), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	movq	-32(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -32(%rbp)
	movq	-24(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -24(%rbp)
	movl	$0, -72(%rbp)
	movq	-48(%rbp), %rax
	subl	$1, %eax
	movl	%eax, -68(%rbp)
	movl	$0, -64(%rbp)
	movq	-56(%rbp), %rax
	subl	$1, %eax
	movl	%eax, -60(%rbp)
	movb	$0, -73(%rbp)
	movq	$0, -16(%rbp)
	jmp	.L26
.L38:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	T(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$76, %al
	jne	.L27
	movq	-48(%rbp), %rax
	subl	$1, %eax
	cmpl	%eax, -68(%rbp)
	jge	.L27
	addl	$1, -68(%rbp)
.L27:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	S(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$82, %al
	jne	.L28
	subl	$1, -68(%rbp)
.L28:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	T(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$82, %al
	jne	.L29
	cmpl	$0, -72(%rbp)
	jle	.L29
	subl	$1, -72(%rbp)
.L29:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	S(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$76, %al
	jne	.L30
	addl	$1, -72(%rbp)
.L30:
	movl	-68(%rbp), %eax
	cmpl	-72(%rbp), %eax
	jl	.L43
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	T(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$68, %al
	jne	.L33
	cmpl	$0, -64(%rbp)
	jle	.L33
	subl	$1, -64(%rbp)
.L33:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	S(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$85, %al
	jne	.L34
	addl	$1, -64(%rbp)
.L34:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	T(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$85, %al
	jne	.L35
	movq	-56(%rbp), %rax
	subl	$1, %eax
	cmpl	%eax, -60(%rbp)
	jge	.L35
	addl	$1, -60(%rbp)
.L35:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	S(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$68, %al
	jne	.L36
	subl	$1, -60(%rbp)
.L36:
	movl	-60(%rbp), %eax
	cmpl	-64(%rbp), %eax
	jl	.L44
	addq	$1, -16(%rbp)
.L26:
	movq	-40(%rbp), %rax
	cmpq	%rax, -16(%rbp)
	jb	.L38
	jmp	.L32
.L43:
	nop
	jmp	.L32
.L44:
	nop
.L32:
	movq	-24(%rbp), %rax
	cmpl	%eax, -72(%rbp)
	jg	.L39
	movq	-24(%rbp), %rax
	cmpl	%eax, -68(%rbp)
	jl	.L39
	movq	-32(%rbp), %rax
	cmpl	%eax, -64(%rbp)
	jg	.L39
	movq	-32(%rbp), %rax
	cmpl	%eax, -60(%rbp)
	jl	.L39
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L40
.L39:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L40:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	compare_f
	.type	compare_f, @function
compare_f:
.LFB77:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	setge	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
	ret
	.cfi_endproc
.LFE77:
	.size	compare_f, .-compare_f
	.p2align 4
	.globl	compare_f2
	.type	compare_f2, @function
compare_f2:
.LFB78:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	cmpq	%rax, (%rsi)
	sbbl	%eax, %eax
	orl	$1, %eax
	ret
	.cfi_endproc
.LFE78:
	.size	compare_f2, .-compare_f2
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%zu %zu %zu\n%zu %zu\n%s\n%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB83:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	T(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	S(%rip), %rbx
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 104
	pushq	%rbx
	.cfi_def_cfa_offset 112
	leaq	48(%rsp), %r9
	leaq	40(%rsp), %r8
	call	__isoc99_scanf@PLT
	movq	40(%rsp), %rax
	leaq	-1(%rax), %r14
	movq	48(%rsp), %rax
	movq	%r14, 40(%rsp)
	leaq	-1(%rax), %r13
	movl	24(%rsp), %eax
	movq	%r13, 48(%rsp)
	leal	-1(%rax), %r12d
	movl	16(%rsp), %eax
	leal	-1(%rax), %r11d
	movq	32(%rsp), %rax
	popq	%rdx
	.cfi_def_cfa_offset 104
	popq	%rcx
	.cfi_def_cfa_offset 96
	testq	%rax, %rax
	je	.L26
	subq	$1, %rax
	movl	%r11d, %edi
	movl	%r12d, %r9d
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L13:
	testl	%ecx, %ecx
	jle	.L12
	cmpb	$82, %sil
	je	.L14
.L12:
	xorl	%r10d, %r10d
	cmpb	$76, %dl
	sete	%r10b
	addl	%r10d, %ecx
.L11:
	cmpl	%r9d, %ecx
	jg	.L9
	testl	%r8d, %r8d
	jle	.L16
	cmpb	$68, %sil
	je	.L77
.L16:
	cmpb	$85, %dl
	je	.L78
	cmpl	%edi, %r11d
	jle	.L18
	cmpb	$85, %sil
	je	.L20
.L18:
	cmpb	$68, %dl
	sete	%dl
	movzbl	%dl, %edx
	subl	%edx, %edi
.L17:
	cmpl	%r8d, %edi
	jl	.L9
	subq	$1, %rax
	jb	.L9
.L22:
	movzbl	0(%rbp,%rax), %esi
	movzbl	(%rbx,%rax), %edx
	cmpb	$76, %sil
	jne	.L10
	cmpl	%r9d, %r12d
	jg	.L79
.L10:
	cmpb	$82, %dl
	jne	.L13
	subl	$1, %r9d
	testl	%ecx, %ecx
	jle	.L11
	cmpb	$82, %sil
	jne	.L11
.L14:
	subl	$1, %ecx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L78:
	addl	$1, %r8d
	cmpb	$85, %sil
	jne	.L17
	cmpl	%edi, %r11d
	jle	.L17
.L20:
	addl	$1, %edi
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L77:
	leal	-1(%r8), %esi
	cmpb	$85, %dl
	je	.L17
	movl	%esi, %r8d
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L79:
	leal	1(%r9), %r10d
	cmpb	$82, %dl
	je	.L11
	movl	%r10d, %r9d
	jmp	.L12
.L26:
	movl	%r11d, %edi
	movl	%r12d, %r9d
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	%r13d, %r9d
	jl	.L23
	cmpl	%r13d, %ecx
	jg	.L23
	cmpl	%r14d, %edi
	jl	.L23
	cmpl	%r14d, %r8d
	jg	.L23
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L23:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L24:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L80
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L80:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE83:
	.size	main, .-main
	.local	T
	.comm	T,200001,32
	.local	S
	.comm	S,200001,32
	.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	compare_f
	.type	compare_f, @function
compare_f:
.LFB77:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	setge	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
	ret
	.cfi_endproc
.LFE77:
	.size	compare_f, .-compare_f
	.p2align 4
	.globl	compare_f2
	.type	compare_f2, @function
compare_f2:
.LFB78:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	cmpq	%rax, (%rsi)
	sbbl	%eax, %eax
	orl	$1, %eax
	ret
	.cfi_endproc
.LFE78:
	.size	compare_f2, .-compare_f2
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%zu %zu %zu\n%zu %zu\n%s\n%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB83:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	T(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	S(%rip), %rbx
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 104
	pushq	%rbx
	.cfi_def_cfa_offset 112
	leaq	48(%rsp), %r9
	leaq	40(%rsp), %r8
	call	__isoc99_scanf@PLT
	movq	40(%rsp), %rax
	leaq	-1(%rax), %r14
	movq	48(%rsp), %rax
	movq	%r14, 40(%rsp)
	leaq	-1(%rax), %r13
	movl	24(%rsp), %eax
	movq	%r13, 48(%rsp)
	leal	-1(%rax), %r12d
	movl	16(%rsp), %eax
	leal	-1(%rax), %r11d
	movq	32(%rsp), %rax
	popq	%rdx
	.cfi_def_cfa_offset 104
	popq	%rcx
	.cfi_def_cfa_offset 96
	testq	%rax, %rax
	je	.L26
	subq	$1, %rax
	movl	%r11d, %edi
	movl	%r12d, %r9d
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L13:
	testl	%ecx, %ecx
	jle	.L12
	cmpb	$82, %sil
	je	.L14
.L12:
	xorl	%r10d, %r10d
	cmpb	$76, %dl
	sete	%r10b
	addl	%r10d, %ecx
.L11:
	cmpl	%r9d, %ecx
	jg	.L9
	testl	%r8d, %r8d
	jle	.L16
	cmpb	$68, %sil
	je	.L77
.L16:
	cmpb	$85, %dl
	je	.L78
	cmpl	%edi, %r11d
	jle	.L18
	cmpb	$85, %sil
	je	.L20
.L18:
	cmpb	$68, %dl
	sete	%dl
	movzbl	%dl, %edx
	subl	%edx, %edi
.L17:
	cmpl	%r8d, %edi
	jl	.L9
	subq	$1, %rax
	jb	.L9
.L22:
	movzbl	0(%rbp,%rax), %esi
	movzbl	(%rbx,%rax), %edx
	cmpb	$76, %sil
	jne	.L10
	cmpl	%r9d, %r12d
	jg	.L79
.L10:
	cmpb	$82, %dl
	jne	.L13
	subl	$1, %r9d
	testl	%ecx, %ecx
	jle	.L11
	cmpb	$82, %sil
	jne	.L11
.L14:
	subl	$1, %ecx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L78:
	addl	$1, %r8d
	cmpb	$85, %sil
	jne	.L17
	cmpl	%edi, %r11d
	jle	.L17
.L20:
	addl	$1, %edi
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L77:
	leal	-1(%r8), %esi
	cmpb	$85, %dl
	je	.L17
	movl	%esi, %r8d
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L79:
	leal	1(%r9), %r10d
	cmpb	$82, %dl
	je	.L11
	movl	%r10d, %r9d
	jmp	.L12
.L26:
	movl	%r11d, %edi
	movl	%r12d, %r9d
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	%r13d, %r9d
	jl	.L23
	cmpl	%r13d, %ecx
	jg	.L23
	cmpl	%r14d, %edi
	jl	.L23
	cmpl	%r14d, %r8d
	jg	.L23
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L23:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L24:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L80
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L80:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE83:
	.size	main, .-main
	.local	T
	.comm	T,200001,32
	.local	S
	.comm	S,200001,32
	.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 <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>

#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define ABS(a) ((a) < 0 ? -(a) : (a))
#define ABSS(a, b) ((a) > (b) ? (a) - (b) : (b) - (a))

int compare_f(const void* a, const void* b) {
    return *((int64_t*)a) < *((int64_t*)b) ? -1 : 1;
}

int compare_f2(const void* a, const void* b) {
    return *((uint64_t*)a) > * ((uint64_t*)b) ? -1 : 1;
}

static size_t comb(const size_t n, const size_t r) {
    size_t result = 1;

    for (size_t i = 0; i < r; i++) {
        result *= n - i;
        result /= i + 1;
    }

    return result;
}

static uint64_t combU64(const uint64_t n, const uint64_t r) {
    uint64_t result = 1;

    for (uint64_t i = 0; i < r; i++) {
        result *= n - i;
        result /= i + 1;
    }

    return result;
}

static uint64_t gcd(uint64_t m, uint64_t n)
{
    uint64_t temp;

    while (m % n != 0) {
        temp = n;
        n = m % n;
        m = temp;
    }

    return n;
}

static size_t gcdZu(size_t m, size_t n) {
    size_t temp;

    while (m % n != 0) {
        temp = n;
        n = m % n;
        m = temp;
    }

    return n;
}

static char S[200001], T[200001];

int main(void) {
    size_t H, W, N, sr, sc;

    scanf("%zu %zu %zu\n%zu %zu\n%s\n%s", &H, &W, &N, &sr, &sc, S, T);

    sr--;
    sc--;

    int32_t leftBoundary = 0;
    int32_t rightBoundary = W - 1;
    int32_t upperBoundary = 0;
    int32_t bottomBoundary = H - 1;

    bool kickOutable = false;

    for (size_t cnt = 0; cnt < N; cnt++) {
        {
            if (T[N - cnt - 1] == 'L' && rightBoundary < (int32_t)(W - 1)) {
                rightBoundary++;
            }

            if (S[N - cnt - 1] == 'R') {
                rightBoundary--;
            }
        }
        {
            if (T[N - cnt - 1] == 'R' && 0 < leftBoundary) {
                leftBoundary--;
            }

            if (S[N - cnt - 1] == 'L') {
                leftBoundary++;
            }
        }

        if (rightBoundary < leftBoundary) {
            break;
        }

        {
            if (T[N - cnt - 1] == 'D' && 0 < upperBoundary) {
                upperBoundary--;
            }

            if (S[N - cnt - 1] == 'U') {
                upperBoundary++;
            }
        }
        {
            if (T[N - cnt - 1] == 'U' && bottomBoundary < (int32_t)(H - 1)) {
                bottomBoundary++;
            }

            if (S[N - cnt - 1] == 'D') {
                bottomBoundary--;
            }
        }

        if (bottomBoundary < upperBoundary) {
            break;
        }
    }

    if (leftBoundary <= (int32_t)sc && (int32_t)sc <= rightBoundary && upperBoundary <= (int32_t)sr && (int32_t)sr <= bottomBoundary) {
        puts("YES");
    }
    else {
        puts("NO");
    }

    return 0;
}
2 3 3
2 2
RLR
LUD
 4 3 5
2 2
UDRRR
LLDTD
 2 6 11
2 1
RLDRRUDDLRL
URRDRLLDLRD
 2 6 3
2 2
RLR
LUD
 4 1 5
2 2
UDRRR
LLDTD
 4 1 5
0 2
UDRRR
LLDTD
 4 1 5
0 2
UDRRR
DTDLL
 1 1 5
0 2
UDRRR
DTDLL
 1 1 5
-1 2
UDRRR
DTDLL
 1 1 4
-1 2
UDRRR
DTDLL

YES
 NO
 NO
 YES
 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 <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>

#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define ABS(a) ((a) < 0 ? -(a) : (a))
#define ABSS(a, b) ((a) > (b) ? (a) - (b) : (b) - (a))

int compare_f(const void* a, const void* b) {
    return *((int64_t*)a) < *((int64_t*)b) ? -1 : 1;
}

int compare_f2(const void* a, const void* b) {
    return *((uint64_t*)a) > * ((uint64_t*)b) ? -1 : 1;
}

static size_t comb(const size_t n, const size_t r) {
    size_t result = 1;

    for (size_t i = 0; i < r; i++) {
        result *= n - i;
        result /= i + 1;
    }

    return result;
}

static uint64_t combU64(const uint64_t n, const uint64_t r) {
    uint64_t result = 1;

    for (uint64_t i = 0; i < r; i++) {
        result *= n - i;
        result /= i + 1;
    }

    return result;
}

static uint64_t gcd(uint64_t m, uint64_t n)
{
    uint64_t temp;

    while (m % n != 0) {
        temp = n;
        n = m % n;
        m = temp;
    }

    return n;
}

static size_t gcdZu(size_t m, size_t n) {
    size_t temp;

    while (m % n != 0) {
        temp = n;
        n = m % n;
        m = temp;
    }

    return n;
}

static char S[200001], T[200001];

int main(void) {
    size_t H, W, N, sr, sc;

    scanf("%zu %zu %zu\n%zu %zu\n%s\n%s", &H, &W, &N, &sr, &sc, S, T);

    sr--;
    sc--;

    int32_t leftBoundary = 0;
    int32_t rightBoundary = W - 1;
    int32_t upperBoundary = 0;
    int32_t bottomBoundary = H - 1;

    bool kickOutable = false;

    for (size_t cnt = 0; cnt < N; cnt++) {
        {
            if (T[N - cnt - 1] == 'L' && rightBoundary < (int32_t)(W - 1)) {
                rightBoundary++;
            }

            if (S[N - cnt - 1] == 'R') {
                rightBoundary--;
            }
        }
        {
            if (T[N - cnt - 1] == 'R' && 0 < leftBoundary) {
                leftBoundary--;
            }

            if (S[N - cnt - 1] == 'L') {
                leftBoundary++;
            }
        }

        if (rightBoundary < leftBoundary) {
            break;
        }

        {
            if (T[N - cnt - 1] == 'D' && 0 < upperBoundary) {
                upperBoundary--;
            }

            if (S[N - cnt - 1] == 'U') {
                upperBoundary++;
            }
        }
        {
            if (T[N - cnt - 1] == 'U' && bottomBoundary < (int32_t)(H - 1)) {
                bottomBoundary++;
            }

            if (S[N - cnt - 1] == 'D') {
                bottomBoundary--;
            }
        }

        if (bottomBoundary < upperBoundary) {
            break;
        }
    }

    if (leftBoundary <= (int32_t)sc && (int32_t)sc <= rightBoundary && upperBoundary <= (int32_t)sr && (int32_t)sr <= bottomBoundary) {
        puts("YES");
    }
    else {
        puts("NO");
    }

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	compare_f
	.type	compare_f, @function
compare_f:
.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, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jge	.L2
	movl	$-1, %eax
	jmp	.L4
.L2:
	movl	$1, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_f, .-compare_f
	.globl	compare_f2
	.type	compare_f2, @function
compare_f2:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jbe	.L6
	movl	$-1, %eax
	jmp	.L8
.L6:
	movl	$1, %eax
.L8:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compare_f2, .-compare_f2
	.type	comb, @function
comb:
.LFB8:
	.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	.L10
.L11:
	movq	-24(%rbp), %rax
	subq	-8(%rbp), %rax
	movq	-16(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-16(%rbp), %rax
	movl	$0, %edx
	divq	%rcx
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L10:
	movq	-8(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jb	.L11
	movq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	comb, .-comb
	.type	combU64, @function
combU64:
.LFB9:
	.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	.L14
.L15:
	movq	-24(%rbp), %rax
	subq	-8(%rbp), %rax
	movq	-16(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-16(%rbp), %rax
	movl	$0, %edx
	divq	%rcx
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L14:
	movq	-8(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jb	.L15
	movq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	combU64, .-combU64
	.type	gcd, @function
gcd:
.LFB10:
	.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)
	jmp	.L18
.L19:
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, -32(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, -24(%rbp)
.L18:
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L19
	movq	-32(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	gcd, .-gcd
	.type	gcdZu, @function
gcdZu:
.LFB11:
	.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)
	jmp	.L22
.L23:
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, -32(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, -24(%rbp)
.L22:
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L23
	movq	-32(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	gcdZu, .-gcdZu
	.local	S
	.comm	S,200001,32
	.local	T
	.comm	T,200001,32
	.section	.rodata
.LC0:
	.string	"%zu %zu %zu\n%zu %zu\n%s\n%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-24(%rbp), %r8
	leaq	-32(%rbp), %rdi
	leaq	-40(%rbp), %rcx
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rax
	leaq	T(%rip), %rsi
	pushq	%rsi
	leaq	S(%rip), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	movq	-32(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -32(%rbp)
	movq	-24(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -24(%rbp)
	movl	$0, -72(%rbp)
	movq	-48(%rbp), %rax
	subl	$1, %eax
	movl	%eax, -68(%rbp)
	movl	$0, -64(%rbp)
	movq	-56(%rbp), %rax
	subl	$1, %eax
	movl	%eax, -60(%rbp)
	movb	$0, -73(%rbp)
	movq	$0, -16(%rbp)
	jmp	.L26
.L38:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	T(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$76, %al
	jne	.L27
	movq	-48(%rbp), %rax
	subl	$1, %eax
	cmpl	%eax, -68(%rbp)
	jge	.L27
	addl	$1, -68(%rbp)
.L27:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	S(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$82, %al
	jne	.L28
	subl	$1, -68(%rbp)
.L28:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	T(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$82, %al
	jne	.L29
	cmpl	$0, -72(%rbp)
	jle	.L29
	subl	$1, -72(%rbp)
.L29:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	S(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$76, %al
	jne	.L30
	addl	$1, -72(%rbp)
.L30:
	movl	-68(%rbp), %eax
	cmpl	-72(%rbp), %eax
	jl	.L43
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	T(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$68, %al
	jne	.L33
	cmpl	$0, -64(%rbp)
	jle	.L33
	subl	$1, -64(%rbp)
.L33:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	S(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$85, %al
	jne	.L34
	addl	$1, -64(%rbp)
.L34:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	T(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$85, %al
	jne	.L35
	movq	-56(%rbp), %rax
	subl	$1, %eax
	cmpl	%eax, -60(%rbp)
	jge	.L35
	addl	$1, -60(%rbp)
.L35:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	S(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$68, %al
	jne	.L36
	subl	$1, -60(%rbp)
.L36:
	movl	-60(%rbp), %eax
	cmpl	-64(%rbp), %eax
	jl	.L44
	addq	$1, -16(%rbp)
.L26:
	movq	-40(%rbp), %rax
	cmpq	%rax, -16(%rbp)
	jb	.L38
	jmp	.L32
.L43:
	nop
	jmp	.L32
.L44:
	nop
.L32:
	movq	-24(%rbp), %rax
	cmpl	%eax, -72(%rbp)
	jg	.L39
	movq	-24(%rbp), %rax
	cmpl	%eax, -68(%rbp)
	jl	.L39
	movq	-32(%rbp), %rax
	cmpl	%eax, -64(%rbp)
	jg	.L39
	movq	-32(%rbp), %rax
	cmpl	%eax, -60(%rbp)
	jl	.L39
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L40
.L39:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L40:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	compare_f
	.type	compare_f, @function
compare_f:
.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, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jge	.L2
	movl	$-1, %eax
	jmp	.L4
.L2:
	movl	$1, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_f, .-compare_f
	.globl	compare_f2
	.type	compare_f2, @function
compare_f2:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jbe	.L6
	movl	$-1, %eax
	jmp	.L8
.L6:
	movl	$1, %eax
.L8:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compare_f2, .-compare_f2
	.type	comb, @function
comb:
.LFB8:
	.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	.L10
.L11:
	movq	-24(%rbp), %rax
	subq	-8(%rbp), %rax
	movq	-16(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-16(%rbp), %rax
	movl	$0, %edx
	divq	%rcx
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L10:
	movq	-8(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jb	.L11
	movq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	comb, .-comb
	.type	combU64, @function
combU64:
.LFB9:
	.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	.L14
.L15:
	movq	-24(%rbp), %rax
	subq	-8(%rbp), %rax
	movq	-16(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-8(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-16(%rbp), %rax
	movl	$0, %edx
	divq	%rcx
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L14:
	movq	-8(%rbp), %rax
	cmpq	-32(%rbp), %rax
	jb	.L15
	movq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	combU64, .-combU64
	.type	gcd, @function
gcd:
.LFB10:
	.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)
	jmp	.L18
.L19:
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, -32(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, -24(%rbp)
.L18:
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L19
	movq	-32(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	gcd, .-gcd
	.type	gcdZu, @function
gcdZu:
.LFB11:
	.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)
	jmp	.L22
.L23:
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, -32(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, -24(%rbp)
.L22:
	movq	-24(%rbp), %rax
	movl	$0, %edx
	divq	-32(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L23
	movq	-32(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	gcdZu, .-gcdZu
	.local	S
	.comm	S,200001,32
	.local	T
	.comm	T,200001,32
	.section	.rodata
.LC0:
	.string	"%zu %zu %zu\n%zu %zu\n%s\n%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-24(%rbp), %r8
	leaq	-32(%rbp), %rdi
	leaq	-40(%rbp), %rcx
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rax
	leaq	T(%rip), %rsi
	pushq	%rsi
	leaq	S(%rip), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	movq	-32(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -32(%rbp)
	movq	-24(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -24(%rbp)
	movl	$0, -72(%rbp)
	movq	-48(%rbp), %rax
	subl	$1, %eax
	movl	%eax, -68(%rbp)
	movl	$0, -64(%rbp)
	movq	-56(%rbp), %rax
	subl	$1, %eax
	movl	%eax, -60(%rbp)
	movb	$0, -73(%rbp)
	movq	$0, -16(%rbp)
	jmp	.L26
.L38:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	T(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$76, %al
	jne	.L27
	movq	-48(%rbp), %rax
	subl	$1, %eax
	cmpl	%eax, -68(%rbp)
	jge	.L27
	addl	$1, -68(%rbp)
.L27:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	S(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$82, %al
	jne	.L28
	subl	$1, -68(%rbp)
.L28:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	T(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$82, %al
	jne	.L29
	cmpl	$0, -72(%rbp)
	jle	.L29
	subl	$1, -72(%rbp)
.L29:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	S(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$76, %al
	jne	.L30
	addl	$1, -72(%rbp)
.L30:
	movl	-68(%rbp), %eax
	cmpl	-72(%rbp), %eax
	jl	.L43
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	T(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$68, %al
	jne	.L33
	cmpl	$0, -64(%rbp)
	jle	.L33
	subl	$1, -64(%rbp)
.L33:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	S(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$85, %al
	jne	.L34
	addl	$1, -64(%rbp)
.L34:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	T(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$85, %al
	jne	.L35
	movq	-56(%rbp), %rax
	subl	$1, %eax
	cmpl	%eax, -60(%rbp)
	jge	.L35
	addl	$1, -60(%rbp)
.L35:
	movq	-40(%rbp), %rax
	subq	-16(%rbp), %rax
	leaq	-1(%rax), %rdx
	leaq	S(%rip), %rax
	movzbl	(%rdx,%rax), %eax
	cmpb	$68, %al
	jne	.L36
	subl	$1, -60(%rbp)
.L36:
	movl	-60(%rbp), %eax
	cmpl	-64(%rbp), %eax
	jl	.L44
	addq	$1, -16(%rbp)
.L26:
	movq	-40(%rbp), %rax
	cmpq	%rax, -16(%rbp)
	jb	.L38
	jmp	.L32
.L43:
	nop
	jmp	.L32
.L44:
	nop
.L32:
	movq	-24(%rbp), %rax
	cmpl	%eax, -72(%rbp)
	jg	.L39
	movq	-24(%rbp), %rax
	cmpl	%eax, -68(%rbp)
	jl	.L39
	movq	-32(%rbp), %rax
	cmpl	%eax, -64(%rbp)
	jg	.L39
	movq	-32(%rbp), %rax
	cmpl	%eax, -60(%rbp)
	jl	.L39
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L40
.L39:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L40:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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:
