// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movabsq $0x5f7865646f6d5f, %rax # imm = 0x5F7865646F6D5F
movq %rax, 0x30340(%rip)     # 0x38a90
movq 0x302d1(%rip), %r14     # 0x38a28
testq %r14, %r14
je 0x8931
xorl %ebp, %ebp
leaq 0x19bdb(%rip), %r15     # 0x22344
leaq 0x1d921(%rip), %r12     # 0x26091
leaq 0x1ab1e(%rip), %rbx     # 0x23295
cmpl $0x0, 0x3029e(%rip)     # 0x38a1c
je 0x879f
movl (%r14), %esi
movq 0x8(%r14), %rdx
testq %rdx, %rdx
cmoveq %r12, %rdx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4140
movq 0x30289(%rip), %r14     # 0x38a28
movl %ebp, 0x304eb(%rip)     # 0x38c90
movl %ebp, 0x304e9(%rip)     # 0x38c94
movl (%r14), %eax
addl $-0x41, %eax
cmpl $0x37, %eax
ja 0x8b7c
movslq (%r15,%rax,4), %rax
addq %r15, %rax
jmpq *%rax
movl $0x1, %eax
subl 0x304d2(%rip), %eax     # 0x38ca0
movl %eax, 0x304cc(%rip)     # 0x38ca0
jmp 0x88d2
movl $0x1, %eax
movl %eax, 0x3028c(%rip)     # 0x38a70
jmp 0x88cc
movl $0x1, 0x304b9(%rip)     # 0x38cac
movq 0x8(%r14), %rax
movq %rax, 0x2d99a(%rip)     # 0x36198
jmp 0x88d2
movl $0x1, %eax
subl 0x2d9e6(%rip), %eax     # 0x361f4
movl %eax, 0x2d9e0(%rip)     # 0x361f4
jmp 0x88d2
movl $0x1, %eax
subl 0x2d9c8(%rip), %eax     # 0x361ec
movl %eax, 0x2d9c2(%rip)     # 0x361ec
jmp 0x88d2
movq 0x8(%r14), %rsi
leaq 0x30256(%rip), %rdi     # 0x38a90
callq 0x40b0
jmp 0x88d2
movl $0x1, %eax
movl %eax, 0x3021d(%rip)     # 0x38a6c
jmp 0x88cc
movl $0x1, %eax
movl %eax, 0x30218(%rip)     # 0x38a74
jmp 0x88cc
movl $0x1, %eax
subl 0x30457(%rip), %eax     # 0x38cc0
movl %eax, 0x30451(%rip)     # 0x38cc0
jmp 0x88d2
movl $0x1, %eax
subl 0x30440(%rip), %eax     # 0x38cbc
movl %eax, 0x3043a(%rip)     # 0x38cbc
jmp 0x88d2
cmpq $0x0, 0x30424(%rip)     # 0x38cb0
jne 0x88d2
movq 0x8(%r14), %rax
movq %rax, 0x30417(%rip)     # 0x38cb0
jmp 0x88d2
movl $0x1, %eax
subl 0x2d94a(%rip), %eax     # 0x361f0
movl %eax, 0x2d944(%rip)     # 0x361f0
jmp 0x88d2
movl $0x1, %eax
subl 0x303ef(%rip), %eax     # 0x38ca8
movl %eax, 0x303e9(%rip)     # 0x38ca8
jmp 0x88d2
movl $0x1, %eax
movl %eax, 0x301ac(%rip)     # 0x38a78
movl %eax, 0x30196(%rip)     # 0x38a68
movq 0x10(%r14), %r14
movq %r14, 0x3014b(%rip)     # 0x38a28
testq %r14, %r14
jne 0x8777
jmp 0x8931
movq 0x8(%r14), %rdi
movl $0x1, %esi
callq 0x8b88
movq 0x3012b(%rip), %r14     # 0x38a28
jmp 0x88d2
movl $0x1, 0x303a3(%rip)     # 0x38cac
jmp 0x88d2
movl $0x1, %eax
subl 0x303a2(%rip), %eax     # 0x38cb8
movl %eax, 0x3039c(%rip)     # 0x38cb8
jmp 0x88d2
movl $0x1, %eax
subl 0x3037b(%rip), %eax     # 0x38ca4
movl %eax, 0x30375(%rip)     # 0x38ca4
jmp 0x88d2
xorl %ebx, %ebx
cmpl $0x0, 0x300e2(%rip)     # 0x38a1c
je 0x8b32
leaq 0x1b204(%rip), %rdi     # 0x23b4b
callq 0x40d0
jmp 0x8b32
leaq 0x1a962(%rip), %rax     # 0x232ba
jmp 0x8aba
movl $0x1, 0x30335(%rip)     # 0x38c9c
movl $0x1, 0x300f7(%rip)     # 0x38a68
leaq 0x1c04d(%rip), %rax     # 0x249c5
movq %rax, 0x2d829(%rip)     # 0x361a8
cmpl $0x2, 0x4(%r14)
jl 0x8a5f
movq 0x2d827(%rip), %rdi     # 0x361b8
callq 0x4110
leal 0x8(%rax), %edi
callq 0x6321
movq %rax, %rbx
movq 0x30080(%rip), %rax     # 0x38a28
movl 0x4(%rax), %edx
leaq 0x1a8f3(%rip), %rsi     # 0x232a5
movq %rbx, %rdi
xorl %eax, %eax
callq 0x42a0
movq 0x30065(%rip), %r14     # 0x38a28
jmp 0x8a66
leaq 0x1a8f2(%rip), %rax     # 0x232c1
movq %rax, 0x2d7e2(%rip)     # 0x361b8
movq 0x8(%r14), %rax
movq %rax, 0x2d7c7(%rip)     # 0x361a8
movl $0x0, 0x2d805(%rip)     # 0x361f0
movl $0x1, 0x302a3(%rip)     # 0x38c98
jmp 0x8acc
movl $0x1, 0x3028c(%rip)     # 0x38c90
movl $0x1, 0x30286(%rip)     # 0x38c94
leaq 0x19abc(%rip), %rax     # 0x224d1
movq %rax, 0x2d79c(%rip)     # 0x361b8
cmpl $0x2, 0x4(%r14)
jl 0x8ac1
movl $0x17, %edi
callq 0x6321
movq %rax, %rbx
movq 0x2ffed(%rip), %rax     # 0x38a28
movl 0x4(%rax), %edx
leaq 0x1a860(%rip), %rsi     # 0x232a5
movq %rbx, %rdi
xorl %eax, %eax
callq 0x42a0
movq %rbx, 0x2d762(%rip)     # 0x361b8
movq 0x2ffcb(%rip), %r14     # 0x38a28
jmp 0x8ac1
leaq 0x19a6b(%rip), %rbx     # 0x224d1
movq %rbx, 0x2d74b(%rip)     # 0x361b8
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x8acc
movzbl 0x2(%rax), %eax
cmpl $0x65, %eax
jle 0x8b3d
cmpl $0x70, %eax
je 0x8b69
cmpl $0x69, %eax
je 0x8b56
cmpl $0x66, %eax
jne 0x8acc
movl $0x1, 0x301ec(%rip)     # 0x38c90
jmp 0x8b47
movl $0x1, 0x301e1(%rip)     # 0x38c94
leaq 0x1a7f7(%rip), %rax     # 0x232b1
movq %rax, 0x2d6f7(%rip)     # 0x361b8
movq 0x8(%r14), %rax
movq %rax, 0x2d6dc(%rip)     # 0x361a8
movq 0x10(%r14), %rax
movq %rax, 0x2ff51(%rip)     # 0x38a28
movq 0x2d6ca(%rip), %rbx     # 0x361a8
leaq 0x2ffab(%rip), %rdi     # 0x38a90
movq %rbx, %rsi
callq 0x4290
movq %rbx, %rdi
callq 0x4110
leal 0x3(%rax), %edi
callq 0x6321
movq %rax, 0x301c4(%rip)     # 0x38cc8
movq 0x2d69d(%rip), %rsi     # 0x361a8
movq %rax, %rdi
callq 0x40b0
movq 0x301ae(%rip), %rbx     # 0x38cc8
movq %rbx, %rdi
callq 0x4110
movw $0x3a3a, (%rbx,%rax)    # imm = 0x3A3A
movb $0x0, 0x2(%rbx,%rax)
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x45, %eax
je 0x8b5f
cmpl $0x65, %eax
jne 0x8acc
movl $0x1, 0x30143(%rip)     # 0x38c94
jmp 0x8acc
leaq 0x1a75d(%rip), %rax     # 0x232ba
jmp 0x8b70
movl $0x1, 0x3012b(%rip)     # 0x38c94
leaq 0x1a741(%rip), %rax     # 0x232b1
movq %rax, 0x2d641(%rip)     # 0x361b8
jmp 0x8acc
leaq 0x1993f(%rip), %rdi     # 0x224c2
callq 0x7803