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 <string.h>
#define MOD 100000
#define FMAX 10946
#define NMMAX 20

int main(void)
{
  int i, j, k, m, n, fcheck, mask, ans = 1, res = 0, fcount = 0; 
  int k2b[FMAX], b2k[1<<19], dp[2][FMAX][2], (*src)[2], (*dst)[2];
  char field[NMMAX][NMMAX+1];
  scanf("%d %d%*c", &m, &n);
  for (i = 0; i < m; i++) {
    for (j = 0; j < n; j++) {
      field[i][j] = getchar_unlocked();
      if (field[i][j] == '?') ans = (ans * 3) % MOD;
    }
    getchar_unlocked();
  }
  for (i = 0; i < (1 << (n - 1)); i++) {
    fcheck = 1;
    for (j = 0; j < n - 2; j++) {
      if (((i >> j) & 1) & ((i >> (j + 1)) & 1)) {
        fcheck = 0;
	break;
      }
    }
    if (fcheck) {
      k2b[fcount] = i;
      b2k[i] = fcount++;
    }
  }
  mask = (1 << (n - 1)) - 1;
  fcheck = 1;
  src = dp[0];
  dst = dp[1];
  src[0][0] = 1;
  for (i = 0; i < m; i++) {
    for (j = 0; j < n; j++) {
      int (*ftemp)[2];
      memset(dp[fcheck], 0, sizeof(dp[fcheck]));
      for (k = 0; k < fcount; k++) {
	 int nk, jflag;
	if (field[i][j] == 'J' || field[i][j] == '?') {
          nk = b2k[(k2b[k] << 1) & mask];
	  jflag = (j < n - 1);
	  dst[nk][jflag] = (dst[nk][jflag] + src[k][0] + src[k][1]) % MOD;
	} 
	if (field[i][j] == 'O' || field[i][j] == '?') {
	  nk = b2k[((k2b[k] << 1) & mask) | 0];
	  jflag = 0;
	  dst[nk][jflag] = (dst[nk][jflag] + src[k][0]) %  MOD;
	  nk = b2k[((k2b[k] << 1) & mask) | 1];
	  dst[nk][jflag] = (dst[nk][jflag] + src[k][1]) % MOD;
	}
	if (field[i][j] == 'I' || field[i][j] == '?') {
	  if (((~k2b[k]) >> (n - 2)) & 1) {
	    nk = b2k[(k2b[k] << 1) & mask];
	    jflag = 0;
	    dst[nk][jflag] = (dst[nk][jflag] + src[k][0] + src[k][1]) % MOD;
	  }
	}
      }
      ftemp = src;
      src = dst;
      dst = ftemp;
      fcheck ^= 1;
    }
  }
  for (i = 0; i < fcount; i++) res = (res + src[i][0] + src[i][1]) % MOD;
  printf("%d\n", (ans - res + MOD) % MOD);
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d%*c"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-2314240(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2368, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -2316576(%rbp)
	movl	$0, -2316572(%rbp)
	movl	$0, -2316568(%rbp)
	leaq	-2316596(%rbp), %rdx
	leaq	-2316600(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2316592(%rbp)
	jmp	.L2
.L6:
	movl	$0, -2316588(%rbp)
	jmp	.L3
.L5:
	call	getchar_unlocked@PLT
	movl	%eax, %ecx
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rsi
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$2316528, %rax
	movb	%cl, (%rax)
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$63, %al
	jne	.L4
	movl	-2316576(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -2316576(%rbp)
	movl	-2316576(%rbp), %edx
	imull	$100000, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -2316576(%rbp)
.L4:
	addl	$1, -2316588(%rbp)
.L3:
	movl	-2316596(%rbp), %eax
	cmpl	%eax, -2316588(%rbp)
	jl	.L5
	call	getchar_unlocked@PLT
	addl	$1, -2316592(%rbp)
.L2:
	movl	-2316600(%rbp), %eax
	cmpl	%eax, -2316592(%rbp)
	jl	.L6
	movl	$0, -2316592(%rbp)
	jmp	.L7
.L13:
	movl	$1, -2316580(%rbp)
	movl	$0, -2316588(%rbp)
	jmp	.L8
.L11:
	movl	-2316588(%rbp), %eax
	movl	-2316592(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	movl	%eax, %esi
	movl	-2316588(%rbp), %eax
	addl	$1, %eax
	movl	-2316592(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	%esi, %eax
	testl	%eax, %eax
	je	.L9
	movl	$0, -2316580(%rbp)
	jmp	.L10
.L9:
	addl	$1, -2316588(%rbp)
.L8:
	movl	-2316596(%rbp), %eax
	subl	$2, %eax
	cmpl	%eax, -2316588(%rbp)
	jl	.L11
.L10:
	cmpl	$0, -2316580(%rbp)
	je	.L12
	movl	-2316568(%rbp), %eax
	cltq
	movl	-2316592(%rbp), %edx
	movl	%edx, -2316096(%rbp,%rax,4)
	movl	-2316568(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2316568(%rbp)
	movl	-2316592(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -2097168(%rbp,%rdx,4)
.L12:
	addl	$1, -2316592(%rbp)
.L7:
	movl	-2316596(%rbp), %eax
	subl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cmpl	%eax, -2316592(%rbp)
	jl	.L13
	movl	-2316596(%rbp), %eax
	subl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -2316564(%rbp)
	movl	$1, -2316580(%rbp)
	leaq	-2272304(%rbp), %rax
	movq	%rax, -2316552(%rbp)
	leaq	-2272304(%rbp), %rax
	addq	$87568, %rax
	movq	%rax, -2316544(%rbp)
	movq	-2316552(%rbp), %rax
	movl	$1, (%rax)
	movl	$0, -2316592(%rbp)
	jmp	.L14
.L25:
	movl	$0, -2316588(%rbp)
	jmp	.L15
.L24:
	leaq	-2272304(%rbp), %rdx
	movl	-2316580(%rbp), %eax
	cltq
	imulq	$87568, %rax, %rax
	addq	%rdx, %rax
	movl	$87568, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -2316584(%rbp)
	jmp	.L16
.L23:
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$74, %al
	je	.L17
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$63, %al
	jne	.L18
.L17:
	movl	-2316584(%rbp), %eax
	cltq
	movl	-2316096(%rbp,%rax,4), %eax
	addl	%eax, %eax
	andl	-2316564(%rbp), %eax
	cltq
	movl	-2097168(%rbp,%rax,4), %eax
	movl	%eax, -2316560(%rbp)
	movl	-2316596(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -2316588(%rbp)
	setl	%al
	movzbl	%al, %eax
	movl	%eax, -2316556(%rbp)
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rdx
	movl	-2316556(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %edx
	movl	-2316584(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	addl	%eax, %edx
	movl	-2316584(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	addl	%eax, %edx
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rcx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	imull	$100000, %eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	-2316556(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, (%rcx,%rdx,4)
.L18:
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$79, %al
	je	.L19
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$63, %al
	jne	.L20
.L19:
	movl	-2316584(%rbp), %eax
	cltq
	movl	-2316096(%rbp,%rax,4), %eax
	addl	%eax, %eax
	andl	-2316564(%rbp), %eax
	cltq
	movl	-2097168(%rbp,%rax,4), %eax
	movl	%eax, -2316560(%rbp)
	movl	$0, -2316556(%rbp)
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rdx
	movl	-2316556(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %edx
	movl	-2316584(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	addl	%eax, %edx
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rcx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	imull	$100000, %eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	-2316556(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	-2316584(%rbp), %eax
	cltq
	movl	-2316096(%rbp,%rax,4), %eax
	addl	%eax, %eax
	andl	-2316564(%rbp), %eax
	orl	$1, %eax
	cltq
	movl	-2097168(%rbp,%rax,4), %eax
	movl	%eax, -2316560(%rbp)
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rdx
	movl	-2316556(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %edx
	movl	-2316584(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	addl	%eax, %edx
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rcx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	imull	$100000, %eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	-2316556(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, (%rcx,%rdx,4)
.L20:
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$73, %al
	je	.L21
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$63, %al
	jne	.L22
.L21:
	movl	-2316584(%rbp), %eax
	cltq
	movl	-2316096(%rbp,%rax,4), %eax
	notl	%eax
	movl	%eax, %edx
	movl	-2316596(%rbp), %eax
	subl	$2, %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L22
	movl	-2316584(%rbp), %eax
	cltq
	movl	-2316096(%rbp,%rax,4), %eax
	addl	%eax, %eax
	andl	-2316564(%rbp), %eax
	cltq
	movl	-2097168(%rbp,%rax,4), %eax
	movl	%eax, -2316560(%rbp)
	movl	$0, -2316556(%rbp)
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rdx
	movl	-2316556(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %edx
	movl	-2316584(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	addl	%eax, %edx
	movl	-2316584(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	addl	%eax, %edx
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rcx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	imull	$100000, %eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	-2316556(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, (%rcx,%rdx,4)
.L22:
	addl	$1, -2316584(%rbp)
.L16:
	movl	-2316584(%rbp), %eax
	cmpl	-2316568(%rbp), %eax
	jl	.L23
	movq	-2316552(%rbp), %rax
	movq	%rax, -2316536(%rbp)
	movq	-2316544(%rbp), %rax
	movq	%rax, -2316552(%rbp)
	movq	-2316536(%rbp), %rax
	movq	%rax, -2316544(%rbp)
	xorl	$1, -2316580(%rbp)
	addl	$1, -2316588(%rbp)
.L15:
	movl	-2316596(%rbp), %eax
	cmpl	%eax, -2316588(%rbp)
	jl	.L24
	addl	$1, -2316592(%rbp)
.L14:
	movl	-2316600(%rbp), %eax
	cmpl	%eax, -2316592(%rbp)
	jl	.L25
	movl	$0, -2316592(%rbp)
	jmp	.L26
.L27:
	movl	-2316592(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-2316552(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-2316572(%rbp), %eax
	addl	%eax, %edx
	movl	-2316592(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -2316572(%rbp)
	movl	-2316572(%rbp), %edx
	imull	$100000, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -2316572(%rbp)
	addl	$1, -2316592(%rbp)
.L26:
	movl	-2316592(%rbp), %eax
	cmpl	-2316568(%rbp), %eax
	jl	.L27
	movl	-2316576(%rbp), %eax
	subl	-2316572(%rbp), %eax
	leal	100000(%rax), %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d%*c"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-2314240(%rsp), %r11
	.cfi_def_cfa 11, 2314296
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2392, %rsp
	.cfi_def_cfa_offset 2316688
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 2316616(%rsp)
	xorl	%eax, %eax
	leaq	92(%rsp), %rdx
	leaq	88(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	88(%rsp), %eax
	movl	%eax, 68(%rsp)
	testl	%eax, %eax
	jle	.L2
	leaq	96(%rsp), %r14
	movq	stdin(%rip), %rdi
	movl	$1, %ebp
	xorl	%r13d, %r13d
	movq	%r14, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movl	92(%rsp), %r8d
	movq	8(%rdi), %rdx
	xorl	%ebx, %ebx
	movq	16(%rdi), %rsi
	testl	%r8d, %r8d
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L7:
	cmpq	%rsi, %rdx
	jnb	.L61
	leaq	1(%rdx), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rdx), %eax
	movq	%rcx, %rdx
.L5:
	movb	%al, (%r12,%rbx)
	cmpb	$63, %al
	jne	.L6
	leal	0(%rbp,%rbp,2), %eax
	movslq	%eax, %rbp
	movl	%eax, %ecx
	imulq	$351843721, %rbp, %rbp
	sarl	$31, %ecx
	sarq	$45, %rbp
	subl	%ecx, %ebp
	imull	$100000, %ebp, %ecx
	subl	%ecx, %eax
	movl	%eax, %ebp
.L6:
	addq	$1, %rbx
	cmpl	%ebx, 92(%rsp)
	jg	.L7
.L11:
	cmpq	%rsi, %rdx
	jnb	.L62
	movl	88(%rsp), %eax
	addq	$1, %rdx
	addl	$1, %r13d
	addq	$21, %r12
	movq	%rdx, 8(%rdi)
	cmpl	%r13d, %eax
	jg	.L3
.L10:
	movl	%eax, 68(%rsp)
	movl	92(%rsp), %eax
	movl	$1, %r9d
	movl	%ebp, 76(%rsp)
	leal	-1(%rax), %ebx
	movl	%eax, 72(%rsp)
	movl	%ebx, %ecx
	sall	%cl, %r9d
	leal	-1(%r9), %r12d
	testl	%r9d, %r9d
	jle	.L12
.L35:
	movl	72(%rsp), %eax
	movslq	%r9d, %r9
	xorl	%r8d, %r8d
	xorl	%r10d, %r10d
	leal	-2(%rax), %edi
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%r8d, %edx
	xorl	%ecx, %ecx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L15:
	movl	%edx, %esi
	movl	%edx, %eax
	sarl	%cl, %esi
	addl	$1, %ecx
	sarl	%cl, %eax
	andl	%esi, %eax
	testb	$1, %al
	jne	.L14
.L18:
	cmpl	%edi, %ecx
	jl	.L15
	movslq	%r10d, %rax
	movl	%r10d, 219456(%rsp,%r8,4)
	addl	$1, %r10d
	movl	%edx, 528(%rsp,%rax,4)
.L14:
	addq	$1, %r8
	cmpq	%r8, %r9
	jne	.L13
	movl	68(%rsp), %esi
	movl	%r10d, 36(%rsp)
	movl	$1, 44320(%rsp)
	testl	%esi, %esi
	jle	.L38
	leaq	96(%rsp), %r14
.L33:
	movl	$1, %eax
	movl	%edi, %ecx
	leaq	44320(%rsp), %rbp
	movq	%r14, 40(%rsp)
	sall	%cl, %eax
	leaq	131888(%rsp), %rsi
	movq	%rbp, 48(%rsp)
	movl	%eax, 12(%rsp)
	movl	36(%rsp), %eax
	movq	%rsi, 16(%rsp)
	subl	$1, %eax
	movl	$1, 32(%rsp)
	leaq	8(,%rax,8), %rax
	movl	$0, 64(%rsp)
	movq	%rax, 56(%rsp)
	.p2align 4,,10
	.p2align 3
.L20:
	movl	72(%rsp), %edx
	testl	%edx, %edx
	jle	.L23
	movl	%ebx, %eax
	xorl	%r13d, %r13d
	movq	%rax, 24(%rsp)
	movq	16(%rsp), %rax
	movq	%rbp, 16(%rsp)
	movq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L22:
	movslq	32(%rsp), %rdi
	movl	$87568, %edx
	xorl	%esi, %esi
	imulq	$87568, %rdi, %rdi
	addq	48(%rsp), %rdi
	call	memset@PLT
	movl	36(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L28
	movq	40(%rsp), %rax
	movq	16(%rsp), %rdi
	leaq	528(%rsp), %rsi
	movq	56(%rsp), %r14
	movzbl	(%rax,%r13), %eax
	leal	-63(%rax), %r11d
	andl	$-17, %r11d
	cmpb	$63, %al
	sete	%dl
	cmpb	$74, %al
	sete	%r10b
	orl	%edx, %r10d
	cmpb	$73, %al
	movq	%rdi, %rax
	sete	%r9b
	addq	%rdi, %r14
	orl	%edx, %r9d
	.p2align 4,,10
	.p2align 3
.L27:
	testb	%r10b, %r10b
	je	.L24
	movl	(%rsi), %ecx
	xorl	%edi, %edi
	cmpl	%r13d, %ebx
	setg	%dil
	leal	(%rcx,%rcx), %edx
	andl	%r12d, %edx
	movslq	%edx, %rdx
	movslq	219456(%rsp,%rdx,4), %rdx
	leaq	0(%rbp,%rdx,8), %r8
	movl	(%rax), %edx
	addl	(%r8,%rdi,4), %edx
	addl	4(%rax), %edx
	movslq	%edx, %rcx
	movl	%edx, %r15d
	imulq	$351843721, %rcx, %rcx
	sarl	$31, %r15d
	sarq	$45, %rcx
	subl	%r15d, %ecx
	imull	$100000, %ecx, %ecx
	subl	%ecx, %edx
	movl	%edx, (%r8,%rdi,4)
.L24:
	testb	%r11b, %r11b
	jne	.L25
	movl	(%rsi), %edi
	leal	(%rdi,%rdi), %edx
	movl	(%rax), %edi
	andl	%r12d, %edx
	movslq	%edx, %rcx
	orl	$1, %edx
	movslq	219456(%rsp,%rcx,4), %rcx
	movslq	%edx, %rdx
	movslq	219456(%rsp,%rdx,4), %rdx
	leaq	0(%rbp,%rcx,8), %r8
	addl	(%r8), %edi
	movslq	%edi, %rcx
	movl	%edi, %r15d
	imulq	$351843721, %rcx, %rcx
	sarl	$31, %r15d
	sarq	$45, %rcx
	subl	%r15d, %ecx
	imull	$100000, %ecx, %ecx
	subl	%ecx, %edi
	movl	%edi, (%r8)
	leaq	0(%rbp,%rdx,8), %rdi
	movl	4(%rax), %ecx
	addl	(%rdi), %ecx
	movslq	%ecx, %rdx
	movl	%ecx, %r8d
	imulq	$351843721, %rdx, %rdx
	sarl	$31, %r8d
	sarq	$45, %rdx
	subl	%r8d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %ecx
	movl	%ecx, (%rdi)
.L25:
	testb	%r9b, %r9b
	je	.L26
	movl	(%rsi), %edx
	movl	%edx, %ecx
	notl	%ecx
	testl	%ecx, 12(%rsp)
	je	.L26
	addl	%edx, %edx
	andl	%r12d, %edx
	movslq	%edx, %rdx
	movslq	219456(%rsp,%rdx,4), %rdx
	leaq	0(%rbp,%rdx,8), %rdi
	movl	(%rax), %edx
	addl	(%rdi), %edx
	addl	4(%rax), %edx
	movslq	%edx, %rcx
	movl	%edx, %r8d
	imulq	$351843721, %rcx, %rcx
	sarl	$31, %r8d
	sarq	$45, %rcx
	subl	%r8d, %ecx
	imull	$100000, %ecx, %ecx
	subl	%ecx, %edx
	movl	%edx, (%rdi)
.L26:
	addq	$8, %rax
	addq	$4, %rsi
	cmpq	%rax, %r14
	jne	.L27
.L28:
	xorl	$1, 32(%rsp)
	leaq	1(%r13), %rax
	cmpq	%r13, 24(%rsp)
	je	.L23
	movq	%rax, %r13
	movq	16(%rsp), %rax
	movq	%rbp, 16(%rsp)
	movq	%rax, %rbp
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L23:
	addl	$1, 64(%rsp)
	movl	64(%rsp), %eax
	addq	$21, 40(%rsp)
	cmpl	68(%rsp), %eax
	jl	.L20
.L19:
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L34
	movl	36(%rsp), %eax
	subl	$1, %eax
	leaq	8(%rbp,%rax,8), %rsi
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L32:
	addl	0(%rbp), %eax
	addl	4(%rbp), %eax
	addq	$8, %rbp
	movl	%eax, %edx
	cltq
	imulq	$351843721, %rax, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	sarq	$45, %rax
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpq	%rbp, %rsi
	jne	.L32
.L31:
	movl	76(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	subl	%eax, %edx
	addl	$100000, %edx
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$351843721, %rax, %rax
	sarl	$31, %ecx
	sarq	$45, %rax
	subl	%ecx, %eax
	imull	$100000, %eax, %eax
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	2316616(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L63
	addq	$2316632, %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
.L61:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rsi
	jmp	.L5
.L62:
	call	__uflow@PLT
	movl	88(%rsp), %eax
	addl	$1, %r13d
	addq	$21, %r12
	cmpl	%eax, %r13d
	jge	.L10
	movq	stdin(%rip), %rdi
	jmp	.L3
.L2:
	movl	92(%rsp), %eax
	movl	$1, %r9d
	movl	$1, 76(%rsp)
	leal	-1(%rax), %ebx
	movl	%eax, 72(%rsp)
	movl	%ebx, %ecx
	sall	%cl, %r9d
	leal	-1(%r9), %r12d
	testl	%r9d, %r9d
	jg	.L35
.L34:
	xorl	%eax, %eax
	jmp	.L31
.L12:
	movl	72(%rsp), %eax
	cmpl	$0, 68(%rsp)
	movl	$1, 44320(%rsp)
	movl	$0, 36(%rsp)
	leal	-2(%rax), %edi
	jg	.L33
	xorl	%eax, %eax
	jmp	.L31
.L38:
	leaq	44320(%rsp), %rbp
	jmp	.L19
.L63:
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d%*c"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-2314240(%rsp), %r11
	.cfi_def_cfa 11, 2314296
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2392, %rsp
	.cfi_def_cfa_offset 2316688
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 2316616(%rsp)
	xorl	%eax, %eax
	leaq	92(%rsp), %rdx
	leaq	88(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	88(%rsp), %eax
	movl	%eax, 68(%rsp)
	testl	%eax, %eax
	jle	.L2
	leaq	96(%rsp), %r14
	movq	stdin(%rip), %rdi
	movl	$1, %ebp
	xorl	%r13d, %r13d
	movq	%r14, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movl	92(%rsp), %r8d
	movq	8(%rdi), %rdx
	xorl	%ebx, %ebx
	movq	16(%rdi), %rsi
	testl	%r8d, %r8d
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L7:
	cmpq	%rsi, %rdx
	jnb	.L61
	leaq	1(%rdx), %rcx
	movq	%rcx, 8(%rdi)
	movzbl	(%rdx), %eax
	movq	%rcx, %rdx
.L5:
	movb	%al, (%r12,%rbx)
	cmpb	$63, %al
	jne	.L6
	leal	0(%rbp,%rbp,2), %eax
	movslq	%eax, %rbp
	movl	%eax, %ecx
	imulq	$351843721, %rbp, %rbp
	sarl	$31, %ecx
	sarq	$45, %rbp
	subl	%ecx, %ebp
	imull	$100000, %ebp, %ecx
	subl	%ecx, %eax
	movl	%eax, %ebp
.L6:
	addq	$1, %rbx
	cmpl	%ebx, 92(%rsp)
	jg	.L7
.L11:
	cmpq	%rsi, %rdx
	jnb	.L62
	movl	88(%rsp), %eax
	addq	$1, %rdx
	addl	$1, %r13d
	addq	$21, %r12
	movq	%rdx, 8(%rdi)
	cmpl	%r13d, %eax
	jg	.L3
.L10:
	movl	%eax, 68(%rsp)
	movl	92(%rsp), %eax
	movl	$1, %r9d
	movl	%ebp, 76(%rsp)
	leal	-1(%rax), %ebx
	movl	%eax, 72(%rsp)
	movl	%ebx, %ecx
	sall	%cl, %r9d
	leal	-1(%r9), %r12d
	testl	%r9d, %r9d
	jle	.L12
.L35:
	movl	72(%rsp), %eax
	movslq	%r9d, %r9
	xorl	%r8d, %r8d
	xorl	%r10d, %r10d
	leal	-2(%rax), %edi
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%r8d, %edx
	xorl	%ecx, %ecx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L15:
	movl	%edx, %esi
	movl	%edx, %eax
	sarl	%cl, %esi
	addl	$1, %ecx
	sarl	%cl, %eax
	andl	%esi, %eax
	testb	$1, %al
	jne	.L14
.L18:
	cmpl	%edi, %ecx
	jl	.L15
	movslq	%r10d, %rax
	movl	%r10d, 219456(%rsp,%r8,4)
	addl	$1, %r10d
	movl	%edx, 528(%rsp,%rax,4)
.L14:
	addq	$1, %r8
	cmpq	%r8, %r9
	jne	.L13
	movl	68(%rsp), %esi
	movl	%r10d, 36(%rsp)
	movl	$1, 44320(%rsp)
	testl	%esi, %esi
	jle	.L38
	leaq	96(%rsp), %r14
.L33:
	movl	$1, %eax
	movl	%edi, %ecx
	leaq	44320(%rsp), %rbp
	movq	%r14, 40(%rsp)
	sall	%cl, %eax
	leaq	131888(%rsp), %rsi
	movq	%rbp, 48(%rsp)
	movl	%eax, 12(%rsp)
	movl	36(%rsp), %eax
	movq	%rsi, 16(%rsp)
	subl	$1, %eax
	movl	$1, 32(%rsp)
	leaq	8(,%rax,8), %rax
	movl	$0, 64(%rsp)
	movq	%rax, 56(%rsp)
	.p2align 4,,10
	.p2align 3
.L20:
	movl	72(%rsp), %edx
	testl	%edx, %edx
	jle	.L23
	movl	%ebx, %eax
	xorl	%r13d, %r13d
	movq	%rax, 24(%rsp)
	movq	16(%rsp), %rax
	movq	%rbp, 16(%rsp)
	movq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L22:
	movslq	32(%rsp), %rdi
	movl	$87568, %edx
	xorl	%esi, %esi
	imulq	$87568, %rdi, %rdi
	addq	48(%rsp), %rdi
	call	memset@PLT
	movl	36(%rsp), %ecx
	testl	%ecx, %ecx
	je	.L28
	movq	40(%rsp), %rax
	movq	16(%rsp), %rdi
	leaq	528(%rsp), %rsi
	movq	56(%rsp), %r14
	movzbl	(%rax,%r13), %eax
	leal	-63(%rax), %r11d
	andl	$-17, %r11d
	cmpb	$63, %al
	sete	%dl
	cmpb	$74, %al
	sete	%r10b
	orl	%edx, %r10d
	cmpb	$73, %al
	movq	%rdi, %rax
	sete	%r9b
	addq	%rdi, %r14
	orl	%edx, %r9d
	.p2align 4,,10
	.p2align 3
.L27:
	testb	%r10b, %r10b
	je	.L24
	movl	(%rsi), %ecx
	xorl	%edi, %edi
	cmpl	%r13d, %ebx
	setg	%dil
	leal	(%rcx,%rcx), %edx
	andl	%r12d, %edx
	movslq	%edx, %rdx
	movslq	219456(%rsp,%rdx,4), %rdx
	leaq	0(%rbp,%rdx,8), %r8
	movl	(%rax), %edx
	addl	(%r8,%rdi,4), %edx
	addl	4(%rax), %edx
	movslq	%edx, %rcx
	movl	%edx, %r15d
	imulq	$351843721, %rcx, %rcx
	sarl	$31, %r15d
	sarq	$45, %rcx
	subl	%r15d, %ecx
	imull	$100000, %ecx, %ecx
	subl	%ecx, %edx
	movl	%edx, (%r8,%rdi,4)
.L24:
	testb	%r11b, %r11b
	jne	.L25
	movl	(%rsi), %edi
	leal	(%rdi,%rdi), %edx
	movl	(%rax), %edi
	andl	%r12d, %edx
	movslq	%edx, %rcx
	orl	$1, %edx
	movslq	219456(%rsp,%rcx,4), %rcx
	movslq	%edx, %rdx
	movslq	219456(%rsp,%rdx,4), %rdx
	leaq	0(%rbp,%rcx,8), %r8
	addl	(%r8), %edi
	movslq	%edi, %rcx
	movl	%edi, %r15d
	imulq	$351843721, %rcx, %rcx
	sarl	$31, %r15d
	sarq	$45, %rcx
	subl	%r15d, %ecx
	imull	$100000, %ecx, %ecx
	subl	%ecx, %edi
	movl	%edi, (%r8)
	leaq	0(%rbp,%rdx,8), %rdi
	movl	4(%rax), %ecx
	addl	(%rdi), %ecx
	movslq	%ecx, %rdx
	movl	%ecx, %r8d
	imulq	$351843721, %rdx, %rdx
	sarl	$31, %r8d
	sarq	$45, %rdx
	subl	%r8d, %edx
	imull	$100000, %edx, %edx
	subl	%edx, %ecx
	movl	%ecx, (%rdi)
.L25:
	testb	%r9b, %r9b
	je	.L26
	movl	(%rsi), %edx
	movl	%edx, %ecx
	notl	%ecx
	testl	%ecx, 12(%rsp)
	je	.L26
	addl	%edx, %edx
	andl	%r12d, %edx
	movslq	%edx, %rdx
	movslq	219456(%rsp,%rdx,4), %rdx
	leaq	0(%rbp,%rdx,8), %rdi
	movl	(%rax), %edx
	addl	(%rdi), %edx
	addl	4(%rax), %edx
	movslq	%edx, %rcx
	movl	%edx, %r8d
	imulq	$351843721, %rcx, %rcx
	sarl	$31, %r8d
	sarq	$45, %rcx
	subl	%r8d, %ecx
	imull	$100000, %ecx, %ecx
	subl	%ecx, %edx
	movl	%edx, (%rdi)
.L26:
	addq	$8, %rax
	addq	$4, %rsi
	cmpq	%rax, %r14
	jne	.L27
.L28:
	xorl	$1, 32(%rsp)
	leaq	1(%r13), %rax
	cmpq	%r13, 24(%rsp)
	je	.L23
	movq	%rax, %r13
	movq	16(%rsp), %rax
	movq	%rbp, 16(%rsp)
	movq	%rax, %rbp
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L23:
	addl	$1, 64(%rsp)
	movl	64(%rsp), %eax
	addq	$21, 40(%rsp)
	cmpl	68(%rsp), %eax
	jl	.L20
.L19:
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L34
	movl	36(%rsp), %eax
	subl	$1, %eax
	leaq	8(%rbp,%rax,8), %rsi
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L32:
	addl	0(%rbp), %eax
	addl	4(%rbp), %eax
	addq	$8, %rbp
	movl	%eax, %edx
	cltq
	imulq	$351843721, %rax, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	sarq	$45, %rax
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpq	%rbp, %rsi
	jne	.L32
.L31:
	movl	76(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	subl	%eax, %edx
	addl	$100000, %edx
	movslq	%edx, %rax
	movl	%edx, %ecx
	imulq	$351843721, %rax, %rax
	sarl	$31, %ecx
	sarq	$45, %rax
	subl	%ecx, %eax
	imull	$100000, %eax, %eax
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	2316616(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L63
	addq	$2316632, %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
.L61:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rsi
	jmp	.L5
.L62:
	call	__uflow@PLT
	movl	88(%rsp), %eax
	addl	$1, %r13d
	addq	$21, %r12
	cmpl	%eax, %r13d
	jge	.L10
	movq	stdin(%rip), %rdi
	jmp	.L3
.L2:
	movl	92(%rsp), %eax
	movl	$1, %r9d
	movl	$1, 76(%rsp)
	leal	-1(%rax), %ebx
	movl	%eax, 72(%rsp)
	movl	%ebx, %ecx
	sall	%cl, %r9d
	leal	-1(%r9), %r12d
	testl	%r9d, %r9d
	jg	.L35
.L34:
	xorl	%eax, %eax
	jmp	.L31
.L12:
	movl	72(%rsp), %eax
	cmpl	$0, 68(%rsp)
	movl	$1, 44320(%rsp)
	movl	$0, 36(%rsp)
	leal	-2(%rax), %edi
	jg	.L33
	xorl	%eax, %eax
	jmp	.L31
.L38:
	leaq	44320(%rsp), %rbp
	jmp	.L19
.L63:
	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:

#include <stdio.h>
#include <string.h>
#define MOD 100000
#define FMAX 10946
#define NMMAX 20

int main(void)
{
  int i, j, k, m, n, fcheck, mask, ans = 1, res = 0, fcount = 0; 
  int k2b[FMAX], b2k[1<<19], dp[2][FMAX][2], (*src)[2], (*dst)[2];
  char field[NMMAX][NMMAX+1];
  scanf("%d %d%*c", &m, &n);
  for (i = 0; i < m; i++) {
    for (j = 0; j < n; j++) {
      field[i][j] = getchar_unlocked();
      if (field[i][j] == '?') ans = (ans * 3) % MOD;
    }
    getchar_unlocked();
  }
  for (i = 0; i < (1 << (n - 1)); i++) {
    fcheck = 1;
    for (j = 0; j < n - 2; j++) {
      if (((i >> j) & 1) & ((i >> (j + 1)) & 1)) {
        fcheck = 0;
	break;
      }
    }
    if (fcheck) {
      k2b[fcount] = i;
      b2k[i] = fcount++;
    }
  }
  mask = (1 << (n - 1)) - 1;
  fcheck = 1;
  src = dp[0];
  dst = dp[1];
  src[0][0] = 1;
  for (i = 0; i < m; i++) {
    for (j = 0; j < n; j++) {
      int (*ftemp)[2];
      memset(dp[fcheck], 0, sizeof(dp[fcheck]));
      for (k = 0; k < fcount; k++) {
	 int nk, jflag;
	if (field[i][j] == 'J' || field[i][j] == '?') {
          nk = b2k[(k2b[k] << 1) & mask];
	  jflag = (j < n - 1);
	  dst[nk][jflag] = (dst[nk][jflag] + src[k][0] + src[k][1]) % MOD;
	} 
	if (field[i][j] == 'O' || field[i][j] == '?') {
	  nk = b2k[((k2b[k] << 1) & mask) | 0];
	  jflag = 0;
	  dst[nk][jflag] = (dst[nk][jflag] + src[k][0]) %  MOD;
	  nk = b2k[((k2b[k] << 1) & mask) | 1];
	  dst[nk][jflag] = (dst[nk][jflag] + src[k][1]) % MOD;
	}
	if (field[i][j] == 'I' || field[i][j] == '?') {
	  if (((~k2b[k]) >> (n - 2)) & 1) {
	    nk = b2k[(k2b[k] << 1) & mask];
	    jflag = 0;
	    dst[nk][jflag] = (dst[nk][jflag] + src[k][0] + src[k][1]) % MOD;
	  }
	}
      }
      ftemp = src;
      src = dst;
      dst = ftemp;
      fcheck ^= 1;
    }
  }
  for (i = 0; i < fcount; i++) res = (res + src[i][0] + src[i][1]) % MOD;
  printf("%d\n", (ans - res + MOD) % MOD);
}


2 3
??O
IIJ

4

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 <string.h>
#define MOD 100000
#define FMAX 10946
#define NMMAX 20

int main(void)
{
  int i, j, k, m, n, fcheck, mask, ans = 1, res = 0, fcount = 0; 
  int k2b[FMAX], b2k[1<<19], dp[2][FMAX][2], (*src)[2], (*dst)[2];
  char field[NMMAX][NMMAX+1];
  scanf("%d %d%*c", &m, &n);
  for (i = 0; i < m; i++) {
    for (j = 0; j < n; j++) {
      field[i][j] = getchar_unlocked();
      if (field[i][j] == '?') ans = (ans * 3) % MOD;
    }
    getchar_unlocked();
  }
  for (i = 0; i < (1 << (n - 1)); i++) {
    fcheck = 1;
    for (j = 0; j < n - 2; j++) {
      if (((i >> j) & 1) & ((i >> (j + 1)) & 1)) {
        fcheck = 0;
	break;
      }
    }
    if (fcheck) {
      k2b[fcount] = i;
      b2k[i] = fcount++;
    }
  }
  mask = (1 << (n - 1)) - 1;
  fcheck = 1;
  src = dp[0];
  dst = dp[1];
  src[0][0] = 1;
  for (i = 0; i < m; i++) {
    for (j = 0; j < n; j++) {
      int (*ftemp)[2];
      memset(dp[fcheck], 0, sizeof(dp[fcheck]));
      for (k = 0; k < fcount; k++) {
	 int nk, jflag;
	if (field[i][j] == 'J' || field[i][j] == '?') {
          nk = b2k[(k2b[k] << 1) & mask];
	  jflag = (j < n - 1);
	  dst[nk][jflag] = (dst[nk][jflag] + src[k][0] + src[k][1]) % MOD;
	} 
	if (field[i][j] == 'O' || field[i][j] == '?') {
	  nk = b2k[((k2b[k] << 1) & mask) | 0];
	  jflag = 0;
	  dst[nk][jflag] = (dst[nk][jflag] + src[k][0]) %  MOD;
	  nk = b2k[((k2b[k] << 1) & mask) | 1];
	  dst[nk][jflag] = (dst[nk][jflag] + src[k][1]) % MOD;
	}
	if (field[i][j] == 'I' || field[i][j] == '?') {
	  if (((~k2b[k]) >> (n - 2)) & 1) {
	    nk = b2k[(k2b[k] << 1) & mask];
	    jflag = 0;
	    dst[nk][jflag] = (dst[nk][jflag] + src[k][0] + src[k][1]) % MOD;
	  }
	}
      }
      ftemp = src;
      src = dst;
      dst = ftemp;
      fcheck ^= 1;
    }
  }
  for (i = 0; i < fcount; i++) res = (res + src[i][0] + src[i][1]) % MOD;
  printf("%d\n", (ans - res + MOD) % MOD);
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d%*c"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-2314240(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2368, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -2316576(%rbp)
	movl	$0, -2316572(%rbp)
	movl	$0, -2316568(%rbp)
	leaq	-2316596(%rbp), %rdx
	leaq	-2316600(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2316592(%rbp)
	jmp	.L2
.L6:
	movl	$0, -2316588(%rbp)
	jmp	.L3
.L5:
	call	getchar_unlocked@PLT
	movl	%eax, %ecx
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rsi
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$2316528, %rax
	movb	%cl, (%rax)
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$63, %al
	jne	.L4
	movl	-2316576(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -2316576(%rbp)
	movl	-2316576(%rbp), %edx
	imull	$100000, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -2316576(%rbp)
.L4:
	addl	$1, -2316588(%rbp)
.L3:
	movl	-2316596(%rbp), %eax
	cmpl	%eax, -2316588(%rbp)
	jl	.L5
	call	getchar_unlocked@PLT
	addl	$1, -2316592(%rbp)
.L2:
	movl	-2316600(%rbp), %eax
	cmpl	%eax, -2316592(%rbp)
	jl	.L6
	movl	$0, -2316592(%rbp)
	jmp	.L7
.L13:
	movl	$1, -2316580(%rbp)
	movl	$0, -2316588(%rbp)
	jmp	.L8
.L11:
	movl	-2316588(%rbp), %eax
	movl	-2316592(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	movl	%eax, %esi
	movl	-2316588(%rbp), %eax
	addl	$1, %eax
	movl	-2316592(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	%esi, %eax
	testl	%eax, %eax
	je	.L9
	movl	$0, -2316580(%rbp)
	jmp	.L10
.L9:
	addl	$1, -2316588(%rbp)
.L8:
	movl	-2316596(%rbp), %eax
	subl	$2, %eax
	cmpl	%eax, -2316588(%rbp)
	jl	.L11
.L10:
	cmpl	$0, -2316580(%rbp)
	je	.L12
	movl	-2316568(%rbp), %eax
	cltq
	movl	-2316592(%rbp), %edx
	movl	%edx, -2316096(%rbp,%rax,4)
	movl	-2316568(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2316568(%rbp)
	movl	-2316592(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -2097168(%rbp,%rdx,4)
.L12:
	addl	$1, -2316592(%rbp)
.L7:
	movl	-2316596(%rbp), %eax
	subl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cmpl	%eax, -2316592(%rbp)
	jl	.L13
	movl	-2316596(%rbp), %eax
	subl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -2316564(%rbp)
	movl	$1, -2316580(%rbp)
	leaq	-2272304(%rbp), %rax
	movq	%rax, -2316552(%rbp)
	leaq	-2272304(%rbp), %rax
	addq	$87568, %rax
	movq	%rax, -2316544(%rbp)
	movq	-2316552(%rbp), %rax
	movl	$1, (%rax)
	movl	$0, -2316592(%rbp)
	jmp	.L14
.L25:
	movl	$0, -2316588(%rbp)
	jmp	.L15
.L24:
	leaq	-2272304(%rbp), %rdx
	movl	-2316580(%rbp), %eax
	cltq
	imulq	$87568, %rax, %rax
	addq	%rdx, %rax
	movl	$87568, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -2316584(%rbp)
	jmp	.L16
.L23:
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$74, %al
	je	.L17
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$63, %al
	jne	.L18
.L17:
	movl	-2316584(%rbp), %eax
	cltq
	movl	-2316096(%rbp,%rax,4), %eax
	addl	%eax, %eax
	andl	-2316564(%rbp), %eax
	cltq
	movl	-2097168(%rbp,%rax,4), %eax
	movl	%eax, -2316560(%rbp)
	movl	-2316596(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -2316588(%rbp)
	setl	%al
	movzbl	%al, %eax
	movl	%eax, -2316556(%rbp)
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rdx
	movl	-2316556(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %edx
	movl	-2316584(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	addl	%eax, %edx
	movl	-2316584(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	addl	%eax, %edx
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rcx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	imull	$100000, %eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	-2316556(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, (%rcx,%rdx,4)
.L18:
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$79, %al
	je	.L19
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$63, %al
	jne	.L20
.L19:
	movl	-2316584(%rbp), %eax
	cltq
	movl	-2316096(%rbp,%rax,4), %eax
	addl	%eax, %eax
	andl	-2316564(%rbp), %eax
	cltq
	movl	-2097168(%rbp,%rax,4), %eax
	movl	%eax, -2316560(%rbp)
	movl	$0, -2316556(%rbp)
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rdx
	movl	-2316556(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %edx
	movl	-2316584(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	addl	%eax, %edx
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rcx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	imull	$100000, %eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	-2316556(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	-2316584(%rbp), %eax
	cltq
	movl	-2316096(%rbp,%rax,4), %eax
	addl	%eax, %eax
	andl	-2316564(%rbp), %eax
	orl	$1, %eax
	cltq
	movl	-2097168(%rbp,%rax,4), %eax
	movl	%eax, -2316560(%rbp)
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rdx
	movl	-2316556(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %edx
	movl	-2316584(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	addl	%eax, %edx
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rcx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	imull	$100000, %eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	-2316556(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, (%rcx,%rdx,4)
.L20:
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$73, %al
	je	.L21
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$63, %al
	jne	.L22
.L21:
	movl	-2316584(%rbp), %eax
	cltq
	movl	-2316096(%rbp,%rax,4), %eax
	notl	%eax
	movl	%eax, %edx
	movl	-2316596(%rbp), %eax
	subl	$2, %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L22
	movl	-2316584(%rbp), %eax
	cltq
	movl	-2316096(%rbp,%rax,4), %eax
	addl	%eax, %eax
	andl	-2316564(%rbp), %eax
	cltq
	movl	-2097168(%rbp,%rax,4), %eax
	movl	%eax, -2316560(%rbp)
	movl	$0, -2316556(%rbp)
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rdx
	movl	-2316556(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %edx
	movl	-2316584(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	addl	%eax, %edx
	movl	-2316584(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	addl	%eax, %edx
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rcx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	imull	$100000, %eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	-2316556(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, (%rcx,%rdx,4)
.L22:
	addl	$1, -2316584(%rbp)
.L16:
	movl	-2316584(%rbp), %eax
	cmpl	-2316568(%rbp), %eax
	jl	.L23
	movq	-2316552(%rbp), %rax
	movq	%rax, -2316536(%rbp)
	movq	-2316544(%rbp), %rax
	movq	%rax, -2316552(%rbp)
	movq	-2316536(%rbp), %rax
	movq	%rax, -2316544(%rbp)
	xorl	$1, -2316580(%rbp)
	addl	$1, -2316588(%rbp)
.L15:
	movl	-2316596(%rbp), %eax
	cmpl	%eax, -2316588(%rbp)
	jl	.L24
	addl	$1, -2316592(%rbp)
.L14:
	movl	-2316600(%rbp), %eax
	cmpl	%eax, -2316592(%rbp)
	jl	.L25
	movl	$0, -2316592(%rbp)
	jmp	.L26
.L27:
	movl	-2316592(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-2316552(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-2316572(%rbp), %eax
	addl	%eax, %edx
	movl	-2316592(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -2316572(%rbp)
	movl	-2316572(%rbp), %edx
	imull	$100000, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -2316572(%rbp)
	addl	$1, -2316592(%rbp)
.L26:
	movl	-2316592(%rbp), %eax
	cmpl	-2316568(%rbp), %eax
	jl	.L27
	movl	-2316576(%rbp), %eax
	subl	-2316572(%rbp), %eax
	leal	100000(%rax), %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d%*c"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-2314240(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2368, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -2316576(%rbp)
	movl	$0, -2316572(%rbp)
	movl	$0, -2316568(%rbp)
	leaq	-2316596(%rbp), %rdx
	leaq	-2316600(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2316592(%rbp)
	jmp	.L2
.L6:
	movl	$0, -2316588(%rbp)
	jmp	.L3
.L5:
	call	getchar_unlocked@PLT
	movl	%eax, %ecx
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rsi
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$2316528, %rax
	movb	%cl, (%rax)
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$63, %al
	jne	.L4
	movl	-2316576(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -2316576(%rbp)
	movl	-2316576(%rbp), %edx
	imull	$100000, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -2316576(%rbp)
.L4:
	addl	$1, -2316588(%rbp)
.L3:
	movl	-2316596(%rbp), %eax
	cmpl	%eax, -2316588(%rbp)
	jl	.L5
	call	getchar_unlocked@PLT
	addl	$1, -2316592(%rbp)
.L2:
	movl	-2316600(%rbp), %eax
	cmpl	%eax, -2316592(%rbp)
	jl	.L6
	movl	$0, -2316592(%rbp)
	jmp	.L7
.L13:
	movl	$1, -2316580(%rbp)
	movl	$0, -2316588(%rbp)
	jmp	.L8
.L11:
	movl	-2316588(%rbp), %eax
	movl	-2316592(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	movl	%eax, %esi
	movl	-2316588(%rbp), %eax
	addl	$1, %eax
	movl	-2316592(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	%esi, %eax
	testl	%eax, %eax
	je	.L9
	movl	$0, -2316580(%rbp)
	jmp	.L10
.L9:
	addl	$1, -2316588(%rbp)
.L8:
	movl	-2316596(%rbp), %eax
	subl	$2, %eax
	cmpl	%eax, -2316588(%rbp)
	jl	.L11
.L10:
	cmpl	$0, -2316580(%rbp)
	je	.L12
	movl	-2316568(%rbp), %eax
	cltq
	movl	-2316592(%rbp), %edx
	movl	%edx, -2316096(%rbp,%rax,4)
	movl	-2316568(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2316568(%rbp)
	movl	-2316592(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -2097168(%rbp,%rdx,4)
.L12:
	addl	$1, -2316592(%rbp)
.L7:
	movl	-2316596(%rbp), %eax
	subl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cmpl	%eax, -2316592(%rbp)
	jl	.L13
	movl	-2316596(%rbp), %eax
	subl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -2316564(%rbp)
	movl	$1, -2316580(%rbp)
	leaq	-2272304(%rbp), %rax
	movq	%rax, -2316552(%rbp)
	leaq	-2272304(%rbp), %rax
	addq	$87568, %rax
	movq	%rax, -2316544(%rbp)
	movq	-2316552(%rbp), %rax
	movl	$1, (%rax)
	movl	$0, -2316592(%rbp)
	jmp	.L14
.L25:
	movl	$0, -2316588(%rbp)
	jmp	.L15
.L24:
	leaq	-2272304(%rbp), %rdx
	movl	-2316580(%rbp), %eax
	cltq
	imulq	$87568, %rax, %rax
	addq	%rdx, %rax
	movl	$87568, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -2316584(%rbp)
	jmp	.L16
.L23:
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$74, %al
	je	.L17
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$63, %al
	jne	.L18
.L17:
	movl	-2316584(%rbp), %eax
	cltq
	movl	-2316096(%rbp,%rax,4), %eax
	addl	%eax, %eax
	andl	-2316564(%rbp), %eax
	cltq
	movl	-2097168(%rbp,%rax,4), %eax
	movl	%eax, -2316560(%rbp)
	movl	-2316596(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -2316588(%rbp)
	setl	%al
	movzbl	%al, %eax
	movl	%eax, -2316556(%rbp)
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rdx
	movl	-2316556(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %edx
	movl	-2316584(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	addl	%eax, %edx
	movl	-2316584(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	addl	%eax, %edx
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rcx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	imull	$100000, %eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	-2316556(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, (%rcx,%rdx,4)
.L18:
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$79, %al
	je	.L19
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$63, %al
	jne	.L20
.L19:
	movl	-2316584(%rbp), %eax
	cltq
	movl	-2316096(%rbp,%rax,4), %eax
	addl	%eax, %eax
	andl	-2316564(%rbp), %eax
	cltq
	movl	-2097168(%rbp,%rax,4), %eax
	movl	%eax, -2316560(%rbp)
	movl	$0, -2316556(%rbp)
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rdx
	movl	-2316556(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %edx
	movl	-2316584(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	addl	%eax, %edx
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rcx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	imull	$100000, %eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	-2316556(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	-2316584(%rbp), %eax
	cltq
	movl	-2316096(%rbp,%rax,4), %eax
	addl	%eax, %eax
	andl	-2316564(%rbp), %eax
	orl	$1, %eax
	cltq
	movl	-2097168(%rbp,%rax,4), %eax
	movl	%eax, -2316560(%rbp)
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rdx
	movl	-2316556(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %edx
	movl	-2316584(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	addl	%eax, %edx
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rcx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	imull	$100000, %eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	-2316556(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, (%rcx,%rdx,4)
.L20:
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$73, %al
	je	.L21
	movl	-2316588(%rbp), %eax
	movslq	%eax, %rcx
	movl	-2316592(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$2316528, %rax
	movzbl	(%rax), %eax
	cmpb	$63, %al
	jne	.L22
.L21:
	movl	-2316584(%rbp), %eax
	cltq
	movl	-2316096(%rbp,%rax,4), %eax
	notl	%eax
	movl	%eax, %edx
	movl	-2316596(%rbp), %eax
	subl	$2, %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L22
	movl	-2316584(%rbp), %eax
	cltq
	movl	-2316096(%rbp,%rax,4), %eax
	addl	%eax, %eax
	andl	-2316564(%rbp), %eax
	cltq
	movl	-2097168(%rbp,%rax,4), %eax
	movl	%eax, -2316560(%rbp)
	movl	$0, -2316556(%rbp)
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rdx
	movl	-2316556(%rbp), %eax
	cltq
	movl	(%rdx,%rax,4), %edx
	movl	-2316584(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	addl	%eax, %edx
	movl	-2316584(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	addl	%eax, %edx
	movl	-2316560(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316544(%rbp), %rax
	addq	%rax, %rcx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	imull	$100000, %eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	-2316556(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, (%rcx,%rdx,4)
.L22:
	addl	$1, -2316584(%rbp)
.L16:
	movl	-2316584(%rbp), %eax
	cmpl	-2316568(%rbp), %eax
	jl	.L23
	movq	-2316552(%rbp), %rax
	movq	%rax, -2316536(%rbp)
	movq	-2316544(%rbp), %rax
	movq	%rax, -2316552(%rbp)
	movq	-2316536(%rbp), %rax
	movq	%rax, -2316544(%rbp)
	xorl	$1, -2316580(%rbp)
	addl	$1, -2316588(%rbp)
.L15:
	movl	-2316596(%rbp), %eax
	cmpl	%eax, -2316588(%rbp)
	jl	.L24
	addl	$1, -2316592(%rbp)
.L14:
	movl	-2316600(%rbp), %eax
	cmpl	%eax, -2316592(%rbp)
	jl	.L25
	movl	$0, -2316592(%rbp)
	jmp	.L26
.L27:
	movl	-2316592(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-2316552(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-2316572(%rbp), %eax
	addl	%eax, %edx
	movl	-2316592(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-2316552(%rbp), %rax
	addq	%rcx, %rax
	movl	4(%rax), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	imulq	$351843721, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$13, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -2316572(%rbp)
	movl	-2316572(%rbp), %edx
	imull	$100000, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -2316572(%rbp)
	addl	$1, -2316592(%rbp)
.L26:
	movl	-2316592(%rbp), %eax
	cmpl	-2316568(%rbp), %eax
	jl	.L27
	movl	-2316576(%rbp), %eax
	subl	-2316572(%rbp), %eax
	leal	100000(%rax), %edx
	movslq	%edx, %rax
	imulq	$351843721, %rax, %rax
	shrq	$32, %rax
	sarl	$13, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
