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

```c
#include<stdio.h>
int MAX(int a,int b){return a<b?b:a;}
int main(){
  int n,i,a,b,c;
  char s[100],t[100];
  scanf("%d",&n);
  while(n--){
    scanf("%s %s",s,t);
    for(i=0;s[i];i++){
      if(s[i]-t[i])break;
    }
    if(s[i]==0){
      printf("0\n");
      continue;
    }
    a=i;
    for(i=0;s[i];i++){
      if(s[i]=='1')b=i;
      if(t[i]=='1')c=i;
    }//printf("%d %d %d\n",a,b,c);
    if(b<a)a=b;
    if(c<a)a=c;
    printf("%d\n",b-a+c-a);
  }
  return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	MAX
	.type	MAX, @function
MAX:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	MAX, .-MAX
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s %s"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"0"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L4
	leaq	128(%rsp), %r13
	leaq	16(%rsp), %r14
	leaq	.LC1(%rip), %rbx
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rdx
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	16(%rsp), %ecx
	testb	%cl, %cl
	je	.L5
	movl	%ecx, %edx
	xorl	%eax, %eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$1, %rax
	movzbl	(%r14,%rax), %edx
	testb	%dl, %dl
	je	.L5
.L7:
	movl	%eax, %esi
	cmpb	%dl, 0(%r13,%rax)
	je	.L25
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$49, %cl
	cmove	%eax, %r12d
	cmpb	$49, 0(%r13,%rax)
	cmove	%eax, %r15d
	addq	$1, %rax
	movzbl	(%r14,%rax), %ecx
	testb	%cl, %cl
	jne	.L6
	cmpl	%r12d, %esi
	movl	%r12d, %edx
	movl	$1, %edi
	cmovg	%r12d, %esi
	cmpl	%r15d, %esi
	cmovg	%r15d, %esi
	xorl	%eax, %eax
	subl	%esi, %edx
	addl	%r15d, %edx
	subl	%esi, %edx
	movq	%rbp, %rsi
	call	__printf_chk@PLT
.L11:
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L10
.L4:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$248, %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
.L5:
	.cfi_restore_state
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L11
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	MAX
	.type	MAX, @function
MAX:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	MAX, .-MAX
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s %s"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"0"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L4
	leaq	128(%rsp), %r13
	leaq	16(%rsp), %r14
	leaq	.LC1(%rip), %rbx
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rdx
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	16(%rsp), %ecx
	testb	%cl, %cl
	je	.L5
	movl	%ecx, %edx
	xorl	%eax, %eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$1, %rax
	movzbl	(%r14,%rax), %edx
	testb	%dl, %dl
	je	.L5
.L7:
	movl	%eax, %esi
	cmpb	%dl, 0(%r13,%rax)
	je	.L25
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$49, %cl
	cmove	%eax, %r12d
	cmpb	$49, 0(%r13,%rax)
	cmove	%eax, %r15d
	addq	$1, %rax
	movzbl	(%r14,%rax), %ecx
	testb	%cl, %cl
	jne	.L6
	cmpl	%r12d, %esi
	movl	%r12d, %edx
	movl	$1, %edi
	cmovg	%r12d, %esi
	cmpl	%r15d, %esi
	cmovg	%r15d, %esi
	xorl	%eax, %eax
	subl	%esi, %edx
	addl	%r15d, %edx
	subl	%esi, %edx
	movq	%rbp, %rsi
	call	__printf_chk@PLT
.L11:
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L10
.L4:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$248, %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
.L5:
	.cfi_restore_state
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L11
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
rule
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	MAX
	.type	MAX, @function
MAX:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	MAX, .-MAX
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s %s"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"0"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L4
	leaq	128(%rsp), %r13
	leaq	16(%rsp), %r14
	leaq	.LC1(%rip), %rbx
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rdx
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	16(%rsp), %ecx
	testb	%cl, %cl
	je	.L5
	movl	%ecx, %edx
	xorl	%eax, %eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$1, %rax
	movzbl	(%r14,%rax), %edx
	testb	%dl, %dl
	je	.L5
.L7:
	movl	%eax, %esi
	cmpb	%dl, 0(%r13,%rax)
	je	.L25
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$49, %cl
	cmove	%eax, %r12d
	cmpb	$49, 0(%r13,%rax)
	cmove	%eax, %r15d
	addq	$1, %rax
	movzbl	(%r14,%rax), %ecx
	testb	%cl, %cl
	jne	.L6
	cmpl	%r12d, %esi
	movl	%r12d, %edx
	movl	$1, %edi
	cmovg	%r12d, %esi
	cmpl	%r15d, %esi
	cmovg	%r15d, %esi
	xorl	%eax, %eax
	subl	%esi, %edx
	addl	%r15d, %edx
	subl	%esi, %edx
	movq	%rbp, %rsi
	call	__printf_chk@PLT
.L11:
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L10
.L4:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$248, %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
.L5:
	.cfi_restore_state
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L11
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
```c
#include<stdio.h>
int MAX(int a,int b){return a<b?b:a;}
int main(){
  int n,i,a,b,c;
  char s[100],t[100];
  scanf("%d",&n);
  while(n--){
    scanf("%s %s",s,t);
    for(i=0;s[i];i++){
      if(s[i]-t[i])break;
    }
    if(s[i]==0){
      printf("0\n");
      continue;
    }
    a=i;
    for(i=0;s[i];i++){
      if(s[i]=='1')b=i;
      if(t[i]=='1')c=i;
    }//printf("%d %d %d\n",a,b,c);
    if(b<a)a=b;
    if(c<a)a=c;
    printf("%d\n",b-a+c-a);
  }
  return 0;
}

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

