LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/signal.c
// Function: sigchk
extern void sigchk() {
	void (*h)(int);
	int s, i;

	if (sigcount == 0)
		return; /* ho hum; life as usual */
	if (forked)
		exit(1); /* exit unconditionally on a signal in a child process */
	for (i = 0, s = -1; i < NUMOFSIGNALS; i++)
		if (caught[i] != 0) {
			s = i;
			--sigcount;
			caught[s] = 0;
			break;
		}
	if (s == -1)
		panic("all-zero sig vector with nonzero sigcount");
	if ((h = sighandlers[s]) == SIG_DFL)
		panic("caught signal set to SIG_DFL");
	if (h == SIG_IGN)
		panic("caught signal set to SIG_IGN");
	(*h)(s);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpl $0x0, 0xeaa8(%rip)      # 0x1a594
je 0xbb20
leaq 0xf4d3(%rip), %rax      # 0x1afc8
cmpl $0x0, (%rax)
jne 0xbb87
leaq 0xe98b(%rip), %rax      # 0x1a490
xorl %ebx, %ebx
cmpl $0x0, (%rax)
jne 0xbb28
incq %rbx
addq $0x4, %rax
cmpq $0x41, %rbx
jne 0xbb07
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0xbb34
addq $0x8, %rsp
popq %rbx
popq %r14
retq
decl 0xea66(%rip)            # 0x1a594
movl $0x0, (%rax)
cmpl $-0x1, %ebx
jne 0xbb45
leaq 0x8769(%rip), %rdi      # 0x142a9
callq 0xc83e
movslq %ebx, %rax
leaq 0xea51(%rip), %rcx      # 0x1a5a0
movq (%rcx,%rax,8), %rax
testq %rax, %rax
je 0xbb6a
cmpq $0x1, %rax
jne 0xbb7c
movq %rax, %r14
leaq 0x8788(%rip), %rdi      # 0x142f0
jmp 0xbb74
movq %rax, %r14
leaq 0x875f(%rip), %rdi      # 0x142d3
callq 0xc83e
movq %r14, %rax
movl %ebx, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rax
movl $0x1, %edi
callq 0x3330
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/signal.c
// Function: rc_signal
extern void (*rc_signal(int s, void (*h)(int)))(int) {
	void (*old)(int);
	sigchk();
	old = sighandlers[s];
	sighandlers[s] = h;
	if (h == SIG_DFL || h == SIG_IGN)
		sys_signal(s, h);
	else
		sys_signal(s, catcher);
	return old;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movl %edi, %ebp
callq 0xbae1
movslq %ebp, %rax
leaq 0xe9f7(%rip), %rcx      # 0x1a5a0
movq (%rcx,%rax,8), %rbx
movq %r14, (%rcx,%rax,8)
cmpq $0x1, %r14
ja 0xbbbe
movl %ebp, %edi
movq %r14, %rsi
jmp 0xbbc7
leaq -0x10d(%rip), %rsi      # 0xbab8
movl %ebp, %edi
callq 0xba6c
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/signal.c
// Function: initsignal
extern void initsignal() {
	void (*h)(int);
	int i;

	/* Ensure that SIGCHLD is not SIG_IGN.  Solaris's rshd does this.  :-( */
	h = sys_signal(SIGCHLD, SIG_IGN);
	if (h != SIG_IGN && h != SIG_ERR)
		sys_signal(SIGCHLD, h);
	else
		sys_signal(SIGCHLD, SIG_DFL);

	for (i = 1; i < NUMOFSIGNALS; i++) {
#ifdef SIGKILL
		if (i == SIGKILL) continue;
#endif
#ifdef SIGSTOP
		if (i == SIGSTOP) continue;
#endif
		h = sys_signal(i, SIG_IGN);
		if (h != SIG_IGN && h != SIG_ERR)
			sys_signal(i, h);
		sighandlers[i] = h;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl $0x1, %esi
movl $0x11, %edi
callq 0xba6c
cmpq $0x1, %rax
je 0xbbf4
cmpq $-0x1, %rax
jne 0xbbf6
xorl %eax, %eax
movl $0x11, %edi
movq %rax, %rsi
callq 0xba6c
movl $0x1, %ebx
leaq 0xe991(%rip), %r15      # 0x1a5a0
cmpl $0x9, %ebx
je 0xbc42
cmpl $0x13, %ebx
je 0xbc42
movl $0x1, %esi
movl %ebx, %edi
callq 0xba6c
movq %rax, %r14
cmpq $-0x1, %rax
je 0xbc3e
cmpq $0x1, %r14
je 0xbc3e
movl %ebx, %edi
movq %r14, %rsi
callq 0xba6c
movq %r14, (%r15,%rbx,8)
incq %rbx
cmpq $0x41, %rbx
jne 0xbc0f
popq %rbx
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/status.c
// Function: istrue
extern int istrue() {
	int i;
	for (i = 0; i < pipelength; i++)
		if (statuses[i] != 0)
			return FALSE;
	return TRUE;
}

// Assembly:
movslq 0xdb05(%rip), %rcx      # 0x19760
movl $0x1, %eax
testq %rcx, %rcx
jle 0xbc81
shlq $0x2, %rcx
xorl %edx, %edx
leaq 0xeb3e(%rip), %rsi      # 0x1a7b0
cmpl $0x0, (%rdx,%rsi)
jne 0xbc82
addq $0x4, %rdx
cmpq %rdx, %rcx
jne 0xbc72
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/status.c
// Function: getstatus
extern int getstatus() {
	int s;
	if (pipelength > 1)
		return !istrue();
	s = statuses[0];
	if (WIFSIGNALED(s))
		return 1;
	return WEXITSTATUS(s);
}

// Assembly:
movslq 0xdad4(%rip), %rax      # 0x19760
cmpq $0x2, %rax
jl 0xbcb1
shlq $0x2, %rax
xorl %ecx, %ecx
leaq 0xeb11(%rip), %rdx      # 0x1a7b0
cmpl $0x0, (%rcx,%rdx)
jne 0xbcd6
addq $0x4, %rcx
cmpq %rcx, %rax
jne 0xbc9f
xorl %eax, %eax
retq
movl 0xeaf9(%rip), %ecx      # 0x1a7b0
movl %ecx, %edx
andl $0x7f, %edx
shll $0x18, %edx
addl $0x1000000, %edx        # imm = 0x1000000
movl $0x1, %eax
cmpl $0x1ffffff, %edx        # imm = 0x1FFFFFF
jg 0xbcd5
movzbl %ch, %eax
retq
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/status.c
// Function: statprint
static void statprint(pid_t pid, int i) {
	int t = WIFSIGNALED(i) ? WTERMSIG(i) : 0;
	const char *core = ((t > 0) && myWIFDUMPED(i) ? "--core dumped" : "");
	if ((interactive && pid != -1) || (t > 0 && (*core || (t != SIGINT && t != SIGPIPE)))) {
		if (pid != -1)
			fprint(2, "%ld: ", (long)pid);
		if (t == 0)
			fprint(2, "done (%d)\n", WEXITSTATUS(i));
		else if ((t > 0) && (t < NUMOFSIGNALS) && *signals[t].msg != '\0')
			fprint(2, "%s%s\n", signals[t].msg, core);
		else
			fprint(2, "unknown signal %d%s\n", t, core);
	}
	if (i != 0 && dashee && !cond)
		rc_exit(getstatus());
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %eax
andl $0x7f, %eax
movl %eax, %ecx
shll $0x18, %ecx
addl $0x1000000, %ecx        # imm = 0x1000000
xorl %ebp, %ebp
cmpl $0x2000000, %ecx        # imm = 0x2000000
cmovgel %eax, %ebp
testl %ebp, %ebp
leaq 0x85f2(%rip), %rbx      # 0x1432a
leaq 0x4098(%rip), %rax      # 0xfdd7
cmoveq %rax, %rbx
movl %esi, %r14d
testb %sil, %sil
cmovnsq %rax, %rbx
cmpl $-0x1, %edi
je 0xbd5e
leaq 0xde7b(%rip), %rax      # 0x19bd4
cmpl $0x0, (%rax)
jne 0xbd6f
testl %ebp, %ebp
je 0xbdf4
cmpb $0x0, (%rbx)
je 0xbe26
cmpl $-0x1, %edi
je 0xbd8a
movslq %edi, %rdx
leaq 0x85ba(%rip), %rsi      # 0x14338
movl $0x2, %edi
xorl %eax, %eax
callq 0xb06f
testl %ebp, %ebp
je 0xbddb
cmpl $0x40, %ebp
ja 0xbdc1
movl %ebp, %eax
shll $0x4, %eax
leaq 0xd5b1(%rip), %rcx      # 0x19350
movq 0x8(%rcx,%rax), %rdx
cmpb $0x0, (%rdx)
je 0xbdc1
leaq 0x8599(%rip), %rsi      # 0x14349
movl $0x2, %edi
movq %rbx, %rcx
xorl %eax, %eax
callq 0xb06f
jmp 0xbdf4
leaq 0x8587(%rip), %rsi      # 0x1434f
movl $0x2, %edi
movl %ebp, %edx
movq %rbx, %rcx
xorl %eax, %eax
callq 0xb06f
jmp 0xbdf4
movl %r14d, %eax
movzbl %ah, %edx
leaq 0x8556(%rip), %rsi      # 0x1433e
movl $0x2, %edi
xorl %eax, %eax
callq 0xb06f
testl %r14d, %r14d
je 0xbe21
leaq 0xddcc(%rip), %rax      # 0x19bcc
cmpl $0x0, (%rax)
je 0xbe21
leaq 0xf1cc(%rip), %rax      # 0x1afd8
cmpl $0x0, (%rax)
jne 0xbe21
callq 0xbc85
movl %eax, %edi
popq %rbx
popq %r14
popq %rbp
jmp 0x4fb5
popq %rbx
popq %r14
popq %rbp
retq
cmpl $0x2, %ebp
je 0xbdf4
cmpl $0xd, %ebp
je 0xbdf4
jmp 0xbd6f
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/status.c
// Function: sgetstatus
extern List *sgetstatus() {
	List *r = NULL;
	int i;

	for (i = 0; i < pipelength; i++) {
		List *q = nnew(List);
		q->w = strstatus(statuses[i]);
		q->m = NULL;
		q->n = r;
		r = q;
	}

	return r;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x0, 0xd8ff(%rip)      # 0x19760
jle 0xbeac
leaq 0xe946(%rip), %r14      # 0x1a7b0
xorl %r15d, %r15d
xorl %r12d, %r12d
movl $0x18, %edi
callq 0x9f28
movq %rax, %rbx
movl (%r14), %edi
callq 0xbebd
movq %rax, (%rbx)
movq $0x0, 0x8(%rbx)
movq %r12, 0x10(%rbx)
incq %r15
movslq 0xd8c2(%rip), %rax      # 0x19760
addq $0x4, %r14
movq %rbx, %r12
cmpq %rax, %r15
jl 0xbe70
jmp 0xbeae
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/status.c
// Function: strstatus
extern char *strstatus(int s) {
	if (WIFSIGNALED(s)) {
		int t = WTERMSIG(s);
		const char *core = myWIFDUMPED(s) ? "+core" : "";
		if ((t > 0) && (t < NUMOFSIGNALS) && *signals[t].name != '\0')
			return nprint("%s%s", signals[t].name, core);
		else
			return nprint("-%d%s", t, core); /* unknown signals are negated */
	} else
		return nprint("%d", WEXITSTATUS(s));
}

// Assembly:
movl %edi, %eax
movl %edi, %esi
andl $0x7f, %esi
movl %esi, %ecx
shll $0x18, %ecx
addl $0x1000000, %ecx        # imm = 0x1000000
cmpl $0x2000000, %ecx        # imm = 0x2000000
jl 0xbf19
testb %al, %al
leaq 0x3ef7(%rip), %rax      # 0xfdd7
leaq 0x8426(%rip), %rdx      # 0x1430d
cmovnsq %rax, %rdx
leal -0x1(%rsi), %eax
cmpl $0x3f, %eax
ja 0xbf2a
movl %esi, %eax
shll $0x4, %eax
leaq 0xd451(%rip), %rcx      # 0x19350
movq (%rcx,%rax), %rax
cmpb $0x0, (%rax)
je 0xbf2a
leaq 0x8404(%rip), %rdi      # 0x14313
movq %rax, %rsi
xorl %eax, %eax
jmp 0xb274
movzbl %ah, %esi
leaq 0x3882(%rip), %rdi      # 0xf7a5
xorl %eax, %eax
jmp 0xb274
leaq 0x83e7(%rip), %rdi      # 0x14318
xorl %eax, %eax
jmp 0xb274
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/status.c
// Function: ssetstatus
extern void ssetstatus(char **av) {
	int i, j, k, l;
	bool found;
	for (l = 0; av[l] != NULL; l++)
		; /* count up array length */
	--l;
	for (i = 0; av[i] != NULL; i++) {
		j = a2u(av[i]);
		if (j >= 0) {
			statuses[l - i] = j << 8;
			continue;
		}
		found = FALSE;
		for (k = 0; k < NUMOFSIGNALS; k++) {
			if (streq(signals[k].name, av[i])) {
				statuses[l - i] = k;
				found = TRUE;
				break;
			}
			else {
				size_t len = strlen(signals[k].name);
				if (strncmp(signals[k].name, av[i], len) == 0 && streq(av[i] + len, "+core")) {
					statuses[l - i] = k + 0x80;
					found = TRUE;
					break;
				}
			}
		}
		if (!found) {
			fprint(2, "bad status\n");
			set(FALSE);
			return;
		}
	}
	pipelength = i;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
xorl %eax, %eax
cmpq $0x0, (%rbx,%rax,8)
leaq 0x1(%rax), %rax
jne 0xbf4b
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xc099
addl $-0x2, %eax
movslq %eax, %r13
xorl %r14d, %r14d
movq %rbx, 0x10(%rsp)
movq %r13, 0x8(%rsp)
movl $0xa, %esi
callq 0xc890
testl %eax, %eax
js 0xbfa0
movl %eax, %r15d
shll $0x8, %r15d
movq %r13, %rax
subq %r14, %rax
leaq 0xe819(%rip), %rcx      # 0x1a7b0
movl %r15d, (%rcx,%rax,4)
jmp 0xc072
movq (%rbx,%r14,8), %r12
movb (%r12), %bl
movq %r14, 0x18(%rsp)
subq %r14, %r13
movq %r13, 0x20(%rsp)
xorl %r15d, %r15d
leaq 0xd391(%rip), %r14      # 0x19350
movl $0x0, 0x4(%rsp)
movq (%r14), %r13
cmpb %bl, (%r13)
jne 0xbfe3
movq %r13, %rdi
movq %r12, %rsi
callq 0x31f0
testl %eax, %eax
je 0xc085
movq %r13, %rdi
callq 0x30f0
movq %rax, %rbp
movq %r13, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x3060
movb $0x1, %r13b
testl %eax, %eax
jne 0xc042
cmpb $0x2b, (%r12,%rbp)
jne 0xc042
addq %r12, %rbp
movq %rbp, %rdi
leaq 0x82f6(%rip), %rsi      # 0x1430d
callq 0x31f0
testl %eax, %eax
jne 0xc042
movl %r15d, %eax
orl $0x80, %eax
leaq 0xe781(%rip), %rcx      # 0x1a7b0
movq 0x20(%rsp), %rdx
movl %eax, (%rcx,%rdx,4)
movl $0x1, 0x4(%rsp)
xorl %r13d, %r13d
testb %r13b, %r13b
je 0xc05c
leaq 0x1(%r15), %rax
addq $0x10, %r14
cmpq $0x40, %r15
movq %rax, %r15
jb 0xbfc7
cmpl $0x0, 0x4(%rsp)
movq 0x10(%rsp), %rbx
movq 0x18(%rsp), %r14
movq 0x8(%rsp), %r13
je 0xc0b2
movq 0x8(%rbx,%r14,8), %rdi
incq %r14
testq %rdi, %rdi
jne 0xbf75
jmp 0xc09c
movq 0x10(%rsp), %rbx
movq 0x18(%rsp), %r14
movq 0x8(%rsp), %r13
jmp 0xbf8a
xorl %r14d, %r14d
movl %r14d, 0xd6bd(%rip)     # 0x19760
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8265(%rip), %rsi      # 0x1431e
movl $0x2, %edi
xorl %eax, %eax
callq 0xb06f
movl $0x1, 0xd691(%rip)      # 0x19760
movl $0x100, 0xe6d7(%rip)    # imm = 0x100
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl $0x100, %esi            # imm = 0x100
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xbd10
nop
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/system.c
// Function: writeall
extern void writeall(int fd, char *buf, size_t remain) {
	int i;

	for (i = 0; remain > 0; buf += i, remain -= i)
		if ((i = write(fd, buf, remain)) <= 0)
			break; /* abort silently on errors in write() */
	sigchk();
}

// Assembly:
testq %rdx, %rdx
je 0xbae1
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
movl %ebp, %edi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x30c0
testl %eax, %eax
jle 0xc12b
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
addq %rax, %r14
subq %rax, %rbx
jne 0xc10d
popq %rbx
popq %r14
popq %rbp
jmp 0xbae1
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/utils.c
// Function: pr_error
extern void pr_error(char *s, int offset) {
	if (s != NULL) {
		if (interactive)
			fprint(2, RC "%s\n", s);
		else
			fprint(2, RC "line %d: %s\n", lineno + offset, s);
	}
}

// Assembly:
testq %rdi, %rdi
je 0xc7ce
movq %rdi, %rcx
leaq 0xd421(%rip), %rax      # 0x19bd4
cmpl $0x0, (%rax)
je 0xc7cf
leaq 0x3535(%rip), %rsi      # 0xfcf4
movl $0x2, %edi
movq %rcx, %rdx
xorl %eax, %eax
jmp 0xb06f
retq
movl %esi, %edx
leaq 0xd3c0(%rip), %rax      # 0x19b98
addl (%rax), %edx
leaq 0x7d5c(%rip), %rsi      # 0x1453d
movl $0x2, %edi
xorl %eax, %eax
jmp 0xb06f
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/utils.c
// Function: uerror
extern void uerror(char *s) {
	char *err;

	err = strerror(errno);
	if (!err) err = "unknown error";

	if (s)
		fprint(2, RC "%s: %s\n", s, err);
	else
		fprint(2, RC "%s\n", err);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x3040
movl (%rax), %edi
callq 0x3360
testq %rax, %rax
leaq 0x7d47(%rip), %rcx      # 0x1454e
cmovneq %rax, %rcx
testq %rbx, %rbx
je 0xc827
leaq 0x7d45(%rip), %rsi      # 0x1455c
movl $0x2, %edi
movq %rbx, %rdx
xorl %eax, %eax
popq %rbx
jmp 0xb06f
leaq 0x34c6(%rip), %rsi      # 0xfcf4
movl $0x2, %edi
movq %rcx, %rdx
xorl %eax, %eax
popq %rbx
jmp 0xb06f
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/utils.c
// Function: panic
extern void panic(char *s) {
	write(2, PANICMSG, conststrlen(PANICMSG));
	write(2, s, strlen(s));
	write(2, "!\n", 2);
	exit(1);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x7d1f(%rip), %rsi      # 0x14568
movl $0xa, %edx
movl $0x2, %edi
callq 0x30c0
movq %rbx, %rdi
callq 0x30f0
movl $0x2, %edi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x30c0
leaq 0x7cfc(%rip), %rsi      # 0x14573
movl $0x2, %edx
movl $0x2, %edi
callq 0x30c0
movl $0x1, %edi
callq 0x3330
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/utils.c
// Function: n2u
extern int n2u(char *s, unsigned int base) {
	unsigned int i;
	for (i = 0; *s != '\0'; s++) {
		unsigned int j = (unsigned int) *s - '0';
		if (j >= base) /* small hack with unsigned ints -- one compare for range test */
			return -1;
		i = i * base + j;
	}
	return (int) i;
}

// Assembly:
movb (%rdi), %cl
testb %cl, %cl
je 0xc8b4
incq %rdi
xorl %eax, %eax
movsbl %cl, %ecx
addl $-0x30, %ecx
cmpl %esi, %ecx
jae 0xc8b7
imull %esi, %eax
addl %ecx, %eax
movb (%rdi), %cl
incq %rdi
testb %cl, %cl
jne 0xc89b
retq
xorl %eax, %eax
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/var.c
// Function: varassign
extern void varassign(char *name, List *def, bool stack) {
	Variable *new;
	List *newdef = listcpy(def, ealloc); /* important to do the listcpy first; get_var_place() frees old values */
	new = get_var_place(name, stack);
	new->def = newdef;
	new->extdef = NULL;
	set_exportable(name, TRUE);
	if (streq(name, "TERM") || streq(name, "TERMCAP"))
		termchange();
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %rax
movq %rdi, %rbx
leaq -0x2867(%rip), %rsi     # 0xa0c4
movq %rax, %rdi
callq 0x9740
movq %rax, %r14
movq %rbx, %rdi
movl %ebp, %esi
callq 0x7679
movq %r14, (%rax)
movq $0x0, 0x8(%rax)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x79f2
movb (%rbx), %bpl
cmpb $0x54, %bpl
jne 0xc98d
leaq 0x7c0e(%rip), %rsi      # 0x14576
movq %rbx, %rdi
callq 0x31f0
testl %eax, %eax
je 0xc992
cmpb $0x54, %bpl
jne 0xc98d
leaq 0x7bfa(%rip), %rsi      # 0x1457b
movq %rbx, %rdi
callq 0x31f0
testl %eax, %eax
je 0xc992
popq %rbx
popq %r14
popq %rbp
retq
popq %rbx
popq %r14
popq %rbp
jmp 0x8337
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/var.c
// Function: varassign_string
extern bool varassign_string(char *extdef) {
	static bool aliasset[arraysize(aliases)] = {
		FALSE, FALSE, FALSE, FALSE, FALSE, FALSE
	};
	char *name = get_name(extdef);
	Variable *new;
	int i;
	if (name == NULL)
		return FALSE; /* add it to bozo env */
	if ((i = hasalias(name)) != -1) {
		aliasset[i] = TRUE;
		i ^= 1;			 	/* set i to the "opposite" case subscript and */
		if (i&1 && aliasset[i])		/* don't alias variables that are already set in upper case */
			return TRUE;
	}
	new = get_var_place(name, FALSE);
	new->def = NULL;
	new->extdef = ealloc(strlen(extdef) + 1);
	strcpy(new->extdef, extdef);
	if (i != -1)
		alias(name, varlookup(name), FALSE);
	set_exportable(name, TRUE);
	return TRUE;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x5277
testq %rax, %rax
je 0xc9ed
movq %rax, %rbx
movq %rax, %rdi
callq 0xca66
cmpl $-0x1, %eax
je 0xc9f2
movl %eax, %ebp
movl %eax, %ecx
movslq %eax, %rdx
leaq 0xe5e3(%rip), %rax      # 0x1afb0
movl $0x1, (%rax,%rdx,4)
xorl $0x1, %ebp
testb $0x1, %cl
jne 0xc9f7
movslq %ebp, %rcx
movl $0x1, %r15d
cmpl $0x0, (%rax,%rcx,4)
jne 0xca58
jmp 0xc9f7
xorl %r15d, %r15d
jmp 0xca58
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq %rbx, %rdi
xorl %esi, %esi
callq 0x7679
movq %rax, %r15
movq $0x0, (%rax)
movq %r14, %rdi
callq 0x30f0
leaq 0x1(%rax), %rdi
callq 0xa0c4
movq %rax, 0x8(%r15)
movq %rax, %rdi
movq %r14, %rsi
callq 0x3070
cmpl $-0x1, %ebp
je 0xca45
movq %rbx, %rdi
callq 0xcaf4
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0xcaaf
movl $0x1, %r15d
movq %rbx, %rdi
movl $0x1, %esi
callq 0x79f2
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xca66
cmpl $-0x1, %eax
je 0xcaec
movslq %eax, %rcx
leaq 0xc2b4(%rip), %r8       # 0x18d80
xorl $0x1, %eax
cltq
leaq 0xc278(%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_O1/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), %ebp
testl %ebp, %ebp
je 0xcbb3
cmpl $0x73, %ebp
je 0xcb33
cmpl $0x61, %ebp
jne 0xcb4e
leaq 0x2caa(%rip), %rsi      # 0xf7c0
movq %rbx, %rdi
callq 0x31f0
testl %eax, %eax
je 0xcbf8
testl %ebp, %ebp
je 0xcbb3
cmpl $0x73, %ebp
jne 0xcb4e
leaq 0x2c4d(%rip), %rsi      # 0xf787
movq %rbx, %rdi
callq 0x31f0
testl %eax, %eax
je 0xcbed
testl %ebp, %ebp
je 0xcbb3
movq %rbx, %rdi
movl $0xa, %esi
callq 0xc890
cmpl $-0x1, %eax
je 0xcbb3
movl %eax, %ebp
leaq 0x24f3(%rip), %rdi      # 0xf05c
callq 0xcaf4
movq %rax, %rbx
testq %rax, %rax
sete %al
testl %ebp, %ebp
sete %cl
orb %al, %cl
jne 0xcb95
decl %ebp
movq 0x10(%rbx), %rbx
addl $-0x1, %ebp
setb %al
testq %rbx, %rbx
je 0xcb95
testb %al, %al
jne 0xcb82
testq %rbx, %rbx
je 0xcc0b
movl $0x18, %edi
callq 0x9f28
movq (%rbx), %rcx
movq %rcx, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
jmp 0xcc0d
leaq 0xcf1e(%rip), %rax      # 0x19ad8
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x7385
testq %rax, %rax
je 0xcc0b
movq %rax, %rbx
movq (%rax), %rax
testq %rax, %rax
jne 0xcc0d
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xcc0b
callq 0x534d
testq %rax, %rax
je 0xcc03
movq %rax, (%rbx)
jmp 0xcc0d
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xbe52
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xd183
movq $0x0, 0x8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xceb6(%rip), %rax      # 0x19ad8
movq (%rax), %rsi
callq 0x7385
testq %rax, %rax
je 0xcc5a
movq %rax, %r14
movq 0x8(%rax), %rax
testq %rax, %rax
jne 0xcc5c
movq (%r14), %rdx
testq %rdx, %rdx
je 0xcc5a
leaq 0x7939(%rip), %rdi      # 0x14583
movq %rbx, %rsi
xorl %eax, %eax
callq 0xb181
movq %rax, 0x8(%r14)
jmp 0xcc5c
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xca66
movl %eax, %ebp
cmpb $0x2a, (%r14)
jne 0xcc8d
leaq 0x23db(%rip), %rsi      # 0xf05c
movq %r14, %rdi
callq 0x31f0
orl %ebx, %eax
je 0xccbd
movq %r14, %rdi
movl %ebx, %esi
callq 0x7833
cmpl $-0x1, %ebp
je 0xccb8
xorl $0x1, %ebp
movslq %ebp, %rax
leaq 0xc0a7(%rip), %rcx      # 0x18d50
movq (%rcx,%rax,8), %rdi
movl %ebx, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x7833
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x72ad(%rip), %rdi      # 0x13f71
callq 0xcaf4
leaq 0x238c(%rip), %rdi      # 0xf05c
movq %rax, %rsi
xorl %edx, %edx
popq %rbx
popq %r14
popq %rbp
jmp 0xc918
// File: /workspace/github_c_makefile_star2_O1/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 0x9f28
movq %rax, %r14
movq %r12, (%rax)
cmpq $0x0, (%r15)
je 0xcd4f
movl $0x18, %edi
callq 0x9f28
movq %rax, %r12
movq %rax, 0x10(%r14)
movq (%r15), %rax
movq %rax, (%r12)
cmpq $0x0, 0x8(%r15)
je 0xcd4c
addq $0x10, %r15
movl $0x18, %edi
callq 0x9f28
movq %rax, 0x10(%r12)
movq -0x8(%r15), %rcx
movq %rcx, (%rax)
cmpq $0x0, (%r15)
leaq 0x8(%r15), %r15
movq %rax, %r12
jne 0xcd27
jmp 0xcd4f
movq %r12, %rax
movq $0x0, 0x10(%rax)
leaq 0x22fe(%rip), %rdi      # 0xf05c
movq %r14, %rsi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xc918
// File: /workspace/github_c_makefile_star2_O1/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 0xcdb9
leaq 0x7820(%rip), %rdi      # 0x145ab
leaq 0x781d(%rip), %rdx      # 0x145af
xorl %eax, %eax
callq 0xb274
movq %rsp, %rsi
movq %rax, (%rsi)
movq $0x0, 0x10(%rsi)
movq %r14, %rdi
movl %ebx, %edx
callq 0xc918
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 0xc918
// File: /workspace/github_c_makefile_star2_O1/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 0xce6c
movl %edx, 0x4(%rsp)
movq (%rsi), %r12
movl $0x18, %edi
callq 0x9f28
movq %rax, %rbx
movq %r12, %rdi
movl $0x3a, %esi
callq 0x3120
testq %rax, %rax
je 0xce70
movq %rax, %r13
movq %rbx, %r15
movb $0x0, (%r13)
movq %r12, %rdi
callq 0x30f0
leaq 0x1(%rax), %rdi
callq 0x9f28
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 0x9f28
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 0xce0f
jmp 0xce73
xorl %ebx, %ebx
jmp 0xcea2
movq %rbx, %rbp
movq %r12, %rdi
callq 0x30f0
leaq 0x1(%rax), %rdi
callq 0x9f28
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 0xc918
// File: /workspace/github_c_makefile_star2_O1/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
movl %edi, %ebx
testq %rdx, %rdx
je 0xcf87
movq %rdx, %r14
movb (%r15), %bpl
cmpb $0x2a, %bpl
jne 0xcf00
leaq 0x2175(%rip), %rsi      # 0xf05c
movq %r15, %rdi
callq 0x31f0
testl %eax, %eax
jne 0xcf00
movq 0x10(%r14), %r14
testq %r14, %r14
je 0xcfa8
movl %ebx, 0x4(%rsp)
xorl %r13d, %r13d
leaq 0xbea2(%rip), %rbx      # 0x18db0
leaq 0x767b(%rip), %r12      # 0x14590
movq (%r13,%rbx), %rdi
cmpb %bpl, (%rdi)
jne 0xcf2b
movq %r15, %rsi
callq 0x31f0
testl %eax, %eax
je 0xcf3c
addq $0x8, %r13
cmpq $0x40, %r13
jne 0xcf15
leaq 0x7659(%rip), %r12      # 0x14595
movl 0x4(%rsp), %ebx
movl %ebx, %edi
movq %r12, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0xb06f
cmpq $0x0, 0x10(%r14)
leaq 0x7746(%rip), %rax      # 0x146a1
leaq 0x7637(%rip), %rsi      # 0x14599
cmoveq %rax, %rsi
leaq 0x7604(%rip), %rcx      # 0x14571
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 0xb06f
leaq 0x75fb(%rip), %rsi      # 0x14589
movl %ebx, %edi
movq %r15, %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb06f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/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 %r14
pushq %rbx
pushq %rax
callq 0x3390
testl %eax, %eax
je 0xcfdf
movl %eax, %ebx
cmpl $-0x1, %eax
jne 0xd01e
leaq 0x2433(%rip), %rdi      # 0xf406
callq 0xc7ed
xorl %edi, %edi
callq 0x47be
movl $0x1, 0xdfdf(%rip)      # 0x1afc8
callq 0xbae1
callq 0x47f3
movq 0xdfd6(%rip), %rax      # 0x1afd0
xorl %ebx, %ebx
testq %rax, %rax
je 0xd03f
xorl %edi, %edi
movq %rax, %r14
testq %rdi, %rdi
je 0xd010
callq 0xa095
movq 0x10(%r14), %rax
movq %r14, %rdi
testq %rax, %rax
jne 0xd003
jmp 0xd042
movl $0x18, %edi
callq 0xa0c4
movl %ebx, (%rax)
movq $0x1, 0x8(%rax)
movq 0xdf97(%rip), %rcx      # 0x1afd0
movq %rcx, 0x10(%rax)
jmp 0xd057
xorl %r14d, %r14d
testq %r14, %r14
je 0xd055
movq %r14, %rdi
callq 0xa095
xorl %eax, %eax
xorl %ebx, %ebx
jmp 0xd057
xorl %eax, %eax
movq %rax, 0xdf72(%rip)      # 0x1afd0
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xdf5d(%rip), %rax      # 0x1afd0
testq %rax, %rax
je 0xd0aa
xorl %ecx, %ecx
cmpl $-0x1, %edi
je 0xd083
cmpl %edi, (%rax)
jne 0xd08e
movl $0x1, 0xc(%rax)
incl %ecx
jmp 0xd095
movl $0x0, 0xc(%rax)
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0xd07a
testl %ecx, %ecx
je 0xd0aa
movq %rbx, %rdi
movl %edx, %esi
popq %rbx
jmp 0xd0ce
callq 0x3040
movl $0xa, (%rax)
leaq 0x1fe9(%rip), %rdi      # 0xf0a5
callq 0xc7ed
movl $0x100, (%rbx)          # imm = 0x100
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x7508(%rip), %r14      # 0x145ea
leaq 0xdee7(%rip), %r12      # 0x1afd0
movq 0xdee0(%rip), %rdi      # 0x1afd0
testq %rdi, %rdi
je 0xd117
movq %r12, %rax
cmpl $0x0, 0xc(%rdi)
je 0xd104
cmpl $0x0, 0x8(%rdi)
je 0xd163
movq %rdi, %rax
movq 0x10(%rdi), %rcx
addq $0x10, %rax
movq %rcx, %rdi
testq %rcx, %rcx
jne 0xd0f8
movq %rbx, %rdi
callq 0x3380
movl %eax, %r15d
testl %eax, %eax
js 0xd13d
movq 0xdea3(%rip), %rax      # 0x1afd0
testq %rax, %rax
je 0xd0e9
cmpl %r15d, (%rax)
je 0xd155
movq 0x10(%rax), %rax
jmp 0xd12d
callq 0x3040
cmpl $0xa, (%rax)
jne 0xd14f
movq %r14, %rdi
callq 0xc83e
testl %ebp, %ebp
jne 0xd0e9
jmp 0xd177
movl $0x0, 0x8(%rax)
movl (%rbx), %ecx
movl %ecx, 0x4(%rax)
jmp 0xd0e9
movl (%rdi), %r15d
movl 0x4(%rdi), %ecx
movl %ecx, (%rbx)
movq 0x10(%rdi), %rcx
movq %rcx, (%rax)
callq 0xa095
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xde3e(%rip), %r12      # 0x1afd0
testq %r12, %r12
je 0xd1e1
leaq 0x2607(%rip), %r14      # 0xf7a5
xorl %ebx, %ebx
cmpl $0x0, 0x8(%r12)
je 0xd1d5
movl $0x18, %edi
callq 0x9f28
movq %rax, %r15
movl (%r12), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0xb274
movq %rax, (%r15)
movq $0x0, 0x8(%r15)
movq %rbx, 0x10(%r15)
movq %r15, %rbx
movq 0x10(%r12), %r12
testq %r12, %r12
jne 0xd1a0
jmp 0xd1e3
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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:
pushq %rbx
subq $0x10, %rsp
movq 0xddd2(%rip), %rax      # 0x1afd0
testq %rax, %rax
je 0xd210
movl $0x1, 0xc(%rax)
movq 0x10(%rax), %rax
jmp 0xd1fe
cmpq $0x0, 0xddb8(%rip)      # 0x1afd0
je 0xd25a
leaq 0xc(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0xd0ce
testl %eax, %eax
jle 0xd23a
movl 0xc(%rsp), %esi
movl %eax, %edi
callq 0xbcfe
jmp 0xd24b
xorl %edi, %edi
callq 0xbcdc
callq 0x3040
cmpl $0x4, (%rax)
je 0xd25a
callq 0xbae1
cmpq $0x0, 0xdd78(%rip)      # 0x1afd0
jne 0xd21f
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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
xorl %r14d, %r14d
testq %rdi, %rdi
je 0xd2ce
movl $0xa, %esi
callq 0xc890
testl %eax, %eax
js 0xd391
movq 0xdd3b(%rip), %rcx      # 0x1afd0
testq %rcx, %rcx
je 0xd2ef
xorl %edx, %edx
cmpl %eax, (%rcx)
jne 0xd2ab
movl $0x1, 0xc(%rcx)
incl %edx
jmp 0xd2b7
testq %r14, %r14
jne 0xd2b7
movl $0x0, 0xc(%rcx)
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
jne 0xd29c
testl %edx, %edx
je 0xd2ef
movq 0x8(%rbx,%r14,8), %rdi
incq %r14
jmp 0xd277
cmpl $0x200, %r14d           # imm = 0x200
jb 0xd2ff
leaq 0x72ec(%rip), %rsi      # 0x145ca
movl $0x2, %edi
xorl %eax, %eax
callq 0xb06f
jmp 0xd3a8
movq (%rbx,%r14,8), %rdx
leaq 0x72b7(%rip), %rsi      # 0x145b1
jmp 0xd39c
movl %r14d, %edi
callq 0xbe35
testl %r14d, %r14d
je 0xd3af
leal -0x1(%r14), %eax
movl %eax, 0x8(%rsp)
leaq 0x8(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0xc(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0xd0ce
testl %eax, %eax
jle 0xd36b
decl %r14d
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xd385
movl %eax, %ebp
movq 0x10(%rsp), %r13
movl 0x8(%rsp), %r12d
movl $0xa, %esi
callq 0xc890
cmpl %ebp, %eax
je 0xd377
movq (%r13), %rdi
decl %r12d
addq $0x8, %r13
testq %rdi, %rdi
jne 0xd34b
jmp 0xd385
callq 0x3040
cmpl $0x4, (%rax)
jne 0xd385
jmp 0xd3a8
movl 0xc(%rsp), %edx
movl %r12d, %edi
movl %ebp, %esi
callq 0xbe3c
callq 0xbae1
testl %r14d, %r14d
jg 0xd326
jmp 0xd3af
movq (%rbx,%r14,8), %rdx
leaq 0x1e91(%rip), %rsi      # 0xf22d
movl $0x2, %edi
xorl %eax, %eax
callq 0xb06f
xorl %edi, %edi
callq 0xbcdc
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/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 0xdc6d
movl $0x7, %ebx
leaq 0x28(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movl %ebx, %edi
callq 0x459c
movq 0x8(%rsp), %rdi
movl $0x1, %esi
callq 0xd3c0
movl %ebx, %edi
callq 0x45d0
addq $0xf0, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xbf4d(%rip), %r14      # 0x19bd4
cmpl $0x0, (%r14)
je 0xdc99
leaq 0x4(%rsp), %rsi
xorl %edi, %edi
callq 0x32c0
movl $0x1, %ebx
testl %ebp, %ebp
je 0xdd05
callq 0xcfb8
testl %eax, %eax
je 0xdd05
leaq 0xbe16(%rip), %rcx      # 0x19ac8
movq $0x0, (%rcx)
movq %rsp, %rsi
movl %eax, %edi
movl $0x1, %edx
callq 0xd068
cmpl $0x0, (%r14)
je 0xdcf1
movl (%rsp), %eax
andl $0x7f, %eax
shll $0x18, %eax
addl $0x1000000, %eax        # imm = 0x1000000
cmpl $0x2000000, %eax        # imm = 0x2000000
jl 0xdcf1
leaq 0x4(%rsp), %rdx
xorl %edi, %edi
xorl %esi, %esi
callq 0x32f0
movl (%rsp), %esi
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0xbcfe
callq 0xbae1
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xdfa2
movl 0xd0ba(%rip), %ecx      # 0x1afe0
testl %ecx, %ecx
je 0xdf6f
movl $0x40, %eax
cmpl 0x1c(%r14), %ecx
je 0xdf74
movl 0x20(%r14), %ecx
movl $0x8, %eax
cmpl %ecx, 0xd0a0(%rip)      # 0x1afe4
je 0xdf74
movslq 0xd0af(%rip), %rdx      # 0x1affc
testq %rdx, %rdx
jle 0xdf68
movq 0xd0a7(%rip), %rsi      # 0x1b000
xorl %edi, %edi
cmpl %ecx, (%rsi,%rdi,4)
je 0xdf74
incq %rdi
cmpq %rdi, %rdx
jne 0xdf5b
movl $0x1, %eax
jmp 0xdf74
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 0xdfb0
callq 0x3040
movl $0xd, (%rax)
testl %ebp, %ebp
je 0xdfae
movq %rbx, %rdi
callq 0xc7ed
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x1f0f
leaq 0x170(%rip), %r12       # 0x203b
leaq 0x8(%rsp), %r13
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
movq %r12, %rdx
callq 0x1470
testl %eax, %eax
jne 0x1f38
cmpb $0x0, 0x31dd(%rip)      # 0x50c8
je 0x1ef6
movb $0x0, 0x31d4(%rip)      # 0x50c8
jmp 0x1f00
movq 0x8(%rsp), %rdi
callq 0x1050
movq %r13, %rdi
movq %r15, %rsi
callq 0x135c
testl %eax, %eax
je 0x1ed0
movq %r15, %rdi
callq 0x1060
testl %eax, %eax
je 0x1f2a
leaq 0x11bd(%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 0x1f4a
callq 0x11f2
callq 0x122a
// File: /workspace/github_c_makefile_star2_O1/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 0x1190(%rip), %rdi      # 0x3105
xorl %eax, %eax
callq 0x1090
leaq 0x11a0(%rip), %rdi      # 0x3123
callq 0x1050
leaq 0x11e0(%rip), %rdi      # 0x316f
callq 0x1050
leaq 0x123a(%rip), %rdi      # 0x31d5
callq 0x1050
movl $0xa, %edi
callq 0x1040
leaq 0x1255(%rip), %rdi      # 0x3206
callq 0x1050
leaq 0x126d(%rip), %rdi      # 0x322a
callq 0x1050
leaq 0x128f(%rip), %rdi      # 0x3258
callq 0x1050
movl $0xa, %edi
callq 0x1040
leaq 0x12d2(%rip), %rdi      # 0x32b1
popq %rax
jmp 0x1050
// File: /workspace/github_c_makefile_star2_O1/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 0x12e8(%rip), %rdi      # 0x32d5
callq 0x1050
leaq 0x12f0(%rip), %rdi      # 0x32e9
callq 0x1050
leaq 0x1300(%rip), %rdi      # 0x3305
callq 0x1050
leaq 0x1331(%rip), %rdi      # 0x3342
callq 0x1050
leaq 0x1358(%rip), %rdi      # 0x3375
callq 0x1050
leaq 0x136f(%rip), %rdi      # 0x3398
callq 0x1050
leaq 0x1394(%rip), %rdi      # 0x33c9
popq %rax
jmp 0x1050
// File: /workspace/github_c_makefile_star2_O1/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, 0x307e(%rip)      # 0x50c4
je 0x205b
movq %rbx, %rdi
callq 0x1030
movb $0x1, 0x3071(%rip)      # 0x50c8
xorl %eax, %eax
popq %rbx
retq
movq 0x2f96(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x1087(%rip), %rsi      # 0x30f3
movq %rbx, %rdx
xorl %eax, %eax
callq 0x10d0
jmp 0x2048
// File: /workspace/github_c_makefile_star2_O1/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 0x109282
cmpl $0x0, 0x88(%rax)
je 0x19091
movq %rax, %rbx
cmpl $0x0, 0x2c(%rax)
jne 0x19008
movq %rbx, %rdi
callq 0x190fe
cmpl $0x2000, %r14d          # imm = 0x2000
je 0x19048
cmpl $0x1100, %r14d          # imm = 0x1100
je 0x19030
cmpl $0x1000, %r14d          # imm = 0x1000
jne 0x19091
movq 0x30(%rbx), %rsi
leaq 0xf7113(%rip), %rdi     # 0x110141
jmp 0x1903b
movq 0x30(%rbx), %rsi
leaq 0xf710b(%rip), %rdi     # 0x110146
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x18130
cmpl $0x3, 0x88(%rbx)
jne 0x19091
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 0xf70dc(%rip), %rdx     # 0x11014c
movq %rsp, %r14
movl $0x40, %esi
movq %r14, %rdi
movl %ebp, %r9d
xorl %eax, %eax
callq 0xe8d67
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_O1/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 0xe8cfc
leaq 0xf76c9(%rip), %rdx     # 0x11077f
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0xe917a
leaq 0xf7097(%rip), %rdx     # 0x110163
movq %rbx, %rdi
xorl %esi, %esi
callq 0xe8edf
leaq 0xf740f(%rip), %rdx     # 0x1104ec
movq %rbx, %rdi
xorl %esi, %esi
callq 0xe8edf
leaq 0xf70af(%rip), %rdx     # 0x11019d
movq %rbx, %rdi
xorl %esi, %esi
callq 0xe8edf
addq $0x50, %rsp
popq %rbx
retq