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 func(int x, int y){
	return x*x+y*y;
}

int main(void){
	int h[101]={-1}, w[101]={-1};
	int l=0;
	int i,ih,iw;
	int mh,mw;

	do{
	scanf("%d", &h[l]);
	scanf("%d", &w[l]);
	}while(h[l++] != 0);

	for(i=0;i<l-1;i++){
	mh=150;
	mw=150;
		for(ih=150; ih>=1;ih--){
			for(iw=ih+1;iw<=150;iw++){
				if(ih == h[i] && iw == w[i])
					continue;
				if(func(mh,mw)<func(ih,iw))
					break;
				else if(func(h[i],w[i]) == func(ih,iw)){
					if(h[i] < ih){
						mh = ih;
						mw = iw;
						break;
					}
				}
				else if(func(h[i],w[i]) < func(ih,iw)){
					mh=ih;
					mw=iw;
					break;
				}
				
			}
		}
	printf("%d %d\n",mh, mw);
	}


	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	func
	.type	func, @function
func:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	addl	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	func, .-func
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
	.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
	pushq	%rbx
	subq	$872, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-848(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	$-1, -848(%rbp)
	leaq	-432(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	$-1, -432(%rbp)
	movl	$0, -872(%rbp)
.L4:
	leaq	-848(%rbp), %rdx
	movl	-872(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-432(%rbp), %rdx
	movl	-872(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-872(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -872(%rbp)
	cltq
	movl	-848(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L4
	movl	$0, -868(%rbp)
	jmp	.L5
.L15:
	movl	$150, -856(%rbp)
	movl	$150, -852(%rbp)
	movl	$150, -864(%rbp)
	jmp	.L6
.L14:
	movl	-864(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -860(%rbp)
	jmp	.L7
.L13:
	movl	-868(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	cmpl	%eax, -864(%rbp)
	jne	.L8
	movl	-868(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %eax
	cmpl	%eax, -860(%rbp)
	je	.L18
.L8:
	movl	-852(%rbp), %edx
	movl	-856(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	movl	%eax, %ebx
	movl	-860(%rbp), %edx
	movl	-864(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	cmpl	%eax, %ebx
	jl	.L19
	movl	-868(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %edx
	movl	-868(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	movl	%eax, %ebx
	movl	-860(%rbp), %edx
	movl	-864(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	cmpl	%eax, %ebx
	jne	.L12
	movl	-868(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	cmpl	%eax, -864(%rbp)
	jle	.L9
	movl	-864(%rbp), %eax
	movl	%eax, -856(%rbp)
	movl	-860(%rbp), %eax
	movl	%eax, -852(%rbp)
	jmp	.L11
.L12:
	movl	-868(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %edx
	movl	-868(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	movl	%eax, %ebx
	movl	-860(%rbp), %edx
	movl	-864(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	cmpl	%eax, %ebx
	jge	.L9
	movl	-864(%rbp), %eax
	movl	%eax, -856(%rbp)
	movl	-860(%rbp), %eax
	movl	%eax, -852(%rbp)
	jmp	.L11
.L18:
	nop
.L9:
	addl	$1, -860(%rbp)
.L7:
	cmpl	$150, -860(%rbp)
	jle	.L13
	jmp	.L11
.L19:
	nop
.L11:
	subl	$1, -864(%rbp)
.L6:
	cmpl	$0, -864(%rbp)
	jg	.L14
	movl	-852(%rbp), %edx
	movl	-856(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -868(%rbp)
.L5:
	movl	-872(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -868(%rbp)
	jl	.L15
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	movq	-8(%rbp), %rbx
	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
	.p2align 4
	.globl	func
	.type	func, @function
func:
.LFB23:
	.cfi_startproc
	endbr64
	imull	%edi, %edi
	imull	%esi, %esi
	leal	(%rdi,%rsi), %eax
	ret
	.cfi_endproc
.LFE23:
	.size	func, .-func
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$50, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$856, %rsp
	.cfi_def_cfa_offset 912
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	16(%rsp), %rbp
	movq	%rbp, 8(%rsp)
	movq	%rbp, %r13
	rep stosq
	movl	$50, %ecx
	movl	$-1, 16(%rsp)
	movl	$0, (%rdi)
	leaq	432(%rsp), %rdi
	movq	%rdi, (%rsp)
	rep stosq
	movl	$-1, 432(%rsp)
	movl	$0, (%rdi)
.L4:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	movq	%r13, %rbp
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rbx
	movq	%r14, %rdi
	xorl	%eax, %eax
	movl	%r12d, %r15d
	addq	$4, %r13
	leaq	(%rbx,%r12,4), %rsi
	addq	$1, %r12
	call	__isoc99_scanf@PLT
	movl	0(%rbp), %eax
	testl	%eax, %eax
	jne	.L4
	movq	8(%rsp), %rbp
	testl	%r15d, %r15d
	je	.L18
	leal	-1(%r15), %eax
	leaq	.LC1(%rip), %r12
	leaq	436(%rsp,%rax,4), %rax
	movq	%rax, (%rsp)
.L17:
	movl	0(%rbp), %r14d
	movl	$151, %r10d
	movl	$150, %r9d
	movl	$150, %r13d
	movl	$150, %r11d
	movl	%r14d, %r8d
	imull	%r14d, %r8d
	.p2align 4,,10
	.p2align 3
.L16:
	movl	%r11d, %esi
	movl	%r13d, %edx
	movl	%r10d, %eax
	imull	%r11d, %esi
	imull	%r13d, %edx
	addl	%edx, %esi
	cmpl	$151, %r10d
	je	.L6
	movl	%r9d, %edi
	imull	%r9d, %edi
	cmpl	%r9d, %r14d
	je	.L7
	jge	.L12
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L39:
	movl	(%rbx), %edx
	imull	%edx, %edx
	addl	%r8d, %edx
	cmpl	%ecx, %edx
	je	.L10
	jl	.L20
.L10:
	addl	$1, %eax
	cmpl	$151, %eax
	je	.L9
.L12:
	movl	%eax, %ecx
	imull	%eax, %ecx
	addl	%edi, %ecx
	cmpl	%esi, %ecx
	jle	.L39
.L9:
	cmpl	$1, %r9d
	je	.L15
.L6:
	subl	$1, %r9d
	subl	$1, %r10d
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L40:
	jl	.L20
	addl	$1, %eax
	cmpl	$151, %eax
	je	.L9
.L8:
	movl	%eax, %ecx
	imull	%eax, %ecx
	addl	%edi, %ecx
	cmpl	%esi, %ecx
	jg	.L9
	movl	(%rbx), %edx
	imull	%edx, %edx
	addl	%r8d, %edx
	cmpl	%ecx, %edx
	jne	.L40
.L20:
	movl	%eax, %r13d
	movl	%r9d, %r11d
	cmpl	$1, %r9d
	jne	.L6
.L15:
	movl	%r13d, %ecx
	movl	%r11d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbp
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, (%rsp)
	jne	.L17
.L18:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	movl	(%rbx), %ecx
	movl	%ecx, %r15d
	imull	%ecx, %r15d
	addl	%r8d, %r15d
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%eax, %ecx
	je	.L13
	movl	%eax, %edx
	imull	%eax, %edx
	addl	%edi, %edx
	cmpl	%esi, %edx
	jg	.L9
	cmpl	%edx, %r15d
	je	.L13
	jl	.L20
.L13:
	addl	$1, %eax
	cmpl	$151, %eax
	jne	.L14
	jmp	.L9
.L41:
	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
	.p2align 4
	.globl	func
	.type	func, @function
func:
.LFB23:
	.cfi_startproc
	endbr64
	imull	%edi, %edi
	imull	%esi, %esi
	leal	(%rdi,%rsi), %eax
	ret
	.cfi_endproc
.LFE23:
	.size	func, .-func
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$50, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$856, %rsp
	.cfi_def_cfa_offset 912
	movq	%fs:40, %rax
	movq	%rax, 840(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	16(%rsp), %rbp
	movq	%rbp, 8(%rsp)
	movq	%rbp, %r13
	rep stosq
	movl	$50, %ecx
	movl	$-1, 16(%rsp)
	movl	$0, (%rdi)
	leaq	432(%rsp), %rdi
	movq	%rdi, (%rsp)
	rep stosq
	movl	$-1, 432(%rsp)
	movl	$0, (%rdi)
.L4:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	movq	%r13, %rbp
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rbx
	movq	%r14, %rdi
	xorl	%eax, %eax
	movl	%r12d, %r15d
	addq	$4, %r13
	leaq	(%rbx,%r12,4), %rsi
	addq	$1, %r12
	call	__isoc99_scanf@PLT
	movl	0(%rbp), %eax
	testl	%eax, %eax
	jne	.L4
	movq	8(%rsp), %rbp
	testl	%r15d, %r15d
	je	.L18
	leal	-1(%r15), %eax
	leaq	.LC1(%rip), %r12
	leaq	436(%rsp,%rax,4), %rax
	movq	%rax, (%rsp)
.L17:
	movl	0(%rbp), %r14d
	movl	$151, %r10d
	movl	$150, %r9d
	movl	$150, %r13d
	movl	$150, %r11d
	movl	%r14d, %r8d
	imull	%r14d, %r8d
	.p2align 4,,10
	.p2align 3
.L16:
	movl	%r11d, %esi
	movl	%r13d, %edx
	movl	%r10d, %eax
	imull	%r11d, %esi
	imull	%r13d, %edx
	addl	%edx, %esi
	cmpl	$151, %r10d
	je	.L6
	movl	%r9d, %edi
	imull	%r9d, %edi
	cmpl	%r9d, %r14d
	je	.L7
	jge	.L12
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L39:
	movl	(%rbx), %edx
	imull	%edx, %edx
	addl	%r8d, %edx
	cmpl	%ecx, %edx
	je	.L10
	jl	.L20
.L10:
	addl	$1, %eax
	cmpl	$151, %eax
	je	.L9
.L12:
	movl	%eax, %ecx
	imull	%eax, %ecx
	addl	%edi, %ecx
	cmpl	%esi, %ecx
	jle	.L39
.L9:
	cmpl	$1, %r9d
	je	.L15
.L6:
	subl	$1, %r9d
	subl	$1, %r10d
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L40:
	jl	.L20
	addl	$1, %eax
	cmpl	$151, %eax
	je	.L9
.L8:
	movl	%eax, %ecx
	imull	%eax, %ecx
	addl	%edi, %ecx
	cmpl	%esi, %ecx
	jg	.L9
	movl	(%rbx), %edx
	imull	%edx, %edx
	addl	%r8d, %edx
	cmpl	%ecx, %edx
	jne	.L40
.L20:
	movl	%eax, %r13d
	movl	%r9d, %r11d
	cmpl	$1, %r9d
	jne	.L6
.L15:
	movl	%r13d, %ecx
	movl	%r11d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbp
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, (%rsp)
	jne	.L17
.L18:
	movq	840(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	addq	$856, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	movl	(%rbx), %ecx
	movl	%ecx, %r15d
	imull	%ecx, %r15d
	addl	%r8d, %r15d
	.p2align 4,,10
	.p2align 3
.L14:
	cmpl	%eax, %ecx
	je	.L13
	movl	%eax, %edx
	imull	%eax, %edx
	addl	%edi, %edx
	cmpl	%esi, %edx
	jg	.L9
	cmpl	%edx, %r15d
	je	.L13
	jl	.L20
.L13:
	addl	$1, %eax
	cmpl	$151, %eax
	jne	.L14
	jmp	.L9
.L41:
	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:

#include <stdio.h>

int func(int x, int y){
	return x*x+y*y;
}

int main(void){
	int h[101]={-1}, w[101]={-1};
	int l=0;
	int i,ih,iw;
	int mh,mw;

	do{
	scanf("%d", &h[l]);
	scanf("%d", &w[l]);
	}while(h[l++] != 0);

	for(i=0;i<l-1;i++){
	mh=150;
	mw=150;
		for(ih=150; ih>=1;ih--){
			for(iw=ih+1;iw<=150;iw++){
				if(ih == h[i] && iw == w[i])
					continue;
				if(func(mh,mw)<func(ih,iw))
					break;
				else if(func(h[i],w[i]) == func(ih,iw)){
					if(h[i] < ih){
						mh = ih;
						mw = iw;
						break;
					}
				}
				else if(func(h[i],w[i]) < func(ih,iw)){
					mh=ih;
					mw=iw;
					break;
				}
				
			}
		}
	printf("%d %d\n",mh, mw);
	}


	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
#include <stdio.h>

int func(int x, int y){
	return x*x+y*y;
}

int main(void){
	int h[101]={-1}, w[101]={-1};
	int l=0;
	int i,ih,iw;
	int mh,mw;

	do{
	scanf("%d", &h[l]);
	scanf("%d", &w[l]);
	}while(h[l++] != 0);

	for(i=0;i<l-1;i++){
	mh=150;
	mw=150;
		for(ih=150; ih>=1;ih--){
			for(iw=ih+1;iw<=150;iw++){
				if(ih == h[i] && iw == w[i])
					continue;
				if(func(mh,mw)<func(ih,iw))
					break;
				else if(func(h[i],w[i]) == func(ih,iw)){
					if(h[i] < ih){
						mh = ih;
						mw = iw;
						break;
					}
				}
				else if(func(h[i],w[i]) < func(ih,iw)){
					mh=ih;
					mw=iw;
					break;
				}
				
			}
		}
	printf("%d %d\n",mh, mw);
	}


	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	func
	.type	func, @function
func:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	addl	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	func, .-func
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
	.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
	pushq	%rbx
	subq	$872, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-848(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	$-1, -848(%rbp)
	leaq	-432(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	$-1, -432(%rbp)
	movl	$0, -872(%rbp)
.L4:
	leaq	-848(%rbp), %rdx
	movl	-872(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-432(%rbp), %rdx
	movl	-872(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-872(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -872(%rbp)
	cltq
	movl	-848(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L4
	movl	$0, -868(%rbp)
	jmp	.L5
.L15:
	movl	$150, -856(%rbp)
	movl	$150, -852(%rbp)
	movl	$150, -864(%rbp)
	jmp	.L6
.L14:
	movl	-864(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -860(%rbp)
	jmp	.L7
.L13:
	movl	-868(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	cmpl	%eax, -864(%rbp)
	jne	.L8
	movl	-868(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %eax
	cmpl	%eax, -860(%rbp)
	je	.L18
.L8:
	movl	-852(%rbp), %edx
	movl	-856(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	movl	%eax, %ebx
	movl	-860(%rbp), %edx
	movl	-864(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	cmpl	%eax, %ebx
	jl	.L19
	movl	-868(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %edx
	movl	-868(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	movl	%eax, %ebx
	movl	-860(%rbp), %edx
	movl	-864(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	cmpl	%eax, %ebx
	jne	.L12
	movl	-868(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	cmpl	%eax, -864(%rbp)
	jle	.L9
	movl	-864(%rbp), %eax
	movl	%eax, -856(%rbp)
	movl	-860(%rbp), %eax
	movl	%eax, -852(%rbp)
	jmp	.L11
.L12:
	movl	-868(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %edx
	movl	-868(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	movl	%eax, %ebx
	movl	-860(%rbp), %edx
	movl	-864(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	cmpl	%eax, %ebx
	jge	.L9
	movl	-864(%rbp), %eax
	movl	%eax, -856(%rbp)
	movl	-860(%rbp), %eax
	movl	%eax, -852(%rbp)
	jmp	.L11
.L18:
	nop
.L9:
	addl	$1, -860(%rbp)
.L7:
	cmpl	$150, -860(%rbp)
	jle	.L13
	jmp	.L11
.L19:
	nop
.L11:
	subl	$1, -864(%rbp)
.L6:
	cmpl	$0, -864(%rbp)
	jg	.L14
	movl	-852(%rbp), %edx
	movl	-856(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -868(%rbp)
.L5:
	movl	-872(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -868(%rbp)
	jl	.L15
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	movq	-8(%rbp), %rbx
	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
	.globl	func
	.type	func, @function
func:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	imull	%eax, %eax
	addl	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	func, .-func
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d\n"
	.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
	pushq	%rbx
	subq	$872, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-848(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	$-1, -848(%rbp)
	leaq	-432(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	$-1, -432(%rbp)
	movl	$0, -872(%rbp)
.L4:
	leaq	-848(%rbp), %rdx
	movl	-872(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-432(%rbp), %rdx
	movl	-872(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-872(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -872(%rbp)
	cltq
	movl	-848(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L4
	movl	$0, -868(%rbp)
	jmp	.L5
.L15:
	movl	$150, -856(%rbp)
	movl	$150, -852(%rbp)
	movl	$150, -864(%rbp)
	jmp	.L6
.L14:
	movl	-864(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -860(%rbp)
	jmp	.L7
.L13:
	movl	-868(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	cmpl	%eax, -864(%rbp)
	jne	.L8
	movl	-868(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %eax
	cmpl	%eax, -860(%rbp)
	je	.L18
.L8:
	movl	-852(%rbp), %edx
	movl	-856(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	movl	%eax, %ebx
	movl	-860(%rbp), %edx
	movl	-864(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	cmpl	%eax, %ebx
	jl	.L19
	movl	-868(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %edx
	movl	-868(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	movl	%eax, %ebx
	movl	-860(%rbp), %edx
	movl	-864(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	cmpl	%eax, %ebx
	jne	.L12
	movl	-868(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	cmpl	%eax, -864(%rbp)
	jle	.L9
	movl	-864(%rbp), %eax
	movl	%eax, -856(%rbp)
	movl	-860(%rbp), %eax
	movl	%eax, -852(%rbp)
	jmp	.L11
.L12:
	movl	-868(%rbp), %eax
	cltq
	movl	-432(%rbp,%rax,4), %edx
	movl	-868(%rbp), %eax
	cltq
	movl	-848(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	movl	%eax, %ebx
	movl	-860(%rbp), %edx
	movl	-864(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	func
	cmpl	%eax, %ebx
	jge	.L9
	movl	-864(%rbp), %eax
	movl	%eax, -856(%rbp)
	movl	-860(%rbp), %eax
	movl	%eax, -852(%rbp)
	jmp	.L11
.L18:
	nop
.L9:
	addl	$1, -860(%rbp)
.L7:
	cmpl	$150, -860(%rbp)
	jle	.L13
	jmp	.L11
.L19:
	nop
.L11:
	subl	$1, -864(%rbp)
.L6:
	cmpl	$0, -864(%rbp)
	jg	.L14
	movl	-852(%rbp), %edx
	movl	-856(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -868(%rbp)
.L5:
	movl	-872(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -868(%rbp)
	jl	.L15
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	movq	-8(%rbp), %rbx
	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:
