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 MIN(int a,int b){
    return a<b?a:b;
}
int main()
{   int h,w,a,b;
    scanf("%d%d%d%d",&h,&w,&a,&b);
    int arr[1000][1000]={0};
    int i=0;
    for(i=0;i<b;i++){
        for(int j=a;j<w;j++)arr[i][j]=1;
    }
   for(i;i<h;i++){
       for(int j=0;j<a;j++){
           arr[i][j]=1;
       }
   }
    for(int i=0;i<h;i++){
        for(int k=0;k<w;k++){
            printf("%d",arr[i][k]);
        }
        printf("\n");
    }

    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	MIN
	.type	MIN, @function
MIN:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	MIN, .-MIN
	.section	.rodata
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-3997696(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2368, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4000040(%rbp), %rsi
	leaq	-4000044(%rbp), %rcx
	leaq	-4000048(%rbp), %rdx
	leaq	-4000052(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-4000016(%rbp), %rax
	movl	$4000000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -4000036(%rbp)
	movl	$0, -4000036(%rbp)
	jmp	.L4
.L7:
	movl	-4000044(%rbp), %eax
	movl	%eax, -4000032(%rbp)
	jmp	.L5
.L6:
	movl	-4000032(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4000036(%rbp), %eax
	cltq
	imulq	$1000, %rax, %rax
	addq	%rdx, %rax
	movl	$1, -4000016(%rbp,%rax,4)
	addl	$1, -4000032(%rbp)
.L5:
	movl	-4000048(%rbp), %eax
	cmpl	%eax, -4000032(%rbp)
	jl	.L6
	addl	$1, -4000036(%rbp)
.L4:
	movl	-4000040(%rbp), %eax
	cmpl	%eax, -4000036(%rbp)
	jl	.L7
	jmp	.L8
.L11:
	movl	$0, -4000028(%rbp)
	jmp	.L9
.L10:
	movl	-4000028(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4000036(%rbp), %eax
	cltq
	imulq	$1000, %rax, %rax
	addq	%rdx, %rax
	movl	$1, -4000016(%rbp,%rax,4)
	addl	$1, -4000028(%rbp)
.L9:
	movl	-4000044(%rbp), %eax
	cmpl	%eax, -4000028(%rbp)
	jl	.L10
	addl	$1, -4000036(%rbp)
.L8:
	movl	-4000052(%rbp), %eax
	cmpl	%eax, -4000036(%rbp)
	jl	.L11
	movl	$0, -4000024(%rbp)
	jmp	.L12
.L15:
	movl	$0, -4000020(%rbp)
	jmp	.L13
.L14:
	movl	-4000020(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4000024(%rbp), %eax
	cltq
	imulq	$1000, %rax, %rax
	addq	%rdx, %rax
	movl	-4000016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4000020(%rbp)
.L13:
	movl	-4000048(%rbp), %eax
	cmpl	%eax, -4000020(%rbp)
	jl	.L14
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -4000024(%rbp)
.L12:
	movl	-4000052(%rbp), %eax
	cmpl	%eax, -4000024(%rbp)
	jl	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.p2align 4
	.globl	MIN
	.type	MIN, @function
MIN:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	movl	%edi, %eax
	cmovle	%esi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	MIN, .-MIN
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	-3997696(%rsp), %r11
	.cfi_def_cfa 11, 3997752
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2360, %rsp
	.cfi_def_cfa_offset 4000112
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 4000040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rcx
	leaq	20(%rsp), %rdx
	leaq	16(%rsp), %rsi
	leaq	28(%rsp), %r8
	leaq	32(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movl	$4000000, %edx
	xorl	%esi, %esi
	movq	%rbx, %rdi
	movq	%rbx, 8(%rsp)
	call	memset@PLT
	movl	28(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L22
	movslq	24(%rsp), %rax
	movl	20(%rsp), %r8d
	movdqa	.LC1(%rip), %xmm0
	leaq	(%rbx,%rax,4), %rdi
	movl	%r8d, %ebx
	movq	%rax, %r9
	subl	%eax, %ebx
	movl	%ebx, %eax
	movl	%ebx, %r12d
	leal	-1(%rbx), %ebp
	shrl	$2, %eax
	andl	$-4, %r12d
	subl	$1, %eax
	leal	(%r9,%r12), %r10d
	cmpl	$2, %ebp
	cmovbe	%r9d, %r10d
	leaq	1(%rax), %r11
	xorl	%esi, %esi
	salq	$4, %r11
	leal	2(%r10), %r14d
	leal	1(%r10), %r13d
	movslq	%r10d, %r10
	movslq	%r14d, %rdx
	movslq	%r13d, %r15
	movq	%rdx, (%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	%r8d, %r9d
	jge	.L5
	cmpl	$2, %ebp
	jbe	.L6
	leaq	(%r11,%rdi), %rdx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L7:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L7
	cmpl	%r12d, %ebx
	je	.L5
.L6:
	movslq	%esi, %rax
	imulq	$1000, %rax, %rax
	leaq	(%rax,%r10), %rdx
	movl	$1, 32(%rsp,%rdx,4)
	cmpl	%r13d, %r8d
	jle	.L5
	leaq	(%rax,%r15), %rdx
	movl	$1, 32(%rsp,%rdx,4)
	cmpl	%r14d, %r8d
	jle	.L5
	addq	(%rsp), %rax
	movl	$1, 32(%rsp,%rax,4)
.L5:
	addl	$1, %esi
	addq	$4000, %rdi
	cmpl	%ecx, %esi
	jne	.L9
.L4:
	movl	16(%rsp), %r11d
	cmpl	%ecx, %r11d
	jle	.L10
	movl	24(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L11
	movl	%r8d, %eax
	movslq	%ecx, %rdi
	leal	-1(%r8), %ebx
	movl	%r8d, %r9d
	shrl	$2, %eax
	movdqa	.LC1(%rip), %xmm0
	imulq	$4000, %rdi, %rdi
	andl	$-4, %r9d
	leal	-1(%rax), %r10d
	addq	8(%rsp), %rdi
	addq	$1, %r10
	salq	$4, %r10
	.p2align 4,,10
	.p2align 3
.L12:
	leaq	(%r10,%rdi), %rdx
	movq	%rdi, %rax
	cmpl	$2, %ebx
	jbe	.L33
	.p2align 4,,10
	.p2align 3
.L13:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L13
	movl	%r9d, %eax
	cmpl	%r8d, %r9d
	je	.L14
.L15:
	movslq	%ecx, %rdx
	movslq	%eax, %rsi
	imulq	$1000, %rdx, %rdx
	addq	%rdx, %rsi
	movl	$1, 32(%rsp,%rsi,4)
	leal	1(%rax), %esi
	cmpl	%r8d, %esi
	jge	.L14
	movslq	%esi, %rsi
	addl	$2, %eax
	addq	%rdx, %rsi
	movl	$1, 32(%rsp,%rsi,4)
	cmpl	%eax, %r8d
	jle	.L14
	cltq
	addq	%rax, %rdx
	movl	$1, 32(%rsp,%rdx,4)
.L14:
	addl	$1, %ecx
	addq	$4000, %rdi
	cmpl	%r11d, %ecx
	jne	.L12
.L11:
	movq	8(%rsp), %rbp
	xorl	%r13d, %r13d
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L19:
	movl	20(%rsp), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	.L20
	.p2align 4,,10
	.p2align 3
.L18:
	movl	0(%rbp,%rbx,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 20(%rsp)
	jg	.L18
.L20:
	movl	$10, %edi
	addl	$1, %r13d
	addq	$4000, %rbp
	call	putchar@PLT
	cmpl	%r13d, 16(%rsp)
	jg	.L19
.L17:
	movq	4000040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$4000056, %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
.L33:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L15
.L22:
	xorl	%ecx, %ecx
	jmp	.L4
.L10:
	testl	%r11d, %r11d
	jle	.L17
	jmp	.L11
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
	.p2align 4
	.globl	MIN
	.type	MIN, @function
MIN:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	movl	%edi, %eax
	cmovle	%esi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	MIN, .-MIN
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	-3997696(%rsp), %r11
	.cfi_def_cfa 11, 3997752
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2360, %rsp
	.cfi_def_cfa_offset 4000112
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 4000040(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rcx
	leaq	20(%rsp), %rdx
	leaq	16(%rsp), %rsi
	leaq	28(%rsp), %r8
	leaq	32(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movl	$4000000, %edx
	xorl	%esi, %esi
	movq	%rbx, %rdi
	movq	%rbx, 8(%rsp)
	call	memset@PLT
	movl	28(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L22
	movslq	24(%rsp), %rax
	movl	20(%rsp), %r8d
	movdqa	.LC1(%rip), %xmm0
	leaq	(%rbx,%rax,4), %rdi
	movl	%r8d, %ebx
	movq	%rax, %r9
	subl	%eax, %ebx
	movl	%ebx, %eax
	movl	%ebx, %r12d
	leal	-1(%rbx), %ebp
	shrl	$2, %eax
	andl	$-4, %r12d
	subl	$1, %eax
	leal	(%r9,%r12), %r10d
	cmpl	$2, %ebp
	cmovbe	%r9d, %r10d
	leaq	1(%rax), %r11
	xorl	%esi, %esi
	salq	$4, %r11
	leal	2(%r10), %r14d
	leal	1(%r10), %r13d
	movslq	%r10d, %r10
	movslq	%r14d, %rdx
	movslq	%r13d, %r15
	movq	%rdx, (%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	%r8d, %r9d
	jge	.L5
	cmpl	$2, %ebp
	jbe	.L6
	leaq	(%r11,%rdi), %rdx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L7:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L7
	cmpl	%r12d, %ebx
	je	.L5
.L6:
	movslq	%esi, %rax
	imulq	$1000, %rax, %rax
	leaq	(%rax,%r10), %rdx
	movl	$1, 32(%rsp,%rdx,4)
	cmpl	%r13d, %r8d
	jle	.L5
	leaq	(%rax,%r15), %rdx
	movl	$1, 32(%rsp,%rdx,4)
	cmpl	%r14d, %r8d
	jle	.L5
	addq	(%rsp), %rax
	movl	$1, 32(%rsp,%rax,4)
.L5:
	addl	$1, %esi
	addq	$4000, %rdi
	cmpl	%ecx, %esi
	jne	.L9
.L4:
	movl	16(%rsp), %r11d
	cmpl	%ecx, %r11d
	jle	.L10
	movl	24(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L11
	movl	%r8d, %eax
	movslq	%ecx, %rdi
	leal	-1(%r8), %ebx
	movl	%r8d, %r9d
	shrl	$2, %eax
	movdqa	.LC1(%rip), %xmm0
	imulq	$4000, %rdi, %rdi
	andl	$-4, %r9d
	leal	-1(%rax), %r10d
	addq	8(%rsp), %rdi
	addq	$1, %r10
	salq	$4, %r10
	.p2align 4,,10
	.p2align 3
.L12:
	leaq	(%r10,%rdi), %rdx
	movq	%rdi, %rax
	cmpl	$2, %ebx
	jbe	.L33
	.p2align 4,,10
	.p2align 3
.L13:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L13
	movl	%r9d, %eax
	cmpl	%r8d, %r9d
	je	.L14
.L15:
	movslq	%ecx, %rdx
	movslq	%eax, %rsi
	imulq	$1000, %rdx, %rdx
	addq	%rdx, %rsi
	movl	$1, 32(%rsp,%rsi,4)
	leal	1(%rax), %esi
	cmpl	%r8d, %esi
	jge	.L14
	movslq	%esi, %rsi
	addl	$2, %eax
	addq	%rdx, %rsi
	movl	$1, 32(%rsp,%rsi,4)
	cmpl	%eax, %r8d
	jle	.L14
	cltq
	addq	%rax, %rdx
	movl	$1, 32(%rsp,%rdx,4)
.L14:
	addl	$1, %ecx
	addq	$4000, %rdi
	cmpl	%r11d, %ecx
	jne	.L12
.L11:
	movq	8(%rsp), %rbp
	xorl	%r13d, %r13d
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L19:
	movl	20(%rsp), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	.L20
	.p2align 4,,10
	.p2align 3
.L18:
	movl	0(%rbp,%rbx,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 20(%rsp)
	jg	.L18
.L20:
	movl	$10, %edi
	addl	$1, %r13d
	addq	$4000, %rbp
	call	putchar@PLT
	cmpl	%r13d, 16(%rsp)
	jg	.L19
.L17:
	movq	4000040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$4000056, %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
.L33:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L15
.L22:
	xorl	%ecx, %ecx
	jmp	.L4
.L10:
	testl	%r11d, %r11d
	jle	.L17
	jmp	.L11
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	1
	.long	1
	.long	1
	.long	1
	.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 MIN(int a,int b){
    return a<b?a:b;
}
int main()
{   int h,w,a,b;
    scanf("%d%d%d%d",&h,&w,&a,&b);
    int arr[1000][1000]={0};
    int i=0;
    for(i=0;i<b;i++){
        for(int j=a;j<w;j++)arr[i][j]=1;
    }
   for(i;i<h;i++){
       for(int j=0;j<a;j++){
           arr[i][j]=1;
       }
   }
    for(int i=0;i<h;i++){
        for(int k=0;k<w;k++){
            printf("%d",arr[i][k]);
        }
        printf("\n");
    }

    return 0;
}

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 unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c

#include <stdio.h>
int MIN(int a,int b){
    return a<b?a:b;
}
int main()
{   int h,w,a,b;
    scanf("%d%d%d%d",&h,&w,&a,&b);
    int arr[1000][1000]={0};
    int i=0;
    for(i=0;i<b;i++){
        for(int j=a;j<w;j++)arr[i][j]=1;
    }
   for(i;i<h;i++){
       for(int j=0;j<a;j++){
           arr[i][j]=1;
       }
   }
    for(int i=0;i<h;i++){
        for(int k=0;k<w;k++){
            printf("%d",arr[i][k]);
        }
        printf("\n");
    }

    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	MIN
	.type	MIN, @function
MIN:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	MIN, .-MIN
	.section	.rodata
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-3997696(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2368, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4000040(%rbp), %rsi
	leaq	-4000044(%rbp), %rcx
	leaq	-4000048(%rbp), %rdx
	leaq	-4000052(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-4000016(%rbp), %rax
	movl	$4000000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -4000036(%rbp)
	movl	$0, -4000036(%rbp)
	jmp	.L4
.L7:
	movl	-4000044(%rbp), %eax
	movl	%eax, -4000032(%rbp)
	jmp	.L5
.L6:
	movl	-4000032(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4000036(%rbp), %eax
	cltq
	imulq	$1000, %rax, %rax
	addq	%rdx, %rax
	movl	$1, -4000016(%rbp,%rax,4)
	addl	$1, -4000032(%rbp)
.L5:
	movl	-4000048(%rbp), %eax
	cmpl	%eax, -4000032(%rbp)
	jl	.L6
	addl	$1, -4000036(%rbp)
.L4:
	movl	-4000040(%rbp), %eax
	cmpl	%eax, -4000036(%rbp)
	jl	.L7
	jmp	.L8
.L11:
	movl	$0, -4000028(%rbp)
	jmp	.L9
.L10:
	movl	-4000028(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4000036(%rbp), %eax
	cltq
	imulq	$1000, %rax, %rax
	addq	%rdx, %rax
	movl	$1, -4000016(%rbp,%rax,4)
	addl	$1, -4000028(%rbp)
.L9:
	movl	-4000044(%rbp), %eax
	cmpl	%eax, -4000028(%rbp)
	jl	.L10
	addl	$1, -4000036(%rbp)
.L8:
	movl	-4000052(%rbp), %eax
	cmpl	%eax, -4000036(%rbp)
	jl	.L11
	movl	$0, -4000024(%rbp)
	jmp	.L12
.L15:
	movl	$0, -4000020(%rbp)
	jmp	.L13
.L14:
	movl	-4000020(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4000024(%rbp), %eax
	cltq
	imulq	$1000, %rax, %rax
	addq	%rdx, %rax
	movl	-4000016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4000020(%rbp)
.L13:
	movl	-4000048(%rbp), %eax
	cmpl	%eax, -4000020(%rbp)
	jl	.L14
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -4000024(%rbp)
.L12:
	movl	-4000052(%rbp), %eax
	cmpl	%eax, -4000024(%rbp)
	jl	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	MIN
	.type	MIN, @function
MIN:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	MIN, .-MIN
	.section	.rodata
.LC0:
	.string	"%d%d%d%d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-3997696(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2368, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4000040(%rbp), %rsi
	leaq	-4000044(%rbp), %rcx
	leaq	-4000048(%rbp), %rdx
	leaq	-4000052(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-4000016(%rbp), %rax
	movl	$4000000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -4000036(%rbp)
	movl	$0, -4000036(%rbp)
	jmp	.L4
.L7:
	movl	-4000044(%rbp), %eax
	movl	%eax, -4000032(%rbp)
	jmp	.L5
.L6:
	movl	-4000032(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4000036(%rbp), %eax
	cltq
	imulq	$1000, %rax, %rax
	addq	%rdx, %rax
	movl	$1, -4000016(%rbp,%rax,4)
	addl	$1, -4000032(%rbp)
.L5:
	movl	-4000048(%rbp), %eax
	cmpl	%eax, -4000032(%rbp)
	jl	.L6
	addl	$1, -4000036(%rbp)
.L4:
	movl	-4000040(%rbp), %eax
	cmpl	%eax, -4000036(%rbp)
	jl	.L7
	jmp	.L8
.L11:
	movl	$0, -4000028(%rbp)
	jmp	.L9
.L10:
	movl	-4000028(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4000036(%rbp), %eax
	cltq
	imulq	$1000, %rax, %rax
	addq	%rdx, %rax
	movl	$1, -4000016(%rbp,%rax,4)
	addl	$1, -4000028(%rbp)
.L9:
	movl	-4000044(%rbp), %eax
	cmpl	%eax, -4000028(%rbp)
	jl	.L10
	addl	$1, -4000036(%rbp)
.L8:
	movl	-4000052(%rbp), %eax
	cmpl	%eax, -4000036(%rbp)
	jl	.L11
	movl	$0, -4000024(%rbp)
	jmp	.L12
.L15:
	movl	$0, -4000020(%rbp)
	jmp	.L13
.L14:
	movl	-4000020(%rbp), %eax
	movslq	%eax, %rdx
	movl	-4000024(%rbp), %eax
	cltq
	imulq	$1000, %rax, %rax
	addq	%rdx, %rax
	movl	-4000016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4000020(%rbp)
.L13:
	movl	-4000048(%rbp), %eax
	cmpl	%eax, -4000020(%rbp)
	jl	.L14
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -4000024(%rbp)
.L12:
	movl	-4000052(%rbp), %eax
	cmpl	%eax, -4000024(%rbp)
	jl	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
