
void frame_heapsort(void)

{
  uint uVar1;
  undefined4 uVar2;
  int in_ECX;
  int iVar3;
  uint uVar4;
  
  uVar1 = *(uint *)(in_ECX + 4);
  uVar4 = uVar1 >> 1;
  while (uVar4 = uVar4 - 1, uVar4 != 0xffffffff) {
    frame_downheap(uVar4,uVar1);
  }
  iVar3 = uVar1 - 1;
  if (0 < iVar3) {
    do {
      uVar2 = *(undefined4 *)(in_ECX + 8);
      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);
      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;
      frame_downheap(0,iVar3);
      iVar3 = iVar3 + -1;
    } while (iVar3 != 0);
  }
  return;
}



void FUN_0027e080(void)

{
  uint uVar1;
  undefined4 uVar2;
  int in_ECX;
  int iVar3;
  uint uVar4;
  
  uVar1 = *(uint *)(in_ECX + 4);
  uVar4 = uVar1 >> 1;
  while (uVar4 = uVar4 - 1, uVar4 != 0xffffffff) {
    FUN_0027dfc0(uVar4,uVar1);
  }
  iVar3 = uVar1 - 1;
  if (0 < iVar3) {
    do {
      uVar2 = *(undefined4 *)(in_ECX + 8);
      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);
      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;
      FUN_0027dfc0(0,iVar3);
      iVar3 = iVar3 + -1;
    } while (iVar3 != 0);
  }
  return;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
MOV EDI,ECX
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV EBX,dword ptr [ECX + 0x4]
MOV dword ptr [ESP + 0x8],EAX
LEA EAX,[ECX + 0x8]
MOV ESI,EBX
MOV dword ptr [ESP + 0x4],EAX
SHR ESI,0x1
SUB ESI,0x1
CMP ESI,-0x1
JZ 0x0027e0d1
MOV dword ptr [ESP + 0xc],ECX
MOV EDI,dword ptr [ESP + 0x4]
LEA ESI,[ESI]
SUB ESP,0x8
MOV ECX,EDI
MOV EDX,EBP
PUSH EBX
PUSH ESI
MOV EAX,dword ptr [ESP + 0x18]
SUB ESI,0x1
CALL 0x0027dfc0
ADD ESP,0x10
CMP ESI,-0x1
JNZ 0x0027e0b0
MOV EDI,dword ptr [ESP + 0xc]
SUB EBX,0x1
MOV ESI,dword ptr [ESP + 0x8]
TEST EBX,EBX
JLE 0x0027e109
LEA ESI,[ESI]
MOV EAX,dword ptr [EDI + 0x8]
MOV EDX,dword ptr [EDI + EBX*0x4 + 0x8]
SUB ESP,0x8
MOV dword ptr [EDI + 0x8],EDX
MOV EDX,EBP
MOV dword ptr [EDI + EBX*0x4 + 0x8],EAX
MOV EAX,ESI
PUSH EBX
PUSH 0x0
MOV ECX,dword ptr [ESP + 0x14]
CALL 0x0027dfc0
ADD ESP,0x10
SUB EBX,0x1
JNZ 0x0027e0e0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "void FUN_0027e080(void)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int in_ECX;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(in_ECX + 4);\n  uVar4 = uVar1 >> 1;\n  while (uVar4 = uVar4 - 1, uVar4 != 0xffffffff) {\n    FUN_0027dfc0(uVar4,uVar1);\n  }\n  iVar3 = uVar1 - 1;\n  if (0 < iVar3) {\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0027e080(void)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int in_ECX;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(in_ECX + 4);\n  uVar4 = uVar1 >> 1;\n  while (uVar4 = uVar4 - 1, uVar4 != 0xffffffff) {\n    FUN_0027dfc0(uVar4,uVar1);\n  }\n  iVar3 = uVar1 - 1;\n  if (0 < iVar3) {\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0027e080(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  int in_ECX;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(in_ECX + 4);\n  uVar4 = uVar1 >> 1;\n  while (uVar4 = uVar4 - 1, uVar4 != 0xffffffff) {\n    FUN_0027dfc0(uVar4,uVar1);\n  }\n  iVar3 = uVar1 - 1;\n  if (0 < iVar3) {\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int in_ECX;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(in_ECX + 4);" (assignment_expression "uVar1 = *(uint *)(in_ECX + 4)" identifier = (pointer_expression "*(uint *)(in_ECX + 4)" * (cast_expression "(uint *)(in_ECX + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 4)" ( (binary_expression "in_ECX + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = uVar1 >> 1;" (assignment_expression "uVar4 = uVar1 >> 1" identifier = (binary_expression "uVar1 >> 1" identifier >> number_literal)) ;) (while_statement "while (uVar4 = uVar4 - 1, uVar4 != 0xffffffff) {\n    FUN_0027dfc0(uVar4,uVar1);\n  }" while (parenthesized_expression "(uVar4 = uVar4 - 1, uVar4 != 0xffffffff)" ( (comma_expression "uVar4 = uVar4 - 1, uVar4 != 0xffffffff" (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) , (binary_expression "uVar4 != 0xffffffff" identifier != number_literal)) )) (compound_statement "{\n    FUN_0027dfc0(uVar4,uVar1);\n  }" { (expression_statement "FUN_0027dfc0(uVar4,uVar1);" (call_expression "FUN_0027dfc0(uVar4,uVar1)" identifier (argument_list "(uVar4,uVar1)" ( identifier , identifier ))) ;) })) (expression_statement "iVar3 = uVar1 - 1;" (assignment_expression "iVar3 = uVar1 - 1" identifier = (binary_expression "uVar1 - 1" identifier - number_literal)) ;) (if_statement "if (0 < iVar3) {\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }" { (do_statement "do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);" do (compound_statement "{\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    }" { (expression_statement "uVar2 = *(undefined4 *)(in_ECX + 8);" (assignment_expression "uVar2 = *(undefined4 *)(in_ECX + 8)" identifier = (pointer_expression "*(undefined4 *)(in_ECX + 8)" * (cast_expression "(undefined4 *)(in_ECX + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 8)" ( (binary_expression "in_ECX + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);" (assignment_expression "*(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4)" (pointer_expression "*(undefined4 *)(in_ECX + 8)" * (cast_expression "(undefined4 *)(in_ECX + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 8)" ( (binary_expression "in_ECX + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(in_ECX + 8 + iVar3 * 4)" * (cast_expression "(undefined4 *)(in_ECX + 8 + iVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 8 + iVar3 * 4)" ( (binary_expression "in_ECX + 8 + iVar3 * 4" (binary_expression "in_ECX + 8" identifier + number_literal) + (binary_expression "iVar3 * 4" identifier * number_literal)) ))))) ;) (expression_statement "*(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;" (assignment_expression "*(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2" (pointer_expression "*(undefined4 *)(in_ECX + 8 + iVar3 * 4)" * (cast_expression "(undefined4 *)(in_ECX + 8 + iVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 8 + iVar3 * 4)" ( (binary_expression "in_ECX + 8 + iVar3 * 4" (binary_expression "in_ECX + 8" identifier + number_literal) + (binary_expression "iVar3 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "FUN_0027dfc0(0,iVar3);" (call_expression "FUN_0027dfc0(0,iVar3)" identifier (argument_list "(0,iVar3)" ( number_literal , identifier ))) ;) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void frame_heapsort(void)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int in_ECX;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(in_ECX + 4);\n  uVar4 = uVar1 >> 1;\n  while (uVar4 = uVar4 - 1, uVar4 != 0xffffffff) {\n    frame_downheap(uVar4,uVar1);\n  }\n  iVar3 = uVar1 - 1;\n  if (0 < iVar3) {\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      frame_downheap(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return;\n}\n\n" (function_definition "void frame_heapsort(void)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int in_ECX;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(in_ECX + 4);\n  uVar4 = uVar1 >> 1;\n  while (uVar4 = uVar4 - 1, uVar4 != 0xffffffff) {\n    frame_downheap(uVar4,uVar1);\n  }\n  iVar3 = uVar1 - 1;\n  if (0 < iVar3) {\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      frame_downheap(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return;\n}" primitive_type (function_declarator "frame_heapsort(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  int in_ECX;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(in_ECX + 4);\n  uVar4 = uVar1 >> 1;\n  while (uVar4 = uVar4 - 1, uVar4 != 0xffffffff) {\n    frame_downheap(uVar4,uVar1);\n  }\n  iVar3 = uVar1 - 1;\n  if (0 < iVar3) {\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      frame_downheap(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int in_ECX;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(in_ECX + 4);" (assignment_expression "uVar1 = *(uint *)(in_ECX + 4)" identifier = (pointer_expression "*(uint *)(in_ECX + 4)" * (cast_expression "(uint *)(in_ECX + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 4)" ( (binary_expression "in_ECX + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = uVar1 >> 1;" (assignment_expression "uVar4 = uVar1 >> 1" identifier = (binary_expression "uVar1 >> 1" identifier >> number_literal)) ;) (while_statement "while (uVar4 = uVar4 - 1, uVar4 != 0xffffffff) {\n    frame_downheap(uVar4,uVar1);\n  }" while (parenthesized_expression "(uVar4 = uVar4 - 1, uVar4 != 0xffffffff)" ( (comma_expression "uVar4 = uVar4 - 1, uVar4 != 0xffffffff" (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) , (binary_expression "uVar4 != 0xffffffff" identifier != number_literal)) )) (compound_statement "{\n    frame_downheap(uVar4,uVar1);\n  }" { (expression_statement "frame_downheap(uVar4,uVar1);" (call_expression "frame_downheap(uVar4,uVar1)" identifier (argument_list "(uVar4,uVar1)" ( identifier , identifier ))) ;) })) (expression_statement "iVar3 = uVar1 - 1;" (assignment_expression "iVar3 = uVar1 - 1" identifier = (binary_expression "uVar1 - 1" identifier - number_literal)) ;) (if_statement "if (0 < iVar3) {\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      frame_downheap(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      frame_downheap(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }" { (do_statement "do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      frame_downheap(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);" do (compound_statement "{\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      frame_downheap(0,iVar3);\n      iVar3 = iVar3 + -1;\n    }" { (expression_statement "uVar2 = *(undefined4 *)(in_ECX + 8);" (assignment_expression "uVar2 = *(undefined4 *)(in_ECX + 8)" identifier = (pointer_expression "*(undefined4 *)(in_ECX + 8)" * (cast_expression "(undefined4 *)(in_ECX + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 8)" ( (binary_expression "in_ECX + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);" (assignment_expression "*(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4)" (pointer_expression "*(undefined4 *)(in_ECX + 8)" * (cast_expression "(undefined4 *)(in_ECX + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 8)" ( (binary_expression "in_ECX + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(in_ECX + 8 + iVar3 * 4)" * (cast_expression "(undefined4 *)(in_ECX + 8 + iVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 8 + iVar3 * 4)" ( (binary_expression "in_ECX + 8 + iVar3 * 4" (binary_expression "in_ECX + 8" identifier + number_literal) + (binary_expression "iVar3 * 4" identifier * number_literal)) ))))) ;) (expression_statement "*(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;" (assignment_expression "*(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2" (pointer_expression "*(undefined4 *)(in_ECX + 8 + iVar3 * 4)" * (cast_expression "(undefined4 *)(in_ECX + 8 + iVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 8 + iVar3 * 4)" ( (binary_expression "in_ECX + 8 + iVar3 * 4" (binary_expression "in_ECX + 8" identifier + number_literal) + (binary_expression "iVar3 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "frame_downheap(0,iVar3);" (call_expression "frame_downheap(0,iVar3)" identifier (argument_list "(0,iVar3)" ( number_literal , identifier ))) ;) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0027e080(void)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int in_ECX;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(in_ECX + 4);\n  uVar4 = uVar1 >> 1;\n  while (uVar4 = uVar4 - 1, uVar4 != 0xffffffff) {\n    FUN_0027dfc0(uVar4,uVar1);\n  }\n  iVar3 = uVar1 - 1;\n  if (0 < iVar3) {\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0027e080(void)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int in_ECX;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(in_ECX + 4);\n  uVar4 = uVar1 >> 1;\n  while (uVar4 = uVar4 - 1, uVar4 != 0xffffffff) {\n    FUN_0027dfc0(uVar4,uVar1);\n  }\n  iVar3 = uVar1 - 1;\n  if (0 < iVar3) {\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0027e080(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  int in_ECX;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(in_ECX + 4);\n  uVar4 = uVar1 >> 1;\n  while (uVar4 = uVar4 - 1, uVar4 != 0xffffffff) {\n    FUN_0027dfc0(uVar4,uVar1);\n  }\n  iVar3 = uVar1 - 1;\n  if (0 < iVar3) {\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int in_ECX;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(in_ECX + 4);" (assignment_expression "uVar1 = *(uint *)(in_ECX + 4)" identifier = (pointer_expression "*(uint *)(in_ECX + 4)" * (cast_expression "(uint *)(in_ECX + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 4)" ( (binary_expression "in_ECX + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = uVar1 >> 1;" (assignment_expression "uVar4 = uVar1 >> 1" identifier = (binary_expression "uVar1 >> 1" identifier >> number_literal)) ;) (while_statement "while (uVar4 = uVar4 - 1, uVar4 != 0xffffffff) {\n    FUN_0027dfc0(uVar4,uVar1);\n  }" while (parenthesized_expression "(uVar4 = uVar4 - 1, uVar4 != 0xffffffff)" ( (comma_expression "uVar4 = uVar4 - 1, uVar4 != 0xffffffff" (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) , (binary_expression "uVar4 != 0xffffffff" identifier != number_literal)) )) (compound_statement "{\n    FUN_0027dfc0(uVar4,uVar1);\n  }" { (expression_statement "FUN_0027dfc0(uVar4,uVar1);" (call_expression "FUN_0027dfc0(uVar4,uVar1)" identifier (argument_list "(uVar4,uVar1)" ( identifier , identifier ))) ;) })) (expression_statement "iVar3 = uVar1 - 1;" (assignment_expression "iVar3 = uVar1 - 1" identifier = (binary_expression "uVar1 - 1" identifier - number_literal)) ;) (if_statement "if (0 < iVar3) {\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }" { (do_statement "do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);" do (compound_statement "{\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    }" { (expression_statement "uVar2 = *(undefined4 *)(in_ECX + 8);" (assignment_expression "uVar2 = *(undefined4 *)(in_ECX + 8)" identifier = (pointer_expression "*(undefined4 *)(in_ECX + 8)" * (cast_expression "(undefined4 *)(in_ECX + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 8)" ( (binary_expression "in_ECX + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);" (assignment_expression "*(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4)" (pointer_expression "*(undefined4 *)(in_ECX + 8)" * (cast_expression "(undefined4 *)(in_ECX + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 8)" ( (binary_expression "in_ECX + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(in_ECX + 8 + iVar3 * 4)" * (cast_expression "(undefined4 *)(in_ECX + 8 + iVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 8 + iVar3 * 4)" ( (binary_expression "in_ECX + 8 + iVar3 * 4" (binary_expression "in_ECX + 8" identifier + number_literal) + (binary_expression "iVar3 * 4" identifier * number_literal)) ))))) ;) (expression_statement "*(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;" (assignment_expression "*(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2" (pointer_expression "*(undefined4 *)(in_ECX + 8 + iVar3 * 4)" * (cast_expression "(undefined4 *)(in_ECX + 8 + iVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_ECX + 8 + iVar3 * 4)" ( (binary_expression "in_ECX + 8 + iVar3 * 4" (binary_expression "in_ECX + 8" identifier + number_literal) + (binary_expression "iVar3 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "FUN_0027dfc0(0,iVar3);" (call_expression "FUN_0027dfc0(0,iVar3)" identifier (argument_list "(0,iVar3)" ( number_literal , identifier ))) ;) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT - LIT)) , (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0027e080(void)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int in_ECX;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(in_ECX + 4);\n  uVar4 = uVar1 >> 1;\n  while (uVar4 = uVar4 - 1, uVar4 != 0xffffffff) {\n    FUN_0027dfc0(uVar4,uVar1);\n  }\n  iVar3 = uVar1 - 1;\n  if (0 < iVar3) {\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0027e080(void)" (identifier "FUN_0027e080") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  int in_ECX;\n  int iVar3;\n  uint uVar4;\n  \n  uVar1 = *(uint *)(in_ECX + 4);\n  uVar4 = uVar1 >> 1;\n  while (uVar4 = uVar4 - 1, uVar4 != 0xffffffff) {\n    FUN_0027dfc0(uVar4,uVar1);\n  }\n  iVar3 = uVar1 - 1;\n  if (0 < iVar3) {\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int in_ECX;" (primitive_type "int") (identifier "in_ECX") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (expression_statement "uVar1 = *(uint *)(in_ECX + 4);" (assignment_expression "uVar1 = *(uint *)(in_ECX + 4)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(in_ECX + 4)" (* "*") (cast_expression "(uint *)(in_ECX + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_ECX + 4)" (( "(") (binary_expression "in_ECX + 4" (identifier "in_ECX") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar4 = uVar1 >> 1;" (assignment_expression "uVar4 = uVar1 >> 1" (identifier "uVar4") (= "=") (binary_expression "uVar1 >> 1" (identifier "uVar1") (>> ">>") (number_literal "1"))) (; ";")) (while_statement "while (uVar4 = uVar4 - 1, uVar4 != 0xffffffff) {\n    FUN_0027dfc0(uVar4,uVar1);\n  }" (while "while") (parenthesized_expression "(uVar4 = uVar4 - 1, uVar4 != 0xffffffff)" (( "(") (comma_expression "uVar4 = uVar4 - 1, uVar4 != 0xffffffff" (assignment_expression "uVar4 = uVar4 - 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 - 1" (identifier "uVar4") (- "-") (number_literal "1"))) (, ",") (binary_expression "uVar4 != 0xffffffff" (identifier "uVar4") (!= "!=") (number_literal "0xffffffff"))) () ")")) (compound_statement "{\n    FUN_0027dfc0(uVar4,uVar1);\n  }" ({ "{") (expression_statement "FUN_0027dfc0(uVar4,uVar1);" (call_expression "FUN_0027dfc0(uVar4,uVar1)" (identifier "FUN_0027dfc0") (argument_list "(uVar4,uVar1)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = uVar1 - 1;" (assignment_expression "iVar3 = uVar1 - 1" (identifier "iVar3") (= "=") (binary_expression "uVar1 - 1" (identifier "uVar1") (- "-") (number_literal "1"))) (; ";")) (if_statement "if (0 < iVar3) {\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }" (if "if") (parenthesized_expression "(0 < iVar3)" (( "(") (binary_expression "0 < iVar3" (number_literal "0") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }" ({ "{") (do_statement "do {\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);" (do "do") (compound_statement "{\n      uVar2 = *(undefined4 *)(in_ECX + 8);\n      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);\n      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;\n      FUN_0027dfc0(0,iVar3);\n      iVar3 = iVar3 + -1;\n    }" ({ "{") (expression_statement "uVar2 = *(undefined4 *)(in_ECX + 8);" (assignment_expression "uVar2 = *(undefined4 *)(in_ECX + 8)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(in_ECX + 8)" (* "*") (cast_expression "(undefined4 *)(in_ECX + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_ECX + 8)" (( "(") (binary_expression "in_ECX + 8" (identifier "in_ECX") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);" (assignment_expression "*(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4)" (pointer_expression "*(undefined4 *)(in_ECX + 8)" (* "*") (cast_expression "(undefined4 *)(in_ECX + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_ECX + 8)" (( "(") (binary_expression "in_ECX + 8" (identifier "in_ECX") (+ "+") (number_literal "8")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(in_ECX + 8 + iVar3 * 4)" (* "*") (cast_expression "(undefined4 *)(in_ECX + 8 + iVar3 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_ECX + 8 + iVar3 * 4)" (( "(") (binary_expression "in_ECX + 8 + iVar3 * 4" (binary_expression "in_ECX + 8" (identifier "in_ECX") (+ "+") (number_literal "8")) (+ "+") (binary_expression "iVar3 * 4" (identifier "iVar3") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;" (assignment_expression "*(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2" (pointer_expression "*(undefined4 *)(in_ECX + 8 + iVar3 * 4)" (* "*") (cast_expression "(undefined4 *)(in_ECX + 8 + iVar3 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_ECX + 8 + iVar3 * 4)" (( "(") (binary_expression "in_ECX + 8 + iVar3 * 4" (binary_expression "in_ECX + 8" (identifier "in_ECX") (+ "+") (number_literal "8")) (+ "+") (binary_expression "iVar3 * 4" (identifier "iVar3") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "FUN_0027dfc0(0,iVar3);" (call_expression "FUN_0027dfc0(0,iVar3)" (identifier "FUN_0027dfc0") (argument_list "(0,iVar3)" (( "(") (number_literal "0") (, ",") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(void)

{
  type_1 var_2;
  type_2 uVar2;
  int var_1;
  int var_5;
  type_1 var_3;
  
  var_2 = *(type_1 *)(var_1 + 4);
  var_3 = var_2 >> 1;
  while (var_3 = var_3 - 1, var_3 != 0xffffffff) {
    var_4(var_3,var_2);
  }
  var_5 = var_2 - 1;
  if (0 < var_5) {
    do {
      uVar2 = *(type_2 *)(var_1 + 8);
      *(type_2 *)(var_1 + 8) = *(type_2 *)(var_1 + 8 + var_5 * 4);
      *(type_2 *)(var_1 + 8 + var_5 * 4) = uVar2;
      var_4(0,var_5);
      var_5 = var_5 + -1;
    } while (var_5 != 0);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (return_statement))))

void MASKED(void)

{
  uint uVar1;
  undefined4 uVar2;
  int in_ECX;
  int iVar3;
  uint uVar4;
  
  uVar1 = *(uint *)(in_ECX + 4);
  uVar4 = uVar1 >> 1;
  while (uVar4 = uVar4 - 1, uVar4 != 0xffffffff) {
    FUN_0027dfc0(uVar4,uVar1);
  }
  iVar3 = uVar1 - 1;
  if (0 < iVar3) {
    do {
      uVar2 = *(undefined4 *)(in_ECX + 8);
      *(undefined4 *)(in_ECX + 8) = *(undefined4 *)(in_ECX + 8 + iVar3 * 4);
      *(undefined4 *)(in_ECX + 8 + iVar3 * 4) = uVar2;
      FUN_0027dfc0(0,iVar3);
      iVar3 = iVar3 + -1;
    } while (iVar3 != 0);
  }
  return;
}

