
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void ttsave(void)

{
  if (ttsaved != 0) {
    return;
  }
  ttgetattr(0,&ttin);
  ttgetattr(1,&ttout);
  ttsaved = 1;
  return;
}



void ttsave(void)

{
  if (DAT_00216280 != 0) {
    return;
  }
  ttgetattr(0,&DAT_002162e0);
  ttgetattr(1,&DAT_002162a0);
  DAT_00216280 = 1;
  return;
}


CMP dword ptr [0x00216280],0x0
JZ 0x001a7f70
RET
SUB RSP,0x8
LEA RSI,[0x2162e0]
MOV EDI,0x0
CALL 0x001a7f42
LEA RSI,[0x2162a0]
MOV EDI,0x1
CALL 0x001a7f42
MOV dword ptr [0x00216280],0x1
ADD RSP,0x8
RET
(translation_unit "void ttsave(void)\n\n{\n  if (DAT_00216280 != 0) {\n    return;\n  }\n  ttgetattr(0,&DAT_002162e0);\n  ttgetattr(1,&DAT_002162a0);\n  DAT_00216280 = 1;\n  return;\n}\n\n" (function_definition "void ttsave(void)\n\n{\n  if (DAT_00216280 != 0) {\n    return;\n  }\n  ttgetattr(0,&DAT_002162e0);\n  ttgetattr(1,&DAT_002162a0);\n  DAT_00216280 = 1;\n  return;\n}" primitive_type (function_declarator "ttsave(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if (DAT_00216280 != 0) {\n    return;\n  }\n  ttgetattr(0,&DAT_002162e0);\n  ttgetattr(1,&DAT_002162a0);\n  DAT_00216280 = 1;\n  return;\n}" { (if_statement "if (DAT_00216280 != 0) {\n    return;\n  }" if (parenthesized_expression "(DAT_00216280 != 0)" ( (binary_expression "DAT_00216280 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "ttgetattr(0,&DAT_002162e0);" (call_expression "ttgetattr(0,&DAT_002162e0)" identifier (argument_list "(0,&DAT_002162e0)" ( number_literal , (pointer_expression "&DAT_002162e0" & identifier) ))) ;) (expression_statement "ttgetattr(1,&DAT_002162a0);" (call_expression "ttgetattr(1,&DAT_002162a0)" identifier (argument_list "(1,&DAT_002162a0)" ( number_literal , (pointer_expression "&DAT_002162a0" & identifier) ))) ;) (expression_statement "DAT_00216280 = 1;" (assignment_expression "DAT_00216280 = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid ttsave(void)\n\n{\n  if (ttsaved != 0) {\n    return;\n  }\n  ttgetattr(0,&ttin);\n  ttgetattr(1,&ttout);\n  ttsaved = 1;\n  return;\n}\n\n" comment (function_definition "void ttsave(void)\n\n{\n  if (ttsaved != 0) {\n    return;\n  }\n  ttgetattr(0,&ttin);\n  ttgetattr(1,&ttout);\n  ttsaved = 1;\n  return;\n}" primitive_type (function_declarator "ttsave(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if (ttsaved != 0) {\n    return;\n  }\n  ttgetattr(0,&ttin);\n  ttgetattr(1,&ttout);\n  ttsaved = 1;\n  return;\n}" { (if_statement "if (ttsaved != 0) {\n    return;\n  }" if (parenthesized_expression "(ttsaved != 0)" ( (binary_expression "ttsaved != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "ttgetattr(0,&ttin);" (call_expression "ttgetattr(0,&ttin)" identifier (argument_list "(0,&ttin)" ( number_literal , (pointer_expression "&ttin" & identifier) ))) ;) (expression_statement "ttgetattr(1,&ttout);" (call_expression "ttgetattr(1,&ttout)" identifier (argument_list "(1,&ttout)" ( number_literal , (pointer_expression "&ttout" & identifier) ))) ;) (expression_statement "ttsaved = 1;" (assignment_expression "ttsaved = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void ttsave(void)\n\n{\n  if (DAT_00216280 != 0) {\n    return;\n  }\n  ttgetattr(0,&DAT_002162e0);\n  ttgetattr(1,&DAT_002162a0);\n  DAT_00216280 = 1;\n  return;\n}\n\n" (function_definition "void ttsave(void)\n\n{\n  if (DAT_00216280 != 0) {\n    return;\n  }\n  ttgetattr(0,&DAT_002162e0);\n  ttgetattr(1,&DAT_002162a0);\n  DAT_00216280 = 1;\n  return;\n}" primitive_type (function_declarator "ttsave(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if (DAT_00216280 != 0) {\n    return;\n  }\n  ttgetattr(0,&DAT_002162e0);\n  ttgetattr(1,&DAT_002162a0);\n  DAT_00216280 = 1;\n  return;\n}" { (if_statement "if (DAT_00216280 != 0) {\n    return;\n  }" if (parenthesized_expression "(DAT_00216280 != 0)" ( (binary_expression "DAT_00216280 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "ttgetattr(0,&DAT_002162e0);" (call_expression "ttgetattr(0,&DAT_002162e0)" identifier (argument_list "(0,&DAT_002162e0)" ( number_literal , (pointer_expression "&DAT_002162e0" & identifier) ))) ;) (expression_statement "ttgetattr(1,&DAT_002162a0);" (call_expression "ttgetattr(1,&DAT_002162a0)" identifier (argument_list "(1,&DAT_002162a0)" ( number_literal , (pointer_expression "&DAT_002162a0" & identifier) ))) ;) (expression_statement "DAT_00216280 = 1;" (assignment_expression "DAT_00216280 = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })))
(function_definition "void ttsave(void)\n\n{\n  if (DAT_00216280 != 0) {\n    return;\n  }\n  ttgetattr(0,&DAT_002162e0);\n  ttgetattr(1,&DAT_002162a0);\n  DAT_00216280 = 1;\n  return;\n}" (primitive_type "void") (function_declarator "ttsave(void)" (identifier "ttsave") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  if (DAT_00216280 != 0) {\n    return;\n  }\n  ttgetattr(0,&DAT_002162e0);\n  ttgetattr(1,&DAT_002162a0);\n  DAT_00216280 = 1;\n  return;\n}" ({ "{") (if_statement "if (DAT_00216280 != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_00216280 != 0)" (( "(") (binary_expression "DAT_00216280 != 0" (identifier "DAT_00216280") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "ttgetattr(0,&DAT_002162e0);" (call_expression "ttgetattr(0,&DAT_002162e0)" (identifier "ttgetattr") (argument_list "(0,&DAT_002162e0)" (( "(") (number_literal "0") (, ",") (pointer_expression "&DAT_002162e0" (& "&") (identifier "DAT_002162e0")) () ")"))) (; ";")) (expression_statement "ttgetattr(1,&DAT_002162a0);" (call_expression "ttgetattr(1,&DAT_002162a0)" (identifier "ttgetattr") (argument_list "(1,&DAT_002162a0)" (( "(") (number_literal "1") (, ",") (pointer_expression "&DAT_002162a0" (& "&") (identifier "DAT_002162a0")) () ")"))) (; ";")) (expression_statement "DAT_00216280 = 1;" (assignment_expression "DAT_00216280 = 1" (identifier "DAT_00216280") (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  if (var_1 != 0) {
    return;
  }
  var_2(0,&ttin);
  var_2(1,&ttout);
  var_1 = 1;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (return_statement))))

void MASKED(void)

{
  if (DAT_00216280 != 0) {
    return;
  }
  ttgetattr(0,&DAT_002162e0);
  ttgetattr(1,&DAT_002162a0);
  DAT_00216280 = 1;
  return;
}

