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 <ctype.h>

#define N 128
#define UL 10000
#define LL -10000
#define OF(X) \
  !!( (X).re > UL || (X).re < LL \
   || (X).im > UL || (X).im < LL )

struct Complex
{
  int re;
  int im;
  int of;
};
typedef struct Complex Complex;

static const char *e;

static Complex
add (
  Complex a,
  Complex b
  )
{
  Complex res = { 0 };

  if ( a.of ) return ( a );
  if ( b.of ) return ( b );

  res.re = a.re + b.re;
  res.im = a.im + b.im;
  res.of = OF( res );

  return ( res );
}

static Complex
subtract (
  Complex a,
  Complex b
  )
{
  Complex res = { 0 };

  if ( a.of ) return ( a );
  if ( b.of ) return ( b );

  res.re = a.re - b.re;
  res.im = a.im - b.im;
  res.of = OF( res );

  return ( res );
}

static Complex
multiply (
  Complex a,
  Complex b
  )
{
  Complex res = { 0 };

  if ( a.of ) return ( a );
  if ( b.of ) return ( b );

  res.re = a.re * b.re - a.im * b.im;
  res.im = a.re * b.im + a.im * b.re;
  res.of = OF( res );

  return ( res );
}

static Complex
expression (
  void
  );

static Complex
term (
  void
  )
{
  static const Complex ie = { 0, 1, 0 };
  Complex res = { 0, 0, 0 };

  if ( isdigit ( *e ) )
  {
    while ( isdigit ( *e ) )
    {
      res.re = res.re * 10 + ( *e - '0' );
      ++e;
      res.of = OF( res );
      if ( res.of ) break ;
    }
  }
  else if ( *e == 'i' )
  {
    ++e;
    res = ie;
  }
  else if ( *e == '-' )
  {
    ++e;
    res = term ( );
    res.re = -res.re;
    res.im = -res.im;
  }
  else if ( *e == '(' )
  {
    ++e;
    res = expression ( );
    ++e;
  }

  return ( res );
}

static Complex
factor (
  void
  )
{
  Complex res = term ( );

  for ( ; ; )
  {
    switch ( *e )
    {
      case '*':
        ++e;
        res = multiply ( res, term ( ) );
        break ;
      default:
        return ( res );
    }

    if ( res.of ) return ( res );
  }
}

static Complex
expression (
  void
  )
{
  Complex res = factor ( );

  for ( ; ; )
  {
    switch ( *e )
    {
      case '+':
        ++e;
        res = add ( res, factor ( ) );
        break ;
      case '-':
        ++e;
        res = subtract ( res, factor ( ) );
        break ;
      default:
        return ( res );
    }

    if ( res.of ) return ( res );
  }
}

/** Application main entry point. */
int
main (
  int     argc,
  char  * argv[ ]
  )
{
  char s[ N ];

  while ( fgets ( s, sizeof ( s ), stdin ) != NULL )
  {
    Complex res;

    e = s;
    res = expression ( );

    if ( res.of )
    {
      puts ( "overflow" );
    }
    else if ( res.re == 0 && res.im == 0 )
    {
      puts ( "0" );
    }
    else
    {
      if ( res.re )
      {
        printf ( "%d", res.re );
      }
      if ( res.im )
      {
        if ( res.re && res.im >= 0 ) putchar ( '+' );
        printf ( "%di", res.im );
      }
      puts ( "" );
    }

  }

  return ( 0 );
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.local	e
	.comm	e,8,8
	.type	add, @function
add:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdx, %rax
	movq	%rcx, %rdx
	movq	%rdi, -48(%rbp)
	movl	%esi, -40(%rbp)
	movq	%rax, -64(%rbp)
	movl	-56(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -56(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -16(%rbp)
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	.L2
	movq	-48(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L8
.L2:
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	je	.L4
	movq	-64(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L8
.L4:
	movl	-48(%rbp), %edx
	movl	-64(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-44(%rbp), %edx
	movl	-60(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -20(%rbp)
	movl	-24(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L5
	movl	-24(%rbp), %eax
	cmpl	$-10000, %eax
	jl	.L5
	movl	-20(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L5
	movl	-20(%rbp), %eax
	cmpl	$-10000, %eax
	jge	.L6
.L5:
	movl	$1, %eax
	jmp	.L7
.L6:
	movl	$0, %eax
.L7:
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -4(%rbp)
.L8:
	movq	-12(%rbp), %rax
	movl	-4(%rbp), %ecx
	movq	%rcx, %rdx
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	add, .-add
	.type	subtract, @function
subtract:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdx, %rax
	movq	%rcx, %rdx
	movq	%rdi, -48(%rbp)
	movl	%esi, -40(%rbp)
	movq	%rax, -64(%rbp)
	movl	-56(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -56(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -16(%rbp)
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	.L10
	movq	-48(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L16
.L10:
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	je	.L12
	movq	-64(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L16
.L12:
	movl	-48(%rbp), %eax
	movl	-64(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-44(%rbp), %eax
	movl	-60(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -20(%rbp)
	movl	-24(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L13
	movl	-24(%rbp), %eax
	cmpl	$-10000, %eax
	jl	.L13
	movl	-20(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L13
	movl	-20(%rbp), %eax
	cmpl	$-10000, %eax
	jge	.L14
.L13:
	movl	$1, %eax
	jmp	.L15
.L14:
	movl	$0, %eax
.L15:
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -4(%rbp)
.L16:
	movq	-12(%rbp), %rax
	movl	-4(%rbp), %ecx
	movq	%rcx, %rdx
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	subtract, .-subtract
	.type	multiply, @function
multiply:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdx, %rax
	movq	%rcx, %rdx
	movq	%rdi, -48(%rbp)
	movl	%esi, -40(%rbp)
	movq	%rax, -64(%rbp)
	movl	-56(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -56(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -16(%rbp)
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	.L18
	movq	-48(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L24
.L18:
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	je	.L20
	movq	-64(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L24
.L20:
	movl	-48(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	movl	-44(%rbp), %ecx
	movl	-60(%rbp), %edx
	imull	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-48(%rbp), %edx
	movl	-60(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-44(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -20(%rbp)
	movl	-24(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L21
	movl	-24(%rbp), %eax
	cmpl	$-10000, %eax
	jl	.L21
	movl	-20(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L21
	movl	-20(%rbp), %eax
	cmpl	$-10000, %eax
	jge	.L22
.L21:
	movl	$1, %eax
	jmp	.L23
.L22:
	movl	$0, %eax
.L23:
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -4(%rbp)
.L24:
	movq	-12(%rbp), %rax
	movl	-4(%rbp), %ecx
	movq	%rcx, %rdx
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	multiply, .-multiply
	.type	term, @function
term:
.LFB3:
	.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
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -16(%rbp)
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	je	.L26
	jmp	.L27
.L32:
	movl	-24(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	movl	-24(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L28
	movl	-24(%rbp), %eax
	cmpl	$-10000, %eax
	jl	.L28
	movl	-20(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L28
	movl	-20(%rbp), %eax
	cmpl	$-10000, %eax
	jge	.L29
.L28:
	movl	$1, %eax
	jmp	.L30
.L29:
	movl	$0, %eax
.L30:
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jne	.L37
.L27:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	jne	.L32
	jmp	.L33
.L26:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$105, %al
	jne	.L34
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	movl	$0, -24(%rbp)
	movl	$1, -20(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L33
.L34:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$45, %al
	jne	.L35
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	call	term
	movq	%rax, -24(%rbp)
	movl	-16(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -16(%rbp)
	movl	-24(%rbp), %eax
	negl	%eax
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	negl	%eax
	movl	%eax, -20(%rbp)
	jmp	.L33
.L35:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$40, %al
	jne	.L33
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	call	expression
	movq	%rax, -24(%rbp)
	movl	-16(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -16(%rbp)
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	jmp	.L33
.L37:
	nop
.L33:
	movq	-24(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -4(%rbp)
	movq	-12(%rbp), %rax
	movl	-4(%rbp), %ecx
	movq	%rcx, %rdx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	term, .-term
	.type	factor, @function
factor:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	call	term
	movq	%rax, -36(%rbp)
	movl	-28(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -28(%rbp)
.L43:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	cmpl	$42, %eax
	jne	.L39
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	call	term
	movq	%rax, -24(%rbp)
	movl	-16(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movl	-16(%rbp), %ecx
	movq	%rcx, %rdx
	movq	-36(%rbp), %rdi
	movl	-28(%rbp), %esi
	movq	%rdx, %rcx
	movq	%rax, %rdx
	call	multiply
	movq	%rax, -36(%rbp)
	movl	-28(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -28(%rbp)
	nop
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	je	.L43
	jmp	.L45
.L39:
	movq	-36(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L44
.L45:
	movq	-36(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
.L44:
	movq	-12(%rbp), %rax
	movl	-4(%rbp), %ecx
	movq	%rcx, %rdx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	factor, .-factor
	.type	expression, @function
expression:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	call	factor
	movq	%rax, -48(%rbp)
	movl	-40(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -40(%rbp)
.L53:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	cmpl	$43, %eax
	je	.L47
	cmpl	$45, %eax
	je	.L48
	jmp	.L55
.L47:
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	call	factor
	movq	%rax, -36(%rbp)
	movl	-28(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -28(%rbp)
	movq	-36(%rbp), %rax
	movl	-28(%rbp), %ecx
	movq	%rcx, %rdx
	movq	-48(%rbp), %rdi
	movl	-40(%rbp), %esi
	movq	%rdx, %rcx
	movq	%rax, %rdx
	call	add
	movq	%rax, -48(%rbp)
	movl	-40(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -40(%rbp)
	jmp	.L50
.L48:
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	call	factor
	movq	%rax, -24(%rbp)
	movl	-16(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movl	-16(%rbp), %ecx
	movq	%rcx, %rdx
	movq	-48(%rbp), %rdi
	movl	-40(%rbp), %esi
	movq	%rdx, %rcx
	movq	%rax, %rdx
	call	subtract
	movq	%rax, -48(%rbp)
	movl	-40(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -40(%rbp)
	jmp	.L50
.L55:
	movq	-48(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L54
.L50:
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	.L53
	movq	-48(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -4(%rbp)
.L54:
	movq	-12(%rbp), %rax
	movl	-4(%rbp), %ecx
	movq	%rcx, %rdx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	expression, .-expression
	.section	.rodata
.LC0:
	.string	"overflow"
.LC1:
	.string	"0"
.LC2:
	.string	"%d"
.LC3:
	.string	"%di"
.LC4:
	.string	""
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$176, %rsp
	movl	%edi, -164(%rbp)
	movq	%rsi, -176(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L57
.L64:
	leaq	-144(%rbp), %rax
	movq	%rax, e(%rip)
	call	expression
	movq	%rax, -156(%rbp)
	movl	-148(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -148(%rbp)
	movl	-148(%rbp), %eax
	testl	%eax, %eax
	je	.L58
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L57
.L58:
	movl	-156(%rbp), %eax
	testl	%eax, %eax
	jne	.L60
	movl	-152(%rbp), %eax
	testl	%eax, %eax
	jne	.L60
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L57
.L60:
	movl	-156(%rbp), %eax
	testl	%eax, %eax
	je	.L61
	movl	-156(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L61:
	movl	-152(%rbp), %eax
	testl	%eax, %eax
	je	.L62
	movl	-156(%rbp), %eax
	testl	%eax, %eax
	je	.L63
	movl	-152(%rbp), %eax
	testl	%eax, %eax
	js	.L63
	movl	$43, %edi
	call	putchar@PLT
.L63:
	movl	-152(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L62:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L57:
	movq	stdin(%rip), %rdx
	leaq	-144(%rbp), %rax
	movl	$128, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	jne	.L64
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L66
	call	__stack_chk_fail@PLT
.L66:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	ie.0, @object
	.size	ie.0, 12
ie.0:
	.long	0
	.long	1
	.long	0
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.type	term, @function
term:
.LFB28:
	.cfi_startproc
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	call	__ctype_b_loc@PLT
	movq	e(%rip), %rcx
	movq	(%rax), %rdi
	movsbq	(%rcx), %rax
	movq	%rax, %rdx
	testb	$8, 1(%rdi,%rax,2)
	je	.L2
	addq	$1, %rcx
	xorl	%eax, %eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	movsbl	(%rcx), %edx
	addq	$1, %rcx
	movsbq	%dl, %rsi
	testb	$8, 1(%rdi,%rsi,2)
	je	.L12
.L5:
	leal	(%rax,%rax,4), %eax
	movq	%rcx, %r8
	leal	-48(%rdx,%rax,2), %eax
	leal	10000(%rax), %edx
	cmpl	$20000, %edx
	jbe	.L3
	movq	%rcx, e(%rip)
	movl	$1, %edx
	xorl	%ecx, %ecx
.L4:
	movd	%eax, %xmm0
	movd	%ecx, %xmm1
	movl	%edx, %edx
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmpb	$105, %al
	je	.L13
	cmpb	$45, %al
	je	.L14
	cmpb	$40, %al
	je	.L15
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r8, e(%rip)
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	addq	$1, %rcx
	xorl	%edx, %edx
	xorl	%eax, %eax
	movq	%rcx, e(%rip)
	movl	$1, %ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$1, %rcx
	movq	%rcx, e(%rip)
	call	term
	movq	%rax, %rdi
	negl	%eax
	shrq	$32, %rdi
	movq	%rdi, %rcx
	negl	%ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	addq	$1, %rcx
	movq	%rcx, e(%rip)
	call	expression
	addq	$1, e(%rip)
	movq	%rax, %rcx
	shrq	$32, %rcx
	jmp	.L4
	.cfi_endproc
.LFE28:
	.size	term, .-term
	.p2align 4
	.type	factor, @function
factor:
.LFB29:
	.cfi_startproc
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	call	term
	movq	%rax, %rbx
	movq	%rax, 16(%rsp)
	movq	%rdx, %rbp
	movq	%rax, %r12
	movl	%edx, 24(%rsp)
	movl	%eax, %r13d
	shrq	$32, %rbx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L27:
	testl	%edx, %edx
	jne	.L22
	movl	%r13d, %ecx
	imull	%ebx, %esi
	imull	%eax, %ecx
	movl	%ebx, %eax
	imull	%edi, %eax
	imull	%r13d, %edi
	subl	%eax, %ecx
	leal	(%rdi,%rsi), %ebx
	movd	%ecx, %xmm0
	leal	10000(%rcx), %eax
	movd	%ebx, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, %r12
	cmpl	$20000, %eax
	ja	.L24
	leal	10000(%rbx), %eax
	cmpl	$20000, %eax
	ja	.L24
	movl	%ecx, %r13d
.L19:
	movq	e(%rip), %rax
	cmpb	$42, (%rax)
	jne	.L17
	addq	$1, %rax
	movq	%rax, e(%rip)
	call	term
	movq	%rax, %rdi
	movq	%rax, 32(%rsp)
	movl	%eax, %esi
	movl	%edx, 40(%rsp)
	shrq	$32, %rdi
	testl	%ebp, %ebp
	je	.L27
.L17:
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%r12, %rax
	movl	%ebp, %edx
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%rax, %r12
	movl	%edx, %ebp
	popq	%rbx
	.cfi_def_cfa_offset 32
	movq	%r12, %rax
	movl	%ebp, %edx
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	movl	$1, %ebp
	jmp	.L17
	.cfi_endproc
.LFE29:
	.size	factor, .-factor
	.p2align 4
	.type	expression, @function
expression:
.LFB30:
	.cfi_startproc
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	subq	$96, %rsp
	.cfi_def_cfa_offset 112
	call	factor
	movq	%rax, 32(%rsp)
	movq	%rdx, %rbx
	movq	%rax, %xmm0
	movl	%edx, 40(%rsp)
.L35:
	movq	e(%rip), %rax
	movzbl	(%rax), %edx
	cmpb	$43, %dl
	je	.L29
	cmpb	$45, %dl
	je	.L30
.L31:
	addq	$96, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	movl	%ebx, %edx
	movq	%xmm0, %rax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	addq	$1, %rax
	movq	%xmm0, 8(%rsp)
	movq	%rax, e(%rip)
	call	factor
	movq	8(%rsp), %xmm0
	movq	%rax, %xmm2
	movq	%rax, 48(%rsp)
	movdqa	%xmm0, %xmm1
	movl	%edx, 56(%rsp)
	paddd	%xmm2, %xmm1
	pshufd	$0xe5, %xmm1, %xmm3
	movd	%xmm1, %ecx
	movd	%xmm3, %eax
	testl	%ebx, %ebx
	jne	.L31
	testl	%edx, %edx
	jne	.L37
.L44:
	addl	$10000, %ecx
	movdqa	%xmm1, %xmm0
	cmpl	$20000, %ecx
	seta	%bl
	addl	$10000, %eax
	cmpl	$20000, %eax
	seta	%al
	orl	%eax, %ebx
	movzbl	%bl, %ebx
.L33:
	testl	%ebx, %ebx
	je	.L35
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L30:
	addq	$1, %rax
	movq	%xmm0, 8(%rsp)
	movq	%rax, e(%rip)
	call	factor
	movq	8(%rsp), %xmm0
	movq	%rax, %xmm2
	movq	%rax, 64(%rsp)
	movdqa	%xmm0, %xmm1
	movl	%edx, 72(%rsp)
	psubd	%xmm2, %xmm1
	pshufd	$0xe5, %xmm1, %xmm4
	movd	%xmm1, %ecx
	movd	%xmm4, %eax
	testl	%ebx, %ebx
	jne	.L31
	testl	%edx, %edx
	je	.L44
.L37:
	movdqa	%xmm2, %xmm0
	movl	%edx, %ebx
	jmp	.L33
	.cfi_endproc
.LFE30:
	.size	expression, .-expression
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"overflow"
.LC1:
	.string	"0"
.LC2:
	.string	"%d"
.LC3:
	.string	"%di"
.LC4:
	.string	""
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB31:
	.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
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC2(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC4(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$168, %rsp
	.cfi_def_cfa_offset 224
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L46:
	movq	stdin(%rip), %rdx
	movl	$128, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L60
	movq	%rbx, e(%rip)
	call	expression
	movl	%eax, %r8d
	shrq	$32, %rax
	movq	%rax, %r15
	testl	%edx, %edx
	jne	.L61
	testl	%r8d, %r8d
	je	.L62
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	testl	%r15d, %r15d
	je	.L52
	js	.L51
	movq	stdout(%rip), %rsi
	movl	$43, %edi
	call	putc@PLT
	.p2align 4,,10
	.p2align 3
.L51:
	movl	%r15d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L52:
	movq	%rbp, %rdi
	call	puts@PLT
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L62:
	testl	%eax, %eax
	jne	.L51
	movq	%r14, %rdi
	call	puts@PLT
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L61:
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L60:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L63
	addq	$168, %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
.L63:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE31:
	.size	main, .-main
	.local	e
	.comm	e,8,8
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.type	term, @function
term:
.LFB28:
	.cfi_startproc
	subq	$56, %rsp
	.cfi_def_cfa_offset 64
	call	__ctype_b_loc@PLT
	movq	e(%rip), %rcx
	movq	(%rax), %rdi
	movsbq	(%rcx), %rax
	movq	%rax, %rdx
	testb	$8, 1(%rdi,%rax,2)
	je	.L2
	addq	$1, %rcx
	xorl	%eax, %eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	movsbl	(%rcx), %edx
	addq	$1, %rcx
	movsbq	%dl, %rsi
	testb	$8, 1(%rdi,%rsi,2)
	je	.L12
.L5:
	leal	(%rax,%rax,4), %eax
	movq	%rcx, %r8
	leal	-48(%rdx,%rax,2), %eax
	leal	10000(%rax), %edx
	cmpl	$20000, %edx
	jbe	.L3
	movq	%rcx, e(%rip)
	movl	$1, %edx
	xorl	%ecx, %ecx
.L4:
	movd	%eax, %xmm0
	movd	%ecx, %xmm1
	movl	%edx, %edx
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmpb	$105, %al
	je	.L13
	cmpb	$45, %al
	je	.L14
	cmpb	$40, %al
	je	.L15
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r8, e(%rip)
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	addq	$1, %rcx
	xorl	%edx, %edx
	xorl	%eax, %eax
	movq	%rcx, e(%rip)
	movl	$1, %ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$1, %rcx
	movq	%rcx, e(%rip)
	call	term
	movq	%rax, %rdi
	negl	%eax
	shrq	$32, %rdi
	movq	%rdi, %rcx
	negl	%ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	addq	$1, %rcx
	movq	%rcx, e(%rip)
	call	expression
	addq	$1, e(%rip)
	movq	%rax, %rcx
	shrq	$32, %rcx
	jmp	.L4
	.cfi_endproc
.LFE28:
	.size	term, .-term
	.p2align 4
	.type	factor, @function
factor:
.LFB29:
	.cfi_startproc
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	call	term
	movq	%rax, %rbx
	movq	%rax, 16(%rsp)
	movq	%rdx, %rbp
	movq	%rax, %r12
	movl	%edx, 24(%rsp)
	movl	%eax, %r13d
	shrq	$32, %rbx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L27:
	testl	%edx, %edx
	jne	.L22
	movl	%r13d, %ecx
	imull	%ebx, %esi
	imull	%eax, %ecx
	movl	%ebx, %eax
	imull	%edi, %eax
	imull	%r13d, %edi
	subl	%eax, %ecx
	leal	(%rdi,%rsi), %ebx
	movd	%ecx, %xmm0
	leal	10000(%rcx), %eax
	movd	%ebx, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, %r12
	cmpl	$20000, %eax
	ja	.L24
	leal	10000(%rbx), %eax
	cmpl	$20000, %eax
	ja	.L24
	movl	%ecx, %r13d
.L19:
	movq	e(%rip), %rax
	cmpb	$42, (%rax)
	jne	.L17
	addq	$1, %rax
	movq	%rax, e(%rip)
	call	term
	movq	%rax, %rdi
	movq	%rax, 32(%rsp)
	movl	%eax, %esi
	movl	%edx, 40(%rsp)
	shrq	$32, %rdi
	testl	%ebp, %ebp
	je	.L27
.L17:
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%r12, %rax
	movl	%ebp, %edx
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%rax, %r12
	movl	%edx, %ebp
	popq	%rbx
	.cfi_def_cfa_offset 32
	movq	%r12, %rax
	movl	%ebp, %edx
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	movl	$1, %ebp
	jmp	.L17
	.cfi_endproc
.LFE29:
	.size	factor, .-factor
	.p2align 4
	.type	expression, @function
expression:
.LFB30:
	.cfi_startproc
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	subq	$96, %rsp
	.cfi_def_cfa_offset 112
	call	factor
	movq	%rax, 32(%rsp)
	movq	%rdx, %rbx
	movq	%rax, %xmm0
	movl	%edx, 40(%rsp)
.L35:
	movq	e(%rip), %rax
	movzbl	(%rax), %edx
	cmpb	$43, %dl
	je	.L29
	cmpb	$45, %dl
	je	.L30
.L31:
	addq	$96, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	movl	%ebx, %edx
	movq	%xmm0, %rax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	addq	$1, %rax
	movq	%xmm0, 8(%rsp)
	movq	%rax, e(%rip)
	call	factor
	movq	8(%rsp), %xmm0
	movq	%rax, %xmm2
	movq	%rax, 48(%rsp)
	movdqa	%xmm0, %xmm1
	movl	%edx, 56(%rsp)
	paddd	%xmm2, %xmm1
	pshufd	$0xe5, %xmm1, %xmm3
	movd	%xmm1, %ecx
	movd	%xmm3, %eax
	testl	%ebx, %ebx
	jne	.L31
	testl	%edx, %edx
	jne	.L37
.L44:
	addl	$10000, %ecx
	movdqa	%xmm1, %xmm0
	cmpl	$20000, %ecx
	seta	%bl
	addl	$10000, %eax
	cmpl	$20000, %eax
	seta	%al
	orl	%eax, %ebx
	movzbl	%bl, %ebx
.L33:
	testl	%ebx, %ebx
	je	.L35
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L30:
	addq	$1, %rax
	movq	%xmm0, 8(%rsp)
	movq	%rax, e(%rip)
	call	factor
	movq	8(%rsp), %xmm0
	movq	%rax, %xmm2
	movq	%rax, 64(%rsp)
	movdqa	%xmm0, %xmm1
	movl	%edx, 72(%rsp)
	psubd	%xmm2, %xmm1
	pshufd	$0xe5, %xmm1, %xmm4
	movd	%xmm1, %ecx
	movd	%xmm4, %eax
	testl	%ebx, %ebx
	jne	.L31
	testl	%edx, %edx
	je	.L44
.L37:
	movdqa	%xmm2, %xmm0
	movl	%edx, %ebx
	jmp	.L33
	.cfi_endproc
.LFE30:
	.size	expression, .-expression
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"overflow"
.LC1:
	.string	"0"
.LC2:
	.string	"%d"
.LC3:
	.string	"%di"
.LC4:
	.string	""
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB31:
	.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
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC2(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC4(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$168, %rsp
	.cfi_def_cfa_offset 224
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L46:
	movq	stdin(%rip), %rdx
	movl	$128, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L60
	movq	%rbx, e(%rip)
	call	expression
	movl	%eax, %r8d
	shrq	$32, %rax
	movq	%rax, %r15
	testl	%edx, %edx
	jne	.L61
	testl	%r8d, %r8d
	je	.L62
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	testl	%r15d, %r15d
	je	.L52
	js	.L51
	movq	stdout(%rip), %rsi
	movl	$43, %edi
	call	putc@PLT
	.p2align 4,,10
	.p2align 3
.L51:
	movl	%r15d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L52:
	movq	%rbp, %rdi
	call	puts@PLT
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L62:
	testl	%eax, %eax
	jne	.L51
	movq	%r14, %rdi
	call	puts@PLT
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L61:
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L60:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L63
	addq	$168, %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
.L63:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE31:
	.size	main, .-main
	.local	e
	.comm	e,8,8
	.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 <ctype.h>

#define N 128
#define UL 10000
#define LL -10000
#define OF(X) \
  !!( (X).re > UL || (X).re < LL \
   || (X).im > UL || (X).im < LL )

struct Complex
{
  int re;
  int im;
  int of;
};
typedef struct Complex Complex;

static const char *e;

static Complex
add (
  Complex a,
  Complex b
  )
{
  Complex res = { 0 };

  if ( a.of ) return ( a );
  if ( b.of ) return ( b );

  res.re = a.re + b.re;
  res.im = a.im + b.im;
  res.of = OF( res );

  return ( res );
}

static Complex
subtract (
  Complex a,
  Complex b
  )
{
  Complex res = { 0 };

  if ( a.of ) return ( a );
  if ( b.of ) return ( b );

  res.re = a.re - b.re;
  res.im = a.im - b.im;
  res.of = OF( res );

  return ( res );
}

static Complex
multiply (
  Complex a,
  Complex b
  )
{
  Complex res = { 0 };

  if ( a.of ) return ( a );
  if ( b.of ) return ( b );

  res.re = a.re * b.re - a.im * b.im;
  res.im = a.re * b.im + a.im * b.re;
  res.of = OF( res );

  return ( res );
}

static Complex
expression (
  void
  );

static Complex
term (
  void
  )
{
  static const Complex ie = { 0, 1, 0 };
  Complex res = { 0, 0, 0 };

  if ( isdigit ( *e ) )
  {
    while ( isdigit ( *e ) )
    {
      res.re = res.re * 10 + ( *e - '0' );
      ++e;
      res.of = OF( res );
      if ( res.of ) break ;
    }
  }
  else if ( *e == 'i' )
  {
    ++e;
    res = ie;
  }
  else if ( *e == '-' )
  {
    ++e;
    res = term ( );
    res.re = -res.re;
    res.im = -res.im;
  }
  else if ( *e == '(' )
  {
    ++e;
    res = expression ( );
    ++e;
  }

  return ( res );
}

static Complex
factor (
  void
  )
{
  Complex res = term ( );

  for ( ; ; )
  {
    switch ( *e )
    {
      case '*':
        ++e;
        res = multiply ( res, term ( ) );
        break ;
      default:
        return ( res );
    }

    if ( res.of ) return ( res );
  }
}

static Complex
expression (
  void
  )
{
  Complex res = factor ( );

  for ( ; ; )
  {
    switch ( *e )
    {
      case '+':
        ++e;
        res = add ( res, factor ( ) );
        break ;
      case '-':
        ++e;
        res = subtract ( res, factor ( ) );
        break ;
      default:
        return ( res );
    }

    if ( res.of ) return ( res );
  }
}

/** Application main entry point. */
int
main (
  int     argc,
  char  * argv[ ]
  )
{
  char s[ N ];

  while ( fgets ( s, sizeof ( s ), stdin ) != NULL )
  {
    Complex res;

    e = s;
    res = expression ( );

    if ( res.of )
    {
      puts ( "overflow" );
    }
    else if ( res.re == 0 && res.im == 0 )
    {
      puts ( "0" );
    }
    else
    {
      if ( res.re )
      {
        printf ( "%d", res.re );
      }
      if ( res.im )
      {
        if ( res.re && res.im >= 0 ) putchar ( '+' );
        printf ( "%di", res.im );
      }
      puts ( "" );
    }

  }

  return ( 0 );
}
(1-10*i)+00007+(3+10*i)
3+5*i*(4+10*i)
(102+10*i)*(99+10*i)
2*i+3+9999*i+4
 (1-10*i)+00007+(3+10*i)
3+5*i*(4+10*i)
(102*10*i)*(99+10*i)
2*i+3+9999*i+4
 (1-10*i)+00007+(3+10*i)
3+5*i*(4+10*i)
(102*10*i)*(99+10*i)
2+i+3+9999*i+4
 (1-10*i)+00007+(3+10*i)
3+5*i*(4+11*i)
(102*10*i)*(99+10*i)
2+i+3+9999*i+4
 (1-10*i)+00007+(3+10*i)
3+4*i*(4+10*i)
)i*01+99(*)i*01+201(
2*i+3+9999*i+4
 (1-10+i)+00007+(3+10*i)
3+5*i*(4+10*i)
(102*10*i)*(99+10*i)
2*i+3+9999*i+4
 (1-10*i)+00007+(3+10*i)
3+6*i*(4+11*i)
(102*10*i)*(99+10*i)
2+i+3+9999*i+4
 )i*01+3(+70000+)i*01-1(
3+4*i*(4+10*i)
)i*01+99(*)i*01+201(
2*i+3+9999*i+4
 (1-10*i)+00007+(3+10*i)
3+5*i+(4+10*i)
(102+10*i)*(99+10*i)
4+i*9999*3+i*2
 (1-10*i)+00007+(3+10*i)
3+5*i+(4+10*i)
(102+10*i)*(99+10*i)
4+i)9999*3+i*2

11
-47+20i
9998+2010i
overflow
 11
-47+20i
overflow
overflow
 11
-47+20i
overflow
9+10000i
 11
-52+20i
overflow
9+10000i
 11
-37+16i
0
overflow
 1+11i
-47+20i
overflow
overflow
 11
-63+24i
overflow
9+10000i
 0
-37+16i
0
overflow
 11
7+15i
9998+2010i
overflow
 11
7+15i
9998+2010i
4+1i

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 <ctype.h>

#define N 128
#define UL 10000
#define LL -10000
#define OF(X) \
  !!( (X).re > UL || (X).re < LL \
   || (X).im > UL || (X).im < LL )

struct Complex
{
  int re;
  int im;
  int of;
};
typedef struct Complex Complex;

static const char *e;

static Complex
add (
  Complex a,
  Complex b
  )
{
  Complex res = { 0 };

  if ( a.of ) return ( a );
  if ( b.of ) return ( b );

  res.re = a.re + b.re;
  res.im = a.im + b.im;
  res.of = OF( res );

  return ( res );
}

static Complex
subtract (
  Complex a,
  Complex b
  )
{
  Complex res = { 0 };

  if ( a.of ) return ( a );
  if ( b.of ) return ( b );

  res.re = a.re - b.re;
  res.im = a.im - b.im;
  res.of = OF( res );

  return ( res );
}

static Complex
multiply (
  Complex a,
  Complex b
  )
{
  Complex res = { 0 };

  if ( a.of ) return ( a );
  if ( b.of ) return ( b );

  res.re = a.re * b.re - a.im * b.im;
  res.im = a.re * b.im + a.im * b.re;
  res.of = OF( res );

  return ( res );
}

static Complex
expression (
  void
  );

static Complex
term (
  void
  )
{
  static const Complex ie = { 0, 1, 0 };
  Complex res = { 0, 0, 0 };

  if ( isdigit ( *e ) )
  {
    while ( isdigit ( *e ) )
    {
      res.re = res.re * 10 + ( *e - '0' );
      ++e;
      res.of = OF( res );
      if ( res.of ) break ;
    }
  }
  else if ( *e == 'i' )
  {
    ++e;
    res = ie;
  }
  else if ( *e == '-' )
  {
    ++e;
    res = term ( );
    res.re = -res.re;
    res.im = -res.im;
  }
  else if ( *e == '(' )
  {
    ++e;
    res = expression ( );
    ++e;
  }

  return ( res );
}

static Complex
factor (
  void
  )
{
  Complex res = term ( );

  for ( ; ; )
  {
    switch ( *e )
    {
      case '*':
        ++e;
        res = multiply ( res, term ( ) );
        break ;
      default:
        return ( res );
    }

    if ( res.of ) return ( res );
  }
}

static Complex
expression (
  void
  )
{
  Complex res = factor ( );

  for ( ; ; )
  {
    switch ( *e )
    {
      case '+':
        ++e;
        res = add ( res, factor ( ) );
        break ;
      case '-':
        ++e;
        res = subtract ( res, factor ( ) );
        break ;
      default:
        return ( res );
    }

    if ( res.of ) return ( res );
  }
}

/** Application main entry point. */
int
main (
  int     argc,
  char  * argv[ ]
  )
{
  char s[ N ];

  while ( fgets ( s, sizeof ( s ), stdin ) != NULL )
  {
    Complex res;

    e = s;
    res = expression ( );

    if ( res.of )
    {
      puts ( "overflow" );
    }
    else if ( res.re == 0 && res.im == 0 )
    {
      puts ( "0" );
    }
    else
    {
      if ( res.re )
      {
        printf ( "%d", res.re );
      }
      if ( res.im )
      {
        if ( res.re && res.im >= 0 ) putchar ( '+' );
        printf ( "%di", res.im );
      }
      puts ( "" );
    }

  }

  return ( 0 );
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.local	e
	.comm	e,8,8
	.type	add, @function
add:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdx, %rax
	movq	%rcx, %rdx
	movq	%rdi, -48(%rbp)
	movl	%esi, -40(%rbp)
	movq	%rax, -64(%rbp)
	movl	-56(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -56(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -16(%rbp)
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	.L2
	movq	-48(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L8
.L2:
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	je	.L4
	movq	-64(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L8
.L4:
	movl	-48(%rbp), %edx
	movl	-64(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-44(%rbp), %edx
	movl	-60(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -20(%rbp)
	movl	-24(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L5
	movl	-24(%rbp), %eax
	cmpl	$-10000, %eax
	jl	.L5
	movl	-20(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L5
	movl	-20(%rbp), %eax
	cmpl	$-10000, %eax
	jge	.L6
.L5:
	movl	$1, %eax
	jmp	.L7
.L6:
	movl	$0, %eax
.L7:
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -4(%rbp)
.L8:
	movq	-12(%rbp), %rax
	movl	-4(%rbp), %ecx
	movq	%rcx, %rdx
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	add, .-add
	.type	subtract, @function
subtract:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdx, %rax
	movq	%rcx, %rdx
	movq	%rdi, -48(%rbp)
	movl	%esi, -40(%rbp)
	movq	%rax, -64(%rbp)
	movl	-56(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -56(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -16(%rbp)
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	.L10
	movq	-48(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L16
.L10:
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	je	.L12
	movq	-64(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L16
.L12:
	movl	-48(%rbp), %eax
	movl	-64(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-44(%rbp), %eax
	movl	-60(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -20(%rbp)
	movl	-24(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L13
	movl	-24(%rbp), %eax
	cmpl	$-10000, %eax
	jl	.L13
	movl	-20(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L13
	movl	-20(%rbp), %eax
	cmpl	$-10000, %eax
	jge	.L14
.L13:
	movl	$1, %eax
	jmp	.L15
.L14:
	movl	$0, %eax
.L15:
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -4(%rbp)
.L16:
	movq	-12(%rbp), %rax
	movl	-4(%rbp), %ecx
	movq	%rcx, %rdx
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	subtract, .-subtract
	.type	multiply, @function
multiply:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdx, %rax
	movq	%rcx, %rdx
	movq	%rdi, -48(%rbp)
	movl	%esi, -40(%rbp)
	movq	%rax, -64(%rbp)
	movl	-56(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -56(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -16(%rbp)
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	.L18
	movq	-48(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L24
.L18:
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	je	.L20
	movq	-64(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L24
.L20:
	movl	-48(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	movl	-44(%rbp), %ecx
	movl	-60(%rbp), %edx
	imull	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-48(%rbp), %edx
	movl	-60(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-44(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -20(%rbp)
	movl	-24(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L21
	movl	-24(%rbp), %eax
	cmpl	$-10000, %eax
	jl	.L21
	movl	-20(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L21
	movl	-20(%rbp), %eax
	cmpl	$-10000, %eax
	jge	.L22
.L21:
	movl	$1, %eax
	jmp	.L23
.L22:
	movl	$0, %eax
.L23:
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -4(%rbp)
.L24:
	movq	-12(%rbp), %rax
	movl	-4(%rbp), %ecx
	movq	%rcx, %rdx
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	multiply, .-multiply
	.type	term, @function
term:
.LFB3:
	.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
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -16(%rbp)
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	je	.L26
	jmp	.L27
.L32:
	movl	-24(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	movl	-24(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L28
	movl	-24(%rbp), %eax
	cmpl	$-10000, %eax
	jl	.L28
	movl	-20(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L28
	movl	-20(%rbp), %eax
	cmpl	$-10000, %eax
	jge	.L29
.L28:
	movl	$1, %eax
	jmp	.L30
.L29:
	movl	$0, %eax
.L30:
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jne	.L37
.L27:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	jne	.L32
	jmp	.L33
.L26:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$105, %al
	jne	.L34
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	movl	$0, -24(%rbp)
	movl	$1, -20(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L33
.L34:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$45, %al
	jne	.L35
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	call	term
	movq	%rax, -24(%rbp)
	movl	-16(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -16(%rbp)
	movl	-24(%rbp), %eax
	negl	%eax
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	negl	%eax
	movl	%eax, -20(%rbp)
	jmp	.L33
.L35:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$40, %al
	jne	.L33
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	call	expression
	movq	%rax, -24(%rbp)
	movl	-16(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -16(%rbp)
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	jmp	.L33
.L37:
	nop
.L33:
	movq	-24(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -4(%rbp)
	movq	-12(%rbp), %rax
	movl	-4(%rbp), %ecx
	movq	%rcx, %rdx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	term, .-term
	.type	factor, @function
factor:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	call	term
	movq	%rax, -36(%rbp)
	movl	-28(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -28(%rbp)
.L43:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	cmpl	$42, %eax
	jne	.L39
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	call	term
	movq	%rax, -24(%rbp)
	movl	-16(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movl	-16(%rbp), %ecx
	movq	%rcx, %rdx
	movq	-36(%rbp), %rdi
	movl	-28(%rbp), %esi
	movq	%rdx, %rcx
	movq	%rax, %rdx
	call	multiply
	movq	%rax, -36(%rbp)
	movl	-28(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -28(%rbp)
	nop
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	je	.L43
	jmp	.L45
.L39:
	movq	-36(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L44
.L45:
	movq	-36(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
.L44:
	movq	-12(%rbp), %rax
	movl	-4(%rbp), %ecx
	movq	%rcx, %rdx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	factor, .-factor
	.type	expression, @function
expression:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	call	factor
	movq	%rax, -48(%rbp)
	movl	-40(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -40(%rbp)
.L53:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	cmpl	$43, %eax
	je	.L47
	cmpl	$45, %eax
	je	.L48
	jmp	.L55
.L47:
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	call	factor
	movq	%rax, -36(%rbp)
	movl	-28(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -28(%rbp)
	movq	-36(%rbp), %rax
	movl	-28(%rbp), %ecx
	movq	%rcx, %rdx
	movq	-48(%rbp), %rdi
	movl	-40(%rbp), %esi
	movq	%rdx, %rcx
	movq	%rax, %rdx
	call	add
	movq	%rax, -48(%rbp)
	movl	-40(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -40(%rbp)
	jmp	.L50
.L48:
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	call	factor
	movq	%rax, -24(%rbp)
	movl	-16(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movl	-16(%rbp), %ecx
	movq	%rcx, %rdx
	movq	-48(%rbp), %rdi
	movl	-40(%rbp), %esi
	movq	%rdx, %rcx
	movq	%rax, %rdx
	call	subtract
	movq	%rax, -48(%rbp)
	movl	-40(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -40(%rbp)
	jmp	.L50
.L55:
	movq	-48(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L54
.L50:
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	.L53
	movq	-48(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -4(%rbp)
.L54:
	movq	-12(%rbp), %rax
	movl	-4(%rbp), %ecx
	movq	%rcx, %rdx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	expression, .-expression
	.section	.rodata
.LC0:
	.string	"overflow"
.LC1:
	.string	"0"
.LC2:
	.string	"%d"
.LC3:
	.string	"%di"
.LC4:
	.string	""
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$176, %rsp
	movl	%edi, -164(%rbp)
	movq	%rsi, -176(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L57
.L64:
	leaq	-144(%rbp), %rax
	movq	%rax, e(%rip)
	call	expression
	movq	%rax, -156(%rbp)
	movl	-148(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -148(%rbp)
	movl	-148(%rbp), %eax
	testl	%eax, %eax
	je	.L58
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L57
.L58:
	movl	-156(%rbp), %eax
	testl	%eax, %eax
	jne	.L60
	movl	-152(%rbp), %eax
	testl	%eax, %eax
	jne	.L60
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L57
.L60:
	movl	-156(%rbp), %eax
	testl	%eax, %eax
	je	.L61
	movl	-156(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L61:
	movl	-152(%rbp), %eax
	testl	%eax, %eax
	je	.L62
	movl	-156(%rbp), %eax
	testl	%eax, %eax
	je	.L63
	movl	-152(%rbp), %eax
	testl	%eax, %eax
	js	.L63
	movl	$43, %edi
	call	putchar@PLT
.L63:
	movl	-152(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L62:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L57:
	movq	stdin(%rip), %rdx
	leaq	-144(%rbp), %rax
	movl	$128, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	jne	.L64
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L66
	call	__stack_chk_fail@PLT
.L66:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	ie.0, @object
	.size	ie.0, 12
ie.0:
	.long	0
	.long	1
	.long	0
	.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
	.local	e
	.comm	e,8,8
	.type	add, @function
add:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdx, %rax
	movq	%rcx, %rdx
	movq	%rdi, -48(%rbp)
	movl	%esi, -40(%rbp)
	movq	%rax, -64(%rbp)
	movl	-56(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -56(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -16(%rbp)
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	.L2
	movq	-48(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L8
.L2:
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	je	.L4
	movq	-64(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L8
.L4:
	movl	-48(%rbp), %edx
	movl	-64(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-44(%rbp), %edx
	movl	-60(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -20(%rbp)
	movl	-24(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L5
	movl	-24(%rbp), %eax
	cmpl	$-10000, %eax
	jl	.L5
	movl	-20(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L5
	movl	-20(%rbp), %eax
	cmpl	$-10000, %eax
	jge	.L6
.L5:
	movl	$1, %eax
	jmp	.L7
.L6:
	movl	$0, %eax
.L7:
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -4(%rbp)
.L8:
	movq	-12(%rbp), %rax
	movl	-4(%rbp), %ecx
	movq	%rcx, %rdx
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	add, .-add
	.type	subtract, @function
subtract:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdx, %rax
	movq	%rcx, %rdx
	movq	%rdi, -48(%rbp)
	movl	%esi, -40(%rbp)
	movq	%rax, -64(%rbp)
	movl	-56(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -56(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -16(%rbp)
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	.L10
	movq	-48(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L16
.L10:
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	je	.L12
	movq	-64(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L16
.L12:
	movl	-48(%rbp), %eax
	movl	-64(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-44(%rbp), %eax
	movl	-60(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -20(%rbp)
	movl	-24(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L13
	movl	-24(%rbp), %eax
	cmpl	$-10000, %eax
	jl	.L13
	movl	-20(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L13
	movl	-20(%rbp), %eax
	cmpl	$-10000, %eax
	jge	.L14
.L13:
	movl	$1, %eax
	jmp	.L15
.L14:
	movl	$0, %eax
.L15:
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -4(%rbp)
.L16:
	movq	-12(%rbp), %rax
	movl	-4(%rbp), %ecx
	movq	%rcx, %rdx
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	subtract, .-subtract
	.type	multiply, @function
multiply:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdx, %rax
	movq	%rcx, %rdx
	movq	%rdi, -48(%rbp)
	movl	%esi, -40(%rbp)
	movq	%rax, -64(%rbp)
	movl	-56(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -56(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -16(%rbp)
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	.L18
	movq	-48(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L24
.L18:
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	je	.L20
	movq	-64(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L24
.L20:
	movl	-48(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	movl	-44(%rbp), %ecx
	movl	-60(%rbp), %edx
	imull	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-48(%rbp), %edx
	movl	-60(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-44(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -20(%rbp)
	movl	-24(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L21
	movl	-24(%rbp), %eax
	cmpl	$-10000, %eax
	jl	.L21
	movl	-20(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L21
	movl	-20(%rbp), %eax
	cmpl	$-10000, %eax
	jge	.L22
.L21:
	movl	$1, %eax
	jmp	.L23
.L22:
	movl	$0, %eax
.L23:
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -4(%rbp)
.L24:
	movq	-12(%rbp), %rax
	movl	-4(%rbp), %ecx
	movq	%rcx, %rdx
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	multiply, .-multiply
	.type	term, @function
term:
.LFB3:
	.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
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -16(%rbp)
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	je	.L26
	jmp	.L27
.L32:
	movl	-24(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	movl	-24(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L28
	movl	-24(%rbp), %eax
	cmpl	$-10000, %eax
	jl	.L28
	movl	-20(%rbp), %eax
	cmpl	$10000, %eax
	jg	.L28
	movl	-20(%rbp), %eax
	cmpl	$-10000, %eax
	jge	.L29
.L28:
	movl	$1, %eax
	jmp	.L30
.L29:
	movl	$0, %eax
.L30:
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jne	.L37
.L27:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	jne	.L32
	jmp	.L33
.L26:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$105, %al
	jne	.L34
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	movl	$0, -24(%rbp)
	movl	$1, -20(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L33
.L34:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$45, %al
	jne	.L35
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	call	term
	movq	%rax, -24(%rbp)
	movl	-16(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -16(%rbp)
	movl	-24(%rbp), %eax
	negl	%eax
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	negl	%eax
	movl	%eax, -20(%rbp)
	jmp	.L33
.L35:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$40, %al
	jne	.L33
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	call	expression
	movq	%rax, -24(%rbp)
	movl	-16(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -16(%rbp)
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	jmp	.L33
.L37:
	nop
.L33:
	movq	-24(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -4(%rbp)
	movq	-12(%rbp), %rax
	movl	-4(%rbp), %ecx
	movq	%rcx, %rdx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	term, .-term
	.type	factor, @function
factor:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	call	term
	movq	%rax, -36(%rbp)
	movl	-28(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -28(%rbp)
.L43:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	cmpl	$42, %eax
	jne	.L39
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	call	term
	movq	%rax, -24(%rbp)
	movl	-16(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movl	-16(%rbp), %ecx
	movq	%rcx, %rdx
	movq	-36(%rbp), %rdi
	movl	-28(%rbp), %esi
	movq	%rdx, %rcx
	movq	%rax, %rdx
	call	multiply
	movq	%rax, -36(%rbp)
	movl	-28(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -28(%rbp)
	nop
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	je	.L43
	jmp	.L45
.L39:
	movq	-36(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L44
.L45:
	movq	-36(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
.L44:
	movq	-12(%rbp), %rax
	movl	-4(%rbp), %ecx
	movq	%rcx, %rdx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	factor, .-factor
	.type	expression, @function
expression:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	call	factor
	movq	%rax, -48(%rbp)
	movl	-40(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -40(%rbp)
.L53:
	movq	e(%rip), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	cmpl	$43, %eax
	je	.L47
	cmpl	$45, %eax
	je	.L48
	jmp	.L55
.L47:
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	call	factor
	movq	%rax, -36(%rbp)
	movl	-28(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -28(%rbp)
	movq	-36(%rbp), %rax
	movl	-28(%rbp), %ecx
	movq	%rcx, %rdx
	movq	-48(%rbp), %rdi
	movl	-40(%rbp), %esi
	movq	%rdx, %rcx
	movq	%rax, %rdx
	call	add
	movq	%rax, -48(%rbp)
	movl	-40(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -40(%rbp)
	jmp	.L50
.L48:
	movq	e(%rip), %rax
	addq	$1, %rax
	movq	%rax, e(%rip)
	call	factor
	movq	%rax, -24(%rbp)
	movl	-16(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rax
	movl	-16(%rbp), %ecx
	movq	%rcx, %rdx
	movq	-48(%rbp), %rdi
	movl	-40(%rbp), %esi
	movq	%rdx, %rcx
	movq	%rax, %rdx
	call	subtract
	movq	%rax, -48(%rbp)
	movl	-40(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -40(%rbp)
	jmp	.L50
.L55:
	movq	-48(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L54
.L50:
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	.L53
	movq	-48(%rbp), %rax
	movq	%rax, -12(%rbp)
	movl	-40(%rbp), %eax
	movl	%eax, -4(%rbp)
.L54:
	movq	-12(%rbp), %rax
	movl	-4(%rbp), %ecx
	movq	%rcx, %rdx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	expression, .-expression
	.section	.rodata
.LC0:
	.string	"overflow"
.LC1:
	.string	"0"
.LC2:
	.string	"%d"
.LC3:
	.string	"%di"
.LC4:
	.string	""
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$176, %rsp
	movl	%edi, -164(%rbp)
	movq	%rsi, -176(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L57
.L64:
	leaq	-144(%rbp), %rax
	movq	%rax, e(%rip)
	call	expression
	movq	%rax, -156(%rbp)
	movl	-148(%rbp), %eax
	andl	$0, %eax
	orl	%edx, %eax
	movl	%eax, -148(%rbp)
	movl	-148(%rbp), %eax
	testl	%eax, %eax
	je	.L58
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L57
.L58:
	movl	-156(%rbp), %eax
	testl	%eax, %eax
	jne	.L60
	movl	-152(%rbp), %eax
	testl	%eax, %eax
	jne	.L60
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L57
.L60:
	movl	-156(%rbp), %eax
	testl	%eax, %eax
	je	.L61
	movl	-156(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L61:
	movl	-152(%rbp), %eax
	testl	%eax, %eax
	je	.L62
	movl	-156(%rbp), %eax
	testl	%eax, %eax
	je	.L63
	movl	-152(%rbp), %eax
	testl	%eax, %eax
	js	.L63
	movl	$43, %edi
	call	putchar@PLT
.L63:
	movl	-152(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L62:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L57:
	movq	stdin(%rip), %rdx
	leaq	-144(%rbp), %rax
	movl	$128, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	jne	.L64
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L66
	call	__stack_chk_fail@PLT
.L66:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	ie.0, @object
	.size	ie.0, 12
ie.0:
	.long	0
	.long	1
	.long	0
	.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:
