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

void sshfwd_write_eof(ssh_channel *c)

{
  Ssh_conflict *ssh;
  
  if ((c->ssh->state != CHAN_SHARING) && ((c->closes & 1U) == 0)) {
    c->pending_eof = 1;
    ssh_channel_try_eof(c);
    return;
  }
  return;
}



void sshfwd_write_eof(int *param_1)

{
  if ((*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0)) {
    param_1[6] = 1;
    FUN_00041020();
    return;
  }
  return;
}


lui gp,0x7
addiu gp,gp,0x4120
addu gp,gp,t9
lw a1,0x0(a0)
li v1,0x4
lw a1,0x144(a1)
beq a1,v1,0x000411a0
_nop
lw v1,0x14(a0)
andi v1,v1,0x1
beq v1,zero,0x000411a8
_lw t9,-0x7b94(gp)
jr ra
_nop
li v1,0x1
addiu t9,t9,0x1020
b 0x00041020
_sw v1,0x18(a0)
(translation_unit "void sshfwd_write_eof(int *param_1)\n\n{\n  if ((*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0)) {\n    param_1[6] = 1;\n    FUN_00041020();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void sshfwd_write_eof(int *param_1)\n\n{\n  if ((*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0)) {\n    param_1[6] = 1;\n    FUN_00041020();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "sshfwd_write_eof(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if ((*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0)) {\n    param_1[6] = 1;\n    FUN_00041020();\n    return;\n  }\n  return;\n}" { (if_statement "if ((*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0)) {\n    param_1[6] = 1;\n    FUN_00041020();\n    return;\n  }" if (parenthesized_expression "((*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0))" ( (binary_expression "(*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0)" (parenthesized_expression "(*(int *)(*param_1 + 0x144) != 4)" ( (binary_expression "*(int *)(*param_1 + 0x144) != 4" (pointer_expression "*(int *)(*param_1 + 0x144)" * (cast_expression "(int *)(*param_1 + 0x144)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x144)" ( (binary_expression "*param_1 + 0x144" (pointer_expression "*param_1" * identifier) + number_literal) )))) != number_literal) )) && (parenthesized_expression "((param_1[5] & 1U) == 0)" ( (binary_expression "(param_1[5] & 1U) == 0" (parenthesized_expression "(param_1[5] & 1U)" ( (binary_expression "param_1[5] & 1U" (subscript_expression "param_1[5]" identifier [ number_literal ]) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    param_1[6] = 1;\n    FUN_00041020();\n    return;\n  }" { (expression_statement "param_1[6] = 1;" (assignment_expression "param_1[6] = 1" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_00041020();" (call_expression "FUN_00041020()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid sshfwd_write_eof(ssh_channel *c)\n\n{\n  Ssh_conflict *ssh;\n  \n  if ((c->ssh->state != CHAN_SHARING) && ((c->closes & 1U) == 0)) {\n    c->pending_eof = 1;\n    ssh_channel_try_eof(c);\n    return;\n  }\n  return;\n}\n\n" comment (function_definition "void sshfwd_write_eof(ssh_channel *c)\n\n{\n  Ssh_conflict *ssh;\n  \n  if ((c->ssh->state != CHAN_SHARING) && ((c->closes & 1U) == 0)) {\n    c->pending_eof = 1;\n    ssh_channel_try_eof(c);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "sshfwd_write_eof(ssh_channel *c)" identifier (parameter_list "(ssh_channel *c)" ( (parameter_declaration "ssh_channel *c" type_identifier (pointer_declarator "*c" * identifier)) ))) (compound_statement "{\n  Ssh_conflict *ssh;\n  \n  if ((c->ssh->state != CHAN_SHARING) && ((c->closes & 1U) == 0)) {\n    c->pending_eof = 1;\n    ssh_channel_try_eof(c);\n    return;\n  }\n  return;\n}" { (declaration "Ssh_conflict *ssh;" type_identifier (pointer_declarator "*ssh" * identifier) ;) (if_statement "if ((c->ssh->state != CHAN_SHARING) && ((c->closes & 1U) == 0)) {\n    c->pending_eof = 1;\n    ssh_channel_try_eof(c);\n    return;\n  }" if (parenthesized_expression "((c->ssh->state != CHAN_SHARING) && ((c->closes & 1U) == 0))" ( (binary_expression "(c->ssh->state != CHAN_SHARING) && ((c->closes & 1U) == 0)" (parenthesized_expression "(c->ssh->state != CHAN_SHARING)" ( (binary_expression "c->ssh->state != CHAN_SHARING" (field_expression "c->ssh->state" (field_expression "c->ssh" identifier -> field_identifier) -> field_identifier) != identifier) )) && (parenthesized_expression "((c->closes & 1U) == 0)" ( (binary_expression "(c->closes & 1U) == 0" (parenthesized_expression "(c->closes & 1U)" ( (binary_expression "c->closes & 1U" (field_expression "c->closes" identifier -> field_identifier) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    c->pending_eof = 1;\n    ssh_channel_try_eof(c);\n    return;\n  }" { (expression_statement "c->pending_eof = 1;" (assignment_expression "c->pending_eof = 1" (field_expression "c->pending_eof" identifier -> field_identifier) = number_literal) ;) (expression_statement "ssh_channel_try_eof(c);" (call_expression "ssh_channel_try_eof(c)" identifier (argument_list "(c)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void sshfwd_write_eof(int *param_1)\n\n{\n  if ((*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0)) {\n    param_1[6] = 1;\n    FUN_00041020();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void sshfwd_write_eof(int *param_1)\n\n{\n  if ((*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0)) {\n    param_1[6] = 1;\n    FUN_00041020();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "sshfwd_write_eof(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if ((*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0)) {\n    param_1[6] = 1;\n    FUN_00041020();\n    return;\n  }\n  return;\n}" { (if_statement "if ((*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0)) {\n    param_1[6] = 1;\n    FUN_00041020();\n    return;\n  }" if (parenthesized_expression "((*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0))" ( (binary_expression "(*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0)" (parenthesized_expression "(*(int *)(*param_1 + 0x144) != 4)" ( (binary_expression "*(int *)(*param_1 + 0x144) != 4" (pointer_expression "*(int *)(*param_1 + 0x144)" * (cast_expression "(int *)(*param_1 + 0x144)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x144)" ( (binary_expression "*param_1 + 0x144" (pointer_expression "*param_1" * identifier) + number_literal) )))) != number_literal) )) && (parenthesized_expression "((param_1[5] & 1U) == 0)" ( (binary_expression "(param_1[5] & 1U) == 0" (parenthesized_expression "(param_1[5] & 1U)" ( (binary_expression "param_1[5] & 1U" (subscript_expression "param_1[5]" identifier [ number_literal ]) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    param_1[6] = 1;\n    FUN_00041020();\n    return;\n  }" { (expression_statement "param_1[6] = 1;" (assignment_expression "param_1[6] = 1" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_00041020();" (call_expression "FUN_00041020()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (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 (pointer_expression * IDENT) + LIT) )))) != LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void sshfwd_write_eof(int *param_1)\n\n{\n  if ((*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0)) {\n    param_1[6] = 1;\n    FUN_00041020();\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "sshfwd_write_eof(int *param_1)" (identifier "sshfwd_write_eof") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if ((*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0)) {\n    param_1[6] = 1;\n    FUN_00041020();\n    return;\n  }\n  return;\n}" ({ "{") (if_statement "if ((*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0)) {\n    param_1[6] = 1;\n    FUN_00041020();\n    return;\n  }" (if "if") (parenthesized_expression "((*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0))" (( "(") (binary_expression "(*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0)" (parenthesized_expression "(*(int *)(*param_1 + 0x144) != 4)" (( "(") (binary_expression "*(int *)(*param_1 + 0x144) != 4" (pointer_expression "*(int *)(*param_1 + 0x144)" (* "*") (cast_expression "(int *)(*param_1 + 0x144)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x144)" (( "(") (binary_expression "*param_1 + 0x144" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x144")) () ")")))) (!= "!=") (number_literal "4")) () ")")) (&& "&&") (parenthesized_expression "((param_1[5] & 1U) == 0)" (( "(") (binary_expression "(param_1[5] & 1U) == 0" (parenthesized_expression "(param_1[5] & 1U)" (( "(") (binary_expression "param_1[5] & 1U" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (& "&") (number_literal "1U")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    param_1[6] = 1;\n    FUN_00041020();\n    return;\n  }" ({ "{") (expression_statement "param_1[6] = 1;" (assignment_expression "param_1[6] = 1" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "FUN_00041020();" (call_expression "FUN_00041020()" (identifier "FUN_00041020") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *c)

{
  type_2 *ssh;
  
  if ((c->ssh->state != var_1) && ((c->closes & 1U) == 0)) {
    c->pending_eof = 1;
    var_2(c);
    return;
  }
  return;
}


(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 (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))) (return_statement))))

void MASKED(int *param_1)

{
  if ((*(int *)(*param_1 + 0x144) != 4) && ((param_1[5] & 1U) == 0)) {
    param_1[6] = 1;
    FUN_00041020();
    return;
  }
  return;
}

