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>

#define MAX_SIZE 100002

#define OK  0
#define NG  1

#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))


int Col[MAX_SIZE];
int Row[MAX_SIZE];

/* いもす準備された配列とサイズを受け取り、いもす展開しながら全て1以上であればOKを返す */
int check(int list[],int list_size){
    int i,ret;

    ret = OK;
    /* いもす展開 ＆ 判定 */
    for(i=0;i<list_size;i++){
        if(list[i]<=0){
            ret = NG;
            break;
        }
        list[i+1]+=list[i];
    }
    return ret;
}

int main(){
    int n,w,h;
    int xi,yi,wi;
    int i,ans;

    /* 初期化 */
    for(i=0;i<MAX_SIZE;i++){
        Col[i]=0;
        Row[i]=0;
    }

    /* いもす準備 */
    scanf("%d %d %d",&n,&w,&h);
    for(i=0;i<n;i++){
        scanf("%d %d %d",&xi,&yi,&wi);
        Col[MAX(xi-wi,0)]++;
        Col[MIN(xi+wi,w)]--;
        Row[MAX(yi-wi,0)]++;
        Row[MIN(yi+wi,h)]--;
    }

    /* いもす展開 ＆ 判定 */
    /* 縦か横のどちらかが全範囲を網羅できていればよい */
    if( (check(Col,w)==OK) || (check(Row,h)==OK) ){
        printf("Yes\n");
    }else{
        printf("No\n");
    }

    return 0;

}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	Col
	.bss
	.align 32
	.type	Col, @object
	.size	Col, 400008
Col:
	.zero	400008
	.globl	Row
	.align 32
	.type	Row, @object
	.size	Row, 400008
Row:
	.zero	400008
	.text
	.globl	check
	.type	check, @function
check:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L2
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jg	.L3
	movl	$1, -4(%rbp)
	jmp	.L4
.L3:
	movl	-8(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,4), %rsi
	movq	-24(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, (%rax)
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L5
.L4:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	check, .-check
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -12(%rbp)
	jmp	.L8
.L9:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Col(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Row(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L8:
	cmpl	$100001, -12(%rbp)
	jle	.L9
	leaq	-28(%rbp), %rcx
	leaq	-32(%rbp), %rdx
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L10
.L11:
	leaq	-16(%rbp), %rcx
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-24(%rbp), %eax
	movl	-16(%rbp), %edx
	subl	%edx, %eax
	movl	$0, %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	Col(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Col(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-24(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%eax, %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	Col(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	-1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Col(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-20(%rbp), %eax
	movl	-16(%rbp), %edx
	subl	%edx, %eax
	movl	$0, %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	Row(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Row(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%eax, %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	Row(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	-1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Row(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L10:
	movl	-36(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L11
	movl	-32(%rbp), %eax
	movl	%eax, %esi
	leaq	Col(%rip), %rax
	movq	%rax, %rdi
	call	check
	testl	%eax, %eax
	je	.L12
	movl	-28(%rbp), %eax
	movl	%eax, %esi
	leaq	Row(%rip), %rax
	movq	%rax, %rdi
	call	check
	testl	%eax, %eax
	jne	.L13
.L12:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L14
.L13:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L14:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	check
	.type	check, @function
check:
.LFB23:
	.cfi_startproc
	endbr64
	testl	%esi, %esi
	jle	.L2
	leal	-1(%rsi), %edx
	leaq	4(%rdi), %rax
	leaq	8(%rdi,%rdx,4), %rcx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	addl	%edx, (%rax)
	addq	$4, %rax
	cmpq	%rcx, %rax
	je	.L2
.L4:
	movl	-4(%rax), %edx
	testl	%edx, %edx
	jg	.L8
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	check, .-check
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.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
	leaq	Col(%rip), %r15
	movl	$400008, %edx
	xorl	%esi, %esi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r15, %rdi
	leaq	Row(%rip), %r14
	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	.LC0(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	call	memset@PLT
	movl	$400008, %edx
	xorl	%esi, %esi
	movq	%r14, %rdi
	call	memset@PLT
	leaq	24(%rsp), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	leaq	20(%rsp), %rdx
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	testl	%eax, %eax
	jle	.L10
	leaq	28(%rsp), %rax
	xorl	%ebp, %ebp
	leaq	36(%rsp), %r13
	movq	%rax, 8(%rsp)
	leaq	32(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L11:
	movq	8(%rsp), %rsi
	movq	%r13, %rcx
	movq	%r12, %rdx
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	movl	$0, %ecx
	movl	$0, %esi
	movl	%eax, %edx
	subl	36(%rsp), %edx
	cmovs	%ecx, %edx
	addl	36(%rsp), %eax
	movl	32(%rsp), %ecx
	movslq	%edx, %rdx
	addl	$1, (%r15,%rdx,4)
	movl	20(%rsp), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	cltq
	subl	$1, (%r15,%rax,4)
	movl	%ecx, %eax
	subl	36(%rsp), %eax
	cmovs	%esi, %eax
	cltq
	addl	$1, (%r14,%rax,4)
	movl	36(%rsp), %eax
	addl	%ecx, %eax
	movl	24(%rsp), %ecx
	cmpl	%ecx, %eax
	cmovg	%ecx, %eax
	addl	$1, %ebp
	cltq
	subl	$1, (%r14,%rax,4)
	cmpl	%ebp, 16(%rsp)
	jg	.L11
.L12:
	testl	%edx, %edx
	jle	.L17
	leaq	4+Col(%rip), %rax
	leal	-1(%rdx), %esi
	movl	Col(%rip), %ecx
	leaq	4(%rax), %rdx
	leaq	(%rdx,%rsi,4), %rdx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L27:
	addl	(%rax), %ecx
	addq	$4, %rax
	movl	%ecx, -4(%rax)
	cmpq	%rdx, %rax
	je	.L17
.L16:
	testl	%ecx, %ecx
	jg	.L27
	movl	24(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L17
	leaq	4+Row(%rip), %rax
	leal	-1(%rcx), %esi
	movl	Row(%rip), %edx
	leaq	4(%rax), %rcx
	leaq	(%rcx,%rsi,4), %rcx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L28:
	addl	(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rax, %rcx
	je	.L17
.L19:
	testl	%edx, %edx
	jg	.L28
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L14
.L17:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L14:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$56, %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
.L10:
	.cfi_restore_state
	movl	20(%rsp), %edx
	jmp	.L12
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	Row
	.bss
	.align 32
	.type	Row, @object
	.size	Row, 400008
Row:
	.zero	400008
	.globl	Col
	.align 32
	.type	Col, @object
	.size	Col, 400008
Col:
	.zero	400008
	.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	check
	.type	check, @function
check:
.LFB23:
	.cfi_startproc
	endbr64
	testl	%esi, %esi
	jle	.L2
	leal	-1(%rsi), %edx
	leaq	4(%rdi), %rax
	leaq	8(%rdi,%rdx,4), %rcx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	addl	%edx, (%rax)
	addq	$4, %rax
	cmpq	%rcx, %rax
	je	.L2
.L4:
	movl	-4(%rax), %edx
	testl	%edx, %edx
	jg	.L8
	movl	$1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	check, .-check
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.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
	leaq	Col(%rip), %r15
	movl	$400008, %edx
	xorl	%esi, %esi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r15, %rdi
	leaq	Row(%rip), %r14
	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	.LC0(%rip), %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	call	memset@PLT
	movl	$400008, %edx
	xorl	%esi, %esi
	movq	%r14, %rdi
	call	memset@PLT
	leaq	24(%rsp), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	leaq	20(%rsp), %rdx
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	testl	%eax, %eax
	jle	.L10
	leaq	28(%rsp), %rax
	xorl	%ebp, %ebp
	leaq	36(%rsp), %r13
	movq	%rax, 8(%rsp)
	leaq	32(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L11:
	movq	8(%rsp), %rsi
	movq	%r13, %rcx
	movq	%r12, %rdx
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	movl	$0, %ecx
	movl	$0, %esi
	movl	%eax, %edx
	subl	36(%rsp), %edx
	cmovs	%ecx, %edx
	addl	36(%rsp), %eax
	movl	32(%rsp), %ecx
	movslq	%edx, %rdx
	addl	$1, (%r15,%rdx,4)
	movl	20(%rsp), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	cltq
	subl	$1, (%r15,%rax,4)
	movl	%ecx, %eax
	subl	36(%rsp), %eax
	cmovs	%esi, %eax
	cltq
	addl	$1, (%r14,%rax,4)
	movl	36(%rsp), %eax
	addl	%ecx, %eax
	movl	24(%rsp), %ecx
	cmpl	%ecx, %eax
	cmovg	%ecx, %eax
	addl	$1, %ebp
	cltq
	subl	$1, (%r14,%rax,4)
	cmpl	%ebp, 16(%rsp)
	jg	.L11
.L12:
	testl	%edx, %edx
	jle	.L17
	leaq	4+Col(%rip), %rax
	leal	-1(%rdx), %esi
	movl	Col(%rip), %ecx
	leaq	4(%rax), %rdx
	leaq	(%rdx,%rsi,4), %rdx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L27:
	addl	(%rax), %ecx
	addq	$4, %rax
	movl	%ecx, -4(%rax)
	cmpq	%rdx, %rax
	je	.L17
.L16:
	testl	%ecx, %ecx
	jg	.L27
	movl	24(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L17
	leaq	4+Row(%rip), %rax
	leal	-1(%rcx), %esi
	movl	Row(%rip), %edx
	leaq	4(%rax), %rcx
	leaq	(%rcx,%rsi,4), %rcx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L28:
	addl	(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rax, %rcx
	je	.L17
.L19:
	testl	%edx, %edx
	jg	.L28
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L14
.L17:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L14:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$56, %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
.L10:
	.cfi_restore_state
	movl	20(%rsp), %edx
	jmp	.L12
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	Row
	.bss
	.align 32
	.type	Row, @object
	.size	Row, 400008
Row:
	.zero	400008
	.globl	Col
	.align 32
	.type	Col, @object
	.size	Col, 400008
Col:
	.zero	400008
	.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>

#define MAX_SIZE 100002

#define OK  0
#define NG  1

#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))


int Col[MAX_SIZE];
int Row[MAX_SIZE];

/* いもす準備された配列とサイズを受け取り、いもす展開しながら全て1以上であればOKを返す */
int check(int list[],int list_size){
    int i,ret;

    ret = OK;
    /* いもす展開 ＆ 判定 */
    for(i=0;i<list_size;i++){
        if(list[i]<=0){
            ret = NG;
            break;
        }
        list[i+1]+=list[i];
    }
    return ret;
}

int main(){
    int n,w,h;
    int xi,yi,wi;
    int i,ans;

    /* 初期化 */
    for(i=0;i<MAX_SIZE;i++){
        Col[i]=0;
        Row[i]=0;
    }

    /* いもす準備 */
    scanf("%d %d %d",&n,&w,&h);
    for(i=0;i<n;i++){
        scanf("%d %d %d",&xi,&yi,&wi);
        Col[MAX(xi-wi,0)]++;
        Col[MIN(xi+wi,w)]--;
        Row[MAX(yi-wi,0)]++;
        Row[MIN(yi+wi,h)]--;
    }

    /* いもす展開 ＆ 判定 */
    /* 縦か横のどちらかが全範囲を網羅できていればよい */
    if( (check(Col,w)==OK) || (check(Row,h)==OK) ){
        printf("Yes\n");
    }else{
        printf("No\n");
    }

    return 0;

}


3 9 9
2 2 2
5 5 2
8 8 2

Yes

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>

#define MAX_SIZE 100002

#define OK  0
#define NG  1

#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))


int Col[MAX_SIZE];
int Row[MAX_SIZE];

/* いもす準備された配列とサイズを受け取り、いもす展開しながら全て1以上であればOKを返す */
int check(int list[],int list_size){
    int i,ret;

    ret = OK;
    /* いもす展開 ＆ 判定 */
    for(i=0;i<list_size;i++){
        if(list[i]<=0){
            ret = NG;
            break;
        }
        list[i+1]+=list[i];
    }
    return ret;
}

int main(){
    int n,w,h;
    int xi,yi,wi;
    int i,ans;

    /* 初期化 */
    for(i=0;i<MAX_SIZE;i++){
        Col[i]=0;
        Row[i]=0;
    }

    /* いもす準備 */
    scanf("%d %d %d",&n,&w,&h);
    for(i=0;i<n;i++){
        scanf("%d %d %d",&xi,&yi,&wi);
        Col[MAX(xi-wi,0)]++;
        Col[MIN(xi+wi,w)]--;
        Row[MAX(yi-wi,0)]++;
        Row[MIN(yi+wi,h)]--;
    }

    /* いもす展開 ＆ 判定 */
    /* 縦か横のどちらかが全範囲を網羅できていればよい */
    if( (check(Col,w)==OK) || (check(Row,h)==OK) ){
        printf("Yes\n");
    }else{
        printf("No\n");
    }

    return 0;

}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	Col
	.bss
	.align 32
	.type	Col, @object
	.size	Col, 400008
Col:
	.zero	400008
	.globl	Row
	.align 32
	.type	Row, @object
	.size	Row, 400008
Row:
	.zero	400008
	.text
	.globl	check
	.type	check, @function
check:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L2
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jg	.L3
	movl	$1, -4(%rbp)
	jmp	.L4
.L3:
	movl	-8(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,4), %rsi
	movq	-24(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, (%rax)
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L5
.L4:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	check, .-check
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -12(%rbp)
	jmp	.L8
.L9:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Col(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Row(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L8:
	cmpl	$100001, -12(%rbp)
	jle	.L9
	leaq	-28(%rbp), %rcx
	leaq	-32(%rbp), %rdx
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L10
.L11:
	leaq	-16(%rbp), %rcx
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-24(%rbp), %eax
	movl	-16(%rbp), %edx
	subl	%edx, %eax
	movl	$0, %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	Col(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Col(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-24(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%eax, %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	Col(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	-1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Col(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-20(%rbp), %eax
	movl	-16(%rbp), %edx
	subl	%edx, %eax
	movl	$0, %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	Row(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Row(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%eax, %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	Row(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	-1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Row(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L10:
	movl	-36(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L11
	movl	-32(%rbp), %eax
	movl	%eax, %esi
	leaq	Col(%rip), %rax
	movq	%rax, %rdi
	call	check
	testl	%eax, %eax
	je	.L12
	movl	-28(%rbp), %eax
	movl	%eax, %esi
	leaq	Row(%rip), %rax
	movq	%rax, %rdi
	call	check
	testl	%eax, %eax
	jne	.L13
.L12:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L14
.L13:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L14:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	Col
	.bss
	.align 32
	.type	Col, @object
	.size	Col, 400008
Col:
	.zero	400008
	.globl	Row
	.align 32
	.type	Row, @object
	.size	Row, 400008
Row:
	.zero	400008
	.text
	.globl	check
	.type	check, @function
check:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L2
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jg	.L3
	movl	$1, -4(%rbp)
	jmp	.L4
.L3:
	movl	-8(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,4), %rsi
	movq	-24(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, (%rax)
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L5
.L4:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	check, .-check
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.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
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -12(%rbp)
	jmp	.L8
.L9:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Col(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Row(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L8:
	cmpl	$100001, -12(%rbp)
	jle	.L9
	leaq	-28(%rbp), %rcx
	leaq	-32(%rbp), %rdx
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L10
.L11:
	leaq	-16(%rbp), %rcx
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-24(%rbp), %eax
	movl	-16(%rbp), %edx
	subl	%edx, %eax
	movl	$0, %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	Col(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Col(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-24(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%eax, %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	Col(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	-1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Col(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-20(%rbp), %eax
	movl	-16(%rbp), %edx
	subl	%edx, %eax
	movl	$0, %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	Row(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Row(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-20(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%eax, %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	Row(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	-1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	Row(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L10:
	movl	-36(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L11
	movl	-32(%rbp), %eax
	movl	%eax, %esi
	leaq	Col(%rip), %rax
	movq	%rax, %rdi
	call	check
	testl	%eax, %eax
	je	.L12
	movl	-28(%rbp), %eax
	movl	%eax, %esi
	leaq	Row(%rip), %rax
	movq	%rax, %rdi
	call	check
	testl	%eax, %eax
	jne	.L13
.L12:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L14
.L13:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L14:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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:
