// File: /workspace/github_c_makefile_star2_O0/nimble-code[P]Modex/Src/modex.c
// Function: ActCmds
int
ActCmds(void)
{	int done = 0;

	strcpy(o_base, "_modex_");
	do {
		if (!ncmd)
		{	if (Verbose_cmds)
				printf("Act cmd : no more commands\n");
			return 0;
		}

		if (Verbose_cmds)
		printf("Act cmd -%c %s\n",
			ncmd->cmd, ncmd->arg ? ncmd->arg : "");

		extended = flike = 0;

		switch (ncmd->cmd) {
		case 'E': extended = 1;
			  wanttype = "proctype";
			  want = ncmd->arg;
			  done = 1;
			  break;
		case 'f': flike = 1; /* atomic more or less like a function */
			  /* fall through */
		case 'e': extended = 1;
			  /* fall through */
		case 'a': wanttype = "active proctype";
			  if (ncmd->n > 1)
			  {	char *p = e_malloc(strlen(wanttype)+8);
				sprintf(p, "active [%d] proctype", ncmd->n);
				wanttype = p;
			  }
			  want = ncmd->arg;
			  done = 1;
			  break;
		case 'b': process_input(ncmd->arg, 1); break;
		case 'i': wanttype = "inline"; want = ncmd->arg; done = 1; break;
		case 'n': wanttype = "body";   want = ncmd->arg; done = 1;
			  do_inc_globals = 0; anybody = 1;
			  break;
		case 'p': wanttype = "proctype"; want = ncmd->arg; done = 1; break;
		case 'g': globals_only = 1;
			  /* fall through */
		case 'x': allprocs = 1;
			  want = "all";
			  if (ncmd->n > 1)
			  {	char *p = e_malloc(strlen(wanttype)+8);
				sprintf(p, "active [%d] proctype", ncmd->n);
				wanttype = p;
			  } else
			  {	wanttype = "active proctype";
			  }
			  if (ncmd->arg)
			  switch (ncmd->arg[2]) {
			  case 'f': flike = 1;
			  case 'e': extended = 1; break;
			  case 'E': extended = 1; /* fall thru */
			  case 'p': wanttype = "proctype"; break;
			  case 'i': wanttype = "inline"; break;
			  }
			  done = 1;
			  break;

		case 'A': printall       = 1 - printall;       break;
		case 'C': show_code      = 1; allprocs = 1;    break;
		case 'c': use_c_code     = 1 - use_c_code;     break;
		case 'X': show_deps      = 1; allprocs = 1;    break;
		case 'F': show_funcs     = 1; allprocs = 1;    break;
		case 't': fallout        = 1 - fallout;        break;
		case 'G': do_inc_globals = 1 - do_inc_globals; break;
		case 'H': do_inc_locals  = 1 - do_inc_locals;  break;
		case 'K': allkeep        = 1 - allkeep;        break;
		case 'k': new_lut        = 1; break;
		case 'L': if (!ulut) { ulut = ncmd->arg; } break;
		case 'M': new_lut        = 1; suffix = ncmd->arg; break;
		case 'm': strcpy(o_base, ncmd->arg); break;
		case 'o': omissions      = 1 - omissions;      break;
		case 'r': redundancies   = 1 - redundancies;   break;
		case 'S': suppress       = 1 - suppress;       break;
		case 's': show_syms      = 1; allprocs = 1;    break;

		default:	Usage("modex");
		}
		ncmd = ncmd->nxt;
	} while (!done);

	strcat(o_base, want);
	wantpre = (char *) e_malloc(strlen(want)+strlen("::")+1);
	strcpy(wantpre, want);
	strcat(wantpre, "::");

	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl $0x0, -0x8(%rbp)
leaq 0x3fd3a(%rip), %rdi     # 0x47c60
leaq 0x2b6cc(%rip), %rsi     # 0x335f9
callq 0x40a0
cmpq $0x0, 0x3fcbe(%rip)     # 0x47bf8
jne 0x7f5f
cmpl $0x0, 0x3fca9(%rip)     # 0x47bec
je 0x7f53
leaq 0x2c461(%rip), %rdi     # 0x343ad
movb $0x0, %al
callq 0x4120
movl $0x0, -0x4(%rbp)
jmp 0x8491
cmpl $0x0, 0x3fc86(%rip)     # 0x47bec
je 0x7fb5
movq 0x3fc89(%rip), %rax     # 0x47bf8
movl (%rax), %eax
movl %eax, -0x1c(%rbp)
movq 0x3fc7d(%rip), %rax     # 0x47bf8
cmpq $0x0, 0x8(%rax)
je 0x7f93
movq 0x3fc6f(%rip), %rax     # 0x47bf8
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
jmp 0x7fa0
leaq 0x2f524(%rip), %rax     # 0x374be
movq %rax, -0x28(%rbp)
jmp 0x7fa0
movl -0x1c(%rbp), %esi
movq -0x28(%rbp), %rdx
leaq 0x2c41b(%rip), %rdi     # 0x343c9
movb $0x0, %al
callq 0x4120
movl $0x0, 0x3fea1(%rip)     # 0x47e60
movl $0x0, 0x3fe9b(%rip)     # 0x47e64
movq 0x3fc28(%rip), %rax     # 0x47bf8
movl (%rax), %eax
addl $-0x41, %eax
movl %eax, %ecx
movq %rcx, -0x30(%rbp)
subl $0x37, %eax
ja 0x8400
movq -0x30(%rbp), %rax
leaq 0x2b34d(%rip), %rcx     # 0x3333c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x1, 0x3fe62(%rip)     # 0x47e64
leaq 0x2c3dc(%rip), %rax     # 0x343e5
movq %rax, 0x3d178(%rip)     # 0x45188
movq 0x3fbe1(%rip), %rax     # 0x47bf8
movq 0x8(%rax), %rax
movq %rax, 0x3d156(%rip)     # 0x45178
movl $0x1, -0x8(%rbp)
jmp 0x840c
movl $0x1, 0x3fe28(%rip)     # 0x47e60
movl $0x1, 0x3fe22(%rip)     # 0x47e64
leaq 0x2b5a0(%rip), %rax     # 0x335e9
movq %rax, 0x3d138(%rip)     # 0x45188
movq 0x3fba1(%rip), %rax     # 0x47bf8
cmpl $0x1, 0x4(%rax)
jle 0x809f
movq 0x3d124(%rip), %rdi     # 0x45188
callq 0x40f0
addq $0x8, %rax
movl %eax, %edi
callq 0x4a70
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x3fb75(%rip), %rax     # 0x47bf8
movl 0x4(%rax), %edx
leaq 0x2c34c(%rip), %rsi     # 0x343d9
movb $0x0, %al
callq 0x4260
movq -0x10(%rbp), %rax
movq %rax, 0x3d0e9(%rip)     # 0x45188
movq 0x3fb52(%rip), %rax     # 0x47bf8
movq 0x8(%rax), %rax
movq %rax, 0x3d0c7(%rip)     # 0x45178
movl $0x1, -0x8(%rbp)
jmp 0x840c
movq 0x3fb34(%rip), %rax     # 0x47bf8
movq 0x8(%rax), %rdi
movl $0x1, %esi
callq 0x84a0
jmp 0x840c
leaq 0x2c310(%rip), %rax     # 0x343ee
movq %rax, 0x3d0a3(%rip)     # 0x45188
movq 0x3fb0c(%rip), %rax     # 0x47bf8
movq 0x8(%rax), %rax
movq %rax, 0x3d081(%rip)     # 0x45178
movl $0x1, -0x8(%rbp)
jmp 0x840c
leaq 0x2c2eb(%rip), %rax     # 0x343f5
movq %rax, 0x3d077(%rip)     # 0x45188
movq 0x3fae0(%rip), %rax     # 0x47bf8
movq 0x8(%rax), %rax
movq %rax, 0x3d055(%rip)     # 0x45178
movl $0x1, -0x8(%rbp)
movl $0x0, 0x3d08c(%rip)     # 0x451c0
movl $0x1, 0x3fd2a(%rip)     # 0x47e68
jmp 0x840c
leaq 0x2c29b(%rip), %rax     # 0x343e5
movq %rax, 0x3d037(%rip)     # 0x45188
movq 0x3faa0(%rip), %rax     # 0x47bf8
movq 0x8(%rax), %rax
movq %rax, 0x3d015(%rip)     # 0x45178
movl $0x1, -0x8(%rbp)
jmp 0x840c
movl $0x1, 0x3fcf3(%rip)     # 0x47e6c
movl $0x1, 0x3fab5(%rip)     # 0x47c38
leaq 0x2db31(%rip), %rax     # 0x35cbb
movq %rax, 0x3cfe7(%rip)     # 0x45178
movq 0x3fa60(%rip), %rax     # 0x47bf8
cmpl $0x1, 0x4(%rax)
jle 0x81e2
movq 0x3cfe3(%rip), %rdi     # 0x45188
callq 0x40f0
addq $0x8, %rax
movl %eax, %edi
callq 0x4a70
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movq 0x3fa34(%rip), %rax     # 0x47bf8
movl 0x4(%rax), %edx
leaq 0x2c20b(%rip), %rsi     # 0x343d9
movb $0x0, %al
callq 0x4260
movq -0x18(%rbp), %rax
movq %rax, 0x3cfa8(%rip)     # 0x45188
jmp 0x81f0
leaq 0x2b400(%rip), %rax     # 0x335e9
movq %rax, 0x3cf98(%rip)     # 0x45188
movq 0x3fa01(%rip), %rax     # 0x47bf8
cmpq $0x0, 0x8(%rax)
je 0x826f
movq 0x3f9f3(%rip), %rax     # 0x47bf8
movq 0x8(%rax), %rax
movsbl 0x2(%rax), %eax
addl $-0x45, %eax
movl %eax, %ecx
movq %rcx, -0x38(%rbp)
subl $0x2b, %eax
ja 0x826d
movq -0x38(%rbp), %rax
leaq 0x2b1f6(%rip), %rcx     # 0x3341c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x1, 0x3fc27(%rip)     # 0x47e60
movl $0x1, 0x3fc21(%rip)     # 0x47e64
jmp 0x826d
movl $0x1, 0x3fc15(%rip)     # 0x47e64
leaq 0x2c18f(%rip), %rax     # 0x343e5
movq %rax, 0x3cf2b(%rip)     # 0x45188
jmp 0x826d
leaq 0x2c188(%rip), %rax     # 0x343ee
movq %rax, 0x3cf1b(%rip)     # 0x45188
jmp 0x826f
movl $0x1, -0x8(%rbp)
jmp 0x840c
movl $0x1, %eax
subl 0x3fbea(%rip), %eax     # 0x47e70
movl %eax, 0x3fbe4(%rip)     # 0x47e70
jmp 0x840c
movl $0x1, 0x3f9a1(%rip)     # 0x47c3c
movl $0x1, 0x3f993(%rip)     # 0x47c38
jmp 0x840c
movl $0x1, %eax
subl 0x3cf0f(%rip), %eax     # 0x451c4
movl %eax, 0x3cf09(%rip)     # 0x451c4
jmp 0x840c
movl $0x1, 0x3f976(%rip)     # 0x47c40
movl $0x1, 0x3f964(%rip)     # 0x47c38
jmp 0x840c
movl $0x1, 0x3f961(%rip)     # 0x47c44
movl $0x1, 0x3f94b(%rip)     # 0x47c38
jmp 0x840c
movl $0x1, %eax
subl 0x3fb77(%rip), %eax     # 0x47e74
movl %eax, 0x3fb71(%rip)     # 0x47e74
jmp 0x840c
movl $0x1, %eax
subl 0x3cead(%rip), %eax     # 0x451c0
movl %eax, 0x3cea7(%rip)     # 0x451c0
jmp 0x840c
movl $0x1, %eax
subl 0x3ce93(%rip), %eax     # 0x451bc
movl %eax, 0x3ce8d(%rip)     # 0x451bc
jmp 0x840c
movl $0x1, %eax
subl 0x3fb39(%rip), %eax     # 0x47e78
movl %eax, 0x3fb33(%rip)     # 0x47e78
jmp 0x840c
movl $0x1, 0x3fb28(%rip)     # 0x47e7c
jmp 0x840c
cmpq $0x0, 0x3fb1f(%rip)     # 0x47e80
jne 0x8375
movq 0x3f88e(%rip), %rax     # 0x47bf8
movq 0x8(%rax), %rax
movq %rax, 0x3fb0b(%rip)     # 0x47e80
jmp 0x840c
movl $0x1, 0x3faf8(%rip)     # 0x47e7c
movq 0x3f86d(%rip), %rax     # 0x47bf8
movq 0x8(%rax), %rax
movq %rax, 0x3cdd2(%rip)     # 0x45168
jmp 0x840c
movq 0x3f859(%rip), %rax     # 0x47bf8
movq 0x8(%rax), %rsi
leaq 0x3f8b6(%rip), %rdi     # 0x47c60
callq 0x40a0
jmp 0x840c
movl $0x1, %eax
subl 0x3facc(%rip), %eax     # 0x47e88
movl %eax, 0x3fac6(%rip)     # 0x47e88
jmp 0x840c
movl $0x1, %eax
subl 0x3fabd(%rip), %eax     # 0x47e8c
movl %eax, 0x3fab7(%rip)     # 0x47e8c
jmp 0x840c
movl $0x1, %eax
subl 0x3faae(%rip), %eax     # 0x47e90
movl %eax, 0x3faa8(%rip)     # 0x47e90
jmp 0x840c
movl $0x1, 0x3f854(%rip)     # 0x47c48
movl $0x1, 0x3f83a(%rip)     # 0x47c38
jmp 0x840c
leaq 0x2b1d3(%rip), %rdi     # 0x335da
callq 0x6d60
movq 0x3f7e5(%rip), %rax     # 0x47bf8
movq 0x10(%rax), %rax
movq %rax, 0x3f7da(%rip)     # 0x47bf8
cmpl $0x0, -0x8(%rbp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x7f32
movq 0x3cd42(%rip), %rsi     # 0x45178
leaq 0x3f823(%rip), %rdi     # 0x47c60
callq 0x4250
movq 0x3cd2f(%rip), %rdi     # 0x45178
callq 0x40f0
addq $0x2, %rax
addq $0x1, %rax
movl %eax, %edi
callq 0x4a70
movq %rax, 0x3fa34(%rip)     # 0x47e98
movq 0x3fa2d(%rip), %rdi     # 0x47e98
movq 0x3cd06(%rip), %rsi     # 0x45178
callq 0x40a0
movq 0x3fa1a(%rip), %rdi     # 0x47e98
leaq 0x36535(%rip), %rsi     # 0x3e9ba
callq 0x4250
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)