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

```c
#include <stdio.h>
#include <stdlib.h>

int A[100000];

int cmpfunc (const void * a, const void * b){
  return *(int *)a - *(int *)b;
}

int main(){
  int i, n;
  long long int s;
  scanf("%d", &n);
  s=0;
  for(i=0;i<n;i++){
    scanf("%d",A+i);
    s+=A[i];
  }

  qsort(A, n, sizeof(int), cmpfunc);

  s -= A[n-1];
  for(i=n-2;i>=0;i--){
    if(2*s < A[i+1]) break;
    s -= A[i];
  }

  printf("%d\n", n-1-i);

  return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmpfunc
	.type	cmpfunc, @function
cmpfunc:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmpfunc, .-cmpfunc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	testl	%esi, %esi
	jle	.L9
	leaq	A(%rip), %r13
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movslq	0(%rbp), %rax
	movslq	4(%rsp), %rsi
	addq	$4, %rbp
	addq	%rax, %rbx
	cmpl	%r12d, %esi
	jg	.L5
.L4:
	leaq	cmpfunc(%rip), %rcx
	movl	$4, %edx
	movq	%r13, %rdi
	call	qsort@PLT
	movslq	4(%rsp), %rcx
	leal	-1(%rcx), %edx
	movslq	%edx, %rax
	movslq	0(%r13,%rax,4), %rsi
	movq	%rbx, %rax
	subq	%rsi, %rax
	movl	%ecx, %esi
	subl	$2, %esi
	js	.L6
	leaq	0(%r13,%rcx,4), %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	movslq	-8(%rcx), %rdi
	subl	$1, %esi
	subq	$4, %rcx
	subq	%rdi, %rax
	cmpl	$-1, %esi
	je	.L6
.L7:
	movslq	-4(%rcx), %rdi
	leaq	(%rax,%rax), %r8
	cmpq	%rdi, %r8
	jge	.L13
.L6:
	subl	%esi, %edx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	xorl	%ebx, %ebx
	leaq	A(%rip), %r13
	jmp	.L4
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 400000
A:
	.zero	400000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

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

user
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmpfunc
	.type	cmpfunc, @function
cmpfunc:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmpfunc, .-cmpfunc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	testl	%esi, %esi
	jle	.L9
	leaq	A(%rip), %r13
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movslq	0(%rbp), %rax
	movslq	4(%rsp), %rsi
	addq	$4, %rbp
	addq	%rax, %rbx
	cmpl	%r12d, %esi
	jg	.L5
.L4:
	leaq	cmpfunc(%rip), %rcx
	movl	$4, %edx
	movq	%r13, %rdi
	call	qsort@PLT
	movslq	4(%rsp), %rcx
	leal	-1(%rcx), %edx
	movslq	%edx, %rax
	movslq	0(%r13,%rax,4), %rsi
	movq	%rbx, %rax
	subq	%rsi, %rax
	movl	%ecx, %esi
	subl	$2, %esi
	js	.L6
	leaq	0(%r13,%rcx,4), %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	movslq	-8(%rcx), %rdi
	subl	$1, %esi
	subq	$4, %rcx
	subq	%rdi, %rax
	cmpl	$-1, %esi
	je	.L6
.L7:
	movslq	-4(%rcx), %rdi
	leaq	(%rax,%rax), %r8
	cmpq	%rdi, %r8
	jge	.L13
.L6:
	subl	%esi, %edx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	xorl	%ebx, %ebx
	leaq	A(%rip), %r13
	jmp	.L4
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 400000
A:
	.zero	400000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
rule
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmpfunc
	.type	cmpfunc, @function
cmpfunc:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmpfunc, .-cmpfunc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	testl	%esi, %esi
	jle	.L9
	leaq	A(%rip), %r13
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movslq	0(%rbp), %rax
	movslq	4(%rsp), %rsi
	addq	$4, %rbp
	addq	%rax, %rbx
	cmpl	%r12d, %esi
	jg	.L5
.L4:
	leaq	cmpfunc(%rip), %rcx
	movl	$4, %edx
	movq	%r13, %rdi
	call	qsort@PLT
	movslq	4(%rsp), %rcx
	leal	-1(%rcx), %edx
	movslq	%edx, %rax
	movslq	0(%r13,%rax,4), %rsi
	movq	%rbx, %rax
	subq	%rsi, %rax
	movl	%ecx, %esi
	subl	$2, %esi
	js	.L6
	leaq	0(%r13,%rcx,4), %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	movslq	-8(%rcx), %rdi
	subl	$1, %esi
	subq	$4, %rcx
	subq	%rdi, %rax
	cmpl	$-1, %esi
	je	.L6
.L7:
	movslq	-4(%rcx), %rdi
	leaq	(%rax,%rax), %r8
	cmpq	%rdi, %r8
	jge	.L13
.L6:
	subl	%esi, %edx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	xorl	%ebx, %ebx
	leaq	A(%rip), %r13
	jmp	.L4
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 400000
A:
	.zero	400000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
```c
#include <stdio.h>
#include <stdlib.h>

int A[100000];

int cmpfunc (const void * a, const void * b){
  return *(int *)a - *(int *)b;
}

int main(){
  int i, n;
  long long int s;
  scanf("%d", &n);
  s=0;
  for(i=0;i<n;i++){
    scanf("%d",A+i);
    s+=A[i];
  }

  qsort(A, n, sizeof(int), cmpfunc);

  s -= A[n-1];
  for(i=n-2;i>=0;i--){
    if(2*s < A[i+1]) break;
    s -= A[i];
  }

  printf("%d\n", n-1-i);

  return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>

int A[100000];

int cmpfunc (const void * a, const void * b){
  return *(int *)a - *(int *)b;
}

int main(){
  int i, n;
  long long int s;
  scanf("%d", &n);
  s=0;
  for(i=0;i<n;i++){
    scanf("%d",A+i);
    s+=A[i];
  }

  qsort(A, n, sizeof(int), cmpfunc);

  s -= A[n-1];
  for(i=n-2;i>=0;i--){
    if(2*s < A[i+1]) break;
    s -= A[i];
  }

  printf("%d\n", n-1-i);

  return 0;
}
```

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

5
1 1 1 1 2
 3
3 1 3
 6
40 1 26 2 7 20
 3
1 1 3
 6
7 2 21 2 9 20
 5
1 2 1 1 2
 6
40 1 26 2 9 20
 5
1 2 1 0 2
 6
40 1 21 2 9 20
 5
1 1 1 0 2

5
 2
 4
 3
 6
 5
 4
 4
 4
 4

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

```c
#include <stdio.h>
#include <stdlib.h>

int A[100000];

int cmpfunc (const void * a, const void * b){
  return *(int *)a - *(int *)b;
}

int main(){
  int i, n;
  long long int s;
  scanf("%d", &n);
  s=0;
  for(i=0;i<n;i++){
    scanf("%d",A+i);
    s+=A[i];
  }

  qsort(A, n, sizeof(int), cmpfunc);

  s -= A[n-1];
  for(i=n-2;i>=0;i--){
    if(2*s < A[i+1]) break;
    s -= A[i];
  }

  printf("%d\n", n-1-i);

  return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmpfunc
	.type	cmpfunc, @function
cmpfunc:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmpfunc, .-cmpfunc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	testl	%esi, %esi
	jle	.L9
	leaq	A(%rip), %r13
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movslq	0(%rbp), %rax
	movslq	4(%rsp), %rsi
	addq	$4, %rbp
	addq	%rax, %rbx
	cmpl	%r12d, %esi
	jg	.L5
.L4:
	leaq	cmpfunc(%rip), %rcx
	movl	$4, %edx
	movq	%r13, %rdi
	call	qsort@PLT
	movslq	4(%rsp), %rcx
	leal	-1(%rcx), %edx
	movslq	%edx, %rax
	movslq	0(%r13,%rax,4), %rsi
	movq	%rbx, %rax
	subq	%rsi, %rax
	movl	%ecx, %esi
	subl	$2, %esi
	js	.L6
	leaq	0(%r13,%rcx,4), %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	movslq	-8(%rcx), %rdi
	subl	$1, %esi
	subq	$4, %rcx
	subq	%rdi, %rax
	cmpl	$-1, %esi
	je	.L6
.L7:
	movslq	-4(%rcx), %rdi
	leaq	(%rax,%rax), %r8
	cmpq	%rdi, %r8
	jge	.L13
.L6:
	subl	%esi, %edx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	xorl	%ebx, %ebx
	leaq	A(%rip), %r13
	jmp	.L4
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 400000
A:
	.zero	400000
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

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

train
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmpfunc
	.type	cmpfunc, @function
cmpfunc:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmpfunc, .-cmpfunc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	testl	%esi, %esi
	jle	.L9
	leaq	A(%rip), %r13
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movslq	0(%rbp), %rax
	movslq	4(%rsp), %rsi
	addq	$4, %rbp
	addq	%rax, %rbx
	cmpl	%r12d, %esi
	jg	.L5
.L4:
	leaq	cmpfunc(%rip), %rcx
	movl	$4, %edx
	movq	%r13, %rdi
	call	qsort@PLT
	movslq	4(%rsp), %rcx
	leal	-1(%rcx), %edx
	movslq	%edx, %rax
	movslq	0(%r13,%rax,4), %rsi
	movq	%rbx, %rax
	subq	%rsi, %rax
	movl	%ecx, %esi
	subl	$2, %esi
	js	.L6
	leaq	0(%r13,%rcx,4), %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	movslq	-8(%rcx), %rdi
	subl	$1, %esi
	subq	$4, %rcx
	subq	%rdi, %rax
	cmpl	$-1, %esi
	je	.L6
.L7:
	movslq	-4(%rcx), %rdi
	leaq	(%rax,%rax), %r8
	cmpq	%rdi, %r8
	jge	.L13
.L6:
	subl	%esi, %edx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	xorl	%ebx, %ebx
	leaq	A(%rip), %r13
	jmp	.L4
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 400000
A:
	.zero	400000
	.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:
```