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

typedef struct ANS Ans;
struct ANS{
	int ch;	//?????????
	int pa;	//?????????
};

int Main();
int GCM(int a, int b);	//??£?????´??°a??¨b????????§??¬?´???°????????????

int main(int argc, char *argv[]){
	while( Main() == 0 );
	return 0;
}

int Main(){
	int a = 0, b = 0, c = 0, d = 0, p = 0, q = 0, r = 0, s = 0, gcm = 0;	//ax^2+bx+c=(px+q)(rx+s)=0??¨??????????????????p???s????±??????????d???sqrt(b^2-4ac)??§?????????
	Ans x[2];	//?????????p,r??§????????????q,s??¨?????????
	if( scanf("%d %d %d", &a, &b, &c) != 3 ){ return -1; }
	if( a == 0 && b == 0 && c == 0 ){ return 1; }
	//?§£???????´???°??§????????????????????°?§£????????¨????????????
	if( b * b - 4 * a * c < 0 ){
		printf("Impossible\n");
		return 0;
	}
	d = sqrt(b * b - 4 * a * c);
	//d?????´??°??§?????????
	if( d * d != b * b - 4 * a * c ){ 
		printf("Impossible\n");
		return 0;
	}
	//?§£????±????????´?????????????
	gcm = GCM(abs(-b-d), 2*a);
	x[0].ch = (-b - d) / gcm;
	x[0].pa = (2 * a) / gcm;
	gcm = GCM(abs(-b+d), 2*a);
	x[1].ch = (-b + d) / gcm;
	x[1].pa = (2 * a) / gcm;
	//?????¶???????????????????????????????????????
	if( x[0].pa > x[1].pa ){
		p = x[0].pa;
		q = (-1) * x[0].ch;
		r = x[1].pa;
		s = (-1) * x[1].ch;
	}else if( x[0].pa == x[1].pa ){
		p = x[0].pa;
		r = x[0].pa;
		q = (-1) * (x[0].ch <= x[1].ch ? x[0].ch : x[1].ch);
		s = (-1) * (x[0].ch <= x[1].ch ? x[1].ch : x[0].ch);
	}else if( x[0].pa < x[1].pa ){
		p = x[1].pa;
		q = (-1) * x[1].ch;
		r = x[0].pa;
		s = (-1) * x[0].ch;
	}
	printf("%d %d %d %d\n", p, q, r ,s);
	return 0;
}

int GCM(int a, int b){
	if( a <= 0 || b <= 0 ){ return (a>0?a:(b>0?b:1)); }	//?????§??¬?´???°???1??¨???????????????
	int m = (a>=b?a:b), n = (a>=b?b:a), r = m % n;	//m>=n
	while( r != 0 ){
		m = n;
		n = r;
		r = m % n;
	}
	return n;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.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	$16, %rsp
	movl	%edi, -4(%rbp)
	movq	%rsi, -16(%rbp)
	nop
.L2:
	movl	$0, %eax
	call	Main
	testl	%eax, %eax
	je	.L2
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"Impossible"
.LC2:
	.string	"%d %d %d %d\n"
	.text
	.globl	Main
	.type	Main, @function
Main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -68(%rbp)
	movl	$0, -64(%rbp)
	movl	$0, -60(%rbp)
	movl	$0, -40(%rbp)
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$0, -36(%rbp)
	leaq	-60(%rbp), %rcx
	leaq	-64(%rbp), %rdx
	leaq	-68(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$3, %eax
	je	.L5
	movl	$-1, %eax
	jmp	.L13
.L5:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jne	.L7
	movl	-64(%rbp), %eax
	testl	%eax, %eax
	jne	.L7
	movl	-60(%rbp), %eax
	testl	%eax, %eax
	jne	.L7
	movl	$1, %eax
	jmp	.L13
.L7:
	movl	-64(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	movl	-68(%rbp), %ecx
	movl	-60(%rbp), %edx
	imull	%ecx, %edx
	sall	$2, %edx
	subl	%edx, %eax
	testl	%eax, %eax
	jns	.L8
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L13
.L8:
	movl	-64(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	movl	-68(%rbp), %ecx
	movl	-60(%rbp), %edx
	imull	%ecx, %edx
	sall	$2, %edx
	subl	%edx, %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -40(%rbp)
	movl	-40(%rbp), %eax
	imull	%eax, %eax
	movl	-64(%rbp), %ecx
	movl	-64(%rbp), %edx
	imull	%ecx, %edx
	movl	-68(%rbp), %esi
	movl	-60(%rbp), %ecx
	imull	%esi, %ecx
	sall	$2, %ecx
	subl	%ecx, %edx
	cmpl	%edx, %eax
	je	.L9
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L13
.L9:
	movl	-68(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-64(%rbp), %eax
	negl	%eax
	subl	-40(%rbp), %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	GCM
	movl	%eax, -36(%rbp)
	movl	-64(%rbp), %eax
	negl	%eax
	subl	-40(%rbp), %eax
	cltd
	idivl	-36(%rbp)
	movl	%eax, -32(%rbp)
	movl	-68(%rbp), %eax
	addl	%eax, %eax
	cltd
	idivl	-36(%rbp)
	movl	%eax, -28(%rbp)
	movl	-68(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-64(%rbp), %ecx
	movl	-40(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	GCM
	movl	%eax, -36(%rbp)
	movl	-64(%rbp), %edx
	movl	-40(%rbp), %eax
	subl	%edx, %eax
	cltd
	idivl	-36(%rbp)
	movl	%eax, -24(%rbp)
	movl	-68(%rbp), %eax
	addl	%eax, %eax
	cltd
	idivl	-36(%rbp)
	movl	%eax, -20(%rbp)
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L10
	movl	-28(%rbp), %eax
	movl	%eax, -56(%rbp)
	movl	-32(%rbp), %eax
	negl	%eax
	movl	%eax, -52(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -48(%rbp)
	movl	-24(%rbp), %eax
	negl	%eax
	movl	%eax, -44(%rbp)
	jmp	.L11
.L10:
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L12
	movl	-28(%rbp), %eax
	movl	%eax, -56(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -48(%rbp)
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	negl	%eax
	movl	%eax, -52(%rbp)
	movl	-24(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	negl	%eax
	movl	%eax, -44(%rbp)
	jmp	.L11
.L12:
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L11
	movl	-20(%rbp), %eax
	movl	%eax, -56(%rbp)
	movl	-24(%rbp), %eax
	negl	%eax
	movl	%eax, -52(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -48(%rbp)
	movl	-32(%rbp), %eax
	negl	%eax
	movl	%eax, -44(%rbp)
.L11:
	movl	-44(%rbp), %esi
	movl	-48(%rbp), %ecx
	movl	-52(%rbp), %edx
	movl	-56(%rbp), %eax
	movl	%esi, %r8d
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L13:
	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
.LFE7:
	.size	Main, .-Main
	.globl	GCM
	.type	GCM, @function
GCM:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	cmpl	$0, -20(%rbp)
	jle	.L16
	cmpl	$0, -24(%rbp)
	jg	.L17
.L16:
	cmpl	$0, -20(%rbp)
	jg	.L18
	movl	-24(%rbp), %eax
	movl	$1, %edx
	testl	%eax, %eax
	cmovle	%edx, %eax
	jmp	.L20
.L18:
	movl	-20(%rbp), %eax
	jmp	.L20
.L17:
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	-4(%rbp), %eax
	cltd
	idivl	-12(%rbp)
	movl	%edx, -8(%rbp)
	jmp	.L21
.L22:
	movl	-12(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-4(%rbp), %eax
	cltd
	idivl	-12(%rbp)
	movl	%edx, -8(%rbp)
.L21:
	cmpl	$0, -8(%rbp)
	jne	.L22
	movl	-12(%rbp), %eax
.L20:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	GCM, .-GCM
	.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 %d"
.LC1:
	.string	"Impossible"
.LC3:
	.string	"%d %d %d %d\n"
	.text
	.p2align 4
	.globl	Main
	.type	Main, @function
Main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$48, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rcx
	leaq	32(%rsp), %rdx
	movl	$0, 28(%rsp)
	leaq	28(%rsp), %rsi
	movl	$0, 32(%rsp)
	movl	$0, 36(%rsp)
	call	__isoc99_scanf@PLT
	movl	%eax, %r8d
	movl	$-1, %eax
	cmpl	$3, %r8d
	jne	.L1
	movl	28(%rsp), %r8d
	movl	32(%rsp), %ebx
	movl	36(%rsp), %edx
	testl	%r8d, %r8d
	jne	.L3
	orl	%ebx, %edx
	movl	$1, %eax
	je	.L1
	movl	%ebx, %ebp
	imull	%ebx, %ebp
.L5:
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ebp, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L34
	sqrtsd	%xmm0, %xmm0
.L8:
	cvttsd2sil	%xmm0, %edi
	movl	%edi, %eax
	imull	%edi, %eax
	cmpl	%ebp, %eax
	jne	.L9
	movl	%ebx, %r11d
	addl	%r8d, %r8d
	negl	%r11d
	subl	%edi, %r11d
	movl	%r11d, %ecx
	negl	%ecx
	cmovs	%r11d, %ecx
	testl	%r8d, %r8d
	setle	%r12b
	testl	%ecx, %ecx
	jle	.L28
	testb	%r12b, %r12b
	jne	.L28
	cmpl	%ecx, %r8d
	movl	%ecx, %eax
	movl	%ecx, %esi
	cmovge	%r8d, %eax
	cmovle	%r8d, %esi
	cltd
	idivl	%esi
	testl	%edx, %edx
	je	.L24
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%esi, %eax
	movl	%edx, %ecx
	movl	%edx, %esi
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L13
.L12:
	movl	%r11d, %eax
	subl	%ebx, %edi
	cltd
	idivl	%ecx
	movl	%eax, %r11d
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	movl	%edi, %ecx
	negl	%ecx
	cmovs	%edi, %ecx
	movl	%eax, %ebp
	movl	%eax, %r10d
	testl	%ecx, %ecx
	jle	.L29
	testb	%r12b, %r12b
	jne	.L29
	cmpl	%ecx, %r8d
	movl	%ecx, %eax
	movl	%ecx, %esi
	cmovge	%r8d, %eax
	cmovle	%r8d, %esi
	cltd
	idivl	%esi
	testl	%edx, %edx
	je	.L25
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%esi, %eax
	movl	%edx, %ecx
	cltd
	movl	%ecx, %esi
	idivl	%ecx
	testl	%edx, %edx
	jne	.L17
.L16:
	movl	%edi, %eax
	cltd
	idivl	%ecx
	movl	%eax, %edi
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r8d
	cmpl	%eax, %ebp
	jle	.L18
	movl	%r11d, %ecx
	negl	%edi
	negl	%ecx
	movl	%edi, %r9d
.L19:
	movl	%r10d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L1:
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L37
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	imull	%r8d, %edx
	movl	%ebx, %ebp
	imull	%ebx, %ebp
	sall	$2, %edx
	subl	%edx, %ebp
	jns	.L5
.L9:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	xorl	%eax, %eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	je	.L38
	jge	.L26
	negl	%edi
	movl	%r11d, %r9d
	movl	%eax, %r10d
	movl	%ebp, %r8d
	movl	%edi, %ecx
	negl	%r9d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L29:
	testl	%r8d, %r8d
	movl	$1, %eax
	cmovg	%r8d, %eax
	testl	%edi, %edi
	cmove	%eax, %ecx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L28:
	testl	%r8d, %r8d
	movl	$1, %eax
	cmovg	%r8d, %eax
	testl	%r11d, %r11d
	cmove	%eax, %ecx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L26:
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	xorl	%r10d, %r10d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L38:
	cmpl	%edi, %r11d
	movl	%edi, %ecx
	cmovle	%r11d, %ecx
	negl	%ecx
	cmpl	%edi, %r11d
	cmovge	%r11d, %edi
	negl	%edi
	movl	%edi, %r9d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L25:
	movl	%esi, %ecx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%esi, %ecx
	jmp	.L12
.L37:
	call	__stack_chk_fail@PLT
.L34:
	movl	%r8d, 12(%rsp)
	call	sqrt@PLT
	movl	12(%rsp), %r8d
	jmp	.L8
	.cfi_endproc
.LFE40:
	.size	Main, .-Main
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	.p2align 4,,10
	.p2align 3
.L40:
	xorl	%eax, %eax
	call	Main
	testl	%eax, %eax
	je	.L40
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.text
	.p2align 4
	.globl	GCM
	.type	GCM, @function
GCM:
.LFB41:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	jle	.L51
	testl	%esi, %esi
	jle	.L51
	cmpl	%esi, %edi
	movl	%esi, %eax
	movl	%esi, %ecx
	cmovge	%edi, %eax
	cmovle	%edi, %ecx
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	.L50
	.p2align 4,,10
	.p2align 3
.L48:
	movl	%ecx, %eax
	movl	%edx, %r8d
	cltd
	movl	%r8d, %ecx
	idivl	%r8d
	testl	%edx, %edx
	jne	.L48
.L44:
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L51:
	testl	%esi, %esi
	movl	$1, %eax
	cmovle	%eax, %esi
	testl	%edi, %edi
	cmovle	%esi, %edi
	movl	%edi, %r8d
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L50:
	movl	%ecx, %r8d
	jmp	.L44
	.cfi_endproc
.LFE41:
	.size	GCM, .-GCM
	.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 %d"
.LC1:
	.string	"Impossible"
.LC3:
	.string	"%d %d %d %d\n"
	.text
	.p2align 4
	.globl	Main
	.type	Main, @function
Main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$48, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rcx
	leaq	32(%rsp), %rdx
	movl	$0, 28(%rsp)
	leaq	28(%rsp), %rsi
	movl	$0, 32(%rsp)
	movl	$0, 36(%rsp)
	call	__isoc99_scanf@PLT
	movl	%eax, %r8d
	movl	$-1, %eax
	cmpl	$3, %r8d
	jne	.L1
	movl	28(%rsp), %r8d
	movl	32(%rsp), %ebx
	movl	36(%rsp), %edx
	testl	%r8d, %r8d
	jne	.L3
	orl	%ebx, %edx
	movl	$1, %eax
	je	.L1
	movl	%ebx, %ebp
	imull	%ebx, %ebp
.L5:
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ebp, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L34
	sqrtsd	%xmm0, %xmm0
.L8:
	cvttsd2sil	%xmm0, %edi
	movl	%edi, %eax
	imull	%edi, %eax
	cmpl	%ebp, %eax
	jne	.L9
	movl	%ebx, %r11d
	addl	%r8d, %r8d
	negl	%r11d
	subl	%edi, %r11d
	movl	%r11d, %ecx
	negl	%ecx
	cmovs	%r11d, %ecx
	testl	%r8d, %r8d
	setle	%r12b
	testl	%ecx, %ecx
	jle	.L28
	testb	%r12b, %r12b
	jne	.L28
	cmpl	%ecx, %r8d
	movl	%ecx, %eax
	movl	%ecx, %esi
	cmovge	%r8d, %eax
	cmovle	%r8d, %esi
	cltd
	idivl	%esi
	testl	%edx, %edx
	je	.L24
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%esi, %eax
	movl	%edx, %ecx
	movl	%edx, %esi
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L13
.L12:
	movl	%r11d, %eax
	subl	%ebx, %edi
	cltd
	idivl	%ecx
	movl	%eax, %r11d
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	movl	%edi, %ecx
	negl	%ecx
	cmovs	%edi, %ecx
	movl	%eax, %ebp
	movl	%eax, %r10d
	testl	%ecx, %ecx
	jle	.L29
	testb	%r12b, %r12b
	jne	.L29
	cmpl	%ecx, %r8d
	movl	%ecx, %eax
	movl	%ecx, %esi
	cmovge	%r8d, %eax
	cmovle	%r8d, %esi
	cltd
	idivl	%esi
	testl	%edx, %edx
	je	.L25
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%esi, %eax
	movl	%edx, %ecx
	cltd
	movl	%ecx, %esi
	idivl	%ecx
	testl	%edx, %edx
	jne	.L17
.L16:
	movl	%edi, %eax
	cltd
	idivl	%ecx
	movl	%eax, %edi
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r8d
	cmpl	%eax, %ebp
	jle	.L18
	movl	%r11d, %ecx
	negl	%edi
	negl	%ecx
	movl	%edi, %r9d
.L19:
	movl	%r10d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L1:
	movq	40(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L37
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	imull	%r8d, %edx
	movl	%ebx, %ebp
	imull	%ebx, %ebp
	sall	$2, %edx
	subl	%edx, %ebp
	jns	.L5
.L9:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	xorl	%eax, %eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	je	.L38
	jge	.L26
	negl	%edi
	movl	%r11d, %r9d
	movl	%eax, %r10d
	movl	%ebp, %r8d
	movl	%edi, %ecx
	negl	%r9d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L29:
	testl	%r8d, %r8d
	movl	$1, %eax
	cmovg	%r8d, %eax
	testl	%edi, %edi
	cmove	%eax, %ecx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L28:
	testl	%r8d, %r8d
	movl	$1, %eax
	cmovg	%r8d, %eax
	testl	%r11d, %r11d
	cmove	%eax, %ecx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L26:
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	xorl	%r10d, %r10d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L38:
	cmpl	%edi, %r11d
	movl	%edi, %ecx
	cmovle	%r11d, %ecx
	negl	%ecx
	cmpl	%edi, %r11d
	cmovge	%r11d, %edi
	negl	%edi
	movl	%edi, %r9d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L25:
	movl	%esi, %ecx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%esi, %ecx
	jmp	.L12
.L37:
	call	__stack_chk_fail@PLT
.L34:
	movl	%r8d, 12(%rsp)
	call	sqrt@PLT
	movl	12(%rsp), %r8d
	jmp	.L8
	.cfi_endproc
.LFE40:
	.size	Main, .-Main
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	.p2align 4,,10
	.p2align 3
.L40:
	xorl	%eax, %eax
	call	Main
	testl	%eax, %eax
	je	.L40
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.text
	.p2align 4
	.globl	GCM
	.type	GCM, @function
GCM:
.LFB41:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	jle	.L51
	testl	%esi, %esi
	jle	.L51
	cmpl	%esi, %edi
	movl	%esi, %eax
	movl	%esi, %ecx
	cmovge	%edi, %eax
	cmovle	%edi, %ecx
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	.L50
	.p2align 4,,10
	.p2align 3
.L48:
	movl	%ecx, %eax
	movl	%edx, %r8d
	cltd
	movl	%r8d, %ecx
	idivl	%r8d
	testl	%edx, %edx
	jne	.L48
.L44:
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L51:
	testl	%esi, %esi
	movl	$1, %eax
	cmovle	%eax, %esi
	testl	%edi, %edi
	cmovle	%esi, %edi
	movl	%edi, %r8d
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L50:
	movl	%ecx, %r8d
	jmp	.L44
	.cfi_endproc
.LFE41:
	.size	GCM, .-GCM
	.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<stdlib.h>
#include<math.h>

typedef struct ANS Ans;
struct ANS{
	int ch;	//?????????
	int pa;	//?????????
};

int Main();
int GCM(int a, int b);	//??£?????´??°a??¨b????????§??¬?´???°????????????

int main(int argc, char *argv[]){
	while( Main() == 0 );
	return 0;
}

int Main(){
	int a = 0, b = 0, c = 0, d = 0, p = 0, q = 0, r = 0, s = 0, gcm = 0;	//ax^2+bx+c=(px+q)(rx+s)=0??¨??????????????????p???s????±??????????d???sqrt(b^2-4ac)??§?????????
	Ans x[2];	//?????????p,r??§????????????q,s??¨?????????
	if( scanf("%d %d %d", &a, &b, &c) != 3 ){ return -1; }
	if( a == 0 && b == 0 && c == 0 ){ return 1; }
	//?§£???????´???°??§????????????????????°?§£????????¨????????????
	if( b * b - 4 * a * c < 0 ){
		printf("Impossible\n");
		return 0;
	}
	d = sqrt(b * b - 4 * a * c);
	//d?????´??°??§?????????
	if( d * d != b * b - 4 * a * c ){ 
		printf("Impossible\n");
		return 0;
	}
	//?§£????±????????´?????????????
	gcm = GCM(abs(-b-d), 2*a);
	x[0].ch = (-b - d) / gcm;
	x[0].pa = (2 * a) / gcm;
	gcm = GCM(abs(-b+d), 2*a);
	x[1].ch = (-b + d) / gcm;
	x[1].pa = (2 * a) / gcm;
	//?????¶???????????????????????????????????????
	if( x[0].pa > x[1].pa ){
		p = x[0].pa;
		q = (-1) * x[0].ch;
		r = x[1].pa;
		s = (-1) * x[1].ch;
	}else if( x[0].pa == x[1].pa ){
		p = x[0].pa;
		r = x[0].pa;
		q = (-1) * (x[0].ch <= x[1].ch ? x[0].ch : x[1].ch);
		s = (-1) * (x[0].ch <= x[1].ch ? x[1].ch : x[0].ch);
	}else if( x[0].pa < x[1].pa ){
		p = x[1].pa;
		q = (-1) * x[1].ch;
		r = x[0].pa;
		s = (-1) * x[0].ch;
	}
	printf("%d %d %d %d\n", p, q, r ,s);
	return 0;
}

int GCM(int a, int b){
	if( a <= 0 || b <= 0 ){ return (a>0?a:(b>0?b:1)); }	//?????§??¬?´???°???1??¨???????????????
	int m = (a>=b?a:b), n = (a>=b?b:a), r = m % n;	//m>=n
	while( r != 0 ){
		m = n;
		n = r;
		r = m % n;
	}
	return n;
}
2 5 4
1 1 1
10 -7 0
1 0 -3
0 0 0
 2 5 2
1 1 1
9 -7 0
1 0 -3
0 0 0
 2 5 4
1 2 1
10 -7 0
1 0 -3
0 0 0
 2 5 2
1 1 1
11 -7 0
1 0 -3
0 0 0
 2 5 4
1 2 1
10 -7 -1
1 0 -3
0 0 0
 2 5 2
1 1 1
10 -7 1
1 0 -3
0 0 0
 2 7 2
1 1 1
9 -7 0
1 0 -3
0 0 0
 2 5 4
1 2 1
10 -11 0
1 0 -3
0 0 0
 2 5 2
1 1 1
11 -10 0
1 0 -3
0 0 0
 2 5 4
1 0 1
10 -7 -1
2 0 -5
0 0 0

Impossible
Impossible
10 -7 1 0
Impossible
 2 1 1 2
Impossible
9 -7 1 0
Impossible
 Impossible
1 1 1 1
10 -7 1 0
Impossible
 2 1 1 2
Impossible
11 -7 1 0
Impossible
 Impossible
1 1 1 1
Impossible
Impossible
 2 1 1 2
Impossible
5 -1 2 -1
Impossible
 Impossible
Impossible
9 -7 1 0
Impossible
 Impossible
1 1 1 1
10 -11 1 0
Impossible
 2 1 1 2
Impossible
11 -10 1 0
Impossible
 Impossible
Impossible
Impossible
Impossible

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

typedef struct ANS Ans;
struct ANS{
	int ch;	//?????????
	int pa;	//?????????
};

int Main();
int GCM(int a, int b);	//??£?????´??°a??¨b????????§??¬?´???°????????????

int main(int argc, char *argv[]){
	while( Main() == 0 );
	return 0;
}

int Main(){
	int a = 0, b = 0, c = 0, d = 0, p = 0, q = 0, r = 0, s = 0, gcm = 0;	//ax^2+bx+c=(px+q)(rx+s)=0??¨??????????????????p???s????±??????????d???sqrt(b^2-4ac)??§?????????
	Ans x[2];	//?????????p,r??§????????????q,s??¨?????????
	if( scanf("%d %d %d", &a, &b, &c) != 3 ){ return -1; }
	if( a == 0 && b == 0 && c == 0 ){ return 1; }
	//?§£???????´???°??§????????????????????°?§£????????¨????????????
	if( b * b - 4 * a * c < 0 ){
		printf("Impossible\n");
		return 0;
	}
	d = sqrt(b * b - 4 * a * c);
	//d?????´??°??§?????????
	if( d * d != b * b - 4 * a * c ){ 
		printf("Impossible\n");
		return 0;
	}
	//?§£????±????????´?????????????
	gcm = GCM(abs(-b-d), 2*a);
	x[0].ch = (-b - d) / gcm;
	x[0].pa = (2 * a) / gcm;
	gcm = GCM(abs(-b+d), 2*a);
	x[1].ch = (-b + d) / gcm;
	x[1].pa = (2 * a) / gcm;
	//?????¶???????????????????????????????????????
	if( x[0].pa > x[1].pa ){
		p = x[0].pa;
		q = (-1) * x[0].ch;
		r = x[1].pa;
		s = (-1) * x[1].ch;
	}else if( x[0].pa == x[1].pa ){
		p = x[0].pa;
		r = x[0].pa;
		q = (-1) * (x[0].ch <= x[1].ch ? x[0].ch : x[1].ch);
		s = (-1) * (x[0].ch <= x[1].ch ? x[1].ch : x[0].ch);
	}else if( x[0].pa < x[1].pa ){
		p = x[1].pa;
		q = (-1) * x[1].ch;
		r = x[0].pa;
		s = (-1) * x[0].ch;
	}
	printf("%d %d %d %d\n", p, q, r ,s);
	return 0;
}

int GCM(int a, int b){
	if( a <= 0 || b <= 0 ){ return (a>0?a:(b>0?b:1)); }	//?????§??¬?´???°???1??¨???????????????
	int m = (a>=b?a:b), n = (a>=b?b:a), r = m % n;	//m>=n
	while( r != 0 ){
		m = n;
		n = r;
		r = m % n;
	}
	return n;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.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	$16, %rsp
	movl	%edi, -4(%rbp)
	movq	%rsi, -16(%rbp)
	nop
.L2:
	movl	$0, %eax
	call	Main
	testl	%eax, %eax
	je	.L2
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"Impossible"
.LC2:
	.string	"%d %d %d %d\n"
	.text
	.globl	Main
	.type	Main, @function
Main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -68(%rbp)
	movl	$0, -64(%rbp)
	movl	$0, -60(%rbp)
	movl	$0, -40(%rbp)
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$0, -36(%rbp)
	leaq	-60(%rbp), %rcx
	leaq	-64(%rbp), %rdx
	leaq	-68(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$3, %eax
	je	.L5
	movl	$-1, %eax
	jmp	.L13
.L5:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jne	.L7
	movl	-64(%rbp), %eax
	testl	%eax, %eax
	jne	.L7
	movl	-60(%rbp), %eax
	testl	%eax, %eax
	jne	.L7
	movl	$1, %eax
	jmp	.L13
.L7:
	movl	-64(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	movl	-68(%rbp), %ecx
	movl	-60(%rbp), %edx
	imull	%ecx, %edx
	sall	$2, %edx
	subl	%edx, %eax
	testl	%eax, %eax
	jns	.L8
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L13
.L8:
	movl	-64(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	movl	-68(%rbp), %ecx
	movl	-60(%rbp), %edx
	imull	%ecx, %edx
	sall	$2, %edx
	subl	%edx, %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -40(%rbp)
	movl	-40(%rbp), %eax
	imull	%eax, %eax
	movl	-64(%rbp), %ecx
	movl	-64(%rbp), %edx
	imull	%ecx, %edx
	movl	-68(%rbp), %esi
	movl	-60(%rbp), %ecx
	imull	%esi, %ecx
	sall	$2, %ecx
	subl	%ecx, %edx
	cmpl	%edx, %eax
	je	.L9
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L13
.L9:
	movl	-68(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-64(%rbp), %eax
	negl	%eax
	subl	-40(%rbp), %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	GCM
	movl	%eax, -36(%rbp)
	movl	-64(%rbp), %eax
	negl	%eax
	subl	-40(%rbp), %eax
	cltd
	idivl	-36(%rbp)
	movl	%eax, -32(%rbp)
	movl	-68(%rbp), %eax
	addl	%eax, %eax
	cltd
	idivl	-36(%rbp)
	movl	%eax, -28(%rbp)
	movl	-68(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-64(%rbp), %ecx
	movl	-40(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	GCM
	movl	%eax, -36(%rbp)
	movl	-64(%rbp), %edx
	movl	-40(%rbp), %eax
	subl	%edx, %eax
	cltd
	idivl	-36(%rbp)
	movl	%eax, -24(%rbp)
	movl	-68(%rbp), %eax
	addl	%eax, %eax
	cltd
	idivl	-36(%rbp)
	movl	%eax, -20(%rbp)
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L10
	movl	-28(%rbp), %eax
	movl	%eax, -56(%rbp)
	movl	-32(%rbp), %eax
	negl	%eax
	movl	%eax, -52(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -48(%rbp)
	movl	-24(%rbp), %eax
	negl	%eax
	movl	%eax, -44(%rbp)
	jmp	.L11
.L10:
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L12
	movl	-28(%rbp), %eax
	movl	%eax, -56(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -48(%rbp)
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	negl	%eax
	movl	%eax, -52(%rbp)
	movl	-24(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	negl	%eax
	movl	%eax, -44(%rbp)
	jmp	.L11
.L12:
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L11
	movl	-20(%rbp), %eax
	movl	%eax, -56(%rbp)
	movl	-24(%rbp), %eax
	negl	%eax
	movl	%eax, -52(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -48(%rbp)
	movl	-32(%rbp), %eax
	negl	%eax
	movl	%eax, -44(%rbp)
.L11:
	movl	-44(%rbp), %esi
	movl	-48(%rbp), %ecx
	movl	-52(%rbp), %edx
	movl	-56(%rbp), %eax
	movl	%esi, %r8d
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L13:
	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
.LFE7:
	.size	Main, .-Main
	.globl	GCM
	.type	GCM, @function
GCM:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	cmpl	$0, -20(%rbp)
	jle	.L16
	cmpl	$0, -24(%rbp)
	jg	.L17
.L16:
	cmpl	$0, -20(%rbp)
	jg	.L18
	movl	-24(%rbp), %eax
	movl	$1, %edx
	testl	%eax, %eax
	cmovle	%edx, %eax
	jmp	.L20
.L18:
	movl	-20(%rbp), %eax
	jmp	.L20
.L17:
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	-4(%rbp), %eax
	cltd
	idivl	-12(%rbp)
	movl	%edx, -8(%rbp)
	jmp	.L21
.L22:
	movl	-12(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-4(%rbp), %eax
	cltd
	idivl	-12(%rbp)
	movl	%edx, -8(%rbp)
.L21:
	cmpl	$0, -8(%rbp)
	jne	.L22
	movl	-12(%rbp), %eax
.L20:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	GCM, .-GCM
	.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	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	$16, %rsp
	movl	%edi, -4(%rbp)
	movq	%rsi, -16(%rbp)
	nop
.L2:
	movl	$0, %eax
	call	Main
	testl	%eax, %eax
	je	.L2
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"Impossible"
.LC2:
	.string	"%d %d %d %d\n"
	.text
	.globl	Main
	.type	Main, @function
Main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -68(%rbp)
	movl	$0, -64(%rbp)
	movl	$0, -60(%rbp)
	movl	$0, -40(%rbp)
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$0, -36(%rbp)
	leaq	-60(%rbp), %rcx
	leaq	-64(%rbp), %rdx
	leaq	-68(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$3, %eax
	je	.L5
	movl	$-1, %eax
	jmp	.L13
.L5:
	movl	-68(%rbp), %eax
	testl	%eax, %eax
	jne	.L7
	movl	-64(%rbp), %eax
	testl	%eax, %eax
	jne	.L7
	movl	-60(%rbp), %eax
	testl	%eax, %eax
	jne	.L7
	movl	$1, %eax
	jmp	.L13
.L7:
	movl	-64(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	movl	-68(%rbp), %ecx
	movl	-60(%rbp), %edx
	imull	%ecx, %edx
	sall	$2, %edx
	subl	%edx, %eax
	testl	%eax, %eax
	jns	.L8
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L13
.L8:
	movl	-64(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	movl	-68(%rbp), %ecx
	movl	-60(%rbp), %edx
	imull	%ecx, %edx
	sall	$2, %edx
	subl	%edx, %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -40(%rbp)
	movl	-40(%rbp), %eax
	imull	%eax, %eax
	movl	-64(%rbp), %ecx
	movl	-64(%rbp), %edx
	imull	%ecx, %edx
	movl	-68(%rbp), %esi
	movl	-60(%rbp), %ecx
	imull	%esi, %ecx
	sall	$2, %ecx
	subl	%ecx, %edx
	cmpl	%edx, %eax
	je	.L9
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L13
.L9:
	movl	-68(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-64(%rbp), %eax
	negl	%eax
	subl	-40(%rbp), %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	GCM
	movl	%eax, -36(%rbp)
	movl	-64(%rbp), %eax
	negl	%eax
	subl	-40(%rbp), %eax
	cltd
	idivl	-36(%rbp)
	movl	%eax, -32(%rbp)
	movl	-68(%rbp), %eax
	addl	%eax, %eax
	cltd
	idivl	-36(%rbp)
	movl	%eax, -28(%rbp)
	movl	-68(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-64(%rbp), %ecx
	movl	-40(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	GCM
	movl	%eax, -36(%rbp)
	movl	-64(%rbp), %edx
	movl	-40(%rbp), %eax
	subl	%edx, %eax
	cltd
	idivl	-36(%rbp)
	movl	%eax, -24(%rbp)
	movl	-68(%rbp), %eax
	addl	%eax, %eax
	cltd
	idivl	-36(%rbp)
	movl	%eax, -20(%rbp)
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L10
	movl	-28(%rbp), %eax
	movl	%eax, -56(%rbp)
	movl	-32(%rbp), %eax
	negl	%eax
	movl	%eax, -52(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -48(%rbp)
	movl	-24(%rbp), %eax
	negl	%eax
	movl	%eax, -44(%rbp)
	jmp	.L11
.L10:
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L12
	movl	-28(%rbp), %eax
	movl	%eax, -56(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -48(%rbp)
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	negl	%eax
	movl	%eax, -52(%rbp)
	movl	-24(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	negl	%eax
	movl	%eax, -44(%rbp)
	jmp	.L11
.L12:
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L11
	movl	-20(%rbp), %eax
	movl	%eax, -56(%rbp)
	movl	-24(%rbp), %eax
	negl	%eax
	movl	%eax, -52(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -48(%rbp)
	movl	-32(%rbp), %eax
	negl	%eax
	movl	%eax, -44(%rbp)
.L11:
	movl	-44(%rbp), %esi
	movl	-48(%rbp), %ecx
	movl	-52(%rbp), %edx
	movl	-56(%rbp), %eax
	movl	%esi, %r8d
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L13:
	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
.LFE7:
	.size	Main, .-Main
	.globl	GCM
	.type	GCM, @function
GCM:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	cmpl	$0, -20(%rbp)
	jle	.L16
	cmpl	$0, -24(%rbp)
	jg	.L17
.L16:
	cmpl	$0, -20(%rbp)
	jg	.L18
	movl	-24(%rbp), %eax
	movl	$1, %edx
	testl	%eax, %eax
	cmovle	%edx, %eax
	jmp	.L20
.L18:
	movl	-20(%rbp), %eax
	jmp	.L20
.L17:
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	-4(%rbp), %eax
	cltd
	idivl	-12(%rbp)
	movl	%edx, -8(%rbp)
	jmp	.L21
.L22:
	movl	-12(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-4(%rbp), %eax
	cltd
	idivl	-12(%rbp)
	movl	%edx, -8(%rbp)
.L21:
	cmpl	$0, -8(%rbp)
	jne	.L22
	movl	-12(%rbp), %eax
.L20:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	GCM, .-GCM
	.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:
