// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/multiplemodel.c
// Function: extract_multiplicative_terms
char** extract_multiplicative_terms(char* st, int* count)
{
	/*!Last Changed 10.04.2005*/
	int i, len = strlen(st), parcount = 0;
	char** result = NULL;
	char tempst[READLINELENGTH];
	*count = 0;
	strcpy(tempst, "");
	for (i = 0; i < len; i++)
		 switch (st[i])
	   {
		   case 'x':
					case 'c':
					case 's':if (parcount == 0 && i != 0)															 
														 {
						          (*count)++;
		              result = alloc(result, *count * sizeof(char*), *count);
										     	result[*count - 1] = strcopy(result[*count - 1], tempst);
																sprintf(tempst, "%c", st[i]);
														 }
						        else
															 sprintf(tempst, "%s%c", tempst, st[i]);
														break;
					case '(':parcount++;
              sprintf(tempst, "%s%c", tempst, st[i]);
						        break;
					case ')':parcount--;
						        sprintf(tempst, "%s%c", tempst, st[i]);
						        break;
					default :sprintf(tempst, "%s%c", tempst, st[i]);
		 				       break;
    }
	(*count)++;
	result = alloc(result, *count * sizeof(char*), *count);
	result[*count - 1] = strcopy(result[*count - 1], tempst);
	return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x7a160, %rsp          # imm = 0x7A160
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
callq 0x4150
movl %eax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x10(%rbp), %rax
movl $0x0, (%rax)
leaq -0x7a150(%rbp), %rdi
leaq 0x830d4(%rip), %rsi     # 0xedfda
callq 0x4220
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x6b0d9
movq -0x8(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movl %eax, -0x7a154(%rbp)
subl $0x28, %eax
je 0x6b03b
jmp 0x6af3b
movl -0x7a154(%rbp), %eax
subl $0x29, %eax
je 0x6b06e
jmp 0x6af4c
movl -0x7a154(%rbp), %eax
subl $0x63, %eax
je 0x6af77
jmp 0x6af59
movl -0x7a154(%rbp), %eax
subl $0x73, %eax
je 0x6af77
jmp 0x6af66
movl -0x7a154(%rbp), %eax
subl $0x78, %eax
jne 0x6b0a1
jmp 0x6af77
cmpl $0x0, -0x1c(%rbp)
jne 0x6b00e
cmpl $0x0, -0x14(%rbp)
je 0x6b00e
movq -0x10(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rax
movslq (%rax), %rsi
shlq $0x3, %rsi
movq -0x10(%rbp), %rax
movl (%rax), %edx
callq 0x52d10
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
leaq -0x7a150(%rbp), %rsi
callq 0x54ba0
movq %rax, %rdx
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
leaq -0x7a150(%rbp), %rdi
movq -0x8(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %edx
leaq 0x7b913(%rip), %rsi     # 0xe6918
movb $0x0, %al
callq 0x4170
jmp 0x6b036
leaq -0x7a150(%rbp), %rdi
leaq -0x7a150(%rbp), %rdx
movq -0x8(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
leaq 0x781c1(%rip), %rsi     # 0xe31f0
movb $0x0, %al
callq 0x4170
jmp 0x6b0c9
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
leaq -0x7a150(%rbp), %rdi
leaq -0x7a150(%rbp), %rdx
movq -0x8(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
leaq 0x7818b(%rip), %rsi     # 0xe31f0
movb $0x0, %al
callq 0x4170
jmp 0x6b0c9
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
leaq -0x7a150(%rbp), %rdi
leaq -0x7a150(%rbp), %rdx
movq -0x8(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
leaq 0x78158(%rip), %rsi     # 0xe31f0
movb $0x0, %al
callq 0x4170
jmp 0x6b0c9
leaq -0x7a150(%rbp), %rdi
leaq -0x7a150(%rbp), %rdx
movq -0x8(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsbl (%rax,%rcx), %ecx
leaq 0x7812e(%rip), %rsi     # 0xe31f0
movb $0x0, %al
callq 0x4170
jmp 0x6b0cb
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x6af12
movq -0x10(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rax
movslq (%rax), %rsi
shlq $0x3, %rsi
movq -0x10(%rbp), %rax
movl (%rax), %edx
callq 0x52d10
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
leaq -0x7a150(%rbp), %rsi
callq 0x54ba0
movq %rax, %rdx
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x28(%rbp), %rax
addq $0x7a160, %rsp          # imm = 0x7A160
popq %rbp
retq
nopw %cs:(%rax,%rax)