// File: /workspace/github_c_makefile_star2_O0/rakitzis[P]rc/builtins.c
// Function: b_whatis
static void b_whatis(char **av) {
	bool ess, eff, vee, pee, bee;
	bool f, found;
	int i, ac, c;
	List *s;
	Node *n;
	char *e;
	for (rc_optind = ac = 0; av[ac] != NULL; ac++)
		; /* count the arguments for getopt */
	ess = eff = vee = pee = bee = FALSE;
	while ((c = rc_getopt(ac, av, "sfvpb")) != -1)
		switch (c) {
		default: set(FALSE); return;
		case 's': ess = TRUE; break;
		case 'f': eff = TRUE; break;
		case 'v': vee = TRUE; break;
		case 'p': pee = TRUE; break;
		case 'b': bee = TRUE; break;
		}
	av += rc_optind;
	if (*av == NULL) {
		if (vee|eff)
			whatare_all_vars(eff, vee);
		if (ess)
			whatare_all_signals();
		if (bee)
			for (i = 0; i < arraysize(builtins); i++)
				fprint(1, "builtin %s\n", builtins[i].name);
		if (pee)
			fprint(2, "whatis -p: must specify argument\n");
		if (show(FALSE)) /* no options? */
			whatare_all_vars(TRUE, TRUE);
		set(TRUE);
		return;
	}
	found = TRUE;
	for (i = 0; av[i] != NULL; i++) {
		f = FALSE;
		errno = ENOENT;
		if (show(vee) && (s = varlookup(av[i])) != NULL) {
			f = TRUE;
			prettyprint_var(1, av[i], s);
		}
		if (((show(ess)&&issig(av[i])) || show(eff)) && (n = fnlookup(av[i])) != NULL) {
			f = TRUE;
			prettyprint_fn(1, av[i], n);
		} else if (show(bee) && isbuiltin(av[i]) != NULL) {
			f = TRUE;
			fprint(1, "builtin %s\n", av[i]);
		} else if (show(pee) && (e = which(av[i], FALSE)) != NULL) {
			f = TRUE;
			fprint(1, "%S\n", e);
		}
		if (!f) {
			found = FALSE;
			if (errno != ENOENT)
				uerror(av[i]);
			else
				fprint(2, "%s not found\n", av[i]);
		}
	}
	set(found);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0x2c(%rbp)
leaq 0x1ae8e(%rip), %rax     # 0x1f2f8
movl $0x0, (%rax)
movq -0x8(%rbp), %rax
movslq -0x2c(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x448c
jmp 0x4481
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x4470
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x18(%rbp)
movl $0x0, -0x14(%rbp)
movl $0x0, -0x10(%rbp)
movl $0x0, -0xc(%rbp)
movl -0x2c(%rbp), %edi
movq -0x8(%rbp), %rsi
leaq 0x10dee(%rip), %rdx     # 0x152ab
callq 0x7610
movl %eax, -0x30(%rbp)
cmpl $-0x1, %eax
je 0x4528
movl -0x30(%rbp), %eax
addl $-0x62, %eax
movl %eax, %ecx
movq %rcx, -0x50(%rbp)
subl $0x14, %eax
ja 0x44ef
movq -0x50(%rbp), %rax
leaq 0x10b76(%rip), %rcx     # 0x1505c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %edi, %edi
callq 0x107a0
jmp 0x4832
movl $0x1, -0xc(%rbp)
jmp 0x4526
movl $0x1, -0x10(%rbp)
jmp 0x4526
movl $0x1, -0x14(%rbp)
jmp 0x4526
movl $0x1, -0x18(%rbp)
jmp 0x4526
movl $0x1, -0x1c(%rbp)
jmp 0x44af
leaq 0x1adc9(%rip), %rax     # 0x1f2f8
movl (%rax), %ecx
movq -0x8(%rbp), %rax
movslq %ecx, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x4609
movl -0x14(%rbp), %eax
orl -0x10(%rbp), %eax
cmpl $0x0, %eax
je 0x4567
movl -0x10(%rbp), %edi
movl -0x14(%rbp), %esi
callq 0xa410
cmpl $0x0, -0xc(%rbp)
je 0x4572
callq 0x5e80
cmpl $0x0, -0x1c(%rbp)
je 0x45bb
movl $0x0, -0x28(%rbp)
cmpl $0x11, -0x28(%rbp)
jge 0x45b9
movslq -0x28(%rbp), %rcx
leaq 0x1ac50(%rip), %rax     # 0x1f1e0
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rdx
movl $0x1, %edi
leaq 0x10d0a(%rip), %rsi     # 0x152b1
movb $0x0, %al
callq 0xf3a0
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x457f
jmp 0x45bb
cmpl $0x0, -0x18(%rbp)
je 0x45d4
movl $0x2, %edi
leaq 0x10cf0(%rip), %rsi     # 0x152bd
movb $0x0, %al
callq 0xf3a0
movl -0x10(%rbp), %eax
orl -0x14(%rbp), %eax
orl -0x18(%rbp), %eax
orl -0x1c(%rbp), %eax
orl -0xc(%rbp), %eax
xorl $0x1, %eax
orl $0x0, %eax
cmpl $0x0, %eax
je 0x45fa
movl $0x1, %esi
movl %esi, %edi
callq 0xa410
movl $0x1, %edi
callq 0x107a0
jmp 0x4832
movl $0x1, -0x24(%rbp)
movl $0x0, -0x28(%rbp)
movq -0x8(%rbp), %rax
movslq -0x28(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x482a
movl $0x0, -0x20(%rbp)
callq 0x3040
movl $0x2, (%rax)
movl -0x10(%rbp), %eax
orl -0x14(%rbp), %eax
orl -0x18(%rbp), %eax
orl -0x1c(%rbp), %eax
orl -0xc(%rbp), %eax
xorl $0x1, %eax
orl -0x14(%rbp), %eax
cmpl $0x0, %eax
je 0x4692
movq -0x8(%rbp), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x12110
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x4692
movl $0x1, -0x20(%rbp)
movq -0x8(%rbp), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x38(%rbp), %rdx
movl $0x1, %edi
callq 0x12680
movl -0x10(%rbp), %eax
orl -0x14(%rbp), %eax
orl -0x18(%rbp), %eax
orl -0x1c(%rbp), %eax
orl -0xc(%rbp), %eax
xorl $0x1, %eax
orl -0xc(%rbp), %eax
cmpl $0x0, %eax
je 0x46c2
movq -0x8(%rbp), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x4bf0
cmpl $0x0, %eax
jne 0x46dc
movl -0x10(%rbp), %eax
orl -0x14(%rbp), %eax
orl -0x18(%rbp), %eax
orl -0x1c(%rbp), %eax
orl -0xc(%rbp), %eax
xorl $0x1, %eax
orl -0x10(%rbp), %eax
cmpl $0x0, %eax
je 0x471d
movq -0x8(%rbp), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x5d30
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0x471d
movl $0x1, -0x20(%rbp)
movq -0x8(%rbp), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x40(%rbp), %rdx
movl $0x1, %edi
callq 0x5f90
jmp 0x47cf
movl -0x10(%rbp), %eax
orl -0x14(%rbp), %eax
orl -0x18(%rbp), %eax
orl -0x1c(%rbp), %eax
orl -0xc(%rbp), %eax
xorl $0x1, %eax
orl -0x1c(%rbp), %eax
cmpl $0x0, %eax
je 0x4776
movq -0x8(%rbp), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x3490
cmpq $0x0, %rax
je 0x4776
movl $0x1, -0x20(%rbp)
movq -0x8(%rbp), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movl $0x1, %edi
leaq 0x10b44(%rip), %rsi     # 0x152b1
movb $0x0, %al
callq 0xf3a0
jmp 0x47cd
movl -0x10(%rbp), %eax
orl -0x14(%rbp), %eax
orl -0x18(%rbp), %eax
orl -0x1c(%rbp), %eax
orl -0xc(%rbp), %eax
xorl $0x1, %eax
orl -0x18(%rbp), %eax
cmpl $0x0, %eax
je 0x47cb
movq -0x8(%rbp), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
xorl %esi, %esi
callq 0x13ee0
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
je 0x47cb
movl $0x1, -0x20(%rbp)
movq -0x48(%rbp), %rdx
movl $0x1, %edi
leaq 0x161ba(%rip), %rsi     # 0x1a97e
movb $0x0, %al
callq 0xf3a0
jmp 0x47cd
jmp 0x47cf
cmpl $0x0, -0x20(%rbp)
jne 0x481a
movl $0x0, -0x24(%rbp)
callq 0x3040
cmpl $0x2, (%rax)
je 0x47f9
movq -0x8(%rbp), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x11c10
jmp 0x4818
movq -0x8(%rbp), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movl $0x2, %edi
leaq 0x10ace(%rip), %rsi     # 0x152df
movb $0x0, %al
callq 0xf3a0
jmp 0x481a
jmp 0x481c
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x4617
movl -0x24(%rbp), %edi
callq 0x107a0
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)