// File: /workspace/github_c_makefile_star2_O0/aparrish[P]rwet-examples-c/randomize_words.c
// Function: main
int main() {

	UT_array* line_words;
	char* line, * randomized_line;
	int len;

	srand(time(NULL));

	while (!feof(stdin)) {
		len = ap_getline(&line, stdin);

		utarray_new(line_words, &ut_str_icd);

		/* tokenize line, pushing into array */
		char* word;
		word = strtok(line, " \n");
		while (word != NULL) {
			utarray_push_back(line_words, &word);
			word = strtok(NULL, " \n");
		}

		/* shuffle */
		utarray_sort(line_words, shuffle);

		join_new(&randomized_line, line_words, " ");
		printf("%s\n", randomized_line);

		utarray_free(line_words);
		free(randomized_line);
		free(line);

	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl $0x0, -0x4(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x10c0
movl %eax, %edi
callq 0x1090
movq 0x2d2a(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
callq 0x10a0
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x12cf
jmp 0x158e
movq 0x2d0a(%rip), %rax      # 0x3fe0
movq (%rax), %rsi
leaq -0x18(%rbp), %rdi
callq 0x1630
movl %eax, -0x24(%rbp)
movl $0x30, %edi
callq 0x10d0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
xorl %esi, %esi
movl $0x30, %edx
callq 0x1080
movq -0x10(%rbp), %rax
movq 0x2aa2(%rip), %rcx      # 0x3db0
movq %rcx, 0x8(%rax)
movq 0x2a9f(%rip), %rcx      # 0x3db8
movq %rcx, 0x10(%rax)
movq 0x2a9c(%rip), %rcx      # 0x3dc0
movq %rcx, 0x18(%rax)
movq 0x2a99(%rip), %rcx      # 0x3dc8
movq %rcx, 0x20(%rax)
jmp 0x1335
movq -0x18(%rbp), %rdi
leaq 0xcc4(%rip), %rsi       # 0x2004
callq 0x10f0
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x147d
jmp 0x1356
jmp 0x1358
movq -0x10(%rbp), %rax
movl (%rax), %eax
addl $0x1, %eax
movq -0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jbe 0x13e5
jmp 0x136c
movq -0x10(%rbp), %rax
movl (%rax), %eax
addl $0x1, %eax
movq -0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jbe 0x13ac
movq -0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x1396
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
shll %eax
movl %eax, -0x3c(%rbp)
jmp 0x13a0
movl $0x8, %eax
movl %eax, -0x3c(%rbp)
jmp 0x13a0
movl -0x3c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
jmp 0x136c
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rdi
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, %esi
movq -0x10(%rbp), %rax
imulq 0x8(%rax), %rsi
callq 0x10e0
movq -0x10(%rbp), %rcx
movq %rax, 0x28(%rcx)
cmpq $0x0, %rax
jne 0x13e3
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1110
jmp 0x13e5
jmp 0x13e7
movq -0x10(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0x142b
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x28(%rcx), %rdi
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
movq -0x10(%rbp), %rsi
movl (%rsi), %edx
movl %edx, %r8d
addl $0x1, %r8d
movl %r8d, (%rsi)
movl %edx, %edx
imulq %rdx, %rcx
addq %rcx, %rdi
leaq -0x30(%rbp), %rsi
callq *%rax
jmp 0x1462
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rdx
movl (%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, (%rdx)
movl %ecx, %ecx
imulq %rcx, %rax
addq %rax, %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdx
leaq -0x30(%rbp), %rsi
callq 0x10b0
jmp 0x1464
xorl %eax, %eax
movl %eax, %edi
leaq 0xb95(%rip), %rsi       # 0x2004
callq 0x10f0
movq %rax, -0x30(%rbp)
jmp 0x1349
jmp 0x147f
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rdi
movq -0x10(%rbp), %rax
movl (%rax), %eax
movl %eax, %esi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdx
leaq -0x24e(%rip), %rcx      # 0x1250
callq 0x1050
movq -0x10(%rbp), %rsi
leaq -0x20(%rbp), %rdi
leaq 0xb55(%rip), %rdx       # 0x2007
callq 0x1b40
movq -0x20(%rbp), %rsi
leaq 0xb47(%rip), %rdi       # 0x2009
movb $0x0, %al
callq 0x1070
jmp 0x14cb
movq -0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x1563
movq -0x10(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x1556
movq $0x0, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq -0x10(%rbp), %rcx
movl (%rcx), %ecx
cmpq %rcx, %rax
jae 0x1554
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x38(%rbp), %rax
movq -0x10(%rbp), %rcx
movl (%rcx), %ecx
cmpq %rcx, %rax
jae 0x1534
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
imulq -0x38(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
jmp 0x153c
xorl %eax, %eax
movq %rax, -0x50(%rbp)
jmp 0x153c
movq -0x48(%rbp), %rax
movq -0x50(%rbp), %rdi
callq *%rax
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0x14ec
jmp 0x1556
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rdi
callq 0x1030
movq -0x10(%rbp), %rax
movl $0x0, 0x4(%rax)
movq -0x10(%rbp), %rdi
callq 0x1030
movq -0x20(%rbp), %rdi
callq 0x1030
movq -0x18(%rbp), %rdi
callq 0x1030
jmp 0x12af
xorl %eax, %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)