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;
    (void)scanf("%d %d %d %d",&H,&W,&A,&B);
    	for (int i=0; i<H; i++) {
    		for (int j=0; j<W; j++) {
    			putchar('0'+((i<B)^(j<A)));
    		}
    		putchar('\n');
    	}
    return 0;
    }```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d"
	.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	.LC0(%rip), %rdi
	xorl	%ebp, %ebp
	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	12(%rsp), %rdx
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	movl	12(%rsp), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	cmpl	%ebp, 20(%rsp)
	movq	stdout(%rip), %rsi
	setg	%dil
	cmpl	%ebx, 16(%rsp)
	setg	%al
	addl	$1, %ebx
	xorl	%eax, %edi
	movzbl	%dil, %edi
	addl	$48, %edi
	call	putc@PLT
	cmpl	%ebx, 12(%rsp)
	jg	.L4
.L5:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	addl	$1, %ebp
	call	putc@PLT
	cmpl	%ebp, 8(%rsp)
	jg	.L2
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	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
.L15:
	.cfi_restore_state
	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"
	.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	.LC0(%rip), %rdi
	xorl	%ebp, %ebp
	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	12(%rsp), %rdx
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	movl	12(%rsp), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	cmpl	%ebp, 20(%rsp)
	movq	stdout(%rip), %rsi
	setg	%dil
	cmpl	%ebx, 16(%rsp)
	setg	%al
	addl	$1, %ebx
	xorl	%eax, %edi
	movzbl	%dil, %edi
	addl	$48, %edi
	call	putc@PLT
	cmpl	%ebx, 12(%rsp)
	jg	.L4
.L5:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	addl	$1, %ebp
	call	putc@PLT
	cmpl	%ebp, 8(%rsp)
	jg	.L2
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	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
.L15:
	.cfi_restore_state
	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"
	.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	.LC0(%rip), %rdi
	xorl	%ebp, %ebp
	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	12(%rsp), %rdx
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	movl	12(%rsp), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	cmpl	%ebp, 20(%rsp)
	movq	stdout(%rip), %rsi
	setg	%dil
	cmpl	%ebx, 16(%rsp)
	setg	%al
	addl	$1, %ebx
	xorl	%eax, %edi
	movzbl	%dil, %edi
	addl	$48, %edi
	call	putc@PLT
	cmpl	%ebx, 12(%rsp)
	jg	.L4
.L5:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	addl	$1, %ebp
	call	putc@PLT
	cmpl	%ebp, 8(%rsp)
	jg	.L2
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	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
.L15:
	.cfi_restore_state
	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;
    (void)scanf("%d %d %d %d",&H,&W,&A,&B);
    	for (int i=0; i<H; i++) {
    		for (int j=0; j<W; j++) {
    			putchar('0'+((i<B)^(j<A)));
    		}
    		putchar('\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;
    (void)scanf("%d %d %d %d",&H,&W,&A,&B);
    	for (int i=0; i<H; i++) {
    		for (int j=0; j<W; j++) {
    			putchar('0'+((i<B)^(j<A)));
    		}
    		putchar('\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

111
000
000
 11000
 111111
000000
000000
 11110
 1111111111
0000000000
0000000000
 11110
11110
 111100
111100
 00000
 111
111
000
 00111

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;
    (void)scanf("%d %d %d %d",&H,&W,&A,&B);
    	for (int i=0; i<H; i++) {
    		for (int j=0; j<W; j++) {
    			putchar('0'+((i<B)^(j<A)));
    		}
    		putchar('\n');
    	}
    return 0;
    }```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d"
	.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	.LC0(%rip), %rdi
	xorl	%ebp, %ebp
	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	12(%rsp), %rdx
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	movl	12(%rsp), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	cmpl	%ebp, 20(%rsp)
	movq	stdout(%rip), %rsi
	setg	%dil
	cmpl	%ebx, 16(%rsp)
	setg	%al
	addl	$1, %ebx
	xorl	%eax, %edi
	movzbl	%dil, %edi
	addl	$48, %edi
	call	putc@PLT
	cmpl	%ebx, 12(%rsp)
	jg	.L4
.L5:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	addl	$1, %ebp
	call	putc@PLT
	cmpl	%ebp, 8(%rsp)
	jg	.L2
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	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
.L15:
	.cfi_restore_state
	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"
	.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	.LC0(%rip), %rdi
	xorl	%ebp, %ebp
	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	12(%rsp), %rdx
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rsi
	leaq	20(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	movl	12(%rsp), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	cmpl	%ebp, 20(%rsp)
	movq	stdout(%rip), %rsi
	setg	%dil
	cmpl	%ebx, 16(%rsp)
	setg	%al
	addl	$1, %ebx
	xorl	%eax, %edi
	movzbl	%dil, %edi
	addl	$48, %edi
	call	putc@PLT
	cmpl	%ebx, 12(%rsp)
	jg	.L4
.L5:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	addl	$1, %ebp
	call	putc@PLT
	cmpl	%ebp, 8(%rsp)
	jg	.L2
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	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
.L15:
	.cfi_restore_state
	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:
```