
int find_cipher_any(char *name,int blocklen,int keylen)

{
  int iVar1;
  long *plVar2;
  
  if ((name == (char *)0x0) || (iVar1 = find_cipher(name), iVar1 == -1)) {
    iVar1 = 0;
    plVar2 = (long *)PTR_cipher_descriptor_001dfee8;
    do {
      if (((*plVar2 != 0) && (blocklen <= *(int *)((long)plVar2 + 0x14))) &&
         (keylen <= (int)plVar2[2])) {
        return iVar1;
      }
      if (((plVar2[0x18] != 0) && (blocklen <= *(int *)((long)plVar2 + 0xd4))) &&
         (keylen <= (int)plVar2[0x1a])) {
        return iVar1 + 1;
      }
      if (((plVar2[0x30] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x194))) &&
         (keylen <= (int)plVar2[0x32])) {
        return iVar1 + 2;
      }
      if (((plVar2[0x48] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x254))) &&
         (keylen <= (int)plVar2[0x4a])) {
        return iVar1 + 3;
      }
      if (((plVar2[0x60] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x314))) &&
         (keylen <= (int)plVar2[0x62])) {
        return iVar1 + 4;
      }
      if (((plVar2[0x78] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x3d4))) &&
         (keylen <= (int)plVar2[0x7a])) {
        return iVar1 + 5;
      }
      if (((plVar2[0x90] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x494))) &&
         (keylen <= (int)plVar2[0x92])) {
        return iVar1 + 6;
      }
      if (((plVar2[0xa8] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x554))) &&
         (keylen <= (int)plVar2[0xaa])) {
        return iVar1 + 7;
      }
      iVar1 = iVar1 + 8;
      plVar2 = plVar2 + 0xc0;
    } while (iVar1 != 0x20);
    iVar1 = -1;
  }
  return iVar1;
}



ulong find_cipher_any(long param_1,int param_2,int param_3)

{
  int iVar1;
  ulong uVar2;
  long *plVar3;
  
  if ((param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1)) {
    uVar2 = 0;
    plVar3 = (long *)PTR_cipher_descriptor_001dfee8;
    do {
      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&
         (param_3 <= (int)plVar3[2])) {
        return uVar2;
      }
      iVar1 = (int)uVar2;
      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&
         (param_3 <= (int)plVar3[0x1a])) {
        return (ulong)(iVar1 + 1);
      }
      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&
         (param_3 <= (int)plVar3[0x32])) {
        return (ulong)(iVar1 + 2);
      }
      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&
         (param_3 <= (int)plVar3[0x4a])) {
        return (ulong)(iVar1 + 3);
      }
      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&
         (param_3 <= (int)plVar3[0x62])) {
        return (ulong)(iVar1 + 4);
      }
      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&
         (param_3 <= (int)plVar3[0x7a])) {
        return (ulong)(iVar1 + 5);
      }
      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&
         (param_3 <= (int)plVar3[0x92])) {
        return (ulong)(iVar1 + 6);
      }
      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&
         (param_3 <= (int)plVar3[0xaa])) {
        return (ulong)(iVar1 + 7);
      }
      uVar2 = (ulong)(iVar1 + 8U);
      plVar3 = plVar3 + 0xc0;
    } while (iVar1 + 8U != 0x20);
    uVar2 = 0xffffffff;
  }
  return uVar2;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV EBX,ESI
MOV EBP,EDX
TEST RDI,RDI
JZ 0x00166136
CALL 0x00114ec0
CMP EAX,-0x1
JNZ 0x00166149
MOV RSI,qword ptr [0x001dfee8]
MOV EAX,0x0
JMP 0x0016615f
MOV EAX,0xffffffff
ADD RSP,0x8
POP RBX
POP RBP
RET
LEA EAX,[RCX + 0x7]
LEA RSI,[RDI + 0x540]
CMP EAX,0x20
JZ 0x00166144
CMP qword ptr [RSI],0x0
JZ 0x0016616f
CMP dword ptr [RSI + 0x14],EBX
JL 0x0016616f
CMP dword ptr [RSI + 0x10],EBP
JGE 0x00166149
LEA ECX,[RAX + 0x1]
MOV EAX,ECX
LEA RDI,[RSI + 0xc0]
CMP qword ptr [RSI + 0xc0],0x0
JZ 0x0016618f
CMP dword ptr [RDI + 0x14],EBX
JL 0x0016618f
CMP dword ptr [RDI + 0x10],EBP
JGE 0x00166149
LEA EAX,[RCX + 0x1]
CMP qword ptr [RDI + 0xc0],0x0
JZ 0x001661ac
CMP dword ptr [RDI + 0xd4],EBX
JL 0x001661ac
CMP dword ptr [RDI + 0xd0],EBP
JGE 0x00166149
LEA EAX,[RCX + 0x2]
CMP qword ptr [RDI + 0x180],0x0
JZ 0x001661c9
CMP dword ptr [RDI + 0x194],EBX
JL 0x001661c9
CMP dword ptr [RDI + 0x190],EBP
JGE 0x00166149
LEA EAX,[RCX + 0x3]
CMP qword ptr [RDI + 0x240],0x0
JZ 0x001661ea
CMP dword ptr [RDI + 0x254],EBX
JL 0x001661ea
CMP dword ptr [RDI + 0x250],EBP
JGE 0x00166149
LEA EAX,[RCX + 0x4]
CMP qword ptr [RDI + 0x300],0x0
JZ 0x0016620b
CMP dword ptr [RDI + 0x314],EBX
JL 0x0016620b
CMP dword ptr [RDI + 0x310],EBP
JGE 0x00166149
LEA EAX,[RCX + 0x5]
CMP qword ptr [RDI + 0x3c0],0x0
JZ 0x0016622c
CMP dword ptr [RDI + 0x3d4],EBX
JL 0x0016622c
CMP dword ptr [RDI + 0x3d0],EBP
JGE 0x00166149
LEA EAX,[RCX + 0x6]
CMP qword ptr [RDI + 0x480],0x0
JZ 0x00166150
CMP dword ptr [RDI + 0x494],EBX
JL 0x00166150
CMP dword ptr [RDI + 0x490],EBP
JL 0x00166150
JMP 0x00166149
(translation_unit "ulong find_cipher_any(long param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  ulong uVar2;\n  long *plVar3;\n  \n  if ((param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1)) {\n    uVar2 = 0;\n    plVar3 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    } while (iVar1 + 8U != 0x20);\n    uVar2 = 0xffffffff;\n  }\n  return uVar2;\n}\n\n" (function_definition "ulong find_cipher_any(long param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  ulong uVar2;\n  long *plVar3;\n  \n  if ((param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1)) {\n    uVar2 = 0;\n    plVar3 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    } while (iVar1 + 8U != 0x20);\n    uVar2 = 0xffffffff;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "find_cipher_any(long param_1,int param_2,int param_3)" identifier (parameter_list "(long param_1,int param_2,int param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  long *plVar3;\n  \n  if ((param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1)) {\n    uVar2 = 0;\n    plVar3 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    } while (iVar1 + 8U != 0x20);\n    uVar2 = 0xffffffff;\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (if_statement "if ((param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1)) {\n    uVar2 = 0;\n    plVar3 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    } while (iVar1 + 8U != 0x20);\n    uVar2 = 0xffffffff;\n  }" if (parenthesized_expression "((param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1))" ( (binary_expression "(param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar2 = find_cipher(), (int)uVar2 == -1)" ( (comma_expression "uVar2 = find_cipher(), (int)uVar2 == -1" (assignment_expression "uVar2 = find_cipher()" identifier = (call_expression "find_cipher()" identifier (argument_list "()" ( )))) , (binary_expression "(int)uVar2 == -1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal)) ))) )) (compound_statement "{\n    uVar2 = 0;\n    plVar3 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    } while (iVar1 + 8U != 0x20);\n    uVar2 = 0xffffffff;\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "plVar3 = (long *)PTR_cipher_descriptor_001dfee8;" (assignment_expression "plVar3 = (long *)PTR_cipher_descriptor_001dfee8" identifier = (cast_expression "(long *)PTR_cipher_descriptor_001dfee8" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    } while (iVar1 + 8U != 0x20);" do (compound_statement "{\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    }" { (if_statement "if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }" if (parenthesized_expression "(((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2]))" ( (binary_expression "((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])" (parenthesized_expression "((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14)))" ( (binary_expression "(*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))" (parenthesized_expression "(*plVar3 != 0)" ( (binary_expression "*plVar3 != 0" (pointer_expression "*plVar3" * identifier) != number_literal) )) && (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x14))" ( (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x14)" identifier <= (pointer_expression "*(int *)((long)plVar3 + 0x14)" * (cast_expression "(int *)((long)plVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar3 + 0x14)" ( (binary_expression "(long)plVar3 + 0x14" (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(param_3 <= (int)plVar3[2])" ( (binary_expression "param_3 <= (int)plVar3[2]" identifier <= (cast_expression "(int)plVar3[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar3[2]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return uVar2;\n      }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "iVar1 = (int)uVar2;" (assignment_expression "iVar1 = (int)uVar2" identifier = (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }" if (parenthesized_expression "(((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a]))" ( (binary_expression "((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])" (parenthesized_expression "((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4)))" ( (binary_expression "(plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))" (parenthesized_expression "(plVar3[0x18] != 0)" ( (binary_expression "plVar3[0x18] != 0" (subscript_expression "plVar3[0x18]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0xd4))" ( (binary_expression "param_2 <= *(int *)((long)plVar3 + 0xd4)" identifier <= (pointer_expression "*(int *)((long)plVar3 + 0xd4)" * (cast_expression "(int *)((long)plVar3 + 0xd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar3 + 0xd4)" ( (binary_expression "(long)plVar3 + 0xd4" (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(param_3 <= (int)plVar3[0x1a])" ( (binary_expression "param_3 <= (int)plVar3[0x1a]" identifier <= (cast_expression "(int)plVar3[0x1a]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar3[0x1a]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return (ulong)(iVar1 + 1);\n      }" { (return_statement "return (ulong)(iVar1 + 1);" return (call_expression "(ulong)(iVar1 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) ))) ;) })) (if_statement "if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }" if (parenthesized_expression "(((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32]))" ( (binary_expression "((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])" (parenthesized_expression "((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194)))" ( (binary_expression "(plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))" (parenthesized_expression "(plVar3[0x30] != 0)" ( (binary_expression "plVar3[0x30] != 0" (subscript_expression "plVar3[0x30]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x194))" ( (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x194)" identifier <= (pointer_expression "*(int *)((long)plVar3 + 0x194)" * (cast_expression "(int *)((long)plVar3 + 0x194)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar3 + 0x194)" ( (binary_expression "(long)plVar3 + 0x194" (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(param_3 <= (int)plVar3[0x32])" ( (binary_expression "param_3 <= (int)plVar3[0x32]" identifier <= (cast_expression "(int)plVar3[0x32]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar3[0x32]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return (ulong)(iVar1 + 2);\n      }" { (return_statement "return (ulong)(iVar1 + 2);" return (call_expression "(ulong)(iVar1 + 2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 + 2)" ( (binary_expression "iVar1 + 2" identifier + number_literal) ))) ;) })) (if_statement "if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }" if (parenthesized_expression "(((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a]))" ( (binary_expression "((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])" (parenthesized_expression "((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254)))" ( (binary_expression "(plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))" (parenthesized_expression "(plVar3[0x48] != 0)" ( (binary_expression "plVar3[0x48] != 0" (subscript_expression "plVar3[0x48]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x254))" ( (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x254)" identifier <= (pointer_expression "*(int *)((long)plVar3 + 0x254)" * (cast_expression "(int *)((long)plVar3 + 0x254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar3 + 0x254)" ( (binary_expression "(long)plVar3 + 0x254" (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(param_3 <= (int)plVar3[0x4a])" ( (binary_expression "param_3 <= (int)plVar3[0x4a]" identifier <= (cast_expression "(int)plVar3[0x4a]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar3[0x4a]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return (ulong)(iVar1 + 3);\n      }" { (return_statement "return (ulong)(iVar1 + 3);" return (call_expression "(ulong)(iVar1 + 3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 + 3)" ( (binary_expression "iVar1 + 3" identifier + number_literal) ))) ;) })) (if_statement "if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }" if (parenthesized_expression "(((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62]))" ( (binary_expression "((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])" (parenthesized_expression "((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314)))" ( (binary_expression "(plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))" (parenthesized_expression "(plVar3[0x60] != 0)" ( (binary_expression "plVar3[0x60] != 0" (subscript_expression "plVar3[0x60]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x314))" ( (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x314)" identifier <= (pointer_expression "*(int *)((long)plVar3 + 0x314)" * (cast_expression "(int *)((long)plVar3 + 0x314)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar3 + 0x314)" ( (binary_expression "(long)plVar3 + 0x314" (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(param_3 <= (int)plVar3[0x62])" ( (binary_expression "param_3 <= (int)plVar3[0x62]" identifier <= (cast_expression "(int)plVar3[0x62]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar3[0x62]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return (ulong)(iVar1 + 4);\n      }" { (return_statement "return (ulong)(iVar1 + 4);" return (call_expression "(ulong)(iVar1 + 4)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))) ;) })) (if_statement "if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }" if (parenthesized_expression "(((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a]))" ( (binary_expression "((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])" (parenthesized_expression "((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4)))" ( (binary_expression "(plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))" (parenthesized_expression "(plVar3[0x78] != 0)" ( (binary_expression "plVar3[0x78] != 0" (subscript_expression "plVar3[0x78]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x3d4))" ( (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x3d4)" identifier <= (pointer_expression "*(int *)((long)plVar3 + 0x3d4)" * (cast_expression "(int *)((long)plVar3 + 0x3d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar3 + 0x3d4)" ( (binary_expression "(long)plVar3 + 0x3d4" (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(param_3 <= (int)plVar3[0x7a])" ( (binary_expression "param_3 <= (int)plVar3[0x7a]" identifier <= (cast_expression "(int)plVar3[0x7a]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar3[0x7a]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return (ulong)(iVar1 + 5);\n      }" { (return_statement "return (ulong)(iVar1 + 5);" return (call_expression "(ulong)(iVar1 + 5)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 + 5)" ( (binary_expression "iVar1 + 5" identifier + number_literal) ))) ;) })) (if_statement "if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }" if (parenthesized_expression "(((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92]))" ( (binary_expression "((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])" (parenthesized_expression "((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494)))" ( (binary_expression "(plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))" (parenthesized_expression "(plVar3[0x90] != 0)" ( (binary_expression "plVar3[0x90] != 0" (subscript_expression "plVar3[0x90]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x494))" ( (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x494)" identifier <= (pointer_expression "*(int *)((long)plVar3 + 0x494)" * (cast_expression "(int *)((long)plVar3 + 0x494)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar3 + 0x494)" ( (binary_expression "(long)plVar3 + 0x494" (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(param_3 <= (int)plVar3[0x92])" ( (binary_expression "param_3 <= (int)plVar3[0x92]" identifier <= (cast_expression "(int)plVar3[0x92]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar3[0x92]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return (ulong)(iVar1 + 6);\n      }" { (return_statement "return (ulong)(iVar1 + 6);" return (call_expression "(ulong)(iVar1 + 6)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 + 6)" ( (binary_expression "iVar1 + 6" identifier + number_literal) ))) ;) })) (if_statement "if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }" if (parenthesized_expression "(((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa]))" ( (binary_expression "((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])" (parenthesized_expression "((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554)))" ( (binary_expression "(plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))" (parenthesized_expression "(plVar3[0xa8] != 0)" ( (binary_expression "plVar3[0xa8] != 0" (subscript_expression "plVar3[0xa8]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x554))" ( (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x554)" identifier <= (pointer_expression "*(int *)((long)plVar3 + 0x554)" * (cast_expression "(int *)((long)plVar3 + 0x554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar3 + 0x554)" ( (binary_expression "(long)plVar3 + 0x554" (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(param_3 <= (int)plVar3[0xaa])" ( (binary_expression "param_3 <= (int)plVar3[0xaa]" identifier <= (cast_expression "(int)plVar3[0xaa]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar3[0xaa]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return (ulong)(iVar1 + 7);\n      }" { (return_statement "return (ulong)(iVar1 + 7);" return (call_expression "(ulong)(iVar1 + 7)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 + 7)" ( (binary_expression "iVar1 + 7" identifier + number_literal) ))) ;) })) (expression_statement "uVar2 = (ulong)(iVar1 + 8U);" (assignment_expression "uVar2 = (ulong)(iVar1 + 8U)" identifier = (call_expression "(ulong)(iVar1 + 8U)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 + 8U)" ( (binary_expression "iVar1 + 8U" identifier + number_literal) )))) ;) (expression_statement "plVar3 = plVar3 + 0xc0;" (assignment_expression "plVar3 = plVar3 + 0xc0" identifier = (binary_expression "plVar3 + 0xc0" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 + 8U != 0x20)" ( (binary_expression "iVar1 + 8U != 0x20" (binary_expression "iVar1 + 8U" identifier + number_literal) != number_literal) )) ;) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "int find_cipher_any(char *name,int blocklen,int keylen)\n\n{\n  int iVar1;\n  long *plVar2;\n  \n  if ((name == (char *)0x0) || (iVar1 = find_cipher(name), iVar1 == -1)) {\n    iVar1 = 0;\n    plVar2 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar2 != 0) && (blocklen <= *(int *)((long)plVar2 + 0x14))) &&\n         (keylen <= (int)plVar2[2])) {\n        return iVar1;\n      }\n      if (((plVar2[0x18] != 0) && (blocklen <= *(int *)((long)plVar2 + 0xd4))) &&\n         (keylen <= (int)plVar2[0x1a])) {\n        return iVar1 + 1;\n      }\n      if (((plVar2[0x30] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x194))) &&\n         (keylen <= (int)plVar2[0x32])) {\n        return iVar1 + 2;\n      }\n      if (((plVar2[0x48] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x254))) &&\n         (keylen <= (int)plVar2[0x4a])) {\n        return iVar1 + 3;\n      }\n      if (((plVar2[0x60] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x314))) &&\n         (keylen <= (int)plVar2[0x62])) {\n        return iVar1 + 4;\n      }\n      if (((plVar2[0x78] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x3d4))) &&\n         (keylen <= (int)plVar2[0x7a])) {\n        return iVar1 + 5;\n      }\n      if (((plVar2[0x90] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x494))) &&\n         (keylen <= (int)plVar2[0x92])) {\n        return iVar1 + 6;\n      }\n      if (((plVar2[0xa8] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x554))) &&\n         (keylen <= (int)plVar2[0xaa])) {\n        return iVar1 + 7;\n      }\n      iVar1 = iVar1 + 8;\n      plVar2 = plVar2 + 0xc0;\n    } while (iVar1 != 0x20);\n    iVar1 = -1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int find_cipher_any(char *name,int blocklen,int keylen)\n\n{\n  int iVar1;\n  long *plVar2;\n  \n  if ((name == (char *)0x0) || (iVar1 = find_cipher(name), iVar1 == -1)) {\n    iVar1 = 0;\n    plVar2 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar2 != 0) && (blocklen <= *(int *)((long)plVar2 + 0x14))) &&\n         (keylen <= (int)plVar2[2])) {\n        return iVar1;\n      }\n      if (((plVar2[0x18] != 0) && (blocklen <= *(int *)((long)plVar2 + 0xd4))) &&\n         (keylen <= (int)plVar2[0x1a])) {\n        return iVar1 + 1;\n      }\n      if (((plVar2[0x30] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x194))) &&\n         (keylen <= (int)plVar2[0x32])) {\n        return iVar1 + 2;\n      }\n      if (((plVar2[0x48] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x254))) &&\n         (keylen <= (int)plVar2[0x4a])) {\n        return iVar1 + 3;\n      }\n      if (((plVar2[0x60] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x314))) &&\n         (keylen <= (int)plVar2[0x62])) {\n        return iVar1 + 4;\n      }\n      if (((plVar2[0x78] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x3d4))) &&\n         (keylen <= (int)plVar2[0x7a])) {\n        return iVar1 + 5;\n      }\n      if (((plVar2[0x90] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x494))) &&\n         (keylen <= (int)plVar2[0x92])) {\n        return iVar1 + 6;\n      }\n      if (((plVar2[0xa8] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x554))) &&\n         (keylen <= (int)plVar2[0xaa])) {\n        return iVar1 + 7;\n      }\n      iVar1 = iVar1 + 8;\n      plVar2 = plVar2 + 0xc0;\n    } while (iVar1 != 0x20);\n    iVar1 = -1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "find_cipher_any(char *name,int blocklen,int keylen)" identifier (parameter_list "(char *name,int blocklen,int keylen)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "int blocklen" primitive_type identifier) , (parameter_declaration "int keylen" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  long *plVar2;\n  \n  if ((name == (char *)0x0) || (iVar1 = find_cipher(name), iVar1 == -1)) {\n    iVar1 = 0;\n    plVar2 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar2 != 0) && (blocklen <= *(int *)((long)plVar2 + 0x14))) &&\n         (keylen <= (int)plVar2[2])) {\n        return iVar1;\n      }\n      if (((plVar2[0x18] != 0) && (blocklen <= *(int *)((long)plVar2 + 0xd4))) &&\n         (keylen <= (int)plVar2[0x1a])) {\n        return iVar1 + 1;\n      }\n      if (((plVar2[0x30] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x194))) &&\n         (keylen <= (int)plVar2[0x32])) {\n        return iVar1 + 2;\n      }\n      if (((plVar2[0x48] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x254))) &&\n         (keylen <= (int)plVar2[0x4a])) {\n        return iVar1 + 3;\n      }\n      if (((plVar2[0x60] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x314))) &&\n         (keylen <= (int)plVar2[0x62])) {\n        return iVar1 + 4;\n      }\n      if (((plVar2[0x78] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x3d4))) &&\n         (keylen <= (int)plVar2[0x7a])) {\n        return iVar1 + 5;\n      }\n      if (((plVar2[0x90] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x494))) &&\n         (keylen <= (int)plVar2[0x92])) {\n        return iVar1 + 6;\n      }\n      if (((plVar2[0xa8] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x554))) &&\n         (keylen <= (int)plVar2[0xaa])) {\n        return iVar1 + 7;\n      }\n      iVar1 = iVar1 + 8;\n      plVar2 = plVar2 + 0xc0;\n    } while (iVar1 != 0x20);\n    iVar1 = -1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (if_statement "if ((name == (char *)0x0) || (iVar1 = find_cipher(name), iVar1 == -1)) {\n    iVar1 = 0;\n    plVar2 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar2 != 0) && (blocklen <= *(int *)((long)plVar2 + 0x14))) &&\n         (keylen <= (int)plVar2[2])) {\n        return iVar1;\n      }\n      if (((plVar2[0x18] != 0) && (blocklen <= *(int *)((long)plVar2 + 0xd4))) &&\n         (keylen <= (int)plVar2[0x1a])) {\n        return iVar1 + 1;\n      }\n      if (((plVar2[0x30] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x194))) &&\n         (keylen <= (int)plVar2[0x32])) {\n        return iVar1 + 2;\n      }\n      if (((plVar2[0x48] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x254))) &&\n         (keylen <= (int)plVar2[0x4a])) {\n        return iVar1 + 3;\n      }\n      if (((plVar2[0x60] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x314))) &&\n         (keylen <= (int)plVar2[0x62])) {\n        return iVar1 + 4;\n      }\n      if (((plVar2[0x78] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x3d4))) &&\n         (keylen <= (int)plVar2[0x7a])) {\n        return iVar1 + 5;\n      }\n      if (((plVar2[0x90] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x494))) &&\n         (keylen <= (int)plVar2[0x92])) {\n        return iVar1 + 6;\n      }\n      if (((plVar2[0xa8] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x554))) &&\n         (keylen <= (int)plVar2[0xaa])) {\n        return iVar1 + 7;\n      }\n      iVar1 = iVar1 + 8;\n      plVar2 = plVar2 + 0xc0;\n    } while (iVar1 != 0x20);\n    iVar1 = -1;\n  }" if (parenthesized_expression "((name == (char *)0x0) || (iVar1 = find_cipher(name), iVar1 == -1))" ( (binary_expression "(name == (char *)0x0) || (iVar1 = find_cipher(name), iVar1 == -1)" (parenthesized_expression "(name == (char *)0x0)" ( (binary_expression "name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar1 = find_cipher(name), iVar1 == -1)" ( (comma_expression "iVar1 = find_cipher(name), iVar1 == -1" (assignment_expression "iVar1 = find_cipher(name)" identifier = (call_expression "find_cipher(name)" identifier (argument_list "(name)" ( identifier )))) , (binary_expression "iVar1 == -1" identifier == number_literal)) ))) )) (compound_statement "{\n    iVar1 = 0;\n    plVar2 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar2 != 0) && (blocklen <= *(int *)((long)plVar2 + 0x14))) &&\n         (keylen <= (int)plVar2[2])) {\n        return iVar1;\n      }\n      if (((plVar2[0x18] != 0) && (blocklen <= *(int *)((long)plVar2 + 0xd4))) &&\n         (keylen <= (int)plVar2[0x1a])) {\n        return iVar1 + 1;\n      }\n      if (((plVar2[0x30] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x194))) &&\n         (keylen <= (int)plVar2[0x32])) {\n        return iVar1 + 2;\n      }\n      if (((plVar2[0x48] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x254))) &&\n         (keylen <= (int)plVar2[0x4a])) {\n        return iVar1 + 3;\n      }\n      if (((plVar2[0x60] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x314))) &&\n         (keylen <= (int)plVar2[0x62])) {\n        return iVar1 + 4;\n      }\n      if (((plVar2[0x78] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x3d4))) &&\n         (keylen <= (int)plVar2[0x7a])) {\n        return iVar1 + 5;\n      }\n      if (((plVar2[0x90] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x494))) &&\n         (keylen <= (int)plVar2[0x92])) {\n        return iVar1 + 6;\n      }\n      if (((plVar2[0xa8] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x554))) &&\n         (keylen <= (int)plVar2[0xaa])) {\n        return iVar1 + 7;\n      }\n      iVar1 = iVar1 + 8;\n      plVar2 = plVar2 + 0xc0;\n    } while (iVar1 != 0x20);\n    iVar1 = -1;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "plVar2 = (long *)PTR_cipher_descriptor_001dfee8;" (assignment_expression "plVar2 = (long *)PTR_cipher_descriptor_001dfee8" identifier = (cast_expression "(long *)PTR_cipher_descriptor_001dfee8" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n      if (((*plVar2 != 0) && (blocklen <= *(int *)((long)plVar2 + 0x14))) &&\n         (keylen <= (int)plVar2[2])) {\n        return iVar1;\n      }\n      if (((plVar2[0x18] != 0) && (blocklen <= *(int *)((long)plVar2 + 0xd4))) &&\n         (keylen <= (int)plVar2[0x1a])) {\n        return iVar1 + 1;\n      }\n      if (((plVar2[0x30] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x194))) &&\n         (keylen <= (int)plVar2[0x32])) {\n        return iVar1 + 2;\n      }\n      if (((plVar2[0x48] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x254))) &&\n         (keylen <= (int)plVar2[0x4a])) {\n        return iVar1 + 3;\n      }\n      if (((plVar2[0x60] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x314))) &&\n         (keylen <= (int)plVar2[0x62])) {\n        return iVar1 + 4;\n      }\n      if (((plVar2[0x78] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x3d4))) &&\n         (keylen <= (int)plVar2[0x7a])) {\n        return iVar1 + 5;\n      }\n      if (((plVar2[0x90] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x494))) &&\n         (keylen <= (int)plVar2[0x92])) {\n        return iVar1 + 6;\n      }\n      if (((plVar2[0xa8] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x554))) &&\n         (keylen <= (int)plVar2[0xaa])) {\n        return iVar1 + 7;\n      }\n      iVar1 = iVar1 + 8;\n      plVar2 = plVar2 + 0xc0;\n    } while (iVar1 != 0x20);" do (compound_statement "{\n      if (((*plVar2 != 0) && (blocklen <= *(int *)((long)plVar2 + 0x14))) &&\n         (keylen <= (int)plVar2[2])) {\n        return iVar1;\n      }\n      if (((plVar2[0x18] != 0) && (blocklen <= *(int *)((long)plVar2 + 0xd4))) &&\n         (keylen <= (int)plVar2[0x1a])) {\n        return iVar1 + 1;\n      }\n      if (((plVar2[0x30] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x194))) &&\n         (keylen <= (int)plVar2[0x32])) {\n        return iVar1 + 2;\n      }\n      if (((plVar2[0x48] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x254))) &&\n         (keylen <= (int)plVar2[0x4a])) {\n        return iVar1 + 3;\n      }\n      if (((plVar2[0x60] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x314))) &&\n         (keylen <= (int)plVar2[0x62])) {\n        return iVar1 + 4;\n      }\n      if (((plVar2[0x78] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x3d4))) &&\n         (keylen <= (int)plVar2[0x7a])) {\n        return iVar1 + 5;\n      }\n      if (((plVar2[0x90] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x494))) &&\n         (keylen <= (int)plVar2[0x92])) {\n        return iVar1 + 6;\n      }\n      if (((plVar2[0xa8] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x554))) &&\n         (keylen <= (int)plVar2[0xaa])) {\n        return iVar1 + 7;\n      }\n      iVar1 = iVar1 + 8;\n      plVar2 = plVar2 + 0xc0;\n    }" { (if_statement "if (((*plVar2 != 0) && (blocklen <= *(int *)((long)plVar2 + 0x14))) &&\n         (keylen <= (int)plVar2[2])) {\n        return iVar1;\n      }" if (parenthesized_expression "(((*plVar2 != 0) && (blocklen <= *(int *)((long)plVar2 + 0x14))) &&\n         (keylen <= (int)plVar2[2]))" ( (binary_expression "((*plVar2 != 0) && (blocklen <= *(int *)((long)plVar2 + 0x14))) &&\n         (keylen <= (int)plVar2[2])" (parenthesized_expression "((*plVar2 != 0) && (blocklen <= *(int *)((long)plVar2 + 0x14)))" ( (binary_expression "(*plVar2 != 0) && (blocklen <= *(int *)((long)plVar2 + 0x14))" (parenthesized_expression "(*plVar2 != 0)" ( (binary_expression "*plVar2 != 0" (pointer_expression "*plVar2" * identifier) != number_literal) )) && (parenthesized_expression "(blocklen <= *(int *)((long)plVar2 + 0x14))" ( (binary_expression "blocklen <= *(int *)((long)plVar2 + 0x14)" identifier <= (pointer_expression "*(int *)((long)plVar2 + 0x14)" * (cast_expression "(int *)((long)plVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0x14)" ( (binary_expression "(long)plVar2 + 0x14" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(keylen <= (int)plVar2[2])" ( (binary_expression "keylen <= (int)plVar2[2]" identifier <= (cast_expression "(int)plVar2[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar2[2]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return iVar1;\n      }" { (return_statement "return iVar1;" return identifier ;) })) (if_statement "if (((plVar2[0x18] != 0) && (blocklen <= *(int *)((long)plVar2 + 0xd4))) &&\n         (keylen <= (int)plVar2[0x1a])) {\n        return iVar1 + 1;\n      }" if (parenthesized_expression "(((plVar2[0x18] != 0) && (blocklen <= *(int *)((long)plVar2 + 0xd4))) &&\n         (keylen <= (int)plVar2[0x1a]))" ( (binary_expression "((plVar2[0x18] != 0) && (blocklen <= *(int *)((long)plVar2 + 0xd4))) &&\n         (keylen <= (int)plVar2[0x1a])" (parenthesized_expression "((plVar2[0x18] != 0) && (blocklen <= *(int *)((long)plVar2 + 0xd4)))" ( (binary_expression "(plVar2[0x18] != 0) && (blocklen <= *(int *)((long)plVar2 + 0xd4))" (parenthesized_expression "(plVar2[0x18] != 0)" ( (binary_expression "plVar2[0x18] != 0" (subscript_expression "plVar2[0x18]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(blocklen <= *(int *)((long)plVar2 + 0xd4))" ( (binary_expression "blocklen <= *(int *)((long)plVar2 + 0xd4)" identifier <= (pointer_expression "*(int *)((long)plVar2 + 0xd4)" * (cast_expression "(int *)((long)plVar2 + 0xd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0xd4)" ( (binary_expression "(long)plVar2 + 0xd4" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(keylen <= (int)plVar2[0x1a])" ( (binary_expression "keylen <= (int)plVar2[0x1a]" identifier <= (cast_expression "(int)plVar2[0x1a]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar2[0x1a]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return iVar1 + 1;\n      }" { (return_statement "return iVar1 + 1;" return (binary_expression "iVar1 + 1" identifier + number_literal) ;) })) (if_statement "if (((plVar2[0x30] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x194))) &&\n         (keylen <= (int)plVar2[0x32])) {\n        return iVar1 + 2;\n      }" if (parenthesized_expression "(((plVar2[0x30] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x194))) &&\n         (keylen <= (int)plVar2[0x32]))" ( (binary_expression "((plVar2[0x30] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x194))) &&\n         (keylen <= (int)plVar2[0x32])" (parenthesized_expression "((plVar2[0x30] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x194)))" ( (binary_expression "(plVar2[0x30] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x194))" (parenthesized_expression "(plVar2[0x30] != 0)" ( (binary_expression "plVar2[0x30] != 0" (subscript_expression "plVar2[0x30]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(blocklen <= *(int *)((long)plVar2 + 0x194))" ( (binary_expression "blocklen <= *(int *)((long)plVar2 + 0x194)" identifier <= (pointer_expression "*(int *)((long)plVar2 + 0x194)" * (cast_expression "(int *)((long)plVar2 + 0x194)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0x194)" ( (binary_expression "(long)plVar2 + 0x194" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(keylen <= (int)plVar2[0x32])" ( (binary_expression "keylen <= (int)plVar2[0x32]" identifier <= (cast_expression "(int)plVar2[0x32]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar2[0x32]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return iVar1 + 2;\n      }" { (return_statement "return iVar1 + 2;" return (binary_expression "iVar1 + 2" identifier + number_literal) ;) })) (if_statement "if (((plVar2[0x48] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x254))) &&\n         (keylen <= (int)plVar2[0x4a])) {\n        return iVar1 + 3;\n      }" if (parenthesized_expression "(((plVar2[0x48] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x254))) &&\n         (keylen <= (int)plVar2[0x4a]))" ( (binary_expression "((plVar2[0x48] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x254))) &&\n         (keylen <= (int)plVar2[0x4a])" (parenthesized_expression "((plVar2[0x48] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x254)))" ( (binary_expression "(plVar2[0x48] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x254))" (parenthesized_expression "(plVar2[0x48] != 0)" ( (binary_expression "plVar2[0x48] != 0" (subscript_expression "plVar2[0x48]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(blocklen <= *(int *)((long)plVar2 + 0x254))" ( (binary_expression "blocklen <= *(int *)((long)plVar2 + 0x254)" identifier <= (pointer_expression "*(int *)((long)plVar2 + 0x254)" * (cast_expression "(int *)((long)plVar2 + 0x254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0x254)" ( (binary_expression "(long)plVar2 + 0x254" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(keylen <= (int)plVar2[0x4a])" ( (binary_expression "keylen <= (int)plVar2[0x4a]" identifier <= (cast_expression "(int)plVar2[0x4a]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar2[0x4a]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return iVar1 + 3;\n      }" { (return_statement "return iVar1 + 3;" return (binary_expression "iVar1 + 3" identifier + number_literal) ;) })) (if_statement "if (((plVar2[0x60] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x314))) &&\n         (keylen <= (int)plVar2[0x62])) {\n        return iVar1 + 4;\n      }" if (parenthesized_expression "(((plVar2[0x60] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x314))) &&\n         (keylen <= (int)plVar2[0x62]))" ( (binary_expression "((plVar2[0x60] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x314))) &&\n         (keylen <= (int)plVar2[0x62])" (parenthesized_expression "((plVar2[0x60] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x314)))" ( (binary_expression "(plVar2[0x60] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x314))" (parenthesized_expression "(plVar2[0x60] != 0)" ( (binary_expression "plVar2[0x60] != 0" (subscript_expression "plVar2[0x60]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(blocklen <= *(int *)((long)plVar2 + 0x314))" ( (binary_expression "blocklen <= *(int *)((long)plVar2 + 0x314)" identifier <= (pointer_expression "*(int *)((long)plVar2 + 0x314)" * (cast_expression "(int *)((long)plVar2 + 0x314)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0x314)" ( (binary_expression "(long)plVar2 + 0x314" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(keylen <= (int)plVar2[0x62])" ( (binary_expression "keylen <= (int)plVar2[0x62]" identifier <= (cast_expression "(int)plVar2[0x62]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar2[0x62]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return iVar1 + 4;\n      }" { (return_statement "return iVar1 + 4;" return (binary_expression "iVar1 + 4" identifier + number_literal) ;) })) (if_statement "if (((plVar2[0x78] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x3d4))) &&\n         (keylen <= (int)plVar2[0x7a])) {\n        return iVar1 + 5;\n      }" if (parenthesized_expression "(((plVar2[0x78] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x3d4))) &&\n         (keylen <= (int)plVar2[0x7a]))" ( (binary_expression "((plVar2[0x78] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x3d4))) &&\n         (keylen <= (int)plVar2[0x7a])" (parenthesized_expression "((plVar2[0x78] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x3d4)))" ( (binary_expression "(plVar2[0x78] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x3d4))" (parenthesized_expression "(plVar2[0x78] != 0)" ( (binary_expression "plVar2[0x78] != 0" (subscript_expression "plVar2[0x78]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(blocklen <= *(int *)((long)plVar2 + 0x3d4))" ( (binary_expression "blocklen <= *(int *)((long)plVar2 + 0x3d4)" identifier <= (pointer_expression "*(int *)((long)plVar2 + 0x3d4)" * (cast_expression "(int *)((long)plVar2 + 0x3d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0x3d4)" ( (binary_expression "(long)plVar2 + 0x3d4" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(keylen <= (int)plVar2[0x7a])" ( (binary_expression "keylen <= (int)plVar2[0x7a]" identifier <= (cast_expression "(int)plVar2[0x7a]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar2[0x7a]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return iVar1 + 5;\n      }" { (return_statement "return iVar1 + 5;" return (binary_expression "iVar1 + 5" identifier + number_literal) ;) })) (if_statement "if (((plVar2[0x90] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x494))) &&\n         (keylen <= (int)plVar2[0x92])) {\n        return iVar1 + 6;\n      }" if (parenthesized_expression "(((plVar2[0x90] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x494))) &&\n         (keylen <= (int)plVar2[0x92]))" ( (binary_expression "((plVar2[0x90] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x494))) &&\n         (keylen <= (int)plVar2[0x92])" (parenthesized_expression "((plVar2[0x90] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x494)))" ( (binary_expression "(plVar2[0x90] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x494))" (parenthesized_expression "(plVar2[0x90] != 0)" ( (binary_expression "plVar2[0x90] != 0" (subscript_expression "plVar2[0x90]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(blocklen <= *(int *)((long)plVar2 + 0x494))" ( (binary_expression "blocklen <= *(int *)((long)plVar2 + 0x494)" identifier <= (pointer_expression "*(int *)((long)plVar2 + 0x494)" * (cast_expression "(int *)((long)plVar2 + 0x494)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0x494)" ( (binary_expression "(long)plVar2 + 0x494" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(keylen <= (int)plVar2[0x92])" ( (binary_expression "keylen <= (int)plVar2[0x92]" identifier <= (cast_expression "(int)plVar2[0x92]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar2[0x92]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return iVar1 + 6;\n      }" { (return_statement "return iVar1 + 6;" return (binary_expression "iVar1 + 6" identifier + number_literal) ;) })) (if_statement "if (((plVar2[0xa8] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x554))) &&\n         (keylen <= (int)plVar2[0xaa])) {\n        return iVar1 + 7;\n      }" if (parenthesized_expression "(((plVar2[0xa8] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x554))) &&\n         (keylen <= (int)plVar2[0xaa]))" ( (binary_expression "((plVar2[0xa8] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x554))) &&\n         (keylen <= (int)plVar2[0xaa])" (parenthesized_expression "((plVar2[0xa8] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x554)))" ( (binary_expression "(plVar2[0xa8] != 0) && (blocklen <= *(int *)((long)plVar2 + 0x554))" (parenthesized_expression "(plVar2[0xa8] != 0)" ( (binary_expression "plVar2[0xa8] != 0" (subscript_expression "plVar2[0xa8]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(blocklen <= *(int *)((long)plVar2 + 0x554))" ( (binary_expression "blocklen <= *(int *)((long)plVar2 + 0x554)" identifier <= (pointer_expression "*(int *)((long)plVar2 + 0x554)" * (cast_expression "(int *)((long)plVar2 + 0x554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0x554)" ( (binary_expression "(long)plVar2 + 0x554" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(keylen <= (int)plVar2[0xaa])" ( (binary_expression "keylen <= (int)plVar2[0xaa]" identifier <= (cast_expression "(int)plVar2[0xaa]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar2[0xaa]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return iVar1 + 7;\n      }" { (return_statement "return iVar1 + 7;" return (binary_expression "iVar1 + 7" identifier + number_literal) ;) })) (expression_statement "iVar1 = iVar1 + 8;" (assignment_expression "iVar1 = iVar1 + 8" identifier = (binary_expression "iVar1 + 8" identifier + number_literal)) ;) (expression_statement "plVar2 = plVar2 + 0xc0;" (assignment_expression "plVar2 = plVar2 + 0xc0" identifier = (binary_expression "plVar2 + 0xc0" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != 0x20)" ( (binary_expression "iVar1 != 0x20" identifier != number_literal) )) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "ulong find_cipher_any(long param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  ulong uVar2;\n  long *plVar3;\n  \n  if ((param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1)) {\n    uVar2 = 0;\n    plVar3 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    } while (iVar1 + 8U != 0x20);\n    uVar2 = 0xffffffff;\n  }\n  return uVar2;\n}\n\n" (function_definition "ulong find_cipher_any(long param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  ulong uVar2;\n  long *plVar3;\n  \n  if ((param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1)) {\n    uVar2 = 0;\n    plVar3 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    } while (iVar1 + 8U != 0x20);\n    uVar2 = 0xffffffff;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "find_cipher_any(long param_1,int param_2,int param_3)" identifier (parameter_list "(long param_1,int param_2,int param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  long *plVar3;\n  \n  if ((param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1)) {\n    uVar2 = 0;\n    plVar3 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    } while (iVar1 + 8U != 0x20);\n    uVar2 = 0xffffffff;\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (if_statement "if ((param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1)) {\n    uVar2 = 0;\n    plVar3 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    } while (iVar1 + 8U != 0x20);\n    uVar2 = 0xffffffff;\n  }" if (parenthesized_expression "((param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1))" ( (binary_expression "(param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar2 = find_cipher(), (int)uVar2 == -1)" ( (comma_expression "uVar2 = find_cipher(), (int)uVar2 == -1" (assignment_expression "uVar2 = find_cipher()" identifier = (call_expression "find_cipher()" identifier (argument_list "()" ( )))) , (binary_expression "(int)uVar2 == -1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal)) ))) )) (compound_statement "{\n    uVar2 = 0;\n    plVar3 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    } while (iVar1 + 8U != 0x20);\n    uVar2 = 0xffffffff;\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "plVar3 = (long *)PTR_cipher_descriptor_001dfee8;" (assignment_expression "plVar3 = (long *)PTR_cipher_descriptor_001dfee8" identifier = (cast_expression "(long *)PTR_cipher_descriptor_001dfee8" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    } while (iVar1 + 8U != 0x20);" do (compound_statement "{\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    }" { (if_statement "if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }" if (parenthesized_expression "(((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2]))" ( (binary_expression "((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])" (parenthesized_expression "((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14)))" ( (binary_expression "(*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))" (parenthesized_expression "(*plVar3 != 0)" ( (binary_expression "*plVar3 != 0" (pointer_expression "*plVar3" * identifier) != number_literal) )) && (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x14))" ( (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x14)" identifier <= (pointer_expression "*(int *)((long)plVar3 + 0x14)" * (cast_expression "(int *)((long)plVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar3 + 0x14)" ( (binary_expression "(long)plVar3 + 0x14" (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(param_3 <= (int)plVar3[2])" ( (binary_expression "param_3 <= (int)plVar3[2]" identifier <= (cast_expression "(int)plVar3[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar3[2]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return uVar2;\n      }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "iVar1 = (int)uVar2;" (assignment_expression "iVar1 = (int)uVar2" identifier = (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }" if (parenthesized_expression "(((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a]))" ( (binary_expression "((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])" (parenthesized_expression "((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4)))" ( (binary_expression "(plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))" (parenthesized_expression "(plVar3[0x18] != 0)" ( (binary_expression "plVar3[0x18] != 0" (subscript_expression "plVar3[0x18]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0xd4))" ( (binary_expression "param_2 <= *(int *)((long)plVar3 + 0xd4)" identifier <= (pointer_expression "*(int *)((long)plVar3 + 0xd4)" * (cast_expression "(int *)((long)plVar3 + 0xd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar3 + 0xd4)" ( (binary_expression "(long)plVar3 + 0xd4" (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(param_3 <= (int)plVar3[0x1a])" ( (binary_expression "param_3 <= (int)plVar3[0x1a]" identifier <= (cast_expression "(int)plVar3[0x1a]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar3[0x1a]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return (ulong)(iVar1 + 1);\n      }" { (return_statement "return (ulong)(iVar1 + 1);" return (call_expression "(ulong)(iVar1 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) ))) ;) })) (if_statement "if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }" if (parenthesized_expression "(((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32]))" ( (binary_expression "((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])" (parenthesized_expression "((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194)))" ( (binary_expression "(plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))" (parenthesized_expression "(plVar3[0x30] != 0)" ( (binary_expression "plVar3[0x30] != 0" (subscript_expression "plVar3[0x30]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x194))" ( (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x194)" identifier <= (pointer_expression "*(int *)((long)plVar3 + 0x194)" * (cast_expression "(int *)((long)plVar3 + 0x194)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar3 + 0x194)" ( (binary_expression "(long)plVar3 + 0x194" (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(param_3 <= (int)plVar3[0x32])" ( (binary_expression "param_3 <= (int)plVar3[0x32]" identifier <= (cast_expression "(int)plVar3[0x32]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar3[0x32]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return (ulong)(iVar1 + 2);\n      }" { (return_statement "return (ulong)(iVar1 + 2);" return (call_expression "(ulong)(iVar1 + 2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 + 2)" ( (binary_expression "iVar1 + 2" identifier + number_literal) ))) ;) })) (if_statement "if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }" if (parenthesized_expression "(((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a]))" ( (binary_expression "((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])" (parenthesized_expression "((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254)))" ( (binary_expression "(plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))" (parenthesized_expression "(plVar3[0x48] != 0)" ( (binary_expression "plVar3[0x48] != 0" (subscript_expression "plVar3[0x48]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x254))" ( (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x254)" identifier <= (pointer_expression "*(int *)((long)plVar3 + 0x254)" * (cast_expression "(int *)((long)plVar3 + 0x254)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar3 + 0x254)" ( (binary_expression "(long)plVar3 + 0x254" (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(param_3 <= (int)plVar3[0x4a])" ( (binary_expression "param_3 <= (int)plVar3[0x4a]" identifier <= (cast_expression "(int)plVar3[0x4a]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar3[0x4a]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return (ulong)(iVar1 + 3);\n      }" { (return_statement "return (ulong)(iVar1 + 3);" return (call_expression "(ulong)(iVar1 + 3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 + 3)" ( (binary_expression "iVar1 + 3" identifier + number_literal) ))) ;) })) (if_statement "if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }" if (parenthesized_expression "(((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62]))" ( (binary_expression "((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])" (parenthesized_expression "((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314)))" ( (binary_expression "(plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))" (parenthesized_expression "(plVar3[0x60] != 0)" ( (binary_expression "plVar3[0x60] != 0" (subscript_expression "plVar3[0x60]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x314))" ( (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x314)" identifier <= (pointer_expression "*(int *)((long)plVar3 + 0x314)" * (cast_expression "(int *)((long)plVar3 + 0x314)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar3 + 0x314)" ( (binary_expression "(long)plVar3 + 0x314" (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(param_3 <= (int)plVar3[0x62])" ( (binary_expression "param_3 <= (int)plVar3[0x62]" identifier <= (cast_expression "(int)plVar3[0x62]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar3[0x62]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return (ulong)(iVar1 + 4);\n      }" { (return_statement "return (ulong)(iVar1 + 4);" return (call_expression "(ulong)(iVar1 + 4)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))) ;) })) (if_statement "if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }" if (parenthesized_expression "(((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a]))" ( (binary_expression "((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])" (parenthesized_expression "((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4)))" ( (binary_expression "(plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))" (parenthesized_expression "(plVar3[0x78] != 0)" ( (binary_expression "plVar3[0x78] != 0" (subscript_expression "plVar3[0x78]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x3d4))" ( (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x3d4)" identifier <= (pointer_expression "*(int *)((long)plVar3 + 0x3d4)" * (cast_expression "(int *)((long)plVar3 + 0x3d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar3 + 0x3d4)" ( (binary_expression "(long)plVar3 + 0x3d4" (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(param_3 <= (int)plVar3[0x7a])" ( (binary_expression "param_3 <= (int)plVar3[0x7a]" identifier <= (cast_expression "(int)plVar3[0x7a]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar3[0x7a]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return (ulong)(iVar1 + 5);\n      }" { (return_statement "return (ulong)(iVar1 + 5);" return (call_expression "(ulong)(iVar1 + 5)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 + 5)" ( (binary_expression "iVar1 + 5" identifier + number_literal) ))) ;) })) (if_statement "if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }" if (parenthesized_expression "(((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92]))" ( (binary_expression "((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])" (parenthesized_expression "((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494)))" ( (binary_expression "(plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))" (parenthesized_expression "(plVar3[0x90] != 0)" ( (binary_expression "plVar3[0x90] != 0" (subscript_expression "plVar3[0x90]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x494))" ( (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x494)" identifier <= (pointer_expression "*(int *)((long)plVar3 + 0x494)" * (cast_expression "(int *)((long)plVar3 + 0x494)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar3 + 0x494)" ( (binary_expression "(long)plVar3 + 0x494" (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(param_3 <= (int)plVar3[0x92])" ( (binary_expression "param_3 <= (int)plVar3[0x92]" identifier <= (cast_expression "(int)plVar3[0x92]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar3[0x92]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return (ulong)(iVar1 + 6);\n      }" { (return_statement "return (ulong)(iVar1 + 6);" return (call_expression "(ulong)(iVar1 + 6)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 + 6)" ( (binary_expression "iVar1 + 6" identifier + number_literal) ))) ;) })) (if_statement "if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }" if (parenthesized_expression "(((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa]))" ( (binary_expression "((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])" (parenthesized_expression "((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554)))" ( (binary_expression "(plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))" (parenthesized_expression "(plVar3[0xa8] != 0)" ( (binary_expression "plVar3[0xa8] != 0" (subscript_expression "plVar3[0xa8]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x554))" ( (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x554)" identifier <= (pointer_expression "*(int *)((long)plVar3 + 0x554)" * (cast_expression "(int *)((long)plVar3 + 0x554)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar3 + 0x554)" ( (binary_expression "(long)plVar3 + 0x554" (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) && (parenthesized_expression "(param_3 <= (int)plVar3[0xaa])" ( (binary_expression "param_3 <= (int)plVar3[0xaa]" identifier <= (cast_expression "(int)plVar3[0xaa]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar3[0xaa]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return (ulong)(iVar1 + 7);\n      }" { (return_statement "return (ulong)(iVar1 + 7);" return (call_expression "(ulong)(iVar1 + 7)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 + 7)" ( (binary_expression "iVar1 + 7" identifier + number_literal) ))) ;) })) (expression_statement "uVar2 = (ulong)(iVar1 + 8U);" (assignment_expression "uVar2 = (ulong)(iVar1 + 8U)" identifier = (call_expression "(ulong)(iVar1 + 8U)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 + 8U)" ( (binary_expression "iVar1 + 8U" identifier + number_literal) )))) ;) (expression_statement "plVar3 = plVar3 + 0xc0;" (assignment_expression "plVar3 = plVar3 + 0xc0" identifier = (binary_expression "plVar3 + 0xc0" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 + 8U != 0x20)" ( (binary_expression "iVar1 + 8U != 0x20" (binary_expression "iVar1 + 8U" identifier + number_literal) != number_literal) )) ;) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ))) )) && (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ))) )) && (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ))) )) (compound_statement { (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ))) )) && (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ))) )) (compound_statement { (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ))) )) && (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ))) )) (compound_statement { (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ))) )) && (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ))) )) (compound_statement { (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ))) )) && (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ))) )) (compound_statement { (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ))) )) && (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ))) )) (compound_statement { (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ))) )) && (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ))) )) (compound_statement { (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) != LIT) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "ulong find_cipher_any(long param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  ulong uVar2;\n  long *plVar3;\n  \n  if ((param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1)) {\n    uVar2 = 0;\n    plVar3 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    } while (iVar1 + 8U != 0x20);\n    uVar2 = 0xffffffff;\n  }\n  return uVar2;\n}" (type_identifier "ulong") (function_declarator "find_cipher_any(long param_1,int param_2,int param_3)" (identifier "find_cipher_any") (parameter_list "(long param_1,int param_2,int param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  ulong uVar2;\n  long *plVar3;\n  \n  if ((param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1)) {\n    uVar2 = 0;\n    plVar3 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    } while (iVar1 + 8U != 0x20);\n    uVar2 = 0xffffffff;\n  }\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (declaration "long *plVar3;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar3" (* "*") (identifier "plVar3")) (; ";")) (if_statement "if ((param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1)) {\n    uVar2 = 0;\n    plVar3 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    } while (iVar1 + 8U != 0x20);\n    uVar2 = 0xffffffff;\n  }" (if "if") (parenthesized_expression "((param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1))" (( "(") (binary_expression "(param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1)" (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(uVar2 = find_cipher(), (int)uVar2 == -1)" (( "(") (comma_expression "uVar2 = find_cipher(), (int)uVar2 == -1" (assignment_expression "uVar2 = find_cipher()" (identifier "uVar2") (= "=") (call_expression "find_cipher()" (identifier "find_cipher") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "(int)uVar2 == -1" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (== "==") (number_literal "-1"))) () ")"))) () ")")) (compound_statement "{\n    uVar2 = 0;\n    plVar3 = (long *)PTR_cipher_descriptor_001dfee8;\n    do {\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    } while (iVar1 + 8U != 0x20);\n    uVar2 = 0xffffffff;\n  }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "plVar3 = (long *)PTR_cipher_descriptor_001dfee8;" (assignment_expression "plVar3 = (long *)PTR_cipher_descriptor_001dfee8" (identifier "plVar3") (= "=") (cast_expression "(long *)PTR_cipher_descriptor_001dfee8" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_cipher_descriptor_001dfee8"))) (; ";")) (do_statement "do {\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    } while (iVar1 + 8U != 0x20);" (do "do") (compound_statement "{\n      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }\n      iVar1 = (int)uVar2;\n      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }\n      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }\n      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }\n      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }\n      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }\n      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }\n      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }\n      uVar2 = (ulong)(iVar1 + 8U);\n      plVar3 = plVar3 + 0xc0;\n    }" ({ "{") (if_statement "if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])) {\n        return uVar2;\n      }" (if "if") (parenthesized_expression "(((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2]))" (( "(") (binary_expression "((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&\n         (param_3 <= (int)plVar3[2])" (parenthesized_expression "((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14)))" (( "(") (binary_expression "(*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))" (parenthesized_expression "(*plVar3 != 0)" (( "(") (binary_expression "*plVar3 != 0" (pointer_expression "*plVar3" (* "*") (identifier "plVar3")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x14))" (( "(") (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x14)" (identifier "param_2") (<= "<=") (pointer_expression "*(int *)((long)plVar3 + 0x14)" (* "*") (cast_expression "(int *)((long)plVar3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar3 + 0x14)" (( "(") (binary_expression "(long)plVar3 + 0x14" (cast_expression "(long)plVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar3")) (+ "+") (number_literal "0x14")) () ")"))))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_3 <= (int)plVar3[2])" (( "(") (binary_expression "param_3 <= (int)plVar3[2]" (identifier "param_3") (<= "<=") (cast_expression "(int)plVar3[2]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "plVar3[2]" (identifier "plVar3") ([ "[") (number_literal "2") (] "]")))) () ")"))) () ")")) (compound_statement "{\n        return uVar2;\n      }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "iVar1 = (int)uVar2;" (assignment_expression "iVar1 = (int)uVar2" (identifier "iVar1") (= "=") (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2"))) (; ";")) (if_statement "if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])) {\n        return (ulong)(iVar1 + 1);\n      }" (if "if") (parenthesized_expression "(((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a]))" (( "(") (binary_expression "((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&\n         (param_3 <= (int)plVar3[0x1a])" (parenthesized_expression "((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4)))" (( "(") (binary_expression "(plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))" (parenthesized_expression "(plVar3[0x18] != 0)" (( "(") (binary_expression "plVar3[0x18] != 0" (subscript_expression "plVar3[0x18]" (identifier "plVar3") ([ "[") (number_literal "0x18") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0xd4))" (( "(") (binary_expression "param_2 <= *(int *)((long)plVar3 + 0xd4)" (identifier "param_2") (<= "<=") (pointer_expression "*(int *)((long)plVar3 + 0xd4)" (* "*") (cast_expression "(int *)((long)plVar3 + 0xd4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar3 + 0xd4)" (( "(") (binary_expression "(long)plVar3 + 0xd4" (cast_expression "(long)plVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar3")) (+ "+") (number_literal "0xd4")) () ")"))))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_3 <= (int)plVar3[0x1a])" (( "(") (binary_expression "param_3 <= (int)plVar3[0x1a]" (identifier "param_3") (<= "<=") (cast_expression "(int)plVar3[0x1a]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "plVar3[0x1a]" (identifier "plVar3") ([ "[") (number_literal "0x1a") (] "]")))) () ")"))) () ")")) (compound_statement "{\n        return (ulong)(iVar1 + 1);\n      }" ({ "{") (return_statement "return (ulong)(iVar1 + 1);" (return "return") (call_expression "(ulong)(iVar1 + 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(iVar1 + 1)" (( "(") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (} "}"))) (if_statement "if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])) {\n        return (ulong)(iVar1 + 2);\n      }" (if "if") (parenthesized_expression "(((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32]))" (( "(") (binary_expression "((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&\n         (param_3 <= (int)plVar3[0x32])" (parenthesized_expression "((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194)))" (( "(") (binary_expression "(plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))" (parenthesized_expression "(plVar3[0x30] != 0)" (( "(") (binary_expression "plVar3[0x30] != 0" (subscript_expression "plVar3[0x30]" (identifier "plVar3") ([ "[") (number_literal "0x30") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x194))" (( "(") (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x194)" (identifier "param_2") (<= "<=") (pointer_expression "*(int *)((long)plVar3 + 0x194)" (* "*") (cast_expression "(int *)((long)plVar3 + 0x194)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar3 + 0x194)" (( "(") (binary_expression "(long)plVar3 + 0x194" (cast_expression "(long)plVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar3")) (+ "+") (number_literal "0x194")) () ")"))))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_3 <= (int)plVar3[0x32])" (( "(") (binary_expression "param_3 <= (int)plVar3[0x32]" (identifier "param_3") (<= "<=") (cast_expression "(int)plVar3[0x32]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "plVar3[0x32]" (identifier "plVar3") ([ "[") (number_literal "0x32") (] "]")))) () ")"))) () ")")) (compound_statement "{\n        return (ulong)(iVar1 + 2);\n      }" ({ "{") (return_statement "return (ulong)(iVar1 + 2);" (return "return") (call_expression "(ulong)(iVar1 + 2)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(iVar1 + 2)" (( "(") (binary_expression "iVar1 + 2" (identifier "iVar1") (+ "+") (number_literal "2")) () ")"))) (; ";")) (} "}"))) (if_statement "if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])) {\n        return (ulong)(iVar1 + 3);\n      }" (if "if") (parenthesized_expression "(((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a]))" (( "(") (binary_expression "((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&\n         (param_3 <= (int)plVar3[0x4a])" (parenthesized_expression "((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254)))" (( "(") (binary_expression "(plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))" (parenthesized_expression "(plVar3[0x48] != 0)" (( "(") (binary_expression "plVar3[0x48] != 0" (subscript_expression "plVar3[0x48]" (identifier "plVar3") ([ "[") (number_literal "0x48") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x254))" (( "(") (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x254)" (identifier "param_2") (<= "<=") (pointer_expression "*(int *)((long)plVar3 + 0x254)" (* "*") (cast_expression "(int *)((long)plVar3 + 0x254)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar3 + 0x254)" (( "(") (binary_expression "(long)plVar3 + 0x254" (cast_expression "(long)plVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar3")) (+ "+") (number_literal "0x254")) () ")"))))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_3 <= (int)plVar3[0x4a])" (( "(") (binary_expression "param_3 <= (int)plVar3[0x4a]" (identifier "param_3") (<= "<=") (cast_expression "(int)plVar3[0x4a]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "plVar3[0x4a]" (identifier "plVar3") ([ "[") (number_literal "0x4a") (] "]")))) () ")"))) () ")")) (compound_statement "{\n        return (ulong)(iVar1 + 3);\n      }" ({ "{") (return_statement "return (ulong)(iVar1 + 3);" (return "return") (call_expression "(ulong)(iVar1 + 3)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(iVar1 + 3)" (( "(") (binary_expression "iVar1 + 3" (identifier "iVar1") (+ "+") (number_literal "3")) () ")"))) (; ";")) (} "}"))) (if_statement "if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])) {\n        return (ulong)(iVar1 + 4);\n      }" (if "if") (parenthesized_expression "(((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62]))" (( "(") (binary_expression "((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&\n         (param_3 <= (int)plVar3[0x62])" (parenthesized_expression "((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314)))" (( "(") (binary_expression "(plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))" (parenthesized_expression "(plVar3[0x60] != 0)" (( "(") (binary_expression "plVar3[0x60] != 0" (subscript_expression "plVar3[0x60]" (identifier "plVar3") ([ "[") (number_literal "0x60") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x314))" (( "(") (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x314)" (identifier "param_2") (<= "<=") (pointer_expression "*(int *)((long)plVar3 + 0x314)" (* "*") (cast_expression "(int *)((long)plVar3 + 0x314)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar3 + 0x314)" (( "(") (binary_expression "(long)plVar3 + 0x314" (cast_expression "(long)plVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar3")) (+ "+") (number_literal "0x314")) () ")"))))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_3 <= (int)plVar3[0x62])" (( "(") (binary_expression "param_3 <= (int)plVar3[0x62]" (identifier "param_3") (<= "<=") (cast_expression "(int)plVar3[0x62]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "plVar3[0x62]" (identifier "plVar3") ([ "[") (number_literal "0x62") (] "]")))) () ")"))) () ")")) (compound_statement "{\n        return (ulong)(iVar1 + 4);\n      }" ({ "{") (return_statement "return (ulong)(iVar1 + 4);" (return "return") (call_expression "(ulong)(iVar1 + 4)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")"))) (; ";")) (} "}"))) (if_statement "if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])) {\n        return (ulong)(iVar1 + 5);\n      }" (if "if") (parenthesized_expression "(((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a]))" (( "(") (binary_expression "((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&\n         (param_3 <= (int)plVar3[0x7a])" (parenthesized_expression "((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4)))" (( "(") (binary_expression "(plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))" (parenthesized_expression "(plVar3[0x78] != 0)" (( "(") (binary_expression "plVar3[0x78] != 0" (subscript_expression "plVar3[0x78]" (identifier "plVar3") ([ "[") (number_literal "0x78") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x3d4))" (( "(") (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x3d4)" (identifier "param_2") (<= "<=") (pointer_expression "*(int *)((long)plVar3 + 0x3d4)" (* "*") (cast_expression "(int *)((long)plVar3 + 0x3d4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar3 + 0x3d4)" (( "(") (binary_expression "(long)plVar3 + 0x3d4" (cast_expression "(long)plVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar3")) (+ "+") (number_literal "0x3d4")) () ")"))))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_3 <= (int)plVar3[0x7a])" (( "(") (binary_expression "param_3 <= (int)plVar3[0x7a]" (identifier "param_3") (<= "<=") (cast_expression "(int)plVar3[0x7a]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "plVar3[0x7a]" (identifier "plVar3") ([ "[") (number_literal "0x7a") (] "]")))) () ")"))) () ")")) (compound_statement "{\n        return (ulong)(iVar1 + 5);\n      }" ({ "{") (return_statement "return (ulong)(iVar1 + 5);" (return "return") (call_expression "(ulong)(iVar1 + 5)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(iVar1 + 5)" (( "(") (binary_expression "iVar1 + 5" (identifier "iVar1") (+ "+") (number_literal "5")) () ")"))) (; ";")) (} "}"))) (if_statement "if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])) {\n        return (ulong)(iVar1 + 6);\n      }" (if "if") (parenthesized_expression "(((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92]))" (( "(") (binary_expression "((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&\n         (param_3 <= (int)plVar3[0x92])" (parenthesized_expression "((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494)))" (( "(") (binary_expression "(plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))" (parenthesized_expression "(plVar3[0x90] != 0)" (( "(") (binary_expression "plVar3[0x90] != 0" (subscript_expression "plVar3[0x90]" (identifier "plVar3") ([ "[") (number_literal "0x90") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x494))" (( "(") (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x494)" (identifier "param_2") (<= "<=") (pointer_expression "*(int *)((long)plVar3 + 0x494)" (* "*") (cast_expression "(int *)((long)plVar3 + 0x494)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar3 + 0x494)" (( "(") (binary_expression "(long)plVar3 + 0x494" (cast_expression "(long)plVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar3")) (+ "+") (number_literal "0x494")) () ")"))))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_3 <= (int)plVar3[0x92])" (( "(") (binary_expression "param_3 <= (int)plVar3[0x92]" (identifier "param_3") (<= "<=") (cast_expression "(int)plVar3[0x92]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "plVar3[0x92]" (identifier "plVar3") ([ "[") (number_literal "0x92") (] "]")))) () ")"))) () ")")) (compound_statement "{\n        return (ulong)(iVar1 + 6);\n      }" ({ "{") (return_statement "return (ulong)(iVar1 + 6);" (return "return") (call_expression "(ulong)(iVar1 + 6)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(iVar1 + 6)" (( "(") (binary_expression "iVar1 + 6" (identifier "iVar1") (+ "+") (number_literal "6")) () ")"))) (; ";")) (} "}"))) (if_statement "if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])) {\n        return (ulong)(iVar1 + 7);\n      }" (if "if") (parenthesized_expression "(((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa]))" (( "(") (binary_expression "((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&\n         (param_3 <= (int)plVar3[0xaa])" (parenthesized_expression "((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554)))" (( "(") (binary_expression "(plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))" (parenthesized_expression "(plVar3[0xa8] != 0)" (( "(") (binary_expression "plVar3[0xa8] != 0" (subscript_expression "plVar3[0xa8]" (identifier "plVar3") ([ "[") (number_literal "0xa8") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 <= *(int *)((long)plVar3 + 0x554))" (( "(") (binary_expression "param_2 <= *(int *)((long)plVar3 + 0x554)" (identifier "param_2") (<= "<=") (pointer_expression "*(int *)((long)plVar3 + 0x554)" (* "*") (cast_expression "(int *)((long)plVar3 + 0x554)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar3 + 0x554)" (( "(") (binary_expression "(long)plVar3 + 0x554" (cast_expression "(long)plVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar3")) (+ "+") (number_literal "0x554")) () ")"))))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_3 <= (int)plVar3[0xaa])" (( "(") (binary_expression "param_3 <= (int)plVar3[0xaa]" (identifier "param_3") (<= "<=") (cast_expression "(int)plVar3[0xaa]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "plVar3[0xaa]" (identifier "plVar3") ([ "[") (number_literal "0xaa") (] "]")))) () ")"))) () ")")) (compound_statement "{\n        return (ulong)(iVar1 + 7);\n      }" ({ "{") (return_statement "return (ulong)(iVar1 + 7);" (return "return") (call_expression "(ulong)(iVar1 + 7)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(iVar1 + 7)" (( "(") (binary_expression "iVar1 + 7" (identifier "iVar1") (+ "+") (number_literal "7")) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar2 = (ulong)(iVar1 + 8U);" (assignment_expression "uVar2 = (ulong)(iVar1 + 8U)" (identifier "uVar2") (= "=") (call_expression "(ulong)(iVar1 + 8U)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(iVar1 + 8U)" (( "(") (binary_expression "iVar1 + 8U" (identifier "iVar1") (+ "+") (number_literal "8U")) () ")")))) (; ";")) (expression_statement "plVar3 = plVar3 + 0xc0;" (assignment_expression "plVar3 = plVar3 + 0xc0" (identifier "plVar3") (= "=") (binary_expression "plVar3 + 0xc0" (identifier "plVar3") (+ "+") (number_literal "0xc0"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 + 8U != 0x20)" (( "(") (binary_expression "iVar1 + 8U != 0x20" (binary_expression "iVar1 + 8U" (identifier "iVar1") (+ "+") (number_literal "8U")) (!= "!=") (number_literal "0x20")) () ")")) (; ";")) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

int function_1(char *var_1,int var_4,int var_5)

{
  int var_3;
  long *var_6;
  
  if ((var_1 == (char *)0x0) || (var_3 = var_2(var_1), var_3 == -1)) {
    var_3 = 0;
    var_6 = (long *)PTR_cipher_descriptor_001dfee8;
    do {
      if (((*var_6 != 0) && (var_4 <= *(int *)((long)var_6 + 0x14))) &&
         (var_5 <= (int)var_6[2])) {
        return var_3;
      }
      if (((var_6[0x18] != 0) && (var_4 <= *(int *)((long)var_6 + 0xd4))) &&
         (var_5 <= (int)var_6[0x1a])) {
        return var_3 + 1;
      }
      if (((var_6[0x30] != 0) && (var_4 <= *(int *)((long)var_6 + 0x194))) &&
         (var_5 <= (int)var_6[0x32])) {
        return var_3 + 2;
      }
      if (((var_6[0x48] != 0) && (var_4 <= *(int *)((long)var_6 + 0x254))) &&
         (var_5 <= (int)var_6[0x4a])) {
        return var_3 + 3;
      }
      if (((var_6[0x60] != 0) && (var_4 <= *(int *)((long)var_6 + 0x314))) &&
         (var_5 <= (int)var_6[0x62])) {
        return var_3 + 4;
      }
      if (((var_6[0x78] != 0) && (var_4 <= *(int *)((long)var_6 + 0x3d4))) &&
         (var_5 <= (int)var_6[0x7a])) {
        return var_3 + 5;
      }
      if (((var_6[0x90] != 0) && (var_4 <= *(int *)((long)var_6 + 0x494))) &&
         (var_5 <= (int)var_6[0x92])) {
        return var_3 + 6;
      }
      if (((var_6[0xa8] != 0) && (var_4 <= *(int *)((long)var_6 + 0x554))) &&
         (var_5 <= (int)var_6[0xaa])) {
        return var_3 + 7;
      }
      var_3 = var_3 + 8;
      var_6 = var_6 + 0xc0;
    } while (var_3 != 0x20);
    var_3 = -1;
  }
  return var_3;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) consequence: (compound_statement (return_statement (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) consequence: (compound_statement (return_statement (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) consequence: (compound_statement (return_statement (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) consequence: (compound_statement (return_statement (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) consequence: (compound_statement (return_statement (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) consequence: (compound_statement (return_statement (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) consequence: (compound_statement (return_statement (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

ulong MASKED(long param_1,int param_2,int param_3)

{
  int iVar1;
  ulong uVar2;
  long *plVar3;
  
  if ((param_1 == 0) || (uVar2 = find_cipher(), (int)uVar2 == -1)) {
    uVar2 = 0;
    plVar3 = (long *)PTR_cipher_descriptor_001dfee8;
    do {
      if (((*plVar3 != 0) && (param_2 <= *(int *)((long)plVar3 + 0x14))) &&
         (param_3 <= (int)plVar3[2])) {
        return uVar2;
      }
      iVar1 = (int)uVar2;
      if (((plVar3[0x18] != 0) && (param_2 <= *(int *)((long)plVar3 + 0xd4))) &&
         (param_3 <= (int)plVar3[0x1a])) {
        return (ulong)(iVar1 + 1);
      }
      if (((plVar3[0x30] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x194))) &&
         (param_3 <= (int)plVar3[0x32])) {
        return (ulong)(iVar1 + 2);
      }
      if (((plVar3[0x48] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x254))) &&
         (param_3 <= (int)plVar3[0x4a])) {
        return (ulong)(iVar1 + 3);
      }
      if (((plVar3[0x60] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x314))) &&
         (param_3 <= (int)plVar3[0x62])) {
        return (ulong)(iVar1 + 4);
      }
      if (((plVar3[0x78] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x3d4))) &&
         (param_3 <= (int)plVar3[0x7a])) {
        return (ulong)(iVar1 + 5);
      }
      if (((plVar3[0x90] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x494))) &&
         (param_3 <= (int)plVar3[0x92])) {
        return (ulong)(iVar1 + 6);
      }
      if (((plVar3[0xa8] != 0) && (param_2 <= *(int *)((long)plVar3 + 0x554))) &&
         (param_3 <= (int)plVar3[0xaa])) {
        return (ulong)(iVar1 + 7);
      }
      uVar2 = (ulong)(iVar1 + 8U);
      plVar3 = plVar3 + 0xc0;
    } while (iVar1 + 8U != 0x20);
    uVar2 = 0xffffffff;
  }
  return uVar2;
}

