// File: /workspace/github_c_makefile_star2_O0/johanDa9u[P]MiniShell/src/readcmd.c
// Function: split_in_words
static char **split_in_words(char *line)
{
	char *cur = line;
	char **tab = 0;
	size_t l = 0;
	char c;

	while ((c = *cur) != 0) {
		char *w = 0;
		char *start;
		switch (c) {
		case ' ':
		case '\t':
			/* Ignore any whitespace */
			cur++;
			break;
		case '<':
			w = "<";
			cur++;
			break;
		case '>':
			w = ">";
			cur++;
			break;
		case '|':
			w = "|";
			cur++;
			break;
		default:
			/* Another word */
			start = cur;
			while (c) {
				c = *++cur;
				switch (c) {
				case 0:
				case ' ':
				case '\t':
				case '<':
				case '>':
				case '|':
					c = 0;
					break;
				default: ;
				}
			}
			w = xmalloc((cur - start + 1) * sizeof(char));
			strncpy(w, start, cur - start);
			w[cur - start] = 0;
		}
		if (w) {
			tab = xrealloc(tab, (l + 1) * sizeof(char *));
			tab[l++] = w;
		}
	}
	tab = xrealloc(tab, (l + 1) * sizeof(char *));
	tab[l++] = 0;
	return tab;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x10(%rbp), %rax
movb (%rax), %al
movb %al, -0x21(%rbp)
movsbl %al, %eax
cmpl $0x0, %eax
je 0x38de
movq $0x0, -0x30(%rbp)
movsbl -0x21(%rbp), %eax
movl %eax, -0x3c(%rbp)
subl $0x9, %eax
je 0x3787
jmp 0x375f
movl -0x3c(%rbp), %eax
subl $0x20, %eax
je 0x3787
jmp 0x3769
movl -0x3c(%rbp), %eax
subl $0x3c, %eax
je 0x3798
jmp 0x3773
movl -0x3c(%rbp), %eax
subl $0x3e, %eax
je 0x37b4
jmp 0x377d
movl -0x3c(%rbp), %eax
subl $0x7c, %eax
je 0x37d0
jmp 0x37ec
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x389e
leaq 0x2a2f(%rip), %rax      # 0x61ce
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x389e
leaq 0x2a15(%rip), %rax      # 0x61d0
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x389e
leaq 0x29fb(%rip), %rax      # 0x61d2
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x389e
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpb $0x0, -0x21(%rbp)
je 0x3857
movq -0x10(%rbp), %rax
movq %rax, %rcx
incq %rcx
movq %rcx, -0x10(%rbp)
movb 0x1(%rax), %al
movb %al, -0x21(%rbp)
movsbl -0x21(%rbp), %eax
movl %eax, -0x40(%rbp)
testl %eax, %eax
je 0x384d
jmp 0x381b
movl -0x40(%rbp), %eax
subl $0x9, %eax
je 0x384d
jmp 0x3825
movl -0x40(%rbp), %eax
subl $0x20, %eax
je 0x384d
jmp 0x382f
movl -0x40(%rbp), %eax
subl $0x3c, %eax
je 0x384d
jmp 0x3839
movl -0x40(%rbp), %eax
subl $0x3e, %eax
je 0x384d
jmp 0x3843
movl -0x40(%rbp), %eax
subl $0x7c, %eax
jne 0x3853
jmp 0x384d
movb $0x0, -0x21(%rbp)
jmp 0x3855
jmp 0x3855
jmp 0x37f4
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rax
subq %rax, %rdi
addq $0x1, %rdi
shlq $0x0, %rdi
callq 0x36e0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x38(%rbp), %rax
subq %rax, %rdx
callq 0x2070
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
movq -0x38(%rbp), %rdx
subq %rdx, %rcx
movb $0x0, (%rax,%rcx)
cmpq $0x0, -0x30(%rbp)
je 0x38d9
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
addq $0x1, %rsi
shlq $0x3, %rsi
callq 0x3920
movq %rax, -0x18(%rbp)
movq -0x30(%rbp), %rdx
movq -0x18(%rbp), %rax
movq -0x20(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x20(%rbp)
movq %rdx, (%rax,%rcx,8)
jmp 0x3734
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
addq $0x1, %rsi
shlq $0x3, %rsi
callq 0x3920
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq -0x20(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x20(%rbp)
movq $0x0, (%rax,%rcx,8)
movq -0x18(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)