
/* WARNING: Unknown calling convention */

void set_scsi_pt_cdb(sg_pt_base *vp,uint8_t *cdb,int cdb_len)

{
  int *piVar1;
  
  if (*(int *)((int)&(vp->impl).io_hdr.request + 4) != 0 || (int)(vp->impl).io_hdr.request != 0) {
    piVar1 = &(vp->impl).in_err;
    *piVar1 = *piVar1 + 1;
  }
  *(undefined4 *)((int)&(vp->impl).io_hdr.request + 4) = 0;
  *(uint8_t **)&(vp->impl).io_hdr.request = cdb;
  (vp->impl).io_hdr.request_len = cdb_len;
  return;
}



void set_scsi_pt_cdb(int param_1,undefined4 param_2,undefined4 param_3)

{
  if (*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0) {
    *(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;
  }
  *(undefined4 *)(param_1 + 0x14) = 0;
  *(undefined4 *)(param_1 + 0x10) = param_2;
  *(undefined4 *)(param_1 + 0xc) = param_3;
  return;
}


MOV EAX,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [EAX + 0x14]
OR EDX,dword ptr [EAX + 0x10]
JZ 0x0002be83
ADD dword ptr [EAX + 0xac],0x1
MOV ECX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX + 0x14],0x0
MOV dword ptr [EAX + 0x10],ECX
MOV dword ptr [EAX + 0xc],EDX
RET
(translation_unit "void set_scsi_pt_cdb(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  if (*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0) {\n    *(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;\n  }\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x10) = param_2;\n  *(undefined4 *)(param_1 + 0xc) = param_3;\n  return;\n}\n\n" (function_definition "void set_scsi_pt_cdb(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  if (*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0) {\n    *(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;\n  }\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x10) = param_2;\n  *(undefined4 *)(param_1 + 0xc) = param_3;\n  return;\n}" primitive_type (function_declarator "set_scsi_pt_cdb(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0) {\n    *(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;\n  }\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x10) = param_2;\n  *(undefined4 *)(param_1 + 0xc) = param_3;\n  return;\n}" { (if_statement "if (*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0) {\n    *(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0)" ( (binary_expression "*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0" (binary_expression "*(int *)(param_1 + 0x14) != 0" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) != number_literal) || (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal)) )) (compound_statement "{\n    *(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;\n  }" { (expression_statement "*(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;" (assignment_expression "*(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1" (pointer_expression "*(int *)(param_1 + 0xac)" * (cast_expression "(int *)(param_1 + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xac)" ( (binary_expression "param_1 + 0xac" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0xac) + 1" (pointer_expression "*(int *)(param_1 + 0xac)" * (cast_expression "(int *)(param_1 + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xac)" ( (binary_expression "param_1 + 0xac" identifier + number_literal) )))) + number_literal)) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = param_3" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid set_scsi_pt_cdb(sg_pt_base *vp,uint8_t *cdb,int cdb_len)\n\n{\n  int *piVar1;\n  \n  if (*(int *)((int)&(vp->impl).io_hdr.request + 4) != 0 || (int)(vp->impl).io_hdr.request != 0) {\n    piVar1 = &(vp->impl).in_err;\n    *piVar1 = *piVar1 + 1;\n  }\n  *(undefined4 *)((int)&(vp->impl).io_hdr.request + 4) = 0;\n  *(uint8_t **)&(vp->impl).io_hdr.request = cdb;\n  (vp->impl).io_hdr.request_len = cdb_len;\n  return;\n}\n\n" comment (function_definition "void set_scsi_pt_cdb(sg_pt_base *vp,uint8_t *cdb,int cdb_len)\n\n{\n  int *piVar1;\n  \n  if (*(int *)((int)&(vp->impl).io_hdr.request + 4) != 0 || (int)(vp->impl).io_hdr.request != 0) {\n    piVar1 = &(vp->impl).in_err;\n    *piVar1 = *piVar1 + 1;\n  }\n  *(undefined4 *)((int)&(vp->impl).io_hdr.request + 4) = 0;\n  *(uint8_t **)&(vp->impl).io_hdr.request = cdb;\n  (vp->impl).io_hdr.request_len = cdb_len;\n  return;\n}" primitive_type (function_declarator "set_scsi_pt_cdb(sg_pt_base *vp,uint8_t *cdb,int cdb_len)" identifier (parameter_list "(sg_pt_base *vp,uint8_t *cdb,int cdb_len)" ( (parameter_declaration "sg_pt_base *vp" type_identifier (pointer_declarator "*vp" * identifier)) , (parameter_declaration "uint8_t *cdb" primitive_type (pointer_declarator "*cdb" * identifier)) , (parameter_declaration "int cdb_len" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  if (*(int *)((int)&(vp->impl).io_hdr.request + 4) != 0 || (int)(vp->impl).io_hdr.request != 0) {\n    piVar1 = &(vp->impl).in_err;\n    *piVar1 = *piVar1 + 1;\n  }\n  *(undefined4 *)((int)&(vp->impl).io_hdr.request + 4) = 0;\n  *(uint8_t **)&(vp->impl).io_hdr.request = cdb;\n  (vp->impl).io_hdr.request_len = cdb_len;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (if_statement "if (*(int *)((int)&(vp->impl).io_hdr.request + 4) != 0 || (int)(vp->impl).io_hdr.request != 0) {\n    piVar1 = &(vp->impl).in_err;\n    *piVar1 = *piVar1 + 1;\n  }" if (parenthesized_expression "(*(int *)((int)&(vp->impl).io_hdr.request + 4) != 0 || (int)(vp->impl).io_hdr.request != 0)" ( (binary_expression "*(int *)((int)&(vp->impl).io_hdr.request + 4) != 0 || (int)(vp->impl).io_hdr.request != 0" (binary_expression "*(int *)((int)&(vp->impl).io_hdr.request + 4) != 0" (pointer_expression "*(int *)((int)&(vp->impl).io_hdr.request + 4)" * (cast_expression "(int *)((int)&(vp->impl).io_hdr.request + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(vp->impl).io_hdr.request + 4)" ( (binary_expression "(int)&(vp->impl).io_hdr.request + 4" (cast_expression "(int)&(vp->impl).io_hdr.request" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(vp->impl).io_hdr.request" & (field_expression "(vp->impl).io_hdr.request" (field_expression "(vp->impl).io_hdr" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier) . field_identifier))) + number_literal) )))) != number_literal) || (binary_expression "(int)(vp->impl).io_hdr.request != 0" (cast_expression "(int)(vp->impl).io_hdr.request" ( (type_descriptor "int" primitive_type) ) (field_expression "(vp->impl).io_hdr.request" (field_expression "(vp->impl).io_hdr" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier) . field_identifier)) != number_literal)) )) (compound_statement "{\n    piVar1 = &(vp->impl).in_err;\n    *piVar1 = *piVar1 + 1;\n  }" { (expression_statement "piVar1 = &(vp->impl).in_err;" (assignment_expression "piVar1 = &(vp->impl).in_err" identifier = (pointer_expression "&(vp->impl).in_err" & (field_expression "(vp->impl).in_err" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) })) (expression_statement "*(undefined4 *)((int)&(vp->impl).io_hdr.request + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&(vp->impl).io_hdr.request + 4) = 0" (pointer_expression "*(undefined4 *)((int)&(vp->impl).io_hdr.request + 4)" * (cast_expression "(undefined4 *)((int)&(vp->impl).io_hdr.request + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(vp->impl).io_hdr.request + 4)" ( (binary_expression "(int)&(vp->impl).io_hdr.request + 4" (cast_expression "(int)&(vp->impl).io_hdr.request" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(vp->impl).io_hdr.request" & (field_expression "(vp->impl).io_hdr.request" (field_expression "(vp->impl).io_hdr" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier) . field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "*(uint8_t **)&(vp->impl).io_hdr.request = cdb;" (assignment_expression "*(uint8_t **)&(vp->impl).io_hdr.request = cdb" (pointer_expression "*(uint8_t **)&(vp->impl).io_hdr.request" * (cast_expression "(uint8_t **)&(vp->impl).io_hdr.request" ( (type_descriptor "uint8_t **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&(vp->impl).io_hdr.request" & (field_expression "(vp->impl).io_hdr.request" (field_expression "(vp->impl).io_hdr" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier) . field_identifier)))) = identifier) ;) (expression_statement "(vp->impl).io_hdr.request_len = cdb_len;" (assignment_expression "(vp->impl).io_hdr.request_len = cdb_len" (field_expression "(vp->impl).io_hdr.request_len" (field_expression "(vp->impl).io_hdr" (parenthesized_expression "(vp->impl)" ( (field_expression "vp->impl" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void set_scsi_pt_cdb(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  if (*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0) {\n    *(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;\n  }\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x10) = param_2;\n  *(undefined4 *)(param_1 + 0xc) = param_3;\n  return;\n}\n\n" (function_definition "void set_scsi_pt_cdb(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  if (*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0) {\n    *(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;\n  }\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x10) = param_2;\n  *(undefined4 *)(param_1 + 0xc) = param_3;\n  return;\n}" primitive_type (function_declarator "set_scsi_pt_cdb(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0) {\n    *(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;\n  }\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x10) = param_2;\n  *(undefined4 *)(param_1 + 0xc) = param_3;\n  return;\n}" { (if_statement "if (*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0) {\n    *(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0)" ( (binary_expression "*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0" (binary_expression "*(int *)(param_1 + 0x14) != 0" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) != number_literal) || (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal)) )) (compound_statement "{\n    *(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;\n  }" { (expression_statement "*(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;" (assignment_expression "*(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1" (pointer_expression "*(int *)(param_1 + 0xac)" * (cast_expression "(int *)(param_1 + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xac)" ( (binary_expression "param_1 + 0xac" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0xac) + 1" (pointer_expression "*(int *)(param_1 + 0xac)" * (cast_expression "(int *)(param_1 + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xac)" ( (binary_expression "param_1 + 0xac" identifier + number_literal) )))) + number_literal)) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = param_3" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) || (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void set_scsi_pt_cdb(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  if (*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0) {\n    *(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;\n  }\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x10) = param_2;\n  *(undefined4 *)(param_1 + 0xc) = param_3;\n  return;\n}" (primitive_type "void") (function_declarator "set_scsi_pt_cdb(int param_1,undefined4 param_2,undefined4 param_3)" (identifier "set_scsi_pt_cdb") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  if (*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0) {\n    *(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;\n  }\n  *(undefined4 *)(param_1 + 0x14) = 0;\n  *(undefined4 *)(param_1 + 0x10) = param_2;\n  *(undefined4 *)(param_1 + 0xc) = param_3;\n  return;\n}" ({ "{") (if_statement "if (*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0) {\n    *(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0" (binary_expression "*(int *)(param_1 + 0x14) != 0" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (!= "!=") (number_literal "0")) (|| "||") (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n    *(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;\n  }" ({ "{") (expression_statement "*(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;" (assignment_expression "*(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1" (pointer_expression "*(int *)(param_1 + 0xac)" (* "*") (cast_expression "(int *)(param_1 + 0xac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xac)" (( "(") (binary_expression "param_1 + 0xac" (identifier "param_1") (+ "+") (number_literal "0xac")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0xac) + 1" (pointer_expression "*(int *)(param_1 + 0xac)" (* "*") (cast_expression "(int *)(param_1 + 0xac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xac)" (( "(") (binary_expression "param_1 + 0xac" (identifier "param_1") (+ "+") (number_literal "0xac")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x10) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xc) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = param_3" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(type_1 *vp,uint8_t *cdb,int cdb_len)

{
  int *piVar1;
  
  if (*(int *)((int)&(vp->impl).io_hdr.request + 4) != 0 || (int)(vp->impl).io_hdr.request != 0) {
    piVar1 = &(vp->impl).in_err;
    *piVar1 = *piVar1 + 1;
  }
  *(type_2 *)((int)&(vp->impl).io_hdr.request + 4) = 0;
  *(uint8_t **)&(vp->impl).io_hdr.request = cdb;
  (vp->impl).io_hdr.request_len = cdb_len;
  return;
}


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

void MASKED(int param_1,undefined4 param_2,undefined4 param_3)

{
  if (*(int *)(param_1 + 0x14) != 0 || *(int *)(param_1 + 0x10) != 0) {
    *(int *)(param_1 + 0xac) = *(int *)(param_1 + 0xac) + 1;
  }
  *(undefined4 *)(param_1 + 0x14) = 0;
  *(undefined4 *)(param_1 + 0x10) = param_2;
  *(undefined4 *)(param_1 + 0xc) = param_3;
  return;
}

