
void SetFITSUnsignedPixels(size_t length,size_t bits_per_pixel,EndianType endian,uchar *pixels)

{
  size_t sVar1;
  
  if (endian != MSBEndian) {
    pixels = pixels + ((bits_per_pixel >> 3) - 1);
  }
  if (0 < (long)length) {
    sVar1 = 0;
    do {
      *pixels = *pixels + 0x80;
      pixels = pixels + (bits_per_pixel >> 3);
      sVar1 = sVar1 + 1;
    } while (sVar1 != length);
  }
  return;
}



void FUN_003517db(long param_1,ulong param_2,int param_3,char *param_4)

{
  long lVar1;
  
  if (param_3 != 2) {
    param_4 = param_4 + ((param_2 >> 3) - 1);
  }
  if (0 < param_1) {
    lVar1 = 0;
    do {
      *param_4 = *param_4 + -0x80;
      param_4 = param_4 + (param_2 >> 3);
      lVar1 = lVar1 + 1;
    } while (lVar1 != param_1);
  }
  return;
}


CMP EDX,0x2
JZ 0x003517ec
MOV RAX,RSI
SHR RAX,0x3
LEA RCX,[RCX + RAX*0x1 + -0x1]
MOV RDX,RDI
TEST RDI,RDI
JLE 0x0035180c
SHR RSI,0x3
MOV EAX,0x0
ADD byte ptr [RCX],0x80
ADD RCX,RSI
ADD RAX,0x1
CMP RAX,RDX
JNZ 0x003517fd
RET
(translation_unit "void FUN_003517db(long param_1,ulong param_2,int param_3,char *param_4)\n\n{\n  long lVar1;\n  \n  if (param_3 != 2) {\n    param_4 = param_4 + ((param_2 >> 3) - 1);\n  }\n  if (0 < param_1) {\n    lVar1 = 0;\n    do {\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    } while (lVar1 != param_1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_003517db(long param_1,ulong param_2,int param_3,char *param_4)\n\n{\n  long lVar1;\n  \n  if (param_3 != 2) {\n    param_4 = param_4 + ((param_2 >> 3) - 1);\n  }\n  if (0 < param_1) {\n    lVar1 = 0;\n    do {\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    } while (lVar1 != param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_003517db(long param_1,ulong param_2,int param_3,char *param_4)" identifier (parameter_list "(long param_1,ulong param_2,int param_3,char *param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  if (param_3 != 2) {\n    param_4 = param_4 + ((param_2 >> 3) - 1);\n  }\n  if (0 < param_1) {\n    lVar1 = 0;\n    do {\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    } while (lVar1 != param_1);\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (param_3 != 2) {\n    param_4 = param_4 + ((param_2 >> 3) - 1);\n  }" if (parenthesized_expression "(param_3 != 2)" ( (binary_expression "param_3 != 2" identifier != number_literal) )) (compound_statement "{\n    param_4 = param_4 + ((param_2 >> 3) - 1);\n  }" { (expression_statement "param_4 = param_4 + ((param_2 >> 3) - 1);" (assignment_expression "param_4 = param_4 + ((param_2 >> 3) - 1)" identifier = (binary_expression "param_4 + ((param_2 >> 3) - 1)" identifier + (parenthesized_expression "((param_2 >> 3) - 1)" ( (binary_expression "(param_2 >> 3) - 1" (parenthesized_expression "(param_2 >> 3)" ( (binary_expression "param_2 >> 3" identifier >> number_literal) )) - number_literal) )))) ;) })) (if_statement "if (0 < param_1) {\n    lVar1 = 0;\n    do {\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    } while (lVar1 != param_1);\n  }" if (parenthesized_expression "(0 < param_1)" ( (binary_expression "0 < param_1" number_literal < identifier) )) (compound_statement "{\n    lVar1 = 0;\n    do {\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    } while (lVar1 != param_1);\n  }" { (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    } while (lVar1 != param_1);" do (compound_statement "{\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    }" { (expression_statement "*param_4 = *param_4 + -0x80;" (assignment_expression "*param_4 = *param_4 + -0x80" (pointer_expression "*param_4" * identifier) = (binary_expression "*param_4 + -0x80" (pointer_expression "*param_4" * identifier) + number_literal)) ;) (expression_statement "param_4 = param_4 + (param_2 >> 3);" (assignment_expression "param_4 = param_4 + (param_2 >> 3)" identifier = (binary_expression "param_4 + (param_2 >> 3)" identifier + (parenthesized_expression "(param_2 >> 3)" ( (binary_expression "param_2 >> 3" identifier >> number_literal) )))) ;) (expression_statement "lVar1 = lVar1 + 1;" (assignment_expression "lVar1 = lVar1 + 1" identifier = (binary_expression "lVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(lVar1 != param_1)" ( (binary_expression "lVar1 != param_1" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void SetFITSUnsignedPixels(size_t length,size_t bits_per_pixel,EndianType endian,uchar *pixels)\n\n{\n  size_t sVar1;\n  \n  if (endian != MSBEndian) {\n    pixels = pixels + ((bits_per_pixel >> 3) - 1);\n  }\n  if (0 < (long)length) {\n    sVar1 = 0;\n    do {\n      *pixels = *pixels + 0x80;\n      pixels = pixels + (bits_per_pixel >> 3);\n      sVar1 = sVar1 + 1;\n    } while (sVar1 != length);\n  }\n  return;\n}\n\n" (function_definition "void SetFITSUnsignedPixels(size_t length,size_t bits_per_pixel,EndianType endian,uchar *pixels)\n\n{\n  size_t sVar1;\n  \n  if (endian != MSBEndian) {\n    pixels = pixels + ((bits_per_pixel >> 3) - 1);\n  }\n  if (0 < (long)length) {\n    sVar1 = 0;\n    do {\n      *pixels = *pixels + 0x80;\n      pixels = pixels + (bits_per_pixel >> 3);\n      sVar1 = sVar1 + 1;\n    } while (sVar1 != length);\n  }\n  return;\n}" primitive_type (function_declarator "SetFITSUnsignedPixels(size_t length,size_t bits_per_pixel,EndianType endian,uchar *pixels)" identifier (parameter_list "(size_t length,size_t bits_per_pixel,EndianType endian,uchar *pixels)" ( (parameter_declaration "size_t length" primitive_type identifier) , (parameter_declaration "size_t bits_per_pixel" primitive_type identifier) , (parameter_declaration "EndianType endian" type_identifier identifier) , (parameter_declaration "uchar *pixels" type_identifier (pointer_declarator "*pixels" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  \n  if (endian != MSBEndian) {\n    pixels = pixels + ((bits_per_pixel >> 3) - 1);\n  }\n  if (0 < (long)length) {\n    sVar1 = 0;\n    do {\n      *pixels = *pixels + 0x80;\n      pixels = pixels + (bits_per_pixel >> 3);\n      sVar1 = sVar1 + 1;\n    } while (sVar1 != length);\n  }\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (if_statement "if (endian != MSBEndian) {\n    pixels = pixels + ((bits_per_pixel >> 3) - 1);\n  }" if (parenthesized_expression "(endian != MSBEndian)" ( (binary_expression "endian != MSBEndian" identifier != identifier) )) (compound_statement "{\n    pixels = pixels + ((bits_per_pixel >> 3) - 1);\n  }" { (expression_statement "pixels = pixels + ((bits_per_pixel >> 3) - 1);" (assignment_expression "pixels = pixels + ((bits_per_pixel >> 3) - 1)" identifier = (binary_expression "pixels + ((bits_per_pixel >> 3) - 1)" identifier + (parenthesized_expression "((bits_per_pixel >> 3) - 1)" ( (binary_expression "(bits_per_pixel >> 3) - 1" (parenthesized_expression "(bits_per_pixel >> 3)" ( (binary_expression "bits_per_pixel >> 3" identifier >> number_literal) )) - number_literal) )))) ;) })) (if_statement "if (0 < (long)length) {\n    sVar1 = 0;\n    do {\n      *pixels = *pixels + 0x80;\n      pixels = pixels + (bits_per_pixel >> 3);\n      sVar1 = sVar1 + 1;\n    } while (sVar1 != length);\n  }" if (parenthesized_expression "(0 < (long)length)" ( (binary_expression "0 < (long)length" number_literal < (cast_expression "(long)length" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )) (compound_statement "{\n    sVar1 = 0;\n    do {\n      *pixels = *pixels + 0x80;\n      pixels = pixels + (bits_per_pixel >> 3);\n      sVar1 = sVar1 + 1;\n    } while (sVar1 != length);\n  }" { (expression_statement "sVar1 = 0;" (assignment_expression "sVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      *pixels = *pixels + 0x80;\n      pixels = pixels + (bits_per_pixel >> 3);\n      sVar1 = sVar1 + 1;\n    } while (sVar1 != length);" do (compound_statement "{\n      *pixels = *pixels + 0x80;\n      pixels = pixels + (bits_per_pixel >> 3);\n      sVar1 = sVar1 + 1;\n    }" { (expression_statement "*pixels = *pixels + 0x80;" (assignment_expression "*pixels = *pixels + 0x80" (pointer_expression "*pixels" * identifier) = (binary_expression "*pixels + 0x80" (pointer_expression "*pixels" * identifier) + number_literal)) ;) (expression_statement "pixels = pixels + (bits_per_pixel >> 3);" (assignment_expression "pixels = pixels + (bits_per_pixel >> 3)" identifier = (binary_expression "pixels + (bits_per_pixel >> 3)" identifier + (parenthesized_expression "(bits_per_pixel >> 3)" ( (binary_expression "bits_per_pixel >> 3" identifier >> number_literal) )))) ;) (expression_statement "sVar1 = sVar1 + 1;" (assignment_expression "sVar1 = sVar1 + 1" identifier = (binary_expression "sVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(sVar1 != length)" ( (binary_expression "sVar1 != length" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_003517db(long param_1,ulong param_2,int param_3,char *param_4)\n\n{\n  long lVar1;\n  \n  if (param_3 != 2) {\n    param_4 = param_4 + ((param_2 >> 3) - 1);\n  }\n  if (0 < param_1) {\n    lVar1 = 0;\n    do {\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    } while (lVar1 != param_1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_003517db(long param_1,ulong param_2,int param_3,char *param_4)\n\n{\n  long lVar1;\n  \n  if (param_3 != 2) {\n    param_4 = param_4 + ((param_2 >> 3) - 1);\n  }\n  if (0 < param_1) {\n    lVar1 = 0;\n    do {\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    } while (lVar1 != param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_003517db(long param_1,ulong param_2,int param_3,char *param_4)" identifier (parameter_list "(long param_1,ulong param_2,int param_3,char *param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  if (param_3 != 2) {\n    param_4 = param_4 + ((param_2 >> 3) - 1);\n  }\n  if (0 < param_1) {\n    lVar1 = 0;\n    do {\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    } while (lVar1 != param_1);\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (param_3 != 2) {\n    param_4 = param_4 + ((param_2 >> 3) - 1);\n  }" if (parenthesized_expression "(param_3 != 2)" ( (binary_expression "param_3 != 2" identifier != number_literal) )) (compound_statement "{\n    param_4 = param_4 + ((param_2 >> 3) - 1);\n  }" { (expression_statement "param_4 = param_4 + ((param_2 >> 3) - 1);" (assignment_expression "param_4 = param_4 + ((param_2 >> 3) - 1)" identifier = (binary_expression "param_4 + ((param_2 >> 3) - 1)" identifier + (parenthesized_expression "((param_2 >> 3) - 1)" ( (binary_expression "(param_2 >> 3) - 1" (parenthesized_expression "(param_2 >> 3)" ( (binary_expression "param_2 >> 3" identifier >> number_literal) )) - number_literal) )))) ;) })) (if_statement "if (0 < param_1) {\n    lVar1 = 0;\n    do {\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    } while (lVar1 != param_1);\n  }" if (parenthesized_expression "(0 < param_1)" ( (binary_expression "0 < param_1" number_literal < identifier) )) (compound_statement "{\n    lVar1 = 0;\n    do {\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    } while (lVar1 != param_1);\n  }" { (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    } while (lVar1 != param_1);" do (compound_statement "{\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    }" { (expression_statement "*param_4 = *param_4 + -0x80;" (assignment_expression "*param_4 = *param_4 + -0x80" (pointer_expression "*param_4" * identifier) = (binary_expression "*param_4 + -0x80" (pointer_expression "*param_4" * identifier) + number_literal)) ;) (expression_statement "param_4 = param_4 + (param_2 >> 3);" (assignment_expression "param_4 = param_4 + (param_2 >> 3)" identifier = (binary_expression "param_4 + (param_2 >> 3)" identifier + (parenthesized_expression "(param_2 >> 3)" ( (binary_expression "param_2 >> 3" identifier >> number_literal) )))) ;) (expression_statement "lVar1 = lVar1 + 1;" (assignment_expression "lVar1 = lVar1 + 1" identifier = (binary_expression "lVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(lVar1 != param_1)" ( (binary_expression "lVar1 != param_1" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) - LIT) )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_003517db(long param_1,ulong param_2,int param_3,char *param_4)\n\n{\n  long lVar1;\n  \n  if (param_3 != 2) {\n    param_4 = param_4 + ((param_2 >> 3) - 1);\n  }\n  if (0 < param_1) {\n    lVar1 = 0;\n    do {\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    } while (lVar1 != param_1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003517db(long param_1,ulong param_2,int param_3,char *param_4)" (identifier "FUN_003517db") (parameter_list "(long param_1,ulong param_2,int param_3,char *param_4)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "ulong param_2" (type_identifier "ulong") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "char *param_4" (primitive_type "char") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  if (param_3 != 2) {\n    param_4 = param_4 + ((param_2 >> 3) - 1);\n  }\n  if (0 < param_1) {\n    lVar1 = 0;\n    do {\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    } while (lVar1 != param_1);\n  }\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (if_statement "if (param_3 != 2) {\n    param_4 = param_4 + ((param_2 >> 3) - 1);\n  }" (if "if") (parenthesized_expression "(param_3 != 2)" (( "(") (binary_expression "param_3 != 2" (identifier "param_3") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n    param_4 = param_4 + ((param_2 >> 3) - 1);\n  }" ({ "{") (expression_statement "param_4 = param_4 + ((param_2 >> 3) - 1);" (assignment_expression "param_4 = param_4 + ((param_2 >> 3) - 1)" (identifier "param_4") (= "=") (binary_expression "param_4 + ((param_2 >> 3) - 1)" (identifier "param_4") (+ "+") (parenthesized_expression "((param_2 >> 3) - 1)" (( "(") (binary_expression "(param_2 >> 3) - 1" (parenthesized_expression "(param_2 >> 3)" (( "(") (binary_expression "param_2 >> 3" (identifier "param_2") (>> ">>") (number_literal "3")) () ")")) (- "-") (number_literal "1")) () ")")))) (; ";")) (} "}"))) (if_statement "if (0 < param_1) {\n    lVar1 = 0;\n    do {\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    } while (lVar1 != param_1);\n  }" (if "if") (parenthesized_expression "(0 < param_1)" (( "(") (binary_expression "0 < param_1" (number_literal "0") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n    lVar1 = 0;\n    do {\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    } while (lVar1 != param_1);\n  }" ({ "{") (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" (identifier "lVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    } while (lVar1 != param_1);" (do "do") (compound_statement "{\n      *param_4 = *param_4 + -0x80;\n      param_4 = param_4 + (param_2 >> 3);\n      lVar1 = lVar1 + 1;\n    }" ({ "{") (expression_statement "*param_4 = *param_4 + -0x80;" (assignment_expression "*param_4 = *param_4 + -0x80" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (binary_expression "*param_4 + -0x80" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "-0x80"))) (; ";")) (expression_statement "param_4 = param_4 + (param_2 >> 3);" (assignment_expression "param_4 = param_4 + (param_2 >> 3)" (identifier "param_4") (= "=") (binary_expression "param_4 + (param_2 >> 3)" (identifier "param_4") (+ "+") (parenthesized_expression "(param_2 >> 3)" (( "(") (binary_expression "param_2 >> 3" (identifier "param_2") (>> ">>") (number_literal "3")) () ")")))) (; ";")) (expression_statement "lVar1 = lVar1 + 1;" (assignment_expression "lVar1 = lVar1 + 1" (identifier "lVar1") (= "=") (binary_expression "lVar1 + 1" (identifier "lVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(lVar1 != param_1)" (( "(") (binary_expression "lVar1 != param_1" (identifier "lVar1") (!= "!=") (identifier "param_1")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(size_t var_6,size_t var_4,type_1 var_1,type_2 *var_3)

{
  size_t var_5;
  
  if (var_1 != var_2) {
    var_3 = var_3 + ((var_4 >> 3) - 1);
  }
  if (0 < (long)var_6) {
    var_5 = 0;
    do {
      *var_3 = *var_3 + 0x80;
      var_3 = var_3 + (var_4 >> 3);
      var_5 = var_5 + 1;
    } while (var_5 != var_6);
  }
  return;
}


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

void MASKED(long param_1,ulong param_2,int param_3,char *param_4)

{
  long lVar1;
  
  if (param_3 != 2) {
    param_4 = param_4 + ((param_2 >> 3) - 1);
  }
  if (0 < param_1) {
    lVar1 = 0;
    do {
      *param_4 = *param_4 + -0x80;
      param_4 = param_4 + (param_2 >> 3);
      lVar1 = lVar1 + 1;
    } while (lVar1 != param_1);
  }
  return;
}

