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>
int a,b,c,d;
int main(void) {
  scanf("%d%d%d%d",&a,&b,&c,&d);
if(a>b&c>d){
printf("%d",(b+d));
}
if(a<b&c>d){
printf("%d",(a+d));
}
if(a>b&c<d){
printf("%d",(b+c));
}
if(a<b&c<d){
printf("%d",(a+c));
}
if(a==b&c<d){
printf("%d",(a+c));
}
if(a==b&c>d){
printf("%d",(a+d));
}
if(a<b&c==d){
printf("%d",(a+c));
}
if(a>b&c==d){
printf("%d",(b+c));
}
if(a==b&c==d){
printf("%d",(a+c));
}
 
 
 
 
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	d(%rip), %r8
	leaq	c(%rip), %rax
	movq	%rax, %rcx
	leaq	b(%rip), %rax
	movq	%rax, %rdx
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	setg	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	setg	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L2
	movl	b(%rip), %edx
	movl	d(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	setl	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	setg	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L3
	movl	a(%rip), %edx
	movl	d(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L3:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	setg	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	setl	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L4
	movl	b(%rip), %edx
	movl	c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L4:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	setl	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	setl	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L5
	movl	a(%rip), %edx
	movl	c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L5:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	sete	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	setl	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L6
	movl	a(%rip), %edx
	movl	c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L6:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	sete	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	setg	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L7
	movl	a(%rip), %edx
	movl	d(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L7:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	setl	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	sete	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L8
	movl	a(%rip), %edx
	movl	c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L8:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	setg	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	sete	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L9
	movl	b(%rip), %edx
	movl	c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L9:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	sete	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	sete	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L10
	movl	a(%rip), %edx
	movl	c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	leaq	c(%rip), %rcx
	xorl	%eax, %eax
	leaq	b(%rip), %rdx
	leaq	a(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	leaq	d(%rip), %r8
	call	__isoc99_scanf@PLT
	movl	c(%rip), %ecx
	movl	d(%rip), %esi
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%esi, %ecx
	setg	%dil
	cmpl	%eax, %edx
	jle	.L2
	testb	%dil, %dil
	jne	.L67
.L2:
	cmpl	%eax, %edx
	jge	.L3
	testb	%dil, %dil
	jne	.L68
.L3:
	cmpl	%esi, %ecx
	setl	%dil
	cmpl	%eax, %edx
	jle	.L4
	testb	%dil, %dil
	jne	.L69
.L4:
	cmpl	%eax, %edx
	jge	.L5
	testb	%dil, %dil
	jne	.L70
.L5:
	cmpl	%eax, %edx
	sete	%r8b
	jne	.L6
	testb	%dil, %dil
	jne	.L71
.L6:
	cmpl	%esi, %ecx
	jle	.L7
	testb	%r8b, %r8b
	jne	.L72
.L7:
	cmpl	%esi, %ecx
	sete	%sil
	cmpl	%eax, %edx
	jge	.L8
	testb	%sil, %sil
	jne	.L73
.L8:
	cmpl	%eax, %edx
	jle	.L9
	testb	%sil, %sil
	jne	.L74
.L9:
	cmpl	%eax, %edx
	jne	.L10
	testb	%sil, %sil
	jne	.L75
.L10:
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L75:
	.cfi_restore_state
	addl	%ecx, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L10
.L74:
	leal	(%rax,%rcx), %edx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	c(%rip), %ecx
	cmpl	%ecx, d(%rip)
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	sete	%sil
	jmp	.L9
.L73:
	addl	%ecx, %edx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	c(%rip), %ecx
	cmpl	%ecx, d(%rip)
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	sete	%sil
	jmp	.L8
.L72:
	addl	%esi, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	movl	c(%rip), %ecx
	movl	d(%rip), %esi
	jmp	.L7
.L71:
	addl	%ecx, %edx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	movl	c(%rip), %ecx
	movl	d(%rip), %esi
	cmpl	%eax, %edx
	sete	%r8b
	jmp	.L6
.L70:
	addl	%ecx, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	c(%rip), %ecx
	movl	d(%rip), %esi
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%esi, %ecx
	setl	%dil
	jmp	.L5
.L69:
	leal	(%rax,%rcx), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	c(%rip), %ecx
	movl	d(%rip), %esi
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%esi, %ecx
	setl	%dil
	jmp	.L4
.L68:
	addl	%esi, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	movl	c(%rip), %ecx
	movl	d(%rip), %esi
	jmp	.L3
.L67:
	leal	(%rax,%rsi), %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	c(%rip), %ecx
	movl	d(%rip), %esi
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%esi, %ecx
	setg	%dil
	jmp	.L2
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	d
	.bss
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	leaq	c(%rip), %rcx
	xorl	%eax, %eax
	leaq	b(%rip), %rdx
	leaq	a(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	leaq	d(%rip), %r8
	call	__isoc99_scanf@PLT
	movl	c(%rip), %ecx
	movl	d(%rip), %esi
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%esi, %ecx
	setg	%dil
	cmpl	%eax, %edx
	jle	.L2
	testb	%dil, %dil
	jne	.L67
.L2:
	cmpl	%eax, %edx
	jge	.L3
	testb	%dil, %dil
	jne	.L68
.L3:
	cmpl	%esi, %ecx
	setl	%dil
	cmpl	%eax, %edx
	jle	.L4
	testb	%dil, %dil
	jne	.L69
.L4:
	cmpl	%eax, %edx
	jge	.L5
	testb	%dil, %dil
	jne	.L70
.L5:
	cmpl	%eax, %edx
	sete	%r8b
	jne	.L6
	testb	%dil, %dil
	jne	.L71
.L6:
	cmpl	%esi, %ecx
	jle	.L7
	testb	%r8b, %r8b
	jne	.L72
.L7:
	cmpl	%esi, %ecx
	sete	%sil
	cmpl	%eax, %edx
	jge	.L8
	testb	%sil, %sil
	jne	.L73
.L8:
	cmpl	%eax, %edx
	jle	.L9
	testb	%sil, %sil
	jne	.L74
.L9:
	cmpl	%eax, %edx
	jne	.L10
	testb	%sil, %sil
	jne	.L75
.L10:
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L75:
	.cfi_restore_state
	addl	%ecx, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L10
.L74:
	leal	(%rax,%rcx), %edx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	c(%rip), %ecx
	cmpl	%ecx, d(%rip)
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	sete	%sil
	jmp	.L9
.L73:
	addl	%ecx, %edx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	c(%rip), %ecx
	cmpl	%ecx, d(%rip)
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	sete	%sil
	jmp	.L8
.L72:
	addl	%esi, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	movl	c(%rip), %ecx
	movl	d(%rip), %esi
	jmp	.L7
.L71:
	addl	%ecx, %edx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	movl	c(%rip), %ecx
	movl	d(%rip), %esi
	cmpl	%eax, %edx
	sete	%r8b
	jmp	.L6
.L70:
	addl	%ecx, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	c(%rip), %ecx
	movl	d(%rip), %esi
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%esi, %ecx
	setl	%dil
	jmp	.L5
.L69:
	leal	(%rax,%rcx), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	c(%rip), %ecx
	movl	d(%rip), %esi
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%esi, %ecx
	setl	%dil
	jmp	.L4
.L68:
	addl	%esi, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	movl	c(%rip), %ecx
	movl	d(%rip), %esi
	jmp	.L3
.L67:
	leal	(%rax,%rsi), %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	c(%rip), %ecx
	movl	d(%rip), %esi
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%esi, %ecx
	setg	%dil
	jmp	.L2
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	d
	.bss
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.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:

#include <stdio.h>
int a,b,c,d;
int main(void) {
  scanf("%d%d%d%d",&a,&b,&c,&d);
if(a>b&c>d){
printf("%d",(b+d));
}
if(a<b&c>d){
printf("%d",(a+d));
}
if(a>b&c<d){
printf("%d",(b+c));
}
if(a<b&c<d){
printf("%d",(a+c));
}
if(a==b&c<d){
printf("%d",(a+c));
}
if(a==b&c>d){
printf("%d",(a+d));
}
if(a<b&c==d){
printf("%d",(a+c));
}
if(a>b&c==d){
printf("%d",(b+c));
}
if(a==b&c==d){
printf("%d",(a+c));
}
 
 
 
 
  return 0;
}
549
838
715
603
 555
312
400
200
 600
548
220
420
 549
838
715
182
 555
312
400
206
 600
548
220
156
 600
548
220
118
 549
838
115
182
 555
134
728
206
 600
548
220
176

1152 512 768 731 518 704 666 664 340 724
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>
int a,b,c,d;
int main(void) {
  scanf("%d%d%d%d",&a,&b,&c,&d);
if(a>b&c>d){
printf("%d",(b+d));
}
if(a<b&c>d){
printf("%d",(a+d));
}
if(a>b&c<d){
printf("%d",(b+c));
}
if(a<b&c<d){
printf("%d",(a+c));
}
if(a==b&c<d){
printf("%d",(a+c));
}
if(a==b&c>d){
printf("%d",(a+d));
}
if(a<b&c==d){
printf("%d",(a+c));
}
if(a>b&c==d){
printf("%d",(b+c));
}
if(a==b&c==d){
printf("%d",(a+c));
}
 
 
 
 
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	d(%rip), %r8
	leaq	c(%rip), %rax
	movq	%rax, %rcx
	leaq	b(%rip), %rax
	movq	%rax, %rdx
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	setg	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	setg	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L2
	movl	b(%rip), %edx
	movl	d(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	setl	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	setg	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L3
	movl	a(%rip), %edx
	movl	d(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L3:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	setg	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	setl	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L4
	movl	b(%rip), %edx
	movl	c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L4:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	setl	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	setl	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L5
	movl	a(%rip), %edx
	movl	c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L5:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	sete	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	setl	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L6
	movl	a(%rip), %edx
	movl	c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L6:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	sete	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	setg	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L7
	movl	a(%rip), %edx
	movl	d(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L7:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	setl	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	sete	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L8
	movl	a(%rip), %edx
	movl	c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L8:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	setg	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	sete	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L9
	movl	b(%rip), %edx
	movl	c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L9:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	sete	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	sete	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L10
	movl	a(%rip), %edx
	movl	c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	a
	.bss
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	d
	.align 4
	.type	d, @object
	.size	d, 4
d:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	d(%rip), %r8
	leaq	c(%rip), %rax
	movq	%rax, %rcx
	leaq	b(%rip), %rax
	movq	%rax, %rdx
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	setg	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	setg	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L2
	movl	b(%rip), %edx
	movl	d(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	setl	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	setg	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L3
	movl	a(%rip), %edx
	movl	d(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L3:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	setg	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	setl	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L4
	movl	b(%rip), %edx
	movl	c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L4:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	setl	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	setl	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L5
	movl	a(%rip), %edx
	movl	c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L5:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	sete	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	setl	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L6
	movl	a(%rip), %edx
	movl	c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L6:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	sete	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	setg	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L7
	movl	a(%rip), %edx
	movl	d(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L7:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	setl	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	sete	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L8
	movl	a(%rip), %edx
	movl	c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L8:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	setg	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	sete	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L9
	movl	b(%rip), %edx
	movl	c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L9:
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	cmpl	%eax, %edx
	sete	%cl
	movl	c(%rip), %edx
	movl	d(%rip), %eax
	cmpl	%eax, %edx
	sete	%al
	andl	%ecx, %eax
	testb	%al, %al
	je	.L10
	movl	a(%rip), %edx
	movl	c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
