LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/rakitzis[P]rc/var.c
// Function: alias
extern void alias(char *name, List *s, bool stack) {
	static void (*vectors[])(char *, List *, bool) = {
		varassign, varassign, colonassign, listassign, colonassign, listassign
	};
	int i = hasalias(name);
	if (i != -1)
		(*vectors[i])(aliases[i^1], s, stack); /* xor hack to reverse case of alias entry */
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
callq 0xc94c
cmpl $-0x1, %eax
je 0xc9d2
movslq %eax, %rcx
leaq 0xc3ce(%rip), %r8       # 0x18d80
xorl $0x1, %eax
cltq
leaq 0xc392(%rip), %rdx      # 0x18d50
movq (%rdx,%rax,8), %rdi
movq %r14, %rsi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *(%r8,%rcx,8)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/rakitzis[P]rc/var.c
// Function: varlookup
extern List *varlookup(char *name) {
	Variable *look;
	List *ret, *l;
	int sub;
	if (streq(name, "apids"))
		return sgetapids();
	if (streq(name, "status"))
		return sgetstatus();
	if (*name != '\0' && (sub = a2u(name)) != -1) { /* handle $1, $2, etc. */
		for (l = varlookup("*"); l != NULL && sub != 0; --sub)
			l = l->n;
		if (l == NULL)
			return NULL;
		ret = nnew(List);
		ret->w = l->w;
		ret->m = NULL;
		ret->n = NULL;
		return ret;
	}
	look = lookup_var(name);
	if (look == NULL)
		return NULL; /* not found */
	if (look->def != NULL)
		return look->def;
	if (look->extdef == NULL)
		return NULL; /* variable was set to null, e.g., a=() echo foo */
	ret = parse_var(look->extdef);
	if (ret == NULL) {
		look->extdef = NULL;
		return NULL;
	}
	return look->def = ret;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movzbl (%rdi), %eax
testl %eax, %eax
je 0xca8f
cmpl $0x73, %eax
je 0xca13
cmpl $0x61, %eax
jne 0xca2a
leaq 0x2db0(%rip), %rsi      # 0xf7ac
movq %rbx, %rdi
callq 0x31f0
testl %eax, %eax
jne 0xca2a
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xd02a
leaq 0x2d5d(%rip), %rsi      # 0xf777
movq %rbx, %rdi
callq 0x31f0
testl %eax, %eax
je 0xcac9
movq %rbx, %rdi
movl $0xa, %esi
callq 0xc780
cmpl $-0x1, %eax
je 0xca8f
movl %eax, %ebp
leaq 0x2617(%rip), %rdi      # 0xf05c
callq 0xc9da
movq %rax, %rbx
testq %rax, %rax
sete %al
testl %ebp, %ebp
sete %cl
orb %al, %cl
jne 0xca71
decl %ebp
movq 0x10(%rbx), %rbx
addl $-0x1, %ebp
setb %al
testq %rbx, %rbx
je 0xca71
testb %al, %al
jne 0xca5e
testq %rbx, %rbx
je 0xcadc
movl $0x18, %edi
callq 0x9e80
movq (%rbx), %rcx
movq %rcx, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
jmp 0xcade
leaq 0xd042(%rip), %rax      # 0x19ad8
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x72f5
testq %rax, %rax
je 0xcadc
movq %rax, %rbx
movq (%rax), %rax
testq %rax, %rax
jne 0xcade
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xcadc
callq 0x5244
testq %rax, %rax
je 0xcad4
movq %rax, (%rbx)
jmp 0xcade
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xbd79
movq $0x0, 0x8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/rakitzis[P]rc/var.c
// Function: varlookup_string
extern char *varlookup_string(char *name) {
	Variable *look;
	look = lookup_var(name);
	if (look == NULL)
		return NULL;
	if (look->extdef != NULL)
		return look->extdef;
	if (look->def == NULL)
		return NULL;
	return look->extdef = mprint("%F=%W", name, look->def);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xcfe5(%rip), %rax      # 0x19ad8
movq (%rax), %rsi
callq 0x72f5
testq %rax, %rax
je 0xcb2b
movq %rax, %r14
movq 0x8(%rax), %rax
testq %rax, %rax
jne 0xcb2d
movq (%r14), %rdx
testq %rdx, %rdx
je 0xcb2b
leaq 0x7aec(%rip), %rdi      # 0x14607
movq %rbx, %rsi
xorl %eax, %eax
callq 0xb09e
movq %rax, 0x8(%r14)
jmp 0xcb2d
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/rakitzis[P]rc/var.c
// Function: varrm
extern void varrm(char *name, bool stack) {
	int i = hasalias(name);
	if (streq(name, "*") && !stack) { /* when assigning () to $*, we want to preserve $0 */
		varassign("*", varlookup("0"), FALSE);
		return;
	}
	delete_var(name, stack);
	if (i != -1)
		delete_var(aliases[i^1], stack);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
callq 0xc94c
movl %eax, %ebp
cmpb $0x2a, (%r14)
jne 0xcb5e
leaq 0x250a(%rip), %rsi      # 0xf05c
movq %r14, %rdi
callq 0x31f0
orl %ebx, %eax
je 0xcb8e
movq %r14, %rdi
movl %ebx, %esi
callq 0x77c4
cmpl $-0x1, %ebp
je 0xcb89
xorl $0x1, %ebp
movslq %ebp, %rax
leaq 0xc1d6(%rip), %rcx      # 0x18d50
movq (%rcx,%rax,8), %rdi
movl %ebx, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x77c4
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x745f(%rip), %rdi      # 0x13ff4
callq 0xc9da
leaq 0x24bb(%rip), %rdi      # 0xf05c
movq %rax, %rsi
xorl %edx, %edx
popq %rbx
popq %r14
popq %rbp
jmp 0xc808
// File: /workspace/github_c_makefile_star2_O3/rakitzis[P]rc/var.c
// Function: starassign
extern void starassign(char *dollarzero, char **a, bool stack) {
	List *s, *var;
	var = nnew(List);
	var->w = dollarzero;
	if (*a == NULL) {
		var->n = NULL;
		varassign("*", var, stack);
		return;
	}
	var->n = s = nnew(List);
	while (1) {
		s->w = *a++;
		if (*a == NULL) {
			s->n = NULL;
			break;
		} else
			s = s->n = nnew(List);
	}
	varassign("*", var, stack);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r12
movl $0x18, %edi
callq 0x9e80
movq %rax, %r14
movq %r12, (%rax)
cmpq $0x0, (%r15)
je 0xcc20
movl $0x18, %edi
callq 0x9e80
movq %rax, %r12
movq %rax, 0x10(%r14)
movq (%r15), %rax
movq %rax, (%r12)
cmpq $0x0, 0x8(%r15)
je 0xcc1d
addq $0x10, %r15
movl $0x18, %edi
callq 0x9e80
movq %rax, 0x10(%r12)
movq -0x8(%r15), %rcx
movq %rcx, (%rax)
cmpq $0x0, (%r15)
leaq 0x8(%r15), %r15
movq %rax, %r12
jne 0xcbf8
jmp 0xcc20
movq %r12, %rax
movq $0x0, 0x10(%rax)
leaq 0x242d(%rip), %rdi      # 0xf05c
movq %r14, %rsi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xc808
// File: /workspace/github_c_makefile_star2_O3/rakitzis[P]rc/var.c
// Function: colonassign
static void colonassign(char *name, List *def, bool stack) {
	List dud;
	if (def == NULL) {
		varassign(name, NULL, stack);
		return;
	}
	dud.w = nprint("%-L", def, ":");
	dud.n = NULL;
	varassign(name, &dud, stack);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebx
movq %rdi, %r14
testq %rsi, %rsi
je 0xcc8a
leaq 0x79d3(%rip), %rdi      # 0x1462f
leaq 0x79d0(%rip), %rdx      # 0x14633
xorl %eax, %eax
callq 0xb191
movq %rsp, %rsi
movq %rax, (%rsi)
movq $0x0, 0x10(%rsi)
movq %r14, %rdi
movl %ebx, %edx
callq 0xc808
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq %r14, %rdi
xorl %esi, %esi
movl %ebx, %edx
addq $0x18, %rsp
popq %rbx
popq %r14
jmp 0xc808
// File: /workspace/github_c_makefile_star2_O3/rakitzis[P]rc/var.c
// Function: listassign
static void listassign(char *name, List *def, bool stack) {
	List *val, *r;
	char *v, *w;
	if (def == NULL) {
		varassign(name, NULL, stack);
		return;
	}
	v = def->w;
	r = val = nnew(List);
	while ((w = strchr(v, ':')) != NULL) {
		*w = '\0';
		r->w = ncpy(v);
		*w = ':';
		v = w + 1;
		r = r->n = nnew(List);
	}
	r->w = ncpy(v);
	r->n = NULL;
	varassign(name, val, stack);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
testq %rsi, %rsi
je 0xcd3d
movl %edx, 0x4(%rsp)
movq (%rsi), %r12
movl $0x18, %edi
callq 0x9e80
movq %rax, %rbx
movq %r12, %rdi
movl $0x3a, %esi
callq 0x3120
testq %rax, %rax
je 0xcd41
movq %rax, %r13
movq %rbx, %r15
movb $0x0, (%r13)
movq %r12, %rdi
callq 0x30f0
leaq 0x1(%rax), %rdi
callq 0x9e80
movq %rax, %rbp
movq %rax, %rdi
movq %r12, %rsi
callq 0x3070
movq %rbp, (%r15)
movb $0x3a, (%r13)
movq %r13, %r12
incq %r12
movl $0x18, %edi
callq 0x9e80
movq %rax, %rbp
movq %rax, 0x10(%r15)
movq %r12, %rdi
movl $0x3a, %esi
callq 0x3120
movq %rax, %r13
movq %rbp, %r15
testq %rax, %rax
jne 0xcce0
jmp 0xcd44
xorl %ebx, %ebx
jmp 0xcd73
movq %rbx, %rbp
movq %r12, %rdi
callq 0x30f0
leaq 0x1(%rax), %rdi
callq 0x9e80
movq %rax, %r13
movq %rax, %rdi
movq %r12, %rsi
callq 0x3070
movq %r13, (%rbp)
movq $0x0, 0x10(%rbp)
movl 0x4(%rsp), %edx
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xc808
// File: /workspace/github_c_makefile_star2_O3/rakitzis[P]rc/var.c
// Function: prettyprint_var
extern void prettyprint_var(int fd, char *name, List *s) {
	int i;
	static const char * const keywords[] = {
		"if", "in", "fn", "for", "else", "switch", "while", "case"
	};
	if (s == NULL) {
		fprint(fd, "%S=()\n", name);
		return;
	}
	if (streq(name, "*")) {
		s = s->n;
		if (s == NULL)
			return; /* Don't print $0, and if $* is not set, skip it */
	}
	for (i = 0; i < arraysize(keywords); i++)
		if (streq(keywords[i], name)) {
			fprint(fd, "%#S=", name);
			goto value;
		}
	fprint(fd, "%S=", name);
value:
	fprint(fd, s->n == NULL ? "%L\n" : "(%L)\n", s, " ");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
testq %rdx, %rdx
je 0xce4a
movq %rdx, %r14
movb (%r15), %bpl
cmpb $0x2a, %bpl
jne 0xcdc3
cmpb $0x0, 0x1(%r15)
jne 0xcdc3
movq 0x10(%r14), %r14
testq %r14, %r14
je 0xce69
movl %edi, 0x4(%rsp)
xorl %r13d, %r13d
leaq 0xbfdf(%rip), %rbx      # 0x18db0
leaq 0x783c(%rip), %r12      # 0x14614
movq (%r13,%rbx), %rdi
cmpb %bpl, (%rdi)
jne 0xcdee
movq %r15, %rsi
callq 0x31f0
testl %eax, %eax
je 0xcdff
addq $0x8, %r13
cmpq $0x40, %r13
jne 0xcdd8
leaq 0x781a(%rip), %r12      # 0x14619
movl 0x4(%rsp), %ebx
movl %ebx, %edi
movq %r12, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0xaf8c
cmpq $0x0, 0x10(%r14)
leaq 0x7907(%rip), %rax      # 0x14725
leaq 0x77f8(%rip), %rsi      # 0x1461d
cmoveq %rax, %rsi
leaq 0x77c5(%rip), %rcx      # 0x145f5
movl %ebx, %edi
movq %r14, %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xaf8c
leaq 0x77bc(%rip), %rsi      # 0x1460d
movq %r15, %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xaf8c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/rakitzis[P]rc/wait.c
// Function: rc_fork
extern pid_t rc_fork() {
	Pid *new;
	struct Pid *p, *q;
	pid_t pid = fork();

	switch (pid) {
	case -1:
		uerror("fork");
		rc_error(NULL);
		/* NOTREACHED */
	case 0:
		forked = TRUE;
		sigchk();
		clearflow();
		p = plist; q = 0;
		while (p) {
			if (q) efree(q);
			q = p;
			p = p->n;
		}
		if (q) efree(q);
		plist = 0;
		return 0;
	default:
		new = enew(Pid);
		new->pid = pid;
		new->alive = TRUE;
		new->waiting = FALSE;
		new->n = plist;
		plist = new;
		return pid;
	}
}

// Assembly:
pushq %rbx
callq 0x3390
testl %eax, %eax
je 0xce9c
movl %eax, %ebx
cmpl $-0x1, %eax
jne 0xcee5
leaq 0x256a(%rip), %rdi      # 0xf3fa
callq 0xc6dd
xorl %edi, %edi
callq 0x46c0
movl $0x1, 0xe122(%rip)      # 0x1afc8
callq 0xb9f9
callq 0x46f5
movq 0xe119(%rip), %rax      # 0x1afd0
testq %rax, %rax
je 0xcedf
xorl %edi, %edi
movq %rax, %rbx
testq %rdi, %rdi
je 0xcecb
callq 0x9fde
movq 0x10(%rbx), %rax
movq %rbx, %rdi
testq %rax, %rax
jne 0xcebe
movq %rbx, %rdi
callq 0x9fde
xorl %eax, %eax
xorl %ebx, %ebx
jmp 0xcf04
movl $0x18, %edi
callq 0xa00d
movl %ebx, (%rax)
movq $0x1, 0x8(%rax)
movq 0xe0d0(%rip), %rcx      # 0x1afd0
movq %rcx, 0x10(%rax)
movq %rax, 0xe0c5(%rip)      # 0x1afd0
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/rakitzis[P]rc/wait.c
// Function: rc_wait4
extern pid_t rc_wait4(pid_t pid, int *stat, bool nointr) {
	if (markwaiting(pid, TRUE) == 0) {
		/* Uh-oh, not there. */
		errno = ECHILD; /* no children */
		uerror("wait");
		*stat = 0x100; /* exit(1) */
		return -1;
	}
	return dowait(stat, nointr);
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movq 0xe0b6(%rip), %rax      # 0x1afd0
testq %rax, %rax
je 0xcf51
xorl %ecx, %ecx
cmpl $-0x1, %edi
je 0xcf2a
cmpl %edi, (%rax)
jne 0xcf35
movl $0x1, 0xc(%rax)
incl %ecx
jmp 0xcf3c
movl $0x0, 0xc(%rax)
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xcf21
testl %ecx, %ecx
je 0xcf51
movq %rbx, %rdi
movl %edx, %esi
popq %rbx
jmp 0xcf75
callq 0x3040
movl $0xa, (%rax)
leaq 0x213f(%rip), %rdi      # 0xf0a2
callq 0xc6dd
movl $0x100, (%rbx)          # imm = 0x100
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/rakitzis[P]rc/wait.c
// Function: dowait
static pid_t dowait(int *stat, bool nointr) {
	Pid **p, *q;
	pid_t pid;
	for (;;) {
		for (p = &plist; *p != NULL; p = &(*p)->n) {
			q = *p;
			if (q->waiting && !q->alive) {
				pid = q->pid;
				*stat = q->stat;
				*p = q->n; /* remove element from list */
				efree(q);
				return pid;
			}
		}
		pid = rc_wait(stat);
		if (pid < 0) {
			if (errno == ECHILD)
				panic("lost child");
			if (nointr)
				continue;
			else
				return pid;
		}
		for (q = plist; q != NULL; q = q->n)
			if (q->pid == pid) {
				q->alive = FALSE;
				q->stat = *stat;
				break;
			}
	}
	/* never reached */
	return -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x76e5(%rip), %r14      # 0x1466e
leaq 0xe040(%rip), %r12      # 0x1afd0
movq 0xe039(%rip), %rdi      # 0x1afd0
testq %rdi, %rdi
je 0xcfbe
movq %r12, %rax
cmpl $0x0, 0xc(%rdi)
je 0xcfab
cmpl $0x0, 0x8(%rdi)
je 0xd00a
movq %rdi, %rax
movq 0x10(%rdi), %rcx
addq $0x10, %rax
movq %rcx, %rdi
testq %rcx, %rcx
jne 0xcf9f
movq %rbx, %rdi
callq 0x3380
movl %eax, %r15d
testl %eax, %eax
js 0xcfe4
movq 0xdffc(%rip), %rax      # 0x1afd0
testq %rax, %rax
je 0xcf90
cmpl %r15d, (%rax)
je 0xcffc
movq 0x10(%rax), %rax
jmp 0xcfd4
callq 0x3040
cmpl $0xa, (%rax)
jne 0xcff6
movq %r14, %rdi
callq 0xc72e
testl %ebp, %ebp
jne 0xcf90
jmp 0xd01e
movl $0x0, 0x8(%rax)
movl (%rbx), %ecx
movl %ecx, 0x4(%rax)
jmp 0xcf90
movl (%rdi), %r15d
movl 0x4(%rdi), %ecx
movl %ecx, (%rbx)
movq 0x10(%rdi), %rcx
movq %rcx, (%rax)
callq 0x9fde
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/rakitzis[P]rc/wait.c
// Function: sgetapids
extern List *sgetapids() {
	List *r;
	Pid *p;
	for (r = NULL, p = plist; p != NULL; p = p->n) {
		List *q;
		if (!p->alive)
			continue;
		q = nnew(List);
		q->w = nprint("%d", p->pid);
		q->m = NULL;
		q->n = r;
		r = q;
	}
	return r;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0xdf97(%rip), %r12      # 0x1afd0
testq %r12, %r12
je 0xd088
leaq 0x2750(%rip), %r14      # 0xf795
xorl %ebx, %ebx
cmpl $0x0, 0x8(%r12)
je 0xd07c
movl $0x18, %edi
callq 0x9e80
movq %rax, %r15
movl (%r12), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0xb191
movq %rax, (%r15)
movq $0x0, 0x8(%r15)
movq %rbx, 0x10(%r15)
movq %r15, %rbx
movq 0x10(%r12), %r12
testq %r12, %r12
jne 0xd047
jmp 0xd08a
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/rakitzis[P]rc/wait.c
// Function: waitforall
extern void waitforall() {
	int stat;
	markwaiting(-1, TRUE);
	while (plist != NULL) {
		pid_t pid = dowait(&stat, FALSE);
		if (pid > 0)
			setstatus(pid, stat);
		else {
			set(FALSE);
			if (errno == EINTR)
				return;
		}
		sigchk();
	}
}

// Assembly:
movq 0xdf30(%rip), %rax      # 0x1afd0
testq %rax, %rax
je 0xd107
pushq %rbx
subq $0x10, %rsp
movq %rax, %rcx
movl $0x1, 0xc(%rcx)
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
jne 0xd0ad
testq %rax, %rax
je 0xd102
leaq 0xc(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0xcf75
testl %eax, %eax
jle 0xd0e2
movl 0xc(%rsp), %esi
movl %eax, %edi
callq 0xbc0e
jmp 0xd0f3
xorl %edi, %edi
callq 0xbbec
callq 0x3040
cmpl $0x4, (%rax)
je 0xd102
callq 0xb9f9
cmpq $0x0, 0xded0(%rip)      # 0x1afd0
jne 0xd0c7
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/rakitzis[P]rc/wait.c
// Function: waitfor
extern void waitfor(char **av) {
	int alive, count, i, stat;
	pid_t pid;
	for (i = 0; av[i] != NULL; i++)
		if ((pid = a2u(av[i])) < 0) {
			fprint(2, RC "`%s' is a bad number\n", av[i]);
			set(FALSE);
			return;
		} else if (markwaiting(pid, i == 0) == 0) {
			fprint(2, RC "`%s' is not a child\n", av[i]);
			set(FALSE);
			return;
		}
	alive = count = i;
	if (count >= MAX_PIPELINE) {
		fprint(2, RC "too many arguments to wait\n");
		set(FALSE);
		return;
	}
	setpipestatuslength(count);
	while (alive > 0) {
		pid = dowait(&stat, FALSE);
		if (pid > 0) {
			alive--;
			for (i = 0; av[i] != NULL; i++)
				if (a2u(av[i]) == pid) {
					setpipestatus(count - i - 1, pid, stat);
					break;
				}
		} else if (errno == EINTR) {
			set(FALSE);
			return;
		}
		sigchk();
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0xd19b
xorl %r14d, %r14d
movq %r14, %r13
movl $0xa, %esi
callq 0xc780
testl %eax, %eax
js 0xd1bd
movq 0xde90(%rip), %rcx      # 0x1afd0
testq %rcx, %rcx
je 0xd1b0
xorl %edx, %edx
cmpl %eax, (%rcx)
jne 0xd156
movl $0x1, 0xc(%rcx)
incl %edx
jmp 0xd162
testq %r13, %r13
jne 0xd162
movl $0x0, 0xc(%rcx)
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
jne 0xd147
testl %edx, %edx
je 0xd1b0
leaq 0x1(%r13), %r14
movq 0x8(%rbx,%r13,8), %rdi
testq %rdi, %rdi
jne 0xd124
cmpq $0x1ff, %r13            # imm = 0x1FF
jb 0xd1e9
leaq 0x74c1(%rip), %rsi      # 0x1464e
movl $0x2, %edi
xorl %eax, %eax
callq 0xaf8c
jmp 0xd1d4
xorl %edi, %edi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xbd5c
movq (%rbx,%r13,8), %rdx
leaq 0x747a(%rip), %rsi      # 0x14635
jmp 0xd1c8
movq (%rbx,%r13,8), %rdx
leaq 0x2058(%rip), %rsi      # 0xf220
movl $0x2, %edi
xorl %eax, %eax
callq 0xaf8c
xorl %edi, %edi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xbbec
movl %r14d, %edi
callq 0xbd5c
leaq 0x8(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0xc(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0xcf75
testl %eax, %eax
jle 0xd241
decl %r14d
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xd260
movl %eax, %ebp
movq 0x10(%rsp), %r15
movl %r13d, %r12d
movl $0xa, %esi
callq 0xc780
cmpl %ebp, %eax
je 0xd24d
movq (%r15), %rdi
decl %r12d
addq $0x8, %r15
testq %rdi, %rdi
jne 0xd222
jmp 0xd25b
callq 0x3040
cmpl $0x4, (%rax)
jne 0xd260
jmp 0xd26c
movl 0xc(%rsp), %edx
movl %r12d, %edi
movl %ebp, %esi
callq 0xbd63
leaq 0xc(%rsp), %r15
callq 0xb9f9
testl %r14d, %r14d
jg 0xd1ff
jmp 0xd273
xorl %edi, %edi
callq 0xbbec
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/rakitzis[P]rc/walk.c
// Function: loop_body
static void loop_body(Node* nd)
{
	Node *volatile n = nd;
	Jbwrap cont_jb;
	Edata  cont_data;
	Estack cont_stack;

	if (sigsetjmp(cont_jb.j, 1) == 0) {
		cont_data.jb = &cont_jb;
		except(eContinue, cont_data, &cont_stack);
		walk(n, TRUE);
		unexcept(eContinue);
	}
}

// Assembly:
pushq %rbx
subq $0xf0, %rsp
movq %rdi, 0x8(%rsp)
leaq 0x28(%rsp), %rdi
movl $0x1, %esi
callq 0x3370
testl %eax, %eax
jne 0xdb1f
movl $0x7, %ebx
leaq 0x28(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movl %ebx, %edi
callq 0x44b0
movq 0x8(%rsp), %rdi
movl $0x1, %esi
callq 0xd284
movl %ebx, %edi
callq 0x44e4
addq $0xf0, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/rakitzis[P]rc/walk.c
// Function: dofork
static bool dofork(bool parent) {
	int pid, sp;
	struct termios t;

	if (interactive)
		tcgetattr(0, &t);
	if (!parent || (pid = rc_fork()) == 0)
		return TRUE;
	redirq = NULL; /* clear out the pre-redirection queue in the parent */
	rc_wait4(pid, &sp, TRUE);
	if (interactive && WIFSIGNALED(sp))
		tcsetattr(0, TCSANOW, &t);
	setstatus(-1, sp);
	sigchk();
	return FALSE;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movl %edi, %ebp
leaq 0xc09b(%rip), %r14      # 0x19bd4
cmpl $0x0, (%r14)
je 0xdb4b
leaq 0x4(%rsp), %rsi
xorl %edi, %edi
callq 0x32c0
movl $0x1, %ebx
testl %ebp, %ebp
je 0xdbbb
callq 0xce78
testl %eax, %eax
je 0xdbbb
leaq 0xbf64(%rip), %rcx      # 0x19ac8
movq $0x0, (%rcx)
movq %rsp, %rbx
movl %eax, %edi
movq %rbx, %rsi
movl $0x1, %edx
callq 0xcf0f
cmpl $0x0, (%r14)
movl (%rbx), %esi
je 0xdbaa
movl %esi, %eax
andl $0x7f, %eax
shll $0x18, %eax
addl $0x1000000, %eax        # imm = 0x1000000
cmpl $0x2000000, %eax        # imm = 0x2000000
jl 0xdbaa
leaq 0x4(%rsp), %rdx
xorl %edi, %edi
xorl %esi, %esi
callq 0x32f0
movl (%rsp), %esi
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0xbc0e
callq 0xb9f9
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/rakitzis[P]rc/which.c
// Function: rc_access
bool rc_access(char *path, bool verbose, struct stat *stp) {
	int mask;
	if (stat(path, stp) != 0) {
		if (verbose) /* verbose flag only set for absolute pathname */
			uerror(path);
		return FALSE;
	}
	if (uid == 0)
		mask = X_ALL;
	else if (uid == stp->st_uid)
		mask = X_USR;
	else if (gid == stp->st_gid || ingidset(stp->st_gid))
		mask = X_GRP;
	else
		mask = X_OTH;
	if (((stp->st_mode & S_IFMT) == S_IFREG) && (stp->st_mode & mask))
		return TRUE;
	errno = EACCES;
	if (verbose)
		uerror(path);
	return FALSE;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
movq %rdx, %rsi
callq 0x3210
testl %eax, %eax
jne 0xde5e
movl 0xd1fe(%rip), %ecx      # 0x1afe0
testl %ecx, %ecx
je 0xde2b
movl $0x40, %eax
cmpl 0x1c(%r14), %ecx
je 0xde30
movl 0x20(%r14), %ecx
movl $0x8, %eax
cmpl %ecx, 0xd1e4(%rip)      # 0x1afe4
je 0xde30
movslq 0xd1f3(%rip), %rdx      # 0x1affc
testq %rdx, %rdx
jle 0xde24
movq 0xd1eb(%rip), %rsi      # 0x1b000
xorl %edi, %edi
cmpl %ecx, (%rsi,%rdi,4)
je 0xde30
incq %rdi
cmpq %rdi, %rdx
jne 0xde17
movl $0x1, %eax
jmp 0xde30
movl $0x49, %eax
movl 0x18(%r14), %ecx
movl %ecx, %edx
andl $0xf000, %edx           # imm = 0xF000
cmpl $0x8000, %edx           # imm = 0x8000
sete %dl
testl %eax, %ecx
setne %cl
movl $0x1, %eax
testb %cl, %dl
jne 0xde6c
callq 0x3040
movl $0xd, (%rax)
testl %ebp, %ebp
je 0xde6a
movq %rbx, %rdi
callq 0xc6dd
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/chbarts[P]aa-tree/nuniq.c
// Function: dofile
static void dofile(char *fname, FILE * fin, aa * tree)
{
    char *ln;

    while (fggets(&ln, fin) == 0) {
        switch (aa_add(tree, (void *) ln, duplicate)) {
        case 0:                /* No error */
            break;
        case 2:                /* Memory error */
            free(ln);
            error(tree);
            break;
        default:               /* Can't happen */
            fprintf(stderr, "Can't happen\n");
            free(ln);
            cleanup(tree);
            exit(EXIT_FAILURE);
            break;
        }

        if (1 == print) {
            puts(ln);
        } else {
            print = 1;
        }
    }

    if (ferror(fin) != 0)
        handle_ferr(fname, "nuniq");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
leaq 0x8(%rsp), %rdi
callq 0x135c
testl %eax, %eax
jne 0x1f07
leaq 0x170(%rip), %r12       # 0x2033
leaq 0x8(%rsp), %r13
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
movq %r12, %rdx
callq 0x1470
testl %eax, %eax
jne 0x1f30
cmpb $0x0, 0x31e5(%rip)      # 0x50c8
je 0x1eee
movb $0x0, 0x31dc(%rip)      # 0x50c8
jmp 0x1ef8
movq 0x8(%rsp), %rdi
callq 0x1050
movq %r13, %rdi
movq %r15, %rsi
callq 0x135c
testl %eax, %eax
je 0x1ec8
movq %r15, %rdi
callq 0x1060
testl %eax, %eax
je 0x1f22
leaq 0x11c5(%rip), %rsi      # 0x30df
movq %r14, %rdi
callq 0x1170
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
cmpl $0x2, %eax
jne 0x1f42
callq 0x11f2
callq 0x122a
// File: /workspace/github_c_makefile_star2_O3/chbarts[P]aa-tree/nuniq.c
// Function: usage
static void usage(char *pname)
{
    printf("Usage: %s [OPTION] [FILE...]\n", pname);
    puts("Print uniqified version of file(s) to standard output without sorting them.");
    puts("Only prints lines unique to all of the files, if multiple are specified, and doesn't separate by file");
    puts("With no files specified, uniqify standard input.");
    puts("");
    puts("  -h, --help        Print this help");
    puts("  -v, --version     Print version information");
    puts("  -d, --duplicates  Print duplicate lines to stderr (cannot print first duplicated line)");
    puts("");
    puts("Report bugs to <chbarts@gmail.com>.");
}

// Assembly:
pushq %rax
movq %rdi, %rsi
leaq 0x1198(%rip), %rdi      # 0x3105
xorl %eax, %eax
callq 0x1090
leaq 0x11a8(%rip), %rdi      # 0x3123
callq 0x1050
leaq 0x11e8(%rip), %rdi      # 0x316f
callq 0x1050
leaq 0x1242(%rip), %rdi      # 0x31d5
callq 0x1050
movl $0xa, %edi
callq 0x1040
leaq 0x125d(%rip), %rdi      # 0x3206
callq 0x1050
leaq 0x1275(%rip), %rdi      # 0x322a
callq 0x1050
leaq 0x1297(%rip), %rdi      # 0x3258
callq 0x1050
movl $0xa, %edi
callq 0x1040
leaq 0x12da(%rip), %rdi      # 0x32b1
popq %rax
jmp 0x1050
// File: /workspace/github_c_makefile_star2_O3/chbarts[P]aa-tree/nuniq.c
// Function: version
static void version(void)
{
    puts("nuniq version 0.1.0");
    puts("Copyright 2016 Chris Barts.");
    puts("nuniq comes with NO WARRANTY to the extent permitted by law.");
    puts("You may redistribute this software under the terms");
    puts("of the GNU General Public License.");
    puts("For more information, see the file named COPYING");
    puts("in this program's distribution file.");
}

// Assembly:
pushq %rax
leaq 0x12f0(%rip), %rdi      # 0x32d5
callq 0x1050
leaq 0x12f8(%rip), %rdi      # 0x32e9
callq 0x1050
leaq 0x1308(%rip), %rdi      # 0x3305
callq 0x1050
leaq 0x1339(%rip), %rdi      # 0x3342
callq 0x1050
leaq 0x1360(%rip), %rdi      # 0x3375
callq 0x1050
leaq 0x1377(%rip), %rdi      # 0x3398
callq 0x1050
leaq 0x139c(%rip), %rdi      # 0x33c9
popq %rax
jmp 0x1050
// File: /workspace/github_c_makefile_star2_O3/chbarts[P]aa-tree/nuniq.c
// Function: duplicate
static int duplicate(void *orig, void *new)
{
    char *ln = (char *) new;

    if (1 == d) {
       fprintf(stderr, "%s\n", ln);
    }

    free(ln);
    print = 0;
    return 0;
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
cmpb $0x1, 0x3086(%rip)      # 0x50c4
je 0x2053
movq %rbx, %rdi
callq 0x1030
movb $0x1, 0x3079(%rip)      # 0x50c8
xorl %eax, %eax
popq %rbx
retq
movq 0x2f9e(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x108f(%rip), %rsi      # 0x30f3
movq %rbx, %rdx
xorl %eax, %eax
callq 0x10d0
jmp 0x2040
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/src/deark-cmd.c
// Function: our_specialmsgfn
static void our_specialmsgfn(deark *c, unsigned int flags, unsigned int code,
	u32 param1)
{
	struct cmdctx *cc;

	cc = de_get_userdata(c);
	if(cc->color_method==CM_NOCOLOR) return;

	if(!cc->have_initialized_output_stream) {
		initialize_output_stream(cc);
	}

#ifdef DE_WINDOWS
	if(cc->color_method==CM_WINCONSOLE) {
		if(code==DE_MSGCODE_HL) {
			de_winconsole_highlight(cc->plctx, 1);
		}
		else if(code==DE_MSGCODE_UNHL) {
			de_winconsole_highlight(cc->plctx, 0);
		}
		else if(code==DE_MSGCODE_RGBSAMPLE) {
			// There's no way to get 24-bit color using Windows console
			// commands. Have to use ANSI24 instead.
			;
		}
		return;
	}
#endif

	// TODO: Maybe move the DE_COLOR_* macros to deark.h.
#define X_DE_COLOR_R(x)  (unsigned int)(((x)>>16)&0xff)
#define X_DE_COLOR_G(x)  (unsigned int)(((x)>>8)&0xff)
#define X_DE_COLOR_B(x)  (unsigned int)((x)&0xff)
	if(code==DE_MSGCODE_HL) {
		emit_sz(cc, "\x1b[7m");
	}
	else if(code==DE_MSGCODE_UNHL) {
		emit_sz(cc, "\x1b[27m");
	}
	else if(code==DE_MSGCODE_RGBSAMPLE && cc->color_method==CM_ANSI24) {
		char buf[64];

		de_snprintf(buf, sizeof(buf), "\x1b[48;2;%u;%u;%um  \x1b[0m",
			X_DE_COLOR_R(param1), X_DE_COLOR_G(param1), X_DE_COLOR_B(param1));
		emit_sz(cc, buf);
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movl %ecx, %ebp
movl %edx, %r14d
callq 0x108d6e
cmpl $0x0, 0x88(%rax)
je 0x1917d
movq %rax, %rbx
cmpl $0x0, 0x2c(%rax)
jne 0x190f4
movq %rbx, %rdi
callq 0x191ea
cmpl $0x2000, %r14d          # imm = 0x2000
je 0x19134
cmpl $0x1100, %r14d          # imm = 0x1100
je 0x1911c
cmpl $0x1000, %r14d          # imm = 0x1000
jne 0x1917d
movq 0x30(%rbx), %rsi
leaq 0xf7013(%rip), %rdi     # 0x11012d
jmp 0x19127
movq 0x30(%rbx), %rsi
leaq 0xf700b(%rip), %rdi     # 0x110132
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x18130
cmpl $0x3, 0x88(%rbx)
jne 0x1917d
movl %ebp, %ecx
shrl $0x10, %ecx
movl $0xff, %eax
andl %eax, %ecx
movl %ebp, %r8d
shrl $0x8, %r8d
andl %eax, %r8d
andl %eax, %ebp
leaq 0xf6fdc(%rip), %rdx     # 0x110138
movq %rsp, %r14
movl $0x40, %esi
movq %r14, %rdi
movl %ebp, %r9d
xorl %eax, %eax
callq 0xe8193
movq 0x30(%rbx), %rsi
movq %r14, %rdi
callq 0x18130
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/src/deark-cmd.c
// Function: print_help
static void print_help(deark *c)
{
	print_version(c, 0);
	de_puts(c, DE_MSGTYPE_MESSAGE,
		"A utility for extracting data from various file formats\n\n");
	print_usage_oneline(c);
	de_puts(c, DE_MSGTYPE_MESSAGE,
		"\nCommonly used options:\n"
		" -l: Instead of extracting, list the files that would be extracted.\n"
		" -k, -ka: Start output (-k) or .zip (-ka) filenames with the input filename.\n"
		" -o <base-filename>: Start output filenames with this string.\n"
		" -od <directory>: Write files to this directory.\n"
		" -zip: Write files to a .zip file (output.zip by default).\n"
		" -a, -main: Extract more (-a) or less (-main) data than usual.\n"
		" -get <n>: Extract only file number <n>.\n"
		" -maxfiles <n>: Extract at most <n> files.\n"
		" -d, -d2, -d3: Print additional information about the file.\n"
		" -q, -noinfo, -nowarn: Print fewer messages than usual.\n"
		" -color: Allow color in printed messages.\n"
		" -m <module>: Assume input file is this format, instead of autodetecting.\n"
		" -modules: Print the names of all available modules.\n"
		" -h, -version, -license: Print this message / version info / terms of use.\n"
		);
}

// Assembly:
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
movq %rsp, %rdi
movl $0x50, %esi
callq 0xe8128
leaq 0xf75c9(%rip), %rdx     # 0x11076b
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0xe856b
leaq 0xf6f97(%rip), %rdx     # 0x11014f
movq %rbx, %rdi
xorl %esi, %esi
callq 0xe82fa
leaq 0xf730f(%rip), %rdx     # 0x1104d8
movq %rbx, %rdi
xorl %esi, %esi
callq 0xe82fa
leaq 0xf6faf(%rip), %rdx     # 0x110189
movq %rbx, %rdi
xorl %esi, %esi
callq 0xe82fa
addq $0x50, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/src/deark-cmd.c
// Function: colormode_opt
static void colormode_opt(struct cmdctx *cc, const char *modestr)
{
	if(!strcmp(modestr, "auto")) {
		cc->color_method_req = CM_AUTOCOLOR;
	}
	else if(!strcmp(modestr, "ansi")) {
		cc->color_method_req = CM_ANSI;
	}
	else if(!strcmp(modestr, "ansi24")) {
		cc->color_method_req = CM_ANSI24;
	}
	else if(!strcmp(modestr, "winconsole")) {
		cc->color_method_req = CM_WINCONSOLE;
	}
	else  if(!strcmp(modestr, "none")) {
		cc->color_method_req = CM_NOCOLOR;
	}
	else {
		de_printf(cc->c, DE_MSGTYPE_MESSAGE, "Invalid colormode: %s\n", modestr);
		cc->error_flag = 1;
		return;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xf731b(%rip), %rsi     # 0x110577
movq %r14, %rdi
callq 0x181a0
testl %eax, %eax
je 0x192d3
leaq 0xf748b(%rip), %rsi     # 0x1106fa
movq %r14, %rdi
callq 0x181a0
testl %eax, %eax
je 0x192df
leaq 0xf747d(%rip), %rsi     # 0x1106ff
movq %r14, %rdi
callq 0x181a0
testl %eax, %eax
je 0x192eb
leaq 0xf7471(%rip), %rsi     # 0x110706
movq %r14, %rdi
callq 0x181a0
testl %eax, %eax
je 0x192f7
leaq 0xf7469(%rip), %rsi     # 0x110711
movq %r14, %rdi
callq 0x181a0
testl %eax, %eax
je 0x19303
movq (%rbx), %rdi
leaq 0xf7458(%rip), %rdx     # 0x110716
xorl %esi, %esi
movq %r14, %rcx
xorl %eax, %eax
callq 0xe856b
movl $0x1, 0x18(%rbx)
jmp 0x1930d
movl $0x1, 0x84(%rbx)
jmp 0x1930d
movl $0x2, 0x84(%rbx)
jmp 0x1930d
movl $0x3, 0x84(%rbx)
jmp 0x1930d
movl $0x4, 0x84(%rbx)
jmp 0x1930d
movl $0x0, 0x84(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/src/deark-cmd.c
// Function: handle_an_input_filename
static void handle_an_input_filename(struct cmdctx *cc, char *fn)
{
	if(!cc->input_filename) {
		cc->input_filename = fn;
		de_set_input_filename(cc->c, cc->input_filename, 0);
		return;
	}

	if(cc->mp_mode) {
		de_set_input_filename(cc->c, fn, 0x1);
		return;
	}

	cc->error_flag = 1;
	cc->show_usage_message = 1;
}

// Assembly:
cmpq $0x0, 0x10(%rdi)
je 0x19332
cmpb $0x0, 0x80(%rdi)
je 0x19340
movq (%rdi), %rdi
movl $0x1, %edx
jmp 0x109133
movq %rsi, 0x10(%rdi)
movq (%rdi), %rdi
xorl %edx, %edx
jmp 0x109133
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x18(%rdi)
retq
nop
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/src/deark-modules.c
// Function: module_list_string_to_set
static void module_list_string_to_set(deark *c, const char *s, u8 *mod_set)
{
	char tmpname[80];
	const char *ptr1, *ptr2;

	if(!s) return;

	ptr1 = s;
	while(1) {
		int idx;

		tmpname[0] = '\0';
		ptr2 = de_strchr(ptr1, ',');
		if(ptr2) {
			size_t len;
			len = (size_t)(ptr2-ptr1);
			if(len<sizeof(tmpname)) {
				de_memcpy(tmpname, ptr1, len);
				tmpname[len] = '\0';
			}
			ptr1 = ptr2 + 1;
		}
		else {
			de_strlcpy(tmpname, ptr1, sizeof(tmpname));
		}

		idx = de_get_module_idx_by_id(c, tmpname);
		if(idx>=0) {
			mod_set[idx] = 1;
		}

		if(!ptr2) break;
	}
}

// Assembly:
testq %rsi, %rsi
je 0x1963d
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq %rsp, %r12
movb $0x0, (%rsp)
movq %r15, %rdi
movl $0x2c, %esi
callq 0xe82ee
movq %rax, %r13
testq %rax, %rax
je 0x19605
movq %r13, %rbp
subq %r15, %rbp
cmpq $0x4f, %rbp
ja 0x195ff
movq %r12, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x181e0
movb $0x0, (%rsp,%rbp)
leaq 0x1(%r13), %r15
jmp 0x19615
movl $0x50, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0xe8219
movq %r14, %rdi
movq %r12, %rsi
callq 0xe989a
testl %eax, %eax
js 0x1962a
movl %eax, %eax
movb $0x1, (%rbx,%rax)
testq %r13, %r13
jne 0x195c8
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/abk.c
// Function: de_module_abk
void de_module_abk(deark *c, struct deark_module_info *mi)
{
	mi->id = "abk";
	mi->desc = "AMOS resource (AmBk, sprite, icon, AmBs)";
	mi->run_fn = de_run_abk;
	mi->identify_fn = de_identify_abk;
	mi->help_fn = de_help_abk;
}

// Assembly:
leaq 0xf7b5e(%rip), %rax     # 0x1111a5
movq %rax, (%rsi)
leaq 0xf773f(%rip), %rax     # 0x110d90
movq %rax, 0x8(%rsi)
leaq 0x1b(%rip), %rax        # 0x19677
movq %rax, 0x18(%rsi)
leaq 0x25f(%rip), %rax       # 0x198c6
movq %rax, 0x20(%rsi)
leaq 0x2ee(%rip), %rax       # 0x19960
movq %rax, 0x28(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/abk.c
// Function: de_identify_abk
static int de_identify_abk(deark *c)
{
	int ext_bonus = 0;
	UI sig;

	if(de_input_file_has_ext(c, "abk")) ext_bonus=40;

	sig = (UI)de_getu32be(0);
	if(sig==CODE_AmBk)
		return 60+ext_bonus;
	if(sig==CODE_AmSp)
		return 60+ext_bonus;
	if(sig==CODE_AmIc)
		return 60+ext_bonus;
	if(sig==CODE_AmBs)
		return 60+ext_bonus;
	if(sig==AMOS_PIC_HDR_ID || is_scr_hdr_id(sig)) {
		if(is_amos_picture_file(c, sig)) {
			return 60+ext_bonus;
		}
	}

	return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0xf78d1(%rip), %rsi     # 0x1111a5
callq 0xea491
testl %eax, %eax
movl $0x3c, %eax
movl $0x64, %ebx
cmovel %eax, %ebx
movq 0x18(%r14), %rdi
xorl %esi, %esi
callq 0xeed0d
cmpl $0x416d426a, %eax       # imm = 0x416D426A
jg 0x19911
cmpl $0x1203008f, %eax       # imm = 0x1203008F
jg 0x19928
cmpl $0x31990, %eax          # imm = 0x31990
je 0x19936
cmpl $0x6071963, %eax        # imm = 0x6071963
je 0x19936
jmp 0x19944
cmpl $0x416d4962, %eax       # imm = 0x416D4962
jg 0x19948
cmpl $0x416d426b, %eax       # imm = 0x416D426B
je 0x19956
cmpl $0x416d4273, %eax       # imm = 0x416D4273
je 0x19956
jmp 0x19944
cmpl $0x12030090, %eax       # imm = 0x12030090
je 0x19936
cmpl $0x12031990, %eax       # imm = 0x12031990
jne 0x19944
movq %r14, %rdi
movl %eax, %esi
callq 0x1ab08
testl %eax, %eax
jne 0x19956
xorl %ebx, %ebx
jmp 0x19956
cmpl $0x416d4963, %eax       # imm = 0x416D4963
je 0x19956
cmpl $0x416d5370, %eax       # imm = 0x416D5370
jne 0x19944
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/abk.c
// Function: de_module_amos_source
void de_module_amos_source(deark *c, struct deark_module_info *mi)
{
	mi->id = "amos_source";
	mi->desc = "AMOS source code";
	mi->run_fn = de_run_amos_source;
	mi->identify_fn = de_identify_amos_source;
}

// Assembly:
leaq 0xf7444(%rip), %rax     # 0x110db9
movq %rax, (%rsi)
leaq 0xf7446(%rip), %rax     # 0x110dc5
movq %rax, 0x8(%rsi)
leaq 0x10(%rip), %rax        # 0x1999a
movq %rax, 0x18(%rsi)
leaq 0x137(%rip), %rax       # 0x19acc
movq %rax, 0x20(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/abk.c
// Function: de_run_amos_source
static void de_run_amos_source(deark *c, de_module_params *mparams)
{
	lctx *d = NULL;
	i64 basic_len;
	i64 pos;
	i64 nbanks;

	d = de_malloc(c, sizeof(lctx));

	pos = 16;
	basic_len = de_getu32be(pos);
	pos += 4;
	de_dbg(c, "BASIC code at %"I64_FMT", len=%"I64_FMT, pos, basic_len);
	pos += basic_len;
	if(pos >= c->infile->len) goto done;
	if(dbuf_memcmp(c->infile, pos, "AmBs", 4)) {
		de_err(c, "AmBs segment not found, expected at offset %"I64_FMT, pos);
		goto done;
	}

	de_dbg(c, "AmBs segment at %"I64_FMT, pos);
	nbanks = de_getu16be(pos+4);
	de_dbg_indent(c, 1);
	de_dbg(c, "number of banks: %d", (int)nbanks);
	if(nbanks>0 || c->extract_level>=2) {
		dbuf_create_file_from_slice(c->infile, pos, c->infile->len-pos, "AmBs.abk", NULL, 0);
	}
	else {
		de_dbg(c, "not extracting empty AmBs segment");
	}
	de_dbg_indent(c, -1);


done:
	de_free(c, d);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x8, %esi
callq 0xe8b2b
movq %rax, %r14
movq 0x18(%rbx), %rdi
movl $0x10, %esi
callq 0xeed0d
movq %rax, %r12
leaq 0xf786f(%rip), %rsi     # 0x111239
movl $0x14, %edx
movq %rbx, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0xe8617
leaq 0x14(%r12), %r15
movq 0x18(%rbx), %rdi
cmpq 0x18(%rdi), %r15
jge 0x19aa3
leaq 0xf785e(%rip), %rdx     # 0x111254
movl $0x4, %ecx
movq %r15, %rsi
callq 0xefc85
testl %eax, %eax
je 0x19a20
leaq 0xf784b(%rip), %rsi     # 0x111259
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xe9295
jmp 0x19aa3
leaq 0xf7861(%rip), %rsi     # 0x111288
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
addq $0x18, %r12
movq %r12, %rsi
callq 0xeeb67
movq %rax, %r12
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
leaq 0xf777d(%rip), %rsi     # 0x1111d8
movq %rbx, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0xe8617
testq %r12, %r12
jg 0x19a76
cmpl $0x2, 0x90(%rbx)
jl 0x19ab9
movq 0x18(%rbx), %rdi
movq 0x18(%rdi), %rdx
subq %r15, %rdx
leaq 0xf7814(%rip), %rcx     # 0x11129c
movq %r15, %rsi
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xefd48
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xe8be2
leaq 0xf77e5(%rip), %rsi     # 0x1112a5
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
jmp 0x19a96
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/abk.c
// Function: de_identify_amos_source
static int de_identify_amos_source(deark *c)
{
	u8 b[10];
	int ext_bonus = 0;

	if(de_input_file_has_ext(c, "amos")) ext_bonus=20;

	de_read(b, 0, 10);
	if(!de_memcmp(b, "AMOS Basic", 10))
		return 80+ext_bonus;
	if(!de_memcmp(b, "AMOS Pro", 8))
		return 80+ext_bonus;
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
leaq 0xf77e8(%rip), %rsi     # 0x1112c7
callq 0xea491
testl %eax, %eax
movl $0x50, %eax
movl $0x64, %ebx
cmovel %eax, %ebx
movq 0x18(%r14), %rdi
xorl %r15d, %r15d
leaq 0x6(%rsp), %r14
movl $0xa, %ecx
movq %r14, %rsi
xorl %edx, %edx
callq 0xee8d4
movabsq $0x73614220534f4d41, %rax # imm = 0x73614220534F4D41
xorq (%r14), %rax
movzwl 0x8(%r14), %ecx
xorq $0x6369, %rcx           # imm = 0x6369
orq %rax, %rcx
je 0x19b42
movabsq $0x6f725020534f4d41, %rax # imm = 0x6F725020534F4D41
cmpq %rax, 0x6(%rsp)
cmovel %ebx, %r15d
movl %r15d, %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/abk.c
// Function: do_read_sprite_or_pic_palette
static void do_read_sprite_or_pic_palette(deark *c, lctx *d, struct amosbank *bk)
{
	i64 k;
	UI n;
	u8 cr, cg, cb;
	u8 cr1, cg1, cb1;
	i64 pos;
	i64 colors_used;
	char tmps[64];

	pos = bk->pal_pos;
	de_dbg(c, "palette at %"I64_FMT, pos);
	de_dbg_indent(c, 1);

	colors_used = de_pow2(bk->max_planes);

	for(k=0; k<32; k++) {
		n = (UI)dbuf_getu16be(bk->f, pos+k*2);
		cr1 = (u8)((n>>8)&0xf);
		cg1 = (u8)((n>>4)&0xf);
		cb1 = (u8)(n&0xf);
		cr = cr1*17;
		cg = cg1*17;
		cb = cb1*17;
		bk->pal[k] = DE_MAKE_RGB(cr, cg, cb);
		de_snprintf(tmps, sizeof(tmps), "0x%04x (%2d,%2d,%2d) "DE_CHAR_RIGHTARROW" ",
			n, (int)cr1, (int)cg1, (int)cb1);
		de_dbg_pal_entry2(c, k, bk->pal[k], tmps, NULL,
			(k>=colors_used)?" [unused]":"");

		// Set up colors #32-63 for 6-plane "Extra Half-Brite" mode.
		// For normal images (<=5 planes), these colors won't be used.
		bk->pal[k+32] = DE_MAKE_RGB(cr/2, cg/2, cb/2);
	}

	bk->pal[0] = DE_SET_ALPHA(bk->pal[0], 0); // First color is transparent.
	// (Don't know if pal[32] should be transparent also.)

	de_dbg_indent(c, -1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x68(%rsi), %r12
leaq 0x11be87(%rip), %rsi    # 0x1365eb
movq %r12, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, 0x18(%rsp)
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq %r14, 0x10(%rsp)
movq 0x488(%r14), %rdi
callq 0xe9c9b
movq %rax, 0x20(%rsp)
xorl %r13d, %r13d
movq 0x10(%rsp), %r15
movq %r12, 0x28(%rsp)
movq 0x50(%r15), %rdi
movq %r12, %rsi
callq 0xeeb67
movl %eax, %ebx
shrl $0x8, %ebx
andl $0xf, %ebx
movl %eax, %r12d
shrl $0x4, %r12d
movl %eax, %ecx
andl $0xf, %ecx
andl $0xf, %r12d
movl %ecx, %ebp
shll $0x4, %ebp
orl %ecx, %ebp
imull $0x110000, %ebx, %edx   # imm = 0x110000
imull $0x1100, %r12d, %esi    # imm = 0x1100
orl %edx, %esi
orl %ebp, %esi
movl $0xff000000, %edx       # imm = 0xFF000000
orl %edx, %esi
movl %esi, 0x70(%r15,%r13,4)
movl %ecx, (%rsp)
movl $0x40, %esi
leaq 0x30(%rsp), %r14
movq %r14, %rdi
leaq 0xf678f(%rip), %rdx     # 0x110f91
movl %eax, %ecx
movl %ebx, %r8d
movl %r12d, %r9d
xorl %eax, %eax
callq 0xe8193
movl 0x70(%r15,%r13,4), %edx
cmpq 0x20(%rsp), %r13
leaq 0xf6789(%rip), %r9      # 0x110fab
leaq 0x12a887(%rip), %rax    # 0x1450b0
cmovlq %rax, %r9
movq 0x18(%rsp), %rdi
movq %r13, %rsi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0xe90a3
imull $0x88000, %ebx, %eax    # imm = 0x88000
andl $0x7f0000, %eax         # imm = 0x7F0000
imull $0x880, %r12d, %ecx     # imm = 0x880
movq 0x28(%rsp), %r12
andl $0x7f00, %ecx           # imm = 0x7F00
shrl %ebp
orl %ecx, %ebp
orl %eax, %ebp
movl $0xff000000, %eax       # imm = 0xFF000000
orl %eax, %ebp
movl %ebp, 0xf0(%r15,%r13,4)
incq %r13
addq $0x2, %r12
cmpq $0x20, %r13
jne 0x1a79e
movq 0x10(%rsp), %rax
movb $0x0, 0x73(%rax)
movq 0x18(%rsp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/abk.c
// Function: is_amos_picture_file
static int is_amos_picture_file(deark *c, UI sig)
{
	UI x;
	i64 picpos;

	if(is_scr_hdr_id(sig)) {
		picpos = 90;
	}
	else if(sig==AMOS_PIC_HDR_ID) {
		// Need to be careful here, because some STOS formats also
		// start this way.
		picpos = 0;
	}
	else {
		return 0;
	}

	x = (UI)de_getu32be(picpos);
	if(x!=AMOS_PIC_HDR_ID) return 0;
	x = (UI)de_getu16be(picpos+14); // # bitplanes
	if(x>=1 && x<=6) {
		return 1;
	}
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
movl $0x5a, %r15d
xorl %ebx, %ebx
cmpl $0x1203008f, %esi       # imm = 0x1203008F
jg 0x1ab35
cmpl $0x31990, %esi          # imm = 0x31990
je 0x1ab45
cmpl $0x6071963, %esi        # imm = 0x6071963
jne 0x1ab72
xorl %r15d, %r15d
jmp 0x1ab45
cmpl $0x12030090, %esi       # imm = 0x12030090
je 0x1ab45
cmpl $0x12031990, %esi       # imm = 0x12031990
jne 0x1ab72
movq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0xeed0d
cmpl $0x6071963, %eax        # imm = 0x6071963
jne 0x1ab72
movq 0x18(%r14), %rdi
addq $0xe, %r15
movq %r15, %rsi
callq 0xeeb67
decl %eax
xorl %ebx, %ebx
cmpl $0x6, %eax
setb %bl
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/alphabmp.c
// Function: de_module_alphabmp
void de_module_alphabmp(deark *c, struct deark_module_info *mi)
{
	mi->id = "alphabmp";
	mi->desc = "Alpha Microsystems BMP";
	mi->run_fn = de_run_alphabmp;
	mi->identify_fn = de_identify_alphabmp;
}

// Assembly:
leaq 0xf675d(%rip), %rax     # 0x1112e0
movq %rax, (%rsi)
leaq 0xf675c(%rip), %rax     # 0x1112e9
movq %rax, 0x8(%rsi)
leaq 0x10(%rip), %rax        # 0x1aba8
movq %rax, 0x18(%rsi)
leaq 0x499(%rip), %rax       # 0x1b03c
movq %rax, 0x20(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/amigaicon.c
// Function: de_module_amigaicon
void de_module_amigaicon(deark *c, struct deark_module_info *mi)
{
	mi->id = "amigaicon";
	mi->desc = "Amiga Workbench icon (.info), NewIcons, GlowIcons";
	mi->run_fn = de_run_amigaicon;
	mi->identify_fn = de_identify_amigaicon;
}

// Assembly:
leaq 0xf6398(%rip), %rax     # 0x111417
movq %rax, (%rsi)
leaq 0xf6398(%rip), %rax     # 0x111421
movq %rax, 0x8(%rsi)
leaq 0x10(%rip), %rax        # 0x1b0a4
movq %rax, 0x18(%rsi)
leaq 0xfa1(%rip), %rax       # 0x1c040
movq %rax, 0x20(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/amigaicon.c
// Function: do_newicons_process_bit
static void do_newicons_process_bit(deark *c, lctx *d, dbuf *f, u8 b)
{
	UI nbits_needed;

	de_bitbuf_lowlevel_add_bits(&d->newicons_bbll, (u64)b, 1);

	// If line_count==0, we're still reading palette samples, which are always 8 bits.
	nbits_needed = (d->newicons_finished_pal==0) ? 8 : d->newicons_bits_per_pixel;

	if(d->newicons_bbll.nbits_in_bitbuf >= nbits_needed) {
		UI x;

		x = (UI)de_bitbuf_lowlevel_get_bits(&d->newicons_bbll, nbits_needed);
		if(x>255 && d->newicons_finished_pal) {
			// For now at least, we only support 9-bit images if they don't
			// actually use the 9th bit.
			d->newicons_largepalentry_flag = 1;
		}
		dbuf_writebyte(f, (u8)x);
		d->newicons_bbll.nbits_in_bitbuf = 0;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x58(%rdi), %r15
movl %edx, %esi
movq %r15, %rdi
movl $0x1, %edx
callq 0xf1b31
cmpb $0x0, 0x54(%rbx)
je 0x1c08f
movl 0x50(%rbx), %esi
jmp 0x1c094
movl $0x8, %esi
cmpl %esi, 0x5c(%rbx)
jb 0x1c0c4
movq %r15, %rdi
callq 0xf1b93
testl $0xffffff00, %eax       # imm = 0xFFFFFF00
je 0x1c0b2
cmpb $0x0, 0x54(%rbx)
je 0x1c0b2
movb $0x1, 0x55(%rbx)
movzbl %al, %esi
movq %r14, %rdi
callq 0xf0bd6
movl $0x0, 0x5c(%rbx)
popq %rbx
popq %r14
popq %r15
retq