
int cbc_setiv(uchar *IV,ulong len,symmetric_CBC *cbc)

{
  int iVar1;
  
  if (IV == (uchar *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);
  }
  if (cbc != (symmetric_CBC *)0x0) {
    iVar1 = 0x10;
    if ((long)cbc->blocklen == len) {
      memcpy(cbc->IV,IV,(long)cbc->blocklen);
      iVar1 = 0;
    }
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d);
}



undefined8 cbc_setiv(void *param_1,size_t param_2,long param_3)

{
  undefined8 uVar1;
  
  if (param_1 == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);
  }
  if (param_3 != 0) {
    uVar1 = 0x10;
    if ((long)*(int *)(param_3 + 4) == param_2) {
      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));
      uVar1 = 0;
    }
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d);
}


SUB RSP,0x8
TEST RDI,RDI
JZ 0x001736bd
TEST RDX,RDX
JZ 0x001736a5
MOVSXD RCX,dword ptr [RDX + 0x4]
MOV EAX,0x10
CMP RCX,RSI
JNZ 0x001736a0
LEA RAX,[RDX + 0x8]
MOV RSI,RDI
MOV RDX,RCX
MOV RDI,RAX
CALL 0x00113f70
XOR EAX,EAX
ADD RSP,0x8
RET
MOV EDX,0x1d
LEA RSI,[0x1cfae6]
LEA RDI,[0x1ccf4a]
CALL 0x00114270
MOV EDX,0x1c
LEA RSI,[0x1cfae6]
LEA RDI,[0x1bb9c7]
CALL 0x00114270
(translation_unit "undefined8 cbc_setiv(void *param_1,size_t param_2,long param_3)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }\n  if (param_3 != 0) {\n    uVar1 = 0x10;\n    if ((long)*(int *)(param_3 + 4) == param_2) {\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d);\n}\n\n" (function_definition "undefined8 cbc_setiv(void *param_1,size_t param_2,long param_3)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }\n  if (param_3 != 0) {\n    uVar1 = 0x10;\n    if ((long)*(int *)(param_3 + 4) == param_2) {\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d);\n}" type_identifier (function_declarator "cbc_setiv(void *param_1,size_t param_2,long param_3)" identifier (parameter_list "(void *param_1,size_t param_2,long param_3)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if (param_1 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }\n  if (param_3 != 0) {\n    uVar1 = 0x10;\n    if ((long)*(int *)(param_3 + 4) == param_2) {\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d);\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }" if (parenthesized_expression "(param_1 == (void *)0x0)" ( (binary_expression "param_1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }" { comment (expression_statement "crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);" (call_expression "crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c)" identifier (argument_list "("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c)" ( (string_literal ""IV != NULL"" " string_content ") , (string_literal ""src/modes/cbc/cbc_setiv.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_3 != 0) {\n    uVar1 = 0x10;\n    if ((long)*(int *)(param_3 + 4) == param_2) {\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }\n    return uVar1;\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = 0x10;\n    if ((long)*(int *)(param_3 + 4) == param_2) {\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }\n    return uVar1;\n  }" { (expression_statement "uVar1 = 0x10;" (assignment_expression "uVar1 = 0x10" identifier = number_literal) ;) (if_statement "if ((long)*(int *)(param_3 + 4) == param_2) {\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }" if (parenthesized_expression "((long)*(int *)(param_3 + 4) == param_2)" ( (binary_expression "(long)*(int *)(param_3 + 4) == param_2" (cast_expression "(long)*(int *)(param_3 + 4)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) ))))) == identifier) )) (compound_statement "{\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }" { (expression_statement "memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));" (call_expression "memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4))" identifier (argument_list "((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4))" ( (cast_expression "(void *)(param_3 + 8)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) ))) , identifier , (cast_expression "(long)*(int *)(param_3 + 4)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) ))))) ))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (return_statement "return uVar1;" return identifier ;) })) comment (expression_statement "crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d);" (call_expression "crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d)" identifier (argument_list "("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d)" ( (string_literal ""cbc != NULL"" " string_content ") , (string_literal ""src/modes/cbc/cbc_setiv.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit "int cbc_setiv(uchar *IV,ulong len,symmetric_CBC *cbc)\n\n{\n  int iVar1;\n  \n  if (IV == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }\n  if (cbc != (symmetric_CBC *)0x0) {\n    iVar1 = 0x10;\n    if ((long)cbc->blocklen == len) {\n      memcpy(cbc->IV,IV,(long)cbc->blocklen);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d);\n}\n\n" (function_definition "int cbc_setiv(uchar *IV,ulong len,symmetric_CBC *cbc)\n\n{\n  int iVar1;\n  \n  if (IV == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }\n  if (cbc != (symmetric_CBC *)0x0) {\n    iVar1 = 0x10;\n    if ((long)cbc->blocklen == len) {\n      memcpy(cbc->IV,IV,(long)cbc->blocklen);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d);\n}" primitive_type (function_declarator "cbc_setiv(uchar *IV,ulong len,symmetric_CBC *cbc)" identifier (parameter_list "(uchar *IV,ulong len,symmetric_CBC *cbc)" ( (parameter_declaration "uchar *IV" type_identifier (pointer_declarator "*IV" * identifier)) , (parameter_declaration "ulong len" type_identifier identifier) , (parameter_declaration "symmetric_CBC *cbc" type_identifier (pointer_declarator "*cbc" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (IV == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }\n  if (cbc != (symmetric_CBC *)0x0) {\n    iVar1 = 0x10;\n    if ((long)cbc->blocklen == len) {\n      memcpy(cbc->IV,IV,(long)cbc->blocklen);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (IV == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }" if (parenthesized_expression "(IV == (uchar *)0x0)" ( (binary_expression "IV == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }" { comment (expression_statement "crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);" (call_expression "crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c)" identifier (argument_list "("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c)" ( (string_literal ""IV != NULL"" " string_content ") , (string_literal ""src/modes/cbc/cbc_setiv.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (cbc != (symmetric_CBC *)0x0) {\n    iVar1 = 0x10;\n    if ((long)cbc->blocklen == len) {\n      memcpy(cbc->IV,IV,(long)cbc->blocklen);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(cbc != (symmetric_CBC *)0x0)" ( (binary_expression "cbc != (symmetric_CBC *)0x0" identifier != (cast_expression "(symmetric_CBC *)0x0" ( (type_descriptor "symmetric_CBC *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = 0x10;\n    if ((long)cbc->blocklen == len) {\n      memcpy(cbc->IV,IV,(long)cbc->blocklen);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }" { (expression_statement "iVar1 = 0x10;" (assignment_expression "iVar1 = 0x10" identifier = number_literal) ;) (if_statement "if ((long)cbc->blocklen == len) {\n      memcpy(cbc->IV,IV,(long)cbc->blocklen);\n      iVar1 = 0;\n    }" if (parenthesized_expression "((long)cbc->blocklen == len)" ( (binary_expression "(long)cbc->blocklen == len" (cast_expression "(long)cbc->blocklen" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "cbc->blocklen" identifier -> field_identifier)) == identifier) )) (compound_statement "{\n      memcpy(cbc->IV,IV,(long)cbc->blocklen);\n      iVar1 = 0;\n    }" { (expression_statement "memcpy(cbc->IV,IV,(long)cbc->blocklen);" (call_expression "memcpy(cbc->IV,IV,(long)cbc->blocklen)" identifier (argument_list "(cbc->IV,IV,(long)cbc->blocklen)" ( (field_expression "cbc->IV" identifier -> field_identifier) , identifier , (cast_expression "(long)cbc->blocklen" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "cbc->blocklen" identifier -> field_identifier)) ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d);" (call_expression "crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d)" identifier (argument_list "("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d)" ( (string_literal ""cbc != NULL"" " string_content ") , (string_literal ""src/modes/cbc/cbc_setiv.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit "undefined8 cbc_setiv(void *param_1,size_t param_2,long param_3)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 == (void *)0x0) {\n                    \n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }\n  if (param_3 != 0) {\n    uVar1 = 0x10;\n    if ((long)*(int *)(param_3 + 4) == param_2) {\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }\n    return uVar1;\n  }\n                    \n  crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d);\n}\n\n" (function_definition "undefined8 cbc_setiv(void *param_1,size_t param_2,long param_3)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 == (void *)0x0) {\n                    \n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }\n  if (param_3 != 0) {\n    uVar1 = 0x10;\n    if ((long)*(int *)(param_3 + 4) == param_2) {\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }\n    return uVar1;\n  }\n                    \n  crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d);\n}" type_identifier (function_declarator "cbc_setiv(void *param_1,size_t param_2,long param_3)" identifier (parameter_list "(void *param_1,size_t param_2,long param_3)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if (param_1 == (void *)0x0) {\n                    \n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }\n  if (param_3 != 0) {\n    uVar1 = 0x10;\n    if ((long)*(int *)(param_3 + 4) == param_2) {\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }\n    return uVar1;\n  }\n                    \n  crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d);\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == (void *)0x0) {\n                    \n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }" if (parenthesized_expression "(param_1 == (void *)0x0)" ( (binary_expression "param_1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }" { (expression_statement "crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);" (call_expression "crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c)" identifier (argument_list "("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c)" ( (string_literal ""IV != NULL"" " string_content ") , (string_literal ""src/modes/cbc/cbc_setiv.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_3 != 0) {\n    uVar1 = 0x10;\n    if ((long)*(int *)(param_3 + 4) == param_2) {\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }\n    return uVar1;\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = 0x10;\n    if ((long)*(int *)(param_3 + 4) == param_2) {\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }\n    return uVar1;\n  }" { (expression_statement "uVar1 = 0x10;" (assignment_expression "uVar1 = 0x10" identifier = number_literal) ;) (if_statement "if ((long)*(int *)(param_3 + 4) == param_2) {\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }" if (parenthesized_expression "((long)*(int *)(param_3 + 4) == param_2)" ( (binary_expression "(long)*(int *)(param_3 + 4) == param_2" (cast_expression "(long)*(int *)(param_3 + 4)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) ))))) == identifier) )) (compound_statement "{\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }" { (expression_statement "memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));" (call_expression "memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4))" identifier (argument_list "((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4))" ( (cast_expression "(void *)(param_3 + 8)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) ))) , identifier , (cast_expression "(long)*(int *)(param_3 + 4)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) ))))) ))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d);" (call_expression "crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d)" identifier (argument_list "("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d)" ( (string_literal ""cbc != NULL"" " string_content ") , (string_literal ""src/modes/cbc/cbc_setiv.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) 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 (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) == IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , IDENT , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) ;) (expression_statement (assignment_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 "undefined8 cbc_setiv(void *param_1,size_t param_2,long param_3)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 == (void *)0x0) {\n                    \n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }\n  if (param_3 != 0) {\n    uVar1 = 0x10;\n    if ((long)*(int *)(param_3 + 4) == param_2) {\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }\n    return uVar1;\n  }\n                    \n  crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d);\n}" (type_identifier "undefined8") (function_declarator "cbc_setiv(void *param_1,size_t param_2,long param_3)" (identifier "cbc_setiv") (parameter_list "(void *param_1,size_t param_2,long param_3)" (( "(") (parameter_declaration "void *param_1" (primitive_type "void") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "size_t param_2" (primitive_type "size_t") (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if (param_1 == (void *)0x0) {\n                    \n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }\n  if (param_3 != 0) {\n    uVar1 = 0x10;\n    if ((long)*(int *)(param_3 + 4) == param_2) {\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }\n    return uVar1;\n  }\n                    \n  crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d);\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (if_statement "if (param_1 == (void *)0x0) {\n                    \n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }" (if "if") (parenthesized_expression "(param_1 == (void *)0x0)" (( "(") (binary_expression "param_1 == (void *)0x0" (identifier "param_1") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);\n  }" ({ "{") (expression_statement "crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);" (call_expression "crypt_argchk("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c)" (identifier "crypt_argchk") (argument_list "("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c)" (( "(") (string_literal ""IV != NULL"" (" """) (string_content "IV != NULL") (" """)) (, ",") (string_literal ""src/modes/cbc/cbc_setiv.c"" (" """) (string_content "src/modes/cbc/cbc_setiv.c") (" """)) (, ",") (number_literal "0x1c") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_3 != 0) {\n    uVar1 = 0x10;\n    if ((long)*(int *)(param_3 + 4) == param_2) {\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = 0x10;\n    if ((long)*(int *)(param_3 + 4) == param_2) {\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = 0x10;" (assignment_expression "uVar1 = 0x10" (identifier "uVar1") (= "=") (number_literal "0x10")) (; ";")) (if_statement "if ((long)*(int *)(param_3 + 4) == param_2) {\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }" (if "if") (parenthesized_expression "((long)*(int *)(param_3 + 4) == param_2)" (( "(") (binary_expression "(long)*(int *)(param_3 + 4) == param_2" (cast_expression "(long)*(int *)(param_3 + 4)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")"))))) (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));\n      uVar1 = 0;\n    }" ({ "{") (expression_statement "memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));" (call_expression "memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4))" (identifier "memcpy") (argument_list "((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4))" (( "(") (cast_expression "(void *)(param_3 + 8)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 8)" (( "(") (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8")) () ")"))) (, ",") (identifier "param_1") (, ",") (cast_expression "(long)*(int *)(param_3 + 4)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")"))))) () ")"))) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d);" (call_expression "crypt_argchk("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d)" (identifier "crypt_argchk") (argument_list "("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d)" (( "(") (string_literal ""cbc != NULL"" (" """) (string_content "cbc != NULL") (" """)) (, ",") (string_literal ""src/modes/cbc/cbc_setiv.c"" (" """) (string_content "src/modes/cbc/cbc_setiv.c") (" """)) (, ",") (number_literal "0x1d") () ")"))) (; ";")) (} "}")))

int function_1(type_1 *var_1,type_2 var_4,type_3 *var_3)

{
  int iVar1;
  
  if (var_1 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("IV != NULL","src/modes/cbc/cbc_setiv.c",0x1c);
  }
  if (var_3 != (type_3 *)0x0) {
    iVar1 = 0x10;
    if ((long)var_3->blocklen == var_4) {
      var_5(var_3->var_1,var_1,(long)var_3->blocklen);
      iVar1 = 0;
    }
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  var_2("cbc != NULL","src/modes/cbc/cbc_setiv.c",0x1d);
}


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

undefined8 MASKED(void *param_1,size_t param_2,long param_3)

{
  undefined8 uVar1;
  
  if (param_1 == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("IV != NULL","src/modes/cbc/MASKED.c",0x1c);
  }
  if (param_3 != 0) {
    uVar1 = 0x10;
    if ((long)*(int *)(param_3 + 4) == param_2) {
      memcpy((void *)(param_3 + 8),param_1,(long)*(int *)(param_3 + 4));
      uVar1 = 0;
    }
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("cbc != NULL","src/modes/cbc/MASKED.c",0x1d);
}

