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>
#define MAX 21
#define XMAX 50010


int min(int a,int b){
 if(a<b)return a;

return b;
}



void func(int A[],int n,int m){
int X[XMAX];
int Y[XMAX];
int i,j;

for(i=1;i<=n;i++)X[i]=i;

for(i=1;i<m;i++){/*たて*/

 if(i%2==1){

    for(j=1;j<=n;j++){/*よこ*/
       if(A[i]>j)Y[j]=X[j];
       else if(j%A[i]==0)Y[j]=min(X[j],j/A[i]);
       else if(A[i]<j)Y[j]=Y[j-A[i]]+1;

       Y[j]=min(Y[j],X[j]);
    }

 }


 else if(i%2==0){

    for(j=1;j<=n;j++){/*よこ*/
       if(A[i]>j)X[j]=Y[j];
       else if(j%A[i]==0)X[j]=min(Y[j],j/A[i]);
       else if(A[i]<j)X[j]=X[j-A[i]]+1;

       X[j]=min(Y[j],X[j]);
    }

 }



}


if(m%2==1)printf("%d\n",X[n]);
else if(m%2==0)printf("%d\n",Y[n]);

return;
}

void swap(int A[],int a,int b){
int temp;
temp=A[a];
A[a]=A[b];
A[b]=temp;

return;
}


void bubblesort(int A[],int m){
int i,j;

for(i=1;i<m;i++){
 for(j=0;j<m-i;j++){
   if(A[j]>A[j+1])swap(A,j,j+1);
 }
}


return;
}







int main(){
int n,m,i;
int A[MAX];

scanf("%d %d",&n,&m);
for(i=0;i<m;i++)scanf("%d",&A[i]);


bubblesort(A,m);


func(A,n,m);

return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	func
	.type	func, @function
func:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2816, %rsp
	movq	%rdi, -400120(%rbp)
	movl	%esi, -400124(%rbp)
	movl	%edx, -400128(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -400104(%rbp)
	jmp	.L5
.L6:
	movl	-400104(%rbp), %eax
	cltq
	movl	-400104(%rbp), %edx
	movl	%edx, -400096(%rbp,%rax,4)
	addl	$1, -400104(%rbp)
.L5:
	movl	-400104(%rbp), %eax
	cmpl	-400124(%rbp), %eax
	jle	.L6
	movl	$1, -400104(%rbp)
	jmp	.L7
.L20:
	movl	-400104(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L8
	movl	$1, -400100(%rbp)
	jmp	.L9
.L13:
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -400100(%rbp)
	jge	.L10
	movl	-400100(%rbp), %eax
	cltq
	movl	-400096(%rbp,%rax,4), %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	%edx, -200048(%rbp,%rax,4)
	jmp	.L11
.L10:
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-400100(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L12
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-400100(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%eax, %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	-400096(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	-400100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -200048(%rbp,%rdx,4)
	jmp	.L11
.L12:
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -400100(%rbp)
	jle	.L11
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-400100(%rbp), %eax
	subl	%edx, %eax
	cltq
	movl	-200048(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	%edx, -200048(%rbp,%rax,4)
.L11:
	movl	-400100(%rbp), %eax
	cltq
	movl	-400096(%rbp,%rax,4), %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	-200048(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	-400100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -200048(%rbp,%rdx,4)
	addl	$1, -400100(%rbp)
.L9:
	movl	-400100(%rbp), %eax
	cmpl	-400124(%rbp), %eax
	jle	.L13
	jmp	.L14
.L8:
	movl	-400104(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L14
	movl	$1, -400100(%rbp)
	jmp	.L15
.L19:
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -400100(%rbp)
	jge	.L16
	movl	-400100(%rbp), %eax
	cltq
	movl	-200048(%rbp,%rax,4), %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	%edx, -400096(%rbp,%rax,4)
	jmp	.L17
.L16:
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-400100(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L18
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-400100(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%eax, %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	-200048(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	-400100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -400096(%rbp,%rdx,4)
	jmp	.L17
.L18:
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -400100(%rbp)
	jle	.L17
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-400100(%rbp), %eax
	subl	%edx, %eax
	cltq
	movl	-400096(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	%edx, -400096(%rbp,%rax,4)
.L17:
	movl	-400100(%rbp), %eax
	cltq
	movl	-400096(%rbp,%rax,4), %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	-200048(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	-400100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -400096(%rbp,%rdx,4)
	addl	$1, -400100(%rbp)
.L15:
	movl	-400100(%rbp), %eax
	cmpl	-400124(%rbp), %eax
	jle	.L19
.L14:
	addl	$1, -400104(%rbp)
.L7:
	movl	-400104(%rbp), %eax
	cmpl	-400128(%rbp), %eax
	jl	.L20
	movl	-400128(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L21
	movl	-400124(%rbp), %eax
	cltq
	movl	-400096(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L25
.L21:
	movl	-400128(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L25
	movl	-400124(%rbp), %eax
	cltq
	movl	-200048(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
.L25:
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	func, .-func
	.globl	swap
	.type	swap, @function
swap:
.LFB2:
	.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)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	swap, .-swap
	.globl	bubblesort
	.type	bubblesort, @function
bubblesort:
.LFB3:
	.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	$1, -8(%rbp)
	jmp	.L29
.L33:
	movl	$0, -4(%rbp)
	jmp	.L30
.L32:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L31
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-4(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	swap
.L31:
	addl	$1, -4(%rbp)
.L30:
	movl	-28(%rbp), %eax
	subl	-8(%rbp), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L32
	addl	$1, -8(%rbp)
.L29:
	movl	-8(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L33
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	bubblesort, .-bubblesort
	.section	.rodata
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-104(%rbp), %rdx
	leaq	-108(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -100(%rbp)
	jmp	.L36
.L37:
	leaq	-96(%rbp), %rdx
	movl	-100(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -100(%rbp)
.L36:
	movl	-104(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L37
	movl	-104(%rbp), %edx
	leaq	-96(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	bubblesort
	movl	-104(%rbp), %edx
	movl	-108(%rbp), %ecx
	leaq	-96(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	func
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	min
	.type	min, @function
min:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	func
	.type	func, @function
func:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2808, %rsp
	.cfi_def_cfa_offset 400176
	movq	%fs:40, %rax
	movq	%rax, 400104(%rsp)
	xorl	%eax, %eax
	movslq	%esi, %r13
	movq	%rdi, %rbp
	movl	%edx, %ebx
	testl	%r13d, %r13d
	jle	.L10
	leal	-1(%r13), %eax
	cmpl	$2, %eax
	jbe	.L42
	movl	%r13d, %edx
	movdqa	.LC0(%rip), %xmm0
	leaq	20(%rsp), %rax
	movdqa	.LC1(%rip), %xmm2
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	36(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	movdqa	%xmm0, %xmm1
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	movups	%xmm1, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L8
	movl	%r13d, %edx
	andl	$-4, %edx
	leal	1(%rdx), %eax
	cmpl	%edx, %r13d
	je	.L10
.L7:
	movslq	%eax, %rdx
	movl	%eax, 16(%rsp,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %r13d
	jl	.L10
	movslq	%edx, %rcx
	addl	$2, %eax
	movl	%edx, 16(%rsp,%rcx,4)
	cmpl	%eax, %r13d
	jl	.L10
	movslq	%eax, %rdx
	movl	%eax, 16(%rsp,%rdx,4)
.L10:
	movslq	%ebx, %r14
	movl	$1, %r12d
	cmpl	$1, %ebx
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	movl	%r12d, %r8d
	andl	$1, %r8d
	jne	.L60
	testl	%r13d, %r13d
	jle	.L21
	movl	0(%rbp,%r12,4), %r15d
	cmpl	$1, %r15d
	jle	.L44
	leal	1(%r13), %ecx
	movl	$4, %eax
	leaq	20(%rsp), %rdi
	cmpl	%r15d, %ecx
	leaq	200068(%rsp), %rsi
	cmovg	%r15d, %ecx
	leal	-1(%rcx), %edx
	movl	%ecx, 4(%rsp)
	movl	%edx, 8(%rsp)
	salq	$2, %rdx
	cmpl	$1, %ecx
	cmovle	%rax, %rdx
	call	memcpy@PLT
	movl	4(%rsp), %ecx
	movl	8(%rsp), %r8d
	movl	$1, %eax
	movdqa	.LC1(%rip), %xmm3
	movdqa	.LC2(%rip), %xmm2
	cmpl	$1, %ecx
	cmovg	%r8d, %eax
	cmpl	$4, %ecx
	movl	%eax, %edi
	jle	.L45
	shrl	$2, %eax
	movdqa	.LC0(%rip), %xmm1
	leaq	16(%rsp), %r8
	leaq	200064(%rsp), %r9
	leal	-1(%rax), %edx
	movl	$4, %eax
	salq	$4, %rdx
	addq	$20, %rdx
	.p2align 4,,10
	.p2align 3
.L30:
	movdqu	(%r9,%rax), %xmm4
	movdqa	%xmm1, %xmm0
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	movups	%xmm4, (%r8,%rax)
	addq	$16, %rax
	cmpq	%rax, %rdx
	jne	.L30
	movl	%edi, %edx
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %edx
	movd	%xmm0, %esi
	leal	1(%rdx), %eax
	cmpl	%edx, %edi
	je	.L32
.L29:
	movslq	%eax, %rdx
	movl	200064(%rsp,%rdx,4), %esi
	movl	%esi, 16(%rsp,%rdx,4)
	leal	1(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L32
	movslq	%esi, %rsi
	movl	200064(%rsp,%rsi,4), %edx
	movl	%edx, 16(%rsp,%rsi,4)
	leal	2(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L32
	movslq	%esi, %rsi
	movl	200064(%rsp,%rsi,4), %edx
	movl	%edx, 16(%rsp,%rsi,4)
	leal	3(%rax), %esi
.L32:
	cmpl	%esi, %r13d
	jl	.L21
.L28:
	movslq	%esi, %rcx
	leaq	16(%rsp), %r8
	subl	%r15d, %esi
	leaq	200064(%rsp), %r9
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L61:
	cmpl	%edi, %eax
	cmovg	%edi, %eax
.L34:
	cmpl	%eax, %edi
	cmovg	%eax, %edi
	addl	$1, %esi
	movl	%edi, (%r8,%rcx,4)
	addq	$1, %rcx
	cmpl	%ecx, %r13d
	jl	.L21
.L36:
	movl	%ecx, %eax
	movl	(%r9,%rcx,4), %edi
	cltd
	idivl	%r15d
	testl	%edx, %edx
	je	.L61
	cmpl	%ecx, %r15d
	jl	.L35
	movl	(%r8,%rcx,4), %eax
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L21:
	addq	$1, %r12
	cmpq	%r14, %r12
	jne	.L16
.L6:
	movl	%ebx, %edx
	shrl	$31, %edx
	leal	(%rbx,%rdx), %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	je	.L62
	andl	$1, %ebx
	je	.L63
	movq	400104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	addq	$400120, %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
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	movslq	%esi, %rax
	movl	16(%rsp,%rax,4), %eax
	addl	$1, %eax
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L44:
	movl	$1, %esi
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L60:
	testl	%r13d, %r13d
	jle	.L21
	movl	0(%rbp,%r12,4), %r15d
	cmpl	$1, %r15d
	jle	.L17
	leal	1(%r13), %ecx
	movl	$4, %eax
	leaq	20(%rsp), %rsi
	movl	%r8d, 12(%rsp)
	cmpl	%r15d, %ecx
	leaq	200068(%rsp), %rdi
	cmovg	%r15d, %ecx
	leal	-1(%rcx), %edx
	movl	%ecx, 4(%rsp)
	movl	%edx, 8(%rsp)
	salq	$2, %rdx
	cmpl	$1, %ecx
	cmovle	%rax, %rdx
	call	memcpy@PLT
	movl	4(%rsp), %ecx
	movl	8(%rsp), %r9d
	movl	$1, %eax
	movl	12(%rsp), %r8d
	movdqa	.LC1(%rip), %xmm3
	cmpl	$1, %ecx
	movdqa	.LC2(%rip), %xmm2
	cmovg	%r9d, %eax
	cmpl	$4, %ecx
	movl	%eax, %esi
	jle	.L43
	shrl	$2, %eax
	movdqa	.LC0(%rip), %xmm1
	leaq	16(%rsp), %r8
	leaq	200064(%rsp), %r9
	leal	-1(%rax), %edx
	movl	$4, %eax
	salq	$4, %rdx
	addq	$20, %rdx
	.p2align 4,,10
	.p2align 3
.L19:
	movdqu	(%r8,%rax), %xmm5
	movdqa	%xmm1, %xmm0
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	movups	%xmm5, (%r9,%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L19
	movl	%esi, %edx
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %edx
	movd	%xmm0, %r8d
	leal	1(%rdx), %eax
	cmpl	%esi, %edx
	je	.L22
.L18:
	movslq	%eax, %rdx
	leal	1(%rax), %r8d
	movl	16(%rsp,%rdx,4), %esi
	movl	%esi, 200064(%rsp,%rdx,4)
	cmpl	%r8d, %ecx
	jle	.L22
	movslq	%r8d, %rsi
	leal	2(%rax), %r8d
	movl	16(%rsp,%rsi,4), %edx
	movl	%edx, 200064(%rsp,%rsi,4)
	cmpl	%r8d, %ecx
	jle	.L22
	movslq	%r8d, %rsi
	leal	3(%rax), %r8d
	movl	16(%rsp,%rsi,4), %edx
	movl	%edx, 200064(%rsp,%rsi,4)
.L22:
	cmpl	%r8d, %r13d
	jl	.L21
.L17:
	movl	%r8d, %esi
	movslq	%r8d, %rcx
	leaq	200064(%rsp), %r9
	subl	%r15d, %esi
	leaq	16(%rsp), %r8
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L64:
	cmpl	%edi, %eax
	cmovg	%edi, %eax
.L24:
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	addl	$1, %esi
	movl	%eax, (%r9,%rcx,4)
	addq	$1, %rcx
	cmpl	%ecx, %r13d
	jl	.L21
.L26:
	movl	%ecx, %eax
	movl	(%r8,%rcx,4), %edi
	cltd
	idivl	%r15d
	testl	%edx, %edx
	je	.L64
	cmpl	%ecx, %r15d
	jl	.L25
	movl	(%r9,%rcx,4), %eax
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L25:
	movslq	%esi, %rax
	movl	200064(%rsp,%rax,4), %eax
	addl	$1, %eax
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L63:
	movq	400104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	movl	200064(%rsp,%r13,4), %edx
.L58:
	addq	$400120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L62:
	.cfi_restore_state
	movq	400104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	movl	16(%rsp,%r13,4), %edx
	jmp	.L58
.L45:
	movl	$1, %eax
	jmp	.L29
.L43:
	movl	%r8d, %eax
	jmp	.L18
.L42:
	movl	$1, %eax
	jmp	.L7
.L59:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	func, .-func
	.p2align 4
	.globl	swap
	.type	swap, @function
swap:
.LFB25:
	.cfi_startproc
	endbr64
	movslq	%esi, %rsi
	movslq	%edx, %rdx
	leaq	(%rdi,%rsi,4), %rcx
	leaq	(%rdi,%rdx,4), %rax
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movl	%edx, (%rcx)
	movl	%esi, (%rax)
	ret
	.cfi_endproc
.LFE25:
	.size	swap, .-swap
	.p2align 4
	.globl	bubblesort
	.type	bubblesort, @function
bubblesort:
.LFB26:
	.cfi_startproc
	endbr64
	cmpl	$1, %esi
	jle	.L66
	leal	-2(%rsi), %r8d
	leaq	4(%rdi), %r9
	.p2align 4,,10
	.p2align 3
.L68:
	movl	%r8d, %eax
	movq	%rdi, %rdx
	leaq	(%r9,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L70:
	movq	(%rdx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %ecx
	jle	.L69
	movq	%xmm1, (%rdx)
.L69:
	addq	$4, %rdx
	cmpq	%rsi, %rdx
	jne	.L70
	subl	$1, %r8d
	jnb	.L68
.L66:
	ret
	.cfi_endproc
.LFE26:
	.size	bubblesort, .-bubblesort
	.section	.rodata.str1.1
.LC4:
	.string	"%d %d"
.LC5:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB27:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC4(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC5(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$120, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %r13
	movq	%r13, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	jle	.L76
	.p2align 4,,10
	.p2align 3
.L77:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jg	.L77
.L76:
	movq	%r13, %rdi
	call	bubblesort
	movl	12(%rsp), %edx
	movl	8(%rsp), %esi
	call	func
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L83
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L83:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE27:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.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	min
	.type	min, @function
min:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	func
	.type	func, @function
func:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397368
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2808, %rsp
	.cfi_def_cfa_offset 400176
	movq	%fs:40, %rax
	movq	%rax, 400104(%rsp)
	xorl	%eax, %eax
	movslq	%esi, %r13
	movq	%rdi, %rbp
	movl	%edx, %ebx
	testl	%r13d, %r13d
	jle	.L10
	leal	-1(%r13), %eax
	cmpl	$2, %eax
	jbe	.L42
	movl	%r13d, %edx
	movdqa	.LC0(%rip), %xmm0
	leaq	20(%rsp), %rax
	movdqa	.LC1(%rip), %xmm2
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	36(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	movdqa	%xmm0, %xmm1
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	movups	%xmm1, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L8
	movl	%r13d, %edx
	andl	$-4, %edx
	leal	1(%rdx), %eax
	cmpl	%edx, %r13d
	je	.L10
.L7:
	movslq	%eax, %rdx
	movl	%eax, 16(%rsp,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %r13d
	jl	.L10
	movslq	%edx, %rcx
	addl	$2, %eax
	movl	%edx, 16(%rsp,%rcx,4)
	cmpl	%eax, %r13d
	jl	.L10
	movslq	%eax, %rdx
	movl	%eax, 16(%rsp,%rdx,4)
.L10:
	movslq	%ebx, %r14
	movl	$1, %r12d
	cmpl	$1, %ebx
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	movl	%r12d, %r8d
	andl	$1, %r8d
	jne	.L60
	testl	%r13d, %r13d
	jle	.L21
	movl	0(%rbp,%r12,4), %r15d
	cmpl	$1, %r15d
	jle	.L44
	leal	1(%r13), %ecx
	movl	$4, %eax
	leaq	20(%rsp), %rdi
	cmpl	%r15d, %ecx
	leaq	200068(%rsp), %rsi
	cmovg	%r15d, %ecx
	leal	-1(%rcx), %edx
	movl	%ecx, 4(%rsp)
	movl	%edx, 8(%rsp)
	salq	$2, %rdx
	cmpl	$1, %ecx
	cmovle	%rax, %rdx
	call	memcpy@PLT
	movl	4(%rsp), %ecx
	movl	8(%rsp), %r8d
	movl	$1, %eax
	movdqa	.LC1(%rip), %xmm3
	movdqa	.LC2(%rip), %xmm2
	cmpl	$1, %ecx
	cmovg	%r8d, %eax
	cmpl	$4, %ecx
	movl	%eax, %edi
	jle	.L45
	shrl	$2, %eax
	movdqa	.LC0(%rip), %xmm1
	leaq	16(%rsp), %r8
	leaq	200064(%rsp), %r9
	leal	-1(%rax), %edx
	movl	$4, %eax
	salq	$4, %rdx
	addq	$20, %rdx
	.p2align 4,,10
	.p2align 3
.L30:
	movdqu	(%r9,%rax), %xmm4
	movdqa	%xmm1, %xmm0
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	movups	%xmm4, (%r8,%rax)
	addq	$16, %rax
	cmpq	%rax, %rdx
	jne	.L30
	movl	%edi, %edx
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %edx
	movd	%xmm0, %esi
	leal	1(%rdx), %eax
	cmpl	%edx, %edi
	je	.L32
.L29:
	movslq	%eax, %rdx
	movl	200064(%rsp,%rdx,4), %esi
	movl	%esi, 16(%rsp,%rdx,4)
	leal	1(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L32
	movslq	%esi, %rsi
	movl	200064(%rsp,%rsi,4), %edx
	movl	%edx, 16(%rsp,%rsi,4)
	leal	2(%rax), %esi
	cmpl	%esi, %ecx
	jle	.L32
	movslq	%esi, %rsi
	movl	200064(%rsp,%rsi,4), %edx
	movl	%edx, 16(%rsp,%rsi,4)
	leal	3(%rax), %esi
.L32:
	cmpl	%esi, %r13d
	jl	.L21
.L28:
	movslq	%esi, %rcx
	leaq	16(%rsp), %r8
	subl	%r15d, %esi
	leaq	200064(%rsp), %r9
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L61:
	cmpl	%edi, %eax
	cmovg	%edi, %eax
.L34:
	cmpl	%eax, %edi
	cmovg	%eax, %edi
	addl	$1, %esi
	movl	%edi, (%r8,%rcx,4)
	addq	$1, %rcx
	cmpl	%ecx, %r13d
	jl	.L21
.L36:
	movl	%ecx, %eax
	movl	(%r9,%rcx,4), %edi
	cltd
	idivl	%r15d
	testl	%edx, %edx
	je	.L61
	cmpl	%ecx, %r15d
	jl	.L35
	movl	(%r8,%rcx,4), %eax
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L21:
	addq	$1, %r12
	cmpq	%r14, %r12
	jne	.L16
.L6:
	movl	%ebx, %edx
	shrl	$31, %edx
	leal	(%rbx,%rdx), %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	je	.L62
	andl	$1, %ebx
	je	.L63
	movq	400104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	addq	$400120, %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
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	movslq	%esi, %rax
	movl	16(%rsp,%rax,4), %eax
	addl	$1, %eax
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L44:
	movl	$1, %esi
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L60:
	testl	%r13d, %r13d
	jle	.L21
	movl	0(%rbp,%r12,4), %r15d
	cmpl	$1, %r15d
	jle	.L17
	leal	1(%r13), %ecx
	movl	$4, %eax
	leaq	20(%rsp), %rsi
	movl	%r8d, 12(%rsp)
	cmpl	%r15d, %ecx
	leaq	200068(%rsp), %rdi
	cmovg	%r15d, %ecx
	leal	-1(%rcx), %edx
	movl	%ecx, 4(%rsp)
	movl	%edx, 8(%rsp)
	salq	$2, %rdx
	cmpl	$1, %ecx
	cmovle	%rax, %rdx
	call	memcpy@PLT
	movl	4(%rsp), %ecx
	movl	8(%rsp), %r9d
	movl	$1, %eax
	movl	12(%rsp), %r8d
	movdqa	.LC1(%rip), %xmm3
	cmpl	$1, %ecx
	movdqa	.LC2(%rip), %xmm2
	cmovg	%r9d, %eax
	cmpl	$4, %ecx
	movl	%eax, %esi
	jle	.L43
	shrl	$2, %eax
	movdqa	.LC0(%rip), %xmm1
	leaq	16(%rsp), %r8
	leaq	200064(%rsp), %r9
	leal	-1(%rax), %edx
	movl	$4, %eax
	salq	$4, %rdx
	addq	$20, %rdx
	.p2align 4,,10
	.p2align 3
.L19:
	movdqu	(%r8,%rax), %xmm5
	movdqa	%xmm1, %xmm0
	paddd	%xmm3, %xmm1
	paddd	%xmm2, %xmm0
	movups	%xmm5, (%r9,%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L19
	movl	%esi, %edx
	pshufd	$255, %xmm0, %xmm0
	andl	$-4, %edx
	movd	%xmm0, %r8d
	leal	1(%rdx), %eax
	cmpl	%esi, %edx
	je	.L22
.L18:
	movslq	%eax, %rdx
	leal	1(%rax), %r8d
	movl	16(%rsp,%rdx,4), %esi
	movl	%esi, 200064(%rsp,%rdx,4)
	cmpl	%r8d, %ecx
	jle	.L22
	movslq	%r8d, %rsi
	leal	2(%rax), %r8d
	movl	16(%rsp,%rsi,4), %edx
	movl	%edx, 200064(%rsp,%rsi,4)
	cmpl	%r8d, %ecx
	jle	.L22
	movslq	%r8d, %rsi
	leal	3(%rax), %r8d
	movl	16(%rsp,%rsi,4), %edx
	movl	%edx, 200064(%rsp,%rsi,4)
.L22:
	cmpl	%r8d, %r13d
	jl	.L21
.L17:
	movl	%r8d, %esi
	movslq	%r8d, %rcx
	leaq	200064(%rsp), %r9
	subl	%r15d, %esi
	leaq	16(%rsp), %r8
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L64:
	cmpl	%edi, %eax
	cmovg	%edi, %eax
.L24:
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	addl	$1, %esi
	movl	%eax, (%r9,%rcx,4)
	addq	$1, %rcx
	cmpl	%ecx, %r13d
	jl	.L21
.L26:
	movl	%ecx, %eax
	movl	(%r8,%rcx,4), %edi
	cltd
	idivl	%r15d
	testl	%edx, %edx
	je	.L64
	cmpl	%ecx, %r15d
	jl	.L25
	movl	(%r9,%rcx,4), %eax
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L25:
	movslq	%esi, %rax
	movl	200064(%rsp,%rax,4), %eax
	addl	$1, %eax
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L63:
	movq	400104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	movl	200064(%rsp,%r13,4), %edx
.L58:
	addq	$400120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L62:
	.cfi_restore_state
	movq	400104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	movl	16(%rsp,%r13,4), %edx
	jmp	.L58
.L45:
	movl	$1, %eax
	jmp	.L29
.L43:
	movl	%r8d, %eax
	jmp	.L18
.L42:
	movl	$1, %eax
	jmp	.L7
.L59:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	func, .-func
	.p2align 4
	.globl	swap
	.type	swap, @function
swap:
.LFB25:
	.cfi_startproc
	endbr64
	movslq	%esi, %rsi
	movslq	%edx, %rdx
	leaq	(%rdi,%rsi,4), %rcx
	leaq	(%rdi,%rdx,4), %rax
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movl	%edx, (%rcx)
	movl	%esi, (%rax)
	ret
	.cfi_endproc
.LFE25:
	.size	swap, .-swap
	.p2align 4
	.globl	bubblesort
	.type	bubblesort, @function
bubblesort:
.LFB26:
	.cfi_startproc
	endbr64
	cmpl	$1, %esi
	jle	.L66
	leal	-2(%rsi), %r8d
	leaq	4(%rdi), %r9
	.p2align 4,,10
	.p2align 3
.L68:
	movl	%r8d, %eax
	movq	%rdi, %rdx
	leaq	(%r9,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L70:
	movq	(%rdx), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %ecx
	jle	.L69
	movq	%xmm1, (%rdx)
.L69:
	addq	$4, %rdx
	cmpq	%rsi, %rdx
	jne	.L70
	subl	$1, %r8d
	jnb	.L68
.L66:
	ret
	.cfi_endproc
.LFE26:
	.size	bubblesort, .-bubblesort
	.section	.rodata.str1.1
.LC4:
	.string	"%d %d"
.LC5:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB27:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC4(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC5(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xorl	%ebx, %ebx
	subq	$120, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %r13
	movq	%r13, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	jle	.L76
	.p2align 4,,10
	.p2align 3
.L77:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jg	.L77
.L76:
	movq	%r13, %rdi
	call	bubblesort
	movl	12(%rsp), %edx
	movl	8(%rsp), %esi
	call	func
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L83
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L83:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE27:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	2
	.long	3
	.long	4
	.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>
#define MAX 21
#define XMAX 50010


int min(int a,int b){
 if(a<b)return a;

return b;
}



void func(int A[],int n,int m){
int X[XMAX];
int Y[XMAX];
int i,j;

for(i=1;i<=n;i++)X[i]=i;

for(i=1;i<m;i++){/*たて*/

 if(i%2==1){

    for(j=1;j<=n;j++){/*よこ*/
       if(A[i]>j)Y[j]=X[j];
       else if(j%A[i]==0)Y[j]=min(X[j],j/A[i]);
       else if(A[i]<j)Y[j]=Y[j-A[i]]+1;

       Y[j]=min(Y[j],X[j]);
    }

 }


 else if(i%2==0){

    for(j=1;j<=n;j++){/*よこ*/
       if(A[i]>j)X[j]=Y[j];
       else if(j%A[i]==0)X[j]=min(Y[j],j/A[i]);
       else if(A[i]<j)X[j]=X[j-A[i]]+1;

       X[j]=min(Y[j],X[j]);
    }

 }



}


if(m%2==1)printf("%d\n",X[n]);
else if(m%2==0)printf("%d\n",Y[n]);

return;
}

void swap(int A[],int a,int b){
int temp;
temp=A[a];
A[a]=A[b];
A[b]=temp;

return;
}


void bubblesort(int A[],int m){
int i,j;

for(i=1;i<m;i++){
 for(j=0;j<m-i;j++){
   if(A[j]>A[j+1])swap(A,j,j+1);
 }
}


return;
}







int main(){
int n,m,i;
int A[MAX];

scanf("%d %d",&n,&m);
for(i=0;i<m;i++)scanf("%d",&A[i]);


bubblesort(A,m);


func(A,n,m);

return 0;
}

55 4
1 5 10 50

2

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>
#define MAX 21
#define XMAX 50010


int min(int a,int b){
 if(a<b)return a;

return b;
}



void func(int A[],int n,int m){
int X[XMAX];
int Y[XMAX];
int i,j;

for(i=1;i<=n;i++)X[i]=i;

for(i=1;i<m;i++){/*たて*/

 if(i%2==1){

    for(j=1;j<=n;j++){/*よこ*/
       if(A[i]>j)Y[j]=X[j];
       else if(j%A[i]==0)Y[j]=min(X[j],j/A[i]);
       else if(A[i]<j)Y[j]=Y[j-A[i]]+1;

       Y[j]=min(Y[j],X[j]);
    }

 }


 else if(i%2==0){

    for(j=1;j<=n;j++){/*よこ*/
       if(A[i]>j)X[j]=Y[j];
       else if(j%A[i]==0)X[j]=min(Y[j],j/A[i]);
       else if(A[i]<j)X[j]=X[j-A[i]]+1;

       X[j]=min(Y[j],X[j]);
    }

 }



}


if(m%2==1)printf("%d\n",X[n]);
else if(m%2==0)printf("%d\n",Y[n]);

return;
}

void swap(int A[],int a,int b){
int temp;
temp=A[a];
A[a]=A[b];
A[b]=temp;

return;
}


void bubblesort(int A[],int m){
int i,j;

for(i=1;i<m;i++){
 for(j=0;j<m-i;j++){
   if(A[j]>A[j+1])swap(A,j,j+1);
 }
}


return;
}







int main(){
int n,m,i;
int A[MAX];

scanf("%d %d",&n,&m);
for(i=0;i<m;i++)scanf("%d",&A[i]);


bubblesort(A,m);


func(A,n,m);

return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	func
	.type	func, @function
func:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2816, %rsp
	movq	%rdi, -400120(%rbp)
	movl	%esi, -400124(%rbp)
	movl	%edx, -400128(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -400104(%rbp)
	jmp	.L5
.L6:
	movl	-400104(%rbp), %eax
	cltq
	movl	-400104(%rbp), %edx
	movl	%edx, -400096(%rbp,%rax,4)
	addl	$1, -400104(%rbp)
.L5:
	movl	-400104(%rbp), %eax
	cmpl	-400124(%rbp), %eax
	jle	.L6
	movl	$1, -400104(%rbp)
	jmp	.L7
.L20:
	movl	-400104(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L8
	movl	$1, -400100(%rbp)
	jmp	.L9
.L13:
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -400100(%rbp)
	jge	.L10
	movl	-400100(%rbp), %eax
	cltq
	movl	-400096(%rbp,%rax,4), %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	%edx, -200048(%rbp,%rax,4)
	jmp	.L11
.L10:
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-400100(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L12
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-400100(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%eax, %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	-400096(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	-400100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -200048(%rbp,%rdx,4)
	jmp	.L11
.L12:
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -400100(%rbp)
	jle	.L11
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-400100(%rbp), %eax
	subl	%edx, %eax
	cltq
	movl	-200048(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	%edx, -200048(%rbp,%rax,4)
.L11:
	movl	-400100(%rbp), %eax
	cltq
	movl	-400096(%rbp,%rax,4), %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	-200048(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	-400100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -200048(%rbp,%rdx,4)
	addl	$1, -400100(%rbp)
.L9:
	movl	-400100(%rbp), %eax
	cmpl	-400124(%rbp), %eax
	jle	.L13
	jmp	.L14
.L8:
	movl	-400104(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L14
	movl	$1, -400100(%rbp)
	jmp	.L15
.L19:
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -400100(%rbp)
	jge	.L16
	movl	-400100(%rbp), %eax
	cltq
	movl	-200048(%rbp,%rax,4), %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	%edx, -400096(%rbp,%rax,4)
	jmp	.L17
.L16:
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-400100(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L18
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-400100(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%eax, %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	-200048(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	-400100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -400096(%rbp,%rdx,4)
	jmp	.L17
.L18:
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -400100(%rbp)
	jle	.L17
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-400100(%rbp), %eax
	subl	%edx, %eax
	cltq
	movl	-400096(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	%edx, -400096(%rbp,%rax,4)
.L17:
	movl	-400100(%rbp), %eax
	cltq
	movl	-400096(%rbp,%rax,4), %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	-200048(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	-400100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -400096(%rbp,%rdx,4)
	addl	$1, -400100(%rbp)
.L15:
	movl	-400100(%rbp), %eax
	cmpl	-400124(%rbp), %eax
	jle	.L19
.L14:
	addl	$1, -400104(%rbp)
.L7:
	movl	-400104(%rbp), %eax
	cmpl	-400128(%rbp), %eax
	jl	.L20
	movl	-400128(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L21
	movl	-400124(%rbp), %eax
	cltq
	movl	-400096(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L25
.L21:
	movl	-400128(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L25
	movl	-400124(%rbp), %eax
	cltq
	movl	-200048(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
.L25:
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	func, .-func
	.globl	swap
	.type	swap, @function
swap:
.LFB2:
	.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)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	swap, .-swap
	.globl	bubblesort
	.type	bubblesort, @function
bubblesort:
.LFB3:
	.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	$1, -8(%rbp)
	jmp	.L29
.L33:
	movl	$0, -4(%rbp)
	jmp	.L30
.L32:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L31
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-4(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	swap
.L31:
	addl	$1, -4(%rbp)
.L30:
	movl	-28(%rbp), %eax
	subl	-8(%rbp), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L32
	addl	$1, -8(%rbp)
.L29:
	movl	-8(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L33
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	bubblesort, .-bubblesort
	.section	.rodata
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-104(%rbp), %rdx
	leaq	-108(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -100(%rbp)
	jmp	.L36
.L37:
	leaq	-96(%rbp), %rdx
	movl	-100(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -100(%rbp)
.L36:
	movl	-104(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L37
	movl	-104(%rbp), %edx
	leaq	-96(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	bubblesort
	movl	-104(%rbp), %edx
	movl	-108(%rbp), %ecx
	leaq	-96(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	func
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	min
	.type	min, @function
min:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	func
	.type	func, @function
func:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2816, %rsp
	movq	%rdi, -400120(%rbp)
	movl	%esi, -400124(%rbp)
	movl	%edx, -400128(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -400104(%rbp)
	jmp	.L5
.L6:
	movl	-400104(%rbp), %eax
	cltq
	movl	-400104(%rbp), %edx
	movl	%edx, -400096(%rbp,%rax,4)
	addl	$1, -400104(%rbp)
.L5:
	movl	-400104(%rbp), %eax
	cmpl	-400124(%rbp), %eax
	jle	.L6
	movl	$1, -400104(%rbp)
	jmp	.L7
.L20:
	movl	-400104(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L8
	movl	$1, -400100(%rbp)
	jmp	.L9
.L13:
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -400100(%rbp)
	jge	.L10
	movl	-400100(%rbp), %eax
	cltq
	movl	-400096(%rbp,%rax,4), %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	%edx, -200048(%rbp,%rax,4)
	jmp	.L11
.L10:
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-400100(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L12
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-400100(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%eax, %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	-400096(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	-400100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -200048(%rbp,%rdx,4)
	jmp	.L11
.L12:
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -400100(%rbp)
	jle	.L11
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-400100(%rbp), %eax
	subl	%edx, %eax
	cltq
	movl	-200048(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	%edx, -200048(%rbp,%rax,4)
.L11:
	movl	-400100(%rbp), %eax
	cltq
	movl	-400096(%rbp,%rax,4), %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	-200048(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	-400100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -200048(%rbp,%rdx,4)
	addl	$1, -400100(%rbp)
.L9:
	movl	-400100(%rbp), %eax
	cmpl	-400124(%rbp), %eax
	jle	.L13
	jmp	.L14
.L8:
	movl	-400104(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L14
	movl	$1, -400100(%rbp)
	jmp	.L15
.L19:
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -400100(%rbp)
	jge	.L16
	movl	-400100(%rbp), %eax
	cltq
	movl	-200048(%rbp,%rax,4), %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	%edx, -400096(%rbp,%rax,4)
	jmp	.L17
.L16:
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-400100(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, %eax
	testl	%eax, %eax
	jne	.L18
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-400100(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%eax, %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	-200048(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	-400100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -400096(%rbp,%rdx,4)
	jmp	.L17
.L18:
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -400100(%rbp)
	jle	.L17
	movl	-400104(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400120(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-400100(%rbp), %eax
	subl	%edx, %eax
	cltq
	movl	-400096(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	%edx, -400096(%rbp,%rax,4)
.L17:
	movl	-400100(%rbp), %eax
	cltq
	movl	-400096(%rbp,%rax,4), %edx
	movl	-400100(%rbp), %eax
	cltq
	movl	-200048(%rbp,%rax,4), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	-400100(%rbp), %edx
	movslq	%edx, %rdx
	movl	%eax, -400096(%rbp,%rdx,4)
	addl	$1, -400100(%rbp)
.L15:
	movl	-400100(%rbp), %eax
	cmpl	-400124(%rbp), %eax
	jle	.L19
.L14:
	addl	$1, -400104(%rbp)
.L7:
	movl	-400104(%rbp), %eax
	cmpl	-400128(%rbp), %eax
	jl	.L20
	movl	-400128(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L21
	movl	-400124(%rbp), %eax
	cltq
	movl	-400096(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L25
.L21:
	movl	-400128(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L25
	movl	-400124(%rbp), %eax
	cltq
	movl	-200048(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
.L25:
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	func, .-func
	.globl	swap
	.type	swap, @function
swap:
.LFB2:
	.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)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	swap, .-swap
	.globl	bubblesort
	.type	bubblesort, @function
bubblesort:
.LFB3:
	.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	$1, -8(%rbp)
	jmp	.L29
.L33:
	movl	$0, -4(%rbp)
	jmp	.L30
.L32:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,4), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L31
	movl	-4(%rbp), %eax
	leal	1(%rax), %edx
	movl	-4(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	swap
.L31:
	addl	$1, -4(%rbp)
.L30:
	movl	-28(%rbp), %eax
	subl	-8(%rbp), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L32
	addl	$1, -8(%rbp)
.L29:
	movl	-8(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L33
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	bubblesort, .-bubblesort
	.section	.rodata
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-104(%rbp), %rdx
	leaq	-108(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -100(%rbp)
	jmp	.L36
.L37:
	leaq	-96(%rbp), %rdx
	movl	-100(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -100(%rbp)
.L36:
	movl	-104(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L37
	movl	-104(%rbp), %edx
	leaq	-96(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	bubblesort
	movl	-104(%rbp), %edx
	movl	-108(%rbp), %ecx
	leaq	-96(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	func
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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:
