// File: /workspace/github_c_makefile_star2_O1/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 0x530(%rip), %rdi       # 0x1756
callq 0x16e4
movq (%rbx), %rdi
callq 0x16f1
callq 0x1090
movl %eax, %edi
callq 0x1745
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 0x16bf
leaq 0xead(%rip), %rsi       # 0x2111
leaq 0xe9c(%rip), %rcx       # 0x2107
movl $0x7c, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1478
movq 0x8(%rbx), %rdi
callq 0x10a0
movq %rax, %r14
leaq 0x1(%rax), %r15
cmpq $0x42, %r15
jb 0x12b6
callq 0x16bf
movq 0x8(%rbx), %rcx
leaq 0xe6d(%rip), %rsi       # 0x210d
leaq 0xe72(%rip), %r8        # 0x2119
movl $0x7c, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1478
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x10d0
cmpq $-0x1, %rax
jne 0x12e9
callq 0x16bf
leaq 0xe3e(%rip), %rsi       # 0x2111
leaq 0xe4e(%rip), %rcx       # 0x2128
movl $0x7c, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1478
leaq (%rsp,%r15), %r12
movabsq $0x200000c01, %r13      # imm = 0x200000C01
movq 0x8(%rbx), %rax
movzbl (%rax), %ebp
incq 0x2da3(%rip)            # 0x40a8
callq 0x10f0
cmpl $-0x1, %eax
je 0x1437
movzbl %al, %ecx
cmpl $0x9, %ecx
je 0x13a8
cmpl $0x20, %ecx
je 0x13a8
cmpl $0x3a, %ecx
jne 0x1387
incq 0x2d74(%rip)            # 0x40a8
callq 0x10f0
cmpl $-0x1, %eax
movzbl %al, %ecx
cmovel %eax, %ecx
cmpl $0x9, %ecx
je 0x132d
cmpl $0x20, %ecx
je 0x132d
cmpl %ebp, %ecx
jne 0x13f2
movq %rsp, %r15
leal 0x1(%rcx), %eax
cmpl $0x21, %eax
ja 0x1365
btq %rax, %r13
jb 0x13c2
movb %cl, (%r15)
incq 0x2d39(%rip)            # 0x40a8
callq 0x10f0
cmpl $-0x1, %eax
movzbl %al, %ecx
cmovel %eax, %ecx
incq %r15
cmpq %r12, %r15
jb 0x1357
jmp 0x13c6
cmpl $-0x1, %ecx
je 0x13f2
cmpl $0xa, %ecx
je 0x13f2
incq 0x2d10(%rip)            # 0x40a8
callq 0x10f0
cmpl $-0x1, %eax
movzbl %al, %ecx
cmovel %eax, %ecx
jmp 0x1387
incq 0x2cf9(%rip)            # 0x40a8
callq 0x10f0
cmpl $-0x1, %eax
movzbl %al, %ecx
cmovel %eax, %ecx
jmp 0x1316
movb $0x0, (%r15)
cmpl $-0x1, %ecx
je 0x1437
cmpl $0xa, %ecx
je 0x13e7
incq 0x2cd1(%rip)            # 0x40a8
callq 0x10f0
cmpl $-0x1, %eax
movzbl %al, %ecx
cmovel %eax, %ecx
jmp 0x13c6
movq %rsp, %rax
subq %rax, %r15
cmpq %r14, %r15
je 0x140f
incq 0x2caf(%rip)            # 0x40a8
callq 0x10f0
movzbl %al, %ecx
cmpl $-0x1, %eax
cmovel %eax, %ecx
jne 0x1316
jmp 0x1437
movq 0x8(%rbx), %rsi
movq %rsp, %rdi
callq 0x10e0
testl %eax, %eax
jne 0x12f7
movq 0x2c7e(%rip), %rsi      # 0x40a8
xorl %ebx, %ebx
xorl %edi, %edi
xorl %edx, %edx
callq 0x10d0
jmp 0x1466
movb $0x0, (%rsp)
callq 0x16bf
movq 0x8(%rbx), %rcx
leaq 0xcc2(%rip), %rsi       # 0x210d
leaq 0xce2(%rip), %r8        # 0x2134
movl $0x2, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1632
movl $0x1, %ebx
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop