
void png_do_swap(png_row_infop row_info,png_bytep row)

{
  png_byte pVar1;
  int iVar2;
  int iVar3;
  
  if (row_info->bit_depth == '\x10') {
    iVar3 = (uint)row_info->channels * row_info->width;
    iVar2 = 0;
    if (iVar3 != 0) {
      do {
        pVar1 = row[1];
        iVar2 = iVar2 + 1;
        row[1] = *row;
        *row = pVar1;
        row = row + 2;
      } while (iVar3 != iVar2);
      return;
    }
  }
  return;
}



void FUN_000349f0(int *param_1,undefined1 *param_2)

{
  undefined1 uVar1;
  int iVar2;
  int iVar3;
  
  if (*(char *)((int)param_1 + 9) == '\x10') {
    iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;
    iVar2 = 0;
    if (iVar3 != 0) {
      do {
        uVar1 = param_2[1];
        iVar2 = iVar2 + 1;
        param_2[1] = *param_2;
        *param_2 = uVar1;
        param_2 = param_2 + 2;
      } while (iVar3 != iVar2);
      return;
    }
  }
  return;
}


lbu v1,0x9(a0)
li v0,0x10
beq v1,v0,0x00034a08
_nop
jr ra
_nop
lbu a2,0xa(a0)
lw v0,0x0(a0)
mul a2,a2,v0
beq a2,zero,0x00034a00
_or v0,zero,zero
lbu a0,0x0(a1)
addiu a1,a1,0x2
lbu v1,-0x1(a1)
addiu v0,v0,0x1
sb a0,-0x1(a1)
bne a2,v0,0x00034a1c
_sb v1,-0x2(a1)
jr ra
_nop
(translation_unit "void FUN_000349f0(int *param_1,undefined1 *param_2)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (*(char *)((int)param_1 + 9) == '\x10') {\n    iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_000349f0(int *param_1,undefined1 *param_2)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (*(char *)((int)param_1 + 9) == '\x10') {\n    iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000349f0(int *param_1,undefined1 *param_2)" identifier (parameter_list "(int *param_1,undefined1 *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (*(char *)((int)param_1 + 9) == '\x10') {\n    iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }\n  return;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (*(char *)((int)param_1 + 9) == '\x10') {\n    iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }" if (parenthesized_expression "(*(char *)((int)param_1 + 9) == '\x10')" ( (binary_expression "*(char *)((int)param_1 + 9) == '\x10'" (pointer_expression "*(char *)((int)param_1 + 9)" * (cast_expression "(char *)((int)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 9)" ( (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\x10'" ' escape_sequence ')) )) (compound_statement "{\n    iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }" { (expression_statement "iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;" (assignment_expression "iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1" identifier = (binary_expression "(uint)*(byte *)((int)param_1 + 10) * *param_1" (binary_expression "(uint)*(byte *)((int)param_1 + 10)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)param_1 + 10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 10)" ( (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) * (pointer_expression "*param_1" * identifier))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (iVar3 != 0) {\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }" { (do_statement "do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);" do (compound_statement "{\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      }" { (expression_statement "uVar1 = param_2[1];" (assignment_expression "uVar1 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "param_2[1] = *param_2;" (assignment_expression "param_2[1] = *param_2" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2 = param_2 + 2;" (assignment_expression "param_2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != iVar2)" ( (binary_expression "iVar3 != iVar2" identifier != identifier) )) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void png_do_swap(png_row_infop row_info,png_bytep row)\n\n{\n  png_byte pVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (row_info->bit_depth == '\x10') {\n    iVar3 = (uint)row_info->channels * row_info->width;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        pVar1 = row[1];\n        iVar2 = iVar2 + 1;\n        row[1] = *row;\n        *row = pVar1;\n        row = row + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void png_do_swap(png_row_infop row_info,png_bytep row)\n\n{\n  png_byte pVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (row_info->bit_depth == '\x10') {\n    iVar3 = (uint)row_info->channels * row_info->width;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        pVar1 = row[1];\n        iVar2 = iVar2 + 1;\n        row[1] = *row;\n        *row = pVar1;\n        row = row + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "png_do_swap(png_row_infop row_info,png_bytep row)" identifier (parameter_list "(png_row_infop row_info,png_bytep row)" ( (parameter_declaration "png_row_infop row_info" type_identifier identifier) , (parameter_declaration "png_bytep row" type_identifier identifier) ))) (compound_statement "{\n  png_byte pVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (row_info->bit_depth == '\x10') {\n    iVar3 = (uint)row_info->channels * row_info->width;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        pVar1 = row[1];\n        iVar2 = iVar2 + 1;\n        row[1] = *row;\n        *row = pVar1;\n        row = row + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }\n  return;\n}" { (declaration "png_byte pVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (row_info->bit_depth == '\x10') {\n    iVar3 = (uint)row_info->channels * row_info->width;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        pVar1 = row[1];\n        iVar2 = iVar2 + 1;\n        row[1] = *row;\n        *row = pVar1;\n        row = row + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }" if (parenthesized_expression "(row_info->bit_depth == '\x10')" ( (binary_expression "row_info->bit_depth == '\x10'" (field_expression "row_info->bit_depth" identifier -> field_identifier) == (char_literal "'\x10'" ' escape_sequence ')) )) (compound_statement "{\n    iVar3 = (uint)row_info->channels * row_info->width;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        pVar1 = row[1];\n        iVar2 = iVar2 + 1;\n        row[1] = *row;\n        *row = pVar1;\n        row = row + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }" { (expression_statement "iVar3 = (uint)row_info->channels * row_info->width;" (assignment_expression "iVar3 = (uint)row_info->channels * row_info->width" identifier = (binary_expression "(uint)row_info->channels * row_info->width" (cast_expression "(uint)row_info->channels" ( (type_descriptor "uint" type_identifier) ) (field_expression "row_info->channels" identifier -> field_identifier)) * (field_expression "row_info->width" identifier -> field_identifier))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (iVar3 != 0) {\n      do {\n        pVar1 = row[1];\n        iVar2 = iVar2 + 1;\n        row[1] = *row;\n        *row = pVar1;\n        row = row + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      do {\n        pVar1 = row[1];\n        iVar2 = iVar2 + 1;\n        row[1] = *row;\n        *row = pVar1;\n        row = row + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }" { (do_statement "do {\n        pVar1 = row[1];\n        iVar2 = iVar2 + 1;\n        row[1] = *row;\n        *row = pVar1;\n        row = row + 2;\n      } while (iVar3 != iVar2);" do (compound_statement "{\n        pVar1 = row[1];\n        iVar2 = iVar2 + 1;\n        row[1] = *row;\n        *row = pVar1;\n        row = row + 2;\n      }" { (expression_statement "pVar1 = row[1];" (assignment_expression "pVar1 = row[1]" identifier = (subscript_expression "row[1]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "row[1] = *row;" (assignment_expression "row[1] = *row" (subscript_expression "row[1]" identifier [ number_literal ]) = (pointer_expression "*row" * identifier)) ;) (expression_statement "*row = pVar1;" (assignment_expression "*row = pVar1" (pointer_expression "*row" * identifier) = identifier) ;) (expression_statement "row = row + 2;" (assignment_expression "row = row + 2" identifier = (binary_expression "row + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != iVar2)" ( (binary_expression "iVar3 != iVar2" identifier != identifier) )) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000349f0(int *param_1,undefined1 *param_2)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (*(char *)((int)param_1 + 9) == '\x10') {\n    iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_000349f0(int *param_1,undefined1 *param_2)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (*(char *)((int)param_1 + 9) == '\x10') {\n    iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000349f0(int *param_1,undefined1 *param_2)" identifier (parameter_list "(int *param_1,undefined1 *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (*(char *)((int)param_1 + 9) == '\x10') {\n    iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }\n  return;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (*(char *)((int)param_1 + 9) == '\x10') {\n    iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }" if (parenthesized_expression "(*(char *)((int)param_1 + 9) == '\x10')" ( (binary_expression "*(char *)((int)param_1 + 9) == '\x10'" (pointer_expression "*(char *)((int)param_1 + 9)" * (cast_expression "(char *)((int)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 9)" ( (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\x10'" ' escape_sequence ')) )) (compound_statement "{\n    iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }" { (expression_statement "iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;" (assignment_expression "iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1" identifier = (binary_expression "(uint)*(byte *)((int)param_1 + 10) * *param_1" (binary_expression "(uint)*(byte *)((int)param_1 + 10)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)param_1 + 10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 10)" ( (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) * (pointer_expression "*param_1" * identifier))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (iVar3 != 0) {\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }" { (do_statement "do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);" do (compound_statement "{\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      }" { (expression_statement "uVar1 = param_2[1];" (assignment_expression "uVar1 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "param_2[1] = *param_2;" (assignment_expression "param_2[1] = *param_2" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2 = param_2 + 2;" (assignment_expression "param_2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != iVar2)" ( (binary_expression "iVar3 != iVar2" identifier != identifier) )) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) * (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_000349f0(int *param_1,undefined1 *param_2)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (*(char *)((int)param_1 + 9) == '\x10') {\n    iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000349f0(int *param_1,undefined1 *param_2)" (identifier "FUN_000349f0") (parameter_list "(int *param_1,undefined1 *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (*(char *)((int)param_1 + 9) == '\x10') {\n    iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined1 uVar1;" (type_identifier "undefined1") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if (*(char *)((int)param_1 + 9) == '\x10') {\n    iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(*(char *)((int)param_1 + 9) == '\x10')" (( "(") (binary_expression "*(char *)((int)param_1 + 9) == '\x10'" (pointer_expression "*(char *)((int)param_1 + 9)" (* "*") (cast_expression "(char *)((int)param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 9)" (( "(") (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "9")) () ")")))) (== "==") (char_literal "'\x10'" (' "'") (escape_sequence "\x10") (' "'"))) () ")")) (compound_statement "{\n    iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;\n    iVar2 = 0;\n    if (iVar3 != 0) {\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;" (assignment_expression "iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1" (identifier "iVar3") (= "=") (binary_expression "(uint)*(byte *)((int)param_1 + 10) * *param_1" (binary_expression "(uint)*(byte *)((int)param_1 + 10)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)((int)param_1 + 10)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 10)" (( "(") (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "10")) () ")")))) (* "*") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar3 != 0) {\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);\n      return;\n    }" ({ "{") (do_statement "do {\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      } while (iVar3 != iVar2);" (do "do") (compound_statement "{\n        uVar1 = param_2[1];\n        iVar2 = iVar2 + 1;\n        param_2[1] = *param_2;\n        *param_2 = uVar1;\n        param_2 = param_2 + 2;\n      }" ({ "{") (expression_statement "uVar1 = param_2[1];" (assignment_expression "uVar1 = param_2[1]" (identifier "uVar1") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_2[1] = *param_2;" (assignment_expression "param_2[1] = *param_2" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "param_2 = param_2 + 2;" (assignment_expression "param_2 = param_2 + 2" (identifier "param_2") (= "=") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 != iVar2)" (( "(") (binary_expression "iVar3 != iVar2" (identifier "iVar3") (!= "!=") (identifier "iVar2")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 row_info,type_2 var_3)

{
  type_3 pVar1;
  int var_2;
  int var_1;
  
  if (row_info->bit_depth == '\x10') {
    var_1 = (type_4)row_info->channels * row_info->width;
    var_2 = 0;
    if (var_1 != 0) {
      do {
        pVar1 = var_3[1];
        var_2 = var_2 + 1;
        var_3[1] = *var_3;
        *var_3 = pVar1;
        var_3 = var_3 + 2;
      } while (var_1 != var_2);
      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))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (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))))) (return_statement))))

void MASKED(int *param_1,undefined1 *param_2)

{
  undefined1 uVar1;
  int iVar2;
  int iVar3;
  
  if (*(char *)((int)param_1 + 9) == '\x10') {
    iVar3 = (uint)*(byte *)((int)param_1 + 10) * *param_1;
    iVar2 = 0;
    if (iVar3 != 0) {
      do {
        uVar1 = param_2[1];
        iVar2 = iVar2 + 1;
        param_2[1] = *param_2;
        *param_2 = uVar1;
        param_2 = param_2 + 2;
      } while (iVar3 != iVar2);
      return;
    }
  }
  return;
}

