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(void)
{
  int h, w, a, b;
  scanf("%d %d %d %d", &h, &w, &a, &b);
  
  for (int i = 0; i < b; i++){
    for (int j = 0; j < a; j++){
      printf("%d", 1);
    }
    for (int j = a; j < w; j++){
      printf("%d", 0);
      if (j == w - 1) printf("\n");
    }
  }
  for (int i = b; i < h; i++){
    for (int j = 0; j < a; j++){
      printf("%d", 0);
    }
    for (int j = a; j < w; j++){
      printf("%d", 1);
      if (j == w - 1) printf("\n");
    }
  }
  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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	xorl	%r14d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %r13d
	testl	%r13d, %r13d
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	movl	16(%rsp), %ebx
	xorl	%ebp, %ebp
	testl	%ebx, %ebx
	jle	.L36
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$1, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	16(%rsp), %ebx
	addl	$1, %ebp
	cmpl	%ebp, %ebx
	jg	.L4
.L36:
	cmpl	%ebx, 12(%rsp)
	jle	.L8
.L5:
	xorl	%edx, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %ebp
	leal	-1(%rbp), %eax
	cmpl	%ebx, %eax
	je	.L39
	addl	$1, %ebx
	cmpl	%ebx, %ebp
	jg	.L5
.L8:
	movl	20(%rsp), %r13d
	addl	$1, %r14d
	cmpl	%r14d, %r13d
	jg	.L2
.L3:
	leaq	.LC1(%rip), %r12
	cmpl	%r13d, 8(%rsp)
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movl	16(%rsp), %ebx
	xorl	%ebp, %ebp
	testl	%ebx, %ebx
	jle	.L37
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%edx, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	16(%rsp), %ebx
	addl	$1, %ebp
	cmpl	%ebp, %ebx
	jg	.L12
.L37:
	cmpl	%ebx, 12(%rsp)
	jle	.L16
.L13:
	movl	$1, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %ebp
	leal	-1(%rbp), %eax
	cmpl	%ebx, %eax
	je	.L40
	addl	$1, %ebx
	cmpl	%ebx, %ebp
	jg	.L13
.L16:
	addl	$1, %r13d
	cmpl	%r13d, 8(%rsp)
	jg	.L10
.L11:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_restore_state
	movl	$10, %edi
	movl	%ebp, %ebx
	call	putchar@PLT
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L40:
	movl	$10, %edi
	movl	%ebp, %ebx
	call	putchar@PLT
	jmp	.L37
.L41:
	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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	xorl	%r14d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %r13d
	testl	%r13d, %r13d
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	movl	16(%rsp), %ebx
	xorl	%ebp, %ebp
	testl	%ebx, %ebx
	jle	.L36
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$1, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	16(%rsp), %ebx
	addl	$1, %ebp
	cmpl	%ebp, %ebx
	jg	.L4
.L36:
	cmpl	%ebx, 12(%rsp)
	jle	.L8
.L5:
	xorl	%edx, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %ebp
	leal	-1(%rbp), %eax
	cmpl	%ebx, %eax
	je	.L39
	addl	$1, %ebx
	cmpl	%ebx, %ebp
	jg	.L5
.L8:
	movl	20(%rsp), %r13d
	addl	$1, %r14d
	cmpl	%r14d, %r13d
	jg	.L2
.L3:
	leaq	.LC1(%rip), %r12
	cmpl	%r13d, 8(%rsp)
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movl	16(%rsp), %ebx
	xorl	%ebp, %ebp
	testl	%ebx, %ebx
	jle	.L37
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%edx, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	16(%rsp), %ebx
	addl	$1, %ebp
	cmpl	%ebp, %ebx
	jg	.L12
.L37:
	cmpl	%ebx, 12(%rsp)
	jle	.L16
.L13:
	movl	$1, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %ebp
	leal	-1(%rbp), %eax
	cmpl	%ebx, %eax
	je	.L40
	addl	$1, %ebx
	cmpl	%ebx, %ebp
	jg	.L13
.L16:
	addl	$1, %r13d
	cmpl	%r13d, 8(%rsp)
	jg	.L10
.L11:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_restore_state
	movl	$10, %edi
	movl	%ebp, %ebx
	call	putchar@PLT
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L40:
	movl	$10, %edi
	movl	%ebp, %ebx
	call	putchar@PLT
	jmp	.L37
.L41:
	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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	xorl	%r14d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %r13d
	testl	%r13d, %r13d
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	movl	16(%rsp), %ebx
	xorl	%ebp, %ebp
	testl	%ebx, %ebx
	jle	.L36
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$1, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	16(%rsp), %ebx
	addl	$1, %ebp
	cmpl	%ebp, %ebx
	jg	.L4
.L36:
	cmpl	%ebx, 12(%rsp)
	jle	.L8
.L5:
	xorl	%edx, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %ebp
	leal	-1(%rbp), %eax
	cmpl	%ebx, %eax
	je	.L39
	addl	$1, %ebx
	cmpl	%ebx, %ebp
	jg	.L5
.L8:
	movl	20(%rsp), %r13d
	addl	$1, %r14d
	cmpl	%r14d, %r13d
	jg	.L2
.L3:
	leaq	.LC1(%rip), %r12
	cmpl	%r13d, 8(%rsp)
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movl	16(%rsp), %ebx
	xorl	%ebp, %ebp
	testl	%ebx, %ebx
	jle	.L37
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%edx, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	16(%rsp), %ebx
	addl	$1, %ebp
	cmpl	%ebp, %ebx
	jg	.L12
.L37:
	cmpl	%ebx, 12(%rsp)
	jle	.L16
.L13:
	movl	$1, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %ebp
	leal	-1(%rbp), %eax
	cmpl	%ebx, %eax
	je	.L40
	addl	$1, %ebx
	cmpl	%ebx, %ebp
	jg	.L13
.L16:
	addl	$1, %r13d
	cmpl	%r13d, 8(%rsp)
	jg	.L10
.L11:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_restore_state
	movl	$10, %edi
	movl	%ebp, %ebx
	call	putchar@PLT
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L40:
	movl	$10, %edi
	movl	%ebp, %ebx
	call	putchar@PLT
	jmp	.L37
.L41:
	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(void)
{
  int h, w, a, b;
  scanf("%d %d %d %d", &h, &w, &a, &b);
  
  for (int i = 0; i < b; i++){
    for (int j = 0; j < a; j++){
      printf("%d", 1);
    }
    for (int j = a; j < w; j++){
      printf("%d", 0);
      if (j == w - 1) printf("\n");
    }
  }
  for (int i = b; i < h; i++){
    for (int j = 0; j < a; j++){
      printf("%d", 0);
    }
    for (int j = a; j < w; j++){
      printf("%d", 1);
      if (j == w - 1) printf("\n");
    }
  }
  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(void)
{
  int h, w, a, b;
  scanf("%d %d %d %d", &h, &w, &a, &b);
  
  for (int i = 0; i < b; i++){
    for (int j = 0; j < a; j++){
      printf("%d", 1);
    }
    for (int j = a; j < w; j++){
      printf("%d", 0);
      if (j == w - 1) printf("\n");
    }
  }
  for (int i = b; i < h; i++){
    for (int j = 0; j < a; j++){
      printf("%d", 0);
    }
    for (int j = a; j < w; j++){
      printf("%d", 1);
      if (j == w - 1) printf("\n");
    }
  }
  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:

3 3 0 1
 1 5 2 -1
 3 6 0 1
 1 5 4 -1
 3 10 0 1
 2 5 4 -1
 2 6 4 -1
 1 5 0 0
 3 3 0 2
 1 5 2 1

000
111
111
 00111
00111
 000000
111111
111111
 00001
00001
 0000000000
1111111111
1111111111
 00001
00001
00001
 000011
000011
000011
 11111
 000
000
111
 11000

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(void)
{
  int h, w, a, b;
  scanf("%d %d %d %d", &h, &w, &a, &b);
  
  for (int i = 0; i < b; i++){
    for (int j = 0; j < a; j++){
      printf("%d", 1);
    }
    for (int j = a; j < w; j++){
      printf("%d", 0);
      if (j == w - 1) printf("\n");
    }
  }
  for (int i = b; i < h; i++){
    for (int j = 0; j < a; j++){
      printf("%d", 0);
    }
    for (int j = a; j < w; j++){
      printf("%d", 1);
      if (j == w - 1) printf("\n");
    }
  }
  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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	xorl	%r14d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %r13d
	testl	%r13d, %r13d
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	movl	16(%rsp), %ebx
	xorl	%ebp, %ebp
	testl	%ebx, %ebx
	jle	.L36
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$1, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	16(%rsp), %ebx
	addl	$1, %ebp
	cmpl	%ebp, %ebx
	jg	.L4
.L36:
	cmpl	%ebx, 12(%rsp)
	jle	.L8
.L5:
	xorl	%edx, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %ebp
	leal	-1(%rbp), %eax
	cmpl	%ebx, %eax
	je	.L39
	addl	$1, %ebx
	cmpl	%ebx, %ebp
	jg	.L5
.L8:
	movl	20(%rsp), %r13d
	addl	$1, %r14d
	cmpl	%r14d, %r13d
	jg	.L2
.L3:
	leaq	.LC1(%rip), %r12
	cmpl	%r13d, 8(%rsp)
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movl	16(%rsp), %ebx
	xorl	%ebp, %ebp
	testl	%ebx, %ebx
	jle	.L37
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%edx, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	16(%rsp), %ebx
	addl	$1, %ebp
	cmpl	%ebp, %ebx
	jg	.L12
.L37:
	cmpl	%ebx, 12(%rsp)
	jle	.L16
.L13:
	movl	$1, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %ebp
	leal	-1(%rbp), %eax
	cmpl	%ebx, %eax
	je	.L40
	addl	$1, %ebx
	cmpl	%ebx, %ebp
	jg	.L13
.L16:
	addl	$1, %r13d
	cmpl	%r13d, 8(%rsp)
	jg	.L10
.L11:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_restore_state
	movl	$10, %edi
	movl	%ebp, %ebx
	call	putchar@PLT
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L40:
	movl	$10, %edi
	movl	%ebp, %ebx
	call	putchar@PLT
	jmp	.L37
.L41:
	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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	xorl	%r14d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$32, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %r13d
	testl	%r13d, %r13d
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	movl	16(%rsp), %ebx
	xorl	%ebp, %ebp
	testl	%ebx, %ebx
	jle	.L36
	.p2align 4,,10
	.p2align 3
.L4:
	movl	$1, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	16(%rsp), %ebx
	addl	$1, %ebp
	cmpl	%ebp, %ebx
	jg	.L4
.L36:
	cmpl	%ebx, 12(%rsp)
	jle	.L8
.L5:
	xorl	%edx, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %ebp
	leal	-1(%rbp), %eax
	cmpl	%ebx, %eax
	je	.L39
	addl	$1, %ebx
	cmpl	%ebx, %ebp
	jg	.L5
.L8:
	movl	20(%rsp), %r13d
	addl	$1, %r14d
	cmpl	%r14d, %r13d
	jg	.L2
.L3:
	leaq	.LC1(%rip), %r12
	cmpl	%r13d, 8(%rsp)
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movl	16(%rsp), %ebx
	xorl	%ebp, %ebp
	testl	%ebx, %ebx
	jle	.L37
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%edx, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	16(%rsp), %ebx
	addl	$1, %ebp
	cmpl	%ebp, %ebx
	jg	.L12
.L37:
	cmpl	%ebx, 12(%rsp)
	jle	.L16
.L13:
	movl	$1, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %ebp
	leal	-1(%rbp), %eax
	cmpl	%ebx, %eax
	je	.L40
	addl	$1, %ebx
	cmpl	%ebx, %ebp
	jg	.L13
.L16:
	addl	$1, %r13d
	cmpl	%r13d, 8(%rsp)
	jg	.L10
.L11:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_restore_state
	movl	$10, %edi
	movl	%ebp, %ebx
	call	putchar@PLT
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L40:
	movl	$10, %edi
	movl	%ebp, %ebx
	call	putchar@PLT
	jmp	.L37
.L41:
	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:
```