// File: /workspace/github_c_makefile_star2_O3/mishun[P]plantri/fullgen.c
// Function: put_in_liste
void put_in_liste(int sechsecke, SEQUENZ sq, FLAECHENTYP *code, int codesize )
{

ITEMLISTE *item;
SEQUENZLISTE *anfang;
SEQUENZLISTE **puffer;
int i,j, s_eintrag;

/*schreibesequenz(sq);*/
/*schreibelistitems();*/

anfang=mapliste.sechser[sechsecke];
mapliste.total_maps++;
for (i=0; i<sq.laenge; i++)
  { s_eintrag=sq.sequenz[i];
    if (anfang->number_next <= s_eintrag)
      { puffer=anfang->next_level;
	anfang->next_level=(SEQUENZLISTE **)malloc((s_eintrag+1)*sizeof(SEQUENZLISTE *));
	if (anfang->next_level==NULL) { fprintf(stderr,"Can not get more memory"); exit(13); }
	for (j=0; j< anfang->number_next; j++) anfang->next_level[j]=puffer[j];
	for (   ; j <= s_eintrag; j++) anfang->next_level[j]=nil;
	anfang->number_next=s_eintrag+1;
	free(puffer);
      }
    if (anfang->next_level[s_eintrag]==nil)
      {	anfang->next_level[s_eintrag]=(SEQUENZLISTE *)malloc(sizeof(SEQUENZLISTE));
	if (anfang->next_level[s_eintrag]==NULL) { fprintf(stderr,"Can not get more memory"); exit(14); }
	anfang=anfang->next_level[s_eintrag];
	anfang->next_level=nil; anfang->number_next=0;
	anfang->items=anfang->last_item=nil;
      }
    else anfang=anfang->next_level[s_eintrag];
  } /* ende for */

/* jetzt muesste anfang passend stehen zum Eintragen des Codes */

if (anfang->items==nil) item=anfang->items=anfang->last_item=itemalloc(); 
   else { item=anfang->last_item->next_item=itemalloc(); 
	  anfang->last_item=item; }
item->next_item=nil;
for (j=0; j<codesize; j++) item->code[j]=code[j];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movslq %edi, %rax
leaq 0x1a5e5(%rip), %rcx     # 0x1fb50
movq 0x8(%rcx,%rax,8), %rbp
incl 0x1a5da(%rip)           # 0x1fb50
movl %edx, 0x4(%rsp)
movq %rsi, 0x8(%rsp)
movslq 0x50(%rsp), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jle 0x5667
xorl %r13d, %r13d
leaq 0x50(%rsp), %rax
movslq 0x4(%rax,%r13,4), %r12
movl 0x8(%rbp), %r15d
movq (%rbp), %r14
cmpl %r12d, %r15d
jg 0x5617
leal 0x1(%r12), %ebx
movslq %ebx, %rdi
shlq $0x3, %rdi
callq 0x10e0
movq %rax, (%rbp)
testq %rax, %rax
je 0x56c9
testl %r15d, %r15d
jle 0x55e7
xorl %eax, %eax
movq (%r14,%rax,8), %rcx
movq (%rbp), %rdx
movq %rcx, (%rdx,%rax,8)
incq %rax
cmpq %rax, %r15
jne 0x55d1
jmp 0x55ea
xorl %r15d, %r15d
cmpl %r12d, %r15d
jg 0x5608
movl %r15d, %eax
movl %ebx, %ecx
movq (%rbp), %rdx
movq $0x0, (%rdx,%rax,8)
incq %rax
cmpq %rax, %rcx
jne 0x55f4
movl %ebx, 0x8(%rbp)
movq %r14, %rdi
callq 0x1030
movq (%rbp), %r14
movq (%r14,%r12,8), %rbx
testq %rbx, %rbx
jne 0x5654
movl $0x20, %edi
callq 0x10e0
movq %rax, (%r14,%r12,8)
movq (%rbp), %rax
movq (%rax,%r12,8), %rbx
testq %rbx, %rbx
je 0x56ce
movq $0x0, (%rbx)
movl $0x0, 0x8(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
incq %r13
movq %rbx, %rbp
cmpq 0x10(%rsp), %r13
jne 0x5595
jmp 0x566a
movq %rbp, %rbx
movq 0x10(%rbx), %r14
callq 0x5507
leaq 0x18(%rbx), %rcx
testq %r14, %r14
je 0x5681
movq (%rcx), %rdx
jmp 0x568b
addq $0x10, %rbx
movq %rcx, %rdx
movq %rbx, %rcx
movq 0x8(%rsp), %rdi
movl 0x4(%rsp), %esi
movq %rax, (%rdx)
movq %rax, (%rcx)
movq $0x0, (%rax)
testl %esi, %esi
jle 0x56ba
movl %esi, %ecx
xorl %edx, %edx
movb (%rdi,%rdx), %sil
movb %sil, 0x8(%rax,%rdx)
incq %rdx
cmpq %rdx, %rcx
jne 0x56a9
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1605
callq 0x162a