// File: /workspace/github_c_makefile_star2_O2/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
movq %rdx, 0x10(%rsp)
leaq 0x50(%rsp), %rdx
movslq %edi, %rax
leaq 0x1a2ca(%rip), %rcx     # 0x1db30
movq 0x8(%rcx,%rax,8), %rbp
incl 0x1a2bf(%rip)           # 0x1db30
movl (%rdx), %r15d
xorl %eax, %eax
testl %r15d, %r15d
cmovlel %eax, %r15d
movq %rsi, 0x8(%rsp)
xorl %r13d, %r13d
cmpq %r15, %r13
je 0x3946
leaq 0x50(%rsp), %rax
movslq 0x4(%rax,%r13,4), %r14
movl 0x8(%rbp), %ebx
movq (%rbp), %r12
cmpl %r14d, %ebx
jg 0x3906
leaq 0x8(,%r14,8), %rdi
callq 0x10c0
movq %rax, (%rbp)
testq %rax, %rax
je 0x39a2
movq %r14, %rax
incq %rax
testl %ebx, %ebx
movl $0x0, %ecx
cmovlel %ecx, %ebx
xorl %ecx, %ecx
cmpq %rcx, %rbx
je 0x38f2
movq (%r12,%rcx,8), %rdx
movq (%rbp), %rsi
movq %rdx, (%rsi,%rcx,8)
incq %rcx
jmp 0x38d0
movq (%rbp), %rcx
andq $0x0, (%rcx,%rbx,8)
incq %rbx
cmpq %r14, %rbx
jle 0x38e6
movl %eax, 0x8(%rbp)
movq %r12, %rdi
callq 0x1030
movq (%rbp), %r12
movq (%r12,%r14,8), %rax
testq %rax, %rax
jne 0x393b
pushq $0x20
popq %rdi
callq 0x10c0
movq %rax, (%r12,%r14,8)
movq (%rbp), %rax
movq (%rax,%r14,8), %rax
testq %rax, %rax
je 0x39c2
andq $0x0, (%rax)
andl $0x0, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
incq %r13
movq %rax, %rbp
jmp 0x3885
movq 0x10(%rbp), %rbx
callq 0x37d9
leaq 0x18(%rbp), %rcx
testq %rbx, %rbx
je 0x395d
movq (%rcx), %rdx
jmp 0x3967
addq $0x10, %rbp
movq %rcx, %rdx
movq %rbp, %rcx
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
movq %rax, (%rdx)
movq %rax, (%rcx)
andq $0x0, (%rax)
xorl %ecx, %ecx
testl %esi, %esi
cmovlel %ecx, %esi
cmpq %rcx, %rsi
je 0x3993
movb (%rdi,%rcx), %dl
movb %dl, 0x8(%rax,%rcx)
incq %rcx
jmp 0x3982
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xf64f(%rip), %rax      # 0x12ff8
movq (%rax), %rcx
leaq 0xaae1(%rip), %rdi      # 0xe494
pushq $0x17
popq %rsi
pushq $0x1
popq %rdx
callq 0x1150
pushq $0xd
jmp 0x39e0
movq 0xf62f(%rip), %rax      # 0x12ff8
movq (%rax), %rcx
leaq 0xaac1(%rip), %rdi      # 0xe494
pushq $0x17
popq %rsi
pushq $0x1
popq %rdx
callq 0x1150
pushq $0xe
popq %rdi
callq 0x1140