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

BBITEMLISTE *item, **puffer, *merke;
BBSEQUENZLISTE *anfang;
int j, s_eintrag;

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



anfang=bbliste.sechser[sechsecke];
s_eintrag=sq.sequenz[0];
if (anfang->number_next <= s_eintrag)
  { puffer=anfang->items;
    anfang->items=(BBITEMLISTE **)malloc((s_eintrag+1)*sizeof(BBITEMLISTE *));
    if (anfang->items==NULL) { fprintf(stderr,"Can not get more memory"); exit(15); }
    for (j=0; j< anfang->number_next; j++) { anfang->items[j]=puffer[j]; }
    for (   ; j <= s_eintrag; j++) { anfang->items[j]=nil; }
    anfang->number_next=s_eintrag+1;
    free(puffer);
  }

bbliste.total_items++;
bbliste.total_maps += code[1];

if (anfang->items[s_eintrag]==nil) { item=anfang->items[s_eintrag]=bbitemalloc(); 
			              item->next_item=nil; }
   else { merke=anfang->items[s_eintrag];
	  item=anfang->items[s_eintrag]=bbitemalloc();
	  item->next_item=merke; }
if (item==NULL) { fprintf(stderr,"Can not get more memory"); exit(16); }
for (j=0; j<8; j++) item->code[j]=code[j];

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
leaq 0x10(%rbp), %rax
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movslq -0x4(%rbp), %rdx
leaq 0x20f02(%rip), %rcx     # 0x26fa0
movq 0x8(%rcx,%rdx,8), %rcx
movq %rcx, -0x30(%rbp)
movl 0x4(%rax), %eax
movl %eax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movl (%rax), %eax
cmpl -0x38(%rbp), %eax
jg 0x6189
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
movl -0x38(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x10a0
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x30(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x6112
movq 0x15f01(%rip), %rax     # 0x1bff8
movq (%rax), %rdi
leaq 0x125ea(%rip), %rsi     # 0x186eb
movb $0x0, %al
callq 0x1080
movl $0xf, %edi
callq 0x1120
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x30(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x614b
movq -0x20(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x34(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x6119
jmp 0x614d
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
jg 0x6174
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x34(%rbp), %rcx
movq $0x0, (%rax,%rcx,8)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x614d
movl -0x38(%rbp), %ecx
addl $0x1, %ecx
movq -0x30(%rbp), %rax
movl %ecx, (%rax)
movq -0x20(%rbp), %rdi
callq 0x1030
movl 0x20e11(%rip), %eax     # 0x26fa0
addl $0x1, %eax
movl %eax, 0x20e08(%rip)     # 0x26fa0
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %eax
addl 0x20dfe(%rip), %eax     # 0x26fa4
movl %eax, 0x20df8(%rip)     # 0x26fa4
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x38(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
jne 0x61e5
callq 0x5cb0
movq -0x30(%rbp), %rcx
movq 0x8(%rcx), %rcx
movslq -0x38(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq $0x0, (%rax)
jmp 0x621d
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x38(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x28(%rbp)
callq 0x5cb0
movq -0x30(%rbp), %rcx
movq 0x8(%rcx), %rcx
movslq -0x38(%rbp), %rdx
movq %rax, (%rcx,%rdx,8)
movq %rax, -0x18(%rbp)
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
cmpq $0x0, -0x18(%rbp)
jne 0x6246
movq 0x15dcd(%rip), %rax     # 0x1bff8
movq (%rax), %rdi
leaq 0x124b6(%rip), %rsi     # 0x186eb
movb $0x0, %al
callq 0x1080
movl $0x10, %edi
callq 0x1120
movl $0x0, -0x34(%rbp)
cmpl $0x8, -0x34(%rbp)
jge 0x6275
movq -0x10(%rbp), %rax
movslq -0x34(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -0x18(%rbp), %rax
movslq -0x34(%rbp), %rcx
movb %dl, 0x8(%rax,%rcx)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x624d
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)