// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/poly.c
// Function: print_polynom
void print_polynom(Polynomptr p, char* st)
{
	/*!Last Changed 23.01.2005*/
 Polynodeptr tmp;
	char literal[20], pst[READLINELENGTH];
	strcpy(st, "");
 tmp = p->start;
 while (tmp)
  {
   if (tmp->coefficient < 0)
     if (tmp->power > 1)
					 {
    			set_precision(pst, NULL, "x%d");
       sprintf(literal, pst, tmp->coefficient, tmp->power);
					 }
     else
       if (tmp->power == 1)
							 {
			      set_precision(pst, NULL, "x");
         sprintf(literal, pst, tmp->coefficient);
							 }
       else
							 {
      			set_precision(pst, NULL, NULL);
         sprintf(literal, pst, tmp->coefficient);
							 }
   else
     if (tmp->power > 1)
					 {
			    set_precision(pst, "+", "x%d");
       sprintf(literal, pst, tmp->coefficient, tmp->power);
					 }
     else
       if (tmp->power == 1)
							 {
			      set_precision(pst, "+", "x");
         sprintf(literal, pst, tmp->coefficient);
							 }
       else
							 {
			      set_precision(pst, "+", NULL);
         sprintf(literal, pst, tmp->coefficient);
							 }
   strcat(st, literal);
   tmp = tmp->next;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x7a150, %rsp          # imm = 0x7A150
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x6bc2c(%rip), %rsi     # 0xedfda
callq 0x4220
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x82569
movq -0x18(%rbp), %rax
xorps %xmm0, %xmm0
ucomisd (%rax), %xmm0
jbe 0x8248f
movq -0x18(%rbp), %rax
cmpl $0x1, 0x8(%rax)
jle 0x8241e
leaq -0x7a150(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq 0x6545b(%rip), %rdx     # 0xe7851
callq 0x53310
leaq -0x30(%rbp), %rdi
leaq -0x7a150(%rbp), %rsi
movq -0x18(%rbp), %rax
movsd (%rax), %xmm0
movq -0x18(%rbp), %rax
movl 0x8(%rax), %edx
movb $0x1, %al
callq 0x4170
jmp 0x8248a
movq -0x18(%rbp), %rax
cmpl $0x1, 0x8(%rax)
jne 0x8245b
leaq -0x7a150(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq 0x606f2(%rip), %rdx     # 0xe2b2c
callq 0x53310
leaq -0x30(%rbp), %rdi
leaq -0x7a150(%rbp), %rsi
movq -0x18(%rbp), %rax
movsd (%rax), %xmm0
movb $0x1, %al
callq 0x4170
jmp 0x82488
leaq -0x7a150(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x53310
leaq -0x30(%rbp), %rdi
leaq -0x7a150(%rbp), %rsi
movq -0x18(%rbp), %rax
movsd (%rax), %xmm0
movb $0x1, %al
callq 0x4170
jmp 0x8248a
jmp 0x8254b
movq -0x18(%rbp), %rax
cmpl $0x1, 0x8(%rax)
jle 0x824d6
leaq -0x7a150(%rbp), %rdi
leaq 0x638c0(%rip), %rsi     # 0xe5d67
leaq 0x653a3(%rip), %rdx     # 0xe7851
callq 0x53310
leaq -0x30(%rbp), %rdi
leaq -0x7a150(%rbp), %rsi
movq -0x18(%rbp), %rax
movsd (%rax), %xmm0
movq -0x18(%rbp), %rax
movl 0x8(%rax), %edx
movb $0x1, %al
callq 0x4170
jmp 0x82549
movq -0x18(%rbp), %rax
cmpl $0x1, 0x8(%rax)
jne 0x82516
leaq -0x7a150(%rbp), %rdi
leaq 0x63879(%rip), %rsi     # 0xe5d67
leaq 0x60637(%rip), %rdx     # 0xe2b2c
callq 0x53310
leaq -0x30(%rbp), %rdi
leaq -0x7a150(%rbp), %rsi
movq -0x18(%rbp), %rax
movsd (%rax), %xmm0
movb $0x1, %al
callq 0x4170
jmp 0x82547
leaq -0x7a150(%rbp), %rdi
leaq 0x63843(%rip), %rsi     # 0xe5d67
xorl %eax, %eax
movl %eax, %edx
callq 0x53310
leaq -0x30(%rbp), %rdi
leaq -0x7a150(%rbp), %rsi
movq -0x18(%rbp), %rax
movsd (%rax), %xmm0
movb $0x1, %al
callq 0x4170
jmp 0x82549
jmp 0x8254b
movq -0x10(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x41a0
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x823be
addq $0x7a150, %rsp          # imm = 0x7A150
popq %rbp
retq
nopw %cs:(%rax,%rax)