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

```c
main(a,b,c,p,q,r,s,i,j){for(;scanf("%d%d%d",&a,&b,&c),a;){
if(!c)a==1&&b<0?printf("1 0 %d %d\n",a,b):printf("%d %d 1 0\n",a,b);
else{
	for(r=1;r*r<=a;r++)if(a%r==0)for(p=a/r,s=1;s*s<=abs(c);s++)if(c%s==0)for(j=0;j<2;j++,s=c/s)for(i=0;i<2;i++,s=-s)if(q=c/s,p*s+q*r==b)
		{p==r&&q<s?printf("%d %d %d %d\n",r,s,p,q):printf("%d %d %d %d\n",p,q,r,s);goto next;}
	puts("Impossible");
}next:;}exit(0);}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"1 0 %d %d\n"
.LC1:
	.string	"%d %d 1 0\n"
.LC2:
	.string	"%d %d %d %d\n"
.LC3:
	.string	"Impossible"
.LC4:
	.string	"%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	.LC4(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	%edi, 28(%rsp)
	leaq	20(%rsp), %rbp
	leaq	24(%rsp), %rbx
	movl	%esi, 24(%rsp)
	leaq	28(%rsp), %r15
	movl	%edx, 20(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	28(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L30
	movl	20(%rsp), %ecx
	testl	%ecx, %ecx
	jne	.L31
	movl	24(%rsp), %edx
	cmpl	$1, %r8d
	jne	.L6
	testl	%edx, %edx
	js	.L32
.L6:
	movl	%r8d, %esi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L31:
	movl	%ecx, %eax
	movl	24(%rsp), %edi
	movl	$1, %esi
	negl	%eax
	cmovs	%ecx, %eax
	movl	%eax, %r13d
	testl	%r8d, %r8d
	jle	.L5
	movq	%rbp, (%rsp)
	movq	%rbx, 8(%rsp)
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %esi
	movl	%esi, %eax
	imull	%esi, %eax
	cmpl	%r8d, %eax
	jg	.L33
.L14:
	movl	%r8d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r11d
	testl	%edx, %edx
	jne	.L8
	movl	$1, %r9d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$1, %r9d
	movl	%r9d, %eax
	imull	%r9d, %eax
	cmpl	%r13d, %eax
	jg	.L8
.L13:
	movl	%ecx, %eax
	cltd
	idivl	%r9d
	testl	%edx, %edx
	jne	.L9
	movl	%eax, %r10d
	movl	%esi, %edx
	movl	%r9d, %eax
	imull	%r11d, %eax
	imull	%r10d, %edx
	leal	(%rax,%rdx), %ebx
	cmpl	%edi, %ebx
	je	.L27
	negl	%eax
	movl	%r10d, %ebx
	subl	%edx, %eax
	negl	%ebx
	cmpl	%edi, %eax
	je	.L34
	movl	%ecx, %eax
	movl	%esi, %ebp
	cltd
	idivl	%r10d
	movl	%r11d, %edx
	imull	%r10d, %edx
	imull	%eax, %ebp
	movl	%eax, %r9d
	leal	(%rdx,%rbp), %r12d
	cmpl	%r12d, %edi
	je	.L16
	negl	%edx
	subl	%ebp, %edx
	cmpl	%edi, %edx
	jne	.L9
	movl	%ebx, %eax
	movl	%r9d, %r10d
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	negl	%r10d
	movl	%eax, %r9d
.L10:
	cmpl	%r11d, %esi
	jne	.L12
	cmpl	%r10d, %r9d
	jle	.L12
	movl	%r10d, %r8d
	movl	%r11d, %ecx
	movl	%r9d, %edx
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L30:
	xorl	%edi, %edi
	call	exit@PLT
	.p2align 4,,10
	.p2align 3
.L32:
	movl	$1, %esi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L33:
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
.L5:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%esi, %ecx
	movl	%r9d, %r8d
	movl	%r10d, %edx
	movl	%r11d, %esi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L27:
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	jmp	.L10
.L34:
	movl	%ebx, %r10d
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	negl	%r9d
	jmp	.L10
.L16:
	movl	%r10d, %r9d
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	movl	%eax, %r10d
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"1 0 %d %d\n"
.LC1:
	.string	"%d %d 1 0\n"
.LC2:
	.string	"%d %d %d %d\n"
.LC3:
	.string	"Impossible"
.LC4:
	.string	"%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	.LC4(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	%edi, 28(%rsp)
	leaq	20(%rsp), %rbp
	leaq	24(%rsp), %rbx
	movl	%esi, 24(%rsp)
	leaq	28(%rsp), %r15
	movl	%edx, 20(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	28(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L30
	movl	20(%rsp), %ecx
	testl	%ecx, %ecx
	jne	.L31
	movl	24(%rsp), %edx
	cmpl	$1, %r8d
	jne	.L6
	testl	%edx, %edx
	js	.L32
.L6:
	movl	%r8d, %esi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L31:
	movl	%ecx, %eax
	movl	24(%rsp), %edi
	movl	$1, %esi
	negl	%eax
	cmovs	%ecx, %eax
	movl	%eax, %r13d
	testl	%r8d, %r8d
	jle	.L5
	movq	%rbp, (%rsp)
	movq	%rbx, 8(%rsp)
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %esi
	movl	%esi, %eax
	imull	%esi, %eax
	cmpl	%r8d, %eax
	jg	.L33
.L14:
	movl	%r8d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r11d
	testl	%edx, %edx
	jne	.L8
	movl	$1, %r9d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$1, %r9d
	movl	%r9d, %eax
	imull	%r9d, %eax
	cmpl	%r13d, %eax
	jg	.L8
.L13:
	movl	%ecx, %eax
	cltd
	idivl	%r9d
	testl	%edx, %edx
	jne	.L9
	movl	%eax, %r10d
	movl	%esi, %edx
	movl	%r9d, %eax
	imull	%r11d, %eax
	imull	%r10d, %edx
	leal	(%rax,%rdx), %ebx
	cmpl	%edi, %ebx
	je	.L27
	negl	%eax
	movl	%r10d, %ebx
	subl	%edx, %eax
	negl	%ebx
	cmpl	%edi, %eax
	je	.L34
	movl	%ecx, %eax
	movl	%esi, %ebp
	cltd
	idivl	%r10d
	movl	%r11d, %edx
	imull	%r10d, %edx
	imull	%eax, %ebp
	movl	%eax, %r9d
	leal	(%rdx,%rbp), %r12d
	cmpl	%r12d, %edi
	je	.L16
	negl	%edx
	subl	%ebp, %edx
	cmpl	%edi, %edx
	jne	.L9
	movl	%ebx, %eax
	movl	%r9d, %r10d
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	negl	%r10d
	movl	%eax, %r9d
.L10:
	cmpl	%r11d, %esi
	jne	.L12
	cmpl	%r10d, %r9d
	jle	.L12
	movl	%r10d, %r8d
	movl	%r11d, %ecx
	movl	%r9d, %edx
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L30:
	xorl	%edi, %edi
	call	exit@PLT
	.p2align 4,,10
	.p2align 3
.L32:
	movl	$1, %esi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L33:
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
.L5:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%esi, %ecx
	movl	%r9d, %r8d
	movl	%r10d, %edx
	movl	%r11d, %esi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L27:
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	jmp	.L10
.L34:
	movl	%ebx, %r10d
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	negl	%r9d
	jmp	.L10
.L16:
	movl	%r10d, %r9d
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	movl	%eax, %r10d
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"1 0 %d %d\n"
.LC1:
	.string	"%d %d 1 0\n"
.LC2:
	.string	"%d %d %d %d\n"
.LC3:
	.string	"Impossible"
.LC4:
	.string	"%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	.LC4(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	%edi, 28(%rsp)
	leaq	20(%rsp), %rbp
	leaq	24(%rsp), %rbx
	movl	%esi, 24(%rsp)
	leaq	28(%rsp), %r15
	movl	%edx, 20(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	28(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L30
	movl	20(%rsp), %ecx
	testl	%ecx, %ecx
	jne	.L31
	movl	24(%rsp), %edx
	cmpl	$1, %r8d
	jne	.L6
	testl	%edx, %edx
	js	.L32
.L6:
	movl	%r8d, %esi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L31:
	movl	%ecx, %eax
	movl	24(%rsp), %edi
	movl	$1, %esi
	negl	%eax
	cmovs	%ecx, %eax
	movl	%eax, %r13d
	testl	%r8d, %r8d
	jle	.L5
	movq	%rbp, (%rsp)
	movq	%rbx, 8(%rsp)
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %esi
	movl	%esi, %eax
	imull	%esi, %eax
	cmpl	%r8d, %eax
	jg	.L33
.L14:
	movl	%r8d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r11d
	testl	%edx, %edx
	jne	.L8
	movl	$1, %r9d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$1, %r9d
	movl	%r9d, %eax
	imull	%r9d, %eax
	cmpl	%r13d, %eax
	jg	.L8
.L13:
	movl	%ecx, %eax
	cltd
	idivl	%r9d
	testl	%edx, %edx
	jne	.L9
	movl	%eax, %r10d
	movl	%esi, %edx
	movl	%r9d, %eax
	imull	%r11d, %eax
	imull	%r10d, %edx
	leal	(%rax,%rdx), %ebx
	cmpl	%edi, %ebx
	je	.L27
	negl	%eax
	movl	%r10d, %ebx
	subl	%edx, %eax
	negl	%ebx
	cmpl	%edi, %eax
	je	.L34
	movl	%ecx, %eax
	movl	%esi, %ebp
	cltd
	idivl	%r10d
	movl	%r11d, %edx
	imull	%r10d, %edx
	imull	%eax, %ebp
	movl	%eax, %r9d
	leal	(%rdx,%rbp), %r12d
	cmpl	%r12d, %edi
	je	.L16
	negl	%edx
	subl	%ebp, %edx
	cmpl	%edi, %edx
	jne	.L9
	movl	%ebx, %eax
	movl	%r9d, %r10d
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	negl	%r10d
	movl	%eax, %r9d
.L10:
	cmpl	%r11d, %esi
	jne	.L12
	cmpl	%r10d, %r9d
	jle	.L12
	movl	%r10d, %r8d
	movl	%r11d, %ecx
	movl	%r9d, %edx
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L30:
	xorl	%edi, %edi
	call	exit@PLT
	.p2align 4,,10
	.p2align 3
.L32:
	movl	$1, %esi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L33:
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
.L5:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%esi, %ecx
	movl	%r9d, %r8d
	movl	%r10d, %edx
	movl	%r11d, %esi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L27:
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	jmp	.L10
.L34:
	movl	%ebx, %r10d
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	negl	%r9d
	jmp	.L10
.L16:
	movl	%r10d, %r9d
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	movl	%eax, %r10d
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
```c
main(a,b,c,p,q,r,s,i,j){for(;scanf("%d%d%d",&a,&b,&c),a;){
if(!c)a==1&&b<0?printf("1 0 %d %d\n",a,b):printf("%d %d 1 0\n",a,b);
else{
	for(r=1;r*r<=a;r++)if(a%r==0)for(p=a/r,s=1;s*s<=abs(c);s++)if(c%s==0)for(j=0;j<2;j++,s=c/s)for(i=0;i<2;i++,s=-s)if(q=c/s,p*s+q*r==b)
		{p==r&&q<s?printf("%d %d %d %d\n",r,s,p,q):printf("%d %d %d %d\n",p,q,r,s);goto next;}
	puts("Impossible");
}next:;}exit(0);}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
main(a,b,c,p,q,r,s,i,j){for(;scanf("%d%d%d",&a,&b,&c),a;){
if(!c)a==1&&b<0?printf("1 0 %d %d\n",a,b):printf("%d %d 1 0\n",a,b);
else{
	for(r=1;r*r<=a;r++)if(a%r==0)for(p=a/r,s=1;s*s<=abs(c);s++)if(c%s==0)for(j=0;j<2;j++,s=c/s)for(i=0;i<2;i++,s=-s)if(q=c/s,p*s+q*r==b)
		{p==r&&q<s?printf("%d %d %d %d\n",r,s,p,q):printf("%d %d %d %d\n",p,q,r,s);goto next;}
	puts("Impossible");
}next:;}exit(0);}```

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.
Optimized Assembly Code:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
main(a,b,c,p,q,r,s,i,j){for(;scanf("%d%d%d",&a,&b,&c),a;){
if(!c)a==1&&b<0?printf("1 0 %d %d\n",a,b):printf("%d %d 1 0\n",a,b);
else{
	for(r=1;r*r<=a;r++)if(a%r==0)for(p=a/r,s=1;s*s<=abs(c);s++)if(c%s==0)for(j=0;j<2;j++,s=c/s)for(i=0;i<2;i++,s=-s)if(q=c/s,p*s+q*r==b)
		{p==r&&q<s?printf("%d %d %d %d\n",r,s,p,q):printf("%d %d %d %d\n",p,q,r,s);goto next;}
	puts("Impossible");
}next:;}exit(0);}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"1 0 %d %d\n"
.LC1:
	.string	"%d %d 1 0\n"
.LC2:
	.string	"%d %d %d %d\n"
.LC3:
	.string	"Impossible"
.LC4:
	.string	"%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	.LC4(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	%edi, 28(%rsp)
	leaq	20(%rsp), %rbp
	leaq	24(%rsp), %rbx
	movl	%esi, 24(%rsp)
	leaq	28(%rsp), %r15
	movl	%edx, 20(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	28(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L30
	movl	20(%rsp), %ecx
	testl	%ecx, %ecx
	jne	.L31
	movl	24(%rsp), %edx
	cmpl	$1, %r8d
	jne	.L6
	testl	%edx, %edx
	js	.L32
.L6:
	movl	%r8d, %esi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L31:
	movl	%ecx, %eax
	movl	24(%rsp), %edi
	movl	$1, %esi
	negl	%eax
	cmovs	%ecx, %eax
	movl	%eax, %r13d
	testl	%r8d, %r8d
	jle	.L5
	movq	%rbp, (%rsp)
	movq	%rbx, 8(%rsp)
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %esi
	movl	%esi, %eax
	imull	%esi, %eax
	cmpl	%r8d, %eax
	jg	.L33
.L14:
	movl	%r8d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r11d
	testl	%edx, %edx
	jne	.L8
	movl	$1, %r9d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$1, %r9d
	movl	%r9d, %eax
	imull	%r9d, %eax
	cmpl	%r13d, %eax
	jg	.L8
.L13:
	movl	%ecx, %eax
	cltd
	idivl	%r9d
	testl	%edx, %edx
	jne	.L9
	movl	%eax, %r10d
	movl	%esi, %edx
	movl	%r9d, %eax
	imull	%r11d, %eax
	imull	%r10d, %edx
	leal	(%rax,%rdx), %ebx
	cmpl	%edi, %ebx
	je	.L27
	negl	%eax
	movl	%r10d, %ebx
	subl	%edx, %eax
	negl	%ebx
	cmpl	%edi, %eax
	je	.L34
	movl	%ecx, %eax
	movl	%esi, %ebp
	cltd
	idivl	%r10d
	movl	%r11d, %edx
	imull	%r10d, %edx
	imull	%eax, %ebp
	movl	%eax, %r9d
	leal	(%rdx,%rbp), %r12d
	cmpl	%r12d, %edi
	je	.L16
	negl	%edx
	subl	%ebp, %edx
	cmpl	%edi, %edx
	jne	.L9
	movl	%ebx, %eax
	movl	%r9d, %r10d
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	negl	%r10d
	movl	%eax, %r9d
.L10:
	cmpl	%r11d, %esi
	jne	.L12
	cmpl	%r10d, %r9d
	jle	.L12
	movl	%r10d, %r8d
	movl	%r11d, %ecx
	movl	%r9d, %edx
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L30:
	xorl	%edi, %edi
	call	exit@PLT
	.p2align 4,,10
	.p2align 3
.L32:
	movl	$1, %esi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L33:
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
.L5:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%esi, %ecx
	movl	%r9d, %r8d
	movl	%r10d, %edx
	movl	%r11d, %esi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L27:
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	jmp	.L10
.L34:
	movl	%ebx, %r10d
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	negl	%r9d
	jmp	.L10
.L16:
	movl	%r10d, %r9d
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	movl	%eax, %r10d
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"1 0 %d %d\n"
.LC1:
	.string	"%d %d 1 0\n"
.LC2:
	.string	"%d %d %d %d\n"
.LC3:
	.string	"Impossible"
.LC4:
	.string	"%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	.LC4(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	%edi, 28(%rsp)
	leaq	20(%rsp), %rbp
	leaq	24(%rsp), %rbx
	movl	%esi, 24(%rsp)
	leaq	28(%rsp), %r15
	movl	%edx, 20(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbp, %rcx
	movq	%rbx, %rdx
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	28(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L30
	movl	20(%rsp), %ecx
	testl	%ecx, %ecx
	jne	.L31
	movl	24(%rsp), %edx
	cmpl	$1, %r8d
	jne	.L6
	testl	%edx, %edx
	js	.L32
.L6:
	movl	%r8d, %esi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L31:
	movl	%ecx, %eax
	movl	24(%rsp), %edi
	movl	$1, %esi
	negl	%eax
	cmovs	%ecx, %eax
	movl	%eax, %r13d
	testl	%r8d, %r8d
	jle	.L5
	movq	%rbp, (%rsp)
	movq	%rbx, 8(%rsp)
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$1, %esi
	movl	%esi, %eax
	imull	%esi, %eax
	cmpl	%r8d, %eax
	jg	.L33
.L14:
	movl	%r8d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r11d
	testl	%edx, %edx
	jne	.L8
	movl	$1, %r9d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$1, %r9d
	movl	%r9d, %eax
	imull	%r9d, %eax
	cmpl	%r13d, %eax
	jg	.L8
.L13:
	movl	%ecx, %eax
	cltd
	idivl	%r9d
	testl	%edx, %edx
	jne	.L9
	movl	%eax, %r10d
	movl	%esi, %edx
	movl	%r9d, %eax
	imull	%r11d, %eax
	imull	%r10d, %edx
	leal	(%rax,%rdx), %ebx
	cmpl	%edi, %ebx
	je	.L27
	negl	%eax
	movl	%r10d, %ebx
	subl	%edx, %eax
	negl	%ebx
	cmpl	%edi, %eax
	je	.L34
	movl	%ecx, %eax
	movl	%esi, %ebp
	cltd
	idivl	%r10d
	movl	%r11d, %edx
	imull	%r10d, %edx
	imull	%eax, %ebp
	movl	%eax, %r9d
	leal	(%rdx,%rbp), %r12d
	cmpl	%r12d, %edi
	je	.L16
	negl	%edx
	subl	%ebp, %edx
	cmpl	%edi, %edx
	jne	.L9
	movl	%ebx, %eax
	movl	%r9d, %r10d
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	negl	%r10d
	movl	%eax, %r9d
.L10:
	cmpl	%r11d, %esi
	jne	.L12
	cmpl	%r10d, %r9d
	jle	.L12
	movl	%r10d, %r8d
	movl	%r11d, %ecx
	movl	%r9d, %edx
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L30:
	xorl	%edi, %edi
	call	exit@PLT
	.p2align 4,,10
	.p2align 3
.L32:
	movl	$1, %esi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L33:
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
.L5:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%esi, %ecx
	movl	%r9d, %r8d
	movl	%r10d, %edx
	movl	%r11d, %esi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L2
.L27:
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	jmp	.L10
.L34:
	movl	%ebx, %r10d
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	negl	%r9d
	jmp	.L10
.L16:
	movl	%r10d, %r9d
	movq	(%rsp), %rbp
	movq	8(%rsp), %rbx
	movl	%eax, %r10d
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```