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 ads(int a,int b){

  if(a < b){
    int temp = a;
    a = b;
    b = temp;
  }

  if(b == 0){
    return a;
  }
  ads(b, a%b);
}

int main(void){
  int n , k;
  scanf("%d %d",&n ,&k);

  int a[n] , max = 0;
  for(int i = 0;i < n;i ++){
    scanf("%d",&a[i]);
    if(max < a[i]){
      max = a[i];
    }
  }

  int g = a[0];
  for(int i = 1;i < n;i ++){
    g = ads(g,a[i]);
  }

  if(k%g == 0 && max >= k){
    printf("POSSIBLE\n");
  }

  else{
    printf("IMPOSSIBLE\n");
  }

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	ads
	.type	ads, @function
ads:
.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	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jge	.L2
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, -24(%rbp)
.L2:
	cmpl	$0, -24(%rbp)
	jne	.L3
	movl	-20(%rbp), %eax
	jmp	.L1
.L3:
	movl	-20(%rbp), %eax
	cltd
	idivl	-24(%rbp)
	movl	-24(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	ads
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ads, .-ads
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"POSSIBLE"
.LC3:
	.string	"IMPOSSIBLE"
	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-92(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L6:
	cmpq	%rdx, %rsp
	je	.L7
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L6
.L7:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L8
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L8:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -88(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L9
.L11:
	movl	-84(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -88(%rbp)
	jge	.L10
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -88(%rbp)
.L10:
	addl	$1, -84(%rbp)
.L9:
	movl	-96(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L11
	movq	-64(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movl	$1, -76(%rbp)
	jmp	.L12
.L13:
	movq	-64(%rbp), %rax
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	-80(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	ads
	movl	%eax, -80(%rbp)
	addl	$1, -76(%rbp)
.L12:
	movl	-96(%rbp), %eax
	cmpl	%eax, -76(%rbp)
	jl	.L13
	movl	-92(%rbp), %eax
	cltd
	idivl	-80(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L14
	movl	-92(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L14
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L15
.L14:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L15:
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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	ads
	.type	ads, @function
ads:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	cltd
	idivl	%edi
.L4:
	cmpl	%edx, %edi
	jl	.L2
	movl	%edx, %eax
	movl	%edi, %edx
	movl	%eax, %edi
.L2:
	movl	%edx, %eax
	testl	%edi, %edi
	jne	.L8
	ret
	.cfi_endproc
.LFE23:
	.size	ads, .-ads
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"POSSIBLE"
.LC3:
	.string	"IMPOSSIBLE"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-64(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L11
.L37:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L37
.L11:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L38
.L12:
	leaq	3(%rsp), %r13
	movq	%r13, %rax
	andq	$-4, %r13
	shrq	$2, %rax
	movq	%rax, -72(%rbp)
	testl	%ecx, %ecx
	jle	.L13
	movq	%r13, %rbx
	xorl	%r15d, %r15d
	leaq	.LC1(%rip), %r14
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movq	%r14, %rdi
	call	__isoc99_scanf@PLT
	movl	(%rbx), %eax
	cmpl	%eax, %r12d
	cmovl	%eax, %r12d
	movl	-64(%rbp), %eax
	addl	$1, %r15d
	addq	$4, %rbx
	cmpl	%r15d, %eax
	jg	.L14
	movq	-72(%rbp), %rbx
	movl	0(,%rbx,4), %ecx
	cmpl	$1, %eax
	jle	.L15
	subl	$2, %eax
	leaq	4(%r13), %rdi
	leaq	8(%r13,%rax,4), %r8
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%ecx, %esi
	movl	(%rdi), %ecx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%edx, %ecx
.L19:
	cmpl	%ecx, %esi
	jl	.L16
	movl	%ecx, %eax
	movl	%esi, %ecx
	movl	%eax, %esi
.L16:
	testl	%esi, %esi
	jne	.L17
	addq	$4, %rdi
	cmpq	%rdi, %r8
	jne	.L18
.L15:
	movl	-60(%rbp), %esi
	movl	%esi, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L20
	cmpl	%r12d, %esi
	jle	.L39
.L20:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L21:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L40
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L39:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L21
.L38:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L12
.L13:
	movq	-72(%rbp), %rax
	xorl	%r12d, %r12d
	movl	0(,%rax,4), %ecx
	jmp	.L15
.L40:
	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	ads
	.type	ads, @function
ads:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	cltd
	idivl	%edi
.L4:
	cmpl	%edx, %edi
	jl	.L2
	movl	%edx, %eax
	movl	%edi, %edx
	movl	%eax, %edi
.L2:
	movl	%edx, %eax
	testl	%edi, %edi
	jne	.L8
	ret
	.cfi_endproc
.LFE23:
	.size	ads, .-ads
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"POSSIBLE"
.LC3:
	.string	"IMPOSSIBLE"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-64(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L11
.L37:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L37
.L11:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L38
.L12:
	leaq	3(%rsp), %r13
	movq	%r13, %rax
	andq	$-4, %r13
	shrq	$2, %rax
	movq	%rax, -72(%rbp)
	testl	%ecx, %ecx
	jle	.L13
	movq	%r13, %rbx
	xorl	%r15d, %r15d
	leaq	.LC1(%rip), %r14
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movq	%r14, %rdi
	call	__isoc99_scanf@PLT
	movl	(%rbx), %eax
	cmpl	%eax, %r12d
	cmovl	%eax, %r12d
	movl	-64(%rbp), %eax
	addl	$1, %r15d
	addq	$4, %rbx
	cmpl	%r15d, %eax
	jg	.L14
	movq	-72(%rbp), %rbx
	movl	0(,%rbx,4), %ecx
	cmpl	$1, %eax
	jle	.L15
	subl	$2, %eax
	leaq	4(%r13), %rdi
	leaq	8(%r13,%rax,4), %r8
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%ecx, %esi
	movl	(%rdi), %ecx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%edx, %ecx
.L19:
	cmpl	%ecx, %esi
	jl	.L16
	movl	%ecx, %eax
	movl	%esi, %ecx
	movl	%eax, %esi
.L16:
	testl	%esi, %esi
	jne	.L17
	addq	$4, %rdi
	cmpq	%rdi, %r8
	jne	.L18
.L15:
	movl	-60(%rbp), %esi
	movl	%esi, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L20
	cmpl	%r12d, %esi
	jle	.L39
.L20:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L21:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L40
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L39:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L21
.L38:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L12
.L13:
	movq	-72(%rbp), %rax
	xorl	%r12d, %r12d
	movl	0(,%rax,4), %ecx
	jmp	.L15
.L40:
	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 ads(int a,int b){

  if(a < b){
    int temp = a;
    a = b;
    b = temp;
  }

  if(b == 0){
    return a;
  }
  ads(b, a%b);
}

int main(void){
  int n , k;
  scanf("%d %d",&n ,&k);

  int a[n] , max = 0;
  for(int i = 0;i < n;i ++){
    scanf("%d",&a[i]);
    if(max < a[i]){
      max = a[i];
    }
  }

  int g = a[0];
  for(int i = 1;i < n;i ++){
    g = ads(g,a[i]);
  }

  if(k%g == 0 && max >= k){
    printf("POSSIBLE\n");
  }

  else{
    printf("IMPOSSIBLE\n");
  }

  return 0;
}
4 11
11 3 7 10
 3 5
6 9 6
 5 19
10 2 8 6 4
 3 7
18 3 4
 3 11
11 3 7 10
 3 5
6 16 6
 5 19
10 2 8 6 1
 3 7
18 0 4
 2 5
6 16 6
 5 19
10 2 7 6 1

POSSIBLE
 IMPOSSIBLE
 IMPOSSIBLE
 POSSIBLE
 POSSIBLE
 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>

int ads(int a,int b){

  if(a < b){
    int temp = a;
    a = b;
    b = temp;
  }

  if(b == 0){
    return a;
  }
  ads(b, a%b);
}

int main(void){
  int n , k;
  scanf("%d %d",&n ,&k);

  int a[n] , max = 0;
  for(int i = 0;i < n;i ++){
    scanf("%d",&a[i]);
    if(max < a[i]){
      max = a[i];
    }
  }

  int g = a[0];
  for(int i = 1;i < n;i ++){
    g = ads(g,a[i]);
  }

  if(k%g == 0 && max >= k){
    printf("POSSIBLE\n");
  }

  else{
    printf("IMPOSSIBLE\n");
  }

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	ads
	.type	ads, @function
ads:
.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	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jge	.L2
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, -24(%rbp)
.L2:
	cmpl	$0, -24(%rbp)
	jne	.L3
	movl	-20(%rbp), %eax
	jmp	.L1
.L3:
	movl	-20(%rbp), %eax
	cltd
	idivl	-24(%rbp)
	movl	-24(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	ads
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ads, .-ads
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"POSSIBLE"
.LC3:
	.string	"IMPOSSIBLE"
	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-92(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L6:
	cmpq	%rdx, %rsp
	je	.L7
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L6
.L7:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L8
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L8:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -88(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L9
.L11:
	movl	-84(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -88(%rbp)
	jge	.L10
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -88(%rbp)
.L10:
	addl	$1, -84(%rbp)
.L9:
	movl	-96(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L11
	movq	-64(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movl	$1, -76(%rbp)
	jmp	.L12
.L13:
	movq	-64(%rbp), %rax
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	-80(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	ads
	movl	%eax, -80(%rbp)
	addl	$1, -76(%rbp)
.L12:
	movl	-96(%rbp), %eax
	cmpl	%eax, -76(%rbp)
	jl	.L13
	movl	-92(%rbp), %eax
	cltd
	idivl	-80(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L14
	movl	-92(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L14
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L15
.L14:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L15:
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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	ads
	.type	ads, @function
ads:
.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	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jge	.L2
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, -24(%rbp)
.L2:
	cmpl	$0, -24(%rbp)
	jne	.L3
	movl	-20(%rbp), %eax
	jmp	.L1
.L3:
	movl	-20(%rbp), %eax
	cltd
	idivl	-24(%rbp)
	movl	-24(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	ads
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ads, .-ads
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"POSSIBLE"
.LC3:
	.string	"IMPOSSIBLE"
	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-92(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L6:
	cmpq	%rdx, %rsp
	je	.L7
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L6
.L7:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L8
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L8:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -88(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L9
.L11:
	movl	-84(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -88(%rbp)
	jge	.L10
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -88(%rbp)
.L10:
	addl	$1, -84(%rbp)
.L9:
	movl	-96(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L11
	movq	-64(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movl	$1, -76(%rbp)
	jmp	.L12
.L13:
	movq	-64(%rbp), %rax
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	-80(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	ads
	movl	%eax, -80(%rbp)
	addl	$1, -76(%rbp)
.L12:
	movl	-96(%rbp), %eax
	cmpl	%eax, -76(%rbp)
	jl	.L13
	movl	-92(%rbp), %eax
	cltd
	idivl	-80(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L14
	movl	-92(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L14
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L15
.L14:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L15:
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
