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

```c
/**
 * AOJ #1186: Integral Rectangles (ICPC Domestic 2013)
 */

#include <stdio.h>

#define MAX_HW 150
#define DIAG2(h, w) ((h) * (h) + (w) * (w))
#define LT(h1, w1, h2, w2) (DIAG2((h1), (w1)) < DIAG2((h2), (w2)) || \
                           (DIAG2((h1), (w1)) == DIAG2((h2), (w2)) && \
                           (h1) < (h2)))

/**
 * Print the smallest wide integral rectangle bigger than the given one.
 */
void solve(int h, int w)
{
  int h1, w1, minh, minw;
  minh = minw = MAX_HW;
  for (h1 = 1; h1 <= MAX_HW; h1++) {
    for (w1 = h1 + 1; w1 <= MAX_HW; w1++) {
      if (LT(h, w, h1, w1)) {
        if (LT(h1, w1, minh, minw)) {
          minh = h1;
          minw = w1;
        }
      }
    }
  }
  printf("%d %d\n", minh, minw);
}

int main()
{
  int h, w;
  for (;;) {
    scanf("%d%d", &h, &w);
    if (h == 0 && w == 0) break;
    solve(h, w);
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d\n"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$150, -4(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, -8(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L2
.L8:
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L3
.L7:
	movl	-20(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-24(%rbp), %eax
	imull	%eax, %eax
	addl	%eax, %edx
	movl	-16(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	imull	%eax, %eax
	addl	%ecx, %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	-20(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-24(%rbp), %eax
	imull	%eax, %eax
	addl	%eax, %edx
	movl	-16(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	imull	%eax, %eax
	addl	%ecx, %eax
	cmpl	%eax, %edx
	jne	.L5
	movl	-20(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jge	.L5
.L4:
	movl	-16(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	imull	%eax, %eax
	addl	%eax, %edx
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	imull	%eax, %eax
	addl	%ecx, %eax
	cmpl	%eax, %edx
	jl	.L6
	movl	-16(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	imull	%eax, %eax
	addl	%eax, %edx
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	imull	%eax, %eax
	addl	%ecx, %eax
	cmpl	%eax, %edx
	jne	.L5
	movl	-16(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L5
.L6:
	movl	-16(%rbp), %eax
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -4(%rbp)
.L5:
	addl	$1, -12(%rbp)
.L3:
	cmpl	$150, -12(%rbp)
	jle	.L7
	addl	$1, -16(%rbp)
.L2:
	cmpl	$150, -16(%rbp)
	jle	.L8
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	solve, .-solve
	.section	.rodata
.LC1:
	.string	"%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L12:
	leaq	-12(%rbp), %rdx
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-12(%rbp), %eax
	testl	%eax, %eax
	je	.L16
.L10:
	movl	-12(%rbp), %edx
	movl	-16(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	solve
	jmp	.L12
.L16:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d\n"
	.text
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB23:
	.cfi_startproc
	endbr64
	imull	%esi, %esi
	movl	%edi, %r11d
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	$1, %ecx
	imull	%edi, %edi
	movl	$2, %ebx
	movl	$2, %eax
	movl	$150, %r9d
	movl	$150, %r8d
	addl	%esi, %edi
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L26:
	cmpl	%ecx, %r11d
	jge	.L4
	cmpl	%edx, %edi
	je	.L3
.L4:
	addl	$1, %eax
	cmpl	$151, %eax
	je	.L25
.L2:
	movl	%ecx, %edx
	movl	%eax, %esi
	imull	%ecx, %edx
	imull	%eax, %esi
	addl	%esi, %edx
	cmpl	%edx, %edi
	jge	.L26
.L3:
	movl	%r8d, %esi
	movl	%r9d, %r10d
	imull	%r8d, %esi
	imull	%r9d, %r10d
	addl	%r10d, %esi
	cmpl	%esi, %edx
	jl	.L9
	jne	.L4
	cmpl	%r8d, %ecx
	setl	%dl
	testb	%dl, %dl
	cmovne	%eax, %r9d
	cmovne	%ecx, %r8d
	addl	$1, %eax
	cmpl	$151, %eax
	jne	.L2
.L25:
	leal	1(%rbx), %eax
	cmpl	$150, %ebx
	je	.L27
	movl	%ebx, %ecx
	movl	%eax, %ebx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%eax, %r9d
	movl	%ecx, %r8d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	movl	%r9d, %ecx
	movl	%r8d, %edx
	leaq	.LC0(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE23:
	.size	solve, .-solve
	.section	.rodata.str1.1
.LC1:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r13
	movq	%rsp, %r12
.L36:
	movq	%r12, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %r11d
	movl	4(%rsp), %eax
	movl	%r11d, %esi
	orl	%eax, %esi
	je	.L29
	movl	%r11d, %r10d
	imull	%eax, %eax
	movl	$1, %edx
	movl	$2, %esi
	imull	%r11d, %r10d
	movl	$150, %r9d
	movl	$150, %r8d
	addl	%eax, %r10d
	movl	$2, %eax
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L57:
	cmpl	%edx, %r11d
	jge	.L32
	cmpl	%ecx, %r10d
	je	.L31
.L32:
	addl	$1, %eax
	cmpl	$151, %eax
	je	.L56
.L41:
	movl	%esi, %ecx
	movl	%edx, %esi
.L34:
	movl	%esi, %edx
	movl	%ecx, %esi
.L30:
	movl	%edx, %ecx
	movl	%eax, %edi
	imull	%edx, %ecx
	imull	%eax, %edi
	addl	%edi, %ecx
	cmpl	%ecx, %r10d
	jge	.L57
.L31:
	movl	%r8d, %edi
	movl	%r9d, %r14d
	imull	%r8d, %edi
	imull	%r9d, %r14d
	addl	%r14d, %edi
	cmpl	%edi, %ecx
	jl	.L39
	jne	.L32
	cmpl	%r8d, %edx
	setl	%cl
	testb	%cl, %cl
	cmovne	%eax, %r9d
	cmovne	%edx, %r8d
	addl	$1, %eax
	cmpl	$151, %eax
	jne	.L41
.L56:
	leal	1(%rsi), %eax
	cmpl	$150, %esi
	je	.L58
	movl	%eax, %ecx
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L39:
	movl	%eax, %r9d
	movl	%edx, %r8d
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L58:
	movl	%r9d, %ecx
	movl	%r8d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L36
.L29:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L59:
	.cfi_restore_state
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d\n"
	.text
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB23:
	.cfi_startproc
	endbr64
	imull	%esi, %esi
	movl	%edi, %r11d
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	$1, %ecx
	imull	%edi, %edi
	movl	$2, %ebx
	movl	$2, %eax
	movl	$150, %r9d
	movl	$150, %r8d
	addl	%esi, %edi
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L26:
	cmpl	%ecx, %r11d
	jge	.L4
	cmpl	%edx, %edi
	je	.L3
.L4:
	addl	$1, %eax
	cmpl	$151, %eax
	je	.L25
.L2:
	movl	%ecx, %edx
	movl	%eax, %esi
	imull	%ecx, %edx
	imull	%eax, %esi
	addl	%esi, %edx
	cmpl	%edx, %edi
	jge	.L26
.L3:
	movl	%r8d, %esi
	movl	%r9d, %r10d
	imull	%r8d, %esi
	imull	%r9d, %r10d
	addl	%r10d, %esi
	cmpl	%esi, %edx
	jl	.L9
	jne	.L4
	cmpl	%r8d, %ecx
	setl	%dl
	testb	%dl, %dl
	cmovne	%eax, %r9d
	cmovne	%ecx, %r8d
	addl	$1, %eax
	cmpl	$151, %eax
	jne	.L2
.L25:
	leal	1(%rbx), %eax
	cmpl	$150, %ebx
	je	.L27
	movl	%ebx, %ecx
	movl	%eax, %ebx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%eax, %r9d
	movl	%ecx, %r8d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	movl	%r9d, %ecx
	movl	%r8d, %edx
	leaq	.LC0(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE23:
	.size	solve, .-solve
	.section	.rodata.str1.1
.LC1:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r13
	movq	%rsp, %r12
.L36:
	movq	%r12, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %r11d
	movl	4(%rsp), %eax
	movl	%r11d, %esi
	orl	%eax, %esi
	je	.L29
	movl	%r11d, %r10d
	imull	%eax, %eax
	movl	$1, %edx
	movl	$2, %esi
	imull	%r11d, %r10d
	movl	$150, %r9d
	movl	$150, %r8d
	addl	%eax, %r10d
	movl	$2, %eax
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L57:
	cmpl	%edx, %r11d
	jge	.L32
	cmpl	%ecx, %r10d
	je	.L31
.L32:
	addl	$1, %eax
	cmpl	$151, %eax
	je	.L56
.L41:
	movl	%esi, %ecx
	movl	%edx, %esi
.L34:
	movl	%esi, %edx
	movl	%ecx, %esi
.L30:
	movl	%edx, %ecx
	movl	%eax, %edi
	imull	%edx, %ecx
	imull	%eax, %edi
	addl	%edi, %ecx
	cmpl	%ecx, %r10d
	jge	.L57
.L31:
	movl	%r8d, %edi
	movl	%r9d, %r14d
	imull	%r8d, %edi
	imull	%r9d, %r14d
	addl	%r14d, %edi
	cmpl	%edi, %ecx
	jl	.L39
	jne	.L32
	cmpl	%r8d, %edx
	setl	%cl
	testb	%cl, %cl
	cmovne	%eax, %r9d
	cmovne	%edx, %r8d
	addl	$1, %eax
	cmpl	$151, %eax
	jne	.L41
.L56:
	leal	1(%rsi), %eax
	cmpl	$150, %esi
	je	.L58
	movl	%eax, %ecx
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L39:
	movl	%eax, %r9d
	movl	%edx, %r8d
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L58:
	movl	%r9d, %ecx
	movl	%r8d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L36
.L29:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L59:
	.cfi_restore_state
	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:

/**
 * AOJ #1186: Integral Rectangles (ICPC Domestic 2013)
 */

#include <stdio.h>

#define MAX_HW 150
#define DIAG2(h, w) ((h) * (h) + (w) * (w))
#define LT(h1, w1, h2, w2) (DIAG2((h1), (w1)) < DIAG2((h2), (w2)) || \
                           (DIAG2((h1), (w1)) == DIAG2((h2), (w2)) && \
                           (h1) < (h2)))

/**
 * Print the smallest wide integral rectangle bigger than the given one.
 */
void solve(int h, int w)
{
  int h1, w1, minh, minw;
  minh = minw = MAX_HW;
  for (h1 = 1; h1 <= MAX_HW; h1++) {
    for (w1 = h1 + 1; w1 <= MAX_HW; w1++) {
      if (LT(h, w, h1, w1)) {
        if (LT(h1, w1, minh, minw)) {
          minh = h1;
          minw = w1;
        }
      }
    }
  }
  printf("%d %d\n", minh, minw);
}

int main()
{
  int h, w;
  for (;;) {
    scanf("%d%d", &h, &w);
    if (h == 0 && w == 0) break;
    solve(h, w);
  }
  return 0;
}
1 2
1 3
2 3
1 4
2 4
5 6
1 8
4 7
98 100
99 100
0 0

1 3
2 3
1 4
2 4
3 4
1 8
4 7
2 8
3 140
89 109

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

```c
/**
 * AOJ #1186: Integral Rectangles (ICPC Domestic 2013)
 */

#include <stdio.h>

#define MAX_HW 150
#define DIAG2(h, w) ((h) * (h) + (w) * (w))
#define LT(h1, w1, h2, w2) (DIAG2((h1), (w1)) < DIAG2((h2), (w2)) || \
                           (DIAG2((h1), (w1)) == DIAG2((h2), (w2)) && \
                           (h1) < (h2)))

/**
 * Print the smallest wide integral rectangle bigger than the given one.
 */
void solve(int h, int w)
{
  int h1, w1, minh, minw;
  minh = minw = MAX_HW;
  for (h1 = 1; h1 <= MAX_HW; h1++) {
    for (w1 = h1 + 1; w1 <= MAX_HW; w1++) {
      if (LT(h, w, h1, w1)) {
        if (LT(h1, w1, minh, minw)) {
          minh = h1;
          minw = w1;
        }
      }
    }
  }
  printf("%d %d\n", minh, minw);
}

int main()
{
  int h, w;
  for (;;) {
    scanf("%d%d", &h, &w);
    if (h == 0 && w == 0) break;
    solve(h, w);
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d\n"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$150, -4(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, -8(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L2
.L8:
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L3
.L7:
	movl	-20(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-24(%rbp), %eax
	imull	%eax, %eax
	addl	%eax, %edx
	movl	-16(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	imull	%eax, %eax
	addl	%ecx, %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	-20(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-24(%rbp), %eax
	imull	%eax, %eax
	addl	%eax, %edx
	movl	-16(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	imull	%eax, %eax
	addl	%ecx, %eax
	cmpl	%eax, %edx
	jne	.L5
	movl	-20(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jge	.L5
.L4:
	movl	-16(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	imull	%eax, %eax
	addl	%eax, %edx
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	imull	%eax, %eax
	addl	%ecx, %eax
	cmpl	%eax, %edx
	jl	.L6
	movl	-16(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	imull	%eax, %eax
	addl	%eax, %edx
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	imull	%eax, %eax
	addl	%ecx, %eax
	cmpl	%eax, %edx
	jne	.L5
	movl	-16(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L5
.L6:
	movl	-16(%rbp), %eax
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -4(%rbp)
.L5:
	addl	$1, -12(%rbp)
.L3:
	cmpl	$150, -12(%rbp)
	jle	.L7
	addl	$1, -16(%rbp)
.L2:
	cmpl	$150, -16(%rbp)
	jle	.L8
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	solve, .-solve
	.section	.rodata
.LC1:
	.string	"%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L12:
	leaq	-12(%rbp), %rdx
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-12(%rbp), %eax
	testl	%eax, %eax
	je	.L16
.L10:
	movl	-12(%rbp), %edx
	movl	-16(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	solve
	jmp	.L12
.L16:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d\n"
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$150, -4(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, -8(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L2
.L8:
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L3
.L7:
	movl	-20(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-24(%rbp), %eax
	imull	%eax, %eax
	addl	%eax, %edx
	movl	-16(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	imull	%eax, %eax
	addl	%ecx, %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	-20(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-24(%rbp), %eax
	imull	%eax, %eax
	addl	%eax, %edx
	movl	-16(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	imull	%eax, %eax
	addl	%ecx, %eax
	cmpl	%eax, %edx
	jne	.L5
	movl	-20(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jge	.L5
.L4:
	movl	-16(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	imull	%eax, %eax
	addl	%eax, %edx
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	imull	%eax, %eax
	addl	%ecx, %eax
	cmpl	%eax, %edx
	jl	.L6
	movl	-16(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	imull	%eax, %eax
	addl	%eax, %edx
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	imull	%eax, %eax
	addl	%ecx, %eax
	cmpl	%eax, %edx
	jne	.L5
	movl	-16(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L5
.L6:
	movl	-16(%rbp), %eax
	movl	%eax, -8(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -4(%rbp)
.L5:
	addl	$1, -12(%rbp)
.L3:
	cmpl	$150, -12(%rbp)
	jle	.L7
	addl	$1, -16(%rbp)
.L2:
	cmpl	$150, -16(%rbp)
	jle	.L8
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	solve, .-solve
	.section	.rodata
.LC1:
	.string	"%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L12:
	leaq	-12(%rbp), %rdx
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-12(%rbp), %eax
	testl	%eax, %eax
	je	.L16
.L10:
	movl	-12(%rbp), %edx
	movl	-16(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	solve
	jmp	.L12
.L16:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
