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 i, w0,r0,c,r;

  while(1){
    scanf("%d%d%d%d",&r0,&w0,&c,&r);
    if(r0==0 && w0==0 && c==0 && r==0)break;

    for(i=0;;i++){
        //printf("%d\n",i);
        if((r0 + r*i) >= (c * w0) ){
            printf("%d\n",i);
            break;
        }
    }
  }


  return 0;

}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %r15
	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	.LC0(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %r14
	leaq	16(%rsp), %r13
	leaq	8(%rsp), %r12
	leaq	12(%rsp), %rbp
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	movl	16(%rsp), %eax
	orl	20(%rsp), %eax
	je	.L13
.L3:
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L6:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%r14, %r8
	movq	%r13, %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	movl	8(%rsp), %esi
	movl	%eax, %edx
	orl	%esi, %edx
	je	.L2
	imull	16(%rsp), %esi
	movl	20(%rsp), %edi
	cmpl	%esi, %eax
	jge	.L14
	addl	%edi, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%eax, %ecx
	addl	$1, %edx
	addl	%edi, %eax
	cmpl	%esi, %ecx
	jl	.L7
	jmp	.L3
.L13:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	ret
.L14:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L3
.L15:
	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	"%d%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %r15
	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	.LC0(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %r14
	leaq	16(%rsp), %r13
	leaq	8(%rsp), %r12
	leaq	12(%rsp), %rbp
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	movl	16(%rsp), %eax
	orl	20(%rsp), %eax
	je	.L13
.L3:
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L6:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%r14, %r8
	movq	%r13, %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	movl	8(%rsp), %esi
	movl	%eax, %edx
	orl	%esi, %edx
	je	.L2
	imull	16(%rsp), %esi
	movl	20(%rsp), %edi
	cmpl	%esi, %eax
	jge	.L14
	addl	%edi, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%eax, %ecx
	addl	$1, %edx
	addl	%edi, %eax
	cmpl	%esi, %ecx
	jl	.L7
	jmp	.L3
.L13:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	ret
.L14:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L3
.L15:
	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	"%d%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %r15
	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	.LC0(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %r14
	leaq	16(%rsp), %r13
	leaq	8(%rsp), %r12
	leaq	12(%rsp), %rbp
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	movl	16(%rsp), %eax
	orl	20(%rsp), %eax
	je	.L13
.L3:
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L6:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%r14, %r8
	movq	%r13, %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	movl	8(%rsp), %esi
	movl	%eax, %edx
	orl	%esi, %edx
	je	.L2
	imull	16(%rsp), %esi
	movl	20(%rsp), %edi
	cmpl	%esi, %eax
	jge	.L14
	addl	%edi, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%eax, %ecx
	addl	$1, %edx
	addl	%edi, %eax
	cmpl	%esi, %ecx
	jl	.L7
	jmp	.L3
.L13:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	ret
.L14:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L3
.L15:
	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 i, w0,r0,c,r;

  while(1){
    scanf("%d%d%d%d",&r0,&w0,&c,&r);
    if(r0==0 && w0==0 && c==0 && r==0)break;

    for(i=0;;i++){
        //printf("%d\n",i);
        if((r0 + r*i) >= (c * w0) ){
            printf("%d\n",i);
            break;
        }
    }
  }


  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 i, w0,r0,c,r;

  while(1){
    scanf("%d%d%d%d",&r0,&w0,&c,&r);
    if(r0==0 && w0==0 && c==0 && r==0)break;

    for(i=0;;i++){
        //printf("%d\n",i);
        if((r0 + r*i) >= (c * w0) ){
            printf("%d\n",i);
            break;
        }
    }
  }


  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:

10 5 3 4
2 5 2 3
150 13 7 62
10 1 3 5
20 100 2 20
2 14 7 1
0 0 0 0
 10 5 3 4
1 5 2 3
150 13 7 62
10 1 3 5
20 100 3 20
2 14 7 1
0 0 0 0
 10 5 3 1
2 5 2 3
150 13 7 62
10 1 3 5
20 100 2 20
2 14 7 1
0 0 0 0
 10 5 3 4
1 6 2 3
150 13 7 62
10 1 3 5
20 100 3 20
2 14 7 1
0 0 0 0
 10 5 3 1
2 3 2 3
150 13 7 62
10 1 3 5
35 100 2 20
2 14 7 1
0 0 0 0
 18 5 3 4
1 5 2 4
150 13 7 62
10 1 1 5
20 100 2 20
2 14 7 1
0 0 0 0
 10 3 3 1
2 3 2 3
150 13 7 105
10 2 3 5
35 101 2 20
2 14 7 1
0 0 0 0
 10 5 3 4
1 5 2 3
150 13 7 62
10 1 3 5
20 100 3 20
2 14 3 1
0 0 0 0
 10 5 3 4
1 5 2 4
150 13 7 62
10 1 3 5
20 100 2 20
2 14 10 1
0 0 0 0
 10 5 3 4
1 6 2 3
150 13 7 62
10 1 3 5
20 100 3 20
2 14 13 1
0 0 0 0

2
3
0
0
9
96
 2
3
0
0
14
96
 5
3
0
0
9
96
 2
4
0
0
14
96
 5
2
0
0
9
96
 0
3
0
0
9
96
 0
2
0
0
9
96
 2
3
0
0
14
40
 2
3
0
0
9
138
 2
4
0
0
14
180

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 i, w0,r0,c,r;

  while(1){
    scanf("%d%d%d%d",&r0,&w0,&c,&r);
    if(r0==0 && w0==0 && c==0 && r==0)break;

    for(i=0;;i++){
        //printf("%d\n",i);
        if((r0 + r*i) >= (c * w0) ){
            printf("%d\n",i);
            break;
        }
    }
  }


  return 0;

}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %r15
	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	.LC0(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %r14
	leaq	16(%rsp), %r13
	leaq	8(%rsp), %r12
	leaq	12(%rsp), %rbp
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	movl	16(%rsp), %eax
	orl	20(%rsp), %eax
	je	.L13
.L3:
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L6:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%r14, %r8
	movq	%r13, %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	movl	8(%rsp), %esi
	movl	%eax, %edx
	orl	%esi, %edx
	je	.L2
	imull	16(%rsp), %esi
	movl	20(%rsp), %edi
	cmpl	%esi, %eax
	jge	.L14
	addl	%edi, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%eax, %ecx
	addl	$1, %edx
	addl	%edi, %eax
	cmpl	%esi, %ecx
	jl	.L7
	jmp	.L3
.L13:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	ret
.L14:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L3
.L15:
	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	"%d%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %r15
	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	.LC0(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %r14
	leaq	16(%rsp), %r13
	leaq	8(%rsp), %r12
	leaq	12(%rsp), %rbp
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	movl	16(%rsp), %eax
	orl	20(%rsp), %eax
	je	.L13
.L3:
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L6:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%r14, %r8
	movq	%r13, %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	movl	8(%rsp), %esi
	movl	%eax, %edx
	orl	%esi, %edx
	je	.L2
	imull	16(%rsp), %esi
	movl	20(%rsp), %edi
	cmpl	%esi, %eax
	jge	.L14
	addl	%edi, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L7:
	movl	%eax, %ecx
	addl	$1, %edx
	addl	%edi, %eax
	cmpl	%esi, %ecx
	jl	.L7
	jmp	.L3
.L13:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	ret
.L14:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L3
.L15:
	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:
```