
int chc_register(int cipher)

{
  undefined *puVar1;
  int iVar2;
  int idx;
  long in_FS_OFFSET;
  int kl;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  iVar2 = cipher_is_valid(cipher);
  if (iVar2 == 0) {
    kl = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);
    iVar2 = 10;
    if (8 < kl) {
      iVar2 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x48))(&kl);
      if ((iVar2 == 0) &&
         (iVar2 = 10, *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14) == kl))
      {
        idx = find_hash("chc_hash");
        iVar2 = hash_is_valid(idx);
        puVar1 = PTR_hash_descriptor_001dfeb0;
        if (iVar2 == 0) {
          cipher_blocksize = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);
          *(long *)(PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0 + 0x18) = (long)cipher_blocksize
          ;
          *(long *)(puVar1 + (long)idx * 0xd0 + 0x10) = (long)cipher_blocksize;
          cipher_idx = cipher;
        }
      }
    }
  }
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



undefined8 chc_register(int param_1)

{
  undefined *puVar1;
  int iVar2;
  undefined8 uVar3;
  long in_FS_OFFSET;
  int local_24;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  uVar3 = cipher_is_valid();
  if ((int)uVar3 == 0) {
    local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);
    uVar3 = 10;
    if (8 < local_24) {
      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)
      ;
      if ((int)uVar3 == 0) {
        uVar3 = 10;
        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {
          iVar2 = find_hash("chc_hash");
          uVar3 = hash_is_valid(iVar2);
          puVar1 = PTR_hash_descriptor_001dfeb0;
          if ((int)uVar3 == 0) {
            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);
            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024
            ;
            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;
            DAT_001e0008 = param_1;
          }
        }
      }
    }
  }
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV EBX,EDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x8],RAX
XOR EAX,EAX
CALL 0x00113d90
TEST EAX,EAX
JNZ 0x00147e2c
MOVSXD RAX,EBX
LEA RDX,[RAX + RAX*0x2]
SHL RDX,0x6
ADD RDX,qword ptr [0x001dfee8]
MOV ECX,dword ptr [RDX + 0x14]
MOV dword ptr [RSP + 0x4],ECX
MOV EAX,0xa
CMP ECX,0x8
JLE 0x00147e2c
LEA RDI,[RSP + 0x4]
MOVSXD RSI,EBX
LEA RBP,[RSI + RSI*0x2]
SHL RBP,0x6
ADD RBP,qword ptr [0x001dfee8]
CALL qword ptr [RBP + 0x48]
TEST EAX,EAX
JNZ 0x00147e2c
MOVSXD RDI,EBX
LEA R8,[RDI + RDI*0x2]
SHL R8,0x6
ADD R8,qword ptr [0x001dfee8]
MOV EAX,0xa
MOV R9D,dword ptr [RSP + 0x4]
CMP dword ptr [R8 + 0x14],R9D
JZ 0x00147e43
MOV RSI,qword ptr [RSP + 0x8]
XOR RSI,qword ptr FS:[0x28]
JNZ 0x00147ea7
ADD RSP,0x18
POP RBX
POP RBP
RET
LEA RDI,[0x1b16df]
CALL 0x00113c40
MOV EBP,EAX
MOV EDI,EAX
CALL 0x00113bc0
TEST EAX,EAX
JNZ 0x00147e2c
MOVSXD R10,EBX
LEA R11,[R10 + R10*0x2]
SHL R11,0x6
ADD R11,qword ptr [0x001dfee8]
MOV ESI,dword ptr [R11 + 0x14]
MOVSXD R9,ESI
MOV R8,qword ptr [0x001dfeb0]
MOVSXD RDI,EBP
LEA RDX,[RDI + RDI*0x2]
SHL RDX,0x2
LEA RCX,[RDX + RDI*0x1]
SHL RCX,0x4
MOV qword ptr [R8 + RCX*0x1 + 0x18],R9
MOV qword ptr [R8 + RCX*0x1 + 0x10],R9
MOV dword ptr [0x001e0008],EBX
MOV dword ptr [0x001e0024],ESI
JMP 0x00147e2c
CALL 0x00113870
(translation_unit "undefined8 chc_register(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  int local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar3 = cipher_is_valid();\n  if ((int)uVar3 == 0) {\n    local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n    uVar3 = 10;\n    if (8 < local_24) {\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "undefined8 chc_register(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  int local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar3 = cipher_is_valid();\n  if ((int)uVar3 == 0) {\n    local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n    uVar3 = 10;\n    if (8 < local_24) {\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "chc_register(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  int local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar3 = cipher_is_valid();\n  if ((int)uVar3 == 0) {\n    local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n    uVar3 = 10;\n    if (8 < local_24) {\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = cipher_is_valid();" (assignment_expression "uVar3 = cipher_is_valid()" identifier = (call_expression "cipher_is_valid()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((int)uVar3 == 0) {\n    local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n    uVar3 = 10;\n    if (8 < local_24) {\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }\n  }" if (parenthesized_expression "((int)uVar3 == 0)" ( (binary_expression "(int)uVar3 == 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n    local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n    uVar3 = 10;\n    if (8 < local_24) {\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }\n  }" { (expression_statement "local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);" (assignment_expression "local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" identifier = (pointer_expression "*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" * (cast_expression "(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" ( (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14" (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0" identifier + (binary_expression "(long)param_1 * 0xc0" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) ))))) ;) (expression_statement "uVar3 = 10;" (assignment_expression "uVar3 = 10" identifier = number_literal) ;) (if_statement "if (8 < local_24) {\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }" if (parenthesized_expression "(8 < local_24)" ( (binary_expression "8 < local_24" number_literal < identifier) )) (compound_statement "{\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }" { (expression_statement "uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;" (assignment_expression "uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)" identifier = (call_expression "(**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)" (parenthesized_expression "(**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))" ( (pointer_expression "**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48)" * (pointer_expression "*(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48)" * (cast_expression "(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48)" ( (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48" (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0" identifier + (binary_expression "(long)param_1 * 0xc0" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) ))))) )) (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }" if (parenthesized_expression "((int)uVar3 == 0)" ( (binary_expression "(int)uVar3 == 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }" { (expression_statement "uVar3 = 10;" (assignment_expression "uVar3 = 10" identifier = number_literal) ;) (if_statement "if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }" if (parenthesized_expression "(*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24)" ( (binary_expression "*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24" (pointer_expression "*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" * (cast_expression "(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" ( (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14" (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0" identifier + (binary_expression "(long)param_1 * 0xc0" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) == identifier) )) (compound_statement "{\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }" { (expression_statement "iVar2 = find_hash("chc_hash");" (assignment_expression "iVar2 = find_hash("chc_hash")" identifier = (call_expression "find_hash("chc_hash")" identifier (argument_list "("chc_hash")" ( (string_literal ""chc_hash"" " string_content ") )))) ;) (expression_statement "uVar3 = hash_is_valid(iVar2);" (assignment_expression "uVar3 = hash_is_valid(iVar2)" identifier = (call_expression "hash_is_valid(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_hash_descriptor_001dfeb0;" (assignment_expression "puVar1 = PTR_hash_descriptor_001dfeb0" identifier = identifier) ;) (if_statement "if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }" if (parenthesized_expression "((int)uVar3 == 0)" ( (binary_expression "(int)uVar3 == 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }" { (expression_statement "DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);" (assignment_expression "DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" identifier = (pointer_expression "*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" * (cast_expression "(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" ( (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14" (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0" identifier + (binary_expression "(long)param_1 * 0xc0" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) ))))) ;) (expression_statement "*(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;" (assignment_expression "*(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024" (pointer_expression "*(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18)" * (cast_expression "(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18)" ( (binary_expression "PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18" (binary_expression "PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0" identifier + (binary_expression "(long)iVar2 * 0xd0" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) = (cast_expression "(long)DAT_001e0024" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "*(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;" (assignment_expression "*(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024" (pointer_expression "*(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10)" * (cast_expression "(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (long)iVar2 * 0xd0 + 0x10)" ( (binary_expression "puVar1 + (long)iVar2 * 0xd0 + 0x10" (binary_expression "puVar1 + (long)iVar2 * 0xd0" identifier + (binary_expression "(long)iVar2 * 0xd0" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) = (cast_expression "(long)DAT_001e0024" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "DAT_001e0008 = param_1;" (assignment_expression "DAT_001e0008 = param_1" identifier = identifier) ;) })) })) })) })) })) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int chc_register(int cipher)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int idx;\n  long in_FS_OFFSET;\n  int kl;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar2 = cipher_is_valid(cipher);\n  if (iVar2 == 0) {\n    kl = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);\n    iVar2 = 10;\n    if (8 < kl) {\n      iVar2 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x48))(&kl);\n      if ((iVar2 == 0) &&\n         (iVar2 = 10, *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14) == kl))\n      {\n        idx = find_hash("chc_hash");\n        iVar2 = hash_is_valid(idx);\n        puVar1 = PTR_hash_descriptor_001dfeb0;\n        if (iVar2 == 0) {\n          cipher_blocksize = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);\n          *(long *)(PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0 + 0x18) = (long)cipher_blocksize\n          ;\n          *(long *)(puVar1 + (long)idx * 0xd0 + 0x10) = (long)cipher_blocksize;\n          cipher_idx = cipher;\n        }\n      }\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "int chc_register(int cipher)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int idx;\n  long in_FS_OFFSET;\n  int kl;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar2 = cipher_is_valid(cipher);\n  if (iVar2 == 0) {\n    kl = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);\n    iVar2 = 10;\n    if (8 < kl) {\n      iVar2 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x48))(&kl);\n      if ((iVar2 == 0) &&\n         (iVar2 = 10, *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14) == kl))\n      {\n        idx = find_hash("chc_hash");\n        iVar2 = hash_is_valid(idx);\n        puVar1 = PTR_hash_descriptor_001dfeb0;\n        if (iVar2 == 0) {\n          cipher_blocksize = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);\n          *(long *)(PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0 + 0x18) = (long)cipher_blocksize\n          ;\n          *(long *)(puVar1 + (long)idx * 0xd0 + 0x10) = (long)cipher_blocksize;\n          cipher_idx = cipher;\n        }\n      }\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "chc_register(int cipher)" identifier (parameter_list "(int cipher)" ( (parameter_declaration "int cipher" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int idx;\n  long in_FS_OFFSET;\n  int kl;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar2 = cipher_is_valid(cipher);\n  if (iVar2 == 0) {\n    kl = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);\n    iVar2 = 10;\n    if (8 < kl) {\n      iVar2 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x48))(&kl);\n      if ((iVar2 == 0) &&\n         (iVar2 = 10, *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14) == kl))\n      {\n        idx = find_hash("chc_hash");\n        iVar2 = hash_is_valid(idx);\n        puVar1 = PTR_hash_descriptor_001dfeb0;\n        if (iVar2 == 0) {\n          cipher_blocksize = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);\n          *(long *)(PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0 + 0x18) = (long)cipher_blocksize\n          ;\n          *(long *)(puVar1 + (long)idx * 0xd0 + 0x10) = (long)cipher_blocksize;\n          cipher_idx = cipher;\n        }\n      }\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int idx;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int kl;" primitive_type identifier ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = cipher_is_valid(cipher);" (assignment_expression "iVar2 = cipher_is_valid(cipher)" identifier = (call_expression "cipher_is_valid(cipher)" identifier (argument_list "(cipher)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    kl = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);\n    iVar2 = 10;\n    if (8 < kl) {\n      iVar2 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x48))(&kl);\n      if ((iVar2 == 0) &&\n         (iVar2 = 10, *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14) == kl))\n      {\n        idx = find_hash("chc_hash");\n        iVar2 = hash_is_valid(idx);\n        puVar1 = PTR_hash_descriptor_001dfeb0;\n        if (iVar2 == 0) {\n          cipher_blocksize = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);\n          *(long *)(PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0 + 0x18) = (long)cipher_blocksize\n          ;\n          *(long *)(puVar1 + (long)idx * 0xd0 + 0x10) = (long)cipher_blocksize;\n          cipher_idx = cipher;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    kl = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);\n    iVar2 = 10;\n    if (8 < kl) {\n      iVar2 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x48))(&kl);\n      if ((iVar2 == 0) &&\n         (iVar2 = 10, *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14) == kl))\n      {\n        idx = find_hash("chc_hash");\n        iVar2 = hash_is_valid(idx);\n        puVar1 = PTR_hash_descriptor_001dfeb0;\n        if (iVar2 == 0) {\n          cipher_blocksize = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);\n          *(long *)(PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0 + 0x18) = (long)cipher_blocksize\n          ;\n          *(long *)(puVar1 + (long)idx * 0xd0 + 0x10) = (long)cipher_blocksize;\n          cipher_idx = cipher;\n        }\n      }\n    }\n  }" { (expression_statement "kl = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);" (assignment_expression "kl = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14)" identifier = (pointer_expression "*(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14)" * (cast_expression "(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14)" ( (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14" (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0" identifier + (binary_expression "(long)cipher * 0xc0" (cast_expression "(long)cipher" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) ))))) ;) (expression_statement "iVar2 = 10;" (assignment_expression "iVar2 = 10" identifier = number_literal) ;) (if_statement "if (8 < kl) {\n      iVar2 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x48))(&kl);\n      if ((iVar2 == 0) &&\n         (iVar2 = 10, *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14) == kl))\n      {\n        idx = find_hash("chc_hash");\n        iVar2 = hash_is_valid(idx);\n        puVar1 = PTR_hash_descriptor_001dfeb0;\n        if (iVar2 == 0) {\n          cipher_blocksize = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);\n          *(long *)(PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0 + 0x18) = (long)cipher_blocksize\n          ;\n          *(long *)(puVar1 + (long)idx * 0xd0 + 0x10) = (long)cipher_blocksize;\n          cipher_idx = cipher;\n        }\n      }\n    }" if (parenthesized_expression "(8 < kl)" ( (binary_expression "8 < kl" number_literal < identifier) )) (compound_statement "{\n      iVar2 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x48))(&kl);\n      if ((iVar2 == 0) &&\n         (iVar2 = 10, *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14) == kl))\n      {\n        idx = find_hash("chc_hash");\n        iVar2 = hash_is_valid(idx);\n        puVar1 = PTR_hash_descriptor_001dfeb0;\n        if (iVar2 == 0) {\n          cipher_blocksize = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);\n          *(long *)(PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0 + 0x18) = (long)cipher_blocksize\n          ;\n          *(long *)(puVar1 + (long)idx * 0xd0 + 0x10) = (long)cipher_blocksize;\n          cipher_idx = cipher;\n        }\n      }\n    }" { (expression_statement "iVar2 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x48))(&kl);" (assignment_expression "iVar2 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x48))(&kl)" identifier = (call_expression "(**(code **)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x48))(&kl)" (parenthesized_expression "(**(code **)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x48))" ( (pointer_expression "**(code **)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x48)" * (pointer_expression "*(code **)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x48)" * (cast_expression "(code **)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x48)" ( (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x48" (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0" identifier + (binary_expression "(long)cipher * 0xc0" (cast_expression "(long)cipher" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) ))))) )) (argument_list "(&kl)" ( (pointer_expression "&kl" & identifier) )))) ;) (if_statement "if ((iVar2 == 0) &&\n         (iVar2 = 10, *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14) == kl))\n      {\n        idx = find_hash("chc_hash");\n        iVar2 = hash_is_valid(idx);\n        puVar1 = PTR_hash_descriptor_001dfeb0;\n        if (iVar2 == 0) {\n          cipher_blocksize = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);\n          *(long *)(PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0 + 0x18) = (long)cipher_blocksize\n          ;\n          *(long *)(puVar1 + (long)idx * 0xd0 + 0x10) = (long)cipher_blocksize;\n          cipher_idx = cipher;\n        }\n      }" if (parenthesized_expression "((iVar2 == 0) &&\n         (iVar2 = 10, *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14) == kl))" ( (binary_expression "(iVar2 == 0) &&\n         (iVar2 = 10, *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14) == kl)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar2 = 10, *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14) == kl)" ( (comma_expression "iVar2 = 10, *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14) == kl" (assignment_expression "iVar2 = 10" identifier = number_literal) , (binary_expression "*(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14) == kl" (pointer_expression "*(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14)" * (cast_expression "(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14)" ( (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14" (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0" identifier + (binary_expression "(long)cipher * 0xc0" (cast_expression "(long)cipher" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) == identifier)) ))) )) (compound_statement "{\n        idx = find_hash("chc_hash");\n        iVar2 = hash_is_valid(idx);\n        puVar1 = PTR_hash_descriptor_001dfeb0;\n        if (iVar2 == 0) {\n          cipher_blocksize = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);\n          *(long *)(PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0 + 0x18) = (long)cipher_blocksize\n          ;\n          *(long *)(puVar1 + (long)idx * 0xd0 + 0x10) = (long)cipher_blocksize;\n          cipher_idx = cipher;\n        }\n      }" { (expression_statement "idx = find_hash("chc_hash");" (assignment_expression "idx = find_hash("chc_hash")" identifier = (call_expression "find_hash("chc_hash")" identifier (argument_list "("chc_hash")" ( (string_literal ""chc_hash"" " string_content ") )))) ;) (expression_statement "iVar2 = hash_is_valid(idx);" (assignment_expression "iVar2 = hash_is_valid(idx)" identifier = (call_expression "hash_is_valid(idx)" identifier (argument_list "(idx)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_hash_descriptor_001dfeb0;" (assignment_expression "puVar1 = PTR_hash_descriptor_001dfeb0" identifier = identifier) ;) (if_statement "if (iVar2 == 0) {\n          cipher_blocksize = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);\n          *(long *)(PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0 + 0x18) = (long)cipher_blocksize\n          ;\n          *(long *)(puVar1 + (long)idx * 0xd0 + 0x10) = (long)cipher_blocksize;\n          cipher_idx = cipher;\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          cipher_blocksize = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);\n          *(long *)(PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0 + 0x18) = (long)cipher_blocksize\n          ;\n          *(long *)(puVar1 + (long)idx * 0xd0 + 0x10) = (long)cipher_blocksize;\n          cipher_idx = cipher;\n        }" { (expression_statement "cipher_blocksize = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14);" (assignment_expression "cipher_blocksize = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14)" identifier = (pointer_expression "*(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14)" * (cast_expression "(int *)(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14)" ( (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0 + 0x14" (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)cipher * 0xc0" identifier + (binary_expression "(long)cipher * 0xc0" (cast_expression "(long)cipher" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) ))))) ;) (expression_statement "*(long *)(PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0 + 0x18) = (long)cipher_blocksize\n          ;" (assignment_expression "*(long *)(PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0 + 0x18) = (long)cipher_blocksize" (pointer_expression "*(long *)(PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0 + 0x18)" * (cast_expression "(long *)(PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0 + 0x18)" ( (binary_expression "PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0 + 0x18" (binary_expression "PTR_hash_descriptor_001dfeb0 + (long)idx * 0xd0" identifier + (binary_expression "(long)idx * 0xd0" (cast_expression "(long)idx" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) = (cast_expression "(long)cipher_blocksize" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "*(long *)(puVar1 + (long)idx * 0xd0 + 0x10) = (long)cipher_blocksize;" (assignment_expression "*(long *)(puVar1 + (long)idx * 0xd0 + 0x10) = (long)cipher_blocksize" (pointer_expression "*(long *)(puVar1 + (long)idx * 0xd0 + 0x10)" * (cast_expression "(long *)(puVar1 + (long)idx * 0xd0 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (long)idx * 0xd0 + 0x10)" ( (binary_expression "puVar1 + (long)idx * 0xd0 + 0x10" (binary_expression "puVar1 + (long)idx * 0xd0" identifier + (binary_expression "(long)idx * 0xd0" (cast_expression "(long)idx" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) = (cast_expression "(long)cipher_blocksize" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "cipher_idx = cipher;" (assignment_expression "cipher_idx = cipher" identifier = identifier) ;) })) })) })) })) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined8 chc_register(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  int local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar3 = cipher_is_valid();\n  if ((int)uVar3 == 0) {\n    local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n    uVar3 = 10;\n    if (8 < local_24) {\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "undefined8 chc_register(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  int local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar3 = cipher_is_valid();\n  if ((int)uVar3 == 0) {\n    local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n    uVar3 = 10;\n    if (8 < local_24) {\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (function_declarator "chc_register(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  int local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar3 = cipher_is_valid();\n  if ((int)uVar3 == 0) {\n    local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n    uVar3 = 10;\n    if (8 < local_24) {\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = cipher_is_valid();" (assignment_expression "uVar3 = cipher_is_valid()" identifier = (call_expression "cipher_is_valid()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((int)uVar3 == 0) {\n    local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n    uVar3 = 10;\n    if (8 < local_24) {\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }\n  }" if (parenthesized_expression "((int)uVar3 == 0)" ( (binary_expression "(int)uVar3 == 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n    local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n    uVar3 = 10;\n    if (8 < local_24) {\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }\n  }" { (expression_statement "local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);" (assignment_expression "local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" identifier = (pointer_expression "*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" * (cast_expression "(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" ( (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14" (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0" identifier + (binary_expression "(long)param_1 * 0xc0" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) ))))) ;) (expression_statement "uVar3 = 10;" (assignment_expression "uVar3 = 10" identifier = number_literal) ;) (if_statement "if (8 < local_24) {\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }" if (parenthesized_expression "(8 < local_24)" ( (binary_expression "8 < local_24" number_literal < identifier) )) (compound_statement "{\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }" { (expression_statement "uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;" (assignment_expression "uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)" identifier = (call_expression "(**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)" (parenthesized_expression "(**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))" ( (pointer_expression "**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48)" * (pointer_expression "*(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48)" * (cast_expression "(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48)" ( (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48" (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0" identifier + (binary_expression "(long)param_1 * 0xc0" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) ))))) )) (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }" if (parenthesized_expression "((int)uVar3 == 0)" ( (binary_expression "(int)uVar3 == 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }" { (expression_statement "uVar3 = 10;" (assignment_expression "uVar3 = 10" identifier = number_literal) ;) (if_statement "if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }" if (parenthesized_expression "(*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24)" ( (binary_expression "*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24" (pointer_expression "*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" * (cast_expression "(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" ( (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14" (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0" identifier + (binary_expression "(long)param_1 * 0xc0" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) == identifier) )) (compound_statement "{\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }" { (expression_statement "iVar2 = find_hash("chc_hash");" (assignment_expression "iVar2 = find_hash("chc_hash")" identifier = (call_expression "find_hash("chc_hash")" identifier (argument_list "("chc_hash")" ( (string_literal ""chc_hash"" " string_content ") )))) ;) (expression_statement "uVar3 = hash_is_valid(iVar2);" (assignment_expression "uVar3 = hash_is_valid(iVar2)" identifier = (call_expression "hash_is_valid(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_hash_descriptor_001dfeb0;" (assignment_expression "puVar1 = PTR_hash_descriptor_001dfeb0" identifier = identifier) ;) (if_statement "if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }" if (parenthesized_expression "((int)uVar3 == 0)" ( (binary_expression "(int)uVar3 == 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }" { (expression_statement "DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);" (assignment_expression "DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" identifier = (pointer_expression "*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" * (cast_expression "(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" ( (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14" (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0" identifier + (binary_expression "(long)param_1 * 0xc0" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) ))))) ;) (expression_statement "*(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;" (assignment_expression "*(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024" (pointer_expression "*(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18)" * (cast_expression "(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18)" ( (binary_expression "PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18" (binary_expression "PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0" identifier + (binary_expression "(long)iVar2 * 0xd0" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) = (cast_expression "(long)DAT_001e0024" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "*(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;" (assignment_expression "*(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024" (pointer_expression "*(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10)" * (cast_expression "(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (long)iVar2 * 0xd0 + 0x10)" ( (binary_expression "puVar1 + (long)iVar2 * 0xd0 + 0x10" (binary_expression "puVar1 + (long)iVar2 * 0xd0" identifier + (binary_expression "(long)iVar2 * 0xd0" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) = (cast_expression "(long)DAT_001e0024" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "DAT_001e0008 = param_1;" (assignment_expression "DAT_001e0008 = param_1" identifier = identifier) ;) })) })) })) })) })) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) + LIT) ))))) )) (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) + LIT) )))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) + LIT) )))) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) + LIT) )))) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) })) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined8 chc_register(int param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  int local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar3 = cipher_is_valid();\n  if ((int)uVar3 == 0) {\n    local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n    uVar3 = 10;\n    if (8 < local_24) {\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "undefined8") (function_declarator "chc_register(int param_1)" (identifier "chc_register") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  int local_24;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar3 = cipher_is_valid();\n  if ((int)uVar3 == 0) {\n    local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n    uVar3 = 10;\n    if (8 < local_24) {\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "long local_20;" (sized_type_specifier "long" (long "long")) (identifier "local_20") (; ";")) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "uVar3 = cipher_is_valid();" (assignment_expression "uVar3 = cipher_is_valid()" (identifier "uVar3") (= "=") (call_expression "cipher_is_valid()" (identifier "cipher_is_valid") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((int)uVar3 == 0) {\n    local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n    uVar3 = 10;\n    if (8 < local_24) {\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "((int)uVar3 == 0)" (( "(") (binary_expression "(int)uVar3 == 0" (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n    uVar3 = 10;\n    if (8 < local_24) {\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);" (assignment_expression "local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" (identifier "local_24") (= "=") (pointer_expression "*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" (* "*") (cast_expression "(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" (( "(") (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14" (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0" (identifier "PTR_cipher_descriptor_001dfee8") (+ "+") (binary_expression "(long)param_1 * 0xc0" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (* "*") (number_literal "0xc0"))) (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar3 = 10;" (assignment_expression "uVar3 = 10" (identifier "uVar3") (= "=") (number_literal "10")) (; ";")) (if_statement "if (8 < local_24) {\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }" (if "if") (parenthesized_expression "(8 < local_24)" (( "(") (binary_expression "8 < local_24" (number_literal "8") (< "<") (identifier "local_24")) () ")")) (compound_statement "{\n      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;\n      if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }\n    }" ({ "{") (expression_statement "uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)\n      ;" (assignment_expression "uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)" (identifier "uVar3") (= "=") (call_expression "(**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)" (parenthesized_expression "(**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))" (( "(") (pointer_expression "**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48)" (* "*") (pointer_expression "*(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48)" (* "*") (cast_expression "(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48)" (( "(") (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48" (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0" (identifier "PTR_cipher_descriptor_001dfee8") (+ "+") (binary_expression "(long)param_1 * 0xc0" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (* "*") (number_literal "0xc0"))) (+ "+") (number_literal "0x48")) () ")"))))) () ")")) (argument_list "(&local_24)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (if_statement "if ((int)uVar3 == 0) {\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }" (if "if") (parenthesized_expression "((int)uVar3 == 0)" (( "(") (binary_expression "(int)uVar3 == 0" (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar3 = 10;\n        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }\n      }" ({ "{") (expression_statement "uVar3 = 10;" (assignment_expression "uVar3 = 10" (identifier "uVar3") (= "=") (number_literal "10")) (; ";")) (if_statement "if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }" (if "if") (parenthesized_expression "(*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24)" (( "(") (binary_expression "*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24" (pointer_expression "*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" (* "*") (cast_expression "(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" (( "(") (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14" (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0" (identifier "PTR_cipher_descriptor_001dfee8") (+ "+") (binary_expression "(long)param_1 * 0xc0" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (* "*") (number_literal "0xc0"))) (+ "+") (number_literal "0x14")) () ")")))) (== "==") (identifier "local_24")) () ")")) (compound_statement "{\n          iVar2 = find_hash("chc_hash");\n          uVar3 = hash_is_valid(iVar2);\n          puVar1 = PTR_hash_descriptor_001dfeb0;\n          if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }\n        }" ({ "{") (expression_statement "iVar2 = find_hash("chc_hash");" (assignment_expression "iVar2 = find_hash("chc_hash")" (identifier "iVar2") (= "=") (call_expression "find_hash("chc_hash")" (identifier "find_hash") (argument_list "("chc_hash")" (( "(") (string_literal ""chc_hash"" (" """) (string_content "chc_hash") (" """)) () ")")))) (; ";")) (expression_statement "uVar3 = hash_is_valid(iVar2);" (assignment_expression "uVar3 = hash_is_valid(iVar2)" (identifier "uVar3") (= "=") (call_expression "hash_is_valid(iVar2)" (identifier "hash_is_valid") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_hash_descriptor_001dfeb0;" (assignment_expression "puVar1 = PTR_hash_descriptor_001dfeb0" (identifier "puVar1") (= "=") (identifier "PTR_hash_descriptor_001dfeb0")) (; ";")) (if_statement "if ((int)uVar3 == 0) {\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }" (if "if") (parenthesized_expression "((int)uVar3 == 0)" (( "(") (binary_expression "(int)uVar3 == 0" (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);\n            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;\n            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;\n            DAT_001e0008 = param_1;\n          }" ({ "{") (expression_statement "DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);" (assignment_expression "DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" (identifier "DAT_001e0024") (= "=") (pointer_expression "*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" (* "*") (cast_expression "(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14)" (( "(") (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14" (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0" (identifier "PTR_cipher_descriptor_001dfee8") (+ "+") (binary_expression "(long)param_1 * 0xc0" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (* "*") (number_literal "0xc0"))) (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "*(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024\n            ;" (assignment_expression "*(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024" (pointer_expression "*(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18)" (* "*") (cast_expression "(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18)" (( "(") (binary_expression "PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18" (binary_expression "PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0" (identifier "PTR_hash_descriptor_001dfeb0") (+ "+") (binary_expression "(long)iVar2 * 0xd0" (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2")) (* "*") (number_literal "0xd0"))) (+ "+") (number_literal "0x18")) () ")")))) (= "=") (cast_expression "(long)DAT_001e0024" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "DAT_001e0024"))) (; ";")) (expression_statement "*(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;" (assignment_expression "*(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024" (pointer_expression "*(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10)" (* "*") (cast_expression "(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + (long)iVar2 * 0xd0 + 0x10)" (( "(") (binary_expression "puVar1 + (long)iVar2 * 0xd0 + 0x10" (binary_expression "puVar1 + (long)iVar2 * 0xd0" (identifier "puVar1") (+ "+") (binary_expression "(long)iVar2 * 0xd0" (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2")) (* "*") (number_literal "0xd0"))) (+ "+") (number_literal "0x10")) () ")")))) (= "=") (cast_expression "(long)DAT_001e0024" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "DAT_001e0024"))) (; ";")) (expression_statement "DAT_001e0008 = param_1;" (assignment_expression "DAT_001e0008 = param_1" (identifier "DAT_001e0008") (= "=") (identifier "param_1")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (} "}"))) (} "}"))) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return uVar3;\n  }" ({ "{") (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

int function_1(int cipher)

{
  type_1 *var_9;
  int var_3;
  int idx;
  long var_1;
  int var_5;
  long var_10;
  
  var_10 = *(long *)(var_1 + 0x28);
  var_3 = var_2(cipher);
  if (var_3 == 0) {
    var_5 = *(int *)(var_4 + (long)cipher * 0xc0 + 0x14);
    var_3 = 10;
    if (8 < var_5) {
      var_3 = (**(type_2 **)(var_4 + (long)cipher * 0xc0 + 0x48))(&var_5);
      if ((var_3 == 0) &&
         (var_3 = 10, *(int *)(var_4 + (long)cipher * 0xc0 + 0x14) == var_5))
      {
        idx = var_6("chc_hash");
        var_3 = var_7(idx);
        var_9 = var_8;
        if (var_3 == 0) {
          cipher_blocksize = *(int *)(var_4 + (long)cipher * 0xc0 + 0x14);
          *(long *)(var_8 + (long)idx * 0xd0 + 0x18) = (long)cipher_blocksize
          ;
          *(long *)(var_9 + (long)idx * 0xd0 + 0x10) = (long)cipher_blocksize;
          cipher_idx = cipher;
        }
      }
    }
  }
  if (var_10 == *(long *)(var_1 + 0x28)) {
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_11();
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

undefined8 MASKED(int param_1)

{
  undefined *puVar1;
  int iVar2;
  undefined8 uVar3;
  long in_FS_OFFSET;
  int local_24;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  uVar3 = cipher_is_valid();
  if ((int)uVar3 == 0) {
    local_24 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);
    uVar3 = 10;
    if (8 < local_24) {
      uVar3 = (**(code **)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x48))(&local_24)
      ;
      if ((int)uVar3 == 0) {
        uVar3 = 10;
        if (*(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14) == local_24) {
          iVar2 = find_hash("chc_hash");
          uVar3 = hash_is_valid(iVar2);
          puVar1 = PTR_hash_descriptor_001dfeb0;
          if ((int)uVar3 == 0) {
            DAT_001e0024 = *(int *)(PTR_cipher_descriptor_001dfee8 + (long)param_1 * 0xc0 + 0x14);
            *(long *)(PTR_hash_descriptor_001dfeb0 + (long)iVar2 * 0xd0 + 0x18) = (long)DAT_001e0024
            ;
            *(long *)(puVar1 + (long)iVar2 * 0xd0 + 0x10) = (long)DAT_001e0024;
            DAT_001e0008 = param_1;
          }
        }
      }
    }
  }
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

