
void factor_insert_multiplicity(factors *factors,uintmax_t prime,uint m)

{
  byte bVar1;
  int iVar2;
  int iVar3;
  uchar uVar5;
  uintmax_t *puVar4;
  uint in_a2;
  uint in_a3;
  uint uVar6;
  int iVar7;
  uint uVar8;
  uint uVar9;
  uint uVar10;
  uintmax_t *puVar11;
  uchar *puVar12;
  
  bVar1 = factors->nfactors;
  uVar9 = (uint)bVar1;
  puVar11 = factors->p;
  iVar7 = uVar9 - 1;
  puVar12 = factors->e;
  uVar5 = (uchar)(prime >> 0x20);
  if (iVar7 != -1) {
    uVar10 = *(uint *)(puVar11 + iVar7);
    uVar8 = (uint)puVar11[iVar7];
    if ((in_a2 < uVar10) || ((uVar10 == in_a2 && (in_a3 < uVar8)))) {
      iVar3 = iVar7;
      puVar4 = factors->plarge + uVar9;
      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {
        uVar6 = *(uint *)puVar4;
        if ((uVar6 <= in_a2) && ((uVar6 != in_a2 || ((uint)*puVar4 <= in_a3)))) {
          if ((uVar6 == in_a2) && ((uint)*puVar4 == in_a3)) goto LAB_00012434;
          puVar11 = puVar11 + iVar3;
          puVar12 = puVar12 + iVar3;
          if (iVar7 <= iVar2) goto LAB_000123d4;
          break;
        }
        iVar3 = iVar2;
        puVar4 = puVar4 + -1;
      }
      puVar4 = factors->plarge + uVar9;
      iVar7 = (int)factors->plarge + uVar9;
      while( true ) {
        *(uint *)(puVar4 + 2) = uVar10;
        *(uint *)((int)puVar4 + 0x14) = uVar8;
        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);
        if ((int)(~(uint)factors + iVar7 + -1) <= iVar2) break;
        uVar10 = *(uint *)puVar4;
        uVar8 = (uint)*puVar4;
        puVar4 = puVar4 + -1;
        iVar7 = iVar7 + -1;
      }
    }
    else {
      if ((in_a2 == uVar10) && (iVar2 = iVar7, in_a3 == uVar8)) {
LAB_00012434:
        puVar12[iVar2] = uVar5 + puVar12[iVar2];
        return;
      }
      puVar12 = puVar12 + uVar9;
      puVar11 = puVar11 + uVar9;
    }
  }
LAB_000123d4:
  *(uint *)puVar11 = in_a2;
  *(uint *)((int)puVar11 + 4) = in_a3;
  *puVar12 = uVar5;
  factors->nfactors = bVar1 + 1;
  return;
}



void FUN_00012310(uint param_1,undefined4 param_2,uint param_3,uint param_4,char param_5)

{
  byte bVar1;
  int iVar2;
  int iVar3;
  uint *puVar4;
  uint *puVar5;
  uint uVar6;
  int iVar7;
  uint uVar8;
  uint uVar9;
  uint uVar10;
  uint *puVar11;
  char *pcVar12;
  
  bVar1 = *(byte *)(param_1 + 0xfa);
  uVar9 = (uint)bVar1;
  puVar11 = (uint *)(param_1 + 0x10);
  iVar7 = uVar9 - 1;
  pcVar12 = (char *)(param_1 + 0xe0);
  if (iVar7 != -1) {
    uVar10 = puVar11[iVar7 * 2];
    uVar8 = (puVar11 + iVar7 * 2)[1];
    if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {
      puVar5 = (uint *)(param_1 + uVar9 * 8);
      iVar3 = iVar7;
      puVar4 = puVar5;
      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {
        uVar6 = *puVar4;
        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {
          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;
          puVar11 = puVar11 + iVar3 * 2;
          pcVar12 = pcVar12 + iVar3;
          if (iVar7 <= iVar2) goto LAB_000123d4;
          break;
        }
        iVar3 = iVar2;
        puVar4 = puVar4 + -2;
      }
      iVar7 = param_1 + uVar9;
      while( true ) {
        puVar5[4] = uVar10;
        puVar5[5] = uVar8;
        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);
        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;
        uVar10 = *puVar5;
        uVar8 = puVar5[1];
        puVar5 = puVar5 + -2;
        iVar7 = iVar7 + -1;
      }
    }
    else {
      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {
LAB_00012434:
        pcVar12[iVar2] = param_5 + pcVar12[iVar2];
        return;
      }
      pcVar12 = pcVar12 + uVar9;
      puVar11 = puVar11 + uVar9 * 2;
    }
  }
LAB_000123d4:
  *puVar11 = param_3;
  puVar11[1] = param_4;
  *pcVar12 = param_5;
  *(byte *)(param_1 + 0xfa) = bVar1 + 1;
  return;
}


lbu t7,0xfa(a0)
addiu sp,sp,-0x8
li v0,-0x1
addiu t8,a0,0x10
addiu t3,t7,-0x1
sw s1,0x4(sp)
sw s0,0x0(sp)
beq t3,v0,0x000123d0
_addiu t9,a0,0xe0
sll v0,t3,0x3
addu v0,t8,v0
lw s0,0x0(v0)
lw t4,0x4(v0)
sltu v0,a2,s0
beq v0,zero,0x00012454
_or s1,t3,zero
sll v0,t7,0x3
or t0,t3,zero
addu v0,a0,v0
li t5,-0x1
addiu v1,t0,-0x1
or a1,v0,zero
beq v1,t5,0x00012394
_addiu a1,a1,-0x8
lw t1,0x8(a1)
or t3,v1,zero
sltu t2,a2,t1
beq t2,zero,0x000123f8
_lw t6,0xc(a1)
or t0,v1,zero
addiu v1,t0,-0x1
bne v1,t5,0x00012370
_addiu a1,a1,-0x8
addu a1,a0,t7
b 0x000123ac
_nor t1,zero,a0
lw s0,0x0(v0)
addiu v0,v0,-0x8
lw t4,0xc(v0)
addiu a1,a1,-0x1
sw s0,0x10(v0)
sw t4,0x14(v0)
lbu t0,0xe0(a1)
sb t0,0xe1(a1)
addu t0,t1,a1
slt t0,v1,t0
bne t0,zero,0x000123a0
_nop
lw v0,0x18(sp)
addiu t7,t7,0x1
sw a2,0x0(t8)
sw a3,0x4(t8)
sb v0,0x0(t9)
sb t7,0xfa(a0)
lw s1,0x4(sp)
lw s0,0x0(sp)
jr ra
_addiu sp,sp,0x8
bne t1,a2,0x00012408
_sltu t2,a3,t6
bne t2,zero,0x00012384
_nop
beq t1,a2,0x00012428
_sll a1,t0,0x3
slt s1,v1,s1
addu t8,t8,a1
bne s1,zero,0x00012394
_addu t9,t9,t0
b 0x000123d4
_lw v0,0x18(sp)
bne t6,a3,0x00012410
_nop
addu t3,t9,t3
lw v1,0x18(sp)
lbu v0,0x0(t3)
addu v0,v1,v0
sb v0,0x0(t3)
lw s1,0x4(sp)
lw s0,0x0(sp)
jr ra
_addiu sp,sp,0x8
bne s0,a2,0x00012464
_sltu v0,a3,t4
bne v0,zero,0x00012354
_sll v0,t7,0x3
beq a2,s0,0x00012478
_sll v0,t7,0x3
addu t9,t9,t7
b 0x000123d0
_addu t8,t8,v0
bne a3,t4,0x0001246c
_nop
b 0x00012434
_addu t3,t9,t3
(translation_unit "void FUN_00012310(uint param_1,undefined4 param_2,uint param_3,uint param_4,char param_5)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  uint *puVar11;\n  char *pcVar12;\n  \n  bVar1 = *(byte *)(param_1 + 0xfa);\n  uVar9 = (uint)bVar1;\n  puVar11 = (uint *)(param_1 + 0x10);\n  iVar7 = uVar9 - 1;\n  pcVar12 = (char *)(param_1 + 0xe0);\n  if (iVar7 != -1) {\n    uVar10 = puVar11[iVar7 * 2];\n    uVar8 = (puVar11 + iVar7 * 2)[1];\n    if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }\n  }\nLAB_000123d4:\n  *puVar11 = param_3;\n  puVar11[1] = param_4;\n  *pcVar12 = param_5;\n  *(byte *)(param_1 + 0xfa) = bVar1 + 1;\n  return;\n}\n\n" (function_definition "void FUN_00012310(uint param_1,undefined4 param_2,uint param_3,uint param_4,char param_5)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  uint *puVar11;\n  char *pcVar12;\n  \n  bVar1 = *(byte *)(param_1 + 0xfa);\n  uVar9 = (uint)bVar1;\n  puVar11 = (uint *)(param_1 + 0x10);\n  iVar7 = uVar9 - 1;\n  pcVar12 = (char *)(param_1 + 0xe0);\n  if (iVar7 != -1) {\n    uVar10 = puVar11[iVar7 * 2];\n    uVar8 = (puVar11 + iVar7 * 2)[1];\n    if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }\n  }\nLAB_000123d4:\n  *puVar11 = param_3;\n  puVar11[1] = param_4;\n  *pcVar12 = param_5;\n  *(byte *)(param_1 + 0xfa) = bVar1 + 1;\n  return;\n}" primitive_type (function_declarator "FUN_00012310(uint param_1,undefined4 param_2,uint param_3,uint param_4,char param_5)" identifier (parameter_list "(uint param_1,undefined4 param_2,uint param_3,uint param_4,char param_5)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "char param_5" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  uint *puVar11;\n  char *pcVar12;\n  \n  bVar1 = *(byte *)(param_1 + 0xfa);\n  uVar9 = (uint)bVar1;\n  puVar11 = (uint *)(param_1 + 0x10);\n  iVar7 = uVar9 - 1;\n  pcVar12 = (char *)(param_1 + 0xe0);\n  if (iVar7 != -1) {\n    uVar10 = puVar11[iVar7 * 2];\n    uVar8 = (puVar11 + iVar7 * 2)[1];\n    if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }\n  }\nLAB_000123d4:\n  *puVar11 = param_3;\n  puVar11[1] = param_4;\n  *pcVar12 = param_5;\n  *(byte *)(param_1 + 0xfa) = bVar1 + 1;\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "char *pcVar12;" primitive_type (pointer_declarator "*pcVar12" * identifier) ;) (expression_statement "bVar1 = *(byte *)(param_1 + 0xfa);" (assignment_expression "bVar1 = *(byte *)(param_1 + 0xfa)" identifier = (pointer_expression "*(byte *)(param_1 + 0xfa)" * (cast_expression "(byte *)(param_1 + 0xfa)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xfa)" ( (binary_expression "param_1 + 0xfa" identifier + number_literal) ))))) ;) (expression_statement "uVar9 = (uint)bVar1;" (assignment_expression "uVar9 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "puVar11 = (uint *)(param_1 + 0x10);" (assignment_expression "puVar11 = (uint *)(param_1 + 0x10)" identifier = (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ;) (expression_statement "iVar7 = uVar9 - 1;" (assignment_expression "iVar7 = uVar9 - 1" identifier = (binary_expression "uVar9 - 1" identifier - number_literal)) ;) (expression_statement "pcVar12 = (char *)(param_1 + 0xe0);" (assignment_expression "pcVar12 = (char *)(param_1 + 0xe0)" identifier = (cast_expression "(char *)(param_1 + 0xe0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe0)" ( (binary_expression "param_1 + 0xe0" identifier + number_literal) )))) ;) (if_statement "if (iVar7 != -1) {\n    uVar10 = puVar11[iVar7 * 2];\n    uVar8 = (puVar11 + iVar7 * 2)[1];\n    if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }\n  }" if (parenthesized_expression "(iVar7 != -1)" ( (binary_expression "iVar7 != -1" identifier != number_literal) )) (compound_statement "{\n    uVar10 = puVar11[iVar7 * 2];\n    uVar8 = (puVar11 + iVar7 * 2)[1];\n    if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }\n  }" { (expression_statement "uVar10 = puVar11[iVar7 * 2];" (assignment_expression "uVar10 = puVar11[iVar7 * 2]" identifier = (subscript_expression "puVar11[iVar7 * 2]" identifier [ (binary_expression "iVar7 * 2" identifier * number_literal) ])) ;) (expression_statement "uVar8 = (puVar11 + iVar7 * 2)[1];" (assignment_expression "uVar8 = (puVar11 + iVar7 * 2)[1]" identifier = (subscript_expression "(puVar11 + iVar7 * 2)[1]" (parenthesized_expression "(puVar11 + iVar7 * 2)" ( (binary_expression "puVar11 + iVar7 * 2" identifier + (binary_expression "iVar7 * 2" identifier * number_literal)) )) [ number_literal ])) ;) (if_statement "if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }" if (parenthesized_expression "((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8))))" ( (binary_expression "(param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))" (parenthesized_expression "(param_3 < uVar10)" ( (binary_expression "param_3 < uVar10" identifier < identifier) )) || (parenthesized_expression "((uVar10 == param_3 && (param_4 < uVar8)))" ( (parenthesized_expression "(uVar10 == param_3 && (param_4 < uVar8))" ( (binary_expression "uVar10 == param_3 && (param_4 < uVar8)" (binary_expression "uVar10 == param_3" identifier == identifier) && (parenthesized_expression "(param_4 < uVar8)" ( (binary_expression "param_4 < uVar8" identifier < identifier) ))) )) ))) )) (compound_statement "{\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }" { (expression_statement "puVar5 = (uint *)(param_1 + uVar9 * 8);" (assignment_expression "puVar5 = (uint *)(param_1 + uVar9 * 8)" identifier = (cast_expression "(uint *)(param_1 + uVar9 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + uVar9 * 8)" ( (binary_expression "param_1 + uVar9 * 8" identifier + (binary_expression "uVar9 * 8" identifier * number_literal)) )))) ;) (expression_statement "iVar3 = iVar7;" (assignment_expression "iVar3 = iVar7" identifier = identifier) ;) (expression_statement "puVar4 = puVar5;" (assignment_expression "puVar4 = puVar5" identifier = identifier) ;) (for_statement "for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }" for ( (assignment_expression "iVar2 = uVar9 - 2" identifier = (binary_expression "uVar9 - 2" identifier - number_literal)) ; (binary_expression "iVar2 != -1" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }" { (expression_statement "uVar6 = *puVar4;" (assignment_expression "uVar6 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (if_statement "if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }" if (parenthesized_expression "((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4))))" ( (binary_expression "(uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))" (parenthesized_expression "(uVar6 <= param_3)" ( (binary_expression "uVar6 <= param_3" identifier <= identifier) )) && (parenthesized_expression "((uVar6 != param_3 || (puVar4[1] <= param_4)))" ( (parenthesized_expression "(uVar6 != param_3 || (puVar4[1] <= param_4))" ( (binary_expression "uVar6 != param_3 || (puVar4[1] <= param_4)" (binary_expression "uVar6 != param_3" identifier != identifier) || (parenthesized_expression "(puVar4[1] <= param_4)" ( (binary_expression "puVar4[1] <= param_4" (subscript_expression "puVar4[1]" identifier [ number_literal ]) <= identifier) ))) )) ))) )) (compound_statement "{\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }" { (if_statement "if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;" if (parenthesized_expression "((uVar6 == param_3) && (puVar4[1] == param_4))" ( (binary_expression "(uVar6 == param_3) && (puVar4[1] == param_4)" (parenthesized_expression "(uVar6 == param_3)" ( (binary_expression "uVar6 == param_3" identifier == identifier) )) && (parenthesized_expression "(puVar4[1] == param_4)" ( (binary_expression "puVar4[1] == param_4" (subscript_expression "puVar4[1]" identifier [ number_literal ]) == identifier) ))) )) (goto_statement "goto LAB_00012434;" goto statement_identifier ;)) (expression_statement "puVar11 = puVar11 + iVar3 * 2;" (assignment_expression "puVar11 = puVar11 + iVar3 * 2" identifier = (binary_expression "puVar11 + iVar3 * 2" identifier + (binary_expression "iVar3 * 2" identifier * number_literal))) ;) (expression_statement "pcVar12 = pcVar12 + iVar3;" (assignment_expression "pcVar12 = pcVar12 + iVar3" identifier = (binary_expression "pcVar12 + iVar3" identifier + identifier)) ;) (if_statement "if (iVar7 <= iVar2) goto LAB_000123d4;" if (parenthesized_expression "(iVar7 <= iVar2)" ( (binary_expression "iVar7 <= iVar2" identifier <= identifier) )) (goto_statement "goto LAB_000123d4;" goto statement_identifier ;)) (break_statement "break;" break ;) })) (expression_statement "iVar3 = iVar2;" (assignment_expression "iVar3 = iVar2" identifier = identifier) ;) (expression_statement "puVar4 = puVar4 + -2;" (assignment_expression "puVar4 = puVar4 + -2" identifier = (binary_expression "puVar4 + -2" identifier + number_literal)) ;) })) (expression_statement "iVar7 = param_1 + uVar9;" (assignment_expression "iVar7 = param_1 + uVar9" identifier = (binary_expression "param_1 + uVar9" identifier + identifier)) ;) (while_statement "while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }" { (expression_statement "puVar5[4] = uVar10;" (assignment_expression "puVar5[4] = uVar10" (subscript_expression "puVar5[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[5] = uVar8;" (assignment_expression "puVar5[5] = uVar8" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);" (assignment_expression "*(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf)" (pointer_expression "*(undefined1 *)(iVar7 + 0xe0)" * (cast_expression "(undefined1 *)(iVar7 + 0xe0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0xe0)" ( (binary_expression "iVar7 + 0xe0" identifier + number_literal) )))) = (pointer_expression "*(undefined1 *)(iVar7 + 0xdf)" * (cast_expression "(undefined1 *)(iVar7 + 0xdf)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0xdf)" ( (binary_expression "iVar7 + 0xdf" identifier + number_literal) ))))) ;) (if_statement "if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;" if (parenthesized_expression "((int)(~param_1 + iVar7 + -1) <= iVar2)" ( (binary_expression "(int)(~param_1 + iVar7 + -1) <= iVar2" (cast_expression "(int)(~param_1 + iVar7 + -1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(~param_1 + iVar7 + -1)" ( (binary_expression "~param_1 + iVar7 + -1" (binary_expression "~param_1 + iVar7" (unary_expression "~param_1" ~ identifier) + identifier) + number_literal) ))) <= identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar10 = *puVar5;" (assignment_expression "uVar10 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "uVar8 = puVar5[1];" (assignment_expression "uVar8 = puVar5[1]" identifier = (subscript_expression "puVar5[1]" identifier [ number_literal ])) ;) (expression_statement "puVar5 = puVar5 + -2;" (assignment_expression "puVar5 = puVar5 + -2" identifier = (binary_expression "puVar5 + -2" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) })) }) (else_clause "else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }" else (compound_statement "{\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }" { (if_statement "if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }" if (parenthesized_expression "((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8))" ( (binary_expression "(param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)" (parenthesized_expression "(param_3 == uVar10)" ( (binary_expression "param_3 == uVar10" identifier == identifier) )) && (parenthesized_expression "(iVar2 = iVar7, param_4 == uVar8)" ( (comma_expression "iVar2 = iVar7, param_4 == uVar8" (assignment_expression "iVar2 = iVar7" identifier = identifier) , (binary_expression "param_4 == uVar8" identifier == identifier)) ))) )) (compound_statement "{\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }" { (labeled_statement "LAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];" statement_identifier : (expression_statement "pcVar12[iVar2] = param_5 + pcVar12[iVar2];" (assignment_expression "pcVar12[iVar2] = param_5 + pcVar12[iVar2]" (subscript_expression "pcVar12[iVar2]" identifier [ identifier ]) = (binary_expression "param_5 + pcVar12[iVar2]" identifier + (subscript_expression "pcVar12[iVar2]" identifier [ identifier ]))) ;)) (return_statement "return;" return ;) })) (expression_statement "pcVar12 = pcVar12 + uVar9;" (assignment_expression "pcVar12 = pcVar12 + uVar9" identifier = (binary_expression "pcVar12 + uVar9" identifier + identifier)) ;) (expression_statement "puVar11 = puVar11 + uVar9 * 2;" (assignment_expression "puVar11 = puVar11 + uVar9 * 2" identifier = (binary_expression "puVar11 + uVar9 * 2" identifier + (binary_expression "uVar9 * 2" identifier * number_literal))) ;) }))) })) (labeled_statement "LAB_000123d4:\n  *puVar11 = param_3;" statement_identifier : (expression_statement "*puVar11 = param_3;" (assignment_expression "*puVar11 = param_3" (pointer_expression "*puVar11" * identifier) = identifier) ;)) (expression_statement "puVar11[1] = param_4;" (assignment_expression "puVar11[1] = param_4" (subscript_expression "puVar11[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*pcVar12 = param_5;" (assignment_expression "*pcVar12 = param_5" (pointer_expression "*pcVar12" * identifier) = identifier) ;) (expression_statement "*(byte *)(param_1 + 0xfa) = bVar1 + 1;" (assignment_expression "*(byte *)(param_1 + 0xfa) = bVar1 + 1" (pointer_expression "*(byte *)(param_1 + 0xfa)" * (cast_expression "(byte *)(param_1 + 0xfa)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xfa)" ( (binary_expression "param_1 + 0xfa" identifier + number_literal) )))) = (binary_expression "bVar1 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void factor_insert_multiplicity(factors *factors,uintmax_t prime,uint m)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uchar uVar5;\n  uintmax_t *puVar4;\n  uint in_a2;\n  uint in_a3;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  uintmax_t *puVar11;\n  uchar *puVar12;\n  \n  bVar1 = factors->nfactors;\n  uVar9 = (uint)bVar1;\n  puVar11 = factors->p;\n  iVar7 = uVar9 - 1;\n  puVar12 = factors->e;\n  uVar5 = (uchar)(prime >> 0x20);\n  if (iVar7 != -1) {\n    uVar10 = *(uint *)(puVar11 + iVar7);\n    uVar8 = (uint)puVar11[iVar7];\n    if ((in_a2 < uVar10) || ((uVar10 == in_a2 && (in_a3 < uVar8)))) {\n      iVar3 = iVar7;\n      puVar4 = factors->plarge + uVar9;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *(uint *)puVar4;\n        if ((uVar6 <= in_a2) && ((uVar6 != in_a2 || ((uint)*puVar4 <= in_a3)))) {\n          if ((uVar6 == in_a2) && ((uint)*puVar4 == in_a3)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3;\n          puVar12 = puVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -1;\n      }\n      puVar4 = factors->plarge + uVar9;\n      iVar7 = (int)factors->plarge + uVar9;\n      while( true ) {\n        *(uint *)(puVar4 + 2) = uVar10;\n        *(uint *)((int)puVar4 + 0x14) = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~(uint)factors + iVar7 + -1) <= iVar2) break;\n        uVar10 = *(uint *)puVar4;\n        uVar8 = (uint)*puVar4;\n        puVar4 = puVar4 + -1;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((in_a2 == uVar10) && (iVar2 = iVar7, in_a3 == uVar8)) {\nLAB_00012434:\n        puVar12[iVar2] = uVar5 + puVar12[iVar2];\n        return;\n      }\n      puVar12 = puVar12 + uVar9;\n      puVar11 = puVar11 + uVar9;\n    }\n  }\nLAB_000123d4:\n  *(uint *)puVar11 = in_a2;\n  *(uint *)((int)puVar11 + 4) = in_a3;\n  *puVar12 = uVar5;\n  factors->nfactors = bVar1 + 1;\n  return;\n}\n\n" (function_definition "void factor_insert_multiplicity(factors *factors,uintmax_t prime,uint m)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uchar uVar5;\n  uintmax_t *puVar4;\n  uint in_a2;\n  uint in_a3;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  uintmax_t *puVar11;\n  uchar *puVar12;\n  \n  bVar1 = factors->nfactors;\n  uVar9 = (uint)bVar1;\n  puVar11 = factors->p;\n  iVar7 = uVar9 - 1;\n  puVar12 = factors->e;\n  uVar5 = (uchar)(prime >> 0x20);\n  if (iVar7 != -1) {\n    uVar10 = *(uint *)(puVar11 + iVar7);\n    uVar8 = (uint)puVar11[iVar7];\n    if ((in_a2 < uVar10) || ((uVar10 == in_a2 && (in_a3 < uVar8)))) {\n      iVar3 = iVar7;\n      puVar4 = factors->plarge + uVar9;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *(uint *)puVar4;\n        if ((uVar6 <= in_a2) && ((uVar6 != in_a2 || ((uint)*puVar4 <= in_a3)))) {\n          if ((uVar6 == in_a2) && ((uint)*puVar4 == in_a3)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3;\n          puVar12 = puVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -1;\n      }\n      puVar4 = factors->plarge + uVar9;\n      iVar7 = (int)factors->plarge + uVar9;\n      while( true ) {\n        *(uint *)(puVar4 + 2) = uVar10;\n        *(uint *)((int)puVar4 + 0x14) = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~(uint)factors + iVar7 + -1) <= iVar2) break;\n        uVar10 = *(uint *)puVar4;\n        uVar8 = (uint)*puVar4;\n        puVar4 = puVar4 + -1;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((in_a2 == uVar10) && (iVar2 = iVar7, in_a3 == uVar8)) {\nLAB_00012434:\n        puVar12[iVar2] = uVar5 + puVar12[iVar2];\n        return;\n      }\n      puVar12 = puVar12 + uVar9;\n      puVar11 = puVar11 + uVar9;\n    }\n  }\nLAB_000123d4:\n  *(uint *)puVar11 = in_a2;\n  *(uint *)((int)puVar11 + 4) = in_a3;\n  *puVar12 = uVar5;\n  factors->nfactors = bVar1 + 1;\n  return;\n}" primitive_type (function_declarator "factor_insert_multiplicity(factors *factors,uintmax_t prime,uint m)" identifier (parameter_list "(factors *factors,uintmax_t prime,uint m)" ( (parameter_declaration "factors *factors" type_identifier (pointer_declarator "*factors" * identifier)) , (parameter_declaration "uintmax_t prime" type_identifier identifier) , (parameter_declaration "uint m" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uchar uVar5;\n  uintmax_t *puVar4;\n  uint in_a2;\n  uint in_a3;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  uintmax_t *puVar11;\n  uchar *puVar12;\n  \n  bVar1 = factors->nfactors;\n  uVar9 = (uint)bVar1;\n  puVar11 = factors->p;\n  iVar7 = uVar9 - 1;\n  puVar12 = factors->e;\n  uVar5 = (uchar)(prime >> 0x20);\n  if (iVar7 != -1) {\n    uVar10 = *(uint *)(puVar11 + iVar7);\n    uVar8 = (uint)puVar11[iVar7];\n    if ((in_a2 < uVar10) || ((uVar10 == in_a2 && (in_a3 < uVar8)))) {\n      iVar3 = iVar7;\n      puVar4 = factors->plarge + uVar9;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *(uint *)puVar4;\n        if ((uVar6 <= in_a2) && ((uVar6 != in_a2 || ((uint)*puVar4 <= in_a3)))) {\n          if ((uVar6 == in_a2) && ((uint)*puVar4 == in_a3)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3;\n          puVar12 = puVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -1;\n      }\n      puVar4 = factors->plarge + uVar9;\n      iVar7 = (int)factors->plarge + uVar9;\n      while( true ) {\n        *(uint *)(puVar4 + 2) = uVar10;\n        *(uint *)((int)puVar4 + 0x14) = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~(uint)factors + iVar7 + -1) <= iVar2) break;\n        uVar10 = *(uint *)puVar4;\n        uVar8 = (uint)*puVar4;\n        puVar4 = puVar4 + -1;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((in_a2 == uVar10) && (iVar2 = iVar7, in_a3 == uVar8)) {\nLAB_00012434:\n        puVar12[iVar2] = uVar5 + puVar12[iVar2];\n        return;\n      }\n      puVar12 = puVar12 + uVar9;\n      puVar11 = puVar11 + uVar9;\n    }\n  }\nLAB_000123d4:\n  *(uint *)puVar11 = in_a2;\n  *(uint *)((int)puVar11 + 4) = in_a3;\n  *puVar12 = uVar5;\n  factors->nfactors = bVar1 + 1;\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uchar uVar5;" type_identifier identifier ;) (declaration "uintmax_t *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint in_a2;" type_identifier identifier ;) (declaration "uint in_a3;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uintmax_t *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "uchar *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (expression_statement "bVar1 = factors->nfactors;" (assignment_expression "bVar1 = factors->nfactors" identifier = (field_expression "factors->nfactors" identifier -> field_identifier)) ;) (expression_statement "uVar9 = (uint)bVar1;" (assignment_expression "uVar9 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "puVar11 = factors->p;" (assignment_expression "puVar11 = factors->p" identifier = (field_expression "factors->p" identifier -> field_identifier)) ;) (expression_statement "iVar7 = uVar9 - 1;" (assignment_expression "iVar7 = uVar9 - 1" identifier = (binary_expression "uVar9 - 1" identifier - number_literal)) ;) (expression_statement "puVar12 = factors->e;" (assignment_expression "puVar12 = factors->e" identifier = (field_expression "factors->e" identifier -> field_identifier)) ;) (expression_statement "uVar5 = (uchar)(prime >> 0x20);" (assignment_expression "uVar5 = (uchar)(prime >> 0x20)" identifier = (call_expression "(uchar)(prime >> 0x20)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "(prime >> 0x20)" ( (binary_expression "prime >> 0x20" identifier >> number_literal) )))) ;) (if_statement "if (iVar7 != -1) {\n    uVar10 = *(uint *)(puVar11 + iVar7);\n    uVar8 = (uint)puVar11[iVar7];\n    if ((in_a2 < uVar10) || ((uVar10 == in_a2 && (in_a3 < uVar8)))) {\n      iVar3 = iVar7;\n      puVar4 = factors->plarge + uVar9;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *(uint *)puVar4;\n        if ((uVar6 <= in_a2) && ((uVar6 != in_a2 || ((uint)*puVar4 <= in_a3)))) {\n          if ((uVar6 == in_a2) && ((uint)*puVar4 == in_a3)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3;\n          puVar12 = puVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -1;\n      }\n      puVar4 = factors->plarge + uVar9;\n      iVar7 = (int)factors->plarge + uVar9;\n      while( true ) {\n        *(uint *)(puVar4 + 2) = uVar10;\n        *(uint *)((int)puVar4 + 0x14) = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~(uint)factors + iVar7 + -1) <= iVar2) break;\n        uVar10 = *(uint *)puVar4;\n        uVar8 = (uint)*puVar4;\n        puVar4 = puVar4 + -1;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((in_a2 == uVar10) && (iVar2 = iVar7, in_a3 == uVar8)) {\nLAB_00012434:\n        puVar12[iVar2] = uVar5 + puVar12[iVar2];\n        return;\n      }\n      puVar12 = puVar12 + uVar9;\n      puVar11 = puVar11 + uVar9;\n    }\n  }" if (parenthesized_expression "(iVar7 != -1)" ( (binary_expression "iVar7 != -1" identifier != number_literal) )) (compound_statement "{\n    uVar10 = *(uint *)(puVar11 + iVar7);\n    uVar8 = (uint)puVar11[iVar7];\n    if ((in_a2 < uVar10) || ((uVar10 == in_a2 && (in_a3 < uVar8)))) {\n      iVar3 = iVar7;\n      puVar4 = factors->plarge + uVar9;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *(uint *)puVar4;\n        if ((uVar6 <= in_a2) && ((uVar6 != in_a2 || ((uint)*puVar4 <= in_a3)))) {\n          if ((uVar6 == in_a2) && ((uint)*puVar4 == in_a3)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3;\n          puVar12 = puVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -1;\n      }\n      puVar4 = factors->plarge + uVar9;\n      iVar7 = (int)factors->plarge + uVar9;\n      while( true ) {\n        *(uint *)(puVar4 + 2) = uVar10;\n        *(uint *)((int)puVar4 + 0x14) = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~(uint)factors + iVar7 + -1) <= iVar2) break;\n        uVar10 = *(uint *)puVar4;\n        uVar8 = (uint)*puVar4;\n        puVar4 = puVar4 + -1;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((in_a2 == uVar10) && (iVar2 = iVar7, in_a3 == uVar8)) {\nLAB_00012434:\n        puVar12[iVar2] = uVar5 + puVar12[iVar2];\n        return;\n      }\n      puVar12 = puVar12 + uVar9;\n      puVar11 = puVar11 + uVar9;\n    }\n  }" { (expression_statement "uVar10 = *(uint *)(puVar11 + iVar7);" (assignment_expression "uVar10 = *(uint *)(puVar11 + iVar7)" identifier = (pointer_expression "*(uint *)(puVar11 + iVar7)" * (cast_expression "(uint *)(puVar11 + iVar7)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + iVar7)" ( (binary_expression "puVar11 + iVar7" identifier + identifier) ))))) ;) (expression_statement "uVar8 = (uint)puVar11[iVar7];" (assignment_expression "uVar8 = (uint)puVar11[iVar7]" identifier = (cast_expression "(uint)puVar11[iVar7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar11[iVar7]" identifier [ identifier ]))) ;) (if_statement "if ((in_a2 < uVar10) || ((uVar10 == in_a2 && (in_a3 < uVar8)))) {\n      iVar3 = iVar7;\n      puVar4 = factors->plarge + uVar9;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *(uint *)puVar4;\n        if ((uVar6 <= in_a2) && ((uVar6 != in_a2 || ((uint)*puVar4 <= in_a3)))) {\n          if ((uVar6 == in_a2) && ((uint)*puVar4 == in_a3)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3;\n          puVar12 = puVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -1;\n      }\n      puVar4 = factors->plarge + uVar9;\n      iVar7 = (int)factors->plarge + uVar9;\n      while( true ) {\n        *(uint *)(puVar4 + 2) = uVar10;\n        *(uint *)((int)puVar4 + 0x14) = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~(uint)factors + iVar7 + -1) <= iVar2) break;\n        uVar10 = *(uint *)puVar4;\n        uVar8 = (uint)*puVar4;\n        puVar4 = puVar4 + -1;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((in_a2 == uVar10) && (iVar2 = iVar7, in_a3 == uVar8)) {\nLAB_00012434:\n        puVar12[iVar2] = uVar5 + puVar12[iVar2];\n        return;\n      }\n      puVar12 = puVar12 + uVar9;\n      puVar11 = puVar11 + uVar9;\n    }" if (parenthesized_expression "((in_a2 < uVar10) || ((uVar10 == in_a2 && (in_a3 < uVar8))))" ( (binary_expression "(in_a2 < uVar10) || ((uVar10 == in_a2 && (in_a3 < uVar8)))" (parenthesized_expression "(in_a2 < uVar10)" ( (binary_expression "in_a2 < uVar10" identifier < identifier) )) || (parenthesized_expression "((uVar10 == in_a2 && (in_a3 < uVar8)))" ( (parenthesized_expression "(uVar10 == in_a2 && (in_a3 < uVar8))" ( (binary_expression "uVar10 == in_a2 && (in_a3 < uVar8)" (binary_expression "uVar10 == in_a2" identifier == identifier) && (parenthesized_expression "(in_a3 < uVar8)" ( (binary_expression "in_a3 < uVar8" identifier < identifier) ))) )) ))) )) (compound_statement "{\n      iVar3 = iVar7;\n      puVar4 = factors->plarge + uVar9;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *(uint *)puVar4;\n        if ((uVar6 <= in_a2) && ((uVar6 != in_a2 || ((uint)*puVar4 <= in_a3)))) {\n          if ((uVar6 == in_a2) && ((uint)*puVar4 == in_a3)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3;\n          puVar12 = puVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -1;\n      }\n      puVar4 = factors->plarge + uVar9;\n      iVar7 = (int)factors->plarge + uVar9;\n      while( true ) {\n        *(uint *)(puVar4 + 2) = uVar10;\n        *(uint *)((int)puVar4 + 0x14) = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~(uint)factors + iVar7 + -1) <= iVar2) break;\n        uVar10 = *(uint *)puVar4;\n        uVar8 = (uint)*puVar4;\n        puVar4 = puVar4 + -1;\n        iVar7 = iVar7 + -1;\n      }\n    }" { (expression_statement "iVar3 = iVar7;" (assignment_expression "iVar3 = iVar7" identifier = identifier) ;) (expression_statement "puVar4 = factors->plarge + uVar9;" (assignment_expression "puVar4 = factors->plarge + uVar9" identifier = (binary_expression "factors->plarge + uVar9" (field_expression "factors->plarge" identifier -> field_identifier) + identifier)) ;) (for_statement "for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *(uint *)puVar4;\n        if ((uVar6 <= in_a2) && ((uVar6 != in_a2 || ((uint)*puVar4 <= in_a3)))) {\n          if ((uVar6 == in_a2) && ((uint)*puVar4 == in_a3)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3;\n          puVar12 = puVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -1;\n      }" for ( (assignment_expression "iVar2 = uVar9 - 2" identifier = (binary_expression "uVar9 - 2" identifier - number_literal)) ; (binary_expression "iVar2 != -1" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n        uVar6 = *(uint *)puVar4;\n        if ((uVar6 <= in_a2) && ((uVar6 != in_a2 || ((uint)*puVar4 <= in_a3)))) {\n          if ((uVar6 == in_a2) && ((uint)*puVar4 == in_a3)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3;\n          puVar12 = puVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -1;\n      }" { (expression_statement "uVar6 = *(uint *)puVar4;" (assignment_expression "uVar6 = *(uint *)puVar4" identifier = (pointer_expression "*(uint *)puVar4" * (cast_expression "(uint *)puVar4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((uVar6 <= in_a2) && ((uVar6 != in_a2 || ((uint)*puVar4 <= in_a3)))) {\n          if ((uVar6 == in_a2) && ((uint)*puVar4 == in_a3)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3;\n          puVar12 = puVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }" if (parenthesized_expression "((uVar6 <= in_a2) && ((uVar6 != in_a2 || ((uint)*puVar4 <= in_a3))))" ( (binary_expression "(uVar6 <= in_a2) && ((uVar6 != in_a2 || ((uint)*puVar4 <= in_a3)))" (parenthesized_expression "(uVar6 <= in_a2)" ( (binary_expression "uVar6 <= in_a2" identifier <= identifier) )) && (parenthesized_expression "((uVar6 != in_a2 || ((uint)*puVar4 <= in_a3)))" ( (parenthesized_expression "(uVar6 != in_a2 || ((uint)*puVar4 <= in_a3))" ( (binary_expression "uVar6 != in_a2 || ((uint)*puVar4 <= in_a3)" (binary_expression "uVar6 != in_a2" identifier != identifier) || (parenthesized_expression "((uint)*puVar4 <= in_a3)" ( (binary_expression "(uint)*puVar4 <= in_a3" (binary_expression "(uint)*puVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier) <= identifier) ))) )) ))) )) (compound_statement "{\n          if ((uVar6 == in_a2) && ((uint)*puVar4 == in_a3)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3;\n          puVar12 = puVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }" { (if_statement "if ((uVar6 == in_a2) && ((uint)*puVar4 == in_a3)) goto LAB_00012434;" if (parenthesized_expression "((uVar6 == in_a2) && ((uint)*puVar4 == in_a3))" ( (binary_expression "(uVar6 == in_a2) && ((uint)*puVar4 == in_a3)" (parenthesized_expression "(uVar6 == in_a2)" ( (binary_expression "uVar6 == in_a2" identifier == identifier) )) && (parenthesized_expression "((uint)*puVar4 == in_a3)" ( (binary_expression "(uint)*puVar4 == in_a3" (binary_expression "(uint)*puVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier) == identifier) ))) )) (goto_statement "goto LAB_00012434;" goto statement_identifier ;)) (expression_statement "puVar11 = puVar11 + iVar3;" (assignment_expression "puVar11 = puVar11 + iVar3" identifier = (binary_expression "puVar11 + iVar3" identifier + identifier)) ;) (expression_statement "puVar12 = puVar12 + iVar3;" (assignment_expression "puVar12 = puVar12 + iVar3" identifier = (binary_expression "puVar12 + iVar3" identifier + identifier)) ;) (if_statement "if (iVar7 <= iVar2) goto LAB_000123d4;" if (parenthesized_expression "(iVar7 <= iVar2)" ( (binary_expression "iVar7 <= iVar2" identifier <= identifier) )) (goto_statement "goto LAB_000123d4;" goto statement_identifier ;)) (break_statement "break;" break ;) })) (expression_statement "iVar3 = iVar2;" (assignment_expression "iVar3 = iVar2" identifier = identifier) ;) (expression_statement "puVar4 = puVar4 + -1;" (assignment_expression "puVar4 = puVar4 + -1" identifier = (binary_expression "puVar4 + -1" identifier + number_literal)) ;) })) (expression_statement "puVar4 = factors->plarge + uVar9;" (assignment_expression "puVar4 = factors->plarge + uVar9" identifier = (binary_expression "factors->plarge + uVar9" (field_expression "factors->plarge" identifier -> field_identifier) + identifier)) ;) (expression_statement "iVar7 = (int)factors->plarge + uVar9;" (assignment_expression "iVar7 = (int)factors->plarge + uVar9" identifier = (binary_expression "(int)factors->plarge + uVar9" (cast_expression "(int)factors->plarge" ( (type_descriptor "int" primitive_type) ) (field_expression "factors->plarge" identifier -> field_identifier)) + identifier)) ;) (while_statement "while( true ) {\n        *(uint *)(puVar4 + 2) = uVar10;\n        *(uint *)((int)puVar4 + 0x14) = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~(uint)factors + iVar7 + -1) <= iVar2) break;\n        uVar10 = *(uint *)puVar4;\n        uVar8 = (uint)*puVar4;\n        puVar4 = puVar4 + -1;\n        iVar7 = iVar7 + -1;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        *(uint *)(puVar4 + 2) = uVar10;\n        *(uint *)((int)puVar4 + 0x14) = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~(uint)factors + iVar7 + -1) <= iVar2) break;\n        uVar10 = *(uint *)puVar4;\n        uVar8 = (uint)*puVar4;\n        puVar4 = puVar4 + -1;\n        iVar7 = iVar7 + -1;\n      }" { (expression_statement "*(uint *)(puVar4 + 2) = uVar10;" (assignment_expression "*(uint *)(puVar4 + 2) = uVar10" (pointer_expression "*(uint *)(puVar4 + 2)" * (cast_expression "(uint *)(puVar4 + 2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 2)" ( (binary_expression "puVar4 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)((int)puVar4 + 0x14) = uVar8;" (assignment_expression "*(uint *)((int)puVar4 + 0x14) = uVar8" (pointer_expression "*(uint *)((int)puVar4 + 0x14)" * (cast_expression "(uint *)((int)puVar4 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + 0x14)" ( (binary_expression "(int)puVar4 + 0x14" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);" (assignment_expression "*(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf)" (pointer_expression "*(undefined1 *)(iVar7 + 0xe0)" * (cast_expression "(undefined1 *)(iVar7 + 0xe0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0xe0)" ( (binary_expression "iVar7 + 0xe0" identifier + number_literal) )))) = (pointer_expression "*(undefined1 *)(iVar7 + 0xdf)" * (cast_expression "(undefined1 *)(iVar7 + 0xdf)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0xdf)" ( (binary_expression "iVar7 + 0xdf" identifier + number_literal) ))))) ;) (if_statement "if ((int)(~(uint)factors + iVar7 + -1) <= iVar2) break;" if (parenthesized_expression "((int)(~(uint)factors + iVar7 + -1) <= iVar2)" ( (binary_expression "(int)(~(uint)factors + iVar7 + -1) <= iVar2" (cast_expression "(int)(~(uint)factors + iVar7 + -1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(~(uint)factors + iVar7 + -1)" ( (binary_expression "~(uint)factors + iVar7 + -1" (binary_expression "~(uint)factors + iVar7" (unary_expression "~(uint)factors" ~ (cast_expression "(uint)factors" ( (type_descriptor "uint" type_identifier) ) identifier)) + identifier) + number_literal) ))) <= identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar10 = *(uint *)puVar4;" (assignment_expression "uVar10 = *(uint *)puVar4" identifier = (pointer_expression "*(uint *)puVar4" * (cast_expression "(uint *)puVar4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar8 = (uint)*puVar4;" (assignment_expression "uVar8 = (uint)*puVar4" identifier = (binary_expression "(uint)*puVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "puVar4 = puVar4 + -1;" (assignment_expression "puVar4 = puVar4 + -1" identifier = (binary_expression "puVar4 + -1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) })) }) (else_clause "else {\n      if ((in_a2 == uVar10) && (iVar2 = iVar7, in_a3 == uVar8)) {\nLAB_00012434:\n        puVar12[iVar2] = uVar5 + puVar12[iVar2];\n        return;\n      }\n      puVar12 = puVar12 + uVar9;\n      puVar11 = puVar11 + uVar9;\n    }" else (compound_statement "{\n      if ((in_a2 == uVar10) && (iVar2 = iVar7, in_a3 == uVar8)) {\nLAB_00012434:\n        puVar12[iVar2] = uVar5 + puVar12[iVar2];\n        return;\n      }\n      puVar12 = puVar12 + uVar9;\n      puVar11 = puVar11 + uVar9;\n    }" { (if_statement "if ((in_a2 == uVar10) && (iVar2 = iVar7, in_a3 == uVar8)) {\nLAB_00012434:\n        puVar12[iVar2] = uVar5 + puVar12[iVar2];\n        return;\n      }" if (parenthesized_expression "((in_a2 == uVar10) && (iVar2 = iVar7, in_a3 == uVar8))" ( (binary_expression "(in_a2 == uVar10) && (iVar2 = iVar7, in_a3 == uVar8)" (parenthesized_expression "(in_a2 == uVar10)" ( (binary_expression "in_a2 == uVar10" identifier == identifier) )) && (parenthesized_expression "(iVar2 = iVar7, in_a3 == uVar8)" ( (comma_expression "iVar2 = iVar7, in_a3 == uVar8" (assignment_expression "iVar2 = iVar7" identifier = identifier) , (binary_expression "in_a3 == uVar8" identifier == identifier)) ))) )) (compound_statement "{\nLAB_00012434:\n        puVar12[iVar2] = uVar5 + puVar12[iVar2];\n        return;\n      }" { (labeled_statement "LAB_00012434:\n        puVar12[iVar2] = uVar5 + puVar12[iVar2];" statement_identifier : (expression_statement "puVar12[iVar2] = uVar5 + puVar12[iVar2];" (assignment_expression "puVar12[iVar2] = uVar5 + puVar12[iVar2]" (subscript_expression "puVar12[iVar2]" identifier [ identifier ]) = (binary_expression "uVar5 + puVar12[iVar2]" identifier + (subscript_expression "puVar12[iVar2]" identifier [ identifier ]))) ;)) (return_statement "return;" return ;) })) (expression_statement "puVar12 = puVar12 + uVar9;" (assignment_expression "puVar12 = puVar12 + uVar9" identifier = (binary_expression "puVar12 + uVar9" identifier + identifier)) ;) (expression_statement "puVar11 = puVar11 + uVar9;" (assignment_expression "puVar11 = puVar11 + uVar9" identifier = (binary_expression "puVar11 + uVar9" identifier + identifier)) ;) }))) })) (labeled_statement "LAB_000123d4:\n  *(uint *)puVar11 = in_a2;" statement_identifier : (expression_statement "*(uint *)puVar11 = in_a2;" (assignment_expression "*(uint *)puVar11 = in_a2" (pointer_expression "*(uint *)puVar11" * (cast_expression "(uint *)puVar11" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;)) (expression_statement "*(uint *)((int)puVar11 + 4) = in_a3;" (assignment_expression "*(uint *)((int)puVar11 + 4) = in_a3" (pointer_expression "*(uint *)((int)puVar11 + 4)" * (cast_expression "(uint *)((int)puVar11 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar11 + 4)" ( (binary_expression "(int)puVar11 + 4" (cast_expression "(int)puVar11" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*puVar12 = uVar5;" (assignment_expression "*puVar12 = uVar5" (pointer_expression "*puVar12" * identifier) = identifier) ;) (expression_statement "factors->nfactors = bVar1 + 1;" (assignment_expression "factors->nfactors = bVar1 + 1" (field_expression "factors->nfactors" identifier -> field_identifier) = (binary_expression "bVar1 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00012310(uint param_1,undefined4 param_2,uint param_3,uint param_4,char param_5)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  uint *puVar11;\n  char *pcVar12;\n  \n  bVar1 = *(byte *)(param_1 + 0xfa);\n  uVar9 = (uint)bVar1;\n  puVar11 = (uint *)(param_1 + 0x10);\n  iVar7 = uVar9 - 1;\n  pcVar12 = (char *)(param_1 + 0xe0);\n  if (iVar7 != -1) {\n    uVar10 = puVar11[iVar7 * 2];\n    uVar8 = (puVar11 + iVar7 * 2)[1];\n    if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }\n  }\nLAB_000123d4:\n  *puVar11 = param_3;\n  puVar11[1] = param_4;\n  *pcVar12 = param_5;\n  *(byte *)(param_1 + 0xfa) = bVar1 + 1;\n  return;\n}\n\n" (function_definition "void FUN_00012310(uint param_1,undefined4 param_2,uint param_3,uint param_4,char param_5)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  uint *puVar11;\n  char *pcVar12;\n  \n  bVar1 = *(byte *)(param_1 + 0xfa);\n  uVar9 = (uint)bVar1;\n  puVar11 = (uint *)(param_1 + 0x10);\n  iVar7 = uVar9 - 1;\n  pcVar12 = (char *)(param_1 + 0xe0);\n  if (iVar7 != -1) {\n    uVar10 = puVar11[iVar7 * 2];\n    uVar8 = (puVar11 + iVar7 * 2)[1];\n    if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }\n  }\nLAB_000123d4:\n  *puVar11 = param_3;\n  puVar11[1] = param_4;\n  *pcVar12 = param_5;\n  *(byte *)(param_1 + 0xfa) = bVar1 + 1;\n  return;\n}" primitive_type (function_declarator "FUN_00012310(uint param_1,undefined4 param_2,uint param_3,uint param_4,char param_5)" identifier (parameter_list "(uint param_1,undefined4 param_2,uint param_3,uint param_4,char param_5)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "char param_5" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  uint *puVar11;\n  char *pcVar12;\n  \n  bVar1 = *(byte *)(param_1 + 0xfa);\n  uVar9 = (uint)bVar1;\n  puVar11 = (uint *)(param_1 + 0x10);\n  iVar7 = uVar9 - 1;\n  pcVar12 = (char *)(param_1 + 0xe0);\n  if (iVar7 != -1) {\n    uVar10 = puVar11[iVar7 * 2];\n    uVar8 = (puVar11 + iVar7 * 2)[1];\n    if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }\n  }\nLAB_000123d4:\n  *puVar11 = param_3;\n  puVar11[1] = param_4;\n  *pcVar12 = param_5;\n  *(byte *)(param_1 + 0xfa) = bVar1 + 1;\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "char *pcVar12;" primitive_type (pointer_declarator "*pcVar12" * identifier) ;) (expression_statement "bVar1 = *(byte *)(param_1 + 0xfa);" (assignment_expression "bVar1 = *(byte *)(param_1 + 0xfa)" identifier = (pointer_expression "*(byte *)(param_1 + 0xfa)" * (cast_expression "(byte *)(param_1 + 0xfa)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xfa)" ( (binary_expression "param_1 + 0xfa" identifier + number_literal) ))))) ;) (expression_statement "uVar9 = (uint)bVar1;" (assignment_expression "uVar9 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "puVar11 = (uint *)(param_1 + 0x10);" (assignment_expression "puVar11 = (uint *)(param_1 + 0x10)" identifier = (cast_expression "(uint *)(param_1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ;) (expression_statement "iVar7 = uVar9 - 1;" (assignment_expression "iVar7 = uVar9 - 1" identifier = (binary_expression "uVar9 - 1" identifier - number_literal)) ;) (expression_statement "pcVar12 = (char *)(param_1 + 0xe0);" (assignment_expression "pcVar12 = (char *)(param_1 + 0xe0)" identifier = (cast_expression "(char *)(param_1 + 0xe0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe0)" ( (binary_expression "param_1 + 0xe0" identifier + number_literal) )))) ;) (if_statement "if (iVar7 != -1) {\n    uVar10 = puVar11[iVar7 * 2];\n    uVar8 = (puVar11 + iVar7 * 2)[1];\n    if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }\n  }" if (parenthesized_expression "(iVar7 != -1)" ( (binary_expression "iVar7 != -1" identifier != number_literal) )) (compound_statement "{\n    uVar10 = puVar11[iVar7 * 2];\n    uVar8 = (puVar11 + iVar7 * 2)[1];\n    if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }\n  }" { (expression_statement "uVar10 = puVar11[iVar7 * 2];" (assignment_expression "uVar10 = puVar11[iVar7 * 2]" identifier = (subscript_expression "puVar11[iVar7 * 2]" identifier [ (binary_expression "iVar7 * 2" identifier * number_literal) ])) ;) (expression_statement "uVar8 = (puVar11 + iVar7 * 2)[1];" (assignment_expression "uVar8 = (puVar11 + iVar7 * 2)[1]" identifier = (subscript_expression "(puVar11 + iVar7 * 2)[1]" (parenthesized_expression "(puVar11 + iVar7 * 2)" ( (binary_expression "puVar11 + iVar7 * 2" identifier + (binary_expression "iVar7 * 2" identifier * number_literal)) )) [ number_literal ])) ;) (if_statement "if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }" if (parenthesized_expression "((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8))))" ( (binary_expression "(param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))" (parenthesized_expression "(param_3 < uVar10)" ( (binary_expression "param_3 < uVar10" identifier < identifier) )) || (parenthesized_expression "((uVar10 == param_3 && (param_4 < uVar8)))" ( (parenthesized_expression "(uVar10 == param_3 && (param_4 < uVar8))" ( (binary_expression "uVar10 == param_3 && (param_4 < uVar8)" (binary_expression "uVar10 == param_3" identifier == identifier) && (parenthesized_expression "(param_4 < uVar8)" ( (binary_expression "param_4 < uVar8" identifier < identifier) ))) )) ))) )) (compound_statement "{\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }" { (expression_statement "puVar5 = (uint *)(param_1 + uVar9 * 8);" (assignment_expression "puVar5 = (uint *)(param_1 + uVar9 * 8)" identifier = (cast_expression "(uint *)(param_1 + uVar9 * 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + uVar9 * 8)" ( (binary_expression "param_1 + uVar9 * 8" identifier + (binary_expression "uVar9 * 8" identifier * number_literal)) )))) ;) (expression_statement "iVar3 = iVar7;" (assignment_expression "iVar3 = iVar7" identifier = identifier) ;) (expression_statement "puVar4 = puVar5;" (assignment_expression "puVar4 = puVar5" identifier = identifier) ;) (for_statement "for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }" for ( (assignment_expression "iVar2 = uVar9 - 2" identifier = (binary_expression "uVar9 - 2" identifier - number_literal)) ; (binary_expression "iVar2 != -1" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }" { (expression_statement "uVar6 = *puVar4;" (assignment_expression "uVar6 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (if_statement "if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }" if (parenthesized_expression "((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4))))" ( (binary_expression "(uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))" (parenthesized_expression "(uVar6 <= param_3)" ( (binary_expression "uVar6 <= param_3" identifier <= identifier) )) && (parenthesized_expression "((uVar6 != param_3 || (puVar4[1] <= param_4)))" ( (parenthesized_expression "(uVar6 != param_3 || (puVar4[1] <= param_4))" ( (binary_expression "uVar6 != param_3 || (puVar4[1] <= param_4)" (binary_expression "uVar6 != param_3" identifier != identifier) || (parenthesized_expression "(puVar4[1] <= param_4)" ( (binary_expression "puVar4[1] <= param_4" (subscript_expression "puVar4[1]" identifier [ number_literal ]) <= identifier) ))) )) ))) )) (compound_statement "{\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }" { (if_statement "if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;" if (parenthesized_expression "((uVar6 == param_3) && (puVar4[1] == param_4))" ( (binary_expression "(uVar6 == param_3) && (puVar4[1] == param_4)" (parenthesized_expression "(uVar6 == param_3)" ( (binary_expression "uVar6 == param_3" identifier == identifier) )) && (parenthesized_expression "(puVar4[1] == param_4)" ( (binary_expression "puVar4[1] == param_4" (subscript_expression "puVar4[1]" identifier [ number_literal ]) == identifier) ))) )) (goto_statement "goto LAB_00012434;" goto statement_identifier ;)) (expression_statement "puVar11 = puVar11 + iVar3 * 2;" (assignment_expression "puVar11 = puVar11 + iVar3 * 2" identifier = (binary_expression "puVar11 + iVar3 * 2" identifier + (binary_expression "iVar3 * 2" identifier * number_literal))) ;) (expression_statement "pcVar12 = pcVar12 + iVar3;" (assignment_expression "pcVar12 = pcVar12 + iVar3" identifier = (binary_expression "pcVar12 + iVar3" identifier + identifier)) ;) (if_statement "if (iVar7 <= iVar2) goto LAB_000123d4;" if (parenthesized_expression "(iVar7 <= iVar2)" ( (binary_expression "iVar7 <= iVar2" identifier <= identifier) )) (goto_statement "goto LAB_000123d4;" goto statement_identifier ;)) (break_statement "break;" break ;) })) (expression_statement "iVar3 = iVar2;" (assignment_expression "iVar3 = iVar2" identifier = identifier) ;) (expression_statement "puVar4 = puVar4 + -2;" (assignment_expression "puVar4 = puVar4 + -2" identifier = (binary_expression "puVar4 + -2" identifier + number_literal)) ;) })) (expression_statement "iVar7 = param_1 + uVar9;" (assignment_expression "iVar7 = param_1 + uVar9" identifier = (binary_expression "param_1 + uVar9" identifier + identifier)) ;) (while_statement "while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }" { (expression_statement "puVar5[4] = uVar10;" (assignment_expression "puVar5[4] = uVar10" (subscript_expression "puVar5[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[5] = uVar8;" (assignment_expression "puVar5[5] = uVar8" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);" (assignment_expression "*(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf)" (pointer_expression "*(undefined1 *)(iVar7 + 0xe0)" * (cast_expression "(undefined1 *)(iVar7 + 0xe0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0xe0)" ( (binary_expression "iVar7 + 0xe0" identifier + number_literal) )))) = (pointer_expression "*(undefined1 *)(iVar7 + 0xdf)" * (cast_expression "(undefined1 *)(iVar7 + 0xdf)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0xdf)" ( (binary_expression "iVar7 + 0xdf" identifier + number_literal) ))))) ;) (if_statement "if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;" if (parenthesized_expression "((int)(~param_1 + iVar7 + -1) <= iVar2)" ( (binary_expression "(int)(~param_1 + iVar7 + -1) <= iVar2" (cast_expression "(int)(~param_1 + iVar7 + -1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(~param_1 + iVar7 + -1)" ( (binary_expression "~param_1 + iVar7 + -1" (binary_expression "~param_1 + iVar7" (unary_expression "~param_1" ~ identifier) + identifier) + number_literal) ))) <= identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar10 = *puVar5;" (assignment_expression "uVar10 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "uVar8 = puVar5[1];" (assignment_expression "uVar8 = puVar5[1]" identifier = (subscript_expression "puVar5[1]" identifier [ number_literal ])) ;) (expression_statement "puVar5 = puVar5 + -2;" (assignment_expression "puVar5 = puVar5 + -2" identifier = (binary_expression "puVar5 + -2" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) })) }) (else_clause "else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }" else (compound_statement "{\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }" { (if_statement "if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }" if (parenthesized_expression "((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8))" ( (binary_expression "(param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)" (parenthesized_expression "(param_3 == uVar10)" ( (binary_expression "param_3 == uVar10" identifier == identifier) )) && (parenthesized_expression "(iVar2 = iVar7, param_4 == uVar8)" ( (comma_expression "iVar2 = iVar7, param_4 == uVar8" (assignment_expression "iVar2 = iVar7" identifier = identifier) , (binary_expression "param_4 == uVar8" identifier == identifier)) ))) )) (compound_statement "{\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }" { (labeled_statement "LAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];" statement_identifier : (expression_statement "pcVar12[iVar2] = param_5 + pcVar12[iVar2];" (assignment_expression "pcVar12[iVar2] = param_5 + pcVar12[iVar2]" (subscript_expression "pcVar12[iVar2]" identifier [ identifier ]) = (binary_expression "param_5 + pcVar12[iVar2]" identifier + (subscript_expression "pcVar12[iVar2]" identifier [ identifier ]))) ;)) (return_statement "return;" return ;) })) (expression_statement "pcVar12 = pcVar12 + uVar9;" (assignment_expression "pcVar12 = pcVar12 + uVar9" identifier = (binary_expression "pcVar12 + uVar9" identifier + identifier)) ;) (expression_statement "puVar11 = puVar11 + uVar9 * 2;" (assignment_expression "puVar11 = puVar11 + uVar9 * 2" identifier = (binary_expression "puVar11 + uVar9 * 2" identifier + (binary_expression "uVar9 * 2" identifier * number_literal))) ;) }))) })) (labeled_statement "LAB_000123d4:\n  *puVar11 = param_3;" statement_identifier : (expression_statement "*puVar11 = param_3;" (assignment_expression "*puVar11 = param_3" (pointer_expression "*puVar11" * identifier) = identifier) ;)) (expression_statement "puVar11[1] = param_4;" (assignment_expression "puVar11[1] = param_4" (subscript_expression "puVar11[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*pcVar12 = param_5;" (assignment_expression "*pcVar12 = param_5" (pointer_expression "*pcVar12" * identifier) = identifier) ;) (expression_statement "*(byte *)(param_1 + 0xfa) = bVar1 + 1;" (assignment_expression "*(byte *)(param_1 + 0xfa) = bVar1 + 1" (pointer_expression "*(byte *)(param_1 + 0xfa)" * (cast_expression "(byte *)(param_1 + 0xfa)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xfa)" ( (binary_expression "param_1 + 0xfa" identifier + number_literal) )))) = (binary_expression "bVar1 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (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 IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression IDENT * LIT) ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )) [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT == IDENT) && (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression IDENT - LIT)) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != IDENT) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) <= IDENT) ))) )) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == IDENT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (unary_expression ~ IDENT) + IDENT) + LIT) ))) <= IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT == IDENT)) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (binary_expression IDENT + (subscript_expression IDENT [ IDENT ]))) ;)) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) }))) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00012310(uint param_1,undefined4 param_2,uint param_3,uint param_4,char param_5)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  uint *puVar11;\n  char *pcVar12;\n  \n  bVar1 = *(byte *)(param_1 + 0xfa);\n  uVar9 = (uint)bVar1;\n  puVar11 = (uint *)(param_1 + 0x10);\n  iVar7 = uVar9 - 1;\n  pcVar12 = (char *)(param_1 + 0xe0);\n  if (iVar7 != -1) {\n    uVar10 = puVar11[iVar7 * 2];\n    uVar8 = (puVar11 + iVar7 * 2)[1];\n    if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }\n  }\nLAB_000123d4:\n  *puVar11 = param_3;\n  puVar11[1] = param_4;\n  *pcVar12 = param_5;\n  *(byte *)(param_1 + 0xfa) = bVar1 + 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00012310(uint param_1,undefined4 param_2,uint param_3,uint param_4,char param_5)" (identifier "FUN_00012310") (parameter_list "(uint param_1,undefined4 param_2,uint param_3,uint param_4,char param_5)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "char param_5" (primitive_type "char") (identifier "param_5")) () ")"))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  uint uVar10;\n  uint *puVar11;\n  char *pcVar12;\n  \n  bVar1 = *(byte *)(param_1 + 0xfa);\n  uVar9 = (uint)bVar1;\n  puVar11 = (uint *)(param_1 + 0x10);\n  iVar7 = uVar9 - 1;\n  pcVar12 = (char *)(param_1 + 0xe0);\n  if (iVar7 != -1) {\n    uVar10 = puVar11[iVar7 * 2];\n    uVar8 = (puVar11 + iVar7 * 2)[1];\n    if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }\n  }\nLAB_000123d4:\n  *puVar11 = param_3;\n  puVar11[1] = param_4;\n  *pcVar12 = param_5;\n  *(byte *)(param_1 + 0xfa) = bVar1 + 1;\n  return;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "uint *puVar5;" (type_identifier "uint") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (declaration "uint *puVar11;" (type_identifier "uint") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "char *pcVar12;" (primitive_type "char") (pointer_declarator "*pcVar12" (* "*") (identifier "pcVar12")) (; ";")) (expression_statement "bVar1 = *(byte *)(param_1 + 0xfa);" (assignment_expression "bVar1 = *(byte *)(param_1 + 0xfa)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)(param_1 + 0xfa)" (* "*") (cast_expression "(byte *)(param_1 + 0xfa)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xfa)" (( "(") (binary_expression "param_1 + 0xfa" (identifier "param_1") (+ "+") (number_literal "0xfa")) () ")"))))) (; ";")) (expression_statement "uVar9 = (uint)bVar1;" (assignment_expression "uVar9 = (uint)bVar1" (identifier "uVar9") (= "=") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (; ";")) (expression_statement "puVar11 = (uint *)(param_1 + 0x10);" (assignment_expression "puVar11 = (uint *)(param_1 + 0x10)" (identifier "puVar11") (= "=") (cast_expression "(uint *)(param_1 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "iVar7 = uVar9 - 1;" (assignment_expression "iVar7 = uVar9 - 1" (identifier "iVar7") (= "=") (binary_expression "uVar9 - 1" (identifier "uVar9") (- "-") (number_literal "1"))) (; ";")) (expression_statement "pcVar12 = (char *)(param_1 + 0xe0);" (assignment_expression "pcVar12 = (char *)(param_1 + 0xe0)" (identifier "pcVar12") (= "=") (cast_expression "(char *)(param_1 + 0xe0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe0)" (( "(") (binary_expression "param_1 + 0xe0" (identifier "param_1") (+ "+") (number_literal "0xe0")) () ")")))) (; ";")) (if_statement "if (iVar7 != -1) {\n    uVar10 = puVar11[iVar7 * 2];\n    uVar8 = (puVar11 + iVar7 * 2)[1];\n    if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }\n  }" (if "if") (parenthesized_expression "(iVar7 != -1)" (( "(") (binary_expression "iVar7 != -1" (identifier "iVar7") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n    uVar10 = puVar11[iVar7 * 2];\n    uVar8 = (puVar11 + iVar7 * 2)[1];\n    if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }\n  }" ({ "{") (expression_statement "uVar10 = puVar11[iVar7 * 2];" (assignment_expression "uVar10 = puVar11[iVar7 * 2]" (identifier "uVar10") (= "=") (subscript_expression "puVar11[iVar7 * 2]" (identifier "puVar11") ([ "[") (binary_expression "iVar7 * 2" (identifier "iVar7") (* "*") (number_literal "2")) (] "]"))) (; ";")) (expression_statement "uVar8 = (puVar11 + iVar7 * 2)[1];" (assignment_expression "uVar8 = (puVar11 + iVar7 * 2)[1]" (identifier "uVar8") (= "=") (subscript_expression "(puVar11 + iVar7 * 2)[1]" (parenthesized_expression "(puVar11 + iVar7 * 2)" (( "(") (binary_expression "puVar11 + iVar7 * 2" (identifier "puVar11") (+ "+") (binary_expression "iVar7 * 2" (identifier "iVar7") (* "*") (number_literal "2"))) () ")")) ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }\n    else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }" (if "if") (parenthesized_expression "((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8))))" (( "(") (binary_expression "(param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))" (parenthesized_expression "(param_3 < uVar10)" (( "(") (binary_expression "param_3 < uVar10" (identifier "param_3") (< "<") (identifier "uVar10")) () ")")) (|| "||") (parenthesized_expression "((uVar10 == param_3 && (param_4 < uVar8)))" (( "(") (parenthesized_expression "(uVar10 == param_3 && (param_4 < uVar8))" (( "(") (binary_expression "uVar10 == param_3 && (param_4 < uVar8)" (binary_expression "uVar10 == param_3" (identifier "uVar10") (== "==") (identifier "param_3")) (&& "&&") (parenthesized_expression "(param_4 < uVar8)" (( "(") (binary_expression "param_4 < uVar8" (identifier "param_4") (< "<") (identifier "uVar8")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n      puVar5 = (uint *)(param_1 + uVar9 * 8);\n      iVar3 = iVar7;\n      puVar4 = puVar5;\n      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }\n      iVar7 = param_1 + uVar9;\n      while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }\n    }" ({ "{") (expression_statement "puVar5 = (uint *)(param_1 + uVar9 * 8);" (assignment_expression "puVar5 = (uint *)(param_1 + uVar9 * 8)" (identifier "puVar5") (= "=") (cast_expression "(uint *)(param_1 + uVar9 * 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + uVar9 * 8)" (( "(") (binary_expression "param_1 + uVar9 * 8" (identifier "param_1") (+ "+") (binary_expression "uVar9 * 8" (identifier "uVar9") (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "iVar3 = iVar7;" (assignment_expression "iVar3 = iVar7" (identifier "iVar3") (= "=") (identifier "iVar7")) (; ";")) (expression_statement "puVar4 = puVar5;" (assignment_expression "puVar4 = puVar5" (identifier "puVar4") (= "=") (identifier "puVar5")) (; ";")) (for_statement "for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }" (for "for") (( "(") (assignment_expression "iVar2 = uVar9 - 2" (identifier "iVar2") (= "=") (binary_expression "uVar9 - 2" (identifier "uVar9") (- "-") (number_literal "2"))) (; ";") (binary_expression "iVar2 != -1" (identifier "iVar2") (!= "!=") (number_literal "-1")) (; ";") (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n        uVar6 = *puVar4;\n        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }\n        iVar3 = iVar2;\n        puVar4 = puVar4 + -2;\n      }" ({ "{") (expression_statement "uVar6 = *puVar4;" (assignment_expression "uVar6 = *puVar4" (identifier "uVar6") (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (if_statement "if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }" (if "if") (parenthesized_expression "((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4))))" (( "(") (binary_expression "(uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))" (parenthesized_expression "(uVar6 <= param_3)" (( "(") (binary_expression "uVar6 <= param_3" (identifier "uVar6") (<= "<=") (identifier "param_3")) () ")")) (&& "&&") (parenthesized_expression "((uVar6 != param_3 || (puVar4[1] <= param_4)))" (( "(") (parenthesized_expression "(uVar6 != param_3 || (puVar4[1] <= param_4))" (( "(") (binary_expression "uVar6 != param_3 || (puVar4[1] <= param_4)" (binary_expression "uVar6 != param_3" (identifier "uVar6") (!= "!=") (identifier "param_3")) (|| "||") (parenthesized_expression "(puVar4[1] <= param_4)" (( "(") (binary_expression "puVar4[1] <= param_4" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (<= "<=") (identifier "param_4")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;\n          puVar11 = puVar11 + iVar3 * 2;\n          pcVar12 = pcVar12 + iVar3;\n          if (iVar7 <= iVar2) goto LAB_000123d4;\n          break;\n        }" ({ "{") (if_statement "if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;" (if "if") (parenthesized_expression "((uVar6 == param_3) && (puVar4[1] == param_4))" (( "(") (binary_expression "(uVar6 == param_3) && (puVar4[1] == param_4)" (parenthesized_expression "(uVar6 == param_3)" (( "(") (binary_expression "uVar6 == param_3" (identifier "uVar6") (== "==") (identifier "param_3")) () ")")) (&& "&&") (parenthesized_expression "(puVar4[1] == param_4)" (( "(") (binary_expression "puVar4[1] == param_4" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (== "==") (identifier "param_4")) () ")"))) () ")")) (goto_statement "goto LAB_00012434;" (goto "goto") (statement_identifier "LAB_00012434") (; ";"))) (expression_statement "puVar11 = puVar11 + iVar3 * 2;" (assignment_expression "puVar11 = puVar11 + iVar3 * 2" (identifier "puVar11") (= "=") (binary_expression "puVar11 + iVar3 * 2" (identifier "puVar11") (+ "+") (binary_expression "iVar3 * 2" (identifier "iVar3") (* "*") (number_literal "2")))) (; ";")) (expression_statement "pcVar12 = pcVar12 + iVar3;" (assignment_expression "pcVar12 = pcVar12 + iVar3" (identifier "pcVar12") (= "=") (binary_expression "pcVar12 + iVar3" (identifier "pcVar12") (+ "+") (identifier "iVar3"))) (; ";")) (if_statement "if (iVar7 <= iVar2) goto LAB_000123d4;" (if "if") (parenthesized_expression "(iVar7 <= iVar2)" (( "(") (binary_expression "iVar7 <= iVar2" (identifier "iVar7") (<= "<=") (identifier "iVar2")) () ")")) (goto_statement "goto LAB_000123d4;" (goto "goto") (statement_identifier "LAB_000123d4") (; ";"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "iVar3 = iVar2;" (assignment_expression "iVar3 = iVar2" (identifier "iVar3") (= "=") (identifier "iVar2")) (; ";")) (expression_statement "puVar4 = puVar4 + -2;" (assignment_expression "puVar4 = puVar4 + -2" (identifier "puVar4") (= "=") (binary_expression "puVar4 + -2" (identifier "puVar4") (+ "+") (number_literal "-2"))) (; ";")) (} "}"))) (expression_statement "iVar7 = param_1 + uVar9;" (assignment_expression "iVar7 = param_1 + uVar9" (identifier "iVar7") (= "=") (binary_expression "param_1 + uVar9" (identifier "param_1") (+ "+") (identifier "uVar9"))) (; ";")) (while_statement "while( true ) {\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        puVar5[4] = uVar10;\n        puVar5[5] = uVar8;\n        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);\n        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;\n        uVar10 = *puVar5;\n        uVar8 = puVar5[1];\n        puVar5 = puVar5 + -2;\n        iVar7 = iVar7 + -1;\n      }" ({ "{") (expression_statement "puVar5[4] = uVar10;" (assignment_expression "puVar5[4] = uVar10" (subscript_expression "puVar5[4]" (identifier "puVar5") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "puVar5[5] = uVar8;" (assignment_expression "puVar5[5] = uVar8" (subscript_expression "puVar5[5]" (identifier "puVar5") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "uVar8")) (; ";")) (expression_statement "*(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);" (assignment_expression "*(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf)" (pointer_expression "*(undefined1 *)(iVar7 + 0xe0)" (* "*") (cast_expression "(undefined1 *)(iVar7 + 0xe0)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0xe0)" (( "(") (binary_expression "iVar7 + 0xe0" (identifier "iVar7") (+ "+") (number_literal "0xe0")) () ")")))) (= "=") (pointer_expression "*(undefined1 *)(iVar7 + 0xdf)" (* "*") (cast_expression "(undefined1 *)(iVar7 + 0xdf)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0xdf)" (( "(") (binary_expression "iVar7 + 0xdf" (identifier "iVar7") (+ "+") (number_literal "0xdf")) () ")"))))) (; ";")) (if_statement "if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;" (if "if") (parenthesized_expression "((int)(~param_1 + iVar7 + -1) <= iVar2)" (( "(") (binary_expression "(int)(~param_1 + iVar7 + -1) <= iVar2" (cast_expression "(int)(~param_1 + iVar7 + -1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(~param_1 + iVar7 + -1)" (( "(") (binary_expression "~param_1 + iVar7 + -1" (binary_expression "~param_1 + iVar7" (unary_expression "~param_1" (~ "~") (identifier "param_1")) (+ "+") (identifier "iVar7")) (+ "+") (number_literal "-1")) () ")"))) (<= "<=") (identifier "iVar2")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar10 = *puVar5;" (assignment_expression "uVar10 = *puVar5" (identifier "uVar10") (= "=") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (; ";")) (expression_statement "uVar8 = puVar5[1];" (assignment_expression "uVar8 = puVar5[1]" (identifier "uVar8") (= "=") (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar5 = puVar5 + -2;" (assignment_expression "puVar5 = puVar5 + -2" (identifier "puVar5") (= "=") (binary_expression "puVar5 + -2" (identifier "puVar5") (+ "+") (number_literal "-2"))) (; ";")) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }" (else "else") (compound_statement "{\n      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }\n      pcVar12 = pcVar12 + uVar9;\n      puVar11 = puVar11 + uVar9 * 2;\n    }" ({ "{") (if_statement "if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }" (if "if") (parenthesized_expression "((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8))" (( "(") (binary_expression "(param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)" (parenthesized_expression "(param_3 == uVar10)" (( "(") (binary_expression "param_3 == uVar10" (identifier "param_3") (== "==") (identifier "uVar10")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = iVar7, param_4 == uVar8)" (( "(") (comma_expression "iVar2 = iVar7, param_4 == uVar8" (assignment_expression "iVar2 = iVar7" (identifier "iVar2") (= "=") (identifier "iVar7")) (, ",") (binary_expression "param_4 == uVar8" (identifier "param_4") (== "==") (identifier "uVar8"))) () ")"))) () ")")) (compound_statement "{\nLAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];\n        return;\n      }" ({ "{") (labeled_statement "LAB_00012434:\n        pcVar12[iVar2] = param_5 + pcVar12[iVar2];" (statement_identifier "LAB_00012434") (: ":") (expression_statement "pcVar12[iVar2] = param_5 + pcVar12[iVar2];" (assignment_expression "pcVar12[iVar2] = param_5 + pcVar12[iVar2]" (subscript_expression "pcVar12[iVar2]" (identifier "pcVar12") ([ "[") (identifier "iVar2") (] "]")) (= "=") (binary_expression "param_5 + pcVar12[iVar2]" (identifier "param_5") (+ "+") (subscript_expression "pcVar12[iVar2]" (identifier "pcVar12") ([ "[") (identifier "iVar2") (] "]")))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar12 = pcVar12 + uVar9;" (assignment_expression "pcVar12 = pcVar12 + uVar9" (identifier "pcVar12") (= "=") (binary_expression "pcVar12 + uVar9" (identifier "pcVar12") (+ "+") (identifier "uVar9"))) (; ";")) (expression_statement "puVar11 = puVar11 + uVar9 * 2;" (assignment_expression "puVar11 = puVar11 + uVar9 * 2" (identifier "puVar11") (= "=") (binary_expression "puVar11 + uVar9 * 2" (identifier "puVar11") (+ "+") (binary_expression "uVar9 * 2" (identifier "uVar9") (* "*") (number_literal "2")))) (; ";")) (} "}")))) (} "}"))) (labeled_statement "LAB_000123d4:\n  *puVar11 = param_3;" (statement_identifier "LAB_000123d4") (: ":") (expression_statement "*puVar11 = param_3;" (assignment_expression "*puVar11 = param_3" (pointer_expression "*puVar11" (* "*") (identifier "puVar11")) (= "=") (identifier "param_3")) (; ";"))) (expression_statement "puVar11[1] = param_4;" (assignment_expression "puVar11[1] = param_4" (subscript_expression "puVar11[1]" (identifier "puVar11") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*pcVar12 = param_5;" (assignment_expression "*pcVar12 = param_5" (pointer_expression "*pcVar12" (* "*") (identifier "pcVar12")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "*(byte *)(param_1 + 0xfa) = bVar1 + 1;" (assignment_expression "*(byte *)(param_1 + 0xfa) = bVar1 + 1" (pointer_expression "*(byte *)(param_1 + 0xfa)" (* "*") (cast_expression "(byte *)(param_1 + 0xfa)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xfa)" (( "(") (binary_expression "param_1 + 0xfa" (identifier "param_1") (+ "+") (number_literal "0xfa")) () ")")))) (= "=") (binary_expression "bVar1 + 1" (identifier "bVar1") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (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)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (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: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (break_statement))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (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: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (unary_expression argument: (identifier)) right: (identifier)) right: (number_literal)))) right: (identifier))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (identifier)))))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) 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: (identifier) right: (number_literal)))) (return_statement))))

void MASKED(uint param_1,undefined4 param_2,uint param_3,uint param_4,char param_5)

{
  byte bVar1;
  int iVar2;
  int iVar3;
  uint *puVar4;
  uint *puVar5;
  uint uVar6;
  int iVar7;
  uint uVar8;
  uint uVar9;
  uint uVar10;
  uint *puVar11;
  char *pcVar12;
  
  bVar1 = *(byte *)(param_1 + 0xfa);
  uVar9 = (uint)bVar1;
  puVar11 = (uint *)(param_1 + 0x10);
  iVar7 = uVar9 - 1;
  pcVar12 = (char *)(param_1 + 0xe0);
  if (iVar7 != -1) {
    uVar10 = puVar11[iVar7 * 2];
    uVar8 = (puVar11 + iVar7 * 2)[1];
    if ((param_3 < uVar10) || ((uVar10 == param_3 && (param_4 < uVar8)))) {
      puVar5 = (uint *)(param_1 + uVar9 * 8);
      iVar3 = iVar7;
      puVar4 = puVar5;
      for (iVar2 = uVar9 - 2; iVar2 != -1; iVar2 = iVar2 + -1) {
        uVar6 = *puVar4;
        if ((uVar6 <= param_3) && ((uVar6 != param_3 || (puVar4[1] <= param_4)))) {
          if ((uVar6 == param_3) && (puVar4[1] == param_4)) goto LAB_00012434;
          puVar11 = puVar11 + iVar3 * 2;
          pcVar12 = pcVar12 + iVar3;
          if (iVar7 <= iVar2) goto LAB_000123d4;
          break;
        }
        iVar3 = iVar2;
        puVar4 = puVar4 + -2;
      }
      iVar7 = param_1 + uVar9;
      while( true ) {
        puVar5[4] = uVar10;
        puVar5[5] = uVar8;
        *(undefined1 *)(iVar7 + 0xe0) = *(undefined1 *)(iVar7 + 0xdf);
        if ((int)(~param_1 + iVar7 + -1) <= iVar2) break;
        uVar10 = *puVar5;
        uVar8 = puVar5[1];
        puVar5 = puVar5 + -2;
        iVar7 = iVar7 + -1;
      }
    }
    else {
      if ((param_3 == uVar10) && (iVar2 = iVar7, param_4 == uVar8)) {
LAB_00012434:
        pcVar12[iVar2] = param_5 + pcVar12[iVar2];
        return;
      }
      pcVar12 = pcVar12 + uVar9;
      puVar11 = puVar11 + uVar9 * 2;
    }
  }
LAB_000123d4:
  *puVar11 = param_3;
  puVar11[1] = param_4;
  *pcVar12 = param_5;
  *(byte *)(param_1 + 0xfa) = bVar1 + 1;
  return;
}

