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

```c
int a,w,c,r;main(){for(;scanf("%d%d%d%d",&a,&w,&c,&r),a;printf("%d\n",r>0?r:0))r=(c*w-a+r-1)/r;exit(0);}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	leaq	c(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	w(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	a(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC1(%rip), %rbx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movl	c(%rip), %eax
	imull	w(%rip), %eax
	movq	%r14, %rdi
	movl	r(%rip), %ecx
	subl	%edx, %eax
	leal	-1(%rcx,%rax), %eax
	cltd
	idivl	%ecx
	xorl	%edx, %edx
	movl	%edx, %esi
	testl	%eax, %eax
	movl	%eax, r(%rip)
	cmovns	%eax, %esi
	xorl	%eax, %eax
	call	printf@PLT
.L2:
	movq	%r12, %rdx
	leaq	r(%rip), %r8
	movq	%r13, %rcx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	a(%rip), %edx
	testl	%edx, %edx
	jne	.L3
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	r
	.bss
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.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:
```

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\n"
.LC1:
	.string	"%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	leaq	c(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	w(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	a(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC1(%rip), %rbx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movl	c(%rip), %eax
	imull	w(%rip), %eax
	movq	%r14, %rdi
	movl	r(%rip), %ecx
	subl	%edx, %eax
	leal	-1(%rcx,%rax), %eax
	cltd
	idivl	%ecx
	xorl	%edx, %edx
	movl	%edx, %esi
	testl	%eax, %eax
	movl	%eax, r(%rip)
	cmovns	%eax, %esi
	xorl	%eax, %eax
	call	printf@PLT
.L2:
	movq	%r12, %rdx
	leaq	r(%rip), %r8
	movq	%r13, %rcx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	a(%rip), %edx
	testl	%edx, %edx
	jne	.L3
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	r
	.bss
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	leaq	c(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	w(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	a(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC1(%rip), %rbx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movl	c(%rip), %eax
	imull	w(%rip), %eax
	movq	%r14, %rdi
	movl	r(%rip), %ecx
	subl	%edx, %eax
	leal	-1(%rcx,%rax), %eax
	cltd
	idivl	%ecx
	xorl	%edx, %edx
	movl	%edx, %esi
	testl	%eax, %eax
	movl	%eax, r(%rip)
	cmovns	%eax, %esi
	xorl	%eax, %eax
	call	printf@PLT
.L2:
	movq	%r12, %rdx
	leaq	r(%rip), %r8
	movq	%r13, %rcx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	a(%rip), %edx
	testl	%edx, %edx
	jne	.L3
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	r
	.bss
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.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:
```
```c
int a,w,c,r;main(){for(;scanf("%d%d%d%d",&a,&w,&c,&r),a;printf("%d\n",r>0?r:0))r=(c*w-a+r-1)/r;exit(0);}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
int a,w,c,r;main(){for(;scanf("%d%d%d%d",&a,&w,&c,&r),a;printf("%d\n",r>0?r:0))r=(c*w-a+r-1)/r;exit(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
int a,w,c,r;main(){for(;scanf("%d%d%d%d",&a,&w,&c,&r),a;printf("%d\n",r>0?r:0))r=(c*w-a+r-1)/r;exit(0);}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	leaq	c(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	w(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	a(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC1(%rip), %rbx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movl	c(%rip), %eax
	imull	w(%rip), %eax
	movq	%r14, %rdi
	movl	r(%rip), %ecx
	subl	%edx, %eax
	leal	-1(%rcx,%rax), %eax
	cltd
	idivl	%ecx
	xorl	%edx, %edx
	movl	%edx, %esi
	testl	%eax, %eax
	movl	%eax, r(%rip)
	cmovns	%eax, %esi
	xorl	%eax, %eax
	call	printf@PLT
.L2:
	movq	%r12, %rdx
	leaq	r(%rip), %r8
	movq	%r13, %rcx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	a(%rip), %edx
	testl	%edx, %edx
	jne	.L3
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	r
	.bss
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.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:
```

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\n"
.LC1:
	.string	"%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	leaq	c(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	w(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	a(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC1(%rip), %rbx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	movl	c(%rip), %eax
	imull	w(%rip), %eax
	movq	%r14, %rdi
	movl	r(%rip), %ecx
	subl	%edx, %eax
	leal	-1(%rcx,%rax), %eax
	cltd
	idivl	%ecx
	xorl	%edx, %edx
	movl	%edx, %esi
	testl	%eax, %eax
	movl	%eax, r(%rip)
	cmovns	%eax, %esi
	xorl	%eax, %eax
	call	printf@PLT
.L2:
	movq	%r12, %rdx
	leaq	r(%rip), %r8
	movq	%r13, %rcx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	a(%rip), %edx
	testl	%edx, %edx
	jne	.L3
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	r
	.bss
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.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:
```