LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/orestesleal[P]base64/base64.c
// Function: b32_enc
void b32_enc(unsigned char *s, unsigned char *b, unsigned int len)
{
	unsigned long long x;	/* c99 only */
	unsigned int i,w,z;
	unsigned char ap[5] = {0,6,4,3,1};

	w = x = 0;
	/* 	in base32 per 5 bytes of input we get 40 bits that must
		be treated as eight 5 bits groups, each 5 bit number
		will be used as an index into the base32 alphabet  */
	for (i = 0; i < len; i++) {
		for (z = 0; z < 5 && i < len; z++, i++) {
			x |= s[i];
			x <<= 8;
		}
		/* compute the number of shifts needed to align all bytes
			to the most significant part of x, this avoids several
			iterations of one 'test, shift, and increment' loop */
		x <<= (7 - z) << 3; /* mul by 8 */ 

		/* 	this block could be optimized for size within a loop, but that
			will involve a and additional 'test and increment' step on a 
			loop, which will make the code a tiny fraction more slower,
			this is coded for speed, not size */
		b[w++] = b32_alp[x >> 59];
		b[w++] = b32_alp[(x << 5) >> 59];
		b[w++] = b32_alp[(x << 10) >> 59];
		b[w++] = b32_alp[(x << 15) >> 59];
		b[w++] = b32_alp[(x << 20) >> 59];
		b[w++] = b32_alp[(x << 25) >> 59];
		b[w++] = b32_alp[(x << 30) >> 59];
		b[w++] = b32_alp[(x << 35) >> 59];
		--i;
	}
	b[w] = '\0';
	for (i = ap[len % 5]; i; i--) {
		b[--w] = PAD; 
	}		
	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
xorl %eax, %eax
testl %edx, %edx
je 0x1dad
leaq 0x343b(%rip), %r8       # 0x5110
xorl %r9d, %r9d
xorl %r10d, %r10d
movl $0x38, %ecx
xorl %ebx, %ebx
leal (%r9,%rbx), %r11d
movzbl (%rdi,%r11), %r11d
orq %r11, %r10
shlq $0x8, %r10
leal 0x1(%rbx), %r11d
addq $-0x8, %rcx
cmpl $0x3, %ebx
ja 0x1d0e
leal (%r9,%rbx), %r14d
incl %r14d
movl %r11d, %ebx
cmpl %edx, %r14d
jb 0x1ce2
shlq %cl, %r10
movq %r10, %rcx
shrq $0x3b, %rcx
movb (%rcx,%r8), %bl
movl %eax, %ecx
movb %bl, (%rsi,%rcx)
movq %r10, %rbx
shrq $0x36, %rbx
andl $0x1f, %ebx
movb (%rbx,%r8), %bl
movb %bl, 0x1(%rsi,%rcx)
movq %r10, %rbx
shrq $0x31, %rbx
andl $0x1f, %ebx
movb (%rbx,%r8), %bl
movb %bl, 0x2(%rsi,%rcx)
movq %r10, %rbx
shrq $0x2c, %rbx
andl $0x1f, %ebx
movb (%rbx,%r8), %bl
movb %bl, 0x3(%rsi,%rcx)
movq %r10, %rbx
shrq $0x27, %rbx
andl $0x1f, %ebx
movb (%rbx,%r8), %bl
movb %bl, 0x4(%rsi,%rcx)
movq %r10, %rbx
shrq $0x22, %rbx
andl $0x1f, %ebx
movb (%rbx,%r8), %bl
movb %bl, 0x5(%rsi,%rcx)
movq %r10, %rbx
shrq $0x1d, %rbx
andl $0x1f, %ebx
movb (%rbx,%r8), %bl
movb %bl, 0x6(%rsi,%rcx)
movl %r10d, %ebx
shrl $0x18, %ebx
andl $0x1f, %ebx
movb (%rbx,%r8), %bl
addl $0x8, %eax
movb %bl, 0x7(%rsi,%rcx)
addl %r11d, %r9d
cmpl %edx, %r9d
jb 0x1cdb
movl %eax, %ecx
movb $0x0, (%rsi,%rcx)
movl %edx, %ecx
movl $0xcccccccd, %edi       # imm = 0xCCCCCCCD
imulq %rcx, %rdi
shrq $0x22, %rdi
leal (%rdi,%rdi,4), %ecx
subl %ecx, %edx
je 0x1de4
movl %edx, %ecx
leaq 0x148e(%rip), %rdx      # 0x3260
movzbl (%rcx,%rdx), %ecx
decl %eax
movl %eax, %edx
movb $0x3d, (%rsi,%rdx)
decl %eax
decl %ecx
jne 0x1dd8
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/orestesleal[P]base64/base64.c
// Function: b16_enc
void b16_enc(const unsigned char *s, char *b, unsigned int len)
{
	while (len--) {
		*b++ = b16_alp[*s >> 4];
		*b++ = b16_alp[*s++ & 0x0f]; 	
	}
	*b = '\0';
}

// Assembly:
testl %edx, %edx
je 0x1f4f
movl %edx, %ecx
xorl %eax, %eax
leaq 0x1356(%rip), %rdx      # 0x3270
xorl %r8d, %r8d
movzbl (%rdi,%r8), %r9d
shrl $0x4, %r9d
movb (%r9,%rdx), %r9b
movb %r9b, (%rsi,%r8,2)
movzbl (%rdi,%r8), %r9d
andl $0xf, %r9d
movb (%r9,%rdx), %r9b
movb %r9b, 0x1(%rsi,%r8,2)
incq %r8
addq $-0x2, %rax
cmpl %r8d, %ecx
jne 0x1f1d
subq %rax, %rsi
pushq %rbp
movq %rsp, %rbp
movb $0x0, (%rsi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/orestesleal[P]base64/base64.c
// Function: b16_dec
unsigned int b16_dec(const char *s, char *b, unsigned int len)
{
	unsigned char t[2],d;
	unsigned int i;

	d = 0;
	for (i = 0; i < len; i+=2) {
   		for (d = 0; d < 2; d++) {
			if ((s[i+d] >= '0' && s[i+d] <= '9') || 
				(s[i+d] >= 'A' && s[i+d] <= 'F')) {
				for (t[d] = 0; s[i+d] != b16_alp[t[d]]; ++t[d]); /* get position */
			}
			else { /* rfc4648 sec 3.3 paragraph #2 */ 
				fprintf(stderr, "error: non alphabet character found on encoded stream\n");
				exit(EXIT_FAILURE);
			}
		}
		t[0] <<= 4;
		t[0] |= t[1];
		*b++ = t[0];
	}	
	*b = '\0';
	return len >> 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
testl %edx, %edx
je 0x1fd5
xorl %eax, %eax
leaq 0x1303(%rip), %rcx      # 0x3270
xorl %r8d, %r8d
movl %eax, %r9d
orl %r8d, %r9d
movb (%rdi,%r9), %r9b
leal -0x30(%r9), %r10d
cmpb $0xa, %r10b
setae %r10b
leal -0x41(%r9), %r11d
cmpb $0x6, %r11b
setae %r11b
testb %r11b, %r10b
jne 0x1fe2
movb $-0x1, %r10b
incb %r10b
movzbl %r10b, %r11d
cmpb (%r11,%rcx), %r9b
jne 0x1f9a
movb %r10b, -0x2(%rbp,%r8)
leaq 0x1(%r8), %r9
testq %r8, %r8
movq %r9, %r8
je 0x1f70
movb -0x2(%rbp), %r8b
shlb $0x4, %r8b
orb -0x1(%rbp), %r8b
movb %r8b, -0x2(%rbp)
movb %r8b, (%rsi)
incq %rsi
addl $0x2, %eax
cmpl %edx, %eax
jb 0x1f6d
movb $0x0, (%rsi)
shrl %edx
movl %edx, %eax
addq $0x10, %rsp
popq %rbp
retq
callq 0x11d0
// File: /workspace/github_c_makefile_star2_O1/orestesleal[P]base64/base64.c
// Function: encode_wr_file
void encode_wr_file(const char *src, const char *dst, unsigned char mode)
{
	struct finfo *fd;
	char *enc_buf;
	int ofd;
	size_t wr;
	int flags = O_CREAT | O_RDWR;
	int perms = S_IRUSR | O_TRUNC | S_IWUSR; 
	
	if ((fd = get_file(src)) == NULL) { /* load the input file 'src' */
		fprintf(stderr, "error: get_file() failed to load %s in main memory\n", src);
		exit(EXIT_FAILURE);
	}
	enc_buf = alloc(fd->size*2); /* buffer for the encoded string */
	switch (mode) {
		case BASE64:
			b64_enc((unsigned char *)fd->addr, enc_buf, fd->size);
			break;
		case BASE32:
			b32_enc((unsigned char *)fd->addr, (unsigned char *)enc_buf, fd->size);
			break;
		case BASE16:
			b16_enc(fd->addr, enc_buf, fd->size); 
			break;
		default:
			fprintf(stderr, "error: encoding %d mode not supported\n", mode);
			exit(EXIT_FAILURE);
	}
    if ((ofd = open(dst, flags, perms)) == -1) {
   		fprintf(stderr, "open(2) error, can't create or truncate %s\n", dst);
	    exit(EXIT_FAILURE);
	}
	if ((wr = write(ofd, enc_buf, strlen(enc_buf))) == -1) {
		fprintf(stderr, "write(2) error, can't write to %s\n", dst);
		exit(EXIT_FAILURE);
	}
	close(ofd);
	free(enc_buf);
	free(fd);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r13d
movq %rsi, %rbx
movq %rdi, %r15
callq 0x2115
testq %rax, %rax
je 0x20f8
movq %rax, %r14
movq 0x8(%rax), %r12
leal (%r12,%r12), %edi
callq 0x2240
movq %rax, %r15
cmpb $0x3, %r13b
je 0x2057
movzbl %r13b, %edi
cmpl $0x2, %edi
je 0x2047
cmpl $0x1, %edi
jne 0x2110
movq (%r14), %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x1a41
jmp 0x209a
movq (%r14), %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x1cbd
jmp 0x209a
movq %r15, %rax
testl %r12d, %r12d
je 0x2097
movq (%r14), %rcx
xorl %edx, %edx
leaq 0x1205(%rip), %rsi      # 0x3270
movq %r15, %rax
movzbl (%rcx,%rdx), %edi
movl %edi, %r8d
shrl $0x4, %r8d
movb (%r8,%rsi), %r8b
movb %r8b, (%rax)
andl $0xf, %edi
movb (%rdi,%rsi), %dil
movb %dil, 0x1(%rax)
addq $0x2, %rax
incq %rdx
cmpl %edx, %r12d
jne 0x206e
movb $0x0, (%rax)
movq %rbx, %rdi
movl $0x42, %esi
movl $0x380, %edx            # imm = 0x380
xorl %eax, %eax
callq 0x10c0
cmpl $-0x1, %eax
je 0x2100
movl %eax, %r12d
movq %r15, %rdi
callq 0x1050
movl %r12d, %edi
movq %r15, %rsi
movq %rax, %rdx
callq 0x1040
cmpq $-0x1, %rax
je 0x2108
movl %r12d, %edi
callq 0x1070
movq %r15, %rdi
callq 0x1030
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
movq %r15, %rdi
callq 0x126e
movq %rbx, %rdi
callq 0x121f
movq %rbx, %rdi
callq 0x11f8
callq 0x1246
// File: /workspace/github_c_makefile_star2_O1/orestesleal[P]base64/base64.c
// Function: get_file
struct finfo *get_file(const char *f)
{
	int fd;
	struct stat fp;
	char *addr; 
	struct finfo *st_addr;
	size_t rd;

	if ((fd = open(f, O_RDONLY)) == -1) {
		fprintf(stderr, "open(2) failed for file %s\n", f);
		return NULL;
	}
	stat(f, &fp); /* get file info with stat(2) */
	if ((addr = (char *)malloc(fp.st_size)) == NULL) {
		fprintf(stderr, "malloc(3) failed allocating %d bytes\n", (int)fp.st_size);
		close(fd);
		return NULL;
	}
	if ((rd = read(fd, addr, fp.st_size)) == -1) {
		fprintf(stderr, "read(2) failed reading %s with %d bytes into memory\n", f, (int)fp.st_size);
		close(fd);
		free(addr);
		return NULL;
	}
	if ((st_addr = (struct finfo *)malloc(sizeof(struct finfo))) == NULL) {
		fprintf(stderr, "malloc(3) failed allocating the returned structure\n");
		close(fd);
		free(addr);
		return NULL;
	}
	close(fd);
	st_addr->addr = addr;
	st_addr->size = fp.st_size;
	return st_addr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdi, %r15
xorl %esi, %esi
xorl %eax, %eax
callq 0x10c0
cmpl $-0x1, %eax
je 0x21b2
movl %eax, %ebx
leaq -0xb8(%rbp), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x10a0
movq 0x30(%r14), %r12
movq %r12, %rdi
callq 0x10b0
testq %rax, %rax
je 0x21d2
movq %rax, %r13
movl %ebx, %edi
movq %rax, %rsi
movq %r12, %rdx
callq 0x1080
cmpq $-0x1, %rax
je 0x21f9
movl $0x10, %edi
callq 0x10b0
testq %rax, %rax
je 0x222e
movq %rax, %r14
movl %ebx, %edi
callq 0x1070
movq %r13, (%r14)
movq %r12, 0x8(%r14)
movq %r14, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2e3f(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0xfd4(%rip), %rsi       # 0x3197
xorl %r14d, %r14d
movq %r15, %rdx
xorl %eax, %eax
callq 0x1090
jmp 0x219d
movq 0x2e1f(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0xfd0(%rip), %rsi       # 0x31b3
xorl %r14d, %r14d
movl %r12d, %edx
xorl %eax, %eax
callq 0x1090
movl %ebx, %edi
callq 0x1070
jmp 0x219d
movq 0x2df8(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0xfcf(%rip), %rsi       # 0x31d9
xorl %r14d, %r14d
movq %r15, %rdx
movl %r12d, %ecx
xorl %eax, %eax
callq 0x1090
movl %ebx, %edi
callq 0x1070
movq %r13, %rdi
callq 0x1030
jmp 0x219d
movl %ebx, %edi
movq %r13, %rsi
callq 0x1295
xorl %r14d, %r14d
jmp 0x219d
// File: /workspace/github_c_makefile_star2_O1/orestesleal[P]base64/base64.c
// Function: alloc
char *alloc(unsigned int size)
{
    char *ptr = (char *)malloc(size);
    if (ptr == NULL) {
		fprintf(stderr, "malloc: error, can't allocate %d bytes\n", size);
		exit(EXIT_FAILURE);
	}
	return ptr;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
movl %edi, %edi
callq 0x10b0
testq %rax, %rax
je 0x225b
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movl %ebx, %edi
callq 0x12d2
// File: /workspace/github_c_makefile_star2_O1/orestesleal[P]base64/base64.c
// Function: decode_rd_file
void decode_rd_file(const char *src, const char *dst, unsigned char mode)
{
	struct finfo *fd;
	char *dec_buf;
	int ofd;
	size_t wr;
	size_t dec; /* number of decoded bytes */
	int flags = O_CREAT | O_RDWR;
    int perms = S_IRUSR | O_TRUNC | S_IWUSR;

	if ((fd = get_file(src)) == NULL) {
		fprintf(stderr, "get_file() failed loading %s in main memory\n", src);
		exit(EXIT_FAILURE);
	}

	dec_buf = alloc(fd->size); 
	switch (mode) {
		case BASE64:
			dec = b64_dec((unsigned char *)fd->addr, dec_buf, fd->size); 
			break;
		case BASE32:
			dec = b32_dec((unsigned char *)fd->addr, dec_buf, fd->size); 
			break;
		case BASE16:
			dec = b16_dec(fd->addr, dec_buf, fd->size); 
			break;
		default:
			fprintf(stderr,"error: mode %d not supported\n", mode);
			exit(EXIT_FAILURE);
	}

    if ((ofd = open(dst, flags, perms)) == -1) {
      	fprintf(stderr, "open(2) error, can't create or truncate %s\n", dst);
      	exit(EXIT_FAILURE);
	}
	/* write the contents of `dec_buf` into the file requested on dst */
	if ((wr = write(ofd, dec_buf, dec)) == -1) {
		fprintf(stderr, "write(2) error, can't write to %s\n", dst);
		exit(EXIT_FAILURE);
	}
	close(ofd);
	free(dec_buf);
	free(fd);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r13d
movq %rsi, %rbx
movq %rdi, %r15
callq 0x2115
testq %rax, %rax
je 0x2337
movq %rax, %r14
movl 0x8(%rax), %r12d
movl %r12d, %edi
callq 0x2240
movq %rax, %r15
cmpb $0x3, %r13b
je 0x22d1
movzbl %r13b, %edi
cmpl $0x2, %edi
je 0x22c1
cmpl $0x1, %edi
jne 0x234f
movq (%r14), %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x1b3c
jmp 0x22df
movq (%r14), %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x1de9
jmp 0x22df
movq (%r14), %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x1f58
movl %eax, %r12d
movq %rbx, %rdi
movl $0x42, %esi
movl $0x380, %edx            # imm = 0x380
xorl %eax, %eax
callq 0x10c0
cmpl $-0x1, %eax
je 0x233f
movl %eax, %r13d
movl %r12d, %edx
movl %eax, %edi
movq %r15, %rsi
callq 0x1040
cmpq $-0x1, %rax
je 0x2347
movl %r13d, %edi
callq 0x1070
movq %r15, %rdi
callq 0x1030
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
movq %r15, %rdi
callq 0x136e
movq %rbx, %rdi
callq 0x131f
movq %rbx, %rdi
callq 0x12f8
callq 0x1346
// File: /workspace/github_c_makefile_star2_O1/ulisses[P]ftp-client-server/apl.c
// Function: trataPedido
void trataPedido(char *cmd, char *ip){
	int pid, status;
	if((pid = fork())==0){
		int res;
		res = execl("./clientc2", "-te", "0", "-tp", "0", ip, cmd, NULL);
		if(res < 0){
			perror("execl");
		}
		exit(0);
	}
	wait(&status);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x10a0
testl %eax, %eax
je 0x11e8
leaq -0x14(%rbp), %rdi
callq 0x1090
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0xe15(%rip), %rdi       # 0x2004
leaq 0xe19(%rip), %rsi       # 0x200f
leaq 0xe18(%rip), %rcx       # 0x2015
leaq 0xe0f(%rip), %rdx       # 0x2013
movq %rdx, %r8
movq %r14, %r9
xorl %eax, %eax
pushq $0x0
pushq %rbx
callq 0x1080
addq $0x10, %rsp
testl %eax, %eax
jns 0x1228
leaq 0xdf6(%rip), %rdi       # 0x2019
callq 0x1060
xorl %edi, %edi
callq 0x1070
// File: /workspace/github_c_makefile_star2_O1/ulisses[P]ftp-client-server/apl.c
// Function: main
int main(int argc, char *argv[]){
	if(argc ==1){
		printf("erro: ./apl endereco_ip_servidor\n");
		return 0;
	}
	else {
		int sair = 0;
		char *ip = argv[1];
		char cmd[50];
		while(!sair){
			printf(">>");
			fgets(cmd, 50, stdin);
			if(strstr(cmd, "sair")) sair = 1;
			else trataPedido(cmd, ip);
		}
	return 1;
		
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
cmpl $0x1, %edi
jne 0x1255
leaq 0xddb(%rip), %rdi       # 0x2027
callq 0x1030
xorl %eax, %eax
jmp 0x12c1
movq 0x8(%rsi), %rax
movq %rax, -0x30(%rbp)
leaq 0xdbb(%rip), %r14       # 0x201f
movq 0x2d75(%rip), %r13      # 0x3fe0
leaq -0x70(%rbp), %r15
leaq 0xdac(%rip), %r12       # 0x2022
xorl %ebx, %ebx
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq (%r13), %rdx
movq %r15, %rdi
movl $0x32, %esi
callq 0x1050
movq %r15, %rdi
movq %r12, %rsi
callq 0x10b0
movl $0x1, %ecx
testq %rax, %rax
jne 0x12b6
movq %r15, %rdi
movq -0x30(%rbp), %rsi
callq 0x11bc
movl %ebx, %ecx
movl %ecx, %ebx
testl %ecx, %ecx
je 0x1278
movl $0x1, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/builtins.c
// Function: isbuiltin
extern builtin_t *isbuiltin(char *s) {
    int i;
    for (i = 0; i < arraysize(builtins); i++)
	if (streq(builtins[i].name, s))
	    return builtins[i].p;
    return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
movb (%rdi), %bpl
movl $0x8, %r15d
leaq 0x15d29(%rip), %r12     # 0x191e0
xorl %ebx, %ebx
movq (%r15,%r12), %rdi
cmpb %bpl, (%rdi)
jne 0x34ce
movq %r14, %rsi
callq 0x31f0
testl %eax, %eax
je 0x34dd
addq $0x10, %r15
cmpq $0x118, %r15            # imm = 0x118
jne 0x34b9
jmp 0x34e2
movq -0x8(%r15,%r12), %rbx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/builtins.c
// Function: funcall
extern void funcall(char **av) {
	Jbwrap j;
	Estack e1, e2;
	Edata jreturn, star;
	if (sigsetjmp(j.j, 1))
		return;
	starassign(*av, av+1, TRUE);
	jreturn.jb = &j;
	star.name = "*";
	except(eReturn, jreturn, &e1);
	except(eVarstack, star, &e2);
	walk(treecpy(fnlookup(*av), nalloc), TRUE);
	varrm("*", TRUE);
	unexcept(eVarstack);
	unexcept(eReturn);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rdi, %r14
leaq 0x38(%rsp), %rdi
movl $0x1, %esi
callq 0x3370
testl %eax, %eax
jne 0x3597
movq (%r14), %rdi
leaq 0x8(%r14), %rsi
movl $0x1, %ebp
movl %ebp, %edx
callq 0xccde
movl $0x2, %ebx
leaq 0x38(%rsp), %rsi
leaq 0x20(%rsp), %rdx
movl %ebx, %edi
callq 0x459c
leaq 0xbb15(%rip), %r12      # 0xf05c
movl $0x3, %r15d
leaq 0x8(%rsp), %rdx
movl %r15d, %edi
movq %r12, %rsi
callq 0x459c
movq (%r14), %rdi
callq 0x5099
leaq 0x69bc(%rip), %rsi      # 0x9f28
movq %rax, %rdi
callq 0xc55a
movq %rax, %rdi
movl %ebp, %esi
callq 0xd3c0
movq %r12, %rdi
movl %ebp, %esi
callq 0xcc64
movl %r15d, %edi
callq 0x45d0
movl %ebx, %edi
callq 0x45d0
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/builtins.c
// Function: b_dot
extern void b_dot(char **av) {
	int fd;
	bool old_i = interactive, i = FALSE;
	Estack e;
	Edata star;
	av++;
	if (*av == NULL)
		return;
	if (streq(*av, "-i")) {
		av++;
		i = TRUE;
	}
	if (dasheye) { /* rc -i file has to do the right thing. reset the dasheye state to FALSE, though. */
		dasheye = FALSE;
		i = TRUE;
	}
	if (*av == NULL)
		return;
	fd = rc_open(*av, rFrom);
	if (fd < 0) {
		uerror(*av);
		set(FALSE);
		return;
	}
	starassign(*av, av+1, TRUE);
	interactive = i;
	pushfd(fd);
	star.name = "*";
	except(eVarstack, star, &e);
	doit(TRUE);
	varrm("*", TRUE);
	unexcept(eVarstack);
	interactive = old_i;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x3680
leaq 0x16606(%rip), %r15     # 0x19bd4
movl (%r15), %r12d
leaq 0x8(%r14), %rbx
xorl %r13d, %r13d
cmpb $0x2d, (%rdi)
jne 0x35fa
leaq 0xba7a(%rip), %rsi      # 0xf05e
callq 0x31f0
addq $0x10, %r14
xorl %r13d, %r13d
testl %eax, %eax
sete %r13b
cmoveq %r14, %rbx
leaq 0x165d7(%rip), %rax     # 0x19bd8
cmpl $0x0, (%rax)
je 0x3612
movl $0x0, (%rax)
movl $0x1, %r13d
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3680
xorl %esi, %esi
callq 0xa148
movq (%rbx), %rdi
testl %eax, %eax
js 0x368f
movl %eax, %ebp
addq $0x8, %rbx
movq %rbx, %rsi
movl $0x1, %edx
callq 0xccde
movl %r13d, (%r15)
movl %ebp, %edi
callq 0x8384
leaq 0xba10(%rip), %rbx      # 0xf05c
movq %rsp, %rdx
movl $0x3, %edi
movq %rbx, %rsi
callq 0x459c
movl $0x1, %edi
callq 0x855f
movq %rbx, %rdi
movl $0x1, %esi
callq 0xcc64
movl $0x3, %edi
callq 0x45d0
movl %r12d, (%r15)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xc7ed
xorl %edi, %edi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xbcdc
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/builtins.c
// Function: b_break
static void b_break(char **av) {
	if (av[1] != NULL) {
		arg_count("break");
		return;
	}
	rc_raise(eBreak);
}

// Assembly:
cmpq $0x0, 0x8(%rdi)
je 0x36ea
pushq %rax
leaq 0xb9e2(%rip), %rsi      # 0xf0b1
leaq 0xb98b(%rip), %rdx      # 0xf061
movl $0x2, %edi
xorl %eax, %eax
callq 0xb06f
xorl %edi, %edi
popq %rax
jmp 0xbcdc
movl $0x1, %edi
jmp 0x4654
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/builtins.c
// Function: b_continue
static void b_continue(char **av) {
	if (av[1] != NULL) {
		arg_count("continue");
		return;
	}
	rc_raise(eContinue);
}

// Assembly:
cmpq $0x0, 0x8(%rdi)
je 0x3958
pushq %rax
leaq 0xb774(%rip), %rsi      # 0xf0b1
leaq 0xb72e(%rip), %rdx      # 0xf072
movl $0x2, %edi
xorl %eax, %eax
callq 0xb06f
xorl %edi, %edi
popq %rax
jmp 0xbcdc
movl $0x7, %edi
jmp 0x4654
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/builtins.c
// Function: b_echo
static void b_echo(char **av) {
    char *format = "%A\n";
    if (*++av != NULL) {
	if (streq(*av, "-n"))
	    format = "%A", av++;
	else if (streq(*av, "--"))
	    av++;
    }
    fprint(1, format, av);
    set(TRUE);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
leaq 0x8(%rdi), %rbx
movq 0x8(%rdi), %r12
leaq 0xb77a(%rip), %r14      # 0xf0f3
testq %r12, %r12
je 0x39cd
movb (%r12), %bpl
cmpb $0x2d, %bpl
jne 0x39cd
movq %rdi, %r15
leaq 0xb765(%rip), %rsi      # 0xf0f7
movq %r12, %rdi
callq 0x31f0
testl %eax, %eax
je 0x39bf
cmpb $0x2d, %bpl
jne 0x39cd
leaq 0xb752(%rip), %rsi      # 0xf0fd
movq %r12, %rdi
callq 0x31f0
addq $0x10, %r15
testl %eax, %eax
cmoveq %r15, %rbx
jmp 0x39cd
addq $0x10, %r15
leaq 0xb730(%rip), %r14      # 0xf0fa
movq %r15, %rbx
movl $0x1, %edi
movq %r14, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0xb06f
movl $0x1, %edi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xbcdc
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/builtins.c
// Function: b_eval
static void b_eval(char **av) {
	bool i = interactive;
	if (av[1] == NULL)
		return;
	interactive = FALSE;
	pushstring(av + 1, i); /* don't reset line numbers on noninteractive eval */
	doit(TRUE);
	interactive = i;
}

// Assembly:
cmpq $0x0, 0x8(%rdi)
je 0x3a2c
pushq %r14
pushq %rbx
pushq %rax
addq $0x8, %rdi
leaq 0x161cd(%rip), %r14     # 0x19bd4
movl (%r14), %ebx
movl $0x0, (%r14)
movl %ebx, %esi
callq 0x8426
movl $0x1, %edi
callq 0x855f
movl %ebx, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/builtins.c
// Function: b_newpgrp
static void b_newpgrp(char **av) {
	if (av[1] != NULL) {
		arg_count("newpgrp");
		return;
	}
	setpgid(rc_pid, rc_pid); /* XXX check return value */
	tcsetpgrp(2, rc_pid); /* XXX check return value */
}

// Assembly:
pushq %rbx
cmpq $0x0, 0x8(%rdi)
je 0x3e9d
leaq 0xb22f(%rip), %rsi      # 0xf0b1
leaq 0xb201(%rip), %rdx      # 0xf08a
movl $0x2, %edi
xorl %eax, %eax
callq 0xb06f
xorl %edi, %edi
popq %rbx
jmp 0xbcdc
leaq 0x15d1c(%rip), %rbx     # 0x19bc0
movl (%rbx), %edi
movl %edi, %esi
callq 0x3320
movl (%rbx), %esi
movl $0x2, %edi
popq %rbx
jmp 0x32e0
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/builtins.c
// Function: b_shift
static void b_shift(char **av) {
	int shift = (av[1] == NULL ? 1 : a2u(av[1]));
	List *s, *dollarzero;
	if (av[1] != NULL && av[2] != NULL) {
		arg_count("shift");
		return;
	}
	if (shift < 0) {
		badnum(av[1]);
		return;
	}
	s = varlookup("*")->n;
	dollarzero = varlookup("0");
	while (s != NULL && shift != 0) {
		s = s->n;
		--shift;
	}
	if (s == NULL && shift != 0) {
		fprint(2, "rc: cannot shift\n");
		set(FALSE);
	} else {
		varassign("*", append(dollarzero, s), FALSE);
		set(TRUE);
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x3ef7
movl $0xa, %esi
callq 0xc890
movl %eax, %ebx
jmp 0x3efc
movl $0x1, %ebx
movq 0x8(%r14), %rdx
testq %rdx, %rdx
je 0x3f1c
cmpq $0x0, 0x10(%r14)
je 0x3f1c
leaq 0xb19e(%rip), %rsi      # 0xf0b1
leaq 0xb17f(%rip), %rdx      # 0xf099
jmp 0x3f8a
testl %ebx, %ebx
js 0x3f83
leaq 0xb135(%rip), %rdi      # 0xf05c
callq 0xcaf4
movq 0x10(%rax), %r14
leaq 0x1003a(%rip), %rdi     # 0x13f71
callq 0xcaf4
testq %r14, %r14
setne %dl
testl %ebx, %ebx
setne %cl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x3f63
decl %ebx
movq 0x10(%r14), %r14
addl $-0x1, %ebx
setb %cl
testq %r14, %r14
je 0x3f63
testb %cl, %cl
jne 0x3f50
testq %r14, %r14
jne 0x3f9a
testb %cl, %cl
je 0x3f9a
leaq 0xb2a8(%rip), %rsi      # 0xf21b
xorl %ebx, %ebx
movl $0x2, %edi
xorl %eax, %eax
callq 0xb06f
jmp 0x3fbb
leaq 0xb2a3(%rip), %rsi      # 0xf22d
xorl %ebx, %ebx
movl $0x2, %edi
xorl %eax, %eax
callq 0xb06f
jmp 0x3fbb
movq %rax, %rdi
movq %r14, %rsi
callq 0x6747
leaq 0xb0b0(%rip), %rdi      # 0xf05c
movq %rax, %rsi
xorl %edx, %edx
callq 0xc918
movl $0x1, %ebx
movl %ebx, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xbcdc
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/builtins.c
// Function: b_umask
static void b_umask(char **av) {
    int i;
    if (*++av == NULL) {
	set(TRUE);
	i = umask(0);
	umask(i);
	fprint(1, "0%o\n", i);
    } else if (av[1] == NULL) {
	i = o2u(*av);
	if ((unsigned int) i > 0777) {
	    fprint(2, "bad umask\n");
	    set(FALSE);
	} else {
	    umask(i);
	    set(TRUE);
	}
    } else {
	arg_count("umask");
	return;
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rax
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x3ff9
cmpq $0x0, 0x10(%rax)
je 0x4029
leaq 0xb0cd(%rip), %rsi      # 0xf0b1
leaq 0xb0b4(%rip), %rdx      # 0xf09f
movl $0x2, %edi
xorl %eax, %eax
callq 0xb06f
jmp 0x404d
movl $0x1, %edi
callq 0xbcdc
xorl %edi, %edi
callq 0x3200
movl %eax, %ebx
movl %eax, %edi
callq 0x3200
leaq 0xb22d(%rip), %rsi      # 0xf247
movl $0x1, %edi
movl %ebx, %edx
xorl %eax, %eax
popq %rbx
jmp 0xb06f
movl $0x8, %esi
callq 0xc890
cmpl $0x200, %eax            # imm = 0x200
jb 0x4055
leaq 0xb20b(%rip), %rsi      # 0xf24c
movl $0x2, %edi
xorl %eax, %eax
callq 0xb06f
xorl %edi, %edi
popq %rbx
jmp 0xbcdc
movl %eax, %edi
callq 0x3200
movl $0x1, %edi
jmp 0x404f
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/builtins.c
// Function: b_wait
static void b_wait(char **av) {
	if (*++av == NULL)
		waitforall();
	else
		waitfor(av);
        sigchk();
}

// Assembly:
pushq %rax
cmpq $0x0, 0x8(%rdi)
je 0x4076
addq $0x8, %rdi
callq 0xd260
jmp 0x407b
callq 0xd1f2
popq %rax
jmp 0xbae1
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/builtins.c
// Function: printlimit
static void printlimit(const struct Limit *limit, bool hard) {
	struct rlimit rlim;
	rlim_t lim;
	getrlimit(limit->flag, &rlim);
	if (hard)
		lim = rlim.rlim_max;
	else
		lim = rlim.rlim_cur;
	if (lim == RLIM_INFINITY)
		fprint(1, "%s \tunlimited\n", limit->name);
	else {
		const struct Suffix *suf;
		for (suf = limit->suffix; suf != NULL; suf = suf->next)
			if (lim % suf->amount == 0 && (lim != 0 || suf->amount > 1)) {
				lim /= suf->amount;
				break;
			}
		fprint(1, RLIM_FMT, limit->name, (RLIM_CONV)lim, (suf == NULL || lim == 0) ? "" : suf->name);
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movl 0x8(%rdi), %edi
movq %rsp, %r14
movq %r14, %rsi
callq 0x3340
testl %ebp, %ebp
leaq 0x8(%rsp), %rax
cmoveq %r14, %rax
movq (%rax), %rcx
cmpq $-0x1, %rcx
je 0x4482
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
sete %dil
je 0x44a5
testq %rcx, %rcx
setne %r9b
movq 0x8(%rsi), %r8
movq %rcx, %rax
xorl %edx, %edx
divq %r8
cmpq $0x2, %r8
setge %al
testq %rdx, %rdx
jne 0x447d
orb %al, %r9b
jne 0x449a
movq (%rsi), %rsi
jmp 0x4450
movq (%rbx), %rdx
leaq 0xad6b(%rip), %rsi      # 0xf1f7
movl $0x1, %edi
xorl %eax, %eax
callq 0xb06f
jmp 0x44d0
movq %rcx, %rax
xorl %edx, %edx
divq %r8
movq %rax, %rcx
movq (%rbx), %rdx
leaq 0xb928(%rip), %r8       # 0xfdd7
testb %dil, %dil
jne 0x44bd
testq %rcx, %rcx
je 0x44bd
movq 0x10(%rsi), %r8
leaq 0xad42(%rip), %rsi      # 0xf206
movl $0x1, %edi
xorl %eax, %eax
callq 0xb06f
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/except.c
// Function: except
extern void except(ecodes e, Edata data, Estack *ex) {
	ex->prev = estack;
	estack = ex;
	estack->e = e;
	estack->data = data;
	if (e == eError || e == eBreak || e == eReturn || e == eContinue)
		estack->interactive = interactive;
}

// Assembly:
movq 0x151d5(%rip), %rax     # 0x19778
movq %rax, 0x10(%rdx)
movq %rdx, 0x151ca(%rip)     # 0x19778
movl %edi, (%rdx)
movq %rsi, 0x8(%rdx)
cmpl $0x7, %edi
ja 0x45cf
movl $0x87, %eax
btl %edi, %eax
jae 0x45cf
leaq 0x1560a(%rip), %rax     # 0x19bd4
movl (%rax), %eax
movl %eax, 0x4(%rdx)
retq
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/except.c
// Function: unexcept
extern void unexcept(ecodes e) {
	assert(e == estack->e);
	switch (estack->e) {
	default:
		break;
	case eError:
		interactive = estack->interactive;
		break;
	case eArena:
		restoreblock(estack->data.b);
		break;
	case eFifo:
		unlink(estack->data.name);
		break;
	case eFd:
		close(estack->data.fd);
		break;
	}
	estack = estack->prev;
}

// Assembly:
pushq %rax
movq 0x151a0(%rip), %rax     # 0x19778
movl (%rax), %ecx
cmpl %edi, %ecx
jne 0x4635
cmpl $0x6, %ecx
ja 0x4621
movl %ecx, %ecx
leaq 0xad58(%rip), %rdx      # 0xf344
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl 0x4(%rax), %eax
leaq 0x155d5(%rip), %rcx     # 0x19bd4
movl %eax, (%rcx)
jmp 0x4621
movq 0x8(%rax), %rdi
callq 0x3050
jmp 0x4621
movq 0x8(%rax), %rdi
callq 0xa0b2
jmp 0x4621
movl 0x8(%rax), %edi
callq 0x3170
movq 0x15150(%rip), %rax     # 0x19778
movq 0x10(%rax), %rax
movq %rax, 0x15145(%rip)     # 0x19778
popq %rax
retq
leaq 0xad34(%rip), %rdi      # 0xf370
leaq 0xad3c(%rip), %rsi      # 0xf37f
leaq 0xad3e(%rip), %rcx      # 0xf388
movl $0x20, %edx
callq 0x3140
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/except.c
// Function: rc_raise
extern void rc_raise(ecodes e) {
	if (e == eError && rc_pid != getpid())
		exit(1); /* child processes exit on an error/signal */
	for (; estack != NULL; estack = estack->prev)
		if (estack->e != e) {
			if (e == eBreak && (estack->e != eArena && estack->e != eVarstack && estack->e != eContinue))
				rc_error("break outside of loop");
			else if (e == eContinue && (estack->e != eVarstack))
				rc_error("continue outside of loop");
			else if (e == eReturn && estack->e == eError) /* can return from loops inside functions */
				rc_error("return outside of function");
			switch (estack->e) {
			default:
				break;
			case eVarstack:
				varrm(estack->data.name, TRUE);
				break;
			case eArena:
				restoreblock(estack->data.b);
				break;
			case eFifo:
				unlink(estack->data.name);
				break;
			case eFd:
				close(estack->data.fd);
				break;
			}
		} else {
			if (e == eError && !estack->interactive) {
				popinput();
			} else {
				Jbwrap *j = estack->data.jb;

				interactive = estack->interactive;
				estack = estack->prev;
				siglongjmp(j->j, 1);
			}
		}
	rc_exit(1); /* top of exception stack */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebx
testl %edi, %edi
jne 0x467b
leaq 0x15554(%rip), %rax     # 0x19bc0
movl (%rax), %ebp
callq 0x30d0
cmpl %eax, %ebp
jne 0x47b4
movq 0x150f6(%rip), %rcx     # 0x19778
testq %rcx, %rcx
je 0x4777
leaq 0xad22(%rip), %r14      # 0xf3b4
leaq 0xacc7(%rip), %r15      # 0xf360
leaq 0xad2d(%rip), %r12      # 0xf3cd
leaq 0xacf7(%rip), %r13      # 0xf39e
movl $0x98, %ebp
movl (%rcx), %eax
cmpl %ebx, %eax
jne 0x46e5
testl %ebx, %ebx
jne 0x478f
cmpl $0x0, 0x4(%rcx)
jne 0x478f
callq 0x848f
movq 0x150a8(%rip), %rax     # 0x19778
movq 0x10(%rax), %rcx
movq %rcx, 0x1509d(%rip)     # 0x19778
testq %rcx, %rcx
jne 0x46ac
jmp 0x4777
cmpl $0x7, %ebx
je 0x470e
cmpl $0x2, %ebx
je 0x4745
cmpl $0x1, %ebx
jne 0x471b
movq %r13, %rdi
cmpl $0x7, %eax
ja 0x4716
btl %eax, %ebp
movq %r13, %rdi
jae 0x4716
cmpl $0x2, %ebx
je 0x4745
cmpl $0x7, %ebx
jne 0x471b
movq %r14, %rdi
cmpl $0x3, %eax
je 0x471b
callq 0x47be
movq 0x15056(%rip), %rax     # 0x19778
movl (%rax), %ecx
addl $-0x3, %ecx
cmpl $0x3, %ecx
ja 0x46c9
movslq (%r15,%rcx,4), %rcx
addq %r15, %rcx
jmpq *%rcx
movq 0x8(%rax), %rdi
movl $0x1, %esi
callq 0xcc64
jmp 0x46c9
movq %r12, %rdi
testl %eax, %eax
jne 0x471b
jmp 0x4716
movq 0x8(%rax), %rdi
callq 0x3050
jmp 0x46c9
movl 0x8(%rax), %edi
callq 0x3170
jmp 0x46c9
movq 0x8(%rax), %rdi
callq 0xa0b2
jmp 0x46c9
movl $0x1, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4fb5
movq 0x8(%rcx), %rdi
movl 0x4(%rcx), %eax
leaq 0x15437(%rip), %rdx     # 0x19bd4
movl %eax, (%rdx)
movq 0x10(%rcx), %rax
movq %rax, 0x14fce(%rip)     # 0x19778
movl $0x1, %esi
callq 0x3130
movl $0x1, %edi
callq 0x3330
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/except.c
// Function: rc_error
extern void rc_error(char *s) {
	pr_error(s, -1);
	set(FALSE);
	redirq = NULL;
	cond = FALSE; /* no longer inside conditional */
	rc_raise(eError);
}

// Assembly:
pushq %rax
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xc7a4
xorl %edi, %edi
callq 0xbcdc
leaq 0x152f1(%rip), %rax     # 0x19ac8
movq $0x0, (%rax)
leaq 0x167f3(%rip), %rax     # 0x1afd8
movl $0x0, (%rax)
xorl %edi, %edi
popq %rax
jmp 0x4654
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/except.c
// Function: clearflow
extern void clearflow() {
	Estack **e = &estack;
	while (*e != NULL)
		switch ((*e)->e) {
		case eBreak: case eContinue: case eReturn:
			*e = (*e)->prev;
			break;
		default:
			e = &(*e)->prev;
		}
}

// Assembly:
movq 0x14f7e(%rip), %rcx     # 0x19778
testq %rcx, %rcx
je 0x482f
leaq 0x14f72(%rip), %rdx     # 0x19778
movl $0x86, %eax
movl (%rcx), %esi
cmpl $0x7, %esi
ja 0x4820
btl %esi, %eax
jae 0x4820
movq 0x10(%rcx), %rcx
movq %rcx, (%rdx)
jmp 0x4827
addq $0x10, %rcx
movq %rcx, %rdx
movq (%rdx), %rcx
testq %rcx, %rcx
jne 0x480b
retq
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/except.c
// Function: pop_cmdarg
extern void pop_cmdarg(bool remove) {
	for (; estack != NULL; estack = estack->prev)
		switch (estack->e) {
		case eFifo:
			if (remove)
				unlink(estack->data.name);
			break;
		case eFd:
			if (remove)
				close(estack->data.fd);
			break;
		default:
			return;
		}
}

// Assembly:
movq 0x14f2c(%rip), %rax     # 0x19778
testq %rax, %rax
je 0x4893
pushq %rbx
movl %edi, %ebx
movl (%rax), %ecx
cmpl $0x6, %ecx
je 0x486f
cmpl $0x5, %ecx
jne 0x4892
testl %ebx, %ebx
je 0x487b
movq 0x8(%rax), %rdi
callq 0x3050
jmp 0x487b
testl %ebx, %ebx
je 0x487b
movl 0x8(%rax), %edi
callq 0x3170
movq 0x14ef6(%rip), %rax     # 0x19778
movq 0x10(%rax), %rax
movq %rax, 0x14eeb(%rip)     # 0x19778
testq %rax, %rax
jne 0x4854
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/except.c
// Function: sigint
extern void sigint(int s) {
	if (s != SIGINT)
		panic("s != SIGINT in sigint catcher");
	/* this is the newline you see when you hit ^C while typing a command */
	if (interactive && nl_on_intr)
		fprint(2, "\n");
	nl_on_intr = TRUE;
	redirq = NULL;
	cond = FALSE;
	rc_raise(eError);
}

// Assembly:
pushq %rax
cmpl $0x2, %edi
je 0x48a6
leaq 0xab47(%rip), %rdi      # 0xf3e8
callq 0xc83e
leaq 0x15327(%rip), %rax     # 0x19bd4
cmpl $0x0, (%rax)
je 0x48ce
cmpl $0x0, 0x14a37(%rip)     # 0x192f0
je 0x48ce
leaq 0xfcb2(%rip), %rsi      # 0x14574
movl $0x2, %edi
xorl %eax, %eax
callq 0xb06f
movl $0x1, 0x14a18(%rip)     # 0x192f0
leaq 0x151e9(%rip), %rax     # 0x19ac8
movq $0x0, (%rax)
leaq 0x166eb(%rip), %rax     # 0x1afd8
movl $0x0, (%rax)
xorl %edi, %edi
popq %rax
jmp 0x4654
nop
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/fn.c
// Function: inithandler
extern void inithandler() {
	int i;
	null.type = nBody;
	null.u[0].p = null.u[1].p = NULL;
	for (i = 1; i < NUMOFSIGNALS; i++)
		if (i != SIGCHLD && sighandlers[i] == SIG_IGN)
			fnassign(signals[i].name, NULL); /* ignore incoming ignored signals */
	if (interactive || sighandlers[SIGINT] != SIG_IGN) {
		def_sigint = sigint;
		fnrm("sigint"); /* installs SIGINT catcher if not inherited ignored */
	}
	if (!dashdee) {
		if (interactive || sighandlers[SIGQUIT] != SIG_IGN) {
			def_sigquit = dud_handler;
			fnrm("sigquit"); /* "ignores" SIGQUIT unless inherited ignored */
		}
		if (interactive) {
			def_sigterm = dud_handler;
			fnrm("sigterm"); /* ditto for SIGTERM */
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl $0x4, 0x14b85(%rip)     # 0x19780
xorps %xmm0, %xmm0
movups %xmm0, 0x14b83(%rip)    # 0x19788
xorl %r14d, %r14d
leaq 0x15991(%rip), %rbx     # 0x1a5a0
leaq 0x1473a(%rip), %r15     # 0x19350
cmpq $0x80, %r14
je 0x4c33
cmpq $0x1, 0x8(%rbx,%r14)
jne 0x4c33
movq 0x10(%r15,%r14,2), %rdi
xorl %esi, %esi
callq 0x4ccc
addq $0x8, %r14
cmpq $0x200, %r14            # imm = 0x200
jne 0x4c16
leaq 0x14f8d(%rip), %r14     # 0x19bd4
cmpl $0x0, (%r14)
jne 0x4c54
cmpq $0x1, 0x10(%rbx)
je 0x4c6e
leaq -0x3c7(%rip), %rax      # 0x4894
movq %rax, 0x14b46(%rip)     # 0x197a8
leaq 0xa7aa(%rip), %rdi      # 0xf413
callq 0x4e03
leaq 0x14f53(%rip), %rax     # 0x19bc8
cmpl $0x0, (%rax)
je 0x4c80
popq %rbx
popq %r14
popq %r15
retq
cmpl $0x0, (%r14)
jne 0x4c8d
cmpq $0x1, 0x18(%rbx)
je 0x4ca7
leaq 0x225(%rip), %rax       # 0x4eb9
movq %rax, 0x14b15(%rip)     # 0x197b0
leaq 0xa778(%rip), %rdi      # 0xf41a
callq 0x4e03
cmpl $0x0, (%r14)
je 0x4c7a
leaq 0x205(%rip), %rax       # 0x4eb9
movq %rax, 0x14afd(%rip)     # 0x197b8
leaq 0xa760(%rip), %rdi      # 0xf422
popq %rbx
popq %r14
popq %r15
jmp 0x4e03
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/fn.c
// Function: fnassign
extern void fnassign(char *name, Node *def) {
	Node *newdef = treecpy(def == NULL ? &null : def, ealloc); /* important to do the treecopy first */
	rc_Function *new = get_fn_place(name);
	int i;
	new->def = newdef;
	new->extdef = NULL;
	if (strncmp(name, "sig", conststrlen("sig")) == 0) { /* slight optimization */
		if (streq(name, "sigchld") || streq(name, "sigcld"))
			rc_error("can't trap SIGCHLD");
		if (streq(name, "sigexit"))
			runexit = TRUE;
		for (i = 1; i < NUMOFSIGNALS; i++) /* zero is a bogus signal */
			if (streq(signals[i].name, name)) {
				handlers[i] = newdef;
				if (def == NULL)
					rc_signal(i, SIG_IGN);
				else
					rc_signal(i, fn_handler);
				break;
			}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
testq %rsi, %rsi
leaq 0x14a99(%rip), %rdi     # 0x19780
cmovneq %rsi, %rdi
leaq 0x53d2(%rip), %rsi      # 0xa0c4
callq 0xc55a
movq %rax, %r15
movq %r14, %rdi
callq 0x7420
movq %r15, (%rax)
movq $0x0, 0x8(%rax)
leaq 0xa71e(%rip), %rsi      # 0xf432
movl $0x3, %edx
movq %r14, %rdi
callq 0x3060
testl %eax, %eax
jne 0x4dc0
movb (%r14), %bpl
cmpb $0x73, %bpl
jne 0x4d6a
leaq 0xa6fd(%rip), %rsi      # 0xf436
movq %r14, %rdi
callq 0x31f0
testl %eax, %eax
je 0x4d5e
cmpb $0x73, %bpl
jne 0x4d6a
leaq 0xa6ec(%rip), %rsi      # 0xf43e
movq %r14, %rdi
callq 0x31f0
testl %eax, %eax
jne 0x4d6a
leaq 0xa6e0(%rip), %rdi      # 0xf445
callq 0x47be
movb (%r14), %bpl
cmpb $0x73, %bpl
jne 0x4d8d
leaq 0xa6b0(%rip), %rsi      # 0xf42a
movq %r14, %rdi
callq 0x31f0
testl %eax, %eax
jne 0x4d8d
movb $0x1, 0x14c3b(%rip)     # 0x199c8
leaq 0x145bc(%rip), %r13     # 0x19350
addq $0x10, %r13
movl $0x1, %r12d
movq (%r13), %rdi
cmpb %bpl, (%rdi)
jne 0x4db3
movq %r14, %rsi
callq 0x31f0
testl %eax, %eax
je 0x4dcf
incq %r12
addq $0x10, %r13
cmpq $0x41, %r12
jne 0x4d9e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %rbx, %rbx
leaq 0x149e7(%rip), %rax     # 0x197c0
movq %r15, (%rax,%r12,8)
leaq 0x20b(%rip), %rax       # 0x4fef
movl $0x1, %esi
cmovneq %rax, %rsi
movl %r12d, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xbb91
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/fn.c
// Function: fnrm
extern void fnrm(char *name) {
	int i;
	for (i = 1; i < NUMOFSIGNALS; i++)
		if (streq(signals[i].name, name)) {
			handlers[i] = NULL;
			switch (i) {
			case SIGINT:
				rc_signal(i, def_sigint);
				break;
			case SIGQUIT:
				rc_signal(i, def_sigquit);
				break;
			case SIGTERM:
				rc_signal(i, def_sigterm);
				break;
			default:
				rc_signal(i, SIG_DFL);
			}
		}
	if (streq(name, "sigexit"))
		runexit = FALSE;
	delete_fn(name);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1453b(%rip), %r15     # 0x19350
addq $0x10, %r15
movl $0x1, %r14d
leaq 0x1499a(%rip), %r12     # 0x197c0
movq (%r15), %rdi
movb (%rdi), %al
cmpb (%rbx), %al
jne 0x4e7a
movq %rbx, %rsi
callq 0x31f0
testl %eax, %eax
jne 0x4e7a
movq $0x0, (%r12,%r14,8)
cmpl $0xf, %r14d
je 0x4e67
cmpl $0x3, %r14d
je 0x4e5e
cmpl $0x2, %r14d
jne 0x4e70
movq 0x1494c(%rip), %rsi     # 0x197a8
jmp 0x4e72
movq 0x1494b(%rip), %rsi     # 0x197b0
jmp 0x4e72
movq 0x1494a(%rip), %rsi     # 0x197b8
jmp 0x4e72
xorl %esi, %esi
movl %r14d, %edi
callq 0xbb91
incq %r14
addq $0x10, %r15
cmpq $0x41, %r14
jne 0x4e26
cmpb $0x73, (%rbx)
jne 0x4ea6
leaq 0xa597(%rip), %rsi      # 0xf42a
movq %rbx, %rdi
callq 0x31f0
testl %eax, %eax
jne 0x4ea6
movb $0x0, 0x14b22(%rip)     # 0x199c8
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x778c
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/fn.c
// Function: setsigdefaults
extern void setsigdefaults(bool sysvbackground) {
	int i;
	/*
	   General housekeeping: setsigdefaults happens after fork(),
	   so it's a convenient place to clean up open file descriptors.
	   (history file, scripts, etc.)
	*/
	closefds();
	/*
	   Restore signals to SIG_DFL, paying close attention to
	   a few quirks: SIGINT, SIGQUIT and are treated specially
	   depending on whether we are doing v7-style backgrounding
	   or not; the default action for SIGINT, SIGQUIT and SIGTERM
	   must be set to the appropriate action; finally, care must
	   be taken not to set to SIG_DFL any signals which are being
	   ignored.
	*/
	for (i = 1; i < NUMOFSIGNALS; i++)
		if (sighandlers[i] != SIG_IGN) {
			handlers[i] = NULL;
			switch (i) {
			case SIGINT:
				if (sysvbackground) {
					def_sigint = SIG_IGN;
					fnassign("sigint", NULL); /* ignore */
				} else {
					def_sigint = SIG_DFL;
					goto sigcommon;
				}
				break;
			case SIGQUIT:
				if (sysvbackground) {
					def_sigquit = SIG_IGN;
					fnassign("sigquit", NULL); /* ignore */
				} else {
					def_sigquit = SIG_DFL;
					goto sigcommon;
				}
				break;
			case SIGTERM:
				def_sigterm = SIG_DFL;
				/* FALLTHROUGH */
			sigcommon:
			default:
				if (sighandlers[i] != SIG_DFL) {
					rc_signal(i, SIG_DFL);
					delete_fn(signals[i].name);
				}
			}
		}
	delete_fn("sigexit");
	runexit = FALSE; /* No sigexit on subshells */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebx
callq 0x8784
leaq 0x1447d(%rip), %r13     # 0x19350
addq $0x10, %r13
movl $0x1, %r14d
leaq 0x156bc(%rip), %rbp     # 0x1a5a0
leaq 0x148d5(%rip), %r15     # 0x197c0
leaq 0x148c6(%rip), %r12     # 0x197b8
movq (%rbp,%r14,8), %rax
cmpq $0x1, %rax
je 0x4f82
movq $0x0, (%r15,%r14,8)
movq %r12, %rcx
cmpl $0xf, %r14d
je 0x4f63
cmpl $0x3, %r14d
je 0x4f3d
cmpl $0x2, %r14d
jne 0x4f6a
leaq 0x14883(%rip), %rcx     # 0x197a8
testl %ebx, %ebx
je 0x4f63
movq $0x1, 0x14874(%rip) # 0x197a8
leaq 0xa4d8(%rip), %rdi      # 0xf413
jmp 0x4f5a
leaq 0x1486c(%rip), %rcx     # 0x197b0
testl %ebx, %ebx
je 0x4f63
movq $0x1, 0x1485d(%rip) # 0x197b0
leaq 0xa4c0(%rip), %rdi      # 0xf41a
xorl %esi, %esi
callq 0x4ccc
jmp 0x4f82
movq $0x0, (%rcx)
testq %rax, %rax
je 0x4f82
movl %r14d, %edi
xorl %esi, %esi
callq 0xbb91
movq (%r13), %rdi
callq 0x778c
incq %r14
addq $0x10, %r13
cmpq $0x41, %r14
jne 0x4ef2
leaq 0xa490(%rip), %rdi      # 0xf42a
callq 0x778c
movb $0x0, 0x14a22(%rip)     # 0x199c8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/fn.c
// Function: rc_exit
extern void rc_exit(int stat) {
	if (runexit) {
		char *sig[2];
		sig[0] = "sigexit";
		sig[1] = NULL;
		runexit = FALSE;
		funcall(sig);
		stat = getstatus();
	}
	exit(stat);
}

// Assembly:
subq $0x18, %rsp
cmpb $0x1, 0x14a08(%rip)     # 0x199c8
jne 0x4fea
leaq 0xa461(%rip), %rax      # 0xf42a
movq %rsp, %rdi
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x149ea(%rip)     # 0x199c8
callq 0x34ee
callq 0xbc85
movl %eax, %edi
callq 0x3330
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/fn.c
// Function: fn_handler
static void fn_handler(int s) {
	char *sig[2];
	int olderrno;
	if (s < 1 || s >= NUMOFSIGNALS)
		panic("unknown signal");
	olderrno = errno;
	sig[0] = signals[s].name;
	sig[1] = NULL;
	funcall(sig);
	errno = olderrno;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edi, %ebx
leal -0x41(%rbx), %eax
cmpl $-0x41, %eax
ja 0x500d
leaq 0xa478(%rip), %rdi      # 0xf480
callq 0xc83e
callq 0x3040
movq %rax, %r14
movl (%rax), %ebp
movslq %ebx, %rax
shlq $0x4, %rax
leaq 0x1432b(%rip), %rcx     # 0x19350
movq (%rcx,%rax), %rax
movq %rsp, %rdi
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
callq 0x34ee
movl %ebp, (%r14)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/fn.c
// Function: fnassign_string
extern void fnassign_string(char *extdef) {
	char *name = get_name(extdef+3); /* +3 to skip over "fn_" */
	rc_Function *new;
	if (name == NULL)
		return;
	new = get_fn_place(name);
	new->def = NULL;
	new->extdef = ecpy(extdef);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
addq $0x3, %rdi
callq 0x5277
testq %rax, %rax
je 0x5093
movq %rax, %rdi
callq 0x7420
movq %rax, %r14
movq $0x0, (%rax)
movq %rbx, %rdi
callq 0x30f0
leaq 0x1(%rax), %rdi
callq 0xa0c4
movq %rax, %r15
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3070
movq %r15, 0x8(%r14)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/fn.c
// Function: fnlookup
extern Node *fnlookup(char *name) {
	rc_Function *look = lookup_fn(name);
	Node *ret;
	if (look == NULL)
		return NULL; /* not found */
	if (look->def != NULL)
		return look->def;
	if (look->extdef == NULL) /* function was set to null, e.g., fn foo {} */
		return &null;
	ret = parse_fn(look->extdef);
	if (ret == NULL) {
		efree(look->extdef);
		look->extdef = NULL;
		return &null;
	} else {
		return look->def = treecpy(ret, ealloc); /* Need to take it out of nalloc space */
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x14a2c(%rip), %rax     # 0x19ad0
movq (%rax), %rsi
callq 0x7385
testq %rax, %rax
je 0x50ed
movq %rax, %rbx
movq (%rax), %r14
testq %r14, %r14
jne 0x50f0
movq 0x8(%rbx), %rdi
leaq 0x146b9(%rip), %r14     # 0x19780
testq %rdi, %rdi
je 0x50f0
callq 0x544d
testq %rax, %rax
je 0x50fb
leaq 0x4fe7(%rip), %rsi      # 0xa0c4
movq %rax, %rdi
callq 0xc55a
movq %rax, %r14
movq %rax, (%rbx)
jmp 0x50f0
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x8(%rbx), %rdi
callq 0xa095
movq $0x0, 0x8(%rbx)
jmp 0x50f0
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/fn.c
// Function: fnlookup_string
extern char *fnlookup_string(char *name) {
	rc_Function *look = lookup_fn(name);

	if (look == NULL)
		return NULL;
	if (look->extdef != NULL)
		return look->extdef;
	return look->extdef = mprint("fn_%F={%T}", name, look->def);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x149b4(%rip), %rax     # 0x19ad0
movq (%rax), %rsi
callq 0x7385
testq %rax, %rax
je 0x514f
movq %rax, %r14
movq 0x8(%rax), %rax
testq %rax, %rax
jne 0x5151
movq (%r14), %rdx
leaq 0xa319(%rip), %rdi      # 0xf458
movq %rbx, %rsi
xorl %eax, %eax
callq 0xb181
movq %rax, 0x8(%r14)
jmp 0x5151
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/rakitzis[P]rc/fn.c
// Function: whatare_all_signals
extern void whatare_all_signals() {
	int i;
	for (i = 1; i < NUMOFSIGNALS; i++)
		if (*signals[i].name != '\0') {
			if (sighandlers[i] == SIG_IGN)
				fprint(1, "fn %s {}\n", signals[i].name);
			else if (sighandlers[i] == fn_handler)
				fprint(1, "fn %S {%T}\n", signals[i].name, handlers[i]);
			else
				fprint(1, "fn %s\n", signals[i].name);
		}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x141e5(%rip), %r12     # 0x19350
leaq 0x1542e(%rip), %r13     # 0x1a5a0
leaq 0xa2ea(%rip), %rbx      # 0xf463
leaq -0x191(%rip), %rbp      # 0x4fef
leaq 0xa2f2(%rip), %r15      # 0xf479
xorl %r14d, %r14d
movq 0x10(%r12,%r14,2), %rdx
cmpb $0x0, (%rdx)
je 0x51de
movq 0x8(%r13,%r14), %rax
cmpq $0x1, %rax
je 0x51ae
cmpq %rbp, %rax
je 0x51bf
movl $0x1, %edi
movq %r15, %rsi
jmp 0x51b6
movl $0x1, %edi
movq %rbx, %rsi
xorl %eax, %eax
callq 0xb06f
jmp 0x51de
leaq 0x145fa(%rip), %rax     # 0x197c0
movq 0x8(%r14,%rax), %rcx
movl $0x1, %edi
leaq 0xa296(%rip), %rsi      # 0xf46d
xorl %eax, %eax
callq 0xb06f
addq $0x8, %r14
cmpq $0x200, %r14            # imm = 0x200
jne 0x518a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq