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>


int main(void){
  int a,b,c,w,n1=0,n2=0,n3=0,n=0;

  while(1){
    scanf("%d", &a);
    scanf("%d", &b);
    scanf("%d", &c);

    if(a+b<=c||b+c<=a||c+a<=b){
      break;
    }
    n++;

    if(a>b){
      w=a;
      a=b;
      b=w;
    }
    if(b>c){
      w=b;
      b=c;
      c=w;
    }

    if(b*b+a*a-c*c>0){
      n1++;
    }
    else if(b*b+a*a-c*c<0){
      n2++;
    }
    else{
      n3++;
    }
  }

  printf("%d %d %d %d\n",n,n3,n1,n2);
  return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d %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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -16(%rbp)
.L8:
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%eax, %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L2
	movl	-36(%rbp), %edx
	movl	-32(%rbp), %eax
	addl	%eax, %edx
	movl	-40(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L2
	movl	-32(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%eax, %edx
	movl	-36(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L2
	addl	$1, -16(%rbp)
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L3
	movl	-40(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, -40(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -36(%rbp)
.L3:
	movl	-36(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	-36(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -36(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -32(%rbp)
.L4:
	movl	-36(%rbp), %edx
	movl	-36(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-40(%rbp), %edx
	movl	-40(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %edx
	movl	-32(%rbp), %eax
	imull	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	testl	%eax, %eax
	jle	.L5
	addl	$1, -28(%rbp)
	jmp	.L8
.L5:
	movl	-36(%rbp), %edx
	movl	-36(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-40(%rbp), %edx
	movl	-40(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %edx
	movl	-32(%rbp), %eax
	imull	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	testl	%eax, %eax
	jns	.L7
	addl	$1, -24(%rbp)
	jmp	.L8
.L7:
	addl	$1, -20(%rbp)
	jmp	.L8
.L2:
	movl	-24(%rbp), %esi
	movl	-28(%rbp), %ecx
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	movl	%esi, %r8d
	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	.L10
	call	__stack_chk_fail@PLT
.L10:
	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"
.LC1:
	.string	"%d %d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %r15
	leaq	32(%rsp), %r14
	movl	$0, 8(%rsp)
	movl	$0, 12(%rsp)
	leaq	36(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	movl	32(%rsp), %eax
	movl	36(%rsp), %edx
	leal	(%rcx,%rax), %esi
	cmpl	%edx, %esi
	jle	.L3
	leal	(%rax,%rdx), %esi
	cmpl	%esi, %ecx
	jge	.L3
	leal	(%rcx,%rdx), %esi
	cmpl	%esi, %eax
	jge	.L3
	addl	$1, %r12d
	cmpl	%eax, %ecx
	jle	.L4
	movl	%eax, %esi
	movl	%eax, 28(%rsp)
	movl	%ecx, %eax
	movl	%ecx, 32(%rsp)
	movl	%esi, %ecx
.L4:
	cmpl	%eax, %edx
	jge	.L5
	movl	%eax, %esi
	movl	%edx, 32(%rsp)
	movl	%eax, 36(%rsp)
	movl	%edx, %eax
	movl	%esi, %edx
.L5:
	imull	%eax, %eax
	imull	%ecx, %ecx
	imull	%edx, %edx
	addl	%ecx, %eax
	subl	%edx, %eax
	testl	%eax, %eax
	jle	.L6
	addl	$1, %ebp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	je	.L8
	addl	$1, 12(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, 8(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movl	12(%rsp), %r9d
	movl	8(%rsp), %ecx
	xorl	%eax, %eax
	movl	%ebp, %r8d
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$56, %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
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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"
.LC1:
	.string	"%d %d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %r15
	leaq	32(%rsp), %r14
	movl	$0, 8(%rsp)
	movl	$0, 12(%rsp)
	leaq	36(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	movl	32(%rsp), %eax
	movl	36(%rsp), %edx
	leal	(%rcx,%rax), %esi
	cmpl	%edx, %esi
	jle	.L3
	leal	(%rax,%rdx), %esi
	cmpl	%esi, %ecx
	jge	.L3
	leal	(%rcx,%rdx), %esi
	cmpl	%esi, %eax
	jge	.L3
	addl	$1, %r12d
	cmpl	%eax, %ecx
	jle	.L4
	movl	%eax, %esi
	movl	%eax, 28(%rsp)
	movl	%ecx, %eax
	movl	%ecx, 32(%rsp)
	movl	%esi, %ecx
.L4:
	cmpl	%eax, %edx
	jge	.L5
	movl	%eax, %esi
	movl	%edx, 32(%rsp)
	movl	%eax, 36(%rsp)
	movl	%edx, %eax
	movl	%esi, %edx
.L5:
	imull	%eax, %eax
	imull	%ecx, %ecx
	imull	%edx, %edx
	addl	%ecx, %eax
	subl	%edx, %eax
	testl	%eax, %eax
	jle	.L6
	addl	$1, %ebp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	je	.L8
	addl	$1, 12(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, 8(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movl	12(%rsp), %r9d
	movl	8(%rsp), %ecx
	xorl	%eax, %eax
	movl	%ebp, %r8d
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$56, %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
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>


int main(void){
  int a,b,c,w,n1=0,n2=0,n3=0,n=0;

  while(1){
    scanf("%d", &a);
    scanf("%d", &b);
    scanf("%d", &c);

    if(a+b<=c||b+c<=a||c+a<=b){
      break;
    }
    n++;

    if(a>b){
      w=a;
      a=b;
      b=w;
    }
    if(b>c){
      w=b;
      b=c;
      c=w;
    }

    if(b*b+a*a-c*c>0){
      n1++;
    }
    else if(b*b+a*a-c*c<0){
      n2++;
    }
    else{
      n3++;
    }
  }

  printf("%d %d %d %d\n",n,n3,n1,n2);
  return 0;
}


3 4 5
2 1 2
6 3 4
1 1 1
1 2 3

4 1 2 1

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>


int main(void){
  int a,b,c,w,n1=0,n2=0,n3=0,n=0;

  while(1){
    scanf("%d", &a);
    scanf("%d", &b);
    scanf("%d", &c);

    if(a+b<=c||b+c<=a||c+a<=b){
      break;
    }
    n++;

    if(a>b){
      w=a;
      a=b;
      b=w;
    }
    if(b>c){
      w=b;
      b=c;
      c=w;
    }

    if(b*b+a*a-c*c>0){
      n1++;
    }
    else if(b*b+a*a-c*c<0){
      n2++;
    }
    else{
      n3++;
    }
  }

  printf("%d %d %d %d\n",n,n3,n1,n2);
  return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d %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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -16(%rbp)
.L8:
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%eax, %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L2
	movl	-36(%rbp), %edx
	movl	-32(%rbp), %eax
	addl	%eax, %edx
	movl	-40(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L2
	movl	-32(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%eax, %edx
	movl	-36(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L2
	addl	$1, -16(%rbp)
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L3
	movl	-40(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, -40(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -36(%rbp)
.L3:
	movl	-36(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	-36(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -36(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -32(%rbp)
.L4:
	movl	-36(%rbp), %edx
	movl	-36(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-40(%rbp), %edx
	movl	-40(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %edx
	movl	-32(%rbp), %eax
	imull	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	testl	%eax, %eax
	jle	.L5
	addl	$1, -28(%rbp)
	jmp	.L8
.L5:
	movl	-36(%rbp), %edx
	movl	-36(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-40(%rbp), %edx
	movl	-40(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %edx
	movl	-32(%rbp), %eax
	imull	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	testl	%eax, %eax
	jns	.L7
	addl	$1, -24(%rbp)
	jmp	.L8
.L7:
	addl	$1, -20(%rbp)
	jmp	.L8
.L2:
	movl	-24(%rbp), %esi
	movl	-28(%rbp), %ecx
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	movl	%esi, %r8d
	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	.L10
	call	__stack_chk_fail@PLT
.L10:
	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"
.LC1:
	.string	"%d %d %d %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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -16(%rbp)
.L8:
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%eax, %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L2
	movl	-36(%rbp), %edx
	movl	-32(%rbp), %eax
	addl	%eax, %edx
	movl	-40(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L2
	movl	-32(%rbp), %edx
	movl	-40(%rbp), %eax
	addl	%eax, %edx
	movl	-36(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L2
	addl	$1, -16(%rbp)
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L3
	movl	-40(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, -40(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -36(%rbp)
.L3:
	movl	-36(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	-36(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -36(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -32(%rbp)
.L4:
	movl	-36(%rbp), %edx
	movl	-36(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-40(%rbp), %edx
	movl	-40(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %edx
	movl	-32(%rbp), %eax
	imull	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	testl	%eax, %eax
	jle	.L5
	addl	$1, -28(%rbp)
	jmp	.L8
.L5:
	movl	-36(%rbp), %edx
	movl	-36(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-40(%rbp), %edx
	movl	-40(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-32(%rbp), %edx
	movl	-32(%rbp), %eax
	imull	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	testl	%eax, %eax
	jns	.L7
	addl	$1, -24(%rbp)
	jmp	.L8
.L7:
	addl	$1, -20(%rbp)
	jmp	.L8
.L2:
	movl	-24(%rbp), %esi
	movl	-28(%rbp), %ecx
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	movl	%esi, %r8d
	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	.L10
	call	__stack_chk_fail@PLT
.L10:
	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:
