
/* WARNING: Unknown calling convention */

size_t freadahead(FILE *fp)

{
  char *pcVar1;
  
  pcVar1 = (char *)0x0;
  if ((fp->_IO_write_ptr <= fp->_IO_write_base) &&
     (pcVar1 = fp->_IO_read_end + -(int)fp->_IO_read_ptr, (fp->_flags & 0x100U) != 0)) {
    pcVar1 = fp->_IO_save_end + ((int)pcVar1 - (int)fp->_IO_save_base);
  }
  return (size_t)pcVar1;
}



int FUN_0001a630(uint *param_1)

{
  int iVar1;
  
  iVar1 = 0;
  if ((param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)) {
    iVar1 = iVar1 + (param_1[0xb] - param_1[9]);
  }
  return iVar1;
}


MOV EDX,dword ptr [ESP + 0x4]
XOR EAX,EAX
MOV ECX,dword ptr [EDX + 0x10]
CMP dword ptr [EDX + 0x14],ECX
JA 0x0001a654
MOV EAX,dword ptr [EDX + 0x8]
SUB EAX,dword ptr [EDX + 0x4]
TEST dword ptr [EDX],0x100
JZ 0x0001a654
MOV ECX,dword ptr [EDX + 0x2c]
SUB ECX,dword ptr [EDX + 0x24]
ADD EAX,ECX
RET
(translation_unit "int FUN_0001a630(uint *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)) {\n    iVar1 = iVar1 + (param_1[0xb] - param_1[9]);\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0001a630(uint *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)) {\n    iVar1 = iVar1 + (param_1[0xb] - param_1[9]);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0001a630(uint *param_1)" identifier (parameter_list "(uint *param_1)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)) {\n    iVar1 = iVar1 + (param_1[0xb] - param_1[9]);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if ((param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)) {\n    iVar1 = iVar1 + (param_1[0xb] - param_1[9]);\n  }" if (parenthesized_expression "((param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0))" ( (binary_expression "(param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)" (parenthesized_expression "(param_1[5] <= param_1[4])" ( (binary_expression "param_1[5] <= param_1[4]" (subscript_expression "param_1[5]" identifier [ number_literal ]) <= (subscript_expression "param_1[4]" identifier [ number_literal ])) )) && (parenthesized_expression "(iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)" ( (comma_expression "iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0" (assignment_expression "iVar1 = param_1[2] - param_1[1]" identifier = (binary_expression "param_1[2] - param_1[1]" (subscript_expression "param_1[2]" identifier [ number_literal ]) - (subscript_expression "param_1[1]" identifier [ number_literal ]))) , (binary_expression "(*param_1 & 0x100) != 0" (parenthesized_expression "(*param_1 & 0x100)" ( (binary_expression "*param_1 & 0x100" (pointer_expression "*param_1" * identifier) & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n    iVar1 = iVar1 + (param_1[0xb] - param_1[9]);\n  }" { (expression_statement "iVar1 = iVar1 + (param_1[0xb] - param_1[9]);" (assignment_expression "iVar1 = iVar1 + (param_1[0xb] - param_1[9])" identifier = (binary_expression "iVar1 + (param_1[0xb] - param_1[9])" identifier + (parenthesized_expression "(param_1[0xb] - param_1[9])" ( (binary_expression "param_1[0xb] - param_1[9]" (subscript_expression "param_1[0xb]" identifier [ number_literal ]) - (subscript_expression "param_1[9]" identifier [ number_literal ])) )))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nsize_t freadahead(FILE *fp)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = (char *)0x0;\n  if ((fp->_IO_write_ptr <= fp->_IO_write_base) &&\n     (pcVar1 = fp->_IO_read_end + -(int)fp->_IO_read_ptr, (fp->_flags & 0x100U) != 0)) {\n    pcVar1 = fp->_IO_save_end + ((int)pcVar1 - (int)fp->_IO_save_base);\n  }\n  return (size_t)pcVar1;\n}\n\n" comment (function_definition "size_t freadahead(FILE *fp)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = (char *)0x0;\n  if ((fp->_IO_write_ptr <= fp->_IO_write_base) &&\n     (pcVar1 = fp->_IO_read_end + -(int)fp->_IO_read_ptr, (fp->_flags & 0x100U) != 0)) {\n    pcVar1 = fp->_IO_save_end + ((int)pcVar1 - (int)fp->_IO_save_base);\n  }\n  return (size_t)pcVar1;\n}" primitive_type (function_declarator "freadahead(FILE *fp)" identifier (parameter_list "(FILE *fp)" ( (parameter_declaration "FILE *fp" type_identifier (pointer_declarator "*fp" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = (char *)0x0;\n  if ((fp->_IO_write_ptr <= fp->_IO_write_base) &&\n     (pcVar1 = fp->_IO_read_end + -(int)fp->_IO_read_ptr, (fp->_flags & 0x100U) != 0)) {\n    pcVar1 = fp->_IO_save_end + ((int)pcVar1 - (int)fp->_IO_save_base);\n  }\n  return (size_t)pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = (char *)0x0;" (assignment_expression "pcVar1 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((fp->_IO_write_ptr <= fp->_IO_write_base) &&\n     (pcVar1 = fp->_IO_read_end + -(int)fp->_IO_read_ptr, (fp->_flags & 0x100U) != 0)) {\n    pcVar1 = fp->_IO_save_end + ((int)pcVar1 - (int)fp->_IO_save_base);\n  }" if (parenthesized_expression "((fp->_IO_write_ptr <= fp->_IO_write_base) &&\n     (pcVar1 = fp->_IO_read_end + -(int)fp->_IO_read_ptr, (fp->_flags & 0x100U) != 0))" ( (binary_expression "(fp->_IO_write_ptr <= fp->_IO_write_base) &&\n     (pcVar1 = fp->_IO_read_end + -(int)fp->_IO_read_ptr, (fp->_flags & 0x100U) != 0)" (parenthesized_expression "(fp->_IO_write_ptr <= fp->_IO_write_base)" ( (binary_expression "fp->_IO_write_ptr <= fp->_IO_write_base" (field_expression "fp->_IO_write_ptr" identifier -> field_identifier) <= (field_expression "fp->_IO_write_base" identifier -> field_identifier)) )) && (parenthesized_expression "(pcVar1 = fp->_IO_read_end + -(int)fp->_IO_read_ptr, (fp->_flags & 0x100U) != 0)" ( (comma_expression "pcVar1 = fp->_IO_read_end + -(int)fp->_IO_read_ptr, (fp->_flags & 0x100U) != 0" (assignment_expression "pcVar1 = fp->_IO_read_end + -(int)fp->_IO_read_ptr" identifier = (binary_expression "fp->_IO_read_end + -(int)fp->_IO_read_ptr" (field_expression "fp->_IO_read_end" identifier -> field_identifier) + (unary_expression "-(int)fp->_IO_read_ptr" - (cast_expression "(int)fp->_IO_read_ptr" ( (type_descriptor "int" primitive_type) ) (field_expression "fp->_IO_read_ptr" identifier -> field_identifier))))) , (binary_expression "(fp->_flags & 0x100U) != 0" (parenthesized_expression "(fp->_flags & 0x100U)" ( (binary_expression "fp->_flags & 0x100U" (field_expression "fp->_flags" identifier -> field_identifier) & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n    pcVar1 = fp->_IO_save_end + ((int)pcVar1 - (int)fp->_IO_save_base);\n  }" { (expression_statement "pcVar1 = fp->_IO_save_end + ((int)pcVar1 - (int)fp->_IO_save_base);" (assignment_expression "pcVar1 = fp->_IO_save_end + ((int)pcVar1 - (int)fp->_IO_save_base)" identifier = (binary_expression "fp->_IO_save_end + ((int)pcVar1 - (int)fp->_IO_save_base)" (field_expression "fp->_IO_save_end" identifier -> field_identifier) + (parenthesized_expression "((int)pcVar1 - (int)fp->_IO_save_base)" ( (binary_expression "(int)pcVar1 - (int)fp->_IO_save_base" (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)fp->_IO_save_base" ( (type_descriptor "int" primitive_type) ) (field_expression "fp->_IO_save_base" identifier -> field_identifier))) )))) ;) })) (return_statement "return (size_t)pcVar1;" return (cast_expression "(size_t)pcVar1" ( (type_descriptor "size_t" primitive_type) ) identifier) ;) })))
(translation_unit "int FUN_0001a630(uint *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)) {\n    iVar1 = iVar1 + (param_1[0xb] - param_1[9]);\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0001a630(uint *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)) {\n    iVar1 = iVar1 + (param_1[0xb] - param_1[9]);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0001a630(uint *param_1)" identifier (parameter_list "(uint *param_1)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)) {\n    iVar1 = iVar1 + (param_1[0xb] - param_1[9]);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if ((param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)) {\n    iVar1 = iVar1 + (param_1[0xb] - param_1[9]);\n  }" if (parenthesized_expression "((param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0))" ( (binary_expression "(param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)" (parenthesized_expression "(param_1[5] <= param_1[4])" ( (binary_expression "param_1[5] <= param_1[4]" (subscript_expression "param_1[5]" identifier [ number_literal ]) <= (subscript_expression "param_1[4]" identifier [ number_literal ])) )) && (parenthesized_expression "(iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)" ( (comma_expression "iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0" (assignment_expression "iVar1 = param_1[2] - param_1[1]" identifier = (binary_expression "param_1[2] - param_1[1]" (subscript_expression "param_1[2]" identifier [ number_literal ]) - (subscript_expression "param_1[1]" identifier [ number_literal ]))) , (binary_expression "(*param_1 & 0x100) != 0" (parenthesized_expression "(*param_1 & 0x100)" ( (binary_expression "*param_1 & 0x100" (pointer_expression "*param_1" * identifier) & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n    iVar1 = iVar1 + (param_1[0xb] - param_1[9]);\n  }" { (expression_statement "iVar1 = iVar1 + (param_1[0xb] - param_1[9]);" (assignment_expression "iVar1 = iVar1 + (param_1[0xb] - param_1[9])" identifier = (binary_expression "iVar1 + (param_1[0xb] - param_1[9])" identifier + (parenthesized_expression "(param_1[0xb] - param_1[9])" ( (binary_expression "param_1[0xb] - param_1[9]" (subscript_expression "param_1[0xb]" identifier [ number_literal ]) - (subscript_expression "param_1[9]" identifier [ number_literal ])) )))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) <= (subscript_expression IDENT [ LIT ])) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ]))) , (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ])) )))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0001a630(uint *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)) {\n    iVar1 = iVar1 + (param_1[0xb] - param_1[9]);\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0001a630(uint *param_1)" (identifier "FUN_0001a630") (parameter_list "(uint *param_1)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)) {\n    iVar1 = iVar1 + (param_1[0xb] - param_1[9]);\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)) {\n    iVar1 = iVar1 + (param_1[0xb] - param_1[9]);\n  }" (if "if") (parenthesized_expression "((param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0))" (( "(") (binary_expression "(param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)" (parenthesized_expression "(param_1[5] <= param_1[4])" (( "(") (binary_expression "param_1[5] <= param_1[4]" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (<= "<=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)" (( "(") (comma_expression "iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0" (assignment_expression "iVar1 = param_1[2] - param_1[1]" (identifier "iVar1") (= "=") (binary_expression "param_1[2] - param_1[1]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (- "-") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (, ",") (binary_expression "(*param_1 & 0x100) != 0" (parenthesized_expression "(*param_1 & 0x100)" (( "(") (binary_expression "*param_1 & 0x100" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "0x100")) () ")")) (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    iVar1 = iVar1 + (param_1[0xb] - param_1[9]);\n  }" ({ "{") (expression_statement "iVar1 = iVar1 + (param_1[0xb] - param_1[9]);" (assignment_expression "iVar1 = iVar1 + (param_1[0xb] - param_1[9])" (identifier "iVar1") (= "=") (binary_expression "iVar1 + (param_1[0xb] - param_1[9])" (identifier "iVar1") (+ "+") (parenthesized_expression "(param_1[0xb] - param_1[9])" (( "(") (binary_expression "param_1[0xb] - param_1[9]" (subscript_expression "param_1[0xb]" (identifier "param_1") ([ "[") (number_literal "0xb") (] "]")) (- "-") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]"))) () ")")))) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

size_t function_1(type_1 *fp)

{
  char *pcVar1;
  
  pcVar1 = (char *)0x0;
  if ((fp->_IO_write_ptr <= fp->_IO_write_base) &&
     (pcVar1 = fp->_IO_read_end + -(int)fp->_IO_read_ptr, (fp->_flags & 0x100U) != 0)) {
    pcVar1 = fp->_IO_save_end + ((int)pcVar1 - (int)fp->_IO_save_base);
  }
  return (size_t)pcVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))))))))) (return_statement (identifier)))))

int MASKED(uint *param_1)

{
  int iVar1;
  
  iVar1 = 0;
  if ((param_1[5] <= param_1[4]) && (iVar1 = param_1[2] - param_1[1], (*param_1 & 0x100) != 0)) {
    iVar1 = iVar1 + (param_1[0xb] - param_1[9]);
  }
  return iVar1;
}

