
/* WARNING: Unknown calling convention */

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

{
  int iVar1;
  char **ppcVar2;
  int iVar3;
  char **ppcVar4;
  char **ppcVar5;
  int iVar6;
  char *pcVar7;
  int iVar8;
  int iVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  
  iVar9 = d->__last_nonopt;
  iVar11 = d->rpl_optind;
  iVar12 = d->__first_nonopt;
  if ((iVar9 < iVar11) && (iVar12 < iVar9)) {
    iVar3 = iVar11 - iVar9;
    iVar1 = iVar12;
    iVar10 = iVar11;
    do {
      iVar6 = iVar9 - iVar1;
      iVar8 = iVar3 + iVar1;
      if (iVar6 < iVar3) {
        iVar10 = iVar10 - iVar6;
        ppcVar2 = argv + iVar1;
        ppcVar5 = argv + iVar10;
        do {
          ppcVar4 = ppcVar2 + 1;
          pcVar7 = *ppcVar2;
          *ppcVar2 = *ppcVar5;
          *ppcVar5 = pcVar7;
          iVar8 = iVar1;
          ppcVar2 = ppcVar4;
          ppcVar5 = ppcVar5 + 1;
        } while (argv + iVar6 + iVar1 != ppcVar4);
      }
      else {
        ppcVar2 = argv + iVar1;
        ppcVar5 = argv + iVar9;
        do {
          ppcVar4 = ppcVar2 + 1;
          pcVar7 = *ppcVar2;
          *ppcVar2 = *ppcVar5;
          *ppcVar5 = pcVar7;
          ppcVar2 = ppcVar4;
          ppcVar5 = ppcVar5 + 1;
        } while (ppcVar4 != argv + iVar8);
      }
    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));
  }
  d->__last_nonopt = iVar11;
  d->__first_nonopt = (iVar11 - iVar9) + iVar12;
  return;
}



void FUN_00016cf0(int param_1,int *param_2)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  int iVar6;
  undefined4 uVar7;
  int iVar8;
  int iVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  
  iVar9 = param_2[8];
  iVar11 = *param_2;
  iVar12 = param_2[7];
  if ((iVar9 < iVar11) && (iVar12 < iVar9)) {
    iVar3 = iVar11 - iVar9;
    iVar1 = iVar12;
    iVar10 = iVar11;
    do {
      iVar6 = iVar9 - iVar1;
      iVar8 = iVar3 + iVar1;
      if (iVar6 < iVar3) {
        iVar10 = iVar10 - iVar6;
        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);
        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);
        do {
          puVar4 = puVar2 + 1;
          uVar7 = *puVar2;
          *puVar2 = *puVar5;
          *puVar5 = uVar7;
          iVar8 = iVar1;
          puVar2 = puVar4;
          puVar5 = puVar5 + 1;
        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);
      }
      else {
        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);
        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);
        do {
          puVar4 = puVar2 + 1;
          uVar7 = *puVar2;
          *puVar2 = *puVar5;
          *puVar5 = uVar7;
          puVar2 = puVar4;
          puVar5 = puVar5 + 1;
        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));
      }
    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));
  }
  param_2[8] = iVar11;
  param_2[7] = (iVar11 - iVar9) + iVar12;
  return;
}


lw t2,0x20(a1)
lw t5,0x0(a1)
slt v0,t2,t5
beq v0,zero,0x00016d84
_lw t6,0x1c(a1)
slt v0,t6,t2
beq v0,zero,0x00016d84
_nop
sll t4,t2,0x2
or t3,t5,zero
addu t4,a0,t4
or v0,t6,zero
subu v1,t3,t2
subu a3,t2,v0
slt a2,a3,v1
beq a2,zero,0x00016d98
_addu t1,v1,v0
subu t3,t3,a3
addu a3,a3,v0
sll v1,v0,0x2
sll a2,t3,0x2
sll a3,a3,0x2
addu v1,a0,v1
addu a2,a0,a2
addu a3,a0,a3
addiu v1,v1,0x4
lw t1,0x0(a2)
lw t0,-0x4(v1)
addiu a2,a2,0x4
sw t1,-0x4(v1)
bne a3,v1,0x00016d54
_sw t0,-0x4(a2)
slt v1,t2,t3
beq v1,zero,0x00016d84
_slt v1,v0,t2
bne v1,zero,0x00016d24
_subu v1,t3,t2
subu t2,t5,t2
sw t5,0x20(a1)
addu t6,t2,t6
jr ra
_sw t6,0x1c(a1)
sll v0,v0,0x2
sll t0,t1,0x2
addu v0,a0,v0
addu t0,a0,t0
or v1,t4,zero
addiu v0,v0,0x4
lw a3,0x0(v1)
lw a2,-0x4(v0)
addiu v1,v1,0x4
sw a3,-0x4(v0)
bne v0,t0,0x00016dac
_sw a2,-0x4(v1)
b 0x00016d70
_or v0,t1,zero
(translation_unit "void FUN_00016cf0(int param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  \n  iVar9 = param_2[8];\n  iVar11 = *param_2;\n  iVar12 = param_2[7];\n  if ((iVar9 < iVar11) && (iVar12 < iVar9)) {\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }\n  param_2[8] = iVar11;\n  param_2[7] = (iVar11 - iVar9) + iVar12;\n  return;\n}\n\n" (function_definition "void FUN_00016cf0(int param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  \n  iVar9 = param_2[8];\n  iVar11 = *param_2;\n  iVar12 = param_2[7];\n  if ((iVar9 < iVar11) && (iVar12 < iVar9)) {\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }\n  param_2[8] = iVar11;\n  param_2[7] = (iVar11 - iVar9) + iVar12;\n  return;\n}" primitive_type (function_declarator "FUN_00016cf0(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  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  \n  iVar9 = param_2[8];\n  iVar11 = *param_2;\n  iVar12 = param_2[7];\n  if ((iVar9 < iVar11) && (iVar12 < iVar9)) {\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }\n  param_2[8] = iVar11;\n  param_2[7] = (iVar11 - iVar9) + iVar12;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (expression_statement "iVar9 = param_2[8];" (assignment_expression "iVar9 = param_2[8]" identifier = (subscript_expression "param_2[8]" identifier [ number_literal ])) ;) (expression_statement "iVar11 = *param_2;" (assignment_expression "iVar11 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar12 = param_2[7];" (assignment_expression "iVar12 = param_2[7]" identifier = (subscript_expression "param_2[7]" identifier [ number_literal ])) ;) (if_statement "if ((iVar9 < iVar11) && (iVar12 < iVar9)) {\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }" if (parenthesized_expression "((iVar9 < iVar11) && (iVar12 < iVar9))" ( (binary_expression "(iVar9 < iVar11) && (iVar12 < iVar9)" (parenthesized_expression "(iVar9 < iVar11)" ( (binary_expression "iVar9 < iVar11" identifier < identifier) )) && (parenthesized_expression "(iVar12 < iVar9)" ( (binary_expression "iVar12 < iVar9" identifier < identifier) ))) )) (compound_statement "{\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }" { (expression_statement "iVar3 = iVar11 - iVar9;" (assignment_expression "iVar3 = iVar11 - iVar9" identifier = (binary_expression "iVar11 - iVar9" identifier - identifier)) ;) (expression_statement "iVar1 = iVar12;" (assignment_expression "iVar1 = iVar12" identifier = identifier) ;) (expression_statement "iVar10 = iVar11;" (assignment_expression "iVar10 = iVar11" identifier = identifier) ;) (do_statement "do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));" do (compound_statement "{\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    }" { (expression_statement "iVar6 = iVar9 - iVar1;" (assignment_expression "iVar6 = iVar9 - iVar1" identifier = (binary_expression "iVar9 - iVar1" identifier - identifier)) ;) (expression_statement "iVar8 = iVar3 + iVar1;" (assignment_expression "iVar8 = iVar3 + iVar1" identifier = (binary_expression "iVar3 + iVar1" identifier + identifier)) ;) (if_statement "if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }" if (parenthesized_expression "(iVar6 < iVar3)" ( (binary_expression "iVar6 < iVar3" identifier < identifier) )) (compound_statement "{\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }" { (expression_statement "iVar10 = iVar10 - iVar6;" (assignment_expression "iVar10 = iVar10 - iVar6" identifier = (binary_expression "iVar10 - iVar6" identifier - identifier)) ;) (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar1 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar1 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar1 * 4)" ( (binary_expression "param_1 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) ;) (expression_statement "puVar5 = (undefined4 *)(param_1 + iVar10 * 4);" (assignment_expression "puVar5 = (undefined4 *)(param_1 + iVar10 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar10 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar10 * 4)" ( (binary_expression "param_1 + iVar10 * 4" identifier + (binary_expression "iVar10 * 4" identifier * number_literal)) )))) ;) (do_statement "do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);" do (compound_statement "{\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        }" { (expression_statement "puVar4 = puVar2 + 1;" (assignment_expression "puVar4 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = *puVar2;" (assignment_expression "uVar7 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "*puVar2 = *puVar5;" (assignment_expression "*puVar2 = *puVar5" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "*puVar5 = uVar7;" (assignment_expression "*puVar5 = uVar7" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "iVar8 = iVar1;" (assignment_expression "iVar8 = iVar1" identifier = identifier) ;) (expression_statement "puVar2 = puVar4;" (assignment_expression "puVar2 = puVar4" identifier = identifier) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4)" ( (binary_expression "(undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4" (cast_expression "(undefined4 *)(param_1 + (iVar6 + iVar1) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (iVar6 + iVar1) * 4)" ( (binary_expression "param_1 + (iVar6 + iVar1) * 4" identifier + (binary_expression "(iVar6 + iVar1) * 4" (parenthesized_expression "(iVar6 + iVar1)" ( (binary_expression "iVar6 + iVar1" identifier + identifier) )) * number_literal)) ))) != identifier) )) ;) }) (else_clause "else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }" else (compound_statement "{\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }" { (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar1 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar1 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar1 * 4)" ( (binary_expression "param_1 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) ;) (expression_statement "puVar5 = (undefined4 *)(param_1 + iVar9 * 4);" (assignment_expression "puVar5 = (undefined4 *)(param_1 + iVar9 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar9 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar9 * 4)" ( (binary_expression "param_1 + iVar9 * 4" identifier + (binary_expression "iVar9 * 4" identifier * number_literal)) )))) ;) (do_statement "do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));" do (compound_statement "{\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        }" { (expression_statement "puVar4 = puVar2 + 1;" (assignment_expression "puVar4 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = *puVar2;" (assignment_expression "uVar7 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "*puVar2 = *puVar5;" (assignment_expression "*puVar2 = *puVar5" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "*puVar5 = uVar7;" (assignment_expression "*puVar5 = uVar7" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "puVar2 = puVar4;" (assignment_expression "puVar2 = puVar4" identifier = identifier) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar4 != (undefined4 *)(param_1 + iVar8 * 4))" ( (binary_expression "puVar4 != (undefined4 *)(param_1 + iVar8 * 4)" identifier != (cast_expression "(undefined4 *)(param_1 + iVar8 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar8 * 4)" ( (binary_expression "param_1 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) )) ;) }))) }) while (parenthesized_expression "((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9))" ( (binary_expression "(iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9)" (parenthesized_expression "(iVar9 < iVar10)" ( (binary_expression "iVar9 < iVar10" identifier < identifier) )) && (parenthesized_expression "(iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9)" ( (comma_expression "iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9" (assignment_expression "iVar3 = iVar10 - iVar9" identifier = (binary_expression "iVar10 - iVar9" identifier - identifier)) , (comma_expression "iVar1 = iVar8, iVar8 < iVar9" (assignment_expression "iVar1 = iVar8" identifier = identifier) , (binary_expression "iVar8 < iVar9" identifier < identifier))) ))) )) ;) })) (expression_statement "param_2[8] = iVar11;" (assignment_expression "param_2[8] = iVar11" (subscript_expression "param_2[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[7] = (iVar11 - iVar9) + iVar12;" (assignment_expression "param_2[7] = (iVar11 - iVar9) + iVar12" (subscript_expression "param_2[7]" identifier [ number_literal ]) = (binary_expression "(iVar11 - iVar9) + iVar12" (parenthesized_expression "(iVar11 - iVar9)" ( (binary_expression "iVar11 - iVar9" identifier - identifier) )) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid exchange(char **argv,_getopt_data *d)\n\n{\n  int iVar1;\n  char **ppcVar2;\n  int iVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  int iVar6;\n  char *pcVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  \n  iVar9 = d->__last_nonopt;\n  iVar11 = d->rpl_optind;\n  iVar12 = d->__first_nonopt;\n  if ((iVar9 < iVar11) && (iVar12 < iVar9)) {\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar10;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          iVar8 = iVar1;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (argv + iVar6 + iVar1 != ppcVar4);\n      }\n      else {\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar9;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (ppcVar4 != argv + iVar8);\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }\n  d->__last_nonopt = iVar11;\n  d->__first_nonopt = (iVar11 - iVar9) + iVar12;\n  return;\n}\n\n" comment (function_definition "void exchange(char **argv,_getopt_data *d)\n\n{\n  int iVar1;\n  char **ppcVar2;\n  int iVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  int iVar6;\n  char *pcVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  \n  iVar9 = d->__last_nonopt;\n  iVar11 = d->rpl_optind;\n  iVar12 = d->__first_nonopt;\n  if ((iVar9 < iVar11) && (iVar12 < iVar9)) {\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar10;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          iVar8 = iVar1;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (argv + iVar6 + iVar1 != ppcVar4);\n      }\n      else {\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar9;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (ppcVar4 != argv + iVar8);\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }\n  d->__last_nonopt = iVar11;\n  d->__first_nonopt = (iVar11 - iVar9) + iVar12;\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  int iVar1;\n  char **ppcVar2;\n  int iVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  int iVar6;\n  char *pcVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  \n  iVar9 = d->__last_nonopt;\n  iVar11 = d->rpl_optind;\n  iVar12 = d->__first_nonopt;\n  if ((iVar9 < iVar11) && (iVar12 < iVar9)) {\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar10;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          iVar8 = iVar1;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (argv + iVar6 + iVar1 != ppcVar4);\n      }\n      else {\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar9;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (ppcVar4 != argv + iVar8);\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }\n  d->__last_nonopt = iVar11;\n  d->__first_nonopt = (iVar11 - iVar9) + iVar12;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char **ppcVar2;" primitive_type (pointer_declarator "**ppcVar2" * (pointer_declarator "*ppcVar2" * identifier)) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char **ppcVar4;" primitive_type (pointer_declarator "**ppcVar4" * (pointer_declarator "*ppcVar4" * identifier)) ;) (declaration "char **ppcVar5;" primitive_type (pointer_declarator "**ppcVar5" * (pointer_declarator "*ppcVar5" * identifier)) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (expression_statement "iVar9 = d->__last_nonopt;" (assignment_expression "iVar9 = d->__last_nonopt" identifier = (field_expression "d->__last_nonopt" identifier -> field_identifier)) ;) (expression_statement "iVar11 = d->rpl_optind;" (assignment_expression "iVar11 = d->rpl_optind" identifier = (field_expression "d->rpl_optind" identifier -> field_identifier)) ;) (expression_statement "iVar12 = d->__first_nonopt;" (assignment_expression "iVar12 = d->__first_nonopt" identifier = (field_expression "d->__first_nonopt" identifier -> field_identifier)) ;) (if_statement "if ((iVar9 < iVar11) && (iVar12 < iVar9)) {\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar10;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          iVar8 = iVar1;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (argv + iVar6 + iVar1 != ppcVar4);\n      }\n      else {\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar9;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (ppcVar4 != argv + iVar8);\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }" if (parenthesized_expression "((iVar9 < iVar11) && (iVar12 < iVar9))" ( (binary_expression "(iVar9 < iVar11) && (iVar12 < iVar9)" (parenthesized_expression "(iVar9 < iVar11)" ( (binary_expression "iVar9 < iVar11" identifier < identifier) )) && (parenthesized_expression "(iVar12 < iVar9)" ( (binary_expression "iVar12 < iVar9" identifier < identifier) ))) )) (compound_statement "{\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar10;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          iVar8 = iVar1;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (argv + iVar6 + iVar1 != ppcVar4);\n      }\n      else {\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar9;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (ppcVar4 != argv + iVar8);\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }" { (expression_statement "iVar3 = iVar11 - iVar9;" (assignment_expression "iVar3 = iVar11 - iVar9" identifier = (binary_expression "iVar11 - iVar9" identifier - identifier)) ;) (expression_statement "iVar1 = iVar12;" (assignment_expression "iVar1 = iVar12" identifier = identifier) ;) (expression_statement "iVar10 = iVar11;" (assignment_expression "iVar10 = iVar11" identifier = identifier) ;) (do_statement "do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar10;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          iVar8 = iVar1;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (argv + iVar6 + iVar1 != ppcVar4);\n      }\n      else {\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar9;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (ppcVar4 != argv + iVar8);\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));" do (compound_statement "{\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar10;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          iVar8 = iVar1;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (argv + iVar6 + iVar1 != ppcVar4);\n      }\n      else {\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar9;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (ppcVar4 != argv + iVar8);\n      }\n    }" { (expression_statement "iVar6 = iVar9 - iVar1;" (assignment_expression "iVar6 = iVar9 - iVar1" identifier = (binary_expression "iVar9 - iVar1" identifier - identifier)) ;) (expression_statement "iVar8 = iVar3 + iVar1;" (assignment_expression "iVar8 = iVar3 + iVar1" identifier = (binary_expression "iVar3 + iVar1" identifier + identifier)) ;) (if_statement "if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar10;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          iVar8 = iVar1;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (argv + iVar6 + iVar1 != ppcVar4);\n      }\n      else {\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar9;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (ppcVar4 != argv + iVar8);\n      }" if (parenthesized_expression "(iVar6 < iVar3)" ( (binary_expression "iVar6 < iVar3" identifier < identifier) )) (compound_statement "{\n        iVar10 = iVar10 - iVar6;\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar10;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          iVar8 = iVar1;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (argv + iVar6 + iVar1 != ppcVar4);\n      }" { (expression_statement "iVar10 = iVar10 - iVar6;" (assignment_expression "iVar10 = iVar10 - iVar6" identifier = (binary_expression "iVar10 - iVar6" identifier - identifier)) ;) (expression_statement "ppcVar2 = argv + iVar1;" (assignment_expression "ppcVar2 = argv + iVar1" identifier = (binary_expression "argv + iVar1" identifier + identifier)) ;) (expression_statement "ppcVar5 = argv + iVar10;" (assignment_expression "ppcVar5 = argv + iVar10" identifier = (binary_expression "argv + iVar10" identifier + identifier)) ;) (do_statement "do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          iVar8 = iVar1;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (argv + iVar6 + iVar1 != ppcVar4);" do (compound_statement "{\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          iVar8 = iVar1;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        }" { (expression_statement "ppcVar4 = ppcVar2 + 1;" (assignment_expression "ppcVar4 = ppcVar2 + 1" identifier = (binary_expression "ppcVar2 + 1" identifier + number_literal)) ;) (expression_statement "pcVar7 = *ppcVar2;" (assignment_expression "pcVar7 = *ppcVar2" identifier = (pointer_expression "*ppcVar2" * identifier)) ;) (expression_statement "*ppcVar2 = *ppcVar5;" (assignment_expression "*ppcVar2 = *ppcVar5" (pointer_expression "*ppcVar2" * identifier) = (pointer_expression "*ppcVar5" * identifier)) ;) (expression_statement "*ppcVar5 = pcVar7;" (assignment_expression "*ppcVar5 = pcVar7" (pointer_expression "*ppcVar5" * identifier) = identifier) ;) (expression_statement "iVar8 = iVar1;" (assignment_expression "iVar8 = iVar1" identifier = identifier) ;) (expression_statement "ppcVar2 = ppcVar4;" (assignment_expression "ppcVar2 = ppcVar4" identifier = identifier) ;) (expression_statement "ppcVar5 = ppcVar5 + 1;" (assignment_expression "ppcVar5 = ppcVar5 + 1" identifier = (binary_expression "ppcVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(argv + iVar6 + iVar1 != ppcVar4)" ( (binary_expression "argv + iVar6 + iVar1 != ppcVar4" (binary_expression "argv + iVar6 + iVar1" (binary_expression "argv + iVar6" identifier + identifier) + identifier) != identifier) )) ;) }) (else_clause "else {\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar9;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (ppcVar4 != argv + iVar8);\n      }" else (compound_statement "{\n        ppcVar2 = argv + iVar1;\n        ppcVar5 = argv + iVar9;\n        do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (ppcVar4 != argv + iVar8);\n      }" { (expression_statement "ppcVar2 = argv + iVar1;" (assignment_expression "ppcVar2 = argv + iVar1" identifier = (binary_expression "argv + iVar1" identifier + identifier)) ;) (expression_statement "ppcVar5 = argv + iVar9;" (assignment_expression "ppcVar5 = argv + iVar9" identifier = (binary_expression "argv + iVar9" identifier + identifier)) ;) (do_statement "do {\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        } while (ppcVar4 != argv + iVar8);" do (compound_statement "{\n          ppcVar4 = ppcVar2 + 1;\n          pcVar7 = *ppcVar2;\n          *ppcVar2 = *ppcVar5;\n          *ppcVar5 = pcVar7;\n          ppcVar2 = ppcVar4;\n          ppcVar5 = ppcVar5 + 1;\n        }" { (expression_statement "ppcVar4 = ppcVar2 + 1;" (assignment_expression "ppcVar4 = ppcVar2 + 1" identifier = (binary_expression "ppcVar2 + 1" identifier + number_literal)) ;) (expression_statement "pcVar7 = *ppcVar2;" (assignment_expression "pcVar7 = *ppcVar2" identifier = (pointer_expression "*ppcVar2" * identifier)) ;) (expression_statement "*ppcVar2 = *ppcVar5;" (assignment_expression "*ppcVar2 = *ppcVar5" (pointer_expression "*ppcVar2" * identifier) = (pointer_expression "*ppcVar5" * identifier)) ;) (expression_statement "*ppcVar5 = pcVar7;" (assignment_expression "*ppcVar5 = pcVar7" (pointer_expression "*ppcVar5" * identifier) = identifier) ;) (expression_statement "ppcVar2 = ppcVar4;" (assignment_expression "ppcVar2 = ppcVar4" identifier = identifier) ;) (expression_statement "ppcVar5 = ppcVar5 + 1;" (assignment_expression "ppcVar5 = ppcVar5 + 1" identifier = (binary_expression "ppcVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(ppcVar4 != argv + iVar8)" ( (binary_expression "ppcVar4 != argv + iVar8" identifier != (binary_expression "argv + iVar8" identifier + identifier)) )) ;) }))) }) while (parenthesized_expression "((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9))" ( (binary_expression "(iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9)" (parenthesized_expression "(iVar9 < iVar10)" ( (binary_expression "iVar9 < iVar10" identifier < identifier) )) && (parenthesized_expression "(iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9)" ( (comma_expression "iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9" (assignment_expression "iVar3 = iVar10 - iVar9" identifier = (binary_expression "iVar10 - iVar9" identifier - identifier)) , (comma_expression "iVar1 = iVar8, iVar8 < iVar9" (assignment_expression "iVar1 = iVar8" identifier = identifier) , (binary_expression "iVar8 < iVar9" identifier < identifier))) ))) )) ;) })) (expression_statement "d->__last_nonopt = iVar11;" (assignment_expression "d->__last_nonopt = iVar11" (field_expression "d->__last_nonopt" identifier -> field_identifier) = identifier) ;) (expression_statement "d->__first_nonopt = (iVar11 - iVar9) + iVar12;" (assignment_expression "d->__first_nonopt = (iVar11 - iVar9) + iVar12" (field_expression "d->__first_nonopt" identifier -> field_identifier) = (binary_expression "(iVar11 - iVar9) + iVar12" (parenthesized_expression "(iVar11 - iVar9)" ( (binary_expression "iVar11 - iVar9" identifier - identifier) )) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00016cf0(int param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  \n  iVar9 = param_2[8];\n  iVar11 = *param_2;\n  iVar12 = param_2[7];\n  if ((iVar9 < iVar11) && (iVar12 < iVar9)) {\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }\n  param_2[8] = iVar11;\n  param_2[7] = (iVar11 - iVar9) + iVar12;\n  return;\n}\n\n" (function_definition "void FUN_00016cf0(int param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  \n  iVar9 = param_2[8];\n  iVar11 = *param_2;\n  iVar12 = param_2[7];\n  if ((iVar9 < iVar11) && (iVar12 < iVar9)) {\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }\n  param_2[8] = iVar11;\n  param_2[7] = (iVar11 - iVar9) + iVar12;\n  return;\n}" primitive_type (function_declarator "FUN_00016cf0(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  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  \n  iVar9 = param_2[8];\n  iVar11 = *param_2;\n  iVar12 = param_2[7];\n  if ((iVar9 < iVar11) && (iVar12 < iVar9)) {\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }\n  param_2[8] = iVar11;\n  param_2[7] = (iVar11 - iVar9) + iVar12;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (expression_statement "iVar9 = param_2[8];" (assignment_expression "iVar9 = param_2[8]" identifier = (subscript_expression "param_2[8]" identifier [ number_literal ])) ;) (expression_statement "iVar11 = *param_2;" (assignment_expression "iVar11 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar12 = param_2[7];" (assignment_expression "iVar12 = param_2[7]" identifier = (subscript_expression "param_2[7]" identifier [ number_literal ])) ;) (if_statement "if ((iVar9 < iVar11) && (iVar12 < iVar9)) {\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }" if (parenthesized_expression "((iVar9 < iVar11) && (iVar12 < iVar9))" ( (binary_expression "(iVar9 < iVar11) && (iVar12 < iVar9)" (parenthesized_expression "(iVar9 < iVar11)" ( (binary_expression "iVar9 < iVar11" identifier < identifier) )) && (parenthesized_expression "(iVar12 < iVar9)" ( (binary_expression "iVar12 < iVar9" identifier < identifier) ))) )) (compound_statement "{\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }" { (expression_statement "iVar3 = iVar11 - iVar9;" (assignment_expression "iVar3 = iVar11 - iVar9" identifier = (binary_expression "iVar11 - iVar9" identifier - identifier)) ;) (expression_statement "iVar1 = iVar12;" (assignment_expression "iVar1 = iVar12" identifier = identifier) ;) (expression_statement "iVar10 = iVar11;" (assignment_expression "iVar10 = iVar11" identifier = identifier) ;) (do_statement "do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));" do (compound_statement "{\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    }" { (expression_statement "iVar6 = iVar9 - iVar1;" (assignment_expression "iVar6 = iVar9 - iVar1" identifier = (binary_expression "iVar9 - iVar1" identifier - identifier)) ;) (expression_statement "iVar8 = iVar3 + iVar1;" (assignment_expression "iVar8 = iVar3 + iVar1" identifier = (binary_expression "iVar3 + iVar1" identifier + identifier)) ;) (if_statement "if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }" if (parenthesized_expression "(iVar6 < iVar3)" ( (binary_expression "iVar6 < iVar3" identifier < identifier) )) (compound_statement "{\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }" { (expression_statement "iVar10 = iVar10 - iVar6;" (assignment_expression "iVar10 = iVar10 - iVar6" identifier = (binary_expression "iVar10 - iVar6" identifier - identifier)) ;) (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar1 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar1 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar1 * 4)" ( (binary_expression "param_1 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) ;) (expression_statement "puVar5 = (undefined4 *)(param_1 + iVar10 * 4);" (assignment_expression "puVar5 = (undefined4 *)(param_1 + iVar10 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar10 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar10 * 4)" ( (binary_expression "param_1 + iVar10 * 4" identifier + (binary_expression "iVar10 * 4" identifier * number_literal)) )))) ;) (do_statement "do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);" do (compound_statement "{\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        }" { (expression_statement "puVar4 = puVar2 + 1;" (assignment_expression "puVar4 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = *puVar2;" (assignment_expression "uVar7 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "*puVar2 = *puVar5;" (assignment_expression "*puVar2 = *puVar5" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "*puVar5 = uVar7;" (assignment_expression "*puVar5 = uVar7" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "iVar8 = iVar1;" (assignment_expression "iVar8 = iVar1" identifier = identifier) ;) (expression_statement "puVar2 = puVar4;" (assignment_expression "puVar2 = puVar4" identifier = identifier) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4)" ( (binary_expression "(undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4" (cast_expression "(undefined4 *)(param_1 + (iVar6 + iVar1) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (iVar6 + iVar1) * 4)" ( (binary_expression "param_1 + (iVar6 + iVar1) * 4" identifier + (binary_expression "(iVar6 + iVar1) * 4" (parenthesized_expression "(iVar6 + iVar1)" ( (binary_expression "iVar6 + iVar1" identifier + identifier) )) * number_literal)) ))) != identifier) )) ;) }) (else_clause "else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }" else (compound_statement "{\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }" { (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar1 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar1 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar1 * 4)" ( (binary_expression "param_1 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) ;) (expression_statement "puVar5 = (undefined4 *)(param_1 + iVar9 * 4);" (assignment_expression "puVar5 = (undefined4 *)(param_1 + iVar9 * 4)" identifier = (cast_expression "(undefined4 *)(param_1 + iVar9 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar9 * 4)" ( (binary_expression "param_1 + iVar9 * 4" identifier + (binary_expression "iVar9 * 4" identifier * number_literal)) )))) ;) (do_statement "do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));" do (compound_statement "{\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        }" { (expression_statement "puVar4 = puVar2 + 1;" (assignment_expression "puVar4 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = *puVar2;" (assignment_expression "uVar7 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "*puVar2 = *puVar5;" (assignment_expression "*puVar2 = *puVar5" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "*puVar5 = uVar7;" (assignment_expression "*puVar5 = uVar7" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "puVar2 = puVar4;" (assignment_expression "puVar2 = puVar4" identifier = identifier) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar4 != (undefined4 *)(param_1 + iVar8 * 4))" ( (binary_expression "puVar4 != (undefined4 *)(param_1 + iVar8 * 4)" identifier != (cast_expression "(undefined4 *)(param_1 + iVar8 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar8 * 4)" ( (binary_expression "param_1 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) )) ;) }))) }) while (parenthesized_expression "((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9))" ( (binary_expression "(iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9)" (parenthesized_expression "(iVar9 < iVar10)" ( (binary_expression "iVar9 < iVar10" identifier < identifier) )) && (parenthesized_expression "(iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9)" ( (comma_expression "iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9" (assignment_expression "iVar3 = iVar10 - iVar9" identifier = (binary_expression "iVar10 - iVar9" identifier - identifier)) , (comma_expression "iVar1 = iVar8, iVar8 < iVar9" (assignment_expression "iVar1 = iVar8" identifier = identifier) , (binary_expression "iVar8 < iVar9" identifier < identifier))) ))) )) ;) })) (expression_statement "param_2[8] = iVar11;" (assignment_expression "param_2[8] = iVar11" (subscript_expression "param_2[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[7] = (iVar11 - iVar9) + iVar12;" (assignment_expression "param_2[7] = (iVar11 - iVar9) + iVar12" (subscript_expression "param_2[7]" identifier [ number_literal ]) = (binary_expression "(iVar11 - iVar9) + iVar12" (parenthesized_expression "(iVar11 - iVar9)" ( (binary_expression "iVar11 - iVar9" identifier - identifier) )) + 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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (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 ;) (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 { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (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 = (binary_expression IDENT + LIT)) ;) (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 = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) ))) != IDENT) )) ;) }) (else_clause else (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 = (binary_expression IDENT + LIT)) ;) (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 = IDENT) ;) (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)) )))) )) ;) }))) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT - IDENT)) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT < IDENT))) ))) )) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00016cf0(int param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  \n  iVar9 = param_2[8];\n  iVar11 = *param_2;\n  iVar12 = param_2[7];\n  if ((iVar9 < iVar11) && (iVar12 < iVar9)) {\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }\n  param_2[8] = iVar11;\n  param_2[7] = (iVar11 - iVar9) + iVar12;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00016cf0(int param_1,int *param_2)" (identifier "FUN_00016cf0") (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  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  int iVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  \n  iVar9 = param_2[8];\n  iVar11 = *param_2;\n  iVar12 = param_2[7];\n  if ((iVar9 < iVar11) && (iVar12 < iVar9)) {\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }\n  param_2[8] = iVar11;\n  param_2[7] = (iVar11 - iVar9) + iVar12;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (expression_statement "iVar9 = param_2[8];" (assignment_expression "iVar9 = param_2[8]" (identifier "iVar9") (= "=") (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]"))) (; ";")) (expression_statement "iVar11 = *param_2;" (assignment_expression "iVar11 = *param_2" (identifier "iVar11") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "iVar12 = param_2[7];" (assignment_expression "iVar12 = param_2[7]" (identifier "iVar12") (= "=") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]"))) (; ";")) (if_statement "if ((iVar9 < iVar11) && (iVar12 < iVar9)) {\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }" (if "if") (parenthesized_expression "((iVar9 < iVar11) && (iVar12 < iVar9))" (( "(") (binary_expression "(iVar9 < iVar11) && (iVar12 < iVar9)" (parenthesized_expression "(iVar9 < iVar11)" (( "(") (binary_expression "iVar9 < iVar11" (identifier "iVar9") (< "<") (identifier "iVar11")) () ")")) (&& "&&") (parenthesized_expression "(iVar12 < iVar9)" (( "(") (binary_expression "iVar12 < iVar9" (identifier "iVar12") (< "<") (identifier "iVar9")) () ")"))) () ")")) (compound_statement "{\n    iVar3 = iVar11 - iVar9;\n    iVar1 = iVar12;\n    iVar10 = iVar11;\n    do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));\n  }" ({ "{") (expression_statement "iVar3 = iVar11 - iVar9;" (assignment_expression "iVar3 = iVar11 - iVar9" (identifier "iVar3") (= "=") (binary_expression "iVar11 - iVar9" (identifier "iVar11") (- "-") (identifier "iVar9"))) (; ";")) (expression_statement "iVar1 = iVar12;" (assignment_expression "iVar1 = iVar12" (identifier "iVar1") (= "=") (identifier "iVar12")) (; ";")) (expression_statement "iVar10 = iVar11;" (assignment_expression "iVar10 = iVar11" (identifier "iVar10") (= "=") (identifier "iVar11")) (; ";")) (do_statement "do {\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));" (do "do") (compound_statement "{\n      iVar6 = iVar9 - iVar1;\n      iVar8 = iVar3 + iVar1;\n      if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }\n    }" ({ "{") (expression_statement "iVar6 = iVar9 - iVar1;" (assignment_expression "iVar6 = iVar9 - iVar1" (identifier "iVar6") (= "=") (binary_expression "iVar9 - iVar1" (identifier "iVar9") (- "-") (identifier "iVar1"))) (; ";")) (expression_statement "iVar8 = iVar3 + iVar1;" (assignment_expression "iVar8 = iVar3 + iVar1" (identifier "iVar8") (= "=") (binary_expression "iVar3 + iVar1" (identifier "iVar3") (+ "+") (identifier "iVar1"))) (; ";")) (if_statement "if (iVar6 < iVar3) {\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }\n      else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }" (if "if") (parenthesized_expression "(iVar6 < iVar3)" (( "(") (binary_expression "iVar6 < iVar3" (identifier "iVar6") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n        iVar10 = iVar10 - iVar6;\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);\n      }" ({ "{") (expression_statement "iVar10 = iVar10 - iVar6;" (assignment_expression "iVar10 = iVar10 - iVar6" (identifier "iVar10") (= "=") (binary_expression "iVar10 - iVar6" (identifier "iVar10") (- "-") (identifier "iVar6"))) (; ";")) (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar1 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar1 * 4)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(param_1 + iVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar1 * 4)" (( "(") (binary_expression "param_1 + iVar1 * 4" (identifier "param_1") (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "puVar5 = (undefined4 *)(param_1 + iVar10 * 4);" (assignment_expression "puVar5 = (undefined4 *)(param_1 + iVar10 * 4)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(param_1 + iVar10 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar10 * 4)" (( "(") (binary_expression "param_1 + iVar10 * 4" (identifier "param_1") (+ "+") (binary_expression "iVar10 * 4" (identifier "iVar10") (* "*") (number_literal "4"))) () ")")))) (; ";")) (do_statement "do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);" (do "do") (compound_statement "{\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          iVar8 = iVar1;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        }" ({ "{") (expression_statement "puVar4 = puVar2 + 1;" (assignment_expression "puVar4 = puVar2 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar7 = *puVar2;" (assignment_expression "uVar7 = *puVar2" (identifier "uVar7") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "*puVar2 = *puVar5;" (assignment_expression "*puVar2 = *puVar5" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (; ";")) (expression_statement "*puVar5 = uVar7;" (assignment_expression "*puVar5 = uVar7" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "iVar8 = iVar1;" (assignment_expression "iVar8 = iVar1" (identifier "iVar8") (= "=") (identifier "iVar1")) (; ";")) (expression_statement "puVar2 = puVar4;" (assignment_expression "puVar2 = puVar4" (identifier "puVar2") (= "=") (identifier "puVar4")) (; ";")) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4)" (( "(") (binary_expression "(undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4" (cast_expression "(undefined4 *)(param_1 + (iVar6 + iVar1) * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + (iVar6 + iVar1) * 4)" (( "(") (binary_expression "param_1 + (iVar6 + iVar1) * 4" (identifier "param_1") (+ "+") (binary_expression "(iVar6 + iVar1) * 4" (parenthesized_expression "(iVar6 + iVar1)" (( "(") (binary_expression "iVar6 + iVar1" (identifier "iVar6") (+ "+") (identifier "iVar1")) () ")")) (* "*") (number_literal "4"))) () ")"))) (!= "!=") (identifier "puVar4")) () ")")) (; ";")) (} "}")) (else_clause "else {\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }" (else "else") (compound_statement "{\n        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);\n        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);\n        do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));\n      }" ({ "{") (expression_statement "puVar2 = (undefined4 *)(param_1 + iVar1 * 4);" (assignment_expression "puVar2 = (undefined4 *)(param_1 + iVar1 * 4)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(param_1 + iVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar1 * 4)" (( "(") (binary_expression "param_1 + iVar1 * 4" (identifier "param_1") (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "puVar5 = (undefined4 *)(param_1 + iVar9 * 4);" (assignment_expression "puVar5 = (undefined4 *)(param_1 + iVar9 * 4)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(param_1 + iVar9 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar9 * 4)" (( "(") (binary_expression "param_1 + iVar9 * 4" (identifier "param_1") (+ "+") (binary_expression "iVar9 * 4" (identifier "iVar9") (* "*") (number_literal "4"))) () ")")))) (; ";")) (do_statement "do {\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));" (do "do") (compound_statement "{\n          puVar4 = puVar2 + 1;\n          uVar7 = *puVar2;\n          *puVar2 = *puVar5;\n          *puVar5 = uVar7;\n          puVar2 = puVar4;\n          puVar5 = puVar5 + 1;\n        }" ({ "{") (expression_statement "puVar4 = puVar2 + 1;" (assignment_expression "puVar4 = puVar2 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar7 = *puVar2;" (assignment_expression "uVar7 = *puVar2" (identifier "uVar7") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "*puVar2 = *puVar5;" (assignment_expression "*puVar2 = *puVar5" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (; ";")) (expression_statement "*puVar5 = uVar7;" (assignment_expression "*puVar5 = uVar7" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "puVar2 = puVar4;" (assignment_expression "puVar2 = puVar4" (identifier "puVar2") (= "=") (identifier "puVar4")) (; ";")) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar4 != (undefined4 *)(param_1 + iVar8 * 4))" (( "(") (binary_expression "puVar4 != (undefined4 *)(param_1 + iVar8 * 4)" (identifier "puVar4") (!= "!=") (cast_expression "(undefined4 *)(param_1 + iVar8 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar8 * 4)" (( "(") (binary_expression "param_1 + iVar8 * 4" (identifier "param_1") (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) () ")")))) () ")")) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9))" (( "(") (binary_expression "(iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9)" (parenthesized_expression "(iVar9 < iVar10)" (( "(") (binary_expression "iVar9 < iVar10" (identifier "iVar9") (< "<") (identifier "iVar10")) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9)" (( "(") (comma_expression "iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9" (assignment_expression "iVar3 = iVar10 - iVar9" (identifier "iVar3") (= "=") (binary_expression "iVar10 - iVar9" (identifier "iVar10") (- "-") (identifier "iVar9"))) (, ",") (comma_expression "iVar1 = iVar8, iVar8 < iVar9" (assignment_expression "iVar1 = iVar8" (identifier "iVar1") (= "=") (identifier "iVar8")) (, ",") (binary_expression "iVar8 < iVar9" (identifier "iVar8") (< "<") (identifier "iVar9")))) () ")"))) () ")")) (; ";")) (} "}"))) (expression_statement "param_2[8] = iVar11;" (assignment_expression "param_2[8] = iVar11" (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "iVar11")) (; ";")) (expression_statement "param_2[7] = (iVar11 - iVar9) + iVar12;" (assignment_expression "param_2[7] = (iVar11 - iVar9) + iVar12" (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")) (= "=") (binary_expression "(iVar11 - iVar9) + iVar12" (parenthesized_expression "(iVar11 - iVar9)" (( "(") (binary_expression "iVar11 - iVar9" (identifier "iVar11") (- "-") (identifier "iVar9")) () ")")) (+ "+") (identifier "iVar12"))) (; ";")) (return_statement "return;" (return "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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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 (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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 (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (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: (binary_expression left: (identifier) right: (number_literal)))) (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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (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))))) right: (identifier))))) alternative: (else_clause (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: (binary_expression left: (identifier) right: (number_literal)))) (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: (identifier))) (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)))))))))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))) right: (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (identifier)))) (return_statement))))

void MASKED(int param_1,int *param_2)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 *puVar4;
  undefined4 *puVar5;
  int iVar6;
  undefined4 uVar7;
  int iVar8;
  int iVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  
  iVar9 = param_2[8];
  iVar11 = *param_2;
  iVar12 = param_2[7];
  if ((iVar9 < iVar11) && (iVar12 < iVar9)) {
    iVar3 = iVar11 - iVar9;
    iVar1 = iVar12;
    iVar10 = iVar11;
    do {
      iVar6 = iVar9 - iVar1;
      iVar8 = iVar3 + iVar1;
      if (iVar6 < iVar3) {
        iVar10 = iVar10 - iVar6;
        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);
        puVar5 = (undefined4 *)(param_1 + iVar10 * 4);
        do {
          puVar4 = puVar2 + 1;
          uVar7 = *puVar2;
          *puVar2 = *puVar5;
          *puVar5 = uVar7;
          iVar8 = iVar1;
          puVar2 = puVar4;
          puVar5 = puVar5 + 1;
        } while ((undefined4 *)(param_1 + (iVar6 + iVar1) * 4) != puVar4);
      }
      else {
        puVar2 = (undefined4 *)(param_1 + iVar1 * 4);
        puVar5 = (undefined4 *)(param_1 + iVar9 * 4);
        do {
          puVar4 = puVar2 + 1;
          uVar7 = *puVar2;
          *puVar2 = *puVar5;
          *puVar5 = uVar7;
          puVar2 = puVar4;
          puVar5 = puVar5 + 1;
        } while (puVar4 != (undefined4 *)(param_1 + iVar8 * 4));
      }
    } while ((iVar9 < iVar10) && (iVar3 = iVar10 - iVar9, iVar1 = iVar8, iVar8 < iVar9));
  }
  param_2[8] = iVar11;
  param_2[7] = (iVar11 - iVar9) + iVar12;
  return;
}

