// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x10bbf
jmp 0x10bb4
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x10ba3
movl -0x18(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x18(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x10da5
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movl $0xa, %esi
callq 0x11cf0
movl %eax, -0x10(%rbp)
cmpl $0x0, -0x10(%rbp)
jl 0x10c1f
movl -0x10(%rbp), %edx
shll $0x8, %edx
movl -0x18(%rbp), %eax
subl -0xc(%rbp), %eax
movslq %eax, %rcx
leaq 0xfc29(%rip), %rax      # 0x20840
movl %edx, (%rax,%rcx,4)
jmp 0x10d97
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x14(%rbp)
cmpl $0x41, -0x14(%rbp)
jge 0x10d73
movslq -0x14(%rbp), %rcx
leaq 0xe76e(%rip), %rax      # 0x1f3b0
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movsbl (%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0xc(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movsbl (%rcx), %ecx
cmpl %ecx, %eax
jne 0x10caf
movslq -0x14(%rbp), %rcx
leaq 0xe743(%rip), %rax      # 0x1f3b0
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x31e0
cmpl $0x0, %eax
jne 0x10caf
movl -0x14(%rbp), %edx
movl -0x18(%rbp), %eax
subl -0xc(%rbp), %eax
movslq %eax, %rcx
leaq 0xfba0(%rip), %rax      # 0x20840
movl %edx, (%rax,%rcx,4)
movl $0x1, -0x1c(%rbp)
jmp 0x10d73
movslq -0x14(%rbp), %rcx
leaq 0xe6f6(%rip), %rax      # 0x1f3b0
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rdi
callq 0x30f0
movq %rax, -0x28(%rbp)
movslq -0x14(%rbp), %rcx
leaq 0xe6d8(%rip), %rax      # 0x1f3b0
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movq -0x28(%rbp), %rdx
callq 0x3060
cmpl $0x0, %eax
jne 0x10d61
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0x28(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movsbl 0x98db(%rip), %ecx      # 0x1a5f2
cmpl %ecx, %eax
jne 0x10d61
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
addq -0x28(%rbp), %rdi
leaq 0x98c0(%rip), %rsi      # 0x1a5f2
callq 0x31e0
cmpl $0x0, %eax
jne 0x10d61
movl -0x14(%rbp), %edx
addl $0x80, %edx
movl -0x18(%rbp), %eax
subl -0xc(%rbp), %eax
movslq %eax, %rcx
leaq 0xfaeb(%rip), %rax      # 0x20840
movl %edx, (%rax,%rcx,4)
movl $0x1, -0x1c(%rbp)
jmp 0x10d73
jmp 0x10d63
jmp 0x10d65
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x10c2d
cmpl $0x0, -0x1c(%rbp)
jne 0x10d95
movl $0x2, %edi
leaq 0x987e(%rip), %rsi      # 0x1a603
movb $0x0, %al
callq 0xf3a0
xorl %edi, %edi
callq 0x107a0
jmp 0x10dae
jmp 0x10d97
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x10bcf
movl -0xc(%rbp), %eax
movl %eax, 0xea12(%rip)      # 0x1f7c0
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop