// File: /workspace/github_c_makefile_star2_O3/s3lase[P]v6shell/goto.c
// Function: main
int
main(int argc, char **argv)
{
	size_t siz;
	char label[LABELMAX];

	setmyerrexit(&ut_errexit);
	setmyname(argv[0]);
	setmypid(getpid());

	if (argc < 2 || *argv[1] == EOS || isatty(FD0) != 0)
		err(FC_ERR, FMT2S, getmyname(), ERR_GENERIC);
	if ((siz = strlen(argv[1]) + 1) > sizeof(label))
		err(FC_ERR, FMT3S, getmyname(), argv[1], ERR_LABTOOLONG);
	if (lseek(FD0, (off_t)0, SEEK_SET) == -1)
		err(FC_ERR, FMT2S, getmyname(), ERR_SEEK);

	while (getlabel(label, *argv[1] & 0377, siz))
		if (strcmp(label, argv[1]) == 0) {
#ifndef	CONFIG_SUNOS
			(void)lseek(FD0, offset, SEEK_SET);
#endif
			return SH_TRUE;
		}

	fd_print(FD2, FMT3S, getmyname(), argv[1], ERR_LABNOTFOUND);
	return SH_FALSE;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x518(%rip), %rdi       # 0x173e
callq 0x16cc
movq (%rbx), %rdi
callq 0x16d9
callq 0x1090
movl %eax, %edi
callq 0x172d
cmpl $0x2, %ebp
jl 0x1258
movq 0x8(%rbx), %rax
cmpb $0x0, (%rax)
je 0x1258
xorl %edi, %edi
callq 0x1060
testl %eax, %eax
je 0x127a
callq 0x16a7
leaq 0xead(%rip), %rsi       # 0x2111
leaq 0xe9c(%rip), %rcx       # 0x2107
movl $0x7c, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1460
movq 0x8(%rbx), %rdi
callq 0x10a0
movq %rax, %r14
leaq 0x1(%rax), %r15
cmpq $0x42, %r15
jb 0x12b6
callq 0x16a7
movq 0x8(%rbx), %rcx
leaq 0xe6d(%rip), %rsi       # 0x210d
leaq 0xe72(%rip), %r8        # 0x2119
movl $0x7c, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1460
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x10d0
cmpq $-0x1, %rax
jne 0x12e9
callq 0x16a7
leaq 0xe3e(%rip), %rsi       # 0x2111
leaq 0xe4e(%rip), %rcx       # 0x2128
movl $0x7c, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1460
leaq (%rsp,%r15), %r13
movq 0x8(%rbx), %r12
movabsq $0x200000c01, %rbp      # imm = 0x200000C01
movzbl (%r12), %r12d
incq 0x2da1(%rip)            # 0x40a8
callq 0x10f0
cmpl $-0x1, %eax
je 0x1420
movzbl %al, %ecx
cmpl $0x9, %ecx
je 0x1322
cmpl $0x20, %ecx
jne 0x1339
incq 0x2d7f(%rip)            # 0x40a8
callq 0x10f0
cmpl $-0x1, %eax
movzbl %al, %ecx
cmovel %eax, %ecx
jmp 0x1318
cmpl $0x3a, %ecx
jne 0x1398
incq 0x2d63(%rip)            # 0x40a8
callq 0x10f0
cmpl $-0x1, %eax
movzbl %al, %ecx
cmovel %eax, %ecx
cmpl $0x9, %ecx
je 0x133e
cmpl $0x20, %ecx
je 0x133e
cmpl %r12d, %ecx
jne 0x1300
movl %r12d, %ecx
movq %rsp, %r15
leal 0x1(%rcx), %eax
cmpl $0x21, %eax
ja 0x1376
btq %rax, %rbp
jb 0x13c1
movb %cl, (%r15)
incq 0x2d28(%rip)            # 0x40a8
callq 0x10f0
cmpl $-0x1, %eax
movzbl %al, %ecx
cmovel %eax, %ecx
incq %r15
cmpq %r13, %r15
jb 0x1368
jmp 0x13c5
cmpl $-0x1, %ecx
je 0x1300
cmpl $0xa, %ecx
je 0x1300
incq 0x2cf7(%rip)            # 0x40a8
callq 0x10f0
cmpl $-0x1, %eax
movzbl %al, %ecx
cmovel %eax, %ecx
jmp 0x1398
movb $0x0, (%r15)
cmpl $-0x1, %ecx
je 0x1420
cmpl $0xa, %ecx
je 0x13e6
incq 0x2cd2(%rip)            # 0x40a8
callq 0x10f0
cmpl $-0x1, %eax
movzbl %al, %ecx
cmovel %eax, %ecx
jmp 0x13c5
movq %rsp, %rax
subq %rax, %r15
cmpq %r14, %r15
jne 0x1300
movq 0x8(%rbx), %r12
movq %rsp, %rdi
movq %r12, %rsi
callq 0x10e0
testl %eax, %eax
jne 0x12fb
movq 0x2c95(%rip), %rsi      # 0x40a8
xorl %ebx, %ebx
xorl %edi, %edi
xorl %edx, %edx
callq 0x10d0
jmp 0x144f
movb $0x0, (%rsp)
callq 0x16a7
movq 0x8(%rbx), %rcx
leaq 0xcd9(%rip), %rsi       # 0x210d
leaq 0xcf9(%rip), %r8        # 0x2134
movl $0x2, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x161a
movl $0x1, %ebx
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq