// File: nompelis[P]INTecplotLib/intecplot.cpp
// Function: inTec_Zone::HandleKeyword_Zonetype(char const*)
int inTec_Zone::HandleKeyword_Zonetype( const char *string )
{
#ifdef _DEBUG_
   printf(" i Inside HandleKeyword_Zonetype() \n");
#endif
   int iret=1;

   size_t is=0;
   while( string[is] != '\0' && string[is] != '\n' ) ++is;
   if( is < 7 ) return(1);

   if( is == 7 ) {
      if( strncasecmp( string, "ORDERED", 7 ) == 0 ) {
         ietype = ORDERED;
         iret = 0;
      }
      if( strncasecmp( string, "FEBRICK", 7 ) == 0 ) {
         ietype = FEBRICK;
         iret = 0;
      }
   }

   if( is == 9 ) {
      if( strncasecmp( string, "FELINESEG", 9 ) == 0 ) {
         ietype = FELINESEG;
         iret = 0;
      }
      if( strncasecmp( string, "FEPOLYGON", 9 ) == 0 ) {
         ietype = FEPOLYGON;
         iret = 0;
      }
   }

   if( is == 10 ) {
      if( strncasecmp( string, "FETRIANGLE", 10 ) == 0 ) {
         ietype = FETRIANGLE;
         iret = 0;
      }
   }

   if( is == 12 ) {
      if( strncasecmp( string, "FEPOLYHEDRAL", 12 ) == 0 ) {
         ietype = FEPOLYHEDRAL;
         iret = 0;
      }
   }

   if( is == 13 ) {
      if( strncasecmp( string, "FETETRAHEDRON", 13 ) == 0 ) {
         ietype = FETETRAHEDRON;
         iret = 0;
      }
   }

   if( is == 15 ) {
      if( strncasecmp( string, "FEQUADRILATERAL", 15 ) == 0 ) {
         ietype = FEQUADRILATERAL;
         iret = 0;
      }
   }

#ifdef _DEBUG_
   printf(" i Exiting HandleKeyword_Zonetype() (return %d) \n",iret);
#endif
   return( iret );
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0xffa6(%rip), %rdi      # 0x288e5
movb $0x0, %al
callq 0x13070
movl $0x1, 0x1c(%rsp)
movq $0x0, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq 0x10(%rsp), %rcx
movsbl (%rax,%rcx), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, 0x7(%rsp)
je 0x18988
movq 0x20(%rsp), %rax
movq 0x10(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0xa, %eax
setne %al
movb %al, 0x7(%rsp)
movb 0x7(%rsp), %al
testb $0x1, %al
jne 0x18992
jmp 0x189a2
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x18957
cmpq $0x7, 0x10(%rsp)
jae 0x189b7
movl $0x1, 0x34(%rsp)
jmp 0x18b85
cmpq $0x7, 0x10(%rsp)
jne 0x18a1f
movq 0x20(%rsp), %rdi
leaq 0xf788(%rip), %rsi      # 0x28153
movl $0x7, %edx
callq 0x144c0
cmpl $0x0, %eax
jne 0x189ee
movq 0x8(%rsp), %rax
movl $0x0, 0x18(%rax)
movl $0x0, 0x1c(%rsp)
movq 0x20(%rsp), %rdi
leaq 0xff10(%rip), %rsi      # 0x2890a
movl $0x7, %edx
callq 0x144c0
cmpl $0x0, %eax
jne 0x18a1d
movq 0x8(%rsp), %rax
movl $0x6, 0x18(%rax)
movl $0x0, 0x1c(%rsp)
jmp 0x18a1f
cmpq $0x9, 0x10(%rsp)
jne 0x18a87
movq 0x20(%rsp), %rdi
leaq 0xfedf(%rip), %rsi      # 0x28912
movl $0x9, %edx
callq 0x144c0
cmpl $0x0, %eax
jne 0x18a56
movq 0x8(%rsp), %rax
movl $0x1, 0x18(%rax)
movl $0x0, 0x1c(%rsp)
movq 0x20(%rsp), %rdi
leaq 0xfeba(%rip), %rsi      # 0x2891c
movl $0x9, %edx
callq 0x144c0
cmpl $0x0, %eax
jne 0x18a85
movq 0x8(%rsp), %rax
movl $0x4, 0x18(%rax)
movl $0x0, 0x1c(%rsp)
jmp 0x18a87
cmpq $0xa, 0x10(%rsp)
jne 0x18ac0
movq 0x20(%rsp), %rdi
leaq 0xfe8b(%rip), %rsi      # 0x28926
movl $0xa, %edx
callq 0x144c0
cmpl $0x0, %eax
jne 0x18abe
movq 0x8(%rsp), %rax
movl $0x2, 0x18(%rax)
movl $0x0, 0x1c(%rsp)
jmp 0x18ac0
cmpq $0xc, 0x10(%rsp)
jne 0x18af9
movq 0x20(%rsp), %rdi
leaq 0xfe5d(%rip), %rsi      # 0x28931
movl $0xc, %edx
callq 0x144c0
cmpl $0x0, %eax
jne 0x18af7
movq 0x8(%rsp), %rax
movl $0x7, 0x18(%rax)
movl $0x0, 0x1c(%rsp)
jmp 0x18af9
cmpq $0xd, 0x10(%rsp)
jne 0x18b32
movq 0x20(%rsp), %rdi
leaq 0xfe31(%rip), %rsi      # 0x2893e
movl $0xd, %edx
callq 0x144c0
cmpl $0x0, %eax
jne 0x18b30
movq 0x8(%rsp), %rax
movl $0x5, 0x18(%rax)
movl $0x0, 0x1c(%rsp)
jmp 0x18b32
cmpq $0xf, 0x10(%rsp)
jne 0x18b6b
movq 0x20(%rsp), %rdi
leaq 0xfe06(%rip), %rsi      # 0x2894c
movl $0xf, %edx
callq 0x144c0
cmpl $0x0, %eax
jne 0x18b69
movq 0x8(%rsp), %rax
movl $0x3, 0x18(%rax)
movl $0x0, 0x1c(%rsp)
jmp 0x18b6b
movl 0x1c(%rsp), %esi
leaq 0xfde6(%rip), %rdi      # 0x2895c
movb $0x0, %al
callq 0x13070
movl 0x1c(%rsp), %eax
movl %eax, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nop