// File: /workspace/github_c_makefile_star2_O0/josch[P]stride/elem.c
// Function: FullElement
int FullElement(char *Asn1, char *Asn2, char *Asn3, int Length, char SecStrType, int ElemLength,
		 char EditChar, int *YYN, int *NYY, int *YNN, int *NNY)
{

  register int i, j, Count1, Count2, Count3;
  int Beg, ElLength;

  *YYN = 0;
  *NYY = 0;
  *YNN = 0;
  *NNY = 0;

  if( ElemLength >= Length )
    return(0);

  ElLength = ElemLength-1;
  Count1 = 0;
  Count2 = 0;
  Count3 = 0;

  Beg = -1;
  
  for( i=1; i<Length; i++ ) {
    if( ( i == 0 && 
	  ( Asn1[i] == SecStrType && Asn2[i] == SecStrType && Asn3[i] == SecStrType) ||
          ( Asn1[i] != SecStrType && Asn2[i] != SecStrType && Asn3[i] != SecStrType) )
       ||
        ( i  > 0 && 
	  ( Asn1[i] != Asn1[i-1] || Asn2[i] != Asn2[i-1] || Asn3[i] != Asn3[i-1] ) )
       ||
        i == Length-1 ) {
      
      if( Count1 >= ElLength && Count2 >= ElLength && Count3 <  ElLength ) 
	(*YYN)++;
      else
      if( Count1 <  ElLength && Count2 >= ElLength && Count3 >= ElLength ) 
	(*NYY)++;
      else
      if( Count1 >= ElLength && Count2 <  ElLength && Count3 <  ElLength ) 
	(*YNN)++;
      else
      if( Count1 <  ElLength && Count2 <  ElLength && Count3 >= ElLength ) 
	(*NNY)++;
      
/*       if( Count1 >= ElLength || Count2 >= ElLength || Count3 >= ElLength ) {
 * 	for( j=Beg-1; j<i; j++ ) {
 * 	  Asn1[j] = 'X';
 * 	  Asn2[j] = 'X';
 * 	  Asn3[j] = 'X';
 * 	}
 *       }
 * 
 */
      if( Count1 >= ElLength && ( Count2 < ElLength || Count3 < ElLength ) )
	for( j=Beg-1; j<i; j++ )
	  Asn1[j] = EditChar;

      if( Count2 >= ElLength && ( Count1 < ElLength || Count3 < ElLength ) )
	for( j=Beg-1; j<i; j++ )
	  Asn2[j] = EditChar;

      if( Count3 >= ElLength && ( Count1 < ElLength || Count2 < ElLength ) )
	for( j=Beg-1; j<i; j++ )
	  Asn3[j] = EditChar;

      Count1 = 0;
      Count2 = 0;
      Count3 = 0;
      Beg = -1;
      
    }
    else {
      if( Asn1[i] == SecStrType ) Count1++;
      if( Asn2[i] == SecStrType ) Count2++;
      if( Asn3[i] == SecStrType ) Count3++;
      if( Beg == -1 && (Count1 == 1 || Count2 == 1 || Count3 == 1) ) Beg = i;
    }
  }	

  CorrectAsn(Asn1,Length,SecStrType,EditChar,ElLength);
  CorrectAsn(Asn2,Length,SecStrType,EditChar,ElLength);
  CorrectAsn(Asn3,Length,SecStrType,EditChar,ElLength);

  return( (*YYN) * (*NYY) * (*YNN) * (*NNY) );
}

// Assembly:
subq $0x48, %rsp
movb %r8b, %al
movq 0x70(%rsp), %r8
movq 0x68(%rsp), %r8
movq 0x60(%rsp), %r8
movq 0x58(%rsp), %r8
movb 0x50(%rsp), %r8b
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdx, 0x28(%rsp)
movl %ecx, 0x24(%rsp)
movb %al, 0x23(%rsp)
movl %r9d, 0x1c(%rsp)
movq 0x58(%rsp), %rax
movl $0x0, (%rax)
movq 0x60(%rsp), %rax
movl $0x0, (%rax)
movq 0x68(%rsp), %rax
movl $0x0, (%rax)
movq 0x70(%rsp), %rax
movl $0x0, (%rax)
movl 0x1c(%rsp), %eax
cmpl 0x24(%rsp), %eax
jl 0x2711f
movl $0x0, 0x44(%rsp)
jmp 0x2755f
movl 0x1c(%rsp), %eax
subl $0x1, %eax
movl %eax, (%rsp)
movl $0x0, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movl $0x0, 0x8(%rsp)
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
movl $0x1, 0x18(%rsp)
movl 0x18(%rsp), %eax
cmpl 0x24(%rsp), %eax
jge 0x274dc
cmpl $0x0, 0x18(%rsp)
jne 0x271af
movq 0x38(%rsp), %rax
movslq 0x18(%rsp), %rcx
movsbl (%rax,%rcx), %eax
movsbl 0x23(%rsp), %ecx
cmpl %ecx, %eax
jne 0x271af
movq 0x30(%rsp), %rax
movslq 0x18(%rsp), %rcx
movsbl (%rax,%rcx), %eax
movsbl 0x23(%rsp), %ecx
cmpl %ecx, %eax
jne 0x271af
movq 0x28(%rsp), %rax
movslq 0x18(%rsp), %rcx
movsbl (%rax,%rcx), %eax
movsbl 0x23(%rsp), %ecx
cmpl %ecx, %eax
je 0x27281
movq 0x38(%rsp), %rax
movslq 0x18(%rsp), %rcx
movsbl (%rax,%rcx), %eax
movsbl 0x23(%rsp), %ecx
cmpl %ecx, %eax
je 0x271f8
movq 0x30(%rsp), %rax
movslq 0x18(%rsp), %rcx
movsbl (%rax,%rcx), %eax
movsbl 0x23(%rsp), %ecx
cmpl %ecx, %eax
je 0x271f8
movq 0x28(%rsp), %rax
movslq 0x18(%rsp), %rcx
movsbl (%rax,%rcx), %eax
movsbl 0x23(%rsp), %ecx
cmpl %ecx, %eax
jne 0x27281
cmpl $0x0, 0x18(%rsp)
jle 0x2726e
movq 0x38(%rsp), %rax
movslq 0x18(%rsp), %rcx
movsbl (%rax,%rcx), %eax
movq 0x38(%rsp), %rcx
movl 0x18(%rsp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jne 0x27281
movq 0x30(%rsp), %rax
movslq 0x18(%rsp), %rcx
movsbl (%rax,%rcx), %eax
movq 0x30(%rsp), %rcx
movl 0x18(%rsp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jne 0x27281
movq 0x28(%rsp), %rax
movslq 0x18(%rsp), %rcx
movsbl (%rax,%rcx), %eax
movq 0x28(%rsp), %rcx
movl 0x18(%rsp), %edx
subl $0x1, %edx
movslq %edx, %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jne 0x27281
movl 0x18(%rsp), %eax
movl 0x24(%rsp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x2743e
movl 0x10(%rsp), %eax
cmpl (%rsp), %eax
jl 0x272aa
movl 0xc(%rsp), %eax
cmpl (%rsp), %eax
jl 0x272aa
movl 0x8(%rsp), %eax
cmpl (%rsp), %eax
jge 0x272aa
movq 0x58(%rsp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x27329
movl 0x10(%rsp), %eax
cmpl (%rsp), %eax
jge 0x272d3
movl 0xc(%rsp), %eax
cmpl (%rsp), %eax
jl 0x272d3
movl 0x8(%rsp), %eax
cmpl (%rsp), %eax
jl 0x272d3
movq 0x60(%rsp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x27327
movl 0x10(%rsp), %eax
cmpl (%rsp), %eax
jl 0x272fc
movl 0xc(%rsp), %eax
cmpl (%rsp), %eax
jge 0x272fc
movl 0x8(%rsp), %eax
cmpl (%rsp), %eax
jge 0x272fc
movq 0x68(%rsp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x27325
movl 0x10(%rsp), %eax
cmpl (%rsp), %eax
jge 0x27323
movl 0xc(%rsp), %eax
cmpl (%rsp), %eax
jge 0x27323
movl 0x8(%rsp), %eax
cmpl (%rsp), %eax
jl 0x27323
movq 0x70(%rsp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x27325
jmp 0x27327
jmp 0x27329
movl 0x10(%rsp), %eax
cmpl (%rsp), %eax
jl 0x27379
movl 0xc(%rsp), %eax
cmpl (%rsp), %eax
jl 0x27344
movl 0x8(%rsp), %eax
cmpl (%rsp), %eax
jge 0x27379
movl 0x4(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x14(%rsp)
movl 0x14(%rsp), %eax
cmpl 0x18(%rsp), %eax
jge 0x27377
movb 0x50(%rsp), %dl
movq 0x38(%rsp), %rax
movslq 0x14(%rsp), %rcx
movb %dl, (%rax,%rcx)
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x2734f
jmp 0x27379
movl 0xc(%rsp), %eax
cmpl (%rsp), %eax
jl 0x273c9
movl 0x10(%rsp), %eax
cmpl (%rsp), %eax
jl 0x27394
movl 0x8(%rsp), %eax
cmpl (%rsp), %eax
jge 0x273c9
movl 0x4(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x14(%rsp)
movl 0x14(%rsp), %eax
cmpl 0x18(%rsp), %eax
jge 0x273c7
movb 0x50(%rsp), %dl
movq 0x30(%rsp), %rax
movslq 0x14(%rsp), %rcx
movb %dl, (%rax,%rcx)
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x2739f
jmp 0x273c9
movl 0x8(%rsp), %eax
cmpl (%rsp), %eax
jl 0x27419
movl 0x10(%rsp), %eax
cmpl (%rsp), %eax
jl 0x273e4
movl 0xc(%rsp), %eax
cmpl (%rsp), %eax
jge 0x27419
movl 0x4(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x14(%rsp)
movl 0x14(%rsp), %eax
cmpl 0x18(%rsp), %eax
jge 0x27417
movb 0x50(%rsp), %dl
movq 0x28(%rsp), %rax
movslq 0x14(%rsp), %rcx
movb %dl, (%rax,%rcx)
movl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x273ef
jmp 0x27419
movl $0x0, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movl $0x0, 0x8(%rsp)
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
jmp 0x274ca
movq 0x38(%rsp), %rax
movslq 0x18(%rsp), %rcx
movsbl (%rax,%rcx), %eax
movsbl 0x23(%rsp), %ecx
cmpl %ecx, %eax
jne 0x27460
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
movq 0x30(%rsp), %rax
movslq 0x18(%rsp), %rcx
movsbl (%rax,%rcx), %eax
movsbl 0x23(%rsp), %ecx
cmpl %ecx, %eax
jne 0x27482
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
movq 0x28(%rsp), %rax
movslq 0x18(%rsp), %rcx
movsbl (%rax,%rcx), %eax
movsbl 0x23(%rsp), %ecx
cmpl %ecx, %eax
jne 0x274a4
movl 0x8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8(%rsp)
cmpl $-0x1, 0x4(%rsp)
jne 0x274c8
cmpl $0x1, 0x10(%rsp)
je 0x274c0
cmpl $0x1, 0xc(%rsp)
je 0x274c0
cmpl $0x1, 0x8(%rsp)
jne 0x274c8
movl 0x18(%rsp), %eax
movl %eax, 0x4(%rsp)
jmp 0x274ca
jmp 0x274cc
movl 0x18(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x18(%rsp)
jmp 0x27151
movq 0x38(%rsp), %rdi
movl 0x24(%rsp), %esi
movb 0x23(%rsp), %cl
movb 0x50(%rsp), %al
movl (%rsp), %r8d
movsbl %cl, %edx
movsbl %al, %ecx
callq 0x290f0
movq 0x30(%rsp), %rdi
movl 0x24(%rsp), %esi
movb 0x23(%rsp), %cl
movb 0x50(%rsp), %al
movl (%rsp), %r8d
movsbl %cl, %edx
movsbl %al, %ecx
callq 0x290f0
movq 0x28(%rsp), %rdi
movl 0x24(%rsp), %esi
movb 0x23(%rsp), %cl
movb 0x50(%rsp), %al
movl (%rsp), %r8d
movsbl %cl, %edx
movsbl %al, %ecx
callq 0x290f0
movq 0x58(%rsp), %rax
movl (%rax), %eax
movq 0x60(%rsp), %rcx
imull (%rcx), %eax
movq 0x68(%rsp), %rcx
imull (%rcx), %eax
movq 0x70(%rsp), %rcx
imull (%rcx), %eax
movl %eax, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopl (%rax,%rax)