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

typedef long long ll;
typedef int keytype;

int gcd(int a, int b){ return (a % b) ? gcd(b, a % b) : b;}
int lcm(int a, int b){ return (a / gcd(a, b)) * b;}

void quicksort(keytype a[], int first, int last)
{
    int i, j;
    keytype x, t;

    x = a[(first + last) / 2];
    i = first;  j = last;
    for ( ; ; ) {
        while (a[i] < x) i++;
        while (x < a[j]) j--;
        if (i >= j) break;
        t = a[i];  a[i] = a[j];  a[j] = t;
        i++;  j--;
    }
    if (first  < i - 1) quicksort(a, first , i - 1);
    if (j + 1 < last) quicksort(a, j + 1, last);
}

int is_prime(int x){
    if(x <= 1) return 0;
    for(int i = 2; i * i <= x; i++){
        if(x % i == 0) return 0;
    }
    return 1;
}

int is_substr(char s[], char t[], int i){
    int flag = 1;

    if(s[i] == '\0') flag = 0;

    for(int j = 0; j < strlen(t); ++j, ++i){
        if(s[i] != t[j]){
            flag = 0;
            break;
        }
    }
    return flag;
}

// factor list, number of factors, natural number
void factorize(int ftr[], int *num, int n){
    int a = 2, cnt = 0;

    while(n >= a){
        if(n % a == 0){
            n = n / a;
            ftr[cnt++] = a;
        }else{
            a++;
        }
    }
    *num = cnt;
}

void comb(int size1, int size2, int v[size1][size2]){
  for(int i = 0; i < size1; i++){
    v[i][0] = 1;
    v[i][i] = 1;
  }
  for(int k = 1; k < size1; k++){
    for(int j = 1; j < k; j++){
      v[k][j] = (v[k-1][j-1] + v[k-1][j]);
    }
  }
}

int abs_val(int a, int b){
    if(a > b) return a - b;
    else return b - a;
}

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

    int cnt = 0;
    for(int i = 1; i <= k - 1; ++i){
        for(int j = i + 1; j <= k; ++j){
            if(((i + j) % 2 == 1)) cnt++;
        }
    }

    printf("%d\n", cnt);

    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	gcd
	.type	gcd, @function
gcd:
.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)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	je	.L2
	movl	-4(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	-8(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	gcd
	jmp	.L4
.L2:
	movl	-8(%rbp), %eax
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	gcd, .-gcd
	.globl	lcm
	.type	lcm, @function
lcm:
.LFB7:
	.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)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	gcd
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltd
	idivl	%ecx
	imull	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	lcm, .-lcm
	.globl	quicksort
	.type	quicksort, @function
quicksort:
.LFB8:
	.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
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %edx
	movl	-32(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L8
.L9:
	addl	$1, -16(%rbp)
.L8:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -8(%rbp)
	jg	.L9
	jmp	.L10
.L11:
	subl	$1, -12(%rbp)
.L10:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L11
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jge	.L18
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	addl	$1, -16(%rbp)
	subl	$1, -12(%rbp)
	jmp	.L8
.L18:
	nop
	movl	-16(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -28(%rbp)
	jge	.L15
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-28(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quicksort
.L15:
	movl	-12(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -32(%rbp)
	jle	.L19
	movl	-12(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-32(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quicksort
.L19:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	quicksort, .-quicksort
	.globl	is_prime
	.type	is_prime, @function
is_prime:
.LFB9:
	.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)
	cmpl	$1, -20(%rbp)
	jg	.L21
	movl	$0, %eax
	jmp	.L22
.L21:
	movl	$2, -4(%rbp)
	jmp	.L23
.L25:
	movl	-20(%rbp), %eax
	cltd
	idivl	-4(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L24
	movl	$0, %eax
	jmp	.L22
.L24:
	addl	$1, -4(%rbp)
.L23:
	movl	-4(%rbp), %eax
	imull	%eax, %eax
	cmpl	%eax, -20(%rbp)
	jge	.L25
	movl	$1, %eax
.L22:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	is_prime, .-is_prime
	.globl	is_substr
	.type	is_substr, @function
is_substr:
.LFB10:
	.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	$56, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movl	%edx, -52(%rbp)
	movl	$1, -24(%rbp)
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L27
	movl	$0, -24(%rbp)
.L27:
	movl	$0, -20(%rbp)
	jmp	.L28
.L31:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L29
	movl	$0, -24(%rbp)
	jmp	.L30
.L29:
	addl	$1, -20(%rbp)
	addl	$1, -52(%rbp)
.L28:
	movl	-20(%rbp), %eax
	movslq	%eax, %rbx
	movq	-48(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L31
.L30:
	movl	-24(%rbp), %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	is_substr, .-is_substr
	.globl	factorize
	.type	factorize, @function
factorize:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movl	$2, -8(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L34
.L36:
	movl	-36(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L35
	movl	-36(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	%eax, -36(%rbp)
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -4(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rdx)
	jmp	.L34
.L35:
	addl	$1, -8(%rbp)
.L34:
	movl	-36(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L36
	movq	-32(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	factorize, .-factorize
	.globl	comb
	.type	comb, @function
comb:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	.cfi_offset 3, -24
	movl	%edi, -52(%rbp)
	movl	%esi, -56(%rbp)
	movq	%rdx, -64(%rbp)
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -24(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %rcx
	movl	$0, %ebx
	movl	$0, -36(%rbp)
	jmp	.L38
.L39:
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	imulq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-64(%rbp), %rdx
	addq	%rcx, %rdx
	movl	$1, (%rdx)
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	imulq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-64(%rbp), %rdx
	addq	%rdx, %rcx
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rcx,%rdx,4)
	addl	$1, -36(%rbp)
.L38:
	movl	-36(%rbp), %edx
	cmpl	-52(%rbp), %edx
	jl	.L39
	movl	$1, -32(%rbp)
	jmp	.L40
.L43:
	movl	$1, -28(%rbp)
	jmp	.L41
.L42:
	movl	-32(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	imulq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-64(%rbp), %rdx
	addq	%rdx, %rcx
	movl	-28(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %edi
	movl	-32(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	imulq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-64(%rbp), %rdx
	addq	%rdx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %esi
	movl	-32(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	imulq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-64(%rbp), %rdx
	addq	%rdx, %rcx
	addl	%edi, %esi
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	movl	%esi, (%rcx,%rdx,4)
	addl	$1, -28(%rbp)
.L41:
	movl	-28(%rbp), %edx
	cmpl	-32(%rbp), %edx
	jl	.L42
	addl	$1, -32(%rbp)
.L40:
	movl	-32(%rbp), %edx
	cmpl	-52(%rbp), %edx
	jl	.L43
	nop
	nop
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	comb, .-comb
	.globl	abs_val
	.type	abs_val, @function
abs_val:
.LFB13:
	.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
	cmpl	-8(%rbp), %eax
	jle	.L45
	movl	-4(%rbp), %eax
	subl	-8(%rbp), %eax
	jmp	.L46
.L45:
	movl	-8(%rbp), %eax
	subl	-4(%rbp), %eax
.L46:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	abs_val, .-abs_val
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -20(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L48
.L52:
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L49
.L51:
	movl	-16(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L50
	addl	$1, -20(%rbp)
.L50:
	addl	$1, -12(%rbp)
.L49:
	movl	-24(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L51
	addl	$1, -16(%rbp)
.L48:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L52
	movl	-20(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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	gcd
	.type	gcd, @function
gcd:
.LFB51:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	movl	%esi, %edx
	.p2align 4,,10
	.p2align 3
.L2:
	movl	%edx, %ecx
	cltd
	idivl	%ecx
	movl	%ecx, %eax
	testl	%edx, %edx
	jne	.L2
	ret
	.cfi_endproc
.LFE51:
	.size	gcd, .-gcd
	.p2align 4
	.globl	lcm
	.type	lcm, @function
lcm:
.LFB52:
	.cfi_startproc
	endbr64
	movl	%esi, %edx
	movl	%edi, %ecx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%ecx, %eax
	movl	%edx, %ecx
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L6
	movl	%edi, %eax
	cltd
	idivl	%ecx
	imull	%esi, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	lcm, .-lcm
	.p2align 4
	.globl	quicksort
	.type	quicksort, @function
quicksort:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edx, %rax
	movq	%rdi, %r9
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%esi, %r14d
	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	$136, %rsp
	.cfi_def_cfa_offset 192
	movl	%eax, 56(%rsp)
	movq	%rax, 96(%rsp)
.L15:
	movl	56(%rsp), %ecx
	movl	%r14d, %edx
	movslq	%r14d, %rbx
	movl	%r14d, %r8d
	leaq	(%r9,%rbx,4), %rdi
	addl	%ecx, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	movl	(%r9,%rax,4), %esi
	movq	96(%rsp), %rax
.L9:
	movl	(%rdi), %r11d
	leaq	(%r9,%rax,4), %r10
	movl	(%r10), %edx
	cmpl	%esi, %r11d
	jl	.L10
	cmpl	%edx, %esi
	jge	.L11
	leaq	-4(%r9,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rax, %r10
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %ecx
	cmpl	%esi, %edx
	jg	.L12
.L11:
	cmpl	%ecx, %r8d
	jge	.L13
	movl	%edx, (%rdi)
	subl	$1, %ecx
	movl	%r11d, (%r10)
	movslq	%ecx, %rax
.L10:
	addq	$4, %rdi
	addl	$1, %r8d
	jmp	.L9
.L13:
	leal	-1(%r8), %eax
	movl	%ecx, 60(%rsp)
	movl	%eax, 28(%rsp)
	cmpl	%r14d, %eax
	jg	.L109
.L23:
	movl	60(%rsp), %eax
	addl	$1, %eax
	movl	%eax, %r14d
	cmpl	56(%rsp), %eax
	jl	.L15
	addq	$136, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L109:
	.cfi_restore_state
	cltq
	movq	%rax, 88(%rsp)
.L14:
	movl	28(%rsp), %ecx
	movl	%r14d, %r8d
	leaq	(%r9,%rbx,4), %rdi
	movl	%ecx, %edx
	addl	%r14d, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	movl	(%r9,%rax,4), %esi
	movq	88(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L17:
	movl	(%rdi), %r11d
	leaq	(%r9,%rax,4), %r10
	movl	(%r10), %edx
	cmpl	%r11d, %esi
	jg	.L18
	cmpl	%edx, %esi
	jge	.L19
	leaq	-4(%r9,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L20:
	movq	%rax, %r10
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %ecx
	cmpl	%edx, %esi
	jl	.L20
.L19:
	cmpl	%ecx, %r8d
	jge	.L21
	movl	%edx, (%rdi)
	subl	$1, %ecx
	movl	%r11d, (%r10)
	movslq	%ecx, %rax
.L18:
	addq	$4, %rdi
	addl	$1, %r8d
	jmp	.L17
.L21:
	leal	-1(%r8), %eax
	movl	%ecx, 64(%rsp)
	movl	%eax, 32(%rsp)
	cmpl	%eax, %r14d
	jl	.L110
.L30:
	movl	64(%rsp), %eax
	addl	$1, %eax
	movl	%eax, %r14d
	cmpl	%eax, 28(%rsp)
	jle	.L23
	movslq	%eax, %rbx
	jmp	.L14
.L110:
	cltq
	movq	%r9, %r8
	movq	%rax, 80(%rsp)
.L22:
	movl	32(%rsp), %ecx
	movl	%r14d, %r10d
	leaq	(%r8,%rbx,4), %rdi
	movl	%ecx, %edx
	addl	%r14d, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	movl	(%r8,%rax,4), %esi
	movq	80(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L24:
	movl	(%rdi), %r11d
	leaq	(%r8,%rax,4), %r9
	movl	(%r9), %edx
	cmpl	%r11d, %esi
	jg	.L25
	cmpl	%edx, %esi
	jge	.L26
	leaq	-4(%r8,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L27:
	movq	%rax, %r9
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %ecx
	cmpl	%edx, %esi
	jl	.L27
.L26:
	cmpl	%ecx, %r10d
	jge	.L28
	movl	%edx, (%rdi)
	subl	$1, %ecx
	movl	%r11d, (%r9)
	movslq	%ecx, %rax
.L25:
	addq	$4, %rdi
	addl	$1, %r10d
	jmp	.L24
.L28:
	leal	-1(%r10), %eax
	movl	%ecx, 68(%rsp)
	movl	%eax, 36(%rsp)
	cmpl	%eax, %r14d
	jl	.L111
	movl	68(%rsp), %eax
	addl	$1, %eax
	movl	%eax, %r14d
	cmpl	%eax, 32(%rsp)
	jle	.L101
.L121:
	movslq	%eax, %rbx
	jmp	.L22
.L111:
	cltq
	movq	%r8, %r9
	movq	%rax, 72(%rsp)
.L29:
	movl	36(%rsp), %ecx
	movl	%r14d, %r8d
	leaq	(%r9,%rbx,4), %rdi
	movl	%ecx, %edx
	addl	%r14d, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	movl	(%r9,%rax,4), %esi
	movq	72(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L31:
	movl	(%rdi), %r11d
	leaq	(%r9,%rax,4), %r10
	movl	(%r10), %edx
	cmpl	%r11d, %esi
	jg	.L32
	cmpl	%edx, %esi
	jge	.L33
	leaq	-4(%r9,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L34:
	movq	%rax, %r10
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %ecx
	cmpl	%edx, %esi
	jl	.L34
.L33:
	cmpl	%ecx, %r8d
	jge	.L35
	movl	%edx, (%rdi)
	subl	$1, %ecx
	movl	%r11d, (%r10)
	movslq	%ecx, %rax
.L32:
	addq	$4, %rdi
	addl	$1, %r8d
	jmp	.L31
.L35:
	leal	-1(%r8), %eax
	movl	%ecx, 104(%rsp)
	movl	%eax, 24(%rsp)
	cmpl	%eax, %r14d
	jl	.L112
	movl	104(%rsp), %eax
	addl	$1, %eax
	movl	%eax, %r14d
	cmpl	%eax, 36(%rsp)
	jle	.L102
.L120:
	movslq	%eax, %rbx
	jmp	.L29
.L112:
	cltq
	movq	%r9, %r15
	movq	%rax, 48(%rsp)
.L36:
	movl	24(%rsp), %r8d
	movl	%r14d, %r10d
	leaq	(%r15,%rbx,4), %rdi
	movl	%r8d, %edx
	addl	%r14d, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	movl	(%r15,%rax,4), %esi
	movq	48(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L38:
	movl	(%rdi), %r9d
	leaq	(%r15,%rax,4), %rcx
	movl	(%rcx), %edx
	cmpl	%r9d, %esi
	jg	.L39
	cmpl	%edx, %esi
	jge	.L40
	leaq	-4(%r15,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L41:
	movq	%rax, %rcx
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %r8d
	cmpl	%edx, %esi
	jl	.L41
.L40:
	cmpl	%r8d, %r10d
	jge	.L42
	movl	%edx, (%rdi)
	subl	$1, %r8d
	movl	%r9d, (%rcx)
	movslq	%r8d, %rax
.L39:
	addq	$4, %rdi
	addl	$1, %r10d
	jmp	.L38
.L42:
	leal	-1(%r10), %eax
	movl	%eax, 12(%rsp)
	cmpl	%eax, %r14d
	jl	.L113
	leal	1(%r8), %eax
	movl	%eax, %r14d
	cmpl	%eax, 24(%rsp)
	jle	.L103
.L119:
	movslq	%eax, %rbx
	jmp	.L36
.L113:
	cltq
	movl	%r8d, 108(%rsp)
	movq	%rax, 40(%rsp)
.L43:
	movl	12(%rsp), %r9d
	movl	%r14d, %r8d
	leaq	(%r15,%rbx,4), %rdi
	movl	%r9d, %edx
	addl	%r14d, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	movl	(%r15,%rax,4), %esi
	movq	40(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L45:
	movl	(%rdi), %r10d
	leaq	(%r15,%rax,4), %rcx
	movl	(%rcx), %edx
	cmpl	%r10d, %esi
	jg	.L46
	cmpl	%edx, %esi
	jge	.L47
	leaq	-4(%r15,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L48:
	movq	%rax, %rcx
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %r9d
	cmpl	%edx, %esi
	jl	.L48
.L47:
	cmpl	%r9d, %r8d
	jge	.L49
	movl	%edx, (%rdi)
	subl	$1, %r9d
	movl	%r10d, (%rcx)
	movslq	%r9d, %rax
.L46:
	addq	$4, %rdi
	addl	$1, %r8d
	jmp	.L45
.L49:
	leal	-1(%r8), %eax
	movl	%eax, 8(%rsp)
	cmpl	%eax, %r14d
	jl	.L114
	leal	1(%r9), %eax
	movl	%eax, %r14d
	cmpl	%eax, 12(%rsp)
	jle	.L104
.L118:
	movslq	%eax, %rbx
	jmp	.L43
.L114:
	cltq
	movl	%r9d, 112(%rsp)
	movl	%r14d, %r10d
	movq	%rax, 16(%rsp)
.L50:
	movl	8(%rsp), %r12d
	leaq	(%r15,%rbx,4), %rdi
	movl	%r10d, %r14d
	leal	(%r12,%r10), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	movl	(%r15,%rax,4), %esi
	movq	16(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L52:
	movl	(%rdi), %r8d
	leaq	(%r15,%rax,4), %rcx
	movl	(%rcx), %edx
	cmpl	%r8d, %esi
	jg	.L53
	cmpl	%edx, %esi
	jge	.L54
	leaq	-4(%r15,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L55:
	movq	%rax, %rcx
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %r12d
	cmpl	%edx, %esi
	jl	.L55
.L54:
	cmpl	%r12d, %r14d
	jge	.L56
	movl	%edx, (%rdi)
	subl	$1, %r12d
	movl	%r8d, (%rcx)
	movslq	%r12d, %rax
.L53:
	addq	$4, %rdi
	addl	$1, %r14d
	jmp	.L52
.L56:
	subl	$1, %r14d
	cmpl	%r14d, %r10d
	jl	.L115
	leal	1(%r12), %r10d
	cmpl	%r10d, 8(%rsp)
	jle	.L105
.L117:
	movslq	%r10d, %rbx
	jmp	.L50
.L115:
	movl	%r12d, 116(%rsp)
	movslq	%r14d, %rax
	movq	%r15, %r9
	movq	%rax, %r15
.L57:
	leal	(%r14,%r10), %edx
	leaq	(%r9,%rbx,4), %rdi
	movl	%r10d, %r13d
	movl	%r14d, %ebp
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	movl	(%r9,%rax,4), %esi
	movq	%r15, %rax
	.p2align 4,,10
	.p2align 3
.L59:
	movl	(%rdi), %r8d
	leaq	(%r9,%rax,4), %rcx
	movl	(%rcx), %edx
	cmpl	%r8d, %esi
	jg	.L60
	cmpl	%edx, %esi
	jge	.L61
	leaq	-4(%r9,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L62:
	movq	%rax, %rcx
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %ebp
	cmpl	%edx, %esi
	jl	.L62
.L61:
	cmpl	%ebp, %r13d
	jge	.L63
	movl	%edx, (%rdi)
	subl	$1, %ebp
	movl	%r8d, (%rcx)
	movslq	%ebp, %rax
.L60:
	addq	$4, %rdi
	addl	$1, %r13d
	jmp	.L59
.L63:
	subl	$1, %r13d
	movslq	%r13d, %r12
	cmpl	%r13d, %r10d
	jl	.L64
.L72:
	leal	1(%rbp), %r10d
	cmpl	%r10d, %r14d
	jle	.L106
	movslq	%r10d, %rbx
	jmp	.L57
	.p2align 4,,10
	.p2align 3
.L70:
	leal	-1(%r8), %edx
	cmpl	%edx, %r10d
	jl	.L116
.L71:
	leal	1(%rbx), %r10d
	cmpl	%r10d, %r13d
	jle	.L72
	movslq	%r10d, %rbx
.L64:
	leal	0(%r13,%r10), %edx
	leaq	(%r9,%rbx,4), %rdi
	movl	%r10d, %r8d
	movl	%r13d, %ebx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	movl	(%r9,%rax,4), %esi
	movq	%r12, %rax
	.p2align 4,,10
	.p2align 3
.L66:
	movl	(%rdi), %r11d
	leaq	(%r9,%rax,4), %rcx
	movl	(%rcx), %edx
	cmpl	%r11d, %esi
	jg	.L67
	cmpl	%edx, %esi
	jge	.L68
	leaq	-4(%r9,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L69:
	movq	%rax, %rcx
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %ebx
	cmpl	%edx, %esi
	jl	.L69
.L68:
	cmpl	%ebx, %r8d
	jge	.L70
	movl	%edx, (%rdi)
	subl	$1, %ebx
	movl	%r11d, (%rcx)
	movslq	%ebx, %rax
.L67:
	addq	$4, %rdi
	addl	$1, %r8d
	jmp	.L66
.L106:
	movl	116(%rsp), %r12d
	movq	%r9, %r15
	leal	1(%r12), %r10d
	cmpl	%r10d, 8(%rsp)
	jg	.L117
.L105:
	movl	112(%rsp), %r9d
	leal	1(%r9), %eax
	movl	%eax, %r14d
	cmpl	%eax, 12(%rsp)
	jg	.L118
.L104:
	movl	108(%rsp), %r8d
	leal	1(%r8), %eax
	movl	%eax, %r14d
	cmpl	%eax, 24(%rsp)
	jg	.L119
.L103:
	movl	104(%rsp), %eax
	movq	%r15, %r9
	addl	$1, %eax
	movl	%eax, %r14d
	cmpl	%eax, 36(%rsp)
	jg	.L120
.L102:
	movl	68(%rsp), %eax
	movq	%r9, %r8
	addl	$1, %eax
	movl	%eax, %r14d
	cmpl	%eax, 32(%rsp)
	jg	.L121
.L101:
	movq	%r8, %r9
	jmp	.L30
.L116:
	movq	%r9, %rdi
	movl	%r10d, %esi
	movq	%r9, 120(%rsp)
	call	quicksort
	movq	120(%rsp), %r9
	jmp	.L71
	.cfi_endproc
.LFE53:
	.size	quicksort, .-quicksort
	.p2align 4
	.globl	is_prime
	.type	is_prime, @function
is_prime:
.LFB54:
	.cfi_startproc
	endbr64
	xorl	%edx, %edx
	cmpl	$1, %edi
	jle	.L122
	cmpl	$3, %edi
	jle	.L127
	testb	$1, %dil
	je	.L122
	movl	$2, %ecx
	jmp	.L124
	.p2align 4,,10
	.p2align 3
.L125:
	movl	%edi, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	.L122
.L124:
	addl	$1, %ecx
	movl	%ecx, %eax
	imull	%ecx, %eax
	cmpl	%edi, %eax
	jle	.L125
.L127:
	movl	$1, %edx
.L122:
	movl	%edx, %eax
	ret
	.cfi_endproc
.LFE54:
	.size	is_prime, .-is_prime
	.p2align 4
	.globl	is_substr
	.type	is_substr, @function
is_substr:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %r12
	movq	%rsi, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movl	%edx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rsi, %rbx
	call	strlen@PLT
	movslq	%ebp, %rdx
	xorl	%ecx, %ecx
	leaq	(%r12,%rdx), %rsi
	jmp	.L133
	.p2align 4,,10
	.p2align 3
.L135:
	movzbl	(%rsi,%rcx), %r8d
	addq	$1, %rcx
	cmpb	-1(%rbx,%rcx), %r8b
	jne	.L136
.L133:
	cmpq	%rcx, %rax
	jne	.L135
	xorl	%eax, %eax
	cmpb	$0, (%r12,%rdx)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	setne	%al
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L136:
	.cfi_restore_state
	popq	%rbx
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE55:
	.size	is_substr, .-is_substr
	.p2align 4
	.globl	factorize
	.type	factorize, @function
factorize:
.LFB56:
	.cfi_startproc
	endbr64
	movl	%edx, %r8d
	cmpl	$1, %edx
	jle	.L143
	xorl	%r9d, %r9d
	movl	$2, %ecx
	.p2align 4,,10
	.p2align 3
.L142:
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L140
.L146:
	movl	%eax, %r8d
	movl	%ecx, (%rdi,%r9,4)
	leal	1(%r9), %eax
	cmpl	%ecx, %r8d
	jl	.L145
	movslq	%eax, %r9
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	.L146
.L140:
	addl	$1, %ecx
	cmpl	%r8d, %ecx
	jle	.L142
	movl	%r9d, (%rsi)
	ret
	.p2align 4,,10
	.p2align 3
.L145:
	movl	%eax, %r9d
	movl	%r9d, (%rsi)
	ret
	.p2align 4,,10
	.p2align 3
.L143:
	xorl	%r9d, %r9d
	movl	%r9d, (%rsi)
	ret
	.cfi_endproc
.LFE56:
	.size	factorize, .-factorize
	.p2align 4
	.globl	comb
	.type	comb, @function
comb:
.LFB57:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	jle	.L181
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdx, %r8
	movq	%rdx, %rcx
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movslq	%esi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	0(,%r12,4), %rsi
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	4(%rsi), %rdi
	.p2align 4,,10
	.p2align 3
.L151:
	addl	$1, %eax
	movl	$1, (%rcx)
	addq	%rsi, %rcx
	movl	$1, (%rdx)
	addq	%rdi, %rdx
	cmpl	%eax, %ebp
	jne	.L151
	cmpl	$1, %ebp
	jle	.L147
	cmpl	$2, %ebp
	je	.L147
	leaq	1(%r12), %r13
	subl	$1, %ebp
	movq	%r12, %r9
	movl	$1, %edi
	leaq	0(,%r12,4), %rbx
	movl	$2, %r10d
	leaq	(%r8,%rbx), %rdx
	leaq	4(%rbx), %r11
	movq	%rdx, -16(%rsp)
	.p2align 4,,10
	.p2align 3
.L162:
	leaq	(%rdx,%rbx), %rsi
	cmpq	$12, %rbx
	jbe	.L166
	cmpl	$1, %edi
	je	.L166
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L165
	movq	-16(%rsp), %rax
	movl	%edi, %ecx
	leaq	(%r8,%r11), %r15
	shrl	$2, %ecx
	leaq	(%r11,%rax), %r14
	salq	$4, %rcx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L156:
	movdqu	(%rdx,%rax), %xmm0
	movdqu	(%r15,%rax), %xmm2
	paddd	%xmm2, %xmm0
	movups	%xmm0, (%r14,%rax)
	addq	$16, %rax
	cmpq	%rcx, %rax
	jne	.L156
	movl	%edi, %ecx
	andl	$-4, %ecx
	leal	1(%rcx), %eax
	cmpl	%edi, %ecx
	je	.L161
.L155:
	movl	%edi, %r15d
	subl	%ecx, %r15d
	cmpl	$1, %r15d
	je	.L158
	leaq	(%r9,%rcx), %r14
	movq	4(%r8,%r14,4), %xmm0
	movq	(%r8,%r14,4), %xmm1
	leaq	0(%r13,%r9), %r14
	addq	%rcx, %r14
	movl	%r15d, %ecx
	paddd	%xmm1, %xmm0
	andl	$-2, %ecx
	addl	%ecx, %eax
	movq	%xmm0, (%r8,%r14,4)
	cmpl	%ecx, %r15d
	je	.L161
.L158:
	movslq	%eax, %rcx
	subl	$1, %eax
	cltq
	movl	(%rdx,%rcx,4), %r14d
	addl	(%rdx,%rax,4), %r14d
	movl	%r14d, (%rsi,%rcx,4)
.L161:
	addl	$1, %edi
	movq	%rsi, %rdx
	addq	$1, %r10
	addq	%rbx, %r11
	addq	%r12, %r9
	cmpl	%edi, %ebp
	jne	.L162
.L147:
	popq	%rbx
	.cfi_remember_state
	.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
.L166:
	.cfi_restore_state
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L160:
	movl	(%rdx,%rax,4), %ecx
	addl	-4(%rdx,%rax,4), %ecx
	movl	%ecx, (%rsi,%rax,4)
	addq	$1, %rax
	cmpq	%r10, %rax
	jne	.L160
	jmp	.L161
.L165:
	xorl	%ecx, %ecx
	movl	$1, %eax
	jmp	.L155
.L181:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE57:
	.size	comb, .-comb
	.p2align 4
	.globl	abs_val
	.type	abs_val, @function
abs_val:
.LFB58:
	.cfi_startproc
	endbr64
	movl	%edi, %edx
	movl	%esi, %eax
	subl	%esi, %edx
	subl	%edi, %eax
	cmpl	%esi, %edi
	cmovg	%edx, %eax
	ret
	.cfi_endproc
.LFE58:
	.size	abs_val, .-abs_val
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB59:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edi
	cmpl	$1, %edi
	jle	.L201
	movl	$1, %edx
	movdqa	.LC1(%rip), %xmm5
	leal	-1(%rdi), %r9d
	xorl	%r8d, %r8d
	leal	1(%rdx), %ecx
	movdqa	.LC2(%rip), %xmm4
	cmpl	%edi, %ecx
	jg	.L187
	.p2align 4,,10
	.p2align 3
.L215:
	movl	%edi, %eax
	subl	%ecx, %eax
	cmpl	$4, %eax
	jbe	.L202
	leal	2(%rdx), %eax
	leal	3(%rdx), %r11d
	movd	%ecx, %xmm2
	movl	%r9d, %esi
	leal	4(%rdx), %r10d
	movd	%eax, %xmm7
	movd	%r11d, %xmm0
	shrl	$2, %esi
	movd	%r10d, %xmm6
	punpckldq	%xmm7, %xmm2
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	punpckldq	%xmm6, %xmm0
	movd	%edx, %xmm6
	punpcklqdq	%xmm0, %xmm2
	pshufd	$0, %xmm6, %xmm3
	.p2align 4,,10
	.p2align 3
.L189:
	movdqa	%xmm2, %xmm0
	addl	$1, %eax
	paddd	%xmm5, %xmm2
	paddd	%xmm3, %xmm0
	pand	%xmm4, %xmm0
	paddd	%xmm0, %xmm1
	cmpl	%esi, %eax
	jne	.L189
	movdqa	%xmm1, %xmm0
	movl	%r9d, %esi
	psrldq	$8, %xmm0
	andl	$-4, %esi
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %r8d
	leal	(%rsi,%rcx), %eax
	cmpl	%esi, %r9d
	je	.L192
.L188:
	leal	(%rdx,%rax), %esi
	andl	$1, %esi
	cmpl	$1, %esi
	leal	1(%rax), %esi
	sbbl	$-1, %r8d
	cmpl	%edi, %esi
	jg	.L192
	addl	%edx, %esi
	andl	$1, %esi
	cmpl	$1, %esi
	leal	2(%rax), %esi
	sbbl	$-1, %r8d
	cmpl	%edi, %esi
	jg	.L192
	addl	%edx, %esi
	andl	$1, %esi
	cmpl	$1, %esi
	leal	3(%rax), %esi
	sbbl	$-1, %r8d
	cmpl	%esi, %edi
	jl	.L192
	addl	%edx, %esi
	andl	$1, %esi
	cmpl	$1, %esi
	sbbl	$-1, %r8d
	addl	$4, %eax
	cmpl	%eax, %edi
	jl	.L192
	addl	%edx, %eax
	andl	$1, %eax
	cmpl	$1, %eax
	sbbl	$-1, %r8d
.L192:
	subl	$1, %r9d
	cmpl	%edi, %ecx
	je	.L186
	movl	%ecx, %edx
.L216:
	leal	1(%rdx), %ecx
	cmpl	%edi, %ecx
	jle	.L215
.L187:
	subl	$1, %r9d
	movl	%ecx, %edx
	jmp	.L216
.L201:
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L186:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L217
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L202:
	.cfi_restore_state
	movl	%ecx, %eax
	jmp	.L188
.L217:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE59:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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	gcd
	.type	gcd, @function
gcd:
.LFB51:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	movl	%esi, %edx
	.p2align 4,,10
	.p2align 3
.L2:
	movl	%edx, %ecx
	cltd
	idivl	%ecx
	movl	%ecx, %eax
	testl	%edx, %edx
	jne	.L2
	ret
	.cfi_endproc
.LFE51:
	.size	gcd, .-gcd
	.p2align 4
	.globl	lcm
	.type	lcm, @function
lcm:
.LFB52:
	.cfi_startproc
	endbr64
	movl	%esi, %edx
	movl	%edi, %ecx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%ecx, %eax
	movl	%edx, %ecx
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L6
	movl	%edi, %eax
	cltd
	idivl	%ecx
	imull	%esi, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	lcm, .-lcm
	.p2align 4
	.globl	quicksort
	.type	quicksort, @function
quicksort:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edx, %rax
	movq	%rdi, %r9
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	%esi, %r14d
	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	$136, %rsp
	.cfi_def_cfa_offset 192
	movl	%eax, 56(%rsp)
	movq	%rax, 96(%rsp)
.L15:
	movl	56(%rsp), %ecx
	movl	%r14d, %edx
	movslq	%r14d, %rbx
	movl	%r14d, %r8d
	leaq	(%r9,%rbx,4), %rdi
	addl	%ecx, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	movl	(%r9,%rax,4), %esi
	movq	96(%rsp), %rax
.L9:
	movl	(%rdi), %r11d
	leaq	(%r9,%rax,4), %r10
	movl	(%r10), %edx
	cmpl	%esi, %r11d
	jl	.L10
	cmpl	%edx, %esi
	jge	.L11
	leaq	-4(%r9,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rax, %r10
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %ecx
	cmpl	%esi, %edx
	jg	.L12
.L11:
	cmpl	%ecx, %r8d
	jge	.L13
	movl	%edx, (%rdi)
	subl	$1, %ecx
	movl	%r11d, (%r10)
	movslq	%ecx, %rax
.L10:
	addq	$4, %rdi
	addl	$1, %r8d
	jmp	.L9
.L13:
	leal	-1(%r8), %eax
	movl	%ecx, 60(%rsp)
	movl	%eax, 28(%rsp)
	cmpl	%r14d, %eax
	jg	.L109
.L23:
	movl	60(%rsp), %eax
	addl	$1, %eax
	movl	%eax, %r14d
	cmpl	56(%rsp), %eax
	jl	.L15
	addq	$136, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L109:
	.cfi_restore_state
	cltq
	movq	%rax, 88(%rsp)
.L14:
	movl	28(%rsp), %ecx
	movl	%r14d, %r8d
	leaq	(%r9,%rbx,4), %rdi
	movl	%ecx, %edx
	addl	%r14d, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	movl	(%r9,%rax,4), %esi
	movq	88(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L17:
	movl	(%rdi), %r11d
	leaq	(%r9,%rax,4), %r10
	movl	(%r10), %edx
	cmpl	%r11d, %esi
	jg	.L18
	cmpl	%edx, %esi
	jge	.L19
	leaq	-4(%r9,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L20:
	movq	%rax, %r10
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %ecx
	cmpl	%edx, %esi
	jl	.L20
.L19:
	cmpl	%ecx, %r8d
	jge	.L21
	movl	%edx, (%rdi)
	subl	$1, %ecx
	movl	%r11d, (%r10)
	movslq	%ecx, %rax
.L18:
	addq	$4, %rdi
	addl	$1, %r8d
	jmp	.L17
.L21:
	leal	-1(%r8), %eax
	movl	%ecx, 64(%rsp)
	movl	%eax, 32(%rsp)
	cmpl	%eax, %r14d
	jl	.L110
.L30:
	movl	64(%rsp), %eax
	addl	$1, %eax
	movl	%eax, %r14d
	cmpl	%eax, 28(%rsp)
	jle	.L23
	movslq	%eax, %rbx
	jmp	.L14
.L110:
	cltq
	movq	%r9, %r8
	movq	%rax, 80(%rsp)
.L22:
	movl	32(%rsp), %ecx
	movl	%r14d, %r10d
	leaq	(%r8,%rbx,4), %rdi
	movl	%ecx, %edx
	addl	%r14d, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	movl	(%r8,%rax,4), %esi
	movq	80(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L24:
	movl	(%rdi), %r11d
	leaq	(%r8,%rax,4), %r9
	movl	(%r9), %edx
	cmpl	%r11d, %esi
	jg	.L25
	cmpl	%edx, %esi
	jge	.L26
	leaq	-4(%r8,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L27:
	movq	%rax, %r9
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %ecx
	cmpl	%edx, %esi
	jl	.L27
.L26:
	cmpl	%ecx, %r10d
	jge	.L28
	movl	%edx, (%rdi)
	subl	$1, %ecx
	movl	%r11d, (%r9)
	movslq	%ecx, %rax
.L25:
	addq	$4, %rdi
	addl	$1, %r10d
	jmp	.L24
.L28:
	leal	-1(%r10), %eax
	movl	%ecx, 68(%rsp)
	movl	%eax, 36(%rsp)
	cmpl	%eax, %r14d
	jl	.L111
	movl	68(%rsp), %eax
	addl	$1, %eax
	movl	%eax, %r14d
	cmpl	%eax, 32(%rsp)
	jle	.L101
.L121:
	movslq	%eax, %rbx
	jmp	.L22
.L111:
	cltq
	movq	%r8, %r9
	movq	%rax, 72(%rsp)
.L29:
	movl	36(%rsp), %ecx
	movl	%r14d, %r8d
	leaq	(%r9,%rbx,4), %rdi
	movl	%ecx, %edx
	addl	%r14d, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	movl	(%r9,%rax,4), %esi
	movq	72(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L31:
	movl	(%rdi), %r11d
	leaq	(%r9,%rax,4), %r10
	movl	(%r10), %edx
	cmpl	%r11d, %esi
	jg	.L32
	cmpl	%edx, %esi
	jge	.L33
	leaq	-4(%r9,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L34:
	movq	%rax, %r10
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %ecx
	cmpl	%edx, %esi
	jl	.L34
.L33:
	cmpl	%ecx, %r8d
	jge	.L35
	movl	%edx, (%rdi)
	subl	$1, %ecx
	movl	%r11d, (%r10)
	movslq	%ecx, %rax
.L32:
	addq	$4, %rdi
	addl	$1, %r8d
	jmp	.L31
.L35:
	leal	-1(%r8), %eax
	movl	%ecx, 104(%rsp)
	movl	%eax, 24(%rsp)
	cmpl	%eax, %r14d
	jl	.L112
	movl	104(%rsp), %eax
	addl	$1, %eax
	movl	%eax, %r14d
	cmpl	%eax, 36(%rsp)
	jle	.L102
.L120:
	movslq	%eax, %rbx
	jmp	.L29
.L112:
	cltq
	movq	%r9, %r15
	movq	%rax, 48(%rsp)
.L36:
	movl	24(%rsp), %r8d
	movl	%r14d, %r10d
	leaq	(%r15,%rbx,4), %rdi
	movl	%r8d, %edx
	addl	%r14d, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	movl	(%r15,%rax,4), %esi
	movq	48(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L38:
	movl	(%rdi), %r9d
	leaq	(%r15,%rax,4), %rcx
	movl	(%rcx), %edx
	cmpl	%r9d, %esi
	jg	.L39
	cmpl	%edx, %esi
	jge	.L40
	leaq	-4(%r15,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L41:
	movq	%rax, %rcx
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %r8d
	cmpl	%edx, %esi
	jl	.L41
.L40:
	cmpl	%r8d, %r10d
	jge	.L42
	movl	%edx, (%rdi)
	subl	$1, %r8d
	movl	%r9d, (%rcx)
	movslq	%r8d, %rax
.L39:
	addq	$4, %rdi
	addl	$1, %r10d
	jmp	.L38
.L42:
	leal	-1(%r10), %eax
	movl	%eax, 12(%rsp)
	cmpl	%eax, %r14d
	jl	.L113
	leal	1(%r8), %eax
	movl	%eax, %r14d
	cmpl	%eax, 24(%rsp)
	jle	.L103
.L119:
	movslq	%eax, %rbx
	jmp	.L36
.L113:
	cltq
	movl	%r8d, 108(%rsp)
	movq	%rax, 40(%rsp)
.L43:
	movl	12(%rsp), %r9d
	movl	%r14d, %r8d
	leaq	(%r15,%rbx,4), %rdi
	movl	%r9d, %edx
	addl	%r14d, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	movl	(%r15,%rax,4), %esi
	movq	40(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L45:
	movl	(%rdi), %r10d
	leaq	(%r15,%rax,4), %rcx
	movl	(%rcx), %edx
	cmpl	%r10d, %esi
	jg	.L46
	cmpl	%edx, %esi
	jge	.L47
	leaq	-4(%r15,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L48:
	movq	%rax, %rcx
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %r9d
	cmpl	%edx, %esi
	jl	.L48
.L47:
	cmpl	%r9d, %r8d
	jge	.L49
	movl	%edx, (%rdi)
	subl	$1, %r9d
	movl	%r10d, (%rcx)
	movslq	%r9d, %rax
.L46:
	addq	$4, %rdi
	addl	$1, %r8d
	jmp	.L45
.L49:
	leal	-1(%r8), %eax
	movl	%eax, 8(%rsp)
	cmpl	%eax, %r14d
	jl	.L114
	leal	1(%r9), %eax
	movl	%eax, %r14d
	cmpl	%eax, 12(%rsp)
	jle	.L104
.L118:
	movslq	%eax, %rbx
	jmp	.L43
.L114:
	cltq
	movl	%r9d, 112(%rsp)
	movl	%r14d, %r10d
	movq	%rax, 16(%rsp)
.L50:
	movl	8(%rsp), %r12d
	leaq	(%r15,%rbx,4), %rdi
	movl	%r10d, %r14d
	leal	(%r12,%r10), %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	movl	(%r15,%rax,4), %esi
	movq	16(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L52:
	movl	(%rdi), %r8d
	leaq	(%r15,%rax,4), %rcx
	movl	(%rcx), %edx
	cmpl	%r8d, %esi
	jg	.L53
	cmpl	%edx, %esi
	jge	.L54
	leaq	-4(%r15,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L55:
	movq	%rax, %rcx
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %r12d
	cmpl	%edx, %esi
	jl	.L55
.L54:
	cmpl	%r12d, %r14d
	jge	.L56
	movl	%edx, (%rdi)
	subl	$1, %r12d
	movl	%r8d, (%rcx)
	movslq	%r12d, %rax
.L53:
	addq	$4, %rdi
	addl	$1, %r14d
	jmp	.L52
.L56:
	subl	$1, %r14d
	cmpl	%r14d, %r10d
	jl	.L115
	leal	1(%r12), %r10d
	cmpl	%r10d, 8(%rsp)
	jle	.L105
.L117:
	movslq	%r10d, %rbx
	jmp	.L50
.L115:
	movl	%r12d, 116(%rsp)
	movslq	%r14d, %rax
	movq	%r15, %r9
	movq	%rax, %r15
.L57:
	leal	(%r14,%r10), %edx
	leaq	(%r9,%rbx,4), %rdi
	movl	%r10d, %r13d
	movl	%r14d, %ebp
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	movl	(%r9,%rax,4), %esi
	movq	%r15, %rax
	.p2align 4,,10
	.p2align 3
.L59:
	movl	(%rdi), %r8d
	leaq	(%r9,%rax,4), %rcx
	movl	(%rcx), %edx
	cmpl	%r8d, %esi
	jg	.L60
	cmpl	%edx, %esi
	jge	.L61
	leaq	-4(%r9,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L62:
	movq	%rax, %rcx
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %ebp
	cmpl	%edx, %esi
	jl	.L62
.L61:
	cmpl	%ebp, %r13d
	jge	.L63
	movl	%edx, (%rdi)
	subl	$1, %ebp
	movl	%r8d, (%rcx)
	movslq	%ebp, %rax
.L60:
	addq	$4, %rdi
	addl	$1, %r13d
	jmp	.L59
.L63:
	subl	$1, %r13d
	movslq	%r13d, %r12
	cmpl	%r13d, %r10d
	jl	.L64
.L72:
	leal	1(%rbp), %r10d
	cmpl	%r10d, %r14d
	jle	.L106
	movslq	%r10d, %rbx
	jmp	.L57
	.p2align 4,,10
	.p2align 3
.L70:
	leal	-1(%r8), %edx
	cmpl	%edx, %r10d
	jl	.L116
.L71:
	leal	1(%rbx), %r10d
	cmpl	%r10d, %r13d
	jle	.L72
	movslq	%r10d, %rbx
.L64:
	leal	0(%r13,%r10), %edx
	leaq	(%r9,%rbx,4), %rdi
	movl	%r10d, %r8d
	movl	%r13d, %ebx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cltq
	movl	(%r9,%rax,4), %esi
	movq	%r12, %rax
	.p2align 4,,10
	.p2align 3
.L66:
	movl	(%rdi), %r11d
	leaq	(%r9,%rax,4), %rcx
	movl	(%rcx), %edx
	cmpl	%r11d, %esi
	jg	.L67
	cmpl	%edx, %esi
	jge	.L68
	leaq	-4(%r9,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L69:
	movq	%rax, %rcx
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %ebx
	cmpl	%edx, %esi
	jl	.L69
.L68:
	cmpl	%ebx, %r8d
	jge	.L70
	movl	%edx, (%rdi)
	subl	$1, %ebx
	movl	%r11d, (%rcx)
	movslq	%ebx, %rax
.L67:
	addq	$4, %rdi
	addl	$1, %r8d
	jmp	.L66
.L106:
	movl	116(%rsp), %r12d
	movq	%r9, %r15
	leal	1(%r12), %r10d
	cmpl	%r10d, 8(%rsp)
	jg	.L117
.L105:
	movl	112(%rsp), %r9d
	leal	1(%r9), %eax
	movl	%eax, %r14d
	cmpl	%eax, 12(%rsp)
	jg	.L118
.L104:
	movl	108(%rsp), %r8d
	leal	1(%r8), %eax
	movl	%eax, %r14d
	cmpl	%eax, 24(%rsp)
	jg	.L119
.L103:
	movl	104(%rsp), %eax
	movq	%r15, %r9
	addl	$1, %eax
	movl	%eax, %r14d
	cmpl	%eax, 36(%rsp)
	jg	.L120
.L102:
	movl	68(%rsp), %eax
	movq	%r9, %r8
	addl	$1, %eax
	movl	%eax, %r14d
	cmpl	%eax, 32(%rsp)
	jg	.L121
.L101:
	movq	%r8, %r9
	jmp	.L30
.L116:
	movq	%r9, %rdi
	movl	%r10d, %esi
	movq	%r9, 120(%rsp)
	call	quicksort
	movq	120(%rsp), %r9
	jmp	.L71
	.cfi_endproc
.LFE53:
	.size	quicksort, .-quicksort
	.p2align 4
	.globl	is_prime
	.type	is_prime, @function
is_prime:
.LFB54:
	.cfi_startproc
	endbr64
	xorl	%edx, %edx
	cmpl	$1, %edi
	jle	.L122
	cmpl	$3, %edi
	jle	.L127
	testb	$1, %dil
	je	.L122
	movl	$2, %ecx
	jmp	.L124
	.p2align 4,,10
	.p2align 3
.L125:
	movl	%edi, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	.L122
.L124:
	addl	$1, %ecx
	movl	%ecx, %eax
	imull	%ecx, %eax
	cmpl	%edi, %eax
	jle	.L125
.L127:
	movl	$1, %edx
.L122:
	movl	%edx, %eax
	ret
	.cfi_endproc
.LFE54:
	.size	is_prime, .-is_prime
	.p2align 4
	.globl	is_substr
	.type	is_substr, @function
is_substr:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %r12
	movq	%rsi, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movl	%edx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rsi, %rbx
	call	strlen@PLT
	movslq	%ebp, %rdx
	xorl	%ecx, %ecx
	leaq	(%r12,%rdx), %rsi
	jmp	.L133
	.p2align 4,,10
	.p2align 3
.L135:
	movzbl	(%rsi,%rcx), %r8d
	addq	$1, %rcx
	cmpb	-1(%rbx,%rcx), %r8b
	jne	.L136
.L133:
	cmpq	%rcx, %rax
	jne	.L135
	xorl	%eax, %eax
	cmpb	$0, (%r12,%rdx)
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	setne	%al
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L136:
	.cfi_restore_state
	popq	%rbx
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE55:
	.size	is_substr, .-is_substr
	.p2align 4
	.globl	factorize
	.type	factorize, @function
factorize:
.LFB56:
	.cfi_startproc
	endbr64
	movl	%edx, %r8d
	cmpl	$1, %edx
	jle	.L143
	xorl	%r9d, %r9d
	movl	$2, %ecx
	.p2align 4,,10
	.p2align 3
.L142:
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	.L140
.L146:
	movl	%eax, %r8d
	movl	%ecx, (%rdi,%r9,4)
	leal	1(%r9), %eax
	cmpl	%ecx, %r8d
	jl	.L145
	movslq	%eax, %r9
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	.L146
.L140:
	addl	$1, %ecx
	cmpl	%r8d, %ecx
	jle	.L142
	movl	%r9d, (%rsi)
	ret
	.p2align 4,,10
	.p2align 3
.L145:
	movl	%eax, %r9d
	movl	%r9d, (%rsi)
	ret
	.p2align 4,,10
	.p2align 3
.L143:
	xorl	%r9d, %r9d
	movl	%r9d, (%rsi)
	ret
	.cfi_endproc
.LFE56:
	.size	factorize, .-factorize
	.p2align 4
	.globl	comb
	.type	comb, @function
comb:
.LFB57:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	jle	.L181
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdx, %r8
	movq	%rdx, %rcx
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movslq	%esi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	0(,%r12,4), %rsi
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	4(%rsi), %rdi
	.p2align 4,,10
	.p2align 3
.L151:
	addl	$1, %eax
	movl	$1, (%rcx)
	addq	%rsi, %rcx
	movl	$1, (%rdx)
	addq	%rdi, %rdx
	cmpl	%eax, %ebp
	jne	.L151
	cmpl	$1, %ebp
	jle	.L147
	cmpl	$2, %ebp
	je	.L147
	leaq	1(%r12), %r13
	subl	$1, %ebp
	movq	%r12, %r9
	movl	$1, %edi
	leaq	0(,%r12,4), %rbx
	movl	$2, %r10d
	leaq	(%r8,%rbx), %rdx
	leaq	4(%rbx), %r11
	movq	%rdx, -16(%rsp)
	.p2align 4,,10
	.p2align 3
.L162:
	leaq	(%rdx,%rbx), %rsi
	cmpq	$12, %rbx
	jbe	.L166
	cmpl	$1, %edi
	je	.L166
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L165
	movq	-16(%rsp), %rax
	movl	%edi, %ecx
	leaq	(%r8,%r11), %r15
	shrl	$2, %ecx
	leaq	(%r11,%rax), %r14
	salq	$4, %rcx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L156:
	movdqu	(%rdx,%rax), %xmm0
	movdqu	(%r15,%rax), %xmm2
	paddd	%xmm2, %xmm0
	movups	%xmm0, (%r14,%rax)
	addq	$16, %rax
	cmpq	%rcx, %rax
	jne	.L156
	movl	%edi, %ecx
	andl	$-4, %ecx
	leal	1(%rcx), %eax
	cmpl	%edi, %ecx
	je	.L161
.L155:
	movl	%edi, %r15d
	subl	%ecx, %r15d
	cmpl	$1, %r15d
	je	.L158
	leaq	(%r9,%rcx), %r14
	movq	4(%r8,%r14,4), %xmm0
	movq	(%r8,%r14,4), %xmm1
	leaq	0(%r13,%r9), %r14
	addq	%rcx, %r14
	movl	%r15d, %ecx
	paddd	%xmm1, %xmm0
	andl	$-2, %ecx
	addl	%ecx, %eax
	movq	%xmm0, (%r8,%r14,4)
	cmpl	%ecx, %r15d
	je	.L161
.L158:
	movslq	%eax, %rcx
	subl	$1, %eax
	cltq
	movl	(%rdx,%rcx,4), %r14d
	addl	(%rdx,%rax,4), %r14d
	movl	%r14d, (%rsi,%rcx,4)
.L161:
	addl	$1, %edi
	movq	%rsi, %rdx
	addq	$1, %r10
	addq	%rbx, %r11
	addq	%r12, %r9
	cmpl	%edi, %ebp
	jne	.L162
.L147:
	popq	%rbx
	.cfi_remember_state
	.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
.L166:
	.cfi_restore_state
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L160:
	movl	(%rdx,%rax,4), %ecx
	addl	-4(%rdx,%rax,4), %ecx
	movl	%ecx, (%rsi,%rax,4)
	addq	$1, %rax
	cmpq	%r10, %rax
	jne	.L160
	jmp	.L161
.L165:
	xorl	%ecx, %ecx
	movl	$1, %eax
	jmp	.L155
.L181:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE57:
	.size	comb, .-comb
	.p2align 4
	.globl	abs_val
	.type	abs_val, @function
abs_val:
.LFB58:
	.cfi_startproc
	endbr64
	movl	%edi, %edx
	movl	%esi, %eax
	subl	%esi, %edx
	subl	%edi, %eax
	cmpl	%esi, %edi
	cmovg	%edx, %eax
	ret
	.cfi_endproc
.LFE58:
	.size	abs_val, .-abs_val
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB59:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edi
	cmpl	$1, %edi
	jle	.L201
	movl	$1, %edx
	movdqa	.LC1(%rip), %xmm5
	leal	-1(%rdi), %r9d
	xorl	%r8d, %r8d
	leal	1(%rdx), %ecx
	movdqa	.LC2(%rip), %xmm4
	cmpl	%edi, %ecx
	jg	.L187
	.p2align 4,,10
	.p2align 3
.L215:
	movl	%edi, %eax
	subl	%ecx, %eax
	cmpl	$4, %eax
	jbe	.L202
	leal	2(%rdx), %eax
	leal	3(%rdx), %r11d
	movd	%ecx, %xmm2
	movl	%r9d, %esi
	leal	4(%rdx), %r10d
	movd	%eax, %xmm7
	movd	%r11d, %xmm0
	shrl	$2, %esi
	movd	%r10d, %xmm6
	punpckldq	%xmm7, %xmm2
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	punpckldq	%xmm6, %xmm0
	movd	%edx, %xmm6
	punpcklqdq	%xmm0, %xmm2
	pshufd	$0, %xmm6, %xmm3
	.p2align 4,,10
	.p2align 3
.L189:
	movdqa	%xmm2, %xmm0
	addl	$1, %eax
	paddd	%xmm5, %xmm2
	paddd	%xmm3, %xmm0
	pand	%xmm4, %xmm0
	paddd	%xmm0, %xmm1
	cmpl	%esi, %eax
	jne	.L189
	movdqa	%xmm1, %xmm0
	movl	%r9d, %esi
	psrldq	$8, %xmm0
	andl	$-4, %esi
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	%eax, %r8d
	leal	(%rsi,%rcx), %eax
	cmpl	%esi, %r9d
	je	.L192
.L188:
	leal	(%rdx,%rax), %esi
	andl	$1, %esi
	cmpl	$1, %esi
	leal	1(%rax), %esi
	sbbl	$-1, %r8d
	cmpl	%edi, %esi
	jg	.L192
	addl	%edx, %esi
	andl	$1, %esi
	cmpl	$1, %esi
	leal	2(%rax), %esi
	sbbl	$-1, %r8d
	cmpl	%edi, %esi
	jg	.L192
	addl	%edx, %esi
	andl	$1, %esi
	cmpl	$1, %esi
	leal	3(%rax), %esi
	sbbl	$-1, %r8d
	cmpl	%esi, %edi
	jl	.L192
	addl	%edx, %esi
	andl	$1, %esi
	cmpl	$1, %esi
	sbbl	$-1, %r8d
	addl	$4, %eax
	cmpl	%eax, %edi
	jl	.L192
	addl	%edx, %eax
	andl	$1, %eax
	cmpl	$1, %eax
	sbbl	$-1, %r8d
.L192:
	subl	$1, %r9d
	cmpl	%edi, %ecx
	je	.L186
	movl	%ecx, %edx
.L216:
	leal	1(%rdx), %ecx
	cmpl	%edi, %ecx
	jle	.L215
.L187:
	subl	$1, %r9d
	movl	%ecx, %edx
	jmp	.L216
.L201:
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L186:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L217
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L202:
	.cfi_restore_state
	movl	%ecx, %eax
	jmp	.L188
.L217:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE59:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	4
	.long	4
	.long	4
	.long	4
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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 <string.h>
#include <stdlib.h>

typedef long long ll;
typedef int keytype;

int gcd(int a, int b){ return (a % b) ? gcd(b, a % b) : b;}
int lcm(int a, int b){ return (a / gcd(a, b)) * b;}

void quicksort(keytype a[], int first, int last)
{
    int i, j;
    keytype x, t;

    x = a[(first + last) / 2];
    i = first;  j = last;
    for ( ; ; ) {
        while (a[i] < x) i++;
        while (x < a[j]) j--;
        if (i >= j) break;
        t = a[i];  a[i] = a[j];  a[j] = t;
        i++;  j--;
    }
    if (first  < i - 1) quicksort(a, first , i - 1);
    if (j + 1 < last) quicksort(a, j + 1, last);
}

int is_prime(int x){
    if(x <= 1) return 0;
    for(int i = 2; i * i <= x; i++){
        if(x % i == 0) return 0;
    }
    return 1;
}

int is_substr(char s[], char t[], int i){
    int flag = 1;

    if(s[i] == '\0') flag = 0;

    for(int j = 0; j < strlen(t); ++j, ++i){
        if(s[i] != t[j]){
            flag = 0;
            break;
        }
    }
    return flag;
}

// factor list, number of factors, natural number
void factorize(int ftr[], int *num, int n){
    int a = 2, cnt = 0;

    while(n >= a){
        if(n % a == 0){
            n = n / a;
            ftr[cnt++] = a;
        }else{
            a++;
        }
    }
    *num = cnt;
}

void comb(int size1, int size2, int v[size1][size2]){
  for(int i = 0; i < size1; i++){
    v[i][0] = 1;
    v[i][i] = 1;
  }
  for(int k = 1; k < size1; k++){
    for(int j = 1; j < k; j++){
      v[k][j] = (v[k-1][j-1] + v[k-1][j]);
    }
  }
}

int abs_val(int a, int b){
    if(a > b) return a - b;
    else return b - a;
}

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

    int cnt = 0;
    for(int i = 1; i <= k - 1; ++i){
        for(int j = i + 1; j <= k; ++j){
            if(((i + j) % 2 == 1)) cnt++;
        }
    }

    printf("%d\n", cnt);

    return 0;
}

2
 59
 14
 0
 104
 7
 4
 51
 5
 10

1
 870
 49
 0
 2704
 12
 4
 650
 6
 25

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

typedef long long ll;
typedef int keytype;

int gcd(int a, int b){ return (a % b) ? gcd(b, a % b) : b;}
int lcm(int a, int b){ return (a / gcd(a, b)) * b;}

void quicksort(keytype a[], int first, int last)
{
    int i, j;
    keytype x, t;

    x = a[(first + last) / 2];
    i = first;  j = last;
    for ( ; ; ) {
        while (a[i] < x) i++;
        while (x < a[j]) j--;
        if (i >= j) break;
        t = a[i];  a[i] = a[j];  a[j] = t;
        i++;  j--;
    }
    if (first  < i - 1) quicksort(a, first , i - 1);
    if (j + 1 < last) quicksort(a, j + 1, last);
}

int is_prime(int x){
    if(x <= 1) return 0;
    for(int i = 2; i * i <= x; i++){
        if(x % i == 0) return 0;
    }
    return 1;
}

int is_substr(char s[], char t[], int i){
    int flag = 1;

    if(s[i] == '\0') flag = 0;

    for(int j = 0; j < strlen(t); ++j, ++i){
        if(s[i] != t[j]){
            flag = 0;
            break;
        }
    }
    return flag;
}

// factor list, number of factors, natural number
void factorize(int ftr[], int *num, int n){
    int a = 2, cnt = 0;

    while(n >= a){
        if(n % a == 0){
            n = n / a;
            ftr[cnt++] = a;
        }else{
            a++;
        }
    }
    *num = cnt;
}

void comb(int size1, int size2, int v[size1][size2]){
  for(int i = 0; i < size1; i++){
    v[i][0] = 1;
    v[i][i] = 1;
  }
  for(int k = 1; k < size1; k++){
    for(int j = 1; j < k; j++){
      v[k][j] = (v[k-1][j-1] + v[k-1][j]);
    }
  }
}

int abs_val(int a, int b){
    if(a > b) return a - b;
    else return b - a;
}

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

    int cnt = 0;
    for(int i = 1; i <= k - 1; ++i){
        for(int j = i + 1; j <= k; ++j){
            if(((i + j) % 2 == 1)) cnt++;
        }
    }

    printf("%d\n", cnt);

    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	gcd
	.type	gcd, @function
gcd:
.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)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	je	.L2
	movl	-4(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	-8(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	gcd
	jmp	.L4
.L2:
	movl	-8(%rbp), %eax
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	gcd, .-gcd
	.globl	lcm
	.type	lcm, @function
lcm:
.LFB7:
	.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)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	gcd
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltd
	idivl	%ecx
	imull	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	lcm, .-lcm
	.globl	quicksort
	.type	quicksort, @function
quicksort:
.LFB8:
	.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
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %edx
	movl	-32(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L8
.L9:
	addl	$1, -16(%rbp)
.L8:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -8(%rbp)
	jg	.L9
	jmp	.L10
.L11:
	subl	$1, -12(%rbp)
.L10:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L11
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jge	.L18
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	addl	$1, -16(%rbp)
	subl	$1, -12(%rbp)
	jmp	.L8
.L18:
	nop
	movl	-16(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -28(%rbp)
	jge	.L15
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-28(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quicksort
.L15:
	movl	-12(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -32(%rbp)
	jle	.L19
	movl	-12(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-32(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quicksort
.L19:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	quicksort, .-quicksort
	.globl	is_prime
	.type	is_prime, @function
is_prime:
.LFB9:
	.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)
	cmpl	$1, -20(%rbp)
	jg	.L21
	movl	$0, %eax
	jmp	.L22
.L21:
	movl	$2, -4(%rbp)
	jmp	.L23
.L25:
	movl	-20(%rbp), %eax
	cltd
	idivl	-4(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L24
	movl	$0, %eax
	jmp	.L22
.L24:
	addl	$1, -4(%rbp)
.L23:
	movl	-4(%rbp), %eax
	imull	%eax, %eax
	cmpl	%eax, -20(%rbp)
	jge	.L25
	movl	$1, %eax
.L22:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	is_prime, .-is_prime
	.globl	is_substr
	.type	is_substr, @function
is_substr:
.LFB10:
	.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	$56, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movl	%edx, -52(%rbp)
	movl	$1, -24(%rbp)
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L27
	movl	$0, -24(%rbp)
.L27:
	movl	$0, -20(%rbp)
	jmp	.L28
.L31:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L29
	movl	$0, -24(%rbp)
	jmp	.L30
.L29:
	addl	$1, -20(%rbp)
	addl	$1, -52(%rbp)
.L28:
	movl	-20(%rbp), %eax
	movslq	%eax, %rbx
	movq	-48(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L31
.L30:
	movl	-24(%rbp), %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	is_substr, .-is_substr
	.globl	factorize
	.type	factorize, @function
factorize:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movl	$2, -8(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L34
.L36:
	movl	-36(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L35
	movl	-36(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	%eax, -36(%rbp)
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -4(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rdx)
	jmp	.L34
.L35:
	addl	$1, -8(%rbp)
.L34:
	movl	-36(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L36
	movq	-32(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	factorize, .-factorize
	.globl	comb
	.type	comb, @function
comb:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	.cfi_offset 3, -24
	movl	%edi, -52(%rbp)
	movl	%esi, -56(%rbp)
	movq	%rdx, -64(%rbp)
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -24(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %rcx
	movl	$0, %ebx
	movl	$0, -36(%rbp)
	jmp	.L38
.L39:
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	imulq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-64(%rbp), %rdx
	addq	%rcx, %rdx
	movl	$1, (%rdx)
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	imulq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-64(%rbp), %rdx
	addq	%rdx, %rcx
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rcx,%rdx,4)
	addl	$1, -36(%rbp)
.L38:
	movl	-36(%rbp), %edx
	cmpl	-52(%rbp), %edx
	jl	.L39
	movl	$1, -32(%rbp)
	jmp	.L40
.L43:
	movl	$1, -28(%rbp)
	jmp	.L41
.L42:
	movl	-32(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	imulq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-64(%rbp), %rdx
	addq	%rdx, %rcx
	movl	-28(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %edi
	movl	-32(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	imulq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-64(%rbp), %rdx
	addq	%rdx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %esi
	movl	-32(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	imulq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-64(%rbp), %rdx
	addq	%rdx, %rcx
	addl	%edi, %esi
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	movl	%esi, (%rcx,%rdx,4)
	addl	$1, -28(%rbp)
.L41:
	movl	-28(%rbp), %edx
	cmpl	-32(%rbp), %edx
	jl	.L42
	addl	$1, -32(%rbp)
.L40:
	movl	-32(%rbp), %edx
	cmpl	-52(%rbp), %edx
	jl	.L43
	nop
	nop
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	comb, .-comb
	.globl	abs_val
	.type	abs_val, @function
abs_val:
.LFB13:
	.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
	cmpl	-8(%rbp), %eax
	jle	.L45
	movl	-4(%rbp), %eax
	subl	-8(%rbp), %eax
	jmp	.L46
.L45:
	movl	-8(%rbp), %eax
	subl	-4(%rbp), %eax
.L46:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	abs_val, .-abs_val
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -20(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L48
.L52:
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L49
.L51:
	movl	-16(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L50
	addl	$1, -20(%rbp)
.L50:
	addl	$1, -12(%rbp)
.L49:
	movl	-24(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L51
	addl	$1, -16(%rbp)
.L48:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L52
	movl	-20(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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	gcd
	.type	gcd, @function
gcd:
.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)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	je	.L2
	movl	-4(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	-8(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	gcd
	jmp	.L4
.L2:
	movl	-8(%rbp), %eax
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	gcd, .-gcd
	.globl	lcm
	.type	lcm, @function
lcm:
.LFB7:
	.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)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	gcd
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltd
	idivl	%ecx
	imull	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	lcm, .-lcm
	.globl	quicksort
	.type	quicksort, @function
quicksort:
.LFB8:
	.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
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %edx
	movl	-32(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L8
.L9:
	addl	$1, -16(%rbp)
.L8:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -8(%rbp)
	jg	.L9
	jmp	.L10
.L11:
	subl	$1, -12(%rbp)
.L10:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L11
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jge	.L18
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	addl	$1, -16(%rbp)
	subl	$1, -12(%rbp)
	jmp	.L8
.L18:
	nop
	movl	-16(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -28(%rbp)
	jge	.L15
	movl	-16(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-28(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quicksort
.L15:
	movl	-12(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -32(%rbp)
	jle	.L19
	movl	-12(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-32(%rbp), %edx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	quicksort
.L19:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	quicksort, .-quicksort
	.globl	is_prime
	.type	is_prime, @function
is_prime:
.LFB9:
	.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)
	cmpl	$1, -20(%rbp)
	jg	.L21
	movl	$0, %eax
	jmp	.L22
.L21:
	movl	$2, -4(%rbp)
	jmp	.L23
.L25:
	movl	-20(%rbp), %eax
	cltd
	idivl	-4(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L24
	movl	$0, %eax
	jmp	.L22
.L24:
	addl	$1, -4(%rbp)
.L23:
	movl	-4(%rbp), %eax
	imull	%eax, %eax
	cmpl	%eax, -20(%rbp)
	jge	.L25
	movl	$1, %eax
.L22:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	is_prime, .-is_prime
	.globl	is_substr
	.type	is_substr, @function
is_substr:
.LFB10:
	.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	$56, %rsp
	.cfi_offset 3, -24
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movl	%edx, -52(%rbp)
	movl	$1, -24(%rbp)
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L27
	movl	$0, -24(%rbp)
.L27:
	movl	$0, -20(%rbp)
	jmp	.L28
.L31:
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L29
	movl	$0, -24(%rbp)
	jmp	.L30
.L29:
	addl	$1, -20(%rbp)
	addl	$1, -52(%rbp)
.L28:
	movl	-20(%rbp), %eax
	movslq	%eax, %rbx
	movq	-48(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L31
.L30:
	movl	-24(%rbp), %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	is_substr, .-is_substr
	.globl	factorize
	.type	factorize, @function
factorize:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movl	$2, -8(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L34
.L36:
	movl	-36(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L35
	movl	-36(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	%eax, -36(%rbp)
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -4(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-8(%rbp), %eax
	movl	%eax, (%rdx)
	jmp	.L34
.L35:
	addl	$1, -8(%rbp)
.L34:
	movl	-36(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L36
	movq	-32(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	factorize, .-factorize
	.globl	comb
	.type	comb, @function
comb:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	.cfi_offset 3, -24
	movl	%edi, -52(%rbp)
	movl	%esi, -56(%rbp)
	movq	%rdx, -64(%rbp)
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -24(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %rcx
	movl	$0, %ebx
	movl	$0, -36(%rbp)
	jmp	.L38
.L39:
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	imulq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-64(%rbp), %rdx
	addq	%rcx, %rdx
	movl	$1, (%rdx)
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	imulq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-64(%rbp), %rdx
	addq	%rdx, %rcx
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rcx,%rdx,4)
	addl	$1, -36(%rbp)
.L38:
	movl	-36(%rbp), %edx
	cmpl	-52(%rbp), %edx
	jl	.L39
	movl	$1, -32(%rbp)
	jmp	.L40
.L43:
	movl	$1, -28(%rbp)
	jmp	.L41
.L42:
	movl	-32(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	imulq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-64(%rbp), %rdx
	addq	%rdx, %rcx
	movl	-28(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %edi
	movl	-32(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	imulq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-64(%rbp), %rdx
	addq	%rdx, %rcx
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %esi
	movl	-32(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	imulq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-64(%rbp), %rdx
	addq	%rdx, %rcx
	addl	%edi, %esi
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	movl	%esi, (%rcx,%rdx,4)
	addl	$1, -28(%rbp)
.L41:
	movl	-28(%rbp), %edx
	cmpl	-32(%rbp), %edx
	jl	.L42
	addl	$1, -32(%rbp)
.L40:
	movl	-32(%rbp), %edx
	cmpl	-52(%rbp), %edx
	jl	.L43
	nop
	nop
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	comb, .-comb
	.globl	abs_val
	.type	abs_val, @function
abs_val:
.LFB13:
	.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
	cmpl	-8(%rbp), %eax
	jle	.L45
	movl	-4(%rbp), %eax
	subl	-8(%rbp), %eax
	jmp	.L46
.L45:
	movl	-8(%rbp), %eax
	subl	-4(%rbp), %eax
.L46:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	abs_val, .-abs_val
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -20(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L48
.L52:
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L49
.L51:
	movl	-16(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L50
	addl	$1, -20(%rbp)
.L50:
	addl	$1, -12(%rbp)
.L49:
	movl	-24(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L51
	addl	$1, -16(%rbp)
.L48:
	movl	-24(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L52
	movl	-20(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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:
