
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int ssh_perform_getsock(connectdata *conn,curl_socket_t *sock,int numsocks)

{
  uint uVar1;
  
  *sock = conn->sock[0];
  uVar1 = conn->waitfor & 1;
  if ((conn->waitfor & 2U) != 0) {
    uVar1 = uVar1 | 0x10000;
  }
  return uVar1;
}



uint thunk_FUN_0004c700(int param_1,undefined4 *param_2)

{
  uint uVar1;
  
  *param_2 = *(undefined4 *)(param_1 + 400);
  uVar1 = *(uint *)(param_1 + 0x564) & 1;
  if ((*(uint *)(param_1 + 0x564) & 2) != 0) {
    uVar1 = uVar1 | 0x10000;
  }
  return uVar1;
}


JMP 0x0004c700
(translation_unit "uint thunk_FUN_0004c700(int param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  \n  *param_2 = *(undefined4 *)(param_1 + 400);\n  uVar1 = *(uint *)(param_1 + 0x564) & 1;\n  if ((*(uint *)(param_1 + 0x564) & 2) != 0) {\n    uVar1 = uVar1 | 0x10000;\n  }\n  return uVar1;\n}\n\n" (function_definition "uint thunk_FUN_0004c700(int param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  \n  *param_2 = *(undefined4 *)(param_1 + 400);\n  uVar1 = *(uint *)(param_1 + 0x564) & 1;\n  if ((*(uint *)(param_1 + 0x564) & 2) != 0) {\n    uVar1 = uVar1 | 0x10000;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "thunk_FUN_0004c700(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  \n  *param_2 = *(undefined4 *)(param_1 + 400);\n  uVar1 = *(uint *)(param_1 + 0x564) & 1;\n  if ((*(uint *)(param_1 + 0x564) & 2) != 0) {\n    uVar1 = uVar1 | 0x10000;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "*param_2 = *(undefined4 *)(param_1 + 400);" (assignment_expression "*param_2 = *(undefined4 *)(param_1 + 400)" (pointer_expression "*param_2" * identifier) = (pointer_expression "*(undefined4 *)(param_1 + 400)" * (cast_expression "(undefined4 *)(param_1 + 400)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 400)" ( (binary_expression "param_1 + 400" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0x564) & 1;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x564) & 1" identifier = (binary_expression "*(uint *)(param_1 + 0x564) & 1" (pointer_expression "*(uint *)(param_1 + 0x564)" * (cast_expression "(uint *)(param_1 + 0x564)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x564)" ( (binary_expression "param_1 + 0x564" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if ((*(uint *)(param_1 + 0x564) & 2) != 0) {\n    uVar1 = uVar1 | 0x10000;\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x564) & 2) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x564) & 2) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x564) & 2)" ( (binary_expression "*(uint *)(param_1 + 0x564) & 2" (pointer_expression "*(uint *)(param_1 + 0x564)" * (cast_expression "(uint *)(param_1 + 0x564)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x564)" ( (binary_expression "param_1 + 0x564" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar1 = uVar1 | 0x10000;\n  }" { (expression_statement "uVar1 = uVar1 | 0x10000;" (assignment_expression "uVar1 = uVar1 | 0x10000" identifier = (binary_expression "uVar1 | 0x10000" identifier | number_literal)) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint ssh_perform_getsock(connectdata *conn,curl_socket_t *sock,int numsocks)\n\n{\n  uint uVar1;\n  \n  *sock = conn->sock[0];\n  uVar1 = conn->waitfor & 1;\n  if ((conn->waitfor & 2U) != 0) {\n    uVar1 = uVar1 | 0x10000;\n  }\n  return uVar1;\n}\n\n" comment comment (function_definition "int ssh_perform_getsock(connectdata *conn,curl_socket_t *sock,int numsocks)\n\n{\n  uint uVar1;\n  \n  *sock = conn->sock[0];\n  uVar1 = conn->waitfor & 1;\n  if ((conn->waitfor & 2U) != 0) {\n    uVar1 = uVar1 | 0x10000;\n  }\n  return uVar1;\n}" primitive_type (function_declarator "ssh_perform_getsock(connectdata *conn,curl_socket_t *sock,int numsocks)" identifier (parameter_list "(connectdata *conn,curl_socket_t *sock,int numsocks)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "curl_socket_t *sock" type_identifier (pointer_declarator "*sock" * identifier)) , (parameter_declaration "int numsocks" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  *sock = conn->sock[0];\n  uVar1 = conn->waitfor & 1;\n  if ((conn->waitfor & 2U) != 0) {\n    uVar1 = uVar1 | 0x10000;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "*sock = conn->sock[0];" (assignment_expression "*sock = conn->sock[0]" (pointer_expression "*sock" * identifier) = (subscript_expression "conn->sock[0]" (field_expression "conn->sock" identifier -> field_identifier) [ number_literal ])) ;) (expression_statement "uVar1 = conn->waitfor & 1;" (assignment_expression "uVar1 = conn->waitfor & 1" identifier = (binary_expression "conn->waitfor & 1" (field_expression "conn->waitfor" identifier -> field_identifier) & number_literal)) ;) (if_statement "if ((conn->waitfor & 2U) != 0) {\n    uVar1 = uVar1 | 0x10000;\n  }" if (parenthesized_expression "((conn->waitfor & 2U) != 0)" ( (binary_expression "(conn->waitfor & 2U) != 0" (parenthesized_expression "(conn->waitfor & 2U)" ( (binary_expression "conn->waitfor & 2U" (field_expression "conn->waitfor" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar1 = uVar1 | 0x10000;\n  }" { (expression_statement "uVar1 = uVar1 | 0x10000;" (assignment_expression "uVar1 = uVar1 | 0x10000" identifier = (binary_expression "uVar1 | 0x10000" identifier | number_literal)) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "uint thunk_FUN_0004c700(int param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  \n  *param_2 = *(undefined4 *)(param_1 + 400);\n  uVar1 = *(uint *)(param_1 + 0x564) & 1;\n  if ((*(uint *)(param_1 + 0x564) & 2) != 0) {\n    uVar1 = uVar1 | 0x10000;\n  }\n  return uVar1;\n}\n\n" (function_definition "uint thunk_FUN_0004c700(int param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  \n  *param_2 = *(undefined4 *)(param_1 + 400);\n  uVar1 = *(uint *)(param_1 + 0x564) & 1;\n  if ((*(uint *)(param_1 + 0x564) & 2) != 0) {\n    uVar1 = uVar1 | 0x10000;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "thunk_FUN_0004c700(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  \n  *param_2 = *(undefined4 *)(param_1 + 400);\n  uVar1 = *(uint *)(param_1 + 0x564) & 1;\n  if ((*(uint *)(param_1 + 0x564) & 2) != 0) {\n    uVar1 = uVar1 | 0x10000;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "*param_2 = *(undefined4 *)(param_1 + 400);" (assignment_expression "*param_2 = *(undefined4 *)(param_1 + 400)" (pointer_expression "*param_2" * identifier) = (pointer_expression "*(undefined4 *)(param_1 + 400)" * (cast_expression "(undefined4 *)(param_1 + 400)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 400)" ( (binary_expression "param_1 + 400" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0x564) & 1;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x564) & 1" identifier = (binary_expression "*(uint *)(param_1 + 0x564) & 1" (pointer_expression "*(uint *)(param_1 + 0x564)" * (cast_expression "(uint *)(param_1 + 0x564)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x564)" ( (binary_expression "param_1 + 0x564" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if ((*(uint *)(param_1 + 0x564) & 2) != 0) {\n    uVar1 = uVar1 | 0x10000;\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x564) & 2) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x564) & 2) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x564) & 2)" ( (binary_expression "*(uint *)(param_1 + 0x564) & 2" (pointer_expression "*(uint *)(param_1 + 0x564)" * (cast_expression "(uint *)(param_1 + 0x564)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x564)" ( (binary_expression "param_1 + 0x564" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar1 = uVar1 | 0x10000;\n  }" { (expression_statement "uVar1 = uVar1 | 0x10000;" (assignment_expression "uVar1 = uVar1 | 0x10000" identifier = (binary_expression "uVar1 | 0x10000" identifier | number_literal)) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint thunk_FUN_0004c700(int param_1,undefined4 *param_2)\n\n{\n  uint uVar1;\n  \n  *param_2 = *(undefined4 *)(param_1 + 400);\n  uVar1 = *(uint *)(param_1 + 0x564) & 1;\n  if ((*(uint *)(param_1 + 0x564) & 2) != 0) {\n    uVar1 = uVar1 | 0x10000;\n  }\n  return uVar1;\n}" (type_identifier "uint") (function_declarator "thunk_FUN_0004c700(int param_1,undefined4 *param_2)" (identifier "thunk_FUN_0004c700") (parameter_list "(int param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  \n  *param_2 = *(undefined4 *)(param_1 + 400);\n  uVar1 = *(uint *)(param_1 + 0x564) & 1;\n  if ((*(uint *)(param_1 + 0x564) & 2) != 0) {\n    uVar1 = uVar1 | 0x10000;\n  }\n  return uVar1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (expression_statement "*param_2 = *(undefined4 *)(param_1 + 400);" (assignment_expression "*param_2 = *(undefined4 *)(param_1 + 400)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 400)" (* "*") (cast_expression "(undefined4 *)(param_1 + 400)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 400)" (( "(") (binary_expression "param_1 + 400" (identifier "param_1") (+ "+") (number_literal "400")) () ")"))))) (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 0x564) & 1;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0x564) & 1" (identifier "uVar1") (= "=") (binary_expression "*(uint *)(param_1 + 0x564) & 1" (pointer_expression "*(uint *)(param_1 + 0x564)" (* "*") (cast_expression "(uint *)(param_1 + 0x564)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x564)" (( "(") (binary_expression "param_1 + 0x564" (identifier "param_1") (+ "+") (number_literal "0x564")) () ")")))) (& "&") (number_literal "1"))) (; ";")) (if_statement "if ((*(uint *)(param_1 + 0x564) & 2) != 0) {\n    uVar1 = uVar1 | 0x10000;\n  }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0x564) & 2) != 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x564) & 2) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x564) & 2)" (( "(") (binary_expression "*(uint *)(param_1 + 0x564) & 2" (pointer_expression "*(uint *)(param_1 + 0x564)" (* "*") (cast_expression "(uint *)(param_1 + 0x564)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x564)" (( "(") (binary_expression "param_1 + 0x564" (identifier "param_1") (+ "+") (number_literal "0x564")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = uVar1 | 0x10000;\n  }" ({ "{") (expression_statement "uVar1 = uVar1 | 0x10000;" (assignment_expression "uVar1 = uVar1 | 0x10000" (identifier "uVar1") (= "=") (binary_expression "uVar1 | 0x10000" (identifier "uVar1") (| "|") (number_literal "0x10000"))) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int function_1(type_1 *conn,type_2 *sock,int numsocks)

{
  type_3 var_1;
  
  *sock = conn->sock[0];
  var_1 = conn->waitfor & 1;
  if ((conn->waitfor & 2U) != 0) {
    var_1 = var_1 | 0x10000;
  }
  return var_1;
}


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

uint MASKED(int param_1,undefined4 *param_2)

{
  uint uVar1;
  
  *param_2 = *(undefined4 *)(param_1 + 400);
  uVar1 = *(uint *)(param_1 + 0x564) & 1;
  if ((*(uint *)(param_1 + 0x564) & 2) != 0) {
    uVar1 = uVar1 | 0x10000;
  }
  return uVar1;
}

