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>

int main() {
  int A, B, C, K;
  int diff, i;
  
  scanf("%d %d %d\n", &A, &B, &C);
  scanf("%d\n", &K);
  
  while((K >= 0) && (A >= B)) {
    B *= 2;
    K--;
  }
  
  while((K >= 0) && (B >= C)) {
    C *= 2;
    K--;
  }
  
  printf("%s\n", (K >= 0) ? "Yes" : "No");
  
  return 0;
}
  ```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%d %d %d\n"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	20(%rsp), %rsi
	leaq	.LC3(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %r8d
	testl	%r8d, %r8d
	js	.L3
	movl	12(%rsp), %ecx
	movl	8(%rsp), %edi
	movl	%r8d, %eax
	xorl	%esi, %esi
	movl	%ecx, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	subl	$1, %eax
	addl	%edx, %edx
	movl	$1, %esi
	cmpl	$-1, %eax
	je	.L25
	movl	%eax, %ebx
.L4:
	cmpl	%edx, %edi
	jge	.L8
	testb	%sil, %sil
	je	.L6
	movl	%edx, 12(%rsp)
	movl	%ebx, %eax
	movl	%ebx, 20(%rsp)
	testl	%ebx, %ebx
	js	.L3
	movl	%edx, %ecx
.L13:
	movl	16(%rsp), %edx
	xorl	%esi, %esi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	subl	$1, %eax
	addl	%edx, %edx
	movl	$1, %esi
	cmpl	$-1, %eax
	je	.L26
	movl	%eax, %ebp
.L7:
	cmpl	%edx, %ecx
	jge	.L11
	testb	%sil, %sil
	je	.L12
	movl	%ebp, 20(%rsp)
	movl	%edx, 16(%rsp)
.L12:
	leaq	.LC0(%rip), %rdi
.L10:
	call	puts@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L25:
	.cfi_restore_state
	movl	%edx, 12(%rsp)
	movl	$-1, 20(%rsp)
.L3:
	leaq	.LC1(%rip), %rdi
	jmp	.L10
.L26:
	movl	$-1, 20(%rsp)
	leaq	.LC1(%rip), %rdi
	movl	%edx, 16(%rsp)
	jmp	.L10
.L6:
	movl	%r8d, %eax
	jmp	.L13
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%d %d %d\n"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	20(%rsp), %rsi
	leaq	.LC3(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %r8d
	testl	%r8d, %r8d
	js	.L3
	movl	12(%rsp), %ecx
	movl	8(%rsp), %edi
	movl	%r8d, %eax
	xorl	%esi, %esi
	movl	%ecx, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	subl	$1, %eax
	addl	%edx, %edx
	movl	$1, %esi
	cmpl	$-1, %eax
	je	.L25
	movl	%eax, %ebx
.L4:
	cmpl	%edx, %edi
	jge	.L8
	testb	%sil, %sil
	je	.L6
	movl	%edx, 12(%rsp)
	movl	%ebx, %eax
	movl	%ebx, 20(%rsp)
	testl	%ebx, %ebx
	js	.L3
	movl	%edx, %ecx
.L13:
	movl	16(%rsp), %edx
	xorl	%esi, %esi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	subl	$1, %eax
	addl	%edx, %edx
	movl	$1, %esi
	cmpl	$-1, %eax
	je	.L26
	movl	%eax, %ebp
.L7:
	cmpl	%edx, %ecx
	jge	.L11
	testb	%sil, %sil
	je	.L12
	movl	%ebp, 20(%rsp)
	movl	%edx, 16(%rsp)
.L12:
	leaq	.LC0(%rip), %rdi
.L10:
	call	puts@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L25:
	.cfi_restore_state
	movl	%edx, 12(%rsp)
	movl	$-1, 20(%rsp)
.L3:
	leaq	.LC1(%rip), %rdi
	jmp	.L10
.L26:
	movl	$-1, 20(%rsp)
	leaq	.LC1(%rip), %rdi
	movl	%edx, 16(%rsp)
	jmp	.L10
.L6:
	movl	%r8d, %eax
	jmp	.L13
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%d %d %d\n"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	20(%rsp), %rsi
	leaq	.LC3(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %r8d
	testl	%r8d, %r8d
	js	.L3
	movl	12(%rsp), %ecx
	movl	8(%rsp), %edi
	movl	%r8d, %eax
	xorl	%esi, %esi
	movl	%ecx, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	subl	$1, %eax
	addl	%edx, %edx
	movl	$1, %esi
	cmpl	$-1, %eax
	je	.L25
	movl	%eax, %ebx
.L4:
	cmpl	%edx, %edi
	jge	.L8
	testb	%sil, %sil
	je	.L6
	movl	%edx, 12(%rsp)
	movl	%ebx, %eax
	movl	%ebx, 20(%rsp)
	testl	%ebx, %ebx
	js	.L3
	movl	%edx, %ecx
.L13:
	movl	16(%rsp), %edx
	xorl	%esi, %esi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	subl	$1, %eax
	addl	%edx, %edx
	movl	$1, %esi
	cmpl	$-1, %eax
	je	.L26
	movl	%eax, %ebp
.L7:
	cmpl	%edx, %ecx
	jge	.L11
	testb	%sil, %sil
	je	.L12
	movl	%ebp, 20(%rsp)
	movl	%edx, 16(%rsp)
.L12:
	leaq	.LC0(%rip), %rdi
.L10:
	call	puts@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L25:
	.cfi_restore_state
	movl	%edx, 12(%rsp)
	movl	$-1, 20(%rsp)
.L3:
	leaq	.LC1(%rip), %rdi
	jmp	.L10
.L26:
	movl	$-1, 20(%rsp)
	leaq	.LC1(%rip), %rdi
	movl	%edx, 16(%rsp)
	jmp	.L10
.L6:
	movl	%r8d, %eax
	jmp	.L13
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```
```c
#include <stdio.h>

int main() {
  int A, B, C, K;
  int diff, i;
  
  scanf("%d %d %d\n", &A, &B, &C);
  scanf("%d\n", &K);
  
  while((K >= 0) && (A >= B)) {
    B *= 2;
    K--;
  }
  
  while((K >= 0) && (B >= C)) {
    C *= 2;
    K--;
  }
  
  printf("%s\n", (K >= 0) ? "Yes" : "No");
  
  return 0;
}
  ```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main() {
  int A, B, C, K;
  int diff, i;
  
  scanf("%d %d %d\n", &A, &B, &C);
  scanf("%d\n", &K);
  
  while((K >= 0) && (A >= B)) {
    B *= 2;
    K--;
  }
  
  while((K >= 0) && (B >= C)) {
    C *= 2;
    K--;
  }
  
  printf("%s\n", (K >= 0) ? "Yes" : "No");
  
  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:

7 4 4
3
 37 2 2
9
 4 2 5
3
 7 4 4
5
 4 2 5
6
 7 2 4
5
 4 2 3
6
 7 2 4
9
 1 2 3
6
 7 3 4
9

Yes
 No
 Yes
 Yes
 Yes
 Yes
 Yes
 Yes
 Yes
 Yes

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>

int main() {
  int A, B, C, K;
  int diff, i;
  
  scanf("%d %d %d\n", &A, &B, &C);
  scanf("%d\n", &K);
  
  while((K >= 0) && (A >= B)) {
    B *= 2;
    K--;
  }
  
  while((K >= 0) && (B >= C)) {
    C *= 2;
    K--;
  }
  
  printf("%s\n", (K >= 0) ? "Yes" : "No");
  
  return 0;
}
  ```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%d %d %d\n"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	20(%rsp), %rsi
	leaq	.LC3(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %r8d
	testl	%r8d, %r8d
	js	.L3
	movl	12(%rsp), %ecx
	movl	8(%rsp), %edi
	movl	%r8d, %eax
	xorl	%esi, %esi
	movl	%ecx, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	subl	$1, %eax
	addl	%edx, %edx
	movl	$1, %esi
	cmpl	$-1, %eax
	je	.L25
	movl	%eax, %ebx
.L4:
	cmpl	%edx, %edi
	jge	.L8
	testb	%sil, %sil
	je	.L6
	movl	%edx, 12(%rsp)
	movl	%ebx, %eax
	movl	%ebx, 20(%rsp)
	testl	%ebx, %ebx
	js	.L3
	movl	%edx, %ecx
.L13:
	movl	16(%rsp), %edx
	xorl	%esi, %esi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	subl	$1, %eax
	addl	%edx, %edx
	movl	$1, %esi
	cmpl	$-1, %eax
	je	.L26
	movl	%eax, %ebp
.L7:
	cmpl	%edx, %ecx
	jge	.L11
	testb	%sil, %sil
	je	.L12
	movl	%ebp, 20(%rsp)
	movl	%edx, 16(%rsp)
.L12:
	leaq	.LC0(%rip), %rdi
.L10:
	call	puts@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L25:
	.cfi_restore_state
	movl	%edx, 12(%rsp)
	movl	$-1, 20(%rsp)
.L3:
	leaq	.LC1(%rip), %rdi
	jmp	.L10
.L26:
	movl	$-1, 20(%rsp)
	leaq	.LC1(%rip), %rdi
	movl	%edx, 16(%rsp)
	jmp	.L10
.L6:
	movl	%r8d, %eax
	jmp	.L13
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
.LC2:
	.string	"%d %d %d\n"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	20(%rsp), %rsi
	leaq	.LC3(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %r8d
	testl	%r8d, %r8d
	js	.L3
	movl	12(%rsp), %ecx
	movl	8(%rsp), %edi
	movl	%r8d, %eax
	xorl	%esi, %esi
	movl	%ecx, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	subl	$1, %eax
	addl	%edx, %edx
	movl	$1, %esi
	cmpl	$-1, %eax
	je	.L25
	movl	%eax, %ebx
.L4:
	cmpl	%edx, %edi
	jge	.L8
	testb	%sil, %sil
	je	.L6
	movl	%edx, 12(%rsp)
	movl	%ebx, %eax
	movl	%ebx, 20(%rsp)
	testl	%ebx, %ebx
	js	.L3
	movl	%edx, %ecx
.L13:
	movl	16(%rsp), %edx
	xorl	%esi, %esi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	subl	$1, %eax
	addl	%edx, %edx
	movl	$1, %esi
	cmpl	$-1, %eax
	je	.L26
	movl	%eax, %ebp
.L7:
	cmpl	%edx, %ecx
	jge	.L11
	testb	%sil, %sil
	je	.L12
	movl	%ebp, 20(%rsp)
	movl	%edx, 16(%rsp)
.L12:
	leaq	.LC0(%rip), %rdi
.L10:
	call	puts@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L25:
	.cfi_restore_state
	movl	%edx, 12(%rsp)
	movl	$-1, 20(%rsp)
.L3:
	leaq	.LC1(%rip), %rdi
	jmp	.L10
.L26:
	movl	$-1, 20(%rsp)
	leaq	.LC1(%rip), %rdi
	movl	%edx, 16(%rsp)
	jmp	.L10
.L6:
	movl	%r8d, %eax
	jmp	.L13
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```