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>
#include <string.h>
char* myfgets(char *buf,int n,FILE *fp){ //accepts LF/CRLF
	char *ret=fgets(buf,n,fp);
	if(!ret)return NULL;
	if(strlen(buf)&&buf[strlen(buf)-1]=='\n')buf[strlen(buf)-1]=0;
	if(strlen(buf)&&buf[strlen(buf)-1]=='\r')buf[strlen(buf)-1]=0;
	return ret;
}

char Q[99999];
char *q[999];
char L[99999];
int ind[9999];
int n;
dfs(depth){
	int cur_ind=0;
	if(!myfgets(L,sizeof(L),stdin)){puts("no such property");exit(0);}
	if(depth){
		for(;L[cur_ind]==' ';cur_ind++);
		if(ind[depth-1]>=cur_ind){puts("no such property");exit(0);}
	}
	char *name=strtok(L+cur_ind,":"),*value=name+strlen(name)+1;
	if(!strcmp(name,q[depth])){
		if(depth==n-1){
			if(*value)
				printf("string \"%s\"\n",value+1),exit(0);
			else
				puts("object"),exit(0);
		}
		ind[depth]=cur_ind;
		dfs(depth+1);
	}
	dfs(depth);
}

main(depth){
	myfgets(Q,sizeof(Q),stdin);
	q[0]=strtok(Q+1,".");
	for(n=1;;n++)if(!(q[n]=strtok(NULL,".")))break;
	dfs(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	myfgets
	.type	myfgets, @function
myfgets:
.LFB0:
	.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	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	%rdx, -40(%rbp)
	movq	-40(%rbp), %rdx
	movl	-28(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movq	%rax, -8(%rbp)
	cmpq	$0, -8(%rbp)
	jne	.L2
	movl	$0, %eax
	jmp	.L3
.L2:
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L4
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$10, %al
	jne	.L4
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
.L4:
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L5
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$13, %al
	jne	.L5
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
.L5:
	movq	-8(%rbp), %rax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	myfgets, .-myfgets
	.globl	Q
	.bss
	.align 32
	.type	Q, @object
	.size	Q, 99999
Q:
	.zero	99999
	.globl	q
	.align 32
	.type	q, @object
	.size	q, 7992
q:
	.zero	7992
	.globl	L
	.align 32
	.type	L, @object
	.size	L, 99999
L:
	.zero	99999
	.globl	ind
	.align 32
	.type	ind, @object
	.size	ind, 39996
ind:
	.zero	39996
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata
.LC0:
	.string	"no such property"
.LC1:
	.string	":"
.LC2:
	.string	"string \"%s\"\n"
.LC3:
	.string	"object"
	.text
	.globl	dfs
	.type	dfs, @function
dfs:
.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
	movl	%edi, -36(%rbp)
	movl	$0, -20(%rbp)
	movq	stdin(%rip), %rax
	movq	%rax, %rdx
	movl	$99999, %esi
	leaq	L(%rip), %rax
	movq	%rax, %rdi
	call	myfgets
	testq	%rax, %rax
	jne	.L7
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %edi
	call	exit@PLT
.L7:
	cmpl	$0, -36(%rbp)
	je	.L8
	jmp	.L9
.L10:
	addl	$1, -20(%rbp)
.L9:
	movl	-20(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$32, %al
	je	.L10
	movl	-36(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ind(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jg	.L8
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %edi
	call	exit@PLT
.L8:
	movl	-20(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	addq	%rdx, %rax
	leaq	.LC1(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strtok@PLT
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	1(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	q(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L11
	movl	n(%rip), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	jne	.L12
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L13
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %edi
	call	exit@PLT
.L13:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %edi
	call	exit@PLT
.L12:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ind(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-36(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edi
	movl	$0, %eax
	call	dfs
.L11:
	movl	-36(%rbp), %eax
	movl	%eax, %edi
	movl	$0, %eax
	call	dfs
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dfs, .-dfs
	.section	.rodata
.LC4:
	.string	"."
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movq	stdin(%rip), %rax
	movq	%rax, %rdx
	movl	$99999, %esi
	leaq	Q(%rip), %rax
	movq	%rax, %rdi
	call	myfgets
	leaq	1+Q(%rip), %rax
	leaq	.LC4(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strtok@PLT
	movq	%rax, q(%rip)
	movl	$1, n(%rip)
.L17:
	movl	n(%rip), %ebx
	leaq	.LC4(%rip), %rax
	movq	%rax, %rsi
	movl	$0, %edi
	call	strtok@PLT
	movslq	%ebx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	q(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movslq	%ebx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	q(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	je	.L20
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
	jmp	.L17
.L20:
	nop
	movl	$0, %edi
	movl	$0, %eax
	call	dfs
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	myfgets
	.type	myfgets, @function
myfgets:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdx, %rcx
	movl	%esi, %edx
	movq	$-1, %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	__fgets_chk@PLT
	movq	%rax, %r12
	testq	%rax, %rax
	je	.L1
	cmpb	$0, (%rbx)
	je	.L1
	movq	%rbx, %rdi
	call	strlen@PLT
	leaq	-1(%rbx,%rax), %rax
	cmpb	$10, (%rax)
	je	.L9
.L3:
	cmpb	$13, (%rax)
	je	.L10
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movq	%r12, %rax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movb	$0, (%rax)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movq	%r12, %rax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movb	$0, (%rax)
	cmpb	$0, (%rbx)
	je	.L1
	movq	%rbx, %rdi
	call	strlen@PLT
	leaq	-1(%rbx,%rax), %rax
	jmp	.L3
	.cfi_endproc
.LFE35:
	.size	myfgets, .-myfgets
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"no such property"
.LC1:
	.string	":"
.LC2:
	.string	"string \"%s\"\n"
.LC3:
	.string	"object"
	.text
	.p2align 4
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB36:
	.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
	leal	-1(%rdi), %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movslq	%r13d, %r13
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	L(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%edi, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
.L20:
	movq	stdin(%rip), %rdx
	movl	$99999, %esi
	movq	%rbp, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L19
	cmpb	$0, 0(%rbp)
	je	.L13
	movq	%rbp, %rdi
	call	strlen@PLT
	leaq	-1(%rbp,%rax), %rax
	cmpb	$10, (%rax)
	je	.L14
.L17:
	movq	%rbp, %rdi
	call	strlen@PLT
	leaq	-1(%rbp,%rax), %rax
	cmpb	$13, (%rax)
	jne	.L16
	movb	$0, (%rax)
.L16:
	testl	%ebx, %ebx
	je	.L27
	cmpb	$32, 0(%rbp)
	movl	$1, %eax
	leaq	-1+L(%rip), %rdx
	jne	.L26
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%eax, %r12d
	addq	$1, %rax
	cmpb	$32, (%rdx,%rax)
	je	.L18
.L25:
	leaq	ind(%rip), %rax
	cmpl	%r12d, (%rax,%r13,4)
	jge	.L19
	movslq	%r12d, %rdi
	addq	%rbp, %rdi
.L24:
	leaq	.LC1(%rip), %rsi
	movslq	%ebx, %r15
	call	strtok@PLT
	movq	%rax, %rdi
	movq	%rax, %r14
	call	strlen@PLT
	movq	%r14, %rdi
	movq	%rax, 8(%rsp)
	leaq	q(%rip), %rax
	movq	(%rax,%r15,8), %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L20
	movl	n(%rip), %eax
	subl	$1, %eax
	cmpl	%ebx, %eax
	je	.L33
	leaq	ind(%rip), %rax
	leal	1(%rbx), %edi
	movl	%r12d, (%rax,%r15,4)
	xorl	%eax, %eax
	call	dfs
.L14:
	movb	$0, (%rax)
	cmpb	$0, 0(%rbp)
	jne	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	testl	%ebx, %ebx
	jne	.L26
.L27:
	movq	%rbp, %rdi
	xorl	%r12d, %r12d
	jmp	.L24
.L19:
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
	xorl	%edi, %edi
	call	exit@PLT
.L26:
	xorl	%r12d, %r12d
	jmp	.L25
.L33:
	movq	8(%rsp), %rax
	leaq	1(%r14,%rax), %rax
	cmpb	$0, (%rax)
	je	.L22
	leaq	1(%rax), %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%edi, %edi
	call	exit@PLT
.L22:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE36:
	.size	dfs, .-dfs
	.section	.rodata.str1.1
.LC4:
	.string	"."
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	stdin(%rip), %rdx
	movl	$99999, %esi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	Q(%rip), %rbx
	movq	%rbx, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L36
	cmpb	$0, Q(%rip)
	jne	.L44
.L36:
	leaq	.LC4(%rip), %rbp
	leaq	1+Q(%rip), %rdi
	movl	$1, %ebx
	movq	%rbp, %rsi
	leaq	q(%rip), %r12
	call	strtok@PLT
	movq	%rax, q(%rip)
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L45:
	movl	n(%rip), %eax
	leal	1(%rax), %ebx
.L42:
	movq	%rbp, %rsi
	xorl	%edi, %edi
	movl	%ebx, n(%rip)
	movslq	%ebx, %rbx
	call	strtok@PLT
	movq	%rax, (%r12,%rbx,8)
	testq	%rax, %rax
	jne	.L45
	xorl	%edi, %edi
	xorl	%eax, %eax
	call	dfs
.L44:
	movq	%rbx, %rdi
	call	strlen@PLT
	leaq	-1(%rbx,%rax), %rax
	cmpb	$10, (%rax)
	je	.L38
.L40:
	movq	%rbx, %rdi
	call	strlen@PLT
	leaq	-1(%rbx,%rax), %rax
	cmpb	$13, (%rax)
	jne	.L36
	movb	$0, (%rax)
	jmp	.L36
.L38:
	movb	$0, (%rax)
	cmpb	$0, Q(%rip)
	jne	.L40
	jmp	.L36
	.cfi_endproc
.LFE37:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	ind
	.align 32
	.type	ind, @object
	.size	ind, 39996
ind:
	.zero	39996
	.globl	L
	.align 32
	.type	L, @object
	.size	L, 99999
L:
	.zero	99999
	.globl	q
	.align 32
	.type	q, @object
	.size	q, 7992
q:
	.zero	7992
	.globl	Q
	.align 32
	.type	Q, @object
	.size	Q, 99999
Q:
	.zero	99999
	.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	myfgets
	.type	myfgets, @function
myfgets:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdx, %rcx
	movl	%esi, %edx
	movq	$-1, %rsi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	__fgets_chk@PLT
	movq	%rax, %r12
	testq	%rax, %rax
	je	.L1
	cmpb	$0, (%rbx)
	je	.L1
	movq	%rbx, %rdi
	call	strlen@PLT
	leaq	-1(%rbx,%rax), %rax
	cmpb	$10, (%rax)
	je	.L9
.L3:
	cmpb	$13, (%rax)
	je	.L10
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movq	%r12, %rax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movb	$0, (%rax)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movq	%r12, %rax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movb	$0, (%rax)
	cmpb	$0, (%rbx)
	je	.L1
	movq	%rbx, %rdi
	call	strlen@PLT
	leaq	-1(%rbx,%rax), %rax
	jmp	.L3
	.cfi_endproc
.LFE35:
	.size	myfgets, .-myfgets
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"no such property"
.LC1:
	.string	":"
.LC2:
	.string	"string \"%s\"\n"
.LC3:
	.string	"object"
	.text
	.p2align 4
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB36:
	.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
	leal	-1(%rdi), %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movslq	%r13d, %r13
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	L(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movl	%edi, %ebx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
.L20:
	movq	stdin(%rip), %rdx
	movl	$99999, %esi
	movq	%rbp, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L19
	cmpb	$0, 0(%rbp)
	je	.L13
	movq	%rbp, %rdi
	call	strlen@PLT
	leaq	-1(%rbp,%rax), %rax
	cmpb	$10, (%rax)
	je	.L14
.L17:
	movq	%rbp, %rdi
	call	strlen@PLT
	leaq	-1(%rbp,%rax), %rax
	cmpb	$13, (%rax)
	jne	.L16
	movb	$0, (%rax)
.L16:
	testl	%ebx, %ebx
	je	.L27
	cmpb	$32, 0(%rbp)
	movl	$1, %eax
	leaq	-1+L(%rip), %rdx
	jne	.L26
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%eax, %r12d
	addq	$1, %rax
	cmpb	$32, (%rdx,%rax)
	je	.L18
.L25:
	leaq	ind(%rip), %rax
	cmpl	%r12d, (%rax,%r13,4)
	jge	.L19
	movslq	%r12d, %rdi
	addq	%rbp, %rdi
.L24:
	leaq	.LC1(%rip), %rsi
	movslq	%ebx, %r15
	call	strtok@PLT
	movq	%rax, %rdi
	movq	%rax, %r14
	call	strlen@PLT
	movq	%r14, %rdi
	movq	%rax, 8(%rsp)
	leaq	q(%rip), %rax
	movq	(%rax,%r15,8), %rsi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L20
	movl	n(%rip), %eax
	subl	$1, %eax
	cmpl	%ebx, %eax
	je	.L33
	leaq	ind(%rip), %rax
	leal	1(%rbx), %edi
	movl	%r12d, (%rax,%r15,4)
	xorl	%eax, %eax
	call	dfs
.L14:
	movb	$0, (%rax)
	cmpb	$0, 0(%rbp)
	jne	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	testl	%ebx, %ebx
	jne	.L26
.L27:
	movq	%rbp, %rdi
	xorl	%r12d, %r12d
	jmp	.L24
.L19:
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
	xorl	%edi, %edi
	call	exit@PLT
.L26:
	xorl	%r12d, %r12d
	jmp	.L25
.L33:
	movq	8(%rsp), %rax
	leaq	1(%r14,%rax), %rax
	cmpb	$0, (%rax)
	je	.L22
	leaq	1(%rax), %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%edi, %edi
	call	exit@PLT
.L22:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE36:
	.size	dfs, .-dfs
	.section	.rodata.str1.1
.LC4:
	.string	"."
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	stdin(%rip), %rdx
	movl	$99999, %esi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	Q(%rip), %rbx
	movq	%rbx, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L36
	cmpb	$0, Q(%rip)
	jne	.L44
.L36:
	leaq	.LC4(%rip), %rbp
	leaq	1+Q(%rip), %rdi
	movl	$1, %ebx
	movq	%rbp, %rsi
	leaq	q(%rip), %r12
	call	strtok@PLT
	movq	%rax, q(%rip)
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L45:
	movl	n(%rip), %eax
	leal	1(%rax), %ebx
.L42:
	movq	%rbp, %rsi
	xorl	%edi, %edi
	movl	%ebx, n(%rip)
	movslq	%ebx, %rbx
	call	strtok@PLT
	movq	%rax, (%r12,%rbx,8)
	testq	%rax, %rax
	jne	.L45
	xorl	%edi, %edi
	xorl	%eax, %eax
	call	dfs
.L44:
	movq	%rbx, %rdi
	call	strlen@PLT
	leaq	-1(%rbx,%rax), %rax
	cmpb	$10, (%rax)
	je	.L38
.L40:
	movq	%rbx, %rdi
	call	strlen@PLT
	leaq	-1(%rbx,%rax), %rax
	cmpb	$13, (%rax)
	jne	.L36
	movb	$0, (%rax)
	jmp	.L36
.L38:
	movb	$0, (%rax)
	cmpb	$0, Q(%rip)
	jne	.L40
	jmp	.L36
	.cfi_endproc
.LFE37:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	ind
	.align 32
	.type	ind, @object
	.size	ind, 39996
ind:
	.zero	39996
	.globl	L
	.align 32
	.type	L, @object
	.size	L, 99999
L:
	.zero	99999
	.globl	q
	.align 32
	.type	q, @object
	.size	q, 7992
q:
	.zero	7992
	.globl	Q
	.align 32
	.type	Q, @object
	.size	Q, 99999
Q:
	.zero	99999
	.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>
#include <string.h>
char* myfgets(char *buf,int n,FILE *fp){ //accepts LF/CRLF
	char *ret=fgets(buf,n,fp);
	if(!ret)return NULL;
	if(strlen(buf)&&buf[strlen(buf)-1]=='\n')buf[strlen(buf)-1]=0;
	if(strlen(buf)&&buf[strlen(buf)-1]=='\r')buf[strlen(buf)-1]=0;
	return ret;
}

char Q[99999];
char *q[999];
char L[99999];
int ind[9999];
int n;
dfs(depth){
	int cur_ind=0;
	if(!myfgets(L,sizeof(L),stdin)){puts("no such property");exit(0);}
	if(depth){
		for(;L[cur_ind]==' ';cur_ind++);
		if(ind[depth-1]>=cur_ind){puts("no such property");exit(0);}
	}
	char *name=strtok(L+cur_ind,":"),*value=name+strlen(name)+1;
	if(!strcmp(name,q[depth])){
		if(depth==n-1){
			if(*value)
				printf("string \"%s\"\n",value+1),exit(0);
			else
				puts("object"),exit(0);
		}
		ind[depth]=cur_ind;
		dfs(depth+1);
	}
	dfs(depth);
}

main(depth){
	myfgets(Q,sizeof(Q),stdin);
	q[0]=strtok(Q+1,".");
	for(n=1;;n++)if(!(q[n]=strtok(NULL,".")))break;
	dfs(0);
}
.tweets.1
name: shimeji
id: shimejitan
tweets:
1: shimejilove
:2 azupero
 .tweets.1
name: shimeki
id: shimejitan
tweets:
  1: shimejilove
  2: azupero
 .a
a: s`mple case
 .tweets.1
name: shimeji
id: shimejitan
tweets:
  1: shivejilome
  :2 azupero
 .a
a: s`mple esac
 .tweets.1
name: shimeji
jd: shimejitan
tweets:
  1: shimejikove
  2: azupero
 .a
a: r`mple esac
 .tweets.1
name: shimeji
id: shhmejitan
tweets:
  1: soivejilhme
  :2 azupero
 .no/such.property
object:
prop1: str
prop2: str
 .my.obj
my:
:rts string value
obj:
a: a
b: b
c: c

no such property
 string "shimejilove"
 string "s`mple case"
 string "shivejilome"
 string "s`mple esac"
 string "shimejikove"
 string "r`mple esac"
 string "soivejilhme"
 no such property
 no such property

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>
#include <string.h>
char* myfgets(char *buf,int n,FILE *fp){ //accepts LF/CRLF
	char *ret=fgets(buf,n,fp);
	if(!ret)return NULL;
	if(strlen(buf)&&buf[strlen(buf)-1]=='\n')buf[strlen(buf)-1]=0;
	if(strlen(buf)&&buf[strlen(buf)-1]=='\r')buf[strlen(buf)-1]=0;
	return ret;
}

char Q[99999];
char *q[999];
char L[99999];
int ind[9999];
int n;
dfs(depth){
	int cur_ind=0;
	if(!myfgets(L,sizeof(L),stdin)){puts("no such property");exit(0);}
	if(depth){
		for(;L[cur_ind]==' ';cur_ind++);
		if(ind[depth-1]>=cur_ind){puts("no such property");exit(0);}
	}
	char *name=strtok(L+cur_ind,":"),*value=name+strlen(name)+1;
	if(!strcmp(name,q[depth])){
		if(depth==n-1){
			if(*value)
				printf("string \"%s\"\n",value+1),exit(0);
			else
				puts("object"),exit(0);
		}
		ind[depth]=cur_ind;
		dfs(depth+1);
	}
	dfs(depth);
}

main(depth){
	myfgets(Q,sizeof(Q),stdin);
	q[0]=strtok(Q+1,".");
	for(n=1;;n++)if(!(q[n]=strtok(NULL,".")))break;
	dfs(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	myfgets
	.type	myfgets, @function
myfgets:
.LFB0:
	.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	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	%rdx, -40(%rbp)
	movq	-40(%rbp), %rdx
	movl	-28(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movq	%rax, -8(%rbp)
	cmpq	$0, -8(%rbp)
	jne	.L2
	movl	$0, %eax
	jmp	.L3
.L2:
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L4
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$10, %al
	jne	.L4
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
.L4:
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L5
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$13, %al
	jne	.L5
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
.L5:
	movq	-8(%rbp), %rax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	myfgets, .-myfgets
	.globl	Q
	.bss
	.align 32
	.type	Q, @object
	.size	Q, 99999
Q:
	.zero	99999
	.globl	q
	.align 32
	.type	q, @object
	.size	q, 7992
q:
	.zero	7992
	.globl	L
	.align 32
	.type	L, @object
	.size	L, 99999
L:
	.zero	99999
	.globl	ind
	.align 32
	.type	ind, @object
	.size	ind, 39996
ind:
	.zero	39996
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata
.LC0:
	.string	"no such property"
.LC1:
	.string	":"
.LC2:
	.string	"string \"%s\"\n"
.LC3:
	.string	"object"
	.text
	.globl	dfs
	.type	dfs, @function
dfs:
.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
	movl	%edi, -36(%rbp)
	movl	$0, -20(%rbp)
	movq	stdin(%rip), %rax
	movq	%rax, %rdx
	movl	$99999, %esi
	leaq	L(%rip), %rax
	movq	%rax, %rdi
	call	myfgets
	testq	%rax, %rax
	jne	.L7
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %edi
	call	exit@PLT
.L7:
	cmpl	$0, -36(%rbp)
	je	.L8
	jmp	.L9
.L10:
	addl	$1, -20(%rbp)
.L9:
	movl	-20(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$32, %al
	je	.L10
	movl	-36(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ind(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jg	.L8
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %edi
	call	exit@PLT
.L8:
	movl	-20(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	addq	%rdx, %rax
	leaq	.LC1(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strtok@PLT
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	1(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	q(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L11
	movl	n(%rip), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	jne	.L12
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L13
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %edi
	call	exit@PLT
.L13:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %edi
	call	exit@PLT
.L12:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ind(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-36(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edi
	movl	$0, %eax
	call	dfs
.L11:
	movl	-36(%rbp), %eax
	movl	%eax, %edi
	movl	$0, %eax
	call	dfs
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dfs, .-dfs
	.section	.rodata
.LC4:
	.string	"."
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movq	stdin(%rip), %rax
	movq	%rax, %rdx
	movl	$99999, %esi
	leaq	Q(%rip), %rax
	movq	%rax, %rdi
	call	myfgets
	leaq	1+Q(%rip), %rax
	leaq	.LC4(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strtok@PLT
	movq	%rax, q(%rip)
	movl	$1, n(%rip)
.L17:
	movl	n(%rip), %ebx
	leaq	.LC4(%rip), %rax
	movq	%rax, %rsi
	movl	$0, %edi
	call	strtok@PLT
	movslq	%ebx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	q(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movslq	%ebx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	q(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	je	.L20
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
	jmp	.L17
.L20:
	nop
	movl	$0, %edi
	movl	$0, %eax
	call	dfs
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	myfgets
	.type	myfgets, @function
myfgets:
.LFB0:
	.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	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movq	%rdx, -40(%rbp)
	movq	-40(%rbp), %rdx
	movl	-28(%rbp), %ecx
	movq	-24(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movq	%rax, -8(%rbp)
	cmpq	$0, -8(%rbp)
	jne	.L2
	movl	$0, %eax
	jmp	.L3
.L2:
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L4
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$10, %al
	jne	.L4
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
.L4:
	movq	-24(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L5
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$13, %al
	jne	.L5
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-1(%rax), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
.L5:
	movq	-8(%rbp), %rax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	myfgets, .-myfgets
	.globl	Q
	.bss
	.align 32
	.type	Q, @object
	.size	Q, 99999
Q:
	.zero	99999
	.globl	q
	.align 32
	.type	q, @object
	.size	q, 7992
q:
	.zero	7992
	.globl	L
	.align 32
	.type	L, @object
	.size	L, 99999
L:
	.zero	99999
	.globl	ind
	.align 32
	.type	ind, @object
	.size	ind, 39996
ind:
	.zero	39996
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata
.LC0:
	.string	"no such property"
.LC1:
	.string	":"
.LC2:
	.string	"string \"%s\"\n"
.LC3:
	.string	"object"
	.text
	.globl	dfs
	.type	dfs, @function
dfs:
.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
	movl	%edi, -36(%rbp)
	movl	$0, -20(%rbp)
	movq	stdin(%rip), %rax
	movq	%rax, %rdx
	movl	$99999, %esi
	leaq	L(%rip), %rax
	movq	%rax, %rdi
	call	myfgets
	testq	%rax, %rax
	jne	.L7
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %edi
	call	exit@PLT
.L7:
	cmpl	$0, -36(%rbp)
	je	.L8
	jmp	.L9
.L10:
	addl	$1, -20(%rbp)
.L9:
	movl	-20(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$32, %al
	je	.L10
	movl	-36(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	ind(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jg	.L8
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %edi
	call	exit@PLT
.L8:
	movl	-20(%rbp), %eax
	cltq
	leaq	L(%rip), %rdx
	addq	%rdx, %rax
	leaq	.LC1(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strtok@PLT
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	1(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	q(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L11
	movl	n(%rip), %eax
	subl	$1, %eax
	cmpl	%eax, -36(%rbp)
	jne	.L12
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L13
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %edi
	call	exit@PLT
.L13:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %edi
	call	exit@PLT
.L12:
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	ind(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-36(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edi
	movl	$0, %eax
	call	dfs
.L11:
	movl	-36(%rbp), %eax
	movl	%eax, %edi
	movl	$0, %eax
	call	dfs
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dfs, .-dfs
	.section	.rodata
.LC4:
	.string	"."
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movq	stdin(%rip), %rax
	movq	%rax, %rdx
	movl	$99999, %esi
	leaq	Q(%rip), %rax
	movq	%rax, %rdi
	call	myfgets
	leaq	1+Q(%rip), %rax
	leaq	.LC4(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strtok@PLT
	movq	%rax, q(%rip)
	movl	$1, n(%rip)
.L17:
	movl	n(%rip), %ebx
	leaq	.LC4(%rip), %rax
	movq	%rax, %rsi
	movl	$0, %edi
	call	strtok@PLT
	movslq	%ebx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	q(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movslq	%ebx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	q(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	je	.L20
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
	jmp	.L17
.L20:
	nop
	movl	$0, %edi
	movl	$0, %eax
	call	dfs
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
