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>

long long val(long long x){
  long long sum = 0;
  while(x){
    sum += x%10;
    x /= 10;
  }
  return sum;
}

int main(){
  long long a, n, m, y, t, x, cnt = 0;
  scanf("%lld %lld %lld", &a, &n, &m);

  for ( y = 1; y <= 72; y++ ){
    x = 1;
    for ( t = 1; t <= n; t++ ){
      x *= (y+a);
    }
    if (x <= m && val(x) == y) cnt++;
  }

  printf("%lld\n", cnt);

  return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	val
	.type	val, @function
val:
.LFB23:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	testq	%rdi, %rdi
	je	.L1
	movabsq	$7378697629483820647, %rcx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rdi, %rax
	imulq	%rcx
	movq	%rdi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rdi
	addq	%rdi, %r8
	movq	%rdx, %rdi
	testq	%rdx, %rdx
	jne	.L3
.L1:
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	val, .-val
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld %lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	xorl	%r12d, %r12d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r9
	movq	16(%rsp), %r11
	movl	$1, %edi
	movabsq	$7378697629483820647, %r8
	movq	(%rsp), %r10
	leaq	1(%r9), %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	leaq	(%rdi,%r10), %rdx
	movl	$1, %ecx
	movl	$1, %eax
	testq	%r9, %r9
	jle	.L27
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, %rax
	imulq	%rdx, %rcx
	cmpq	%rax, %rsi
	jne	.L9
	cmpq	%r11, %rcx
	jle	.L28
.L12:
	addq	$1, %rdi
	cmpq	$73, %rdi
	jne	.L8
	xorl	%eax, %eax
	movq	%r12, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	testq	%rcx, %rcx
	je	.L12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rcx, %rax
	imulq	%r8
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addq	%rcx, %rbx
	movq	%rdx, %rcx
	testq	%rdx, %rdx
	jne	.L13
	xorl	%eax, %eax
	cmpq	%rdi, %rbx
	sete	%al
	addq	%rax, %r12
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L27:
	testq	%r11, %r11
	jle	.L12
	movl	$1, %ebx
	xorl	%eax, %eax
	cmpq	%rdi, %rbx
	sete	%al
	addq	%rax, %r12
	jmp	.L12
.L29:
	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	val
	.type	val, @function
val:
.LFB23:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	testq	%rdi, %rdi
	je	.L1
	movabsq	$7378697629483820647, %rcx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rdi, %rax
	imulq	%rcx
	movq	%rdi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rdi
	addq	%rdi, %r8
	movq	%rdx, %rdi
	testq	%rdx, %rdx
	jne	.L3
.L1:
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	val, .-val
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld %lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	xorl	%r12d, %r12d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r9
	movq	16(%rsp), %r11
	movl	$1, %edi
	movabsq	$7378697629483820647, %r8
	movq	(%rsp), %r10
	leaq	1(%r9), %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	leaq	(%rdi,%r10), %rdx
	movl	$1, %ecx
	movl	$1, %eax
	testq	%r9, %r9
	jle	.L27
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, %rax
	imulq	%rdx, %rcx
	cmpq	%rax, %rsi
	jne	.L9
	cmpq	%r11, %rcx
	jle	.L28
.L12:
	addq	$1, %rdi
	cmpq	$73, %rdi
	jne	.L8
	xorl	%eax, %eax
	movq	%r12, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	testq	%rcx, %rcx
	je	.L12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rcx, %rax
	imulq	%r8
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addq	%rcx, %rbx
	movq	%rdx, %rcx
	testq	%rdx, %rdx
	jne	.L13
	xorl	%eax, %eax
	cmpq	%rdi, %rbx
	sete	%al
	addq	%rax, %r12
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L27:
	testq	%r11, %r11
	jle	.L12
	movl	$1, %ebx
	xorl	%eax, %eax
	cmpq	%rdi, %rbx
	sete	%al
	addq	%rax, %r12
	jmp	.L12
.L29:
	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	val
	.type	val, @function
val:
.LFB23:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	testq	%rdi, %rdi
	je	.L1
	movabsq	$7378697629483820647, %rcx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rdi, %rax
	imulq	%rcx
	movq	%rdi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rdi
	addq	%rdi, %r8
	movq	%rdx, %rdi
	testq	%rdx, %rdx
	jne	.L3
.L1:
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	val, .-val
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld %lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	xorl	%r12d, %r12d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r9
	movq	16(%rsp), %r11
	movl	$1, %edi
	movabsq	$7378697629483820647, %r8
	movq	(%rsp), %r10
	leaq	1(%r9), %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	leaq	(%rdi,%r10), %rdx
	movl	$1, %ecx
	movl	$1, %eax
	testq	%r9, %r9
	jle	.L27
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, %rax
	imulq	%rdx, %rcx
	cmpq	%rax, %rsi
	jne	.L9
	cmpq	%r11, %rcx
	jle	.L28
.L12:
	addq	$1, %rdi
	cmpq	$73, %rdi
	jne	.L8
	xorl	%eax, %eax
	movq	%r12, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	testq	%rcx, %rcx
	je	.L12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rcx, %rax
	imulq	%r8
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addq	%rcx, %rbx
	movq	%rdx, %rcx
	testq	%rdx, %rdx
	jne	.L13
	xorl	%eax, %eax
	cmpq	%rdi, %rbx
	sete	%al
	addq	%rax, %r12
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L27:
	testq	%r11, %r11
	jle	.L12
	movl	$1, %ebx
	xorl	%eax, %eax
	cmpq	%rdi, %rbx
	sete	%al
	addq	%rax, %r12
	jmp	.L12
.L29:
	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>

long long val(long long x){
  long long sum = 0;
  while(x){
    sum += x%10;
    x /= 10;
  }
  return sum;
}

int main(){
  long long a, n, m, y, t, x, cnt = 0;
  scanf("%lld %lld %lld", &a, &n, &m);

  for ( y = 1; y <= 72; y++ ){
    x = 1;
    for ( t = 1; t <= n; t++ ){
      x *= (y+a);
    }
    if (x <= m && val(x) == y) cnt++;
  }

  printf("%lld\n", cnt);

  return 0;
}

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

```c
#include <stdio.h>

long long val(long long x){
  long long sum = 0;
  while(x){
    sum += x%10;
    x /= 10;
  }
  return sum;
}

int main(){
  long long a, n, m, y, t, x, cnt = 0;
  scanf("%lld %lld %lld", &a, &n, &m);

  for ( y = 1; y <= 72; y++ ){
    x = 1;
    for ( t = 1; t <= n; t++ ){
      x *= (y+a);
    }
    if (x <= m && val(x) == y) cnt++;
  }

  printf("%lld\n", cnt);

  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:

16 2 1000

2

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>

long long val(long long x){
  long long sum = 0;
  while(x){
    sum += x%10;
    x /= 10;
  }
  return sum;
}

int main(){
  long long a, n, m, y, t, x, cnt = 0;
  scanf("%lld %lld %lld", &a, &n, &m);

  for ( y = 1; y <= 72; y++ ){
    x = 1;
    for ( t = 1; t <= n; t++ ){
      x *= (y+a);
    }
    if (x <= m && val(x) == y) cnt++;
  }

  printf("%lld\n", cnt);

  return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	val
	.type	val, @function
val:
.LFB23:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	testq	%rdi, %rdi
	je	.L1
	movabsq	$7378697629483820647, %rcx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rdi, %rax
	imulq	%rcx
	movq	%rdi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rdi
	addq	%rdi, %r8
	movq	%rdx, %rdi
	testq	%rdx, %rdx
	jne	.L3
.L1:
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	val, .-val
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld %lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	xorl	%r12d, %r12d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r9
	movq	16(%rsp), %r11
	movl	$1, %edi
	movabsq	$7378697629483820647, %r8
	movq	(%rsp), %r10
	leaq	1(%r9), %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	leaq	(%rdi,%r10), %rdx
	movl	$1, %ecx
	movl	$1, %eax
	testq	%r9, %r9
	jle	.L27
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, %rax
	imulq	%rdx, %rcx
	cmpq	%rax, %rsi
	jne	.L9
	cmpq	%r11, %rcx
	jle	.L28
.L12:
	addq	$1, %rdi
	cmpq	$73, %rdi
	jne	.L8
	xorl	%eax, %eax
	movq	%r12, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	testq	%rcx, %rcx
	je	.L12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rcx, %rax
	imulq	%r8
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addq	%rcx, %rbx
	movq	%rdx, %rcx
	testq	%rdx, %rdx
	jne	.L13
	xorl	%eax, %eax
	cmpq	%rdi, %rbx
	sete	%al
	addq	%rax, %r12
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L27:
	testq	%r11, %r11
	jle	.L12
	movl	$1, %ebx
	xorl	%eax, %eax
	cmpq	%rdi, %rbx
	sete	%al
	addq	%rax, %r12
	jmp	.L12
.L29:
	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	val
	.type	val, @function
val:
.LFB23:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	testq	%rdi, %rdi
	je	.L1
	movabsq	$7378697629483820647, %rcx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rdi, %rax
	imulq	%rcx
	movq	%rdi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rdi
	addq	%rdi, %r8
	movq	%rdx, %rdi
	testq	%rdx, %rdx
	jne	.L3
.L1:
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	val, .-val
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld %lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	xorl	%r12d, %r12d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r9
	movq	16(%rsp), %r11
	movl	$1, %edi
	movabsq	$7378697629483820647, %r8
	movq	(%rsp), %r10
	leaq	1(%r9), %rsi
	.p2align 4,,10
	.p2align 3
.L8:
	leaq	(%rdi,%r10), %rdx
	movl	$1, %ecx
	movl	$1, %eax
	testq	%r9, %r9
	jle	.L27
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, %rax
	imulq	%rdx, %rcx
	cmpq	%rax, %rsi
	jne	.L9
	cmpq	%r11, %rcx
	jle	.L28
.L12:
	addq	$1, %rdi
	cmpq	$73, %rdi
	jne	.L8
	xorl	%eax, %eax
	movq	%r12, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	testq	%rcx, %rcx
	je	.L12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rcx, %rax
	imulq	%r8
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addq	%rcx, %rbx
	movq	%rdx, %rcx
	testq	%rdx, %rdx
	jne	.L13
	xorl	%eax, %eax
	cmpq	%rdi, %rbx
	sete	%al
	addq	%rax, %r12
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L27:
	testq	%r11, %r11
	jle	.L12
	movl	$1, %ebx
	xorl	%eax, %eax
	cmpq	%rdi, %rbx
	sete	%al
	addq	%rax, %r12
	jmp	.L12
.L29:
	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:
```