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(){
        int x, y;
        scanf("%d %d", &x, &y);

        int tx=0, ty=0, a=1, b=1, ans=0;
        while(1){
                if(tx==x && ty==y) break;

                b += a;
                tx += b-1;
                ans++;
                if(tx-a<x && x<=tx && ty<=y && y<ty+a) break;

                a += b;
                ty += a-1;
                ans++;
                if(tx-b<x && x<=tx && ty-b<y && y<=ty) break;

                b += a;
                tx -= b-1;
                ans++;
                if(tx<=x && x<tx+a && ty-a<y && y<=ty) break;

                a += b;
                ty -= a-1;
                ans++;
                if(tx<=x && x<tx+b && ty<=y && y<ty+b) break;
        }

        printf("%d\n", ans%3+1);
        return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %esi
	movl	4(%rsp), %r11d
	xorl	%edi, %edi
	movl	$4, %r8d
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%eax, %eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L43:
	leal	(%rcx,%rax), %r9d
	cmpl	%r9d, %esi
	jge	.L8
	movl	%edi, %r9d
	subl	%ecx, %r9d
	cmpl	%r9d, %r11d
	jle	.L8
	cmpl	%edi, %r11d
	jle	.L39
.L8:
	addl	%edx, %ecx
	leal	(%rdx,%rax), %r10d
	leal	-1(%rcx), %r9d
	subl	%r9d, %edi
	movl	%r8d, %r9d
	cmpl	%r10d, %esi
	jge	.L9
	cmpl	%edi, %r11d
	jl	.L9
	leal	(%rdx,%rdi), %r10d
	cmpl	%r10d, %r11d
	jl	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$4, %r8d
.L2:
	leal	-4(%r8), %r9d
	cmpl	%eax, %esi
	je	.L40
.L3:
	addl	%ecx, %edx
	leal	-1(%rax,%rdx), %eax
	cmpl	%eax, %esi
	movl	%eax, %r10d
	setle	%r9b
	subl	%ecx, %r10d
	cmpl	%r10d, %esi
	jle	.L5
	testb	%r9b, %r9b
	jne	.L41
.L5:
	movl	%eax, %r10d
	addl	%edx, %ecx
	subl	%edx, %r10d
	leal	-1(%rdi,%rcx), %edi
	cmpl	%r10d, %esi
	jle	.L6
	testb	%r9b, %r9b
	jne	.L42
.L6:
	addl	%ecx, %edx
	leal	-1(%rdx), %r9d
	subl	%r9d, %eax
	cmpl	%eax, %esi
	jge	.L43
	addl	%edx, %ecx
	leal	-1(%rcx), %r9d
	subl	%r9d, %edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L40:
	cmpl	%edi, %r11d
	jne	.L3
.L4:
	movl	%r9d, %eax
	movl	$2863311531, %edx
	movl	$1, %edi
	imulq	%rdx, %rax
	leaq	.LC1(%rip), %rsi
	shrq	$33, %rax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %r9d
	xorl	%eax, %eax
	leal	1(%r9), %edx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L44
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	cmpl	%edi, %r11d
	jl	.L5
	leal	(%rdi,%rcx), %r10d
	cmpl	%r10d, %r11d
	jge	.L5
	leal	-3(%r8), %r9d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L42:
	movl	%edi, %r9d
	subl	%edx, %r9d
	cmpl	%r9d, %r11d
	jle	.L6
	cmpl	%edi, %r11d
	jg	.L6
	leal	-2(%r8), %r9d
	jmp	.L4
.L39:
	leal	-1(%r8), %r9d
	jmp	.L4
.L44:
	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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %esi
	movl	4(%rsp), %r11d
	xorl	%edi, %edi
	movl	$4, %r8d
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%eax, %eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L43:
	leal	(%rcx,%rax), %r9d
	cmpl	%r9d, %esi
	jge	.L8
	movl	%edi, %r9d
	subl	%ecx, %r9d
	cmpl	%r9d, %r11d
	jle	.L8
	cmpl	%edi, %r11d
	jle	.L39
.L8:
	addl	%edx, %ecx
	leal	(%rdx,%rax), %r10d
	leal	-1(%rcx), %r9d
	subl	%r9d, %edi
	movl	%r8d, %r9d
	cmpl	%r10d, %esi
	jge	.L9
	cmpl	%edi, %r11d
	jl	.L9
	leal	(%rdx,%rdi), %r10d
	cmpl	%r10d, %r11d
	jl	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$4, %r8d
.L2:
	leal	-4(%r8), %r9d
	cmpl	%eax, %esi
	je	.L40
.L3:
	addl	%ecx, %edx
	leal	-1(%rax,%rdx), %eax
	cmpl	%eax, %esi
	movl	%eax, %r10d
	setle	%r9b
	subl	%ecx, %r10d
	cmpl	%r10d, %esi
	jle	.L5
	testb	%r9b, %r9b
	jne	.L41
.L5:
	movl	%eax, %r10d
	addl	%edx, %ecx
	subl	%edx, %r10d
	leal	-1(%rdi,%rcx), %edi
	cmpl	%r10d, %esi
	jle	.L6
	testb	%r9b, %r9b
	jne	.L42
.L6:
	addl	%ecx, %edx
	leal	-1(%rdx), %r9d
	subl	%r9d, %eax
	cmpl	%eax, %esi
	jge	.L43
	addl	%edx, %ecx
	leal	-1(%rcx), %r9d
	subl	%r9d, %edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L40:
	cmpl	%edi, %r11d
	jne	.L3
.L4:
	movl	%r9d, %eax
	movl	$2863311531, %edx
	movl	$1, %edi
	imulq	%rdx, %rax
	leaq	.LC1(%rip), %rsi
	shrq	$33, %rax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %r9d
	xorl	%eax, %eax
	leal	1(%r9), %edx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L44
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	cmpl	%edi, %r11d
	jl	.L5
	leal	(%rdi,%rcx), %r10d
	cmpl	%r10d, %r11d
	jge	.L5
	leal	-3(%r8), %r9d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L42:
	movl	%edi, %r9d
	subl	%edx, %r9d
	cmpl	%r9d, %r11d
	jle	.L6
	cmpl	%edi, %r11d
	jg	.L6
	leal	-2(%r8), %r9d
	jmp	.L4
.L39:
	leal	-1(%r8), %r9d
	jmp	.L4
.L44:
	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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %esi
	movl	4(%rsp), %r11d
	xorl	%edi, %edi
	movl	$4, %r8d
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%eax, %eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L43:
	leal	(%rcx,%rax), %r9d
	cmpl	%r9d, %esi
	jge	.L8
	movl	%edi, %r9d
	subl	%ecx, %r9d
	cmpl	%r9d, %r11d
	jle	.L8
	cmpl	%edi, %r11d
	jle	.L39
.L8:
	addl	%edx, %ecx
	leal	(%rdx,%rax), %r10d
	leal	-1(%rcx), %r9d
	subl	%r9d, %edi
	movl	%r8d, %r9d
	cmpl	%r10d, %esi
	jge	.L9
	cmpl	%edi, %r11d
	jl	.L9
	leal	(%rdx,%rdi), %r10d
	cmpl	%r10d, %r11d
	jl	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$4, %r8d
.L2:
	leal	-4(%r8), %r9d
	cmpl	%eax, %esi
	je	.L40
.L3:
	addl	%ecx, %edx
	leal	-1(%rax,%rdx), %eax
	cmpl	%eax, %esi
	movl	%eax, %r10d
	setle	%r9b
	subl	%ecx, %r10d
	cmpl	%r10d, %esi
	jle	.L5
	testb	%r9b, %r9b
	jne	.L41
.L5:
	movl	%eax, %r10d
	addl	%edx, %ecx
	subl	%edx, %r10d
	leal	-1(%rdi,%rcx), %edi
	cmpl	%r10d, %esi
	jle	.L6
	testb	%r9b, %r9b
	jne	.L42
.L6:
	addl	%ecx, %edx
	leal	-1(%rdx), %r9d
	subl	%r9d, %eax
	cmpl	%eax, %esi
	jge	.L43
	addl	%edx, %ecx
	leal	-1(%rcx), %r9d
	subl	%r9d, %edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L40:
	cmpl	%edi, %r11d
	jne	.L3
.L4:
	movl	%r9d, %eax
	movl	$2863311531, %edx
	movl	$1, %edi
	imulq	%rdx, %rax
	leaq	.LC1(%rip), %rsi
	shrq	$33, %rax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %r9d
	xorl	%eax, %eax
	leal	1(%r9), %edx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L44
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	cmpl	%edi, %r11d
	jl	.L5
	leal	(%rdi,%rcx), %r10d
	cmpl	%r10d, %r11d
	jge	.L5
	leal	-3(%r8), %r9d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L42:
	movl	%edi, %r9d
	subl	%edx, %r9d
	cmpl	%r9d, %r11d
	jle	.L6
	cmpl	%edi, %r11d
	jg	.L6
	leal	-2(%r8), %r9d
	jmp	.L4
.L39:
	leal	-1(%r8), %r9d
	jmp	.L4
.L44:
	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(){
        int x, y;
        scanf("%d %d", &x, &y);

        int tx=0, ty=0, a=1, b=1, ans=0;
        while(1){
                if(tx==x && ty==y) break;

                b += a;
                tx += b-1;
                ans++;
                if(tx-a<x && x<=tx && ty<=y && y<ty+a) break;

                a += b;
                ty += a-1;
                ans++;
                if(tx-b<x && x<=tx && ty-b<y && y<=ty) break;

                b += a;
                tx -= b-1;
                ans++;
                if(tx<=x && x<tx+a && ty-a<y && y<=ty) break;

                a += b;
                ty -= a-1;
                ans++;
                if(tx<=x && x<tx+b && ty<=y && y<ty+b) break;
        }

        printf("%d\n", ans%3+1);
        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(){
        int x, y;
        scanf("%d %d", &x, &y);

        int tx=0, ty=0, a=1, b=1, ans=0;
        while(1){
                if(tx==x && ty==y) break;

                b += a;
                tx += b-1;
                ans++;
                if(tx-a<x && x<=tx && ty<=y && y<ty+a) break;

                a += b;
                ty += a-1;
                ans++;
                if(tx-b<x && x<=tx && ty-b<y && y<=ty) break;

                b += a;
                tx -= b-1;
                ans++;
                if(tx<=x && x<tx+a && ty-a<y && y<=ty) break;

                a += b;
                ty -= a-1;
                ans++;
                if(tx<=x && x<tx+b && ty<=y && y<ty+b) break;
        }

        printf("%d\n", ans%3+1);
        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:

0 0

1

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(){
        int x, y;
        scanf("%d %d", &x, &y);

        int tx=0, ty=0, a=1, b=1, ans=0;
        while(1){
                if(tx==x && ty==y) break;

                b += a;
                tx += b-1;
                ans++;
                if(tx-a<x && x<=tx && ty<=y && y<ty+a) break;

                a += b;
                ty += a-1;
                ans++;
                if(tx-b<x && x<=tx && ty-b<y && y<=ty) break;

                b += a;
                tx -= b-1;
                ans++;
                if(tx<=x && x<tx+a && ty-a<y && y<=ty) break;

                a += b;
                ty -= a-1;
                ans++;
                if(tx<=x && x<tx+b && ty<=y && y<ty+b) break;
        }

        printf("%d\n", ans%3+1);
        return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %esi
	movl	4(%rsp), %r11d
	xorl	%edi, %edi
	movl	$4, %r8d
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%eax, %eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L43:
	leal	(%rcx,%rax), %r9d
	cmpl	%r9d, %esi
	jge	.L8
	movl	%edi, %r9d
	subl	%ecx, %r9d
	cmpl	%r9d, %r11d
	jle	.L8
	cmpl	%edi, %r11d
	jle	.L39
.L8:
	addl	%edx, %ecx
	leal	(%rdx,%rax), %r10d
	leal	-1(%rcx), %r9d
	subl	%r9d, %edi
	movl	%r8d, %r9d
	cmpl	%r10d, %esi
	jge	.L9
	cmpl	%edi, %r11d
	jl	.L9
	leal	(%rdx,%rdi), %r10d
	cmpl	%r10d, %r11d
	jl	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$4, %r8d
.L2:
	leal	-4(%r8), %r9d
	cmpl	%eax, %esi
	je	.L40
.L3:
	addl	%ecx, %edx
	leal	-1(%rax,%rdx), %eax
	cmpl	%eax, %esi
	movl	%eax, %r10d
	setle	%r9b
	subl	%ecx, %r10d
	cmpl	%r10d, %esi
	jle	.L5
	testb	%r9b, %r9b
	jne	.L41
.L5:
	movl	%eax, %r10d
	addl	%edx, %ecx
	subl	%edx, %r10d
	leal	-1(%rdi,%rcx), %edi
	cmpl	%r10d, %esi
	jle	.L6
	testb	%r9b, %r9b
	jne	.L42
.L6:
	addl	%ecx, %edx
	leal	-1(%rdx), %r9d
	subl	%r9d, %eax
	cmpl	%eax, %esi
	jge	.L43
	addl	%edx, %ecx
	leal	-1(%rcx), %r9d
	subl	%r9d, %edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L40:
	cmpl	%edi, %r11d
	jne	.L3
.L4:
	movl	%r9d, %eax
	movl	$2863311531, %edx
	movl	$1, %edi
	imulq	%rdx, %rax
	leaq	.LC1(%rip), %rsi
	shrq	$33, %rax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %r9d
	xorl	%eax, %eax
	leal	1(%r9), %edx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L44
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	cmpl	%edi, %r11d
	jl	.L5
	leal	(%rdi,%rcx), %r10d
	cmpl	%r10d, %r11d
	jge	.L5
	leal	-3(%r8), %r9d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L42:
	movl	%edi, %r9d
	subl	%edx, %r9d
	cmpl	%r9d, %r11d
	jle	.L6
	cmpl	%edi, %r11d
	jg	.L6
	leal	-2(%r8), %r9d
	jmp	.L4
.L39:
	leal	-1(%r8), %r9d
	jmp	.L4
.L44:
	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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %esi
	movl	4(%rsp), %r11d
	xorl	%edi, %edi
	movl	$4, %r8d
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%eax, %eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L43:
	leal	(%rcx,%rax), %r9d
	cmpl	%r9d, %esi
	jge	.L8
	movl	%edi, %r9d
	subl	%ecx, %r9d
	cmpl	%r9d, %r11d
	jle	.L8
	cmpl	%edi, %r11d
	jle	.L39
.L8:
	addl	%edx, %ecx
	leal	(%rdx,%rax), %r10d
	leal	-1(%rcx), %r9d
	subl	%r9d, %edi
	movl	%r8d, %r9d
	cmpl	%r10d, %esi
	jge	.L9
	cmpl	%edi, %r11d
	jl	.L9
	leal	(%rdx,%rdi), %r10d
	cmpl	%r10d, %r11d
	jl	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$4, %r8d
.L2:
	leal	-4(%r8), %r9d
	cmpl	%eax, %esi
	je	.L40
.L3:
	addl	%ecx, %edx
	leal	-1(%rax,%rdx), %eax
	cmpl	%eax, %esi
	movl	%eax, %r10d
	setle	%r9b
	subl	%ecx, %r10d
	cmpl	%r10d, %esi
	jle	.L5
	testb	%r9b, %r9b
	jne	.L41
.L5:
	movl	%eax, %r10d
	addl	%edx, %ecx
	subl	%edx, %r10d
	leal	-1(%rdi,%rcx), %edi
	cmpl	%r10d, %esi
	jle	.L6
	testb	%r9b, %r9b
	jne	.L42
.L6:
	addl	%ecx, %edx
	leal	-1(%rdx), %r9d
	subl	%r9d, %eax
	cmpl	%eax, %esi
	jge	.L43
	addl	%edx, %ecx
	leal	-1(%rcx), %r9d
	subl	%r9d, %edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L40:
	cmpl	%edi, %r11d
	jne	.L3
.L4:
	movl	%r9d, %eax
	movl	$2863311531, %edx
	movl	$1, %edi
	imulq	%rdx, %rax
	leaq	.LC1(%rip), %rsi
	shrq	$33, %rax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %r9d
	xorl	%eax, %eax
	leal	1(%r9), %edx
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L44
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	cmpl	%edi, %r11d
	jl	.L5
	leal	(%rdi,%rcx), %r10d
	cmpl	%r10d, %r11d
	jge	.L5
	leal	-3(%r8), %r9d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L42:
	movl	%edi, %r9d
	subl	%edx, %r9d
	cmpl	%r9d, %r11d
	jle	.L6
	cmpl	%edi, %r11d
	jg	.L6
	leal	-2(%r8), %r9d
	jmp	.L4
.L39:
	leal	-1(%r8), %r9d
	jmp	.L4
.L44:
	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:
```