
void exchange(char **argv,_getopt_data *d)

{
  char **ppcVar1;
  char **ppcVar2;
  char *pcVar3;
  int bottom;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  
  iVar5 = d->__last_nonopt;
  iVar6 = d->rpl_optind;
  iVar4 = d->__first_nonopt;
  if ((iVar5 < iVar6) && (iVar4 < iVar5)) {
    do {
      iVar7 = iVar6 - iVar5;
      iVar8 = iVar5 - iVar4;
      if (iVar8 < iVar7) {
        if (0 < iVar8) {
          ppcVar2 = argv + iVar4;
          ppcVar1 = argv + (iVar6 - iVar8);
          do {
            pcVar3 = *ppcVar2;
            *ppcVar2 = *ppcVar1;
            *ppcVar1 = pcVar3;
            ppcVar1 = ppcVar1 + 1;
            ppcVar2 = ppcVar2 + 1;
          } while (ppcVar1 != argv + iVar6);
        }
        iVar6 = iVar6 - iVar8;
      }
      else {
        if (0 < iVar7) {
          ppcVar2 = argv + iVar4;
          ppcVar1 = argv + iVar5;
          do {
            pcVar3 = *ppcVar2;
            *ppcVar2 = *ppcVar1;
            *ppcVar1 = pcVar3;
            ppcVar2 = ppcVar2 + 1;
            ppcVar1 = ppcVar1 + 1;
          } while (ppcVar2 != argv + iVar7 + iVar4);
        }
        iVar4 = iVar4 + iVar7;
      }
    } while ((iVar5 < iVar6) && (iVar4 < iVar5));
  }
  d->__first_nonopt = d->__first_nonopt + (d->rpl_optind - d->__last_nonopt);
  d->__last_nonopt = d->rpl_optind;
  return;
}



void FUN_00017410(int param_1,int *param_2)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  
  iVar5 = param_2[8];
  iVar6 = *param_2;
  iVar4 = param_2[7];
  if ((iVar5 < iVar6) && (iVar4 < iVar5)) {
    do {
      iVar7 = iVar6 - iVar5;
      iVar8 = iVar5 - iVar4;
      if (iVar8 < iVar7) {
        if (0 < iVar8) {
          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);
          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);
          do {
            uVar3 = *puVar2;
            *puVar2 = *puVar1;
            *puVar1 = uVar3;
            puVar1 = puVar1 + 1;
            puVar2 = puVar2 + 1;
          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));
        }
        iVar6 = iVar6 - iVar8;
      }
      else {
        if (0 < iVar7) {
          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);
          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);
          do {
            uVar3 = *puVar2;
            *puVar2 = *puVar1;
            *puVar1 = uVar3;
            puVar2 = puVar2 + 1;
            puVar1 = puVar1 + 1;
          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));
        }
        iVar4 = iVar4 + iVar7;
      }
    } while ((iVar5 < iVar6) && (iVar4 < iVar5));
  }
  param_2[7] = param_2[7] + (*param_2 - param_2[8]);
  param_2[8] = *param_2;
  return;
}


lw t2,0x20(a1)
lw t3,0x0(a1)
slt v0,t2,t3
beq v0,zero,0x000174e0
_lw t1,0x1c(a1)
slt v0,t1,t2
beq v0,zero,0x000174e0
_sll t6,t2,0x2
b 0x0001748c
_addu t6,a0,t6
blez t5,0x00017474
_subu v0,t3,t5
sll v1,t1,0x2
addu v1,a0,v1
sll v0,v0,0x2
addu v0,a0,v0
sll t0,t3,0x2
addu t0,a0,t0
lw a2,0x0(v1)
lw a3,0x0(v0)
sw a3,0x0(v1)
sw a2,0x0(v0)
addiu v0,v0,0x4
bne v0,t0,0x00017458
_addiu v1,v1,0x4
subu t3,t3,t5
slt v0,t2,t3
beq v0,zero,0x000174e0
_slt v0,t1,t2
beq v0,zero,0x000174e0
_nop
subu t4,t3,t2
subu t5,t2,t1
slt v0,t5,t4
bne v0,zero,0x00017438
_nop
blez t4,0x000174d8
_sll v0,t1,0x2
addu v0,a0,v0
addu t0,t4,t1
sll t0,t0,0x2
addu t0,a0,t0
or v1,t6,zero
lw a2,0x0(v0)
lw a3,0x0(v1)
sw a3,0x0(v0)
sw a2,0x0(v1)
addiu v0,v0,0x4
bne v0,t0,0x000174bc
_addiu v1,v1,0x4
b 0x00017478
_addu t1,t1,t4
lw a0,0x0(a1)
lw v0,0x20(a1)
subu v1,a0,v0
lw v0,0x1c(a1)
addu v0,v0,v1
sw v0,0x1c(a1)
jr ra
_sw a0,0x20(a1)
(translation_unit "void FUN_00017410(int param_1,int *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = param_2[8];\n  iVar6 = *param_2;\n  iVar4 = param_2[7];\n  if ((iVar5 < iVar6) && (iVar4 < iVar5)) {\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }\n  param_2[7] = param_2[7] + (*param_2 - param_2[8]);\n  param_2[8] = *param_2;\n  return;\n}\n\n" (function_definition "void FUN_00017410(int param_1,int *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = param_2[8];\n  iVar6 = *param_2;\n  iVar4 = param_2[7];\n  if ((iVar5 < iVar6) && (iVar4 < iVar5)) {\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }\n  param_2[7] = param_2[7] + (*param_2 - param_2[8]);\n  param_2[8] = *param_2;\n  return;\n}" primitive_type (function_declarator "FUN_00017410(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = param_2[8];\n  iVar6 = *param_2;\n  iVar4 = param_2[7];\n  if ((iVar5 < iVar6) && (iVar4 < iVar5)) {\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }\n  param_2[7] = param_2[7] + (*param_2 - param_2[8]);\n  param_2[8] = *param_2;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "iVar5 = param_2[8];" (assignment_expression "iVar5 = param_2[8]" identifier = (subscript_expression "param_2[8]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = *param_2;" (assignment_expression "iVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar4 = param_2[7];" (assignment_expression "iVar4 = param_2[7]" identifier = (subscript_expression "param_2[7]" identifier [ number_literal ])) ;) (if_statement "if ((iVar5 < iVar6) && (iVar4 < iVar5)) {\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }" if (parenthesized_expression "((iVar5 < iVar6) && (iVar4 < iVar5))" ( (binary_expression "(iVar5 < iVar6) && (iVar4 < iVar5)" (parenthesized_expression "(iVar5 < iVar6)" ( (binary_expression "iVar5 < iVar6" identifier < identifier) )) && (parenthesized_expression "(iVar4 < iVar5)" ( (binary_expression "iVar4 < iVar5" identifier < identifier) ))) )) (compound_statement "{\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }" { (do_statement "do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));" do (compound_statement "{\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    }" { (expression_statement "iVar7 = iVar6 - iVar5;" (assignment_expression "iVar7 = iVar6 - iVar5" identifier = (binary_expression "iVar6 - iVar5" identifier - identifier)) ;) (expression_statement "iVar8 = iVar5 - iVar4;" (assignment_expression "iVar8 = iVar5 - iVar4" identifier = (binary_expression "iVar5 - iVar4" identifier - identifier)) ;) (if_statement "if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }" if (parenthesized_expression "(iVar8 < iVar7)" ( (binary_expression "iVar8 < iVar7" identifier < identifier) )) (compound_statement "{\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }" { (if_statement "if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }" if (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) )) (compound_statement "{\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }" { (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar4 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar4 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4 * 4)" ( (binary_expression "param_1 + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) ;) (expression_statement "puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);" (assignment_expression "puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + (iVar6 - iVar8) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (iVar6 - iVar8) * 4)" ( (binary_expression "param_1 + (iVar6 - iVar8) * 4" identifier + (binary_expression "(iVar6 - iVar8) * 4" (parenthesized_expression "(iVar6 - iVar8)" ( (binary_expression "iVar6 - iVar8" identifier - identifier) )) * number_literal)) )))) ;) (do_statement "do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));" do (compound_statement "{\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          }" { (expression_statement "uVar3 = *puVar2;" (assignment_expression "uVar3 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "*puVar2 = *puVar1;" (assignment_expression "*puVar2 = *puVar1" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar1 != (undefined4 *)(param_1 + iVar6 * 4))" ( (binary_expression "puVar1 != (undefined4 *)(param_1 + iVar6 * 4)" identifier != (cast_expression "(undefined4 *)(param_1 + iVar6 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6 * 4)" ( (binary_expression "param_1 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) )))) )) ;) })) (expression_statement "iVar6 = iVar6 - iVar8;" (assignment_expression "iVar6 = iVar6 - iVar8" identifier = (binary_expression "iVar6 - iVar8" identifier - identifier)) ;) }) (else_clause "else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }" else (compound_statement "{\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }" { (if_statement "if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }" if (parenthesized_expression "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )) (compound_statement "{\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }" { (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar4 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar4 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4 * 4)" ( (binary_expression "param_1 + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) ;) (expression_statement "puVar1 = (undefined4 *)(param_1 + iVar5 * 4);" (assignment_expression "puVar1 = (undefined4 *)(param_1 + iVar5 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar5 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar5 * 4)" ( (binary_expression "param_1 + iVar5 * 4" identifier + (binary_expression "iVar5 * 4" identifier * number_literal)) )))) ;) (do_statement "do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));" do (compound_statement "{\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          }" { (expression_statement "uVar3 = *puVar2;" (assignment_expression "uVar3 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "*puVar2 = *puVar1;" (assignment_expression "*puVar2 = *puVar1" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4))" ( (binary_expression "puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4)" identifier != (cast_expression "(undefined4 *)(param_1 + (iVar7 + iVar4) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (iVar7 + iVar4) * 4)" ( (binary_expression "param_1 + (iVar7 + iVar4) * 4" identifier + (binary_expression "(iVar7 + iVar4) * 4" (parenthesized_expression "(iVar7 + iVar4)" ( (binary_expression "iVar7 + iVar4" identifier + identifier) )) * number_literal)) )))) )) ;) })) (expression_statement "iVar4 = iVar4 + iVar7;" (assignment_expression "iVar4 = iVar4 + iVar7" identifier = (binary_expression "iVar4 + iVar7" identifier + identifier)) ;) }))) }) while (parenthesized_expression "((iVar5 < iVar6) && (iVar4 < iVar5))" ( (binary_expression "(iVar5 < iVar6) && (iVar4 < iVar5)" (parenthesized_expression "(iVar5 < iVar6)" ( (binary_expression "iVar5 < iVar6" identifier < identifier) )) && (parenthesized_expression "(iVar4 < iVar5)" ( (binary_expression "iVar4 < iVar5" identifier < identifier) ))) )) ;) })) (expression_statement "param_2[7] = param_2[7] + (*param_2 - param_2[8]);" (assignment_expression "param_2[7] = param_2[7] + (*param_2 - param_2[8])" (subscript_expression "param_2[7]" identifier [ number_literal ]) = (binary_expression "param_2[7] + (*param_2 - param_2[8])" (subscript_expression "param_2[7]" identifier [ number_literal ]) + (parenthesized_expression "(*param_2 - param_2[8])" ( (binary_expression "*param_2 - param_2[8]" (pointer_expression "*param_2" * identifier) - (subscript_expression "param_2[8]" identifier [ number_literal ])) )))) ;) (expression_statement "param_2[8] = *param_2;" (assignment_expression "param_2[8] = *param_2" (subscript_expression "param_2[8]" identifier [ number_literal ]) = (pointer_expression "*param_2" * identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void exchange(char **argv,_getopt_data *d)\n\n{\n  char **ppcVar1;\n  char **ppcVar2;\n  char *pcVar3;\n  int bottom;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = d->__last_nonopt;\n  iVar6 = d->rpl_optind;\n  iVar4 = d->__first_nonopt;\n  if ((iVar5 < iVar6) && (iVar4 < iVar5)) {\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + (iVar6 - iVar8);\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar1 = ppcVar1 + 1;\n            ppcVar2 = ppcVar2 + 1;\n          } while (ppcVar1 != argv + iVar6);\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + iVar5;\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar2 = ppcVar2 + 1;\n            ppcVar1 = ppcVar1 + 1;\n          } while (ppcVar2 != argv + iVar7 + iVar4);\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }\n  d->__first_nonopt = d->__first_nonopt + (d->rpl_optind - d->__last_nonopt);\n  d->__last_nonopt = d->rpl_optind;\n  return;\n}\n\n" (function_definition "void exchange(char **argv,_getopt_data *d)\n\n{\n  char **ppcVar1;\n  char **ppcVar2;\n  char *pcVar3;\n  int bottom;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = d->__last_nonopt;\n  iVar6 = d->rpl_optind;\n  iVar4 = d->__first_nonopt;\n  if ((iVar5 < iVar6) && (iVar4 < iVar5)) {\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + (iVar6 - iVar8);\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar1 = ppcVar1 + 1;\n            ppcVar2 = ppcVar2 + 1;\n          } while (ppcVar1 != argv + iVar6);\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + iVar5;\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar2 = ppcVar2 + 1;\n            ppcVar1 = ppcVar1 + 1;\n          } while (ppcVar2 != argv + iVar7 + iVar4);\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }\n  d->__first_nonopt = d->__first_nonopt + (d->rpl_optind - d->__last_nonopt);\n  d->__last_nonopt = d->rpl_optind;\n  return;\n}" primitive_type (function_declarator "exchange(char **argv,_getopt_data *d)" identifier (parameter_list "(char **argv,_getopt_data *d)" ( (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) , (parameter_declaration "_getopt_data *d" type_identifier (pointer_declarator "*d" * identifier)) ))) (compound_statement "{\n  char **ppcVar1;\n  char **ppcVar2;\n  char *pcVar3;\n  int bottom;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = d->__last_nonopt;\n  iVar6 = d->rpl_optind;\n  iVar4 = d->__first_nonopt;\n  if ((iVar5 < iVar6) && (iVar4 < iVar5)) {\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + (iVar6 - iVar8);\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar1 = ppcVar1 + 1;\n            ppcVar2 = ppcVar2 + 1;\n          } while (ppcVar1 != argv + iVar6);\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + iVar5;\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar2 = ppcVar2 + 1;\n            ppcVar1 = ppcVar1 + 1;\n          } while (ppcVar2 != argv + iVar7 + iVar4);\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }\n  d->__first_nonopt = d->__first_nonopt + (d->rpl_optind - d->__last_nonopt);\n  d->__last_nonopt = d->rpl_optind;\n  return;\n}" { (declaration "char **ppcVar1;" primitive_type (pointer_declarator "**ppcVar1" * (pointer_declarator "*ppcVar1" * identifier)) ;) (declaration "char **ppcVar2;" primitive_type (pointer_declarator "**ppcVar2" * (pointer_declarator "*ppcVar2" * identifier)) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int bottom;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "iVar5 = d->__last_nonopt;" (assignment_expression "iVar5 = d->__last_nonopt" identifier = (field_expression "d->__last_nonopt" identifier -> field_identifier)) ;) (expression_statement "iVar6 = d->rpl_optind;" (assignment_expression "iVar6 = d->rpl_optind" identifier = (field_expression "d->rpl_optind" identifier -> field_identifier)) ;) (expression_statement "iVar4 = d->__first_nonopt;" (assignment_expression "iVar4 = d->__first_nonopt" identifier = (field_expression "d->__first_nonopt" identifier -> field_identifier)) ;) (if_statement "if ((iVar5 < iVar6) && (iVar4 < iVar5)) {\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + (iVar6 - iVar8);\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar1 = ppcVar1 + 1;\n            ppcVar2 = ppcVar2 + 1;\n          } while (ppcVar1 != argv + iVar6);\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + iVar5;\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar2 = ppcVar2 + 1;\n            ppcVar1 = ppcVar1 + 1;\n          } while (ppcVar2 != argv + iVar7 + iVar4);\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }" if (parenthesized_expression "((iVar5 < iVar6) && (iVar4 < iVar5))" ( (binary_expression "(iVar5 < iVar6) && (iVar4 < iVar5)" (parenthesized_expression "(iVar5 < iVar6)" ( (binary_expression "iVar5 < iVar6" identifier < identifier) )) && (parenthesized_expression "(iVar4 < iVar5)" ( (binary_expression "iVar4 < iVar5" identifier < identifier) ))) )) (compound_statement "{\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + (iVar6 - iVar8);\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar1 = ppcVar1 + 1;\n            ppcVar2 = ppcVar2 + 1;\n          } while (ppcVar1 != argv + iVar6);\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + iVar5;\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar2 = ppcVar2 + 1;\n            ppcVar1 = ppcVar1 + 1;\n          } while (ppcVar2 != argv + iVar7 + iVar4);\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }" { (do_statement "do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + (iVar6 - iVar8);\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar1 = ppcVar1 + 1;\n            ppcVar2 = ppcVar2 + 1;\n          } while (ppcVar1 != argv + iVar6);\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + iVar5;\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar2 = ppcVar2 + 1;\n            ppcVar1 = ppcVar1 + 1;\n          } while (ppcVar2 != argv + iVar7 + iVar4);\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));" do (compound_statement "{\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + (iVar6 - iVar8);\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar1 = ppcVar1 + 1;\n            ppcVar2 = ppcVar2 + 1;\n          } while (ppcVar1 != argv + iVar6);\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + iVar5;\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar2 = ppcVar2 + 1;\n            ppcVar1 = ppcVar1 + 1;\n          } while (ppcVar2 != argv + iVar7 + iVar4);\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    }" { (expression_statement "iVar7 = iVar6 - iVar5;" (assignment_expression "iVar7 = iVar6 - iVar5" identifier = (binary_expression "iVar6 - iVar5" identifier - identifier)) ;) (expression_statement "iVar8 = iVar5 - iVar4;" (assignment_expression "iVar8 = iVar5 - iVar4" identifier = (binary_expression "iVar5 - iVar4" identifier - identifier)) ;) (if_statement "if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + (iVar6 - iVar8);\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar1 = ppcVar1 + 1;\n            ppcVar2 = ppcVar2 + 1;\n          } while (ppcVar1 != argv + iVar6);\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + iVar5;\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar2 = ppcVar2 + 1;\n            ppcVar1 = ppcVar1 + 1;\n          } while (ppcVar2 != argv + iVar7 + iVar4);\n        }\n        iVar4 = iVar4 + iVar7;\n      }" if (parenthesized_expression "(iVar8 < iVar7)" ( (binary_expression "iVar8 < iVar7" identifier < identifier) )) (compound_statement "{\n        if (0 < iVar8) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + (iVar6 - iVar8);\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar1 = ppcVar1 + 1;\n            ppcVar2 = ppcVar2 + 1;\n          } while (ppcVar1 != argv + iVar6);\n        }\n        iVar6 = iVar6 - iVar8;\n      }" { (if_statement "if (0 < iVar8) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + (iVar6 - iVar8);\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar1 = ppcVar1 + 1;\n            ppcVar2 = ppcVar2 + 1;\n          } while (ppcVar1 != argv + iVar6);\n        }" if (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) )) (compound_statement "{\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + (iVar6 - iVar8);\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar1 = ppcVar1 + 1;\n            ppcVar2 = ppcVar2 + 1;\n          } while (ppcVar1 != argv + iVar6);\n        }" { (expression_statement "ppcVar2 = argv + iVar4;" (assignment_expression "ppcVar2 = argv + iVar4" identifier = (binary_expression "argv + iVar4" identifier + identifier)) ;) (expression_statement "ppcVar1 = argv + (iVar6 - iVar8);" (assignment_expression "ppcVar1 = argv + (iVar6 - iVar8)" identifier = (binary_expression "argv + (iVar6 - iVar8)" identifier + (parenthesized_expression "(iVar6 - iVar8)" ( (binary_expression "iVar6 - iVar8" identifier - identifier) )))) ;) (do_statement "do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar1 = ppcVar1 + 1;\n            ppcVar2 = ppcVar2 + 1;\n          } while (ppcVar1 != argv + iVar6);" do (compound_statement "{\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar1 = ppcVar1 + 1;\n            ppcVar2 = ppcVar2 + 1;\n          }" { (expression_statement "pcVar3 = *ppcVar2;" (assignment_expression "pcVar3 = *ppcVar2" identifier = (pointer_expression "*ppcVar2" * identifier)) ;) (expression_statement "*ppcVar2 = *ppcVar1;" (assignment_expression "*ppcVar2 = *ppcVar1" (pointer_expression "*ppcVar2" * identifier) = (pointer_expression "*ppcVar1" * identifier)) ;) (expression_statement "*ppcVar1 = pcVar3;" (assignment_expression "*ppcVar1 = pcVar3" (pointer_expression "*ppcVar1" * identifier) = identifier) ;) (expression_statement "ppcVar1 = ppcVar1 + 1;" (assignment_expression "ppcVar1 = ppcVar1 + 1" identifier = (binary_expression "ppcVar1 + 1" identifier + number_literal)) ;) (expression_statement "ppcVar2 = ppcVar2 + 1;" (assignment_expression "ppcVar2 = ppcVar2 + 1" identifier = (binary_expression "ppcVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(ppcVar1 != argv + iVar6)" ( (binary_expression "ppcVar1 != argv + iVar6" identifier != (binary_expression "argv + iVar6" identifier + identifier)) )) ;) })) (expression_statement "iVar6 = iVar6 - iVar8;" (assignment_expression "iVar6 = iVar6 - iVar8" identifier = (binary_expression "iVar6 - iVar8" identifier - identifier)) ;) }) (else_clause "else {\n        if (0 < iVar7) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + iVar5;\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar2 = ppcVar2 + 1;\n            ppcVar1 = ppcVar1 + 1;\n          } while (ppcVar2 != argv + iVar7 + iVar4);\n        }\n        iVar4 = iVar4 + iVar7;\n      }" else (compound_statement "{\n        if (0 < iVar7) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + iVar5;\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar2 = ppcVar2 + 1;\n            ppcVar1 = ppcVar1 + 1;\n          } while (ppcVar2 != argv + iVar7 + iVar4);\n        }\n        iVar4 = iVar4 + iVar7;\n      }" { (if_statement "if (0 < iVar7) {\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + iVar5;\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar2 = ppcVar2 + 1;\n            ppcVar1 = ppcVar1 + 1;\n          } while (ppcVar2 != argv + iVar7 + iVar4);\n        }" if (parenthesized_expression "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )) (compound_statement "{\n          ppcVar2 = argv + iVar4;\n          ppcVar1 = argv + iVar5;\n          do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar2 = ppcVar2 + 1;\n            ppcVar1 = ppcVar1 + 1;\n          } while (ppcVar2 != argv + iVar7 + iVar4);\n        }" { (expression_statement "ppcVar2 = argv + iVar4;" (assignment_expression "ppcVar2 = argv + iVar4" identifier = (binary_expression "argv + iVar4" identifier + identifier)) ;) (expression_statement "ppcVar1 = argv + iVar5;" (assignment_expression "ppcVar1 = argv + iVar5" identifier = (binary_expression "argv + iVar5" identifier + identifier)) ;) (do_statement "do {\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar2 = ppcVar2 + 1;\n            ppcVar1 = ppcVar1 + 1;\n          } while (ppcVar2 != argv + iVar7 + iVar4);" do (compound_statement "{\n            pcVar3 = *ppcVar2;\n            *ppcVar2 = *ppcVar1;\n            *ppcVar1 = pcVar3;\n            ppcVar2 = ppcVar2 + 1;\n            ppcVar1 = ppcVar1 + 1;\n          }" { (expression_statement "pcVar3 = *ppcVar2;" (assignment_expression "pcVar3 = *ppcVar2" identifier = (pointer_expression "*ppcVar2" * identifier)) ;) (expression_statement "*ppcVar2 = *ppcVar1;" (assignment_expression "*ppcVar2 = *ppcVar1" (pointer_expression "*ppcVar2" * identifier) = (pointer_expression "*ppcVar1" * identifier)) ;) (expression_statement "*ppcVar1 = pcVar3;" (assignment_expression "*ppcVar1 = pcVar3" (pointer_expression "*ppcVar1" * identifier) = identifier) ;) (expression_statement "ppcVar2 = ppcVar2 + 1;" (assignment_expression "ppcVar2 = ppcVar2 + 1" identifier = (binary_expression "ppcVar2 + 1" identifier + number_literal)) ;) (expression_statement "ppcVar1 = ppcVar1 + 1;" (assignment_expression "ppcVar1 = ppcVar1 + 1" identifier = (binary_expression "ppcVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(ppcVar2 != argv + iVar7 + iVar4)" ( (binary_expression "ppcVar2 != argv + iVar7 + iVar4" identifier != (binary_expression "argv + iVar7 + iVar4" (binary_expression "argv + iVar7" identifier + identifier) + identifier)) )) ;) })) (expression_statement "iVar4 = iVar4 + iVar7;" (assignment_expression "iVar4 = iVar4 + iVar7" identifier = (binary_expression "iVar4 + iVar7" identifier + identifier)) ;) }))) }) while (parenthesized_expression "((iVar5 < iVar6) && (iVar4 < iVar5))" ( (binary_expression "(iVar5 < iVar6) && (iVar4 < iVar5)" (parenthesized_expression "(iVar5 < iVar6)" ( (binary_expression "iVar5 < iVar6" identifier < identifier) )) && (parenthesized_expression "(iVar4 < iVar5)" ( (binary_expression "iVar4 < iVar5" identifier < identifier) ))) )) ;) })) (expression_statement "d->__first_nonopt = d->__first_nonopt + (d->rpl_optind - d->__last_nonopt);" (assignment_expression "d->__first_nonopt = d->__first_nonopt + (d->rpl_optind - d->__last_nonopt)" (field_expression "d->__first_nonopt" identifier -> field_identifier) = (binary_expression "d->__first_nonopt + (d->rpl_optind - d->__last_nonopt)" (field_expression "d->__first_nonopt" identifier -> field_identifier) + (parenthesized_expression "(d->rpl_optind - d->__last_nonopt)" ( (binary_expression "d->rpl_optind - d->__last_nonopt" (field_expression "d->rpl_optind" identifier -> field_identifier) - (field_expression "d->__last_nonopt" identifier -> field_identifier)) )))) ;) (expression_statement "d->__last_nonopt = d->rpl_optind;" (assignment_expression "d->__last_nonopt = d->rpl_optind" (field_expression "d->__last_nonopt" identifier -> field_identifier) = (field_expression "d->rpl_optind" identifier -> field_identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00017410(int param_1,int *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = param_2[8];\n  iVar6 = *param_2;\n  iVar4 = param_2[7];\n  if ((iVar5 < iVar6) && (iVar4 < iVar5)) {\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }\n  param_2[7] = param_2[7] + (*param_2 - param_2[8]);\n  param_2[8] = *param_2;\n  return;\n}\n\n" (function_definition "void FUN_00017410(int param_1,int *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = param_2[8];\n  iVar6 = *param_2;\n  iVar4 = param_2[7];\n  if ((iVar5 < iVar6) && (iVar4 < iVar5)) {\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }\n  param_2[7] = param_2[7] + (*param_2 - param_2[8]);\n  param_2[8] = *param_2;\n  return;\n}" primitive_type (function_declarator "FUN_00017410(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = param_2[8];\n  iVar6 = *param_2;\n  iVar4 = param_2[7];\n  if ((iVar5 < iVar6) && (iVar4 < iVar5)) {\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }\n  param_2[7] = param_2[7] + (*param_2 - param_2[8]);\n  param_2[8] = *param_2;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "iVar5 = param_2[8];" (assignment_expression "iVar5 = param_2[8]" identifier = (subscript_expression "param_2[8]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = *param_2;" (assignment_expression "iVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar4 = param_2[7];" (assignment_expression "iVar4 = param_2[7]" identifier = (subscript_expression "param_2[7]" identifier [ number_literal ])) ;) (if_statement "if ((iVar5 < iVar6) && (iVar4 < iVar5)) {\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }" if (parenthesized_expression "((iVar5 < iVar6) && (iVar4 < iVar5))" ( (binary_expression "(iVar5 < iVar6) && (iVar4 < iVar5)" (parenthesized_expression "(iVar5 < iVar6)" ( (binary_expression "iVar5 < iVar6" identifier < identifier) )) && (parenthesized_expression "(iVar4 < iVar5)" ( (binary_expression "iVar4 < iVar5" identifier < identifier) ))) )) (compound_statement "{\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }" { (do_statement "do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));" do (compound_statement "{\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    }" { (expression_statement "iVar7 = iVar6 - iVar5;" (assignment_expression "iVar7 = iVar6 - iVar5" identifier = (binary_expression "iVar6 - iVar5" identifier - identifier)) ;) (expression_statement "iVar8 = iVar5 - iVar4;" (assignment_expression "iVar8 = iVar5 - iVar4" identifier = (binary_expression "iVar5 - iVar4" identifier - identifier)) ;) (if_statement "if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }" if (parenthesized_expression "(iVar8 < iVar7)" ( (binary_expression "iVar8 < iVar7" identifier < identifier) )) (compound_statement "{\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }" { (if_statement "if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }" if (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) )) (compound_statement "{\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }" { (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar4 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar4 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4 * 4)" ( (binary_expression "param_1 + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) ;) (expression_statement "puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);" (assignment_expression "puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + (iVar6 - iVar8) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (iVar6 - iVar8) * 4)" ( (binary_expression "param_1 + (iVar6 - iVar8) * 4" identifier + (binary_expression "(iVar6 - iVar8) * 4" (parenthesized_expression "(iVar6 - iVar8)" ( (binary_expression "iVar6 - iVar8" identifier - identifier) )) * number_literal)) )))) ;) (do_statement "do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));" do (compound_statement "{\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          }" { (expression_statement "uVar3 = *puVar2;" (assignment_expression "uVar3 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "*puVar2 = *puVar1;" (assignment_expression "*puVar2 = *puVar1" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar1 != (undefined4 *)(param_1 + iVar6 * 4))" ( (binary_expression "puVar1 != (undefined4 *)(param_1 + iVar6 * 4)" identifier != (cast_expression "(undefined4 *)(param_1 + iVar6 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6 * 4)" ( (binary_expression "param_1 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) )))) )) ;) })) (expression_statement "iVar6 = iVar6 - iVar8;" (assignment_expression "iVar6 = iVar6 - iVar8" identifier = (binary_expression "iVar6 - iVar8" identifier - identifier)) ;) }) (else_clause "else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }" else (compound_statement "{\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }" { (if_statement "if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }" if (parenthesized_expression "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )) (compound_statement "{\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }" { (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar4 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar4 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar4 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar4 * 4)" ( (binary_expression "param_1 + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) ;) (expression_statement "puVar1 = (undefined4 *)(param_1 + iVar5 * 4);" (assignment_expression "puVar1 = (undefined4 *)(param_1 + iVar5 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar5 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar5 * 4)" ( (binary_expression "param_1 + iVar5 * 4" identifier + (binary_expression "iVar5 * 4" identifier * number_literal)) )))) ;) (do_statement "do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));" do (compound_statement "{\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          }" { (expression_statement "uVar3 = *puVar2;" (assignment_expression "uVar3 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "*puVar2 = *puVar1;" (assignment_expression "*puVar2 = *puVar1" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4))" ( (binary_expression "puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4)" identifier != (cast_expression "(undefined4 *)(param_1 + (iVar7 + iVar4) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (iVar7 + iVar4) * 4)" ( (binary_expression "param_1 + (iVar7 + iVar4) * 4" identifier + (binary_expression "(iVar7 + iVar4) * 4" (parenthesized_expression "(iVar7 + iVar4)" ( (binary_expression "iVar7 + iVar4" identifier + identifier) )) * number_literal)) )))) )) ;) })) (expression_statement "iVar4 = iVar4 + iVar7;" (assignment_expression "iVar4 = iVar4 + iVar7" identifier = (binary_expression "iVar4 + iVar7" identifier + identifier)) ;) }))) }) while (parenthesized_expression "((iVar5 < iVar6) && (iVar4 < iVar5))" ( (binary_expression "(iVar5 < iVar6) && (iVar4 < iVar5)" (parenthesized_expression "(iVar5 < iVar6)" ( (binary_expression "iVar5 < iVar6" identifier < identifier) )) && (parenthesized_expression "(iVar4 < iVar5)" ( (binary_expression "iVar4 < iVar5" identifier < identifier) ))) )) ;) })) (expression_statement "param_2[7] = param_2[7] + (*param_2 - param_2[8]);" (assignment_expression "param_2[7] = param_2[7] + (*param_2 - param_2[8])" (subscript_expression "param_2[7]" identifier [ number_literal ]) = (binary_expression "param_2[7] + (*param_2 - param_2[8])" (subscript_expression "param_2[7]" identifier [ number_literal ]) + (parenthesized_expression "(*param_2 - param_2[8])" ( (binary_expression "*param_2 - param_2[8]" (pointer_expression "*param_2" * identifier) - (subscript_expression "param_2[8]" identifier [ number_literal ])) )))) ;) (expression_statement "param_2[8] = *param_2;" (assignment_expression "param_2[8] = *param_2" (subscript_expression "param_2[8]" identifier [ number_literal ]) = (pointer_expression "*param_2" * identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) && (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) * LIT)) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) )))) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) && (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) - (subscript_expression IDENT [ LIT ])) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00017410(int param_1,int *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = param_2[8];\n  iVar6 = *param_2;\n  iVar4 = param_2[7];\n  if ((iVar5 < iVar6) && (iVar4 < iVar5)) {\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }\n  param_2[7] = param_2[7] + (*param_2 - param_2[8]);\n  param_2[8] = *param_2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00017410(int param_1,int *param_2)" (identifier "FUN_00017410") (parameter_list "(int param_1,int *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar5 = param_2[8];\n  iVar6 = *param_2;\n  iVar4 = param_2[7];\n  if ((iVar5 < iVar6) && (iVar4 < iVar5)) {\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }\n  param_2[7] = param_2[7] + (*param_2 - param_2[8]);\n  param_2[8] = *param_2;\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (expression_statement "iVar5 = param_2[8];" (assignment_expression "iVar5 = param_2[8]" (identifier "iVar5") (= "=") (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]"))) (; ";")) (expression_statement "iVar6 = *param_2;" (assignment_expression "iVar6 = *param_2" (identifier "iVar6") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "iVar4 = param_2[7];" (assignment_expression "iVar4 = param_2[7]" (identifier "iVar4") (= "=") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]"))) (; ";")) (if_statement "if ((iVar5 < iVar6) && (iVar4 < iVar5)) {\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }" (if "if") (parenthesized_expression "((iVar5 < iVar6) && (iVar4 < iVar5))" (( "(") (binary_expression "(iVar5 < iVar6) && (iVar4 < iVar5)" (parenthesized_expression "(iVar5 < iVar6)" (( "(") (binary_expression "iVar5 < iVar6" (identifier "iVar5") (< "<") (identifier "iVar6")) () ")")) (&& "&&") (parenthesized_expression "(iVar4 < iVar5)" (( "(") (binary_expression "iVar4 < iVar5" (identifier "iVar4") (< "<") (identifier "iVar5")) () ")"))) () ")")) (compound_statement "{\n    do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));\n  }" ({ "{") (do_statement "do {\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    } while ((iVar5 < iVar6) && (iVar4 < iVar5));" (do "do") (compound_statement "{\n      iVar7 = iVar6 - iVar5;\n      iVar8 = iVar5 - iVar4;\n      if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }\n    }" ({ "{") (expression_statement "iVar7 = iVar6 - iVar5;" (assignment_expression "iVar7 = iVar6 - iVar5" (identifier "iVar7") (= "=") (binary_expression "iVar6 - iVar5" (identifier "iVar6") (- "-") (identifier "iVar5"))) (; ";")) (expression_statement "iVar8 = iVar5 - iVar4;" (assignment_expression "iVar8 = iVar5 - iVar4" (identifier "iVar8") (= "=") (binary_expression "iVar5 - iVar4" (identifier "iVar5") (- "-") (identifier "iVar4"))) (; ";")) (if_statement "if (iVar8 < iVar7) {\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }\n      else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }" (if "if") (parenthesized_expression "(iVar8 < iVar7)" (( "(") (binary_expression "iVar8 < iVar7" (identifier "iVar8") (< "<") (identifier "iVar7")) () ")")) (compound_statement "{\n        if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }\n        iVar6 = iVar6 - iVar8;\n      }" ({ "{") (if_statement "if (0 < iVar8) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }" (if "if") (parenthesized_expression "(0 < iVar8)" (( "(") (binary_expression "0 < iVar8" (number_literal "0") (< "<") (identifier "iVar8")) () ")")) (compound_statement "{\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));\n        }" ({ "{") (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar4 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar4 * 4)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(param_1 + iVar4 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar4 * 4)" (( "(") (binary_expression "param_1 + iVar4 * 4" (identifier "param_1") (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);" (assignment_expression "puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(param_1 + (iVar6 - iVar8) * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + (iVar6 - iVar8) * 4)" (( "(") (binary_expression "param_1 + (iVar6 - iVar8) * 4" (identifier "param_1") (+ "+") (binary_expression "(iVar6 - iVar8) * 4" (parenthesized_expression "(iVar6 - iVar8)" (( "(") (binary_expression "iVar6 - iVar8" (identifier "iVar6") (- "-") (identifier "iVar8")) () ")")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (do_statement "do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));" (do "do") (compound_statement "{\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar1 = puVar1 + 1;\n            puVar2 = puVar2 + 1;\n          }" ({ "{") (expression_statement "uVar3 = *puVar2;" (assignment_expression "uVar3 = *puVar2" (identifier "uVar3") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "*puVar2 = *puVar1;" (assignment_expression "*puVar2 = *puVar1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" (identifier "puVar1") (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar1 != (undefined4 *)(param_1 + iVar6 * 4))" (( "(") (binary_expression "puVar1 != (undefined4 *)(param_1 + iVar6 * 4)" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)(param_1 + iVar6 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar6 * 4)" (( "(") (binary_expression "param_1 + iVar6 * 4" (identifier "param_1") (+ "+") (binary_expression "iVar6 * 4" (identifier "iVar6") (* "*") (number_literal "4"))) () ")")))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar6 = iVar6 - iVar8;" (assignment_expression "iVar6 = iVar6 - iVar8" (identifier "iVar6") (= "=") (binary_expression "iVar6 - iVar8" (identifier "iVar6") (- "-") (identifier "iVar8"))) (; ";")) (} "}")) (else_clause "else {\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }" (else "else") (compound_statement "{\n        if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }\n        iVar4 = iVar4 + iVar7;\n      }" ({ "{") (if_statement "if (0 < iVar7) {\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }" (if "if") (parenthesized_expression "(0 < iVar7)" (( "(") (binary_expression "0 < iVar7" (number_literal "0") (< "<") (identifier "iVar7")) () ")")) (compound_statement "{\n          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);\n          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);\n          do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));\n        }" ({ "{") (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar4 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar4 * 4)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(param_1 + iVar4 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar4 * 4)" (( "(") (binary_expression "param_1 + iVar4 * 4" (identifier "param_1") (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "puVar1 = (undefined4 *)(param_1 + iVar5 * 4);" (assignment_expression "puVar1 = (undefined4 *)(param_1 + iVar5 * 4)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(param_1 + iVar5 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar5 * 4)" (( "(") (binary_expression "param_1 + iVar5 * 4" (identifier "param_1") (+ "+") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4"))) () ")")))) (; ";")) (do_statement "do {\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));" (do "do") (compound_statement "{\n            uVar3 = *puVar2;\n            *puVar2 = *puVar1;\n            *puVar1 = uVar3;\n            puVar2 = puVar2 + 1;\n            puVar1 = puVar1 + 1;\n          }" ({ "{") (expression_statement "uVar3 = *puVar2;" (assignment_expression "uVar3 = *puVar2" (identifier "uVar3") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "*puVar2 = *puVar1;" (assignment_expression "*puVar2 = *puVar1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "*puVar1 = uVar3;" (assignment_expression "*puVar1 = uVar3" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" (identifier "puVar1") (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4))" (( "(") (binary_expression "puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4)" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)(param_1 + (iVar7 + iVar4) * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + (iVar7 + iVar4) * 4)" (( "(") (binary_expression "param_1 + (iVar7 + iVar4) * 4" (identifier "param_1") (+ "+") (binary_expression "(iVar7 + iVar4) * 4" (parenthesized_expression "(iVar7 + iVar4)" (( "(") (binary_expression "iVar7 + iVar4" (identifier "iVar7") (+ "+") (identifier "iVar4")) () ")")) (* "*") (number_literal "4"))) () ")")))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar4 = iVar4 + iVar7;" (assignment_expression "iVar4 = iVar4 + iVar7" (identifier "iVar4") (= "=") (binary_expression "iVar4 + iVar7" (identifier "iVar4") (+ "+") (identifier "iVar7"))) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "((iVar5 < iVar6) && (iVar4 < iVar5))" (( "(") (binary_expression "(iVar5 < iVar6) && (iVar4 < iVar5)" (parenthesized_expression "(iVar5 < iVar6)" (( "(") (binary_expression "iVar5 < iVar6" (identifier "iVar5") (< "<") (identifier "iVar6")) () ")")) (&& "&&") (parenthesized_expression "(iVar4 < iVar5)" (( "(") (binary_expression "iVar4 < iVar5" (identifier "iVar4") (< "<") (identifier "iVar5")) () ")"))) () ")")) (; ";")) (} "}"))) (expression_statement "param_2[7] = param_2[7] + (*param_2 - param_2[8]);" (assignment_expression "param_2[7] = param_2[7] + (*param_2 - param_2[8])" (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")) (= "=") (binary_expression "param_2[7] + (*param_2 - param_2[8])" (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")) (+ "+") (parenthesized_expression "(*param_2 - param_2[8])" (( "(") (binary_expression "*param_2 - param_2[8]" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (- "-") (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]"))) () ")")))) (; ";")) (expression_statement "param_2[8] = *param_2;" (assignment_expression "param_2[8] = *param_2" (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]")) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char **var_6,type_1 *d)

{
  char **var_7;
  char **var_8;
  char *pcVar3;
  int bottom;
  int var_3;
  int var_1;
  int var_2;
  int var_5;
  int var_4;
  
  var_1 = d->__last_nonopt;
  var_2 = d->rpl_optind;
  var_3 = d->__first_nonopt;
  if ((var_1 < var_2) && (var_3 < var_1)) {
    do {
      var_5 = var_2 - var_1;
      var_4 = var_1 - var_3;
      if (var_4 < var_5) {
        if (0 < var_4) {
          var_8 = var_6 + var_3;
          var_7 = var_6 + (var_2 - var_4);
          do {
            pcVar3 = *var_8;
            *var_8 = *var_7;
            *var_7 = pcVar3;
            var_7 = var_7 + 1;
            var_8 = var_8 + 1;
          } while (var_7 != var_6 + var_2);
        }
        var_2 = var_2 - var_4;
      }
      else {
        if (0 < var_5) {
          var_8 = var_6 + var_3;
          var_7 = var_6 + var_1;
          do {
            pcVar3 = *var_8;
            *var_8 = *var_7;
            *var_7 = pcVar3;
            var_8 = var_8 + 1;
            var_7 = var_7 + 1;
          } while (var_8 != var_6 + var_5 + var_3);
        }
        var_3 = var_3 + var_5;
      }
    } while ((var_1 < var_2) && (var_3 < var_1));
  }
  d->__first_nonopt = d->__first_nonopt + (d->rpl_optind - d->__last_nonopt);
  d->__last_nonopt = d->rpl_optind;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) 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)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) 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)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (return_statement))))

void MASKED(int param_1,int *param_2)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  
  iVar5 = param_2[8];
  iVar6 = *param_2;
  iVar4 = param_2[7];
  if ((iVar5 < iVar6) && (iVar4 < iVar5)) {
    do {
      iVar7 = iVar6 - iVar5;
      iVar8 = iVar5 - iVar4;
      if (iVar8 < iVar7) {
        if (0 < iVar8) {
          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);
          puVar1 = (undefined4 *)(param_1 + (iVar6 - iVar8) * 4);
          do {
            uVar3 = *puVar2;
            *puVar2 = *puVar1;
            *puVar1 = uVar3;
            puVar1 = puVar1 + 1;
            puVar2 = puVar2 + 1;
          } while (puVar1 != (undefined4 *)(param_1 + iVar6 * 4));
        }
        iVar6 = iVar6 - iVar8;
      }
      else {
        if (0 < iVar7) {
          puVar2 = (undefined4 *)(param_1 + iVar4 * 4);
          puVar1 = (undefined4 *)(param_1 + iVar5 * 4);
          do {
            uVar3 = *puVar2;
            *puVar2 = *puVar1;
            *puVar1 = uVar3;
            puVar2 = puVar2 + 1;
            puVar1 = puVar1 + 1;
          } while (puVar2 != (undefined4 *)(param_1 + (iVar7 + iVar4) * 4));
        }
        iVar4 = iVar4 + iVar7;
      }
    } while ((iVar5 < iVar6) && (iVar4 < iVar5));
  }
  param_2[7] = param_2[7] + (*param_2 - param_2[8]);
  param_2[8] = *param_2;
  return;
}

