
void copy_with_block(char *buf,size_t nread)

{
  char cVar1;
  undefined *puVar2;
  code *pcVar3;
  uint uVar4;
  size_t i;
  uint uVar5;
  int iVar6;
  uint uVar7;
  char *pcVar8;
  
  puVar2 = PTR_DAT_00034118;
  if (nread != 0) {
    pcVar8 = buf + nread;
    pcVar3 = (code *)(PTR_00034124 + 0x6864);
    do {
      cVar1 = *buf;
      uVar7 = *(uint *)(puVar2 + 0x456c);
      uVar4 = *(uint *)(puVar2 + 0x4618);
      if (puVar2[0x4052] == cVar1) {
        iVar6 = *(int *)(puVar2 + 0x4570);
        if (uVar7 < uVar4) {
          do {
            uVar7 = uVar7 + 1;
            uVar4 = *(uint *)(puVar2 + 0x461c);
            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;
            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];
            if (uVar4 <= iVar6 + 1U) {
              (*pcVar3)();
            }
            iVar6 = *(int *)(puVar2 + 0x4570);
          } while (uVar7 < *(uint *)(puVar2 + 0x4618));
        }
        *(undefined4 *)(puVar2 + 0x456c) = 0;
      }
      else {
        if (uVar7 == uVar4) {
          uVar4 = *(uint *)(puVar2 + 0x4584);
          uVar5 = uVar4 + 1;
          *(uint *)(puVar2 + 0x4584) = uVar5;
          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);
        }
        else {
          iVar6 = *(int *)(puVar2 + 0x4570);
          if (uVar7 < uVar4) {
            uVar4 = *(uint *)(puVar2 + 0x461c);
            uVar5 = iVar6 + 1;
            *(uint *)(puVar2 + 0x4570) = uVar5;
            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;
            if (uVar4 <= uVar5) {
              (*pcVar3)();
              uVar7 = *(uint *)(puVar2 + 0x456c);
            }
          }
        }
        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;
      }
      buf = buf + 1;
    } while (pcVar8 != buf);
    return;
  }
  return;
}



void FUN_000169b4(char *param_1,int param_2)

{
  char cVar1;
  undefined *puVar2;
  code *pcVar3;
  uint uVar4;
  uint uVar5;
  int iVar6;
  uint uVar7;
  char *pcVar8;
  
  puVar2 = PTR_DAT_00034118;
  if (param_2 != 0) {
    pcVar8 = param_1 + param_2;
    pcVar3 = (code *)(PTR_00034124 + 0x6864);
    do {
      cVar1 = *param_1;
      uVar7 = *(uint *)(puVar2 + 0x456c);
      uVar4 = *(uint *)(puVar2 + 0x4618);
      if (puVar2[0x4052] == cVar1) {
        iVar6 = *(int *)(puVar2 + 0x4570);
        if (uVar7 < uVar4) {
          do {
            uVar7 = uVar7 + 1;
            uVar4 = *(uint *)(puVar2 + 0x461c);
            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;
            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];
            if (uVar4 <= iVar6 + 1U) {
              (*pcVar3)();
            }
            iVar6 = *(int *)(puVar2 + 0x4570);
          } while (uVar7 < *(uint *)(puVar2 + 0x4618));
        }
        *(undefined4 *)(puVar2 + 0x456c) = 0;
      }
      else {
        if (uVar7 == uVar4) {
          uVar4 = *(uint *)(puVar2 + 0x4584);
          uVar5 = uVar4 + 1;
          *(uint *)(puVar2 + 0x4584) = uVar5;
          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);
        }
        else {
          iVar6 = *(int *)(puVar2 + 0x4570);
          if (uVar7 < uVar4) {
            uVar4 = *(uint *)(puVar2 + 0x461c);
            uVar5 = iVar6 + 1;
            *(uint *)(puVar2 + 0x4570) = uVar5;
            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;
            if (uVar4 <= uVar5) {
              (*pcVar3)();
              uVar7 = *(uint *)(puVar2 + 0x456c);
            }
          }
        }
        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;
      }
      param_1 = param_1 + 1;
    } while (pcVar8 != param_1);
    return;
  }
  return;
}


lui gp,0x2
addiu gp,gp,0x573c
addu gp,gp,t9
beq a1,zero,0x00016b58
_nop
addiu sp,sp,-0x50
lw a3,-0x7fd8(gp)
sw s2,0x30(sp)
sw s8,0x48(sp)
sw s7,0x44(sp)
sw s6,0x40(sp)
addu s6,a0,a1
sw s5,0x3c(sp)
sw s4,0x38(sp)
sw s3,0x34(sp)
lw s2,-0x7fcc(gp)
lw s3,-0x7fd8(gp)
lw s5,-0x7fd8(gp)
addiu v0,s2,0x6864
lw s7,-0x7fd8(gp)
lw a1,-0x7fd8(gp)
lw s4,-0x7fd8(gp)
lw s8,-0x7fd8(gp)
lw s2,-0x7fd8(gp)
sw s1,0x2c(sp)
or s1,a0,zero
sw gp,0x10(sp)
sw ra,0x4c(sp)
sw s0,0x28(sp)
sw v0,0x24(sp)
lb v1,0x0(s1)
lb a0,0x4052(s7)
lw s0,0x456c(s3)
beq a0,v1,0x00016ad0
_lw v0,0x4618(s5)
beq s0,v0,0x00016b38
_sltu v0,s0,v0
beq v0,zero,0x00016a70
_lw t1,0x4570(s4)
lw a0,0x4574(a1)
lw v0,0x461c(s8)
addiu a2,t1,0x1
addu a0,a0,t1
sltu v0,a2,v0
sw a2,0x4570(s4)
beq v0,zero,0x00016ab0
_sb v1,0x0(a0)
addiu s0,s0,0x1
sw s0,0x456c(s3)
addiu s1,s1,0x1
bne s6,s1,0x00016a2c
_lw ra,0x4c(sp)
lw s8,0x48(sp)
lw s7,0x44(sp)
lw s6,0x40(sp)
lw s5,0x3c(sp)
lw s4,0x38(sp)
lw s3,0x34(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x50
lw t9,0x24(sp)
sw a3,0x20(sp)
jalr t9
_sw a1,0x1c(sp)
lw s0,0x456c(s3)
lw a3,0x20(sp)
b 0x00016a70
_lw a1,0x1c(sp)
sltu v0,s0,v0
bne v0,zero,0x00016b08
_lw a2,0x4570(s4)
b 0x00016a78
_sw zero,0x456c(s3)
sw a3,0x20(sp)
jalr t9
_sw a1,0x1c(sp)
lw a3,0x20(sp)
lw a1,0x1c(sp)
lw v0,0x4618(s5)
sltu v0,s0,v0
beq v0,zero,0x00016adc
_lw a2,0x4570(s4)
addiu s0,s0,0x1
lw v1,0x4574(a1)
lw v0,0x461c(s8)
addiu a0,a2,0x1
lbu t1,0x4051(s2)
addu v1,v1,a2
sltu v0,a0,v0
sw a0,0x4570(s4)
bne v0,zero,0x00016af8
_sb t1,0x0(v1)
b 0x00016ae4
_lw t9,0x24(sp)
lw v0,0x4584(a3)
lw a0,0x4580(a3)
addiu v1,v0,0x1
sltu v0,v1,v0
sw v1,0x4584(a3)
addu v0,v0,a0
b 0x00016a70
_sw v0,0x4580(a3)
jr ra
_nop
(translation_unit "void FUN_000169b4(char *param_1,int param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  char *pcVar8;\n  \n  puVar2 = PTR_DAT_00034118;\n  if (param_2 != 0) {\n    pcVar8 = param_1 + param_2;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    } while (pcVar8 != param_1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_000169b4(char *param_1,int param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  char *pcVar8;\n  \n  puVar2 = PTR_DAT_00034118;\n  if (param_2 != 0) {\n    pcVar8 = param_1 + param_2;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    } while (pcVar8 != param_1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000169b4(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  char *pcVar8;\n  \n  puVar2 = PTR_DAT_00034118;\n  if (param_2 != 0) {\n    pcVar8 = param_1 + param_2;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    } while (pcVar8 != param_1);\n    return;\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (expression_statement "puVar2 = PTR_DAT_00034118;" (assignment_expression "puVar2 = PTR_DAT_00034118" identifier = identifier) ;) (if_statement "if (param_2 != 0) {\n    pcVar8 = param_1 + param_2;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    } while (pcVar8 != param_1);\n    return;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar8 = param_1 + param_2;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    } while (pcVar8 != param_1);\n    return;\n  }" { (expression_statement "pcVar8 = param_1 + param_2;" (assignment_expression "pcVar8 = param_1 + param_2" identifier = (binary_expression "param_1 + param_2" identifier + identifier)) ;) (expression_statement "pcVar3 = (code *)(PTR_00034124 + 0x6864);" (assignment_expression "pcVar3 = (code *)(PTR_00034124 + 0x6864)" identifier = (cast_expression "(code *)(PTR_00034124 + 0x6864)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00034124 + 0x6864)" ( (binary_expression "PTR_00034124 + 0x6864" identifier + number_literal) )))) ;) (do_statement "do {\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    } while (pcVar8 != param_1);" do (compound_statement "{\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    }" { (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar7 = *(uint *)(puVar2 + 0x456c);" (assignment_expression "uVar7 = *(uint *)(puVar2 + 0x456c)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x456c)" * (cast_expression "(uint *)(puVar2 + 0x456c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x456c)" ( (binary_expression "puVar2 + 0x456c" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(uint *)(puVar2 + 0x4618);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0x4618)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x4618)" * (cast_expression "(uint *)(puVar2 + 0x4618)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4618)" ( (binary_expression "puVar2 + 0x4618" identifier + number_literal) ))))) ;) (if_statement "if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }" if (parenthesized_expression "(puVar2[0x4052] == cVar1)" ( (binary_expression "puVar2[0x4052] == cVar1" (subscript_expression "puVar2[0x4052]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }" { (expression_statement "iVar6 = *(int *)(puVar2 + 0x4570);" (assignment_expression "iVar6 = *(int *)(puVar2 + 0x4570)" identifier = (pointer_expression "*(int *)(puVar2 + 0x4570)" * (cast_expression "(int *)(puVar2 + 0x4570)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4570)" ( (binary_expression "puVar2 + 0x4570" identifier + number_literal) ))))) ;) (if_statement "if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }" if (parenthesized_expression "(uVar7 < uVar4)" ( (binary_expression "uVar7 < uVar4" identifier < identifier) )) (compound_statement "{\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }" { (do_statement "do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));" do (compound_statement "{\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          }" { (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = *(uint *)(puVar2 + 0x461c);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0x461c)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x461c)" * (cast_expression "(uint *)(puVar2 + 0x461c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x461c)" ( (binary_expression "puVar2 + 0x461c" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(puVar2 + 0x4570) = iVar6 + 1U;" (assignment_expression "*(uint *)(puVar2 + 0x4570) = iVar6 + 1U" (pointer_expression "*(uint *)(puVar2 + 0x4570)" * (cast_expression "(uint *)(puVar2 + 0x4570)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4570)" ( (binary_expression "puVar2 + 0x4570" identifier + number_literal) )))) = (binary_expression "iVar6 + 1U" identifier + number_literal)) ;) (expression_statement "*(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];" (assignment_expression "*(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051]" (pointer_expression "*(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6)" * (cast_expression "(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar2 + 0x4574) + iVar6)" ( (binary_expression "*(int *)(puVar2 + 0x4574) + iVar6" (pointer_expression "*(int *)(puVar2 + 0x4574)" * (cast_expression "(int *)(puVar2 + 0x4574)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4574)" ( (binary_expression "puVar2 + 0x4574" identifier + number_literal) )))) + identifier) )))) = (subscript_expression "puVar2[0x4051]" identifier [ number_literal ])) ;) (if_statement "if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }" if (parenthesized_expression "(uVar4 <= iVar6 + 1U)" ( (binary_expression "uVar4 <= iVar6 + 1U" identifier <= (binary_expression "iVar6 + 1U" identifier + number_literal)) )) (compound_statement "{\n              (*pcVar3)();\n            }" { (expression_statement "(*pcVar3)();" (call_expression "(*pcVar3)()" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "iVar6 = *(int *)(puVar2 + 0x4570);" (assignment_expression "iVar6 = *(int *)(puVar2 + 0x4570)" identifier = (pointer_expression "*(int *)(puVar2 + 0x4570)" * (cast_expression "(int *)(puVar2 + 0x4570)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4570)" ( (binary_expression "puVar2 + 0x4570" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(uVar7 < *(uint *)(puVar2 + 0x4618))" ( (binary_expression "uVar7 < *(uint *)(puVar2 + 0x4618)" identifier < (pointer_expression "*(uint *)(puVar2 + 0x4618)" * (cast_expression "(uint *)(puVar2 + 0x4618)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4618)" ( (binary_expression "puVar2 + 0x4618" identifier + number_literal) ))))) )) ;) })) (expression_statement "*(undefined4 *)(puVar2 + 0x456c) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + 0x456c) = 0" (pointer_expression "*(undefined4 *)(puVar2 + 0x456c)" * (cast_expression "(undefined4 *)(puVar2 + 0x456c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x456c)" ( (binary_expression "puVar2 + 0x456c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }" else (compound_statement "{\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }" { (if_statement "if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }" if (parenthesized_expression "(uVar7 == uVar4)" ( (binary_expression "uVar7 == uVar4" identifier == identifier) )) (compound_statement "{\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }" { (expression_statement "uVar4 = *(uint *)(puVar2 + 0x4584);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0x4584)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x4584)" * (cast_expression "(uint *)(puVar2 + 0x4584)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4584)" ( (binary_expression "puVar2 + 0x4584" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = uVar4 + 1;" (assignment_expression "uVar5 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(puVar2 + 0x4584) = uVar5;" (assignment_expression "*(uint *)(puVar2 + 0x4584) = uVar5" (pointer_expression "*(uint *)(puVar2 + 0x4584)" * (cast_expression "(uint *)(puVar2 + 0x4584)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4584)" ( (binary_expression "puVar2 + 0x4584" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);" (assignment_expression "*(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580)" (pointer_expression "*(uint *)(puVar2 + 0x4580)" * (cast_expression "(uint *)(puVar2 + 0x4580)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4580)" ( (binary_expression "puVar2 + 0x4580" identifier + number_literal) )))) = (binary_expression "(uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580)" (call_expression "(uint)(uVar5 < uVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 < uVar4)" ( (binary_expression "uVar5 < uVar4" identifier < identifier) ))) + (pointer_expression "*(int *)(puVar2 + 0x4580)" * (cast_expression "(int *)(puVar2 + 0x4580)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4580)" ( (binary_expression "puVar2 + 0x4580" identifier + number_literal) )))))) ;) }) (else_clause "else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }" else (compound_statement "{\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }" { (expression_statement "iVar6 = *(int *)(puVar2 + 0x4570);" (assignment_expression "iVar6 = *(int *)(puVar2 + 0x4570)" identifier = (pointer_expression "*(int *)(puVar2 + 0x4570)" * (cast_expression "(int *)(puVar2 + 0x4570)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4570)" ( (binary_expression "puVar2 + 0x4570" identifier + number_literal) ))))) ;) (if_statement "if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }" if (parenthesized_expression "(uVar7 < uVar4)" ( (binary_expression "uVar7 < uVar4" identifier < identifier) )) (compound_statement "{\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }" { (expression_statement "uVar4 = *(uint *)(puVar2 + 0x461c);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0x461c)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x461c)" * (cast_expression "(uint *)(puVar2 + 0x461c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x461c)" ( (binary_expression "puVar2 + 0x461c" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = iVar6 + 1;" (assignment_expression "uVar5 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(puVar2 + 0x4570) = uVar5;" (assignment_expression "*(uint *)(puVar2 + 0x4570) = uVar5" (pointer_expression "*(uint *)(puVar2 + 0x4570)" * (cast_expression "(uint *)(puVar2 + 0x4570)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4570)" ( (binary_expression "puVar2 + 0x4570" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;" (assignment_expression "*(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1" (pointer_expression "*(char *)(*(int *)(puVar2 + 0x4574) + iVar6)" * (cast_expression "(char *)(*(int *)(puVar2 + 0x4574) + iVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar2 + 0x4574) + iVar6)" ( (binary_expression "*(int *)(puVar2 + 0x4574) + iVar6" (pointer_expression "*(int *)(puVar2 + 0x4574)" * (cast_expression "(int *)(puVar2 + 0x4574)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4574)" ( (binary_expression "puVar2 + 0x4574" identifier + number_literal) )))) + identifier) )))) = identifier) ;) (if_statement "if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }" if (parenthesized_expression "(uVar4 <= uVar5)" ( (binary_expression "uVar4 <= uVar5" identifier <= identifier) )) (compound_statement "{\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }" { (expression_statement "(*pcVar3)();" (call_expression "(*pcVar3)()" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "uVar7 = *(uint *)(puVar2 + 0x456c);" (assignment_expression "uVar7 = *(uint *)(puVar2 + 0x456c)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x456c)" * (cast_expression "(uint *)(puVar2 + 0x456c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x456c)" ( (binary_expression "puVar2 + 0x456c" identifier + number_literal) ))))) ;) })) })) }))) (expression_statement "*(uint *)(puVar2 + 0x456c) = uVar7 + 1;" (assignment_expression "*(uint *)(puVar2 + 0x456c) = uVar7 + 1" (pointer_expression "*(uint *)(puVar2 + 0x456c)" * (cast_expression "(uint *)(puVar2 + 0x456c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x456c)" ( (binary_expression "puVar2 + 0x456c" identifier + number_literal) )))) = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) }))) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pcVar8 != param_1)" ( (binary_expression "pcVar8 != param_1" identifier != identifier) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void copy_with_block(char *buf,size_t nread)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  uint uVar4;\n  size_t i;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  char *pcVar8;\n  \n  puVar2 = PTR_DAT_00034118;\n  if (nread != 0) {\n    pcVar8 = buf + nread;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *buf;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      buf = buf + 1;\n    } while (pcVar8 != buf);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void copy_with_block(char *buf,size_t nread)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  uint uVar4;\n  size_t i;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  char *pcVar8;\n  \n  puVar2 = PTR_DAT_00034118;\n  if (nread != 0) {\n    pcVar8 = buf + nread;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *buf;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      buf = buf + 1;\n    } while (pcVar8 != buf);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "copy_with_block(char *buf,size_t nread)" identifier (parameter_list "(char *buf,size_t nread)" ( (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "size_t nread" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  uint uVar4;\n  size_t i;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  char *pcVar8;\n  \n  puVar2 = PTR_DAT_00034118;\n  if (nread != 0) {\n    pcVar8 = buf + nread;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *buf;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      buf = buf + 1;\n    } while (pcVar8 != buf);\n    return;\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "size_t i;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (expression_statement "puVar2 = PTR_DAT_00034118;" (assignment_expression "puVar2 = PTR_DAT_00034118" identifier = identifier) ;) (if_statement "if (nread != 0) {\n    pcVar8 = buf + nread;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *buf;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      buf = buf + 1;\n    } while (pcVar8 != buf);\n    return;\n  }" if (parenthesized_expression "(nread != 0)" ( (binary_expression "nread != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar8 = buf + nread;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *buf;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      buf = buf + 1;\n    } while (pcVar8 != buf);\n    return;\n  }" { (expression_statement "pcVar8 = buf + nread;" (assignment_expression "pcVar8 = buf + nread" identifier = (binary_expression "buf + nread" identifier + identifier)) ;) (expression_statement "pcVar3 = (code *)(PTR_00034124 + 0x6864);" (assignment_expression "pcVar3 = (code *)(PTR_00034124 + 0x6864)" identifier = (cast_expression "(code *)(PTR_00034124 + 0x6864)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00034124 + 0x6864)" ( (binary_expression "PTR_00034124 + 0x6864" identifier + number_literal) )))) ;) (do_statement "do {\n      cVar1 = *buf;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      buf = buf + 1;\n    } while (pcVar8 != buf);" do (compound_statement "{\n      cVar1 = *buf;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      buf = buf + 1;\n    }" { (expression_statement "cVar1 = *buf;" (assignment_expression "cVar1 = *buf" identifier = (pointer_expression "*buf" * identifier)) ;) (expression_statement "uVar7 = *(uint *)(puVar2 + 0x456c);" (assignment_expression "uVar7 = *(uint *)(puVar2 + 0x456c)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x456c)" * (cast_expression "(uint *)(puVar2 + 0x456c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x456c)" ( (binary_expression "puVar2 + 0x456c" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(uint *)(puVar2 + 0x4618);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0x4618)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x4618)" * (cast_expression "(uint *)(puVar2 + 0x4618)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4618)" ( (binary_expression "puVar2 + 0x4618" identifier + number_literal) ))))) ;) (if_statement "if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }" if (parenthesized_expression "(puVar2[0x4052] == cVar1)" ( (binary_expression "puVar2[0x4052] == cVar1" (subscript_expression "puVar2[0x4052]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }" { (expression_statement "iVar6 = *(int *)(puVar2 + 0x4570);" (assignment_expression "iVar6 = *(int *)(puVar2 + 0x4570)" identifier = (pointer_expression "*(int *)(puVar2 + 0x4570)" * (cast_expression "(int *)(puVar2 + 0x4570)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4570)" ( (binary_expression "puVar2 + 0x4570" identifier + number_literal) ))))) ;) (if_statement "if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }" if (parenthesized_expression "(uVar7 < uVar4)" ( (binary_expression "uVar7 < uVar4" identifier < identifier) )) (compound_statement "{\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }" { (do_statement "do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));" do (compound_statement "{\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          }" { (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = *(uint *)(puVar2 + 0x461c);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0x461c)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x461c)" * (cast_expression "(uint *)(puVar2 + 0x461c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x461c)" ( (binary_expression "puVar2 + 0x461c" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(puVar2 + 0x4570) = iVar6 + 1U;" (assignment_expression "*(uint *)(puVar2 + 0x4570) = iVar6 + 1U" (pointer_expression "*(uint *)(puVar2 + 0x4570)" * (cast_expression "(uint *)(puVar2 + 0x4570)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4570)" ( (binary_expression "puVar2 + 0x4570" identifier + number_literal) )))) = (binary_expression "iVar6 + 1U" identifier + number_literal)) ;) (expression_statement "*(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];" (assignment_expression "*(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051]" (pointer_expression "*(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6)" * (cast_expression "(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar2 + 0x4574) + iVar6)" ( (binary_expression "*(int *)(puVar2 + 0x4574) + iVar6" (pointer_expression "*(int *)(puVar2 + 0x4574)" * (cast_expression "(int *)(puVar2 + 0x4574)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4574)" ( (binary_expression "puVar2 + 0x4574" identifier + number_literal) )))) + identifier) )))) = (subscript_expression "puVar2[0x4051]" identifier [ number_literal ])) ;) (if_statement "if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }" if (parenthesized_expression "(uVar4 <= iVar6 + 1U)" ( (binary_expression "uVar4 <= iVar6 + 1U" identifier <= (binary_expression "iVar6 + 1U" identifier + number_literal)) )) (compound_statement "{\n              (*pcVar3)();\n            }" { (expression_statement "(*pcVar3)();" (call_expression "(*pcVar3)()" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "iVar6 = *(int *)(puVar2 + 0x4570);" (assignment_expression "iVar6 = *(int *)(puVar2 + 0x4570)" identifier = (pointer_expression "*(int *)(puVar2 + 0x4570)" * (cast_expression "(int *)(puVar2 + 0x4570)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4570)" ( (binary_expression "puVar2 + 0x4570" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(uVar7 < *(uint *)(puVar2 + 0x4618))" ( (binary_expression "uVar7 < *(uint *)(puVar2 + 0x4618)" identifier < (pointer_expression "*(uint *)(puVar2 + 0x4618)" * (cast_expression "(uint *)(puVar2 + 0x4618)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4618)" ( (binary_expression "puVar2 + 0x4618" identifier + number_literal) ))))) )) ;) })) (expression_statement "*(undefined4 *)(puVar2 + 0x456c) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + 0x456c) = 0" (pointer_expression "*(undefined4 *)(puVar2 + 0x456c)" * (cast_expression "(undefined4 *)(puVar2 + 0x456c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x456c)" ( (binary_expression "puVar2 + 0x456c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }" else (compound_statement "{\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }" { (if_statement "if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }" if (parenthesized_expression "(uVar7 == uVar4)" ( (binary_expression "uVar7 == uVar4" identifier == identifier) )) (compound_statement "{\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }" { (expression_statement "uVar4 = *(uint *)(puVar2 + 0x4584);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0x4584)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x4584)" * (cast_expression "(uint *)(puVar2 + 0x4584)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4584)" ( (binary_expression "puVar2 + 0x4584" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = uVar4 + 1;" (assignment_expression "uVar5 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(puVar2 + 0x4584) = uVar5;" (assignment_expression "*(uint *)(puVar2 + 0x4584) = uVar5" (pointer_expression "*(uint *)(puVar2 + 0x4584)" * (cast_expression "(uint *)(puVar2 + 0x4584)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4584)" ( (binary_expression "puVar2 + 0x4584" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);" (assignment_expression "*(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580)" (pointer_expression "*(uint *)(puVar2 + 0x4580)" * (cast_expression "(uint *)(puVar2 + 0x4580)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4580)" ( (binary_expression "puVar2 + 0x4580" identifier + number_literal) )))) = (binary_expression "(uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580)" (call_expression "(uint)(uVar5 < uVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 < uVar4)" ( (binary_expression "uVar5 < uVar4" identifier < identifier) ))) + (pointer_expression "*(int *)(puVar2 + 0x4580)" * (cast_expression "(int *)(puVar2 + 0x4580)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4580)" ( (binary_expression "puVar2 + 0x4580" identifier + number_literal) )))))) ;) }) (else_clause "else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }" else (compound_statement "{\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }" { (expression_statement "iVar6 = *(int *)(puVar2 + 0x4570);" (assignment_expression "iVar6 = *(int *)(puVar2 + 0x4570)" identifier = (pointer_expression "*(int *)(puVar2 + 0x4570)" * (cast_expression "(int *)(puVar2 + 0x4570)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4570)" ( (binary_expression "puVar2 + 0x4570" identifier + number_literal) ))))) ;) (if_statement "if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }" if (parenthesized_expression "(uVar7 < uVar4)" ( (binary_expression "uVar7 < uVar4" identifier < identifier) )) (compound_statement "{\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }" { (expression_statement "uVar4 = *(uint *)(puVar2 + 0x461c);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0x461c)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x461c)" * (cast_expression "(uint *)(puVar2 + 0x461c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x461c)" ( (binary_expression "puVar2 + 0x461c" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = iVar6 + 1;" (assignment_expression "uVar5 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(puVar2 + 0x4570) = uVar5;" (assignment_expression "*(uint *)(puVar2 + 0x4570) = uVar5" (pointer_expression "*(uint *)(puVar2 + 0x4570)" * (cast_expression "(uint *)(puVar2 + 0x4570)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4570)" ( (binary_expression "puVar2 + 0x4570" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;" (assignment_expression "*(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1" (pointer_expression "*(char *)(*(int *)(puVar2 + 0x4574) + iVar6)" * (cast_expression "(char *)(*(int *)(puVar2 + 0x4574) + iVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar2 + 0x4574) + iVar6)" ( (binary_expression "*(int *)(puVar2 + 0x4574) + iVar6" (pointer_expression "*(int *)(puVar2 + 0x4574)" * (cast_expression "(int *)(puVar2 + 0x4574)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4574)" ( (binary_expression "puVar2 + 0x4574" identifier + number_literal) )))) + identifier) )))) = identifier) ;) (if_statement "if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }" if (parenthesized_expression "(uVar4 <= uVar5)" ( (binary_expression "uVar4 <= uVar5" identifier <= identifier) )) (compound_statement "{\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }" { (expression_statement "(*pcVar3)();" (call_expression "(*pcVar3)()" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "uVar7 = *(uint *)(puVar2 + 0x456c);" (assignment_expression "uVar7 = *(uint *)(puVar2 + 0x456c)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x456c)" * (cast_expression "(uint *)(puVar2 + 0x456c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x456c)" ( (binary_expression "puVar2 + 0x456c" identifier + number_literal) ))))) ;) })) })) }))) (expression_statement "*(uint *)(puVar2 + 0x456c) = uVar7 + 1;" (assignment_expression "*(uint *)(puVar2 + 0x456c) = uVar7 + 1" (pointer_expression "*(uint *)(puVar2 + 0x456c)" * (cast_expression "(uint *)(puVar2 + 0x456c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x456c)" ( (binary_expression "puVar2 + 0x456c" identifier + number_literal) )))) = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) }))) (expression_statement "buf = buf + 1;" (assignment_expression "buf = buf + 1" identifier = (binary_expression "buf + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pcVar8 != buf)" ( (binary_expression "pcVar8 != buf" identifier != identifier) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000169b4(char *param_1,int param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  char *pcVar8;\n  \n  puVar2 = PTR_DAT_00034118;\n  if (param_2 != 0) {\n    pcVar8 = param_1 + param_2;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    } while (pcVar8 != param_1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_000169b4(char *param_1,int param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  char *pcVar8;\n  \n  puVar2 = PTR_DAT_00034118;\n  if (param_2 != 0) {\n    pcVar8 = param_1 + param_2;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    } while (pcVar8 != param_1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000169b4(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  char *pcVar8;\n  \n  puVar2 = PTR_DAT_00034118;\n  if (param_2 != 0) {\n    pcVar8 = param_1 + param_2;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    } while (pcVar8 != param_1);\n    return;\n  }\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (expression_statement "puVar2 = PTR_DAT_00034118;" (assignment_expression "puVar2 = PTR_DAT_00034118" identifier = identifier) ;) (if_statement "if (param_2 != 0) {\n    pcVar8 = param_1 + param_2;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    } while (pcVar8 != param_1);\n    return;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar8 = param_1 + param_2;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    } while (pcVar8 != param_1);\n    return;\n  }" { (expression_statement "pcVar8 = param_1 + param_2;" (assignment_expression "pcVar8 = param_1 + param_2" identifier = (binary_expression "param_1 + param_2" identifier + identifier)) ;) (expression_statement "pcVar3 = (code *)(PTR_00034124 + 0x6864);" (assignment_expression "pcVar3 = (code *)(PTR_00034124 + 0x6864)" identifier = (cast_expression "(code *)(PTR_00034124 + 0x6864)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00034124 + 0x6864)" ( (binary_expression "PTR_00034124 + 0x6864" identifier + number_literal) )))) ;) (do_statement "do {\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    } while (pcVar8 != param_1);" do (compound_statement "{\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    }" { (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar7 = *(uint *)(puVar2 + 0x456c);" (assignment_expression "uVar7 = *(uint *)(puVar2 + 0x456c)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x456c)" * (cast_expression "(uint *)(puVar2 + 0x456c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x456c)" ( (binary_expression "puVar2 + 0x456c" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(uint *)(puVar2 + 0x4618);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0x4618)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x4618)" * (cast_expression "(uint *)(puVar2 + 0x4618)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4618)" ( (binary_expression "puVar2 + 0x4618" identifier + number_literal) ))))) ;) (if_statement "if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }" if (parenthesized_expression "(puVar2[0x4052] == cVar1)" ( (binary_expression "puVar2[0x4052] == cVar1" (subscript_expression "puVar2[0x4052]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }" { (expression_statement "iVar6 = *(int *)(puVar2 + 0x4570);" (assignment_expression "iVar6 = *(int *)(puVar2 + 0x4570)" identifier = (pointer_expression "*(int *)(puVar2 + 0x4570)" * (cast_expression "(int *)(puVar2 + 0x4570)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4570)" ( (binary_expression "puVar2 + 0x4570" identifier + number_literal) ))))) ;) (if_statement "if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }" if (parenthesized_expression "(uVar7 < uVar4)" ( (binary_expression "uVar7 < uVar4" identifier < identifier) )) (compound_statement "{\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }" { (do_statement "do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));" do (compound_statement "{\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          }" { (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = *(uint *)(puVar2 + 0x461c);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0x461c)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x461c)" * (cast_expression "(uint *)(puVar2 + 0x461c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x461c)" ( (binary_expression "puVar2 + 0x461c" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(puVar2 + 0x4570) = iVar6 + 1U;" (assignment_expression "*(uint *)(puVar2 + 0x4570) = iVar6 + 1U" (pointer_expression "*(uint *)(puVar2 + 0x4570)" * (cast_expression "(uint *)(puVar2 + 0x4570)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4570)" ( (binary_expression "puVar2 + 0x4570" identifier + number_literal) )))) = (binary_expression "iVar6 + 1U" identifier + number_literal)) ;) (expression_statement "*(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];" (assignment_expression "*(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051]" (pointer_expression "*(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6)" * (cast_expression "(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar2 + 0x4574) + iVar6)" ( (binary_expression "*(int *)(puVar2 + 0x4574) + iVar6" (pointer_expression "*(int *)(puVar2 + 0x4574)" * (cast_expression "(int *)(puVar2 + 0x4574)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4574)" ( (binary_expression "puVar2 + 0x4574" identifier + number_literal) )))) + identifier) )))) = (subscript_expression "puVar2[0x4051]" identifier [ number_literal ])) ;) (if_statement "if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }" if (parenthesized_expression "(uVar4 <= iVar6 + 1U)" ( (binary_expression "uVar4 <= iVar6 + 1U" identifier <= (binary_expression "iVar6 + 1U" identifier + number_literal)) )) (compound_statement "{\n              (*pcVar3)();\n            }" { (expression_statement "(*pcVar3)();" (call_expression "(*pcVar3)()" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "iVar6 = *(int *)(puVar2 + 0x4570);" (assignment_expression "iVar6 = *(int *)(puVar2 + 0x4570)" identifier = (pointer_expression "*(int *)(puVar2 + 0x4570)" * (cast_expression "(int *)(puVar2 + 0x4570)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4570)" ( (binary_expression "puVar2 + 0x4570" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(uVar7 < *(uint *)(puVar2 + 0x4618))" ( (binary_expression "uVar7 < *(uint *)(puVar2 + 0x4618)" identifier < (pointer_expression "*(uint *)(puVar2 + 0x4618)" * (cast_expression "(uint *)(puVar2 + 0x4618)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4618)" ( (binary_expression "puVar2 + 0x4618" identifier + number_literal) ))))) )) ;) })) (expression_statement "*(undefined4 *)(puVar2 + 0x456c) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + 0x456c) = 0" (pointer_expression "*(undefined4 *)(puVar2 + 0x456c)" * (cast_expression "(undefined4 *)(puVar2 + 0x456c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x456c)" ( (binary_expression "puVar2 + 0x456c" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }" else (compound_statement "{\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }" { (if_statement "if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }" if (parenthesized_expression "(uVar7 == uVar4)" ( (binary_expression "uVar7 == uVar4" identifier == identifier) )) (compound_statement "{\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }" { (expression_statement "uVar4 = *(uint *)(puVar2 + 0x4584);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0x4584)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x4584)" * (cast_expression "(uint *)(puVar2 + 0x4584)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4584)" ( (binary_expression "puVar2 + 0x4584" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = uVar4 + 1;" (assignment_expression "uVar5 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(puVar2 + 0x4584) = uVar5;" (assignment_expression "*(uint *)(puVar2 + 0x4584) = uVar5" (pointer_expression "*(uint *)(puVar2 + 0x4584)" * (cast_expression "(uint *)(puVar2 + 0x4584)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4584)" ( (binary_expression "puVar2 + 0x4584" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);" (assignment_expression "*(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580)" (pointer_expression "*(uint *)(puVar2 + 0x4580)" * (cast_expression "(uint *)(puVar2 + 0x4580)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4580)" ( (binary_expression "puVar2 + 0x4580" identifier + number_literal) )))) = (binary_expression "(uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580)" (call_expression "(uint)(uVar5 < uVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 < uVar4)" ( (binary_expression "uVar5 < uVar4" identifier < identifier) ))) + (pointer_expression "*(int *)(puVar2 + 0x4580)" * (cast_expression "(int *)(puVar2 + 0x4580)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4580)" ( (binary_expression "puVar2 + 0x4580" identifier + number_literal) )))))) ;) }) (else_clause "else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }" else (compound_statement "{\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }" { (expression_statement "iVar6 = *(int *)(puVar2 + 0x4570);" (assignment_expression "iVar6 = *(int *)(puVar2 + 0x4570)" identifier = (pointer_expression "*(int *)(puVar2 + 0x4570)" * (cast_expression "(int *)(puVar2 + 0x4570)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4570)" ( (binary_expression "puVar2 + 0x4570" identifier + number_literal) ))))) ;) (if_statement "if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }" if (parenthesized_expression "(uVar7 < uVar4)" ( (binary_expression "uVar7 < uVar4" identifier < identifier) )) (compound_statement "{\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }" { (expression_statement "uVar4 = *(uint *)(puVar2 + 0x461c);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0x461c)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x461c)" * (cast_expression "(uint *)(puVar2 + 0x461c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x461c)" ( (binary_expression "puVar2 + 0x461c" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = iVar6 + 1;" (assignment_expression "uVar5 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(puVar2 + 0x4570) = uVar5;" (assignment_expression "*(uint *)(puVar2 + 0x4570) = uVar5" (pointer_expression "*(uint *)(puVar2 + 0x4570)" * (cast_expression "(uint *)(puVar2 + 0x4570)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4570)" ( (binary_expression "puVar2 + 0x4570" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;" (assignment_expression "*(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1" (pointer_expression "*(char *)(*(int *)(puVar2 + 0x4574) + iVar6)" * (cast_expression "(char *)(*(int *)(puVar2 + 0x4574) + iVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar2 + 0x4574) + iVar6)" ( (binary_expression "*(int *)(puVar2 + 0x4574) + iVar6" (pointer_expression "*(int *)(puVar2 + 0x4574)" * (cast_expression "(int *)(puVar2 + 0x4574)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x4574)" ( (binary_expression "puVar2 + 0x4574" identifier + number_literal) )))) + identifier) )))) = identifier) ;) (if_statement "if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }" if (parenthesized_expression "(uVar4 <= uVar5)" ( (binary_expression "uVar4 <= uVar5" identifier <= identifier) )) (compound_statement "{\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }" { (expression_statement "(*pcVar3)();" (call_expression "(*pcVar3)()" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "uVar7 = *(uint *)(puVar2 + 0x456c);" (assignment_expression "uVar7 = *(uint *)(puVar2 + 0x456c)" identifier = (pointer_expression "*(uint *)(puVar2 + 0x456c)" * (cast_expression "(uint *)(puVar2 + 0x456c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x456c)" ( (binary_expression "puVar2 + 0x456c" identifier + number_literal) ))))) ;) })) })) }))) (expression_statement "*(uint *)(puVar2 + 0x456c) = uVar7 + 1;" (assignment_expression "*(uint *)(puVar2 + 0x456c) = uVar7 + 1" (pointer_expression "*(uint *)(puVar2 + 0x456c)" * (cast_expression "(uint *)(puVar2 + 0x456c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x456c)" ( (binary_expression "puVar2 + 0x456c" identifier + number_literal) )))) = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) }))) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pcVar8 != param_1)" ( (binary_expression "pcVar8 != param_1" identifier != identifier) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (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 + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_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) )))) = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (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 IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (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 IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (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) )))) = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_000169b4(char *param_1,int param_2)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  char *pcVar8;\n  \n  puVar2 = PTR_DAT_00034118;\n  if (param_2 != 0) {\n    pcVar8 = param_1 + param_2;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    } while (pcVar8 != param_1);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000169b4(char *param_1,int param_2)" (identifier "FUN_000169b4") (parameter_list "(char *param_1,int param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  uint uVar7;\n  char *pcVar8;\n  \n  puVar2 = PTR_DAT_00034118;\n  if (param_2 != 0) {\n    pcVar8 = param_1 + param_2;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    } while (pcVar8 != param_1);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "code *pcVar3;" (type_identifier "code") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (expression_statement "puVar2 = PTR_DAT_00034118;" (assignment_expression "puVar2 = PTR_DAT_00034118" (identifier "puVar2") (= "=") (identifier "PTR_DAT_00034118")) (; ";")) (if_statement "if (param_2 != 0) {\n    pcVar8 = param_1 + param_2;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    } while (pcVar8 != param_1);\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar8 = param_1 + param_2;\n    pcVar3 = (code *)(PTR_00034124 + 0x6864);\n    do {\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    } while (pcVar8 != param_1);\n    return;\n  }" ({ "{") (expression_statement "pcVar8 = param_1 + param_2;" (assignment_expression "pcVar8 = param_1 + param_2" (identifier "pcVar8") (= "=") (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2"))) (; ";")) (expression_statement "pcVar3 = (code *)(PTR_00034124 + 0x6864);" (assignment_expression "pcVar3 = (code *)(PTR_00034124 + 0x6864)" (identifier "pcVar3") (= "=") (cast_expression "(code *)(PTR_00034124 + 0x6864)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_00034124 + 0x6864)" (( "(") (binary_expression "PTR_00034124 + 0x6864" (identifier "PTR_00034124") (+ "+") (number_literal "0x6864")) () ")")))) (; ";")) (do_statement "do {\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    } while (pcVar8 != param_1);" (do "do") (compound_statement "{\n      cVar1 = *param_1;\n      uVar7 = *(uint *)(puVar2 + 0x456c);\n      uVar4 = *(uint *)(puVar2 + 0x4618);\n      if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }\n      param_1 = param_1 + 1;\n    }" ({ "{") (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar7 = *(uint *)(puVar2 + 0x456c);" (assignment_expression "uVar7 = *(uint *)(puVar2 + 0x456c)" (identifier "uVar7") (= "=") (pointer_expression "*(uint *)(puVar2 + 0x456c)" (* "*") (cast_expression "(uint *)(puVar2 + 0x456c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x456c)" (( "(") (binary_expression "puVar2 + 0x456c" (identifier "puVar2") (+ "+") (number_literal "0x456c")) () ")"))))) (; ";")) (expression_statement "uVar4 = *(uint *)(puVar2 + 0x4618);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0x4618)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(puVar2 + 0x4618)" (* "*") (cast_expression "(uint *)(puVar2 + 0x4618)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x4618)" (( "(") (binary_expression "puVar2 + 0x4618" (identifier "puVar2") (+ "+") (number_literal "0x4618")) () ")"))))) (; ";")) (if_statement "if (puVar2[0x4052] == cVar1) {\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }\n      else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }" (if "if") (parenthesized_expression "(puVar2[0x4052] == cVar1)" (( "(") (binary_expression "puVar2[0x4052] == cVar1" (subscript_expression "puVar2[0x4052]" (identifier "puVar2") ([ "[") (number_literal "0x4052") (] "]")) (== "==") (identifier "cVar1")) () ")")) (compound_statement "{\n        iVar6 = *(int *)(puVar2 + 0x4570);\n        if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }\n        *(undefined4 *)(puVar2 + 0x456c) = 0;\n      }" ({ "{") (expression_statement "iVar6 = *(int *)(puVar2 + 0x4570);" (assignment_expression "iVar6 = *(int *)(puVar2 + 0x4570)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(puVar2 + 0x4570)" (* "*") (cast_expression "(int *)(puVar2 + 0x4570)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x4570)" (( "(") (binary_expression "puVar2 + 0x4570" (identifier "puVar2") (+ "+") (number_literal "0x4570")) () ")"))))) (; ";")) (if_statement "if (uVar7 < uVar4) {\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }" (if "if") (parenthesized_expression "(uVar7 < uVar4)" (( "(") (binary_expression "uVar7 < uVar4" (identifier "uVar7") (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n          do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));\n        }" ({ "{") (do_statement "do {\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          } while (uVar7 < *(uint *)(puVar2 + 0x4618));" (do "do") (compound_statement "{\n            uVar7 = uVar7 + 1;\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;\n            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];\n            if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }\n            iVar6 = *(int *)(puVar2 + 0x4570);\n          }" ({ "{") (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" (identifier "uVar7") (= "=") (binary_expression "uVar7 + 1" (identifier "uVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = *(uint *)(puVar2 + 0x461c);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0x461c)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(puVar2 + 0x461c)" (* "*") (cast_expression "(uint *)(puVar2 + 0x461c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x461c)" (( "(") (binary_expression "puVar2 + 0x461c" (identifier "puVar2") (+ "+") (number_literal "0x461c")) () ")"))))) (; ";")) (expression_statement "*(uint *)(puVar2 + 0x4570) = iVar6 + 1U;" (assignment_expression "*(uint *)(puVar2 + 0x4570) = iVar6 + 1U" (pointer_expression "*(uint *)(puVar2 + 0x4570)" (* "*") (cast_expression "(uint *)(puVar2 + 0x4570)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x4570)" (( "(") (binary_expression "puVar2 + 0x4570" (identifier "puVar2") (+ "+") (number_literal "0x4570")) () ")")))) (= "=") (binary_expression "iVar6 + 1U" (identifier "iVar6") (+ "+") (number_literal "1U"))) (; ";")) (expression_statement "*(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];" (assignment_expression "*(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051]" (pointer_expression "*(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6)" (* "*") (cast_expression "(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar2 + 0x4574) + iVar6)" (( "(") (binary_expression "*(int *)(puVar2 + 0x4574) + iVar6" (pointer_expression "*(int *)(puVar2 + 0x4574)" (* "*") (cast_expression "(int *)(puVar2 + 0x4574)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x4574)" (( "(") (binary_expression "puVar2 + 0x4574" (identifier "puVar2") (+ "+") (number_literal "0x4574")) () ")")))) (+ "+") (identifier "iVar6")) () ")")))) (= "=") (subscript_expression "puVar2[0x4051]" (identifier "puVar2") ([ "[") (number_literal "0x4051") (] "]"))) (; ";")) (if_statement "if (uVar4 <= iVar6 + 1U) {\n              (*pcVar3)();\n            }" (if "if") (parenthesized_expression "(uVar4 <= iVar6 + 1U)" (( "(") (binary_expression "uVar4 <= iVar6 + 1U" (identifier "uVar4") (<= "<=") (binary_expression "iVar6 + 1U" (identifier "iVar6") (+ "+") (number_literal "1U"))) () ")")) (compound_statement "{\n              (*pcVar3)();\n            }" ({ "{") (expression_statement "(*pcVar3)();" (call_expression "(*pcVar3)()" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar6 = *(int *)(puVar2 + 0x4570);" (assignment_expression "iVar6 = *(int *)(puVar2 + 0x4570)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(puVar2 + 0x4570)" (* "*") (cast_expression "(int *)(puVar2 + 0x4570)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x4570)" (( "(") (binary_expression "puVar2 + 0x4570" (identifier "puVar2") (+ "+") (number_literal "0x4570")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar7 < *(uint *)(puVar2 + 0x4618))" (( "(") (binary_expression "uVar7 < *(uint *)(puVar2 + 0x4618)" (identifier "uVar7") (< "<") (pointer_expression "*(uint *)(puVar2 + 0x4618)" (* "*") (cast_expression "(uint *)(puVar2 + 0x4618)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x4618)" (( "(") (binary_expression "puVar2 + 0x4618" (identifier "puVar2") (+ "+") (number_literal "0x4618")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(puVar2 + 0x456c) = 0;" (assignment_expression "*(undefined4 *)(puVar2 + 0x456c) = 0" (pointer_expression "*(undefined4 *)(puVar2 + 0x456c)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 0x456c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x456c)" (( "(") (binary_expression "puVar2 + 0x456c" (identifier "puVar2") (+ "+") (number_literal "0x456c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }" (else "else") (compound_statement "{\n        if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }\n        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;\n      }" ({ "{") (if_statement "if (uVar7 == uVar4) {\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }\n        else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }" (if "if") (parenthesized_expression "(uVar7 == uVar4)" (( "(") (binary_expression "uVar7 == uVar4" (identifier "uVar7") (== "==") (identifier "uVar4")) () ")")) (compound_statement "{\n          uVar4 = *(uint *)(puVar2 + 0x4584);\n          uVar5 = uVar4 + 1;\n          *(uint *)(puVar2 + 0x4584) = uVar5;\n          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);\n        }" ({ "{") (expression_statement "uVar4 = *(uint *)(puVar2 + 0x4584);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0x4584)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(puVar2 + 0x4584)" (* "*") (cast_expression "(uint *)(puVar2 + 0x4584)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x4584)" (( "(") (binary_expression "puVar2 + 0x4584" (identifier "puVar2") (+ "+") (number_literal "0x4584")) () ")"))))) (; ";")) (expression_statement "uVar5 = uVar4 + 1;" (assignment_expression "uVar5 = uVar4 + 1" (identifier "uVar5") (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(puVar2 + 0x4584) = uVar5;" (assignment_expression "*(uint *)(puVar2 + 0x4584) = uVar5" (pointer_expression "*(uint *)(puVar2 + 0x4584)" (* "*") (cast_expression "(uint *)(puVar2 + 0x4584)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x4584)" (( "(") (binary_expression "puVar2 + 0x4584" (identifier "puVar2") (+ "+") (number_literal "0x4584")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "*(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);" (assignment_expression "*(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580)" (pointer_expression "*(uint *)(puVar2 + 0x4580)" (* "*") (cast_expression "(uint *)(puVar2 + 0x4580)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x4580)" (( "(") (binary_expression "puVar2 + 0x4580" (identifier "puVar2") (+ "+") (number_literal "0x4580")) () ")")))) (= "=") (binary_expression "(uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580)" (call_expression "(uint)(uVar5 < uVar4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar5 < uVar4)" (( "(") (binary_expression "uVar5 < uVar4" (identifier "uVar5") (< "<") (identifier "uVar4")) () ")"))) (+ "+") (pointer_expression "*(int *)(puVar2 + 0x4580)" (* "*") (cast_expression "(int *)(puVar2 + 0x4580)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x4580)" (( "(") (binary_expression "puVar2 + 0x4580" (identifier "puVar2") (+ "+") (number_literal "0x4580")) () ")")))))) (; ";")) (} "}")) (else_clause "else {\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }" (else "else") (compound_statement "{\n          iVar6 = *(int *)(puVar2 + 0x4570);\n          if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }\n        }" ({ "{") (expression_statement "iVar6 = *(int *)(puVar2 + 0x4570);" (assignment_expression "iVar6 = *(int *)(puVar2 + 0x4570)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(puVar2 + 0x4570)" (* "*") (cast_expression "(int *)(puVar2 + 0x4570)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x4570)" (( "(") (binary_expression "puVar2 + 0x4570" (identifier "puVar2") (+ "+") (number_literal "0x4570")) () ")"))))) (; ";")) (if_statement "if (uVar7 < uVar4) {\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }" (if "if") (parenthesized_expression "(uVar7 < uVar4)" (( "(") (binary_expression "uVar7 < uVar4" (identifier "uVar7") (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n            uVar4 = *(uint *)(puVar2 + 0x461c);\n            uVar5 = iVar6 + 1;\n            *(uint *)(puVar2 + 0x4570) = uVar5;\n            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;\n            if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }\n          }" ({ "{") (expression_statement "uVar4 = *(uint *)(puVar2 + 0x461c);" (assignment_expression "uVar4 = *(uint *)(puVar2 + 0x461c)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(puVar2 + 0x461c)" (* "*") (cast_expression "(uint *)(puVar2 + 0x461c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x461c)" (( "(") (binary_expression "puVar2 + 0x461c" (identifier "puVar2") (+ "+") (number_literal "0x461c")) () ")"))))) (; ";")) (expression_statement "uVar5 = iVar6 + 1;" (assignment_expression "uVar5 = iVar6 + 1" (identifier "uVar5") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(puVar2 + 0x4570) = uVar5;" (assignment_expression "*(uint *)(puVar2 + 0x4570) = uVar5" (pointer_expression "*(uint *)(puVar2 + 0x4570)" (* "*") (cast_expression "(uint *)(puVar2 + 0x4570)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x4570)" (( "(") (binary_expression "puVar2 + 0x4570" (identifier "puVar2") (+ "+") (number_literal "0x4570")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "*(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;" (assignment_expression "*(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1" (pointer_expression "*(char *)(*(int *)(puVar2 + 0x4574) + iVar6)" (* "*") (cast_expression "(char *)(*(int *)(puVar2 + 0x4574) + iVar6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar2 + 0x4574) + iVar6)" (( "(") (binary_expression "*(int *)(puVar2 + 0x4574) + iVar6" (pointer_expression "*(int *)(puVar2 + 0x4574)" (* "*") (cast_expression "(int *)(puVar2 + 0x4574)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x4574)" (( "(") (binary_expression "puVar2 + 0x4574" (identifier "puVar2") (+ "+") (number_literal "0x4574")) () ")")))) (+ "+") (identifier "iVar6")) () ")")))) (= "=") (identifier "cVar1")) (; ";")) (if_statement "if (uVar4 <= uVar5) {\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }" (if "if") (parenthesized_expression "(uVar4 <= uVar5)" (( "(") (binary_expression "uVar4 <= uVar5" (identifier "uVar4") (<= "<=") (identifier "uVar5")) () ")")) (compound_statement "{\n              (*pcVar3)();\n              uVar7 = *(uint *)(puVar2 + 0x456c);\n            }" ({ "{") (expression_statement "(*pcVar3)();" (call_expression "(*pcVar3)()" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar7 = *(uint *)(puVar2 + 0x456c);" (assignment_expression "uVar7 = *(uint *)(puVar2 + 0x456c)" (identifier "uVar7") (= "=") (pointer_expression "*(uint *)(puVar2 + 0x456c)" (* "*") (cast_expression "(uint *)(puVar2 + 0x456c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x456c)" (( "(") (binary_expression "puVar2 + 0x456c" (identifier "puVar2") (+ "+") (number_literal "0x456c")) () ")"))))) (; ";")) (} "}"))) (} "}"))) (} "}")))) (expression_statement "*(uint *)(puVar2 + 0x456c) = uVar7 + 1;" (assignment_expression "*(uint *)(puVar2 + 0x456c) = uVar7 + 1" (pointer_expression "*(uint *)(puVar2 + 0x456c)" (* "*") (cast_expression "(uint *)(puVar2 + 0x456c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x456c)" (( "(") (binary_expression "puVar2 + 0x456c" (identifier "puVar2") (+ "+") (number_literal "0x456c")) () ")")))) (= "=") (binary_expression "uVar7 + 1" (identifier "uVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar8 != param_1)" (( "(") (binary_expression "pcVar8 != param_1" (identifier "pcVar8") (!= "!=") (identifier "param_1")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *var_2,size_t var_1)

{
  char var_5;
  type_1 *var_4;
  type_2 *pcVar3;
  type_3 var_7;
  size_t i;
  type_3 var_9;
  int var_8;
  type_3 var_6;
  char *var_10;
  
  var_4 = PTR_DAT_00034118;
  if (var_1 != 0) {
    var_10 = var_2 + var_1;
    pcVar3 = (type_2 *)(var_3 + 0x6864);
    do {
      var_5 = *var_2;
      var_6 = *(type_3 *)(var_4 + 0x456c);
      var_7 = *(type_3 *)(var_4 + 0x4618);
      if (var_4[0x4052] == var_5) {
        var_8 = *(int *)(var_4 + 0x4570);
        if (var_6 < var_7) {
          do {
            var_6 = var_6 + 1;
            var_7 = *(type_3 *)(var_4 + 0x461c);
            *(type_3 *)(var_4 + 0x4570) = var_8 + 1U;
            *(type_1 *)(*(int *)(var_4 + 0x4574) + var_8) = var_4[0x4051];
            if (var_7 <= var_8 + 1U) {
              (*pcVar3)();
            }
            var_8 = *(int *)(var_4 + 0x4570);
          } while (var_6 < *(type_3 *)(var_4 + 0x4618));
        }
        *(type_4 *)(var_4 + 0x456c) = 0;
      }
      else {
        if (var_6 == var_7) {
          var_7 = *(type_3 *)(var_4 + 0x4584);
          var_9 = var_7 + 1;
          *(type_3 *)(var_4 + 0x4584) = var_9;
          *(type_3 *)(var_4 + 0x4580) = (type_3)(var_9 < var_7) + *(int *)(var_4 + 0x4580);
        }
        else {
          var_8 = *(int *)(var_4 + 0x4570);
          if (var_6 < var_7) {
            var_7 = *(type_3 *)(var_4 + 0x461c);
            var_9 = var_8 + 1;
            *(type_3 *)(var_4 + 0x4570) = var_9;
            *(char *)(*(int *)(var_4 + 0x4574) + var_8) = var_5;
            if (var_7 <= var_9) {
              (*pcVar3)();
              var_6 = *(type_3 *)(var_4 + 0x456c);
            }
          }
        }
        *(type_3 *)(var_4 + 0x456c) = var_6 + 1;
      }
      var_2 = var_2 + 1;
    } while (var_10 != var_2);
    return;
  }
  return;
}


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

void MASKED(char *param_1,int param_2)

{
  char cVar1;
  undefined *puVar2;
  code *pcVar3;
  uint uVar4;
  uint uVar5;
  int iVar6;
  uint uVar7;
  char *pcVar8;
  
  puVar2 = PTR_DAT_00034118;
  if (param_2 != 0) {
    pcVar8 = param_1 + param_2;
    pcVar3 = (code *)(PTR_00034124 + 0x6864);
    do {
      cVar1 = *param_1;
      uVar7 = *(uint *)(puVar2 + 0x456c);
      uVar4 = *(uint *)(puVar2 + 0x4618);
      if (puVar2[0x4052] == cVar1) {
        iVar6 = *(int *)(puVar2 + 0x4570);
        if (uVar7 < uVar4) {
          do {
            uVar7 = uVar7 + 1;
            uVar4 = *(uint *)(puVar2 + 0x461c);
            *(uint *)(puVar2 + 0x4570) = iVar6 + 1U;
            *(undefined *)(*(int *)(puVar2 + 0x4574) + iVar6) = puVar2[0x4051];
            if (uVar4 <= iVar6 + 1U) {
              (*pcVar3)();
            }
            iVar6 = *(int *)(puVar2 + 0x4570);
          } while (uVar7 < *(uint *)(puVar2 + 0x4618));
        }
        *(undefined4 *)(puVar2 + 0x456c) = 0;
      }
      else {
        if (uVar7 == uVar4) {
          uVar4 = *(uint *)(puVar2 + 0x4584);
          uVar5 = uVar4 + 1;
          *(uint *)(puVar2 + 0x4584) = uVar5;
          *(uint *)(puVar2 + 0x4580) = (uint)(uVar5 < uVar4) + *(int *)(puVar2 + 0x4580);
        }
        else {
          iVar6 = *(int *)(puVar2 + 0x4570);
          if (uVar7 < uVar4) {
            uVar4 = *(uint *)(puVar2 + 0x461c);
            uVar5 = iVar6 + 1;
            *(uint *)(puVar2 + 0x4570) = uVar5;
            *(char *)(*(int *)(puVar2 + 0x4574) + iVar6) = cVar1;
            if (uVar4 <= uVar5) {
              (*pcVar3)();
              uVar7 = *(uint *)(puVar2 + 0x456c);
            }
          }
        }
        *(uint *)(puVar2 + 0x456c) = uVar7 + 1;
      }
      param_1 = param_1 + 1;
    } while (pcVar8 != param_1);
    return;
  }
  return;
}