```c
#include<stdio.h>
int MAX(int a,int b){return a<b?b:a;}
int main(){
  int n,i,a,b,c;
  char s[100],t[100];
  scanf("%d",&n);
  while(n--){
    scanf("%s %s",s,t);
    for(i=0;s[i];i++){
      if(s[i]-t[i])break;
    }
    if(s[i]==0){
      printf("0\n");
      continue;
    }
    a=i;
    for(i=0;s[i];i++){
      if(s[i]=='1')b=i;
      if(t[i]=='1')c=i;
    }//printf("%d %d %d\n",a,b,c);
    if(b<a)a=b;
    if(c<a)a=c;
    printf("%d\n",b-a+c-a);
  }
  return 0;
}

```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

4
101 100
101 101
1010 1101
11011001 10010101
 4
101 100
101 101
1010 1101
01011001 10010101
 4
101 100
101 111
1010 1101
01011001 10010101
 4
101 110
101 101
0010 1101
11011001 10010101
 4
101 100
101 101
1010 1100
11011001 10010101
 4
101 100
101 011
1010 1101
01011001 10010101
 4
101 110
101 101
0010 1100
11011001 10010101
 4
100 100
101 011
1010 1101
01011001 10010101
 4
101 110
101 101
0010 1100
10011001 10010101
 4
110 100
101 101
1010 1100
11011001 10010101

2
0
3
12
 2
0
3
14
 2
2
3
14
 1
0
5
12
 2
0
1
12
 2
4
3
14
 1
0
3
12
 0
4
3
14
 1
0
3
6
 1
0
1
12

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

```c
#include<stdio.h>
int MAX(int a,int b){return a<b?b:a;}
int main(){
  int n,i,a,b,c;
  char s[100],t[100];
  scanf("%d",&n);
  while(n--){
    scanf("%s %s",s,t);
    for(i=0;s[i];i++){
      if(s[i]-t[i])break;
    }
    if(s[i]==0){
      printf("0\n");
      continue;
    }
    a=i;
    for(i=0;s[i];i++){
      if(s[i]=='1')b=i;
      if(t[i]=='1')c=i;
    }//printf("%d %d %d\n",a,b,c);
    if(b<a)a=b;
    if(c<a)a=c;
    printf("%d\n",b-a+c-a);
  }
  return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	MAX
	.type	MAX, @function
MAX:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	MAX, .-MAX
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s %s"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"0"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L4
	leaq	128(%rsp), %r13
	leaq	16(%rsp), %r14
	leaq	.LC1(%rip), %rbx
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rdx
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	16(%rsp), %ecx
	testb	%cl, %cl
	je	.L5
	movl	%ecx, %edx
	xorl	%eax, %eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$1, %rax
	movzbl	(%r14,%rax), %edx
	testb	%dl, %dl
	je	.L5
.L7:
	movl	%eax, %esi
	cmpb	%dl, 0(%r13,%rax)
	je	.L25
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$49, %cl
	cmove	%eax, %r12d
	cmpb	$49, 0(%r13,%rax)
	cmove	%eax, %r15d
	addq	$1, %rax
	movzbl	(%r14,%rax), %ecx
	testb	%cl, %cl
	jne	.L6
	cmpl	%r12d, %esi
	movl	%r12d, %edx
	movl	$1, %edi
	cmovg	%r12d, %esi
	cmpl	%r15d, %esi
	cmovg	%r15d, %esi
	xorl	%eax, %eax
	subl	%esi, %edx
	addl	%r15d, %edx
	subl	%esi, %edx
	movq	%rbp, %rsi
	call	__printf_chk@PLT
.L11:
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L10
.L4:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$248, %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
.L5:
	.cfi_restore_state
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L11
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	MAX
	.type	MAX, @function
MAX:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	MAX, .-MAX
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s %s"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"0"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L4
	leaq	128(%rsp), %r13
	leaq	16(%rsp), %r14
	leaq	.LC1(%rip), %rbx
	leaq	.LC2(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rdx
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	16(%rsp), %ecx
	testb	%cl, %cl
	je	.L5
	movl	%ecx, %edx
	xorl	%eax, %eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$1, %rax
	movzbl	(%r14,%rax), %edx
	testb	%dl, %dl
	je	.L5
.L7:
	movl	%eax, %esi
	cmpb	%dl, 0(%r13,%rax)
	je	.L25
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$49, %cl
	cmove	%eax, %r12d
	cmpb	$49, 0(%r13,%rax)
	cmove	%eax, %r15d
	addq	$1, %rax
	movzbl	(%r14,%rax), %ecx
	testb	%cl, %cl
	jne	.L6
	cmpl	%r12d, %esi
	movl	%r12d, %edx
	movl	$1, %edi
	cmovg	%r12d, %esi
	cmpl	%r15d, %esi
	cmovg	%r15d, %esi
	xorl	%eax, %eax
	subl	%esi, %edx
	addl	%r15d, %edx
	subl	%esi, %edx
	movq	%rbp, %rsi
	call	__printf_chk@PLT
.L11:
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L10
.L4:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$248, %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
.L5:
	.cfi_restore_state
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L11
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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:
```