
int ctr_done(symmetric_CTR *ctr)

{
  int iVar1;
  
  if (ctr != (symmetric_CTR *)0x0) {
    iVar1 = cipher_is_valid(ctr->cipher);
    if (iVar1 == 0) {
      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ctr->cipher * 0xc0 + 0x40))(&ctr->key);
    }
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19);
}



int ctr_done(int *param_1)

{
  int iVar1;
  
  if (param_1 != (int *)0x0) {
    iVar1 = cipher_is_valid(*param_1);
    if (iVar1 == 0) {
      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);
    }
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19);
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
TEST RDI,RDI
JZ 0x00168aa0
MOV RBX,RDI
MOV EDI,dword ptr [RDI]
CALL 0x00113da0
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x00168a97
MOVSXD RAX,dword ptr [RBX]
LEA RDI,[RBX + 0x118]
LEA RDX,[RAX + RAX*0x2]
SHL RDX,0x6
ADD RDX,qword ptr [0x001dded0]
CALL qword ptr [RDX + 0x40]
ADD RSP,0x8
MOV EAX,EBP
POP RBX
POP RBP
RET
MOV EDX,0x19
LEA RSI,[0x1c05cd]
LEA RDI,[0x1c05c1]
CALL 0x00114270
(translation_unit "int ctr_done(int *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 != (int *)0x0) {\n    iVar1 = cipher_is_valid(*param_1);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19);\n}\n\n" (function_definition "int ctr_done(int *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 != (int *)0x0) {\n    iVar1 = cipher_is_valid(*param_1);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19);\n}" primitive_type (function_declarator "ctr_done(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 != (int *)0x0) {\n    iVar1 = cipher_is_valid(*param_1);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 != (int *)0x0) {\n    iVar1 = cipher_is_valid(*param_1);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(param_1 != (int *)0x0)" ( (binary_expression "param_1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = cipher_is_valid(*param_1);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }\n    return iVar1;\n  }" { (expression_statement "iVar1 = cipher_is_valid(*param_1);" (assignment_expression "iVar1 = cipher_is_valid(*param_1)" identifier = (call_expression "cipher_is_valid(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }" { (expression_statement "(**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);" (call_expression "(**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46)" (parenthesized_expression "(**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))" ( (pointer_expression "**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40)" * (pointer_expression "*(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40)" * (cast_expression "(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40)" ( (binary_expression "PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40" (binary_expression "PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0" identifier + (binary_expression "(long)*param_1 * 0xc0" (cast_expression "(long)*param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*param_1" * identifier)) * number_literal)) + number_literal) ))))) )) (argument_list "(param_1 + 0x46)" ( (binary_expression "param_1 + 0x46" identifier + number_literal) ))) ;) })) (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19);" (call_expression "crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19)" identifier (argument_list "("ctr != NULL","src/modes/ctr/ctr_done.c",0x19)" ( (string_literal ""ctr != NULL"" " string_content ") , (string_literal ""src/modes/ctr/ctr_done.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit "int ctr_done(symmetric_CTR *ctr)\n\n{\n  int iVar1;\n  \n  if (ctr != (symmetric_CTR *)0x0) {\n    iVar1 = cipher_is_valid(ctr->cipher);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ctr->cipher * 0xc0 + 0x40))(&ctr->key);\n    }\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19);\n}\n\n" (function_definition "int ctr_done(symmetric_CTR *ctr)\n\n{\n  int iVar1;\n  \n  if (ctr != (symmetric_CTR *)0x0) {\n    iVar1 = cipher_is_valid(ctr->cipher);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ctr->cipher * 0xc0 + 0x40))(&ctr->key);\n    }\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19);\n}" primitive_type (function_declarator "ctr_done(symmetric_CTR *ctr)" identifier (parameter_list "(symmetric_CTR *ctr)" ( (parameter_declaration "symmetric_CTR *ctr" type_identifier (pointer_declarator "*ctr" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (ctr != (symmetric_CTR *)0x0) {\n    iVar1 = cipher_is_valid(ctr->cipher);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ctr->cipher * 0xc0 + 0x40))(&ctr->key);\n    }\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (ctr != (symmetric_CTR *)0x0) {\n    iVar1 = cipher_is_valid(ctr->cipher);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ctr->cipher * 0xc0 + 0x40))(&ctr->key);\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(ctr != (symmetric_CTR *)0x0)" ( (binary_expression "ctr != (symmetric_CTR *)0x0" identifier != (cast_expression "(symmetric_CTR *)0x0" ( (type_descriptor "symmetric_CTR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = cipher_is_valid(ctr->cipher);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ctr->cipher * 0xc0 + 0x40))(&ctr->key);\n    }\n    return iVar1;\n  }" { (expression_statement "iVar1 = cipher_is_valid(ctr->cipher);" (assignment_expression "iVar1 = cipher_is_valid(ctr->cipher)" identifier = (call_expression "cipher_is_valid(ctr->cipher)" identifier (argument_list "(ctr->cipher)" ( (field_expression "ctr->cipher" identifier -> field_identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ctr->cipher * 0xc0 + 0x40))(&ctr->key);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ctr->cipher * 0xc0 + 0x40))(&ctr->key);\n    }" { (expression_statement "(**(code **)(PTR_cipher_descriptor_001dded0 + (long)ctr->cipher * 0xc0 + 0x40))(&ctr->key);" (call_expression "(**(code **)(PTR_cipher_descriptor_001dded0 + (long)ctr->cipher * 0xc0 + 0x40))(&ctr->key)" (parenthesized_expression "(**(code **)(PTR_cipher_descriptor_001dded0 + (long)ctr->cipher * 0xc0 + 0x40))" ( (pointer_expression "**(code **)(PTR_cipher_descriptor_001dded0 + (long)ctr->cipher * 0xc0 + 0x40)" * (pointer_expression "*(code **)(PTR_cipher_descriptor_001dded0 + (long)ctr->cipher * 0xc0 + 0x40)" * (cast_expression "(code **)(PTR_cipher_descriptor_001dded0 + (long)ctr->cipher * 0xc0 + 0x40)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_cipher_descriptor_001dded0 + (long)ctr->cipher * 0xc0 + 0x40)" ( (binary_expression "PTR_cipher_descriptor_001dded0 + (long)ctr->cipher * 0xc0 + 0x40" (binary_expression "PTR_cipher_descriptor_001dded0 + (long)ctr->cipher * 0xc0" identifier + (binary_expression "(long)ctr->cipher * 0xc0" (cast_expression "(long)ctr->cipher" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "ctr->cipher" identifier -> field_identifier)) * number_literal)) + number_literal) ))))) )) (argument_list "(&ctr->key)" ( (pointer_expression "&ctr->key" & (field_expression "ctr->key" identifier -> field_identifier)) ))) ;) })) (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19);" (call_expression "crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19)" identifier (argument_list "("ctr != NULL","src/modes/ctr/ctr_done.c",0x19)" ( (string_literal ""ctr != NULL"" " string_content ") , (string_literal ""src/modes/ctr/ctr_done.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit "int ctr_done(int *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 != (int *)0x0) {\n    iVar1 = cipher_is_valid(*param_1);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }\n    return iVar1;\n  }\n                    \n  crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19);\n}\n\n" (function_definition "int ctr_done(int *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 != (int *)0x0) {\n    iVar1 = cipher_is_valid(*param_1);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }\n    return iVar1;\n  }\n                    \n  crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19);\n}" primitive_type (function_declarator "ctr_done(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 != (int *)0x0) {\n    iVar1 = cipher_is_valid(*param_1);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }\n    return iVar1;\n  }\n                    \n  crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 != (int *)0x0) {\n    iVar1 = cipher_is_valid(*param_1);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(param_1 != (int *)0x0)" ( (binary_expression "param_1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = cipher_is_valid(*param_1);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }\n    return iVar1;\n  }" { (expression_statement "iVar1 = cipher_is_valid(*param_1);" (assignment_expression "iVar1 = cipher_is_valid(*param_1)" identifier = (call_expression "cipher_is_valid(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }" { (expression_statement "(**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);" (call_expression "(**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46)" (parenthesized_expression "(**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))" ( (pointer_expression "**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40)" * (pointer_expression "*(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40)" * (cast_expression "(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40)" ( (binary_expression "PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40" (binary_expression "PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0" identifier + (binary_expression "(long)*param_1 * 0xc0" (cast_expression "(long)*param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*param_1" * identifier)) * number_literal)) + number_literal) ))))) )) (argument_list "(param_1 + 0x46)" ( (binary_expression "param_1 + 0x46" identifier + number_literal) ))) ;) })) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19);" (call_expression "crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19)" identifier (argument_list "("ctr != NULL","src/modes/ctr/ctr_done.c",0x19)" ( (string_literal ""ctr != NULL"" " string_content ") , (string_literal ""src/modes/ctr/ctr_done.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (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)) ) (pointer_expression * IDENT)) * LIT)) + LIT) ))))) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })))
(function_definition "int ctr_done(int *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 != (int *)0x0) {\n    iVar1 = cipher_is_valid(*param_1);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }\n    return iVar1;\n  }\n                    \n  crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19);\n}" (primitive_type "int") (function_declarator "ctr_done(int *param_1)" (identifier "ctr_done") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 != (int *)0x0) {\n    iVar1 = cipher_is_valid(*param_1);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }\n    return iVar1;\n  }\n                    \n  crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_1 != (int *)0x0) {\n    iVar1 = cipher_is_valid(*param_1);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(param_1 != (int *)0x0)" (( "(") (binary_expression "param_1 != (int *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = cipher_is_valid(*param_1);\n    if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }\n    return iVar1;\n  }" ({ "{") (expression_statement "iVar1 = cipher_is_valid(*param_1);" (assignment_expression "iVar1 = cipher_is_valid(*param_1)" (identifier "iVar1") (= "=") (call_expression "cipher_is_valid(*param_1)" (identifier "cipher_is_valid") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);\n    }" ({ "{") (expression_statement "(**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);" (call_expression "(**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46)" (parenthesized_expression "(**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))" (( "(") (pointer_expression "**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40)" (* "*") (pointer_expression "*(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40)" (* "*") (cast_expression "(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40)" (( "(") (binary_expression "PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40" (binary_expression "PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0" (identifier "PTR_cipher_descriptor_001dded0") (+ "+") (binary_expression "(long)*param_1 * 0xc0" (cast_expression "(long)*param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (* "*") (number_literal "0xc0"))) (+ "+") (number_literal "0x40")) () ")"))))) () ")")) (argument_list "(param_1 + 0x46)" (( "(") (binary_expression "param_1 + 0x46" (identifier "param_1") (+ "+") (number_literal "0x46")) () ")"))) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19);" (call_expression "crypt_argchk("ctr != NULL","src/modes/ctr/ctr_done.c",0x19)" (identifier "crypt_argchk") (argument_list "("ctr != NULL","src/modes/ctr/ctr_done.c",0x19)" (( "(") (string_literal ""ctr != NULL"" (" """) (string_content "ctr != NULL") (" """)) (, ",") (string_literal ""src/modes/ctr/ctr_done.c"" (" """) (string_content "src/modes/ctr/ctr_done.c") (" """)) (, ",") (number_literal "0x19") () ")"))) (; ";")) (} "}")))

int function_1(type_1 *var_1)

{
  int var_3;
  
  if (var_1 != (type_1 *)0x0) {
    var_3 = var_2(var_1->cipher);
    if (var_3 == 0) {
      (**(type_2 **)(var_4 + (long)var_1->cipher * 0xc0 + 0x40))(&var_1->key);
    }
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_5("ctr != NULL","src/modes/ctr/ctr_done.c",0x19);
}


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

int MASKED(int *param_1)

{
  int iVar1;
  
  if (param_1 != (int *)0x0) {
    iVar1 = cipher_is_valid(*param_1);
    if (iVar1 == 0) {
      (**(code **)(PTR_cipher_descriptor_001dded0 + (long)*param_1 * 0xc0 + 0x40))(param_1 + 0x46);
    }
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("ctr != NULL","src/modes/ctr/MASKED.c",0x19);
}

