
/* WARNING: Unknown calling convention */

int serial_exitcode(void)

{
  Serial serial;
  
  return (serial->fd & 0x80000000U) - 1;
}



int FUN_0009dd20(int param_1)

{
  return (*(uint *)(param_1 + 4) & 0x80000000) - 1;
}


MOV EAX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [EAX + 0x4]
AND EAX,0x80000000
SUB EAX,0x1
RET
(translation_unit "int FUN_0009dd20(int param_1)\n\n{\n  return (*(uint *)(param_1 + 4) & 0x80000000) - 1;\n}\n\n" (function_definition "int FUN_0009dd20(int param_1)\n\n{\n  return (*(uint *)(param_1 + 4) & 0x80000000) - 1;\n}" primitive_type (function_declarator "FUN_0009dd20(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  return (*(uint *)(param_1 + 4) & 0x80000000) - 1;\n}" { (return_statement "return (*(uint *)(param_1 + 4) & 0x80000000) - 1;" return (binary_expression "(*(uint *)(param_1 + 4) & 0x80000000) - 1" (parenthesized_expression "(*(uint *)(param_1 + 4) & 0x80000000)" ( (binary_expression "*(uint *)(param_1 + 4) & 0x80000000" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) & number_literal) )) - number_literal) ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint serial_exitcode(void)\n\n{\n  Serial serial;\n  \n  return (serial->fd & 0x80000000U) - 1;\n}\n\n" comment (function_definition "int serial_exitcode(void)\n\n{\n  Serial serial;\n  \n  return (serial->fd & 0x80000000U) - 1;\n}" primitive_type (function_declarator "serial_exitcode(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  Serial serial;\n  \n  return (serial->fd & 0x80000000U) - 1;\n}" { (declaration "Serial serial;" type_identifier identifier ;) (return_statement "return (serial->fd & 0x80000000U) - 1;" return (binary_expression "(serial->fd & 0x80000000U) - 1" (parenthesized_expression "(serial->fd & 0x80000000U)" ( (binary_expression "serial->fd & 0x80000000U" (field_expression "serial->fd" identifier -> field_identifier) & number_literal) )) - number_literal) ;) })))
(translation_unit "int FUN_0009dd20(int param_1)\n\n{\n  return (*(uint *)(param_1 + 4) & 0x80000000) - 1;\n}\n\n" (function_definition "int FUN_0009dd20(int param_1)\n\n{\n  return (*(uint *)(param_1 + 4) & 0x80000000) - 1;\n}" primitive_type (function_declarator "FUN_0009dd20(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  return (*(uint *)(param_1 + 4) & 0x80000000) - 1;\n}" { (return_statement "return (*(uint *)(param_1 + 4) & 0x80000000) - 1;" return (binary_expression "(*(uint *)(param_1 + 4) & 0x80000000) - 1" (parenthesized_expression "(*(uint *)(param_1 + 4) & 0x80000000)" ( (binary_expression "*(uint *)(param_1 + 4) & 0x80000000" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) & number_literal) )) - number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (return_statement return (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) - LIT) ;) })))
(function_definition "int FUN_0009dd20(int param_1)\n\n{\n  return (*(uint *)(param_1 + 4) & 0x80000000) - 1;\n}" (primitive_type "int") (function_declarator "FUN_0009dd20(int param_1)" (identifier "FUN_0009dd20") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  return (*(uint *)(param_1 + 4) & 0x80000000) - 1;\n}" ({ "{") (return_statement "return (*(uint *)(param_1 + 4) & 0x80000000) - 1;" (return "return") (binary_expression "(*(uint *)(param_1 + 4) & 0x80000000) - 1" (parenthesized_expression "(*(uint *)(param_1 + 4) & 0x80000000)" (( "(") (binary_expression "*(uint *)(param_1 + 4) & 0x80000000" (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (& "&") (number_literal "0x80000000")) () ")")) (- "-") (number_literal "1")) (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(void)

{
  type_1 serial;
  
  return (serial->fd & 0x80000000U) - 1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (return_statement (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))))))

int MASKED(int param_1)

{
  return (*(uint *)(param_1 + 4) & 0x80000000) - 1;
}

