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 2000000

int h, A[Max + 1];

void maxHeapify(int i){
  int l, r, largest, n;
  l = 2 * i;
  r = 2 * i + 1;

  if(l <= h && A[l] > A[i]) largest = l;
  else largest = i;

  if(r <= h && A[r] > A[largest]) largest = r;

  if(largest != i){
    n = A[i];
    A[i] = A[largest];
    A[largest] = n;

    maxHeapify(largest);
  }
}


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

  for(i = 1 ; i <= h ; i++) scanf("%d", &A[i]);

  for(i = h / 2 ; i >= 1 ; i--) maxHeapify(i);

  for(i = 1 ; i <= h ; i++){
    printf(" %d", A[i]);
  }
  printf("\n");
  
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	h
	.bss
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 8000004
A:
	.zero	8000004
	.text
	.globl	maxHeapify
	.type	maxHeapify, @function
maxHeapify:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	-20(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	movl	h(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jg	.L2
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	A(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L2
	movl	-12(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L3
.L2:
	movl	-20(%rbp), %eax
	movl	%eax, -16(%rbp)
.L3:
	movl	h(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jg	.L4
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	A(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	-8(%rbp), %eax
	movl	%eax, -16(%rbp)
.L4:
	movl	-16(%rbp), %eax
	cmpl	-20(%rbp), %eax
	je	.L6
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	A(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	A(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-16(%rbp), %eax
	movl	%eax, %edi
	call	maxHeapify
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	maxHeapify, .-maxHeapify
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	h(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -4(%rbp)
	jmp	.L8
.L9:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4(%rbp)
.L8:
	movl	h(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L9
	movl	h(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -4(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	movl	%eax, %edi
	call	maxHeapify
	subl	$1, -4(%rbp)
.L10:
	cmpl	$0, -4(%rbp)
	jg	.L11
	movl	$1, -4(%rbp)
	jmp	.L12
.L13:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L12:
	movl	h(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L13
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	maxHeapify
	.type	maxHeapify, @function
maxHeapify:
.LFB23:
	.cfi_startproc
	endbr64
	movl	h(%rip), %r9d
	leaq	A(%rip), %rdx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	movslq	%esi, %rcx
	movl	(%rdx,%rcx,4), %r8d
	movslq	%edi, %rcx
	movl	%r8d, %r10d
	cmpl	(%rdx,%rcx,4), %r8d
	jle	.L2
	cmpl	%eax, %r9d
	jge	.L8
	movl	%esi, %eax
.L3:
	cmpl	%edi, %eax
	je	.L1
	movl	(%rdx,%rcx,4), %esi
	movl	%r8d, (%rdx,%rcx,4)
	movslq	%eax, %rcx
	movl	%eax, %edi
	movl	%esi, (%rdx,%rcx,4)
.L5:
	leal	(%rdi,%rdi), %esi
	leal	1(%rsi), %eax
	cmpl	%esi, %r9d
	jge	.L9
.L2:
	cmpl	%eax, %r9d
	jl	.L1
	movslq	%eax, %rcx
	movl	(%rdx,%rcx,4), %r8d
	movslq	%edi, %rcx
	cmpl	%r8d, (%rdx,%rcx,4)
	jl	.L3
.L1:
	ret
.L8:
	movslq	%eax, %r8
	movl	(%rdx,%r8,4), %r8d
	cmpl	%r10d, %r8d
	jg	.L3
	movl	%r10d, %r8d
	movl	%esi, %eax
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	maxHeapify, .-maxHeapify
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	leaq	h(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__isoc99_scanf@PLT
	movl	h(%rip), %eax
	testl	%eax, %eax
	jle	.L11
	leaq	4+A(%rip), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	h(%rip), %r8d
	addq	$4, %rbp
	cmpl	%ebx, %r8d
	jge	.L12
	movl	%r8d, %r10d
	leaq	A(%rip), %rbx
	shrl	$31, %r10d
	addl	%r8d, %r10d
	sarl	%r10d
	cmpl	$1, %r8d
	jle	.L33
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%r10d, %edx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L35:
	movslq	%esi, %rcx
	movl	(%rbx,%rcx,4), %edi
	movslq	%edx, %rcx
	movl	%edi, %r9d
	cmpl	(%rbx,%rcx,4), %edi
	jle	.L15
	cmpl	%eax, %r8d
	jge	.L34
	movl	%esi, %eax
.L16:
	cmpl	%eax, %edx
	je	.L17
	movl	(%rbx,%rcx,4), %esi
	movslq	%eax, %rdx
	movl	%edi, (%rbx,%rcx,4)
	movl	%esi, (%rbx,%rdx,4)
	movl	%eax, %edx
.L18:
	leal	(%rdx,%rdx), %esi
	leal	1(%rsi), %eax
	cmpl	%esi, %r8d
	jge	.L35
.L15:
	cmpl	%eax, %r8d
	jl	.L17
	movslq	%eax, %rcx
	movl	(%rbx,%rcx,4), %edi
	movslq	%edx, %rcx
	cmpl	(%rbx,%rcx,4), %edi
	jg	.L16
	.p2align 4,,10
	.p2align 3
.L17:
	subl	$1, %r10d
	jne	.L13
.L19:
	movl	$1, %ebp
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L20:
	movl	(%rbx,%rbp,4), %edx
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	addq	$1, %rbp
	call	__printf_chk@PLT
	cmpl	%ebp, h(%rip)
	jge	.L20
.L11:
	movl	$10, %edi
	call	putchar@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L33:
	.cfi_restore_state
	testl	%r8d, %r8d
	jle	.L11
	jmp	.L19
.L34:
	movslq	%eax, %rdi
	movl	(%rbx,%rdi,4), %edi
	cmpl	%r9d, %edi
	jg	.L16
	movl	%r9d, %edi
	movl	%esi, %eax
	jmp	.L16
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 8000004
A:
	.zero	8000004
	.globl	h
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.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	maxHeapify
	.type	maxHeapify, @function
maxHeapify:
.LFB23:
	.cfi_startproc
	endbr64
	movl	h(%rip), %r9d
	leaq	A(%rip), %rdx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	movslq	%esi, %rcx
	movl	(%rdx,%rcx,4), %r8d
	movslq	%edi, %rcx
	movl	%r8d, %r10d
	cmpl	(%rdx,%rcx,4), %r8d
	jle	.L2
	cmpl	%eax, %r9d
	jge	.L8
	movl	%esi, %eax
.L3:
	cmpl	%edi, %eax
	je	.L1
	movl	(%rdx,%rcx,4), %esi
	movl	%r8d, (%rdx,%rcx,4)
	movslq	%eax, %rcx
	movl	%eax, %edi
	movl	%esi, (%rdx,%rcx,4)
.L5:
	leal	(%rdi,%rdi), %esi
	leal	1(%rsi), %eax
	cmpl	%esi, %r9d
	jge	.L9
.L2:
	cmpl	%eax, %r9d
	jl	.L1
	movslq	%eax, %rcx
	movl	(%rdx,%rcx,4), %r8d
	movslq	%edi, %rcx
	cmpl	%r8d, (%rdx,%rcx,4)
	jl	.L3
.L1:
	ret
.L8:
	movslq	%eax, %r8
	movl	(%rdx,%r8,4), %r8d
	cmpl	%r10d, %r8d
	jg	.L3
	movl	%r10d, %r8d
	movl	%esi, %eax
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	maxHeapify, .-maxHeapify
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	leaq	h(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__isoc99_scanf@PLT
	movl	h(%rip), %eax
	testl	%eax, %eax
	jle	.L11
	leaq	4+A(%rip), %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	h(%rip), %r8d
	addq	$4, %rbp
	cmpl	%ebx, %r8d
	jge	.L12
	movl	%r8d, %r10d
	leaq	A(%rip), %rbx
	shrl	$31, %r10d
	addl	%r8d, %r10d
	sarl	%r10d
	cmpl	$1, %r8d
	jle	.L33
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%r10d, %edx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L35:
	movslq	%esi, %rcx
	movl	(%rbx,%rcx,4), %edi
	movslq	%edx, %rcx
	movl	%edi, %r9d
	cmpl	(%rbx,%rcx,4), %edi
	jle	.L15
	cmpl	%eax, %r8d
	jge	.L34
	movl	%esi, %eax
.L16:
	cmpl	%eax, %edx
	je	.L17
	movl	(%rbx,%rcx,4), %esi
	movslq	%eax, %rdx
	movl	%edi, (%rbx,%rcx,4)
	movl	%esi, (%rbx,%rdx,4)
	movl	%eax, %edx
.L18:
	leal	(%rdx,%rdx), %esi
	leal	1(%rsi), %eax
	cmpl	%esi, %r8d
	jge	.L35
.L15:
	cmpl	%eax, %r8d
	jl	.L17
	movslq	%eax, %rcx
	movl	(%rbx,%rcx,4), %edi
	movslq	%edx, %rcx
	cmpl	(%rbx,%rcx,4), %edi
	jg	.L16
	.p2align 4,,10
	.p2align 3
.L17:
	subl	$1, %r10d
	jne	.L13
.L19:
	movl	$1, %ebp
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L20:
	movl	(%rbx,%rbp,4), %edx
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	addq	$1, %rbp
	call	__printf_chk@PLT
	cmpl	%ebp, h(%rip)
	jge	.L20
.L11:
	movl	$10, %edi
	call	putchar@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L33:
	.cfi_restore_state
	testl	%r8d, %r8d
	jle	.L11
	jmp	.L19
.L34:
	movslq	%eax, %rdi
	movl	(%rbx,%rdi,4), %edi
	cmpl	%r9d, %edi
	jg	.L16
	movl	%r9d, %edi
	movl	%esi, %eax
	jmp	.L16
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 8000004
A:
	.zero	8000004
	.globl	h
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.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 2000000

int h, A[Max + 1];

void maxHeapify(int i){
  int l, r, largest, n;
  l = 2 * i;
  r = 2 * i + 1;

  if(l <= h && A[l] > A[i]) largest = l;
  else largest = i;

  if(r <= h && A[r] > A[largest]) largest = r;

  if(largest != i){
    n = A[i];
    A[i] = A[largest];
    A[largest] = n;

    maxHeapify(largest);
  }
}


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

  for(i = 1 ; i <= h ; i++) scanf("%d", &A[i]);

  for(i = h / 2 ; i >= 1 ; i--) maxHeapify(i);

  for(i = 1 ; i <= h ; i++){
    printf(" %d", A[i]);
  }
  printf("\n");
  
  return 0;
}

10
4 1 3 2 16 9 10 2 8 7
 10
4 1 3 2 23 9 10 2 8 7
 10
7 1 3 2 23 9 10 2 8 7
 10
7 1 3 2 23 9 10 2 8 9
 10
0 1 3 2 23 9 10 2 8 9
 10
0 1 3 2 23 9 10 2 13 9
 10
0 1 3 2 23 9 10 3 13 9
 10
0 1 3 2 23 9 10 3 13 11
 10
0 1 3 2 23 9 10 3 16 11
 10
0 1 3 1 23 9 10 3 16 11

 16 8 10 4 7 9 3 2 2 1
  23 8 10 4 7 9 3 2 2 1
  23 8 10 7 7 9 3 2 2 1
  23 9 10 8 7 9 3 2 2 1
  23 9 10 8 1 9 3 2 2 0
  23 13 10 2 9 9 3 0 2 1
  23 13 10 3 9 9 3 0 2 1
  23 13 10 3 11 9 3 0 2 1
  23 16 10 3 11 9 3 0 2 1
  23 16 10 3 11 9 3 0 1 1

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 2000000

int h, A[Max + 1];

void maxHeapify(int i){
  int l, r, largest, n;
  l = 2 * i;
  r = 2 * i + 1;

  if(l <= h && A[l] > A[i]) largest = l;
  else largest = i;

  if(r <= h && A[r] > A[largest]) largest = r;

  if(largest != i){
    n = A[i];
    A[i] = A[largest];
    A[largest] = n;

    maxHeapify(largest);
  }
}


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

  for(i = 1 ; i <= h ; i++) scanf("%d", &A[i]);

  for(i = h / 2 ; i >= 1 ; i--) maxHeapify(i);

  for(i = 1 ; i <= h ; i++){
    printf(" %d", A[i]);
  }
  printf("\n");
  
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	h
	.bss
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 8000004
A:
	.zero	8000004
	.text
	.globl	maxHeapify
	.type	maxHeapify, @function
maxHeapify:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	-20(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	movl	h(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jg	.L2
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	A(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L2
	movl	-12(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L3
.L2:
	movl	-20(%rbp), %eax
	movl	%eax, -16(%rbp)
.L3:
	movl	h(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jg	.L4
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	A(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	-8(%rbp), %eax
	movl	%eax, -16(%rbp)
.L4:
	movl	-16(%rbp), %eax
	cmpl	-20(%rbp), %eax
	je	.L6
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	A(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	A(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-16(%rbp), %eax
	movl	%eax, %edi
	call	maxHeapify
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	maxHeapify, .-maxHeapify
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	h(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -4(%rbp)
	jmp	.L8
.L9:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4(%rbp)
.L8:
	movl	h(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L9
	movl	h(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -4(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	movl	%eax, %edi
	call	maxHeapify
	subl	$1, -4(%rbp)
.L10:
	cmpl	$0, -4(%rbp)
	jg	.L11
	movl	$1, -4(%rbp)
	jmp	.L12
.L13:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L12:
	movl	h(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L13
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	h
	.bss
	.align 4
	.type	h, @object
	.size	h, 4
h:
	.zero	4
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 8000004
A:
	.zero	8000004
	.text
	.globl	maxHeapify
	.type	maxHeapify, @function
maxHeapify:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	-20(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	addl	%eax, %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	movl	h(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jg	.L2
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	A(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L2
	movl	-12(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L3
.L2:
	movl	-20(%rbp), %eax
	movl	%eax, -16(%rbp)
.L3:
	movl	h(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jg	.L4
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	A(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L4
	movl	-8(%rbp), %eax
	movl	%eax, -16(%rbp)
.L4:
	movl	-16(%rbp), %eax
	cmpl	-20(%rbp), %eax
	je	.L6
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	A(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	A(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-16(%rbp), %eax
	movl	%eax, %edi
	call	maxHeapify
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	maxHeapify, .-maxHeapify
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	h(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -4(%rbp)
	jmp	.L8
.L9:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4(%rbp)
.L8:
	movl	h(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L9
	movl	h(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -4(%rbp)
	jmp	.L10
.L11:
	movl	-4(%rbp), %eax
	movl	%eax, %edi
	call	maxHeapify
	subl	$1, -4(%rbp)
.L10:
	cmpl	$0, -4(%rbp)
	jg	.L11
	movl	$1, -4(%rbp)
	jmp	.L12
.L13:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4(%rbp)
.L12:
	movl	h(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jle	.L13
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
