
int pad_output(int cur_col,int target_column)

{
  int *piVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  int iVar5;
  int align_target;
  int *piVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  
  puVar3 = PTR_settings_00035514;
  puVar2 = PTR_DAT_000354d8;
  if (target_column <= cur_col) {
    return cur_col;
  }
  if ((*(int *)(PTR_settings_00035514 + 4) == 0) ||
     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)) goto LAB_0001b1ec;
  iVar9 = target_column;
  if (*(int *)(PTR_settings_00035514 + 0xf4) != 0) {
    iVar5 = *(int *)PTR_parser_state_tos_000354ec;
    iVar8 = *(int *)(iVar5 + 0x20);
    iVar9 = *(int *)(iVar5 + 0x74);
    if (target_column < *(int *)(iVar5 + 0x74)) {
      iVar9 = target_column;
    }
    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);
    iVar7 = *piVar6;
    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {
      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {
        do {
          iVar8 = iVar8 + -1;
          if (iVar8 == 0) goto LAB_0001b16c;
          piVar1 = piVar6 + -1;
          piVar6 = piVar6 + -1;
        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));
        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);
      }
LAB_0001b16c:
      iVar9 = iVar9 - cur_col;
    }
    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - cur_col, iVar7 - 0x1eU < 2)) {
      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);
      goto LAB_0001b16c;
    }
    if (iVar4 == 0) {
      trap(7);
    }
    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + cur_col;
  }
  if (iVar4 == 0) {
    trap(7);
  }
  iVar4 = (iVar4 - (cur_col + -1) % iVar4) + cur_col;
  if (iVar4 <= iVar9) {
    do {
      cur_col = iVar4;
      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));
      iVar4 = cur_col + *(int *)(puVar3 + 8);
    } while (cur_col + *(int *)(puVar3 + 8) <= iVar9);
    if (target_column <= cur_col) {
      return cur_col;
    }
  }
LAB_0001b1ec:
  do {
    cur_col = cur_col + 1;
    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));
  } while (cur_col < target_column);
  return cur_col;
}



int FUN_0001b0b0(int param_1,int param_2)

{
  int *piVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  int iVar5;
  int *piVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  
  puVar3 = PTR_settings_00035514;
  puVar2 = PTR_DAT_000354d8;
  if (param_2 <= param_1) {
    return param_1;
  }
  if ((*(int *)(PTR_settings_00035514 + 4) == 0) ||
     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)) goto LAB_0001b1ec;
  iVar9 = param_2;
  if (*(int *)(PTR_settings_00035514 + 0xf4) != 0) {
    iVar5 = *(int *)PTR_parser_state_tos_000354ec;
    iVar8 = *(int *)(iVar5 + 0x20);
    iVar9 = *(int *)(iVar5 + 0x74);
    if (param_2 < *(int *)(iVar5 + 0x74)) {
      iVar9 = param_2;
    }
    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);
    iVar7 = *piVar6;
    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {
      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {
        do {
          iVar8 = iVar8 + -1;
          if (iVar8 == 0) goto LAB_0001b16c;
          piVar1 = piVar6 + -1;
          piVar6 = piVar6 + -1;
        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));
        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);
      }
LAB_0001b16c:
      iVar9 = iVar9 - param_1;
    }
    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {
      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);
      goto LAB_0001b16c;
    }
    if (iVar4 == 0) {
      trap(7);
    }
    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;
  }
  if (iVar4 == 0) {
    trap(7);
  }
  iVar4 = (iVar4 - (param_1 + -1) % iVar4) + param_1;
  if (iVar4 <= iVar9) {
    do {
      param_1 = iVar4;
      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));
      iVar4 = param_1 + *(int *)(puVar3 + 8);
    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);
    if (param_2 <= param_1) {
      return param_1;
    }
  }
LAB_0001b1ec:
  do {
    param_1 = param_1 + 1;
    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));
  } while (param_1 < param_2);
  return param_1;
}


lui gp,0x2
addiu gp,gp,0x2400
addu gp,gp,t9
addiu sp,sp,-0x30
slt v0,a0,a1
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
beq v0,zero,0x0001b230
_sw s0,0x18(sp)
lw s4,-0x7f9c(gp)
lw v0,0x4(s4)
beq v0,zero,0x0001b258
_or s1,a1,zero
lw v0,0x8(s4)
slti v1,v0,0x2
bne v1,zero,0x0001b258
_nop
lw v1,0xf4(s4)
beq v1,zero,0x0001b188
_or s3,a1,zero
lw v1,-0x7fc4(gp)
li t1,0x8
lw v1,0x0(v1)
lw a2,0x74(v1)
lw a3,0x20(v1)
lw a1,0x8(v1)
slt s3,s1,a2
lw t2,0x14(v1)
sll t0,a3,0x2
movn a2,s1,s3
addu a1,a1,t0
or s3,a2,zero
beq t2,t1,0x0001b260
_lw a2,0x0(a1)
li a1,0x1c
beq a2,a1,0x0001b160
_addiu a1,a2,-0x1e
sltiu a1,a1,0x2
beq a1,zero,0x0001b170
_subu s3,s3,a0
lw v1,0x10(v1)
addu v1,v1,t0
lw s3,0x0(v1)
subu s3,s3,a0
addiu s3,s3,0x1
teq v0,zero
div s3,v0
mflo s3
mul v1,s3,v0
addu s3,v1,a0
addiu s0,a0,-0x1
teq v0,zero
div s0,v0
mfhi s0
subu s0,v0,s0
addu s0,s0,a0
slt v0,s3,s0
beq v0,zero,0x0001b1b8
_lw s2,-0x7fd8(gp)
b 0x0001b1ec
_or s0,a0,zero
or s0,v0,zero
lw t9,-0x7dd8(gp)
li a0,0x9
jalr t9
_lw a1,0x59e4(s2)
lw v0,0x8(s4)
addu v0,s0,v0
slt v1,s3,v0
beq v1,zero,0x0001b1b4
_lw gp,0x10(sp)
slt v0,s0,s1
beq v0,zero,0x0001b234
_or a0,s0,zero
or s0,a0,zero
lw t9,-0x7dd8(gp)
li a0,0x20
lw a1,0x59e4(s2)
jalr t9
_addiu s0,s0,0x1
slt v0,s0,s1
bne v0,zero,0x0001b1ec
_lw gp,0x10(sp)
lw ra,0x2c(sp)
or v0,s0,zero
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
or s0,a0,zero
lw ra,0x2c(sp)
or v0,s0,zero
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
b 0x0001b1e8
_lw s2,-0x7fd8(gp)
li t1,0x20
bne a2,t1,0x0001b148
_nop
lw a2,-0x7f68(gp)
lw a2,0x0(a2)
lb a2,0x0(a2)
beq a2,zero,0x0001b16c
_nop
blez a3,0x0001b16c
_li t2,0x1c
b 0x0001b29c
_addiu a3,a3,-0x1
sltiu a2,a2,0x2
bne a2,zero,0x0001b2b4
_addiu a3,a3,-0x1
beq a3,zero,0x0001b16c
_sll t1,a3,0x2
lw t0,-0x4(a1)
addiu a1,a1,-0x4
bne t0,t2,0x0001b290
_addiu a2,t0,-0x1e
lw v1,0x10(v1)
addu t1,v1,t1
b 0x0001b16c
_lw s3,0x0(t1)
(translation_unit "int FUN_0001b0b0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_settings_00035514;\n  puVar2 = PTR_DAT_000354d8;\n  if (param_2 <= param_1) {\n    return param_1;\n  }\n  if ((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)) goto LAB_0001b1ec;\n  iVar9 = param_2;\n  if (*(int *)(PTR_settings_00035514 + 0xf4) != 0) {\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (param_2 < *(int *)(iVar5 + 0x74)) {\n      iVar9 = param_2;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;\n  }\n  if (iVar4 == 0) {\n    trap(7);\n  }\n  iVar4 = (iVar4 - (param_1 + -1) % iVar4) + param_1;\n  if (iVar4 <= iVar9) {\n    do {\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);\n    if (param_2 <= param_1) {\n      return param_1;\n    }\n  }\nLAB_0001b1ec:\n  do {\n    param_1 = param_1 + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (param_1 < param_2);\n  return param_1;\n}\n\n" (function_definition "int FUN_0001b0b0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_settings_00035514;\n  puVar2 = PTR_DAT_000354d8;\n  if (param_2 <= param_1) {\n    return param_1;\n  }\n  if ((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)) goto LAB_0001b1ec;\n  iVar9 = param_2;\n  if (*(int *)(PTR_settings_00035514 + 0xf4) != 0) {\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (param_2 < *(int *)(iVar5 + 0x74)) {\n      iVar9 = param_2;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;\n  }\n  if (iVar4 == 0) {\n    trap(7);\n  }\n  iVar4 = (iVar4 - (param_1 + -1) % iVar4) + param_1;\n  if (iVar4 <= iVar9) {\n    do {\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);\n    if (param_2 <= param_1) {\n      return param_1;\n    }\n  }\nLAB_0001b1ec:\n  do {\n    param_1 = param_1 + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (param_1 < param_2);\n  return param_1;\n}" primitive_type (function_declarator "FUN_0001b0b0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_settings_00035514;\n  puVar2 = PTR_DAT_000354d8;\n  if (param_2 <= param_1) {\n    return param_1;\n  }\n  if ((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)) goto LAB_0001b1ec;\n  iVar9 = param_2;\n  if (*(int *)(PTR_settings_00035514 + 0xf4) != 0) {\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (param_2 < *(int *)(iVar5 + 0x74)) {\n      iVar9 = param_2;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;\n  }\n  if (iVar4 == 0) {\n    trap(7);\n  }\n  iVar4 = (iVar4 - (param_1 + -1) % iVar4) + param_1;\n  if (iVar4 <= iVar9) {\n    do {\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);\n    if (param_2 <= param_1) {\n      return param_1;\n    }\n  }\nLAB_0001b1ec:\n  do {\n    param_1 = param_1 + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (param_1 < param_2);\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (expression_statement "puVar3 = PTR_settings_00035514;" (assignment_expression "puVar3 = PTR_settings_00035514" identifier = identifier) ;) (expression_statement "puVar2 = PTR_DAT_000354d8;" (assignment_expression "puVar2 = PTR_DAT_000354d8" identifier = identifier) ;) (if_statement "if (param_2 <= param_1) {\n    return param_1;\n  }" if (parenthesized_expression "(param_2 <= param_1)" ( (binary_expression "param_2 <= param_1" identifier <= identifier) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (if_statement "if ((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)) goto LAB_0001b1ec;" if (parenthesized_expression "((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2))" ( (binary_expression "(*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)" (parenthesized_expression "(*(int *)(PTR_settings_00035514 + 4) == 0)" ( (binary_expression "*(int *)(PTR_settings_00035514 + 4) == 0" (pointer_expression "*(int *)(PTR_settings_00035514 + 4)" * (cast_expression "(int *)(PTR_settings_00035514 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_settings_00035514 + 4)" ( (binary_expression "PTR_settings_00035514 + 4" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)" ( (comma_expression "iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2" (assignment_expression "iVar4 = *(int *)(PTR_settings_00035514 + 8)" identifier = (pointer_expression "*(int *)(PTR_settings_00035514 + 8)" * (cast_expression "(int *)(PTR_settings_00035514 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_settings_00035514 + 8)" ( (binary_expression "PTR_settings_00035514 + 8" identifier + number_literal) ))))) , (binary_expression "iVar4 < 2" identifier < number_literal)) ))) )) (goto_statement "goto LAB_0001b1ec;" goto statement_identifier ;)) (expression_statement "iVar9 = param_2;" (assignment_expression "iVar9 = param_2" identifier = identifier) ;) (if_statement "if (*(int *)(PTR_settings_00035514 + 0xf4) != 0) {\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (param_2 < *(int *)(iVar5 + 0x74)) {\n      iVar9 = param_2;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;\n  }" if (parenthesized_expression "(*(int *)(PTR_settings_00035514 + 0xf4) != 0)" ( (binary_expression "*(int *)(PTR_settings_00035514 + 0xf4) != 0" (pointer_expression "*(int *)(PTR_settings_00035514 + 0xf4)" * (cast_expression "(int *)(PTR_settings_00035514 + 0xf4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_settings_00035514 + 0xf4)" ( (binary_expression "PTR_settings_00035514 + 0xf4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (param_2 < *(int *)(iVar5 + 0x74)) {\n      iVar9 = param_2;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;\n  }" { (expression_statement "iVar5 = *(int *)PTR_parser_state_tos_000354ec;" (assignment_expression "iVar5 = *(int *)PTR_parser_state_tos_000354ec" identifier = (pointer_expression "*(int *)PTR_parser_state_tos_000354ec" * (cast_expression "(int *)PTR_parser_state_tos_000354ec" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar8 = *(int *)(iVar5 + 0x20);" (assignment_expression "iVar8 = *(int *)(iVar5 + 0x20)" identifier = (pointer_expression "*(int *)(iVar5 + 0x20)" * (cast_expression "(int *)(iVar5 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x20)" ( (binary_expression "iVar5 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "iVar9 = *(int *)(iVar5 + 0x74);" (assignment_expression "iVar9 = *(int *)(iVar5 + 0x74)" identifier = (pointer_expression "*(int *)(iVar5 + 0x74)" * (cast_expression "(int *)(iVar5 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x74)" ( (binary_expression "iVar5 + 0x74" identifier + number_literal) ))))) ;) (if_statement "if (param_2 < *(int *)(iVar5 + 0x74)) {\n      iVar9 = param_2;\n    }" if (parenthesized_expression "(param_2 < *(int *)(iVar5 + 0x74))" ( (binary_expression "param_2 < *(int *)(iVar5 + 0x74)" identifier < (pointer_expression "*(int *)(iVar5 + 0x74)" * (cast_expression "(int *)(iVar5 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x74)" ( (binary_expression "iVar5 + 0x74" identifier + number_literal) ))))) )) (compound_statement "{\n      iVar9 = param_2;\n    }" { (expression_statement "iVar9 = param_2;" (assignment_expression "iVar9 = param_2" identifier = identifier) ;) })) (expression_statement "piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);" (assignment_expression "piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4)" identifier = (cast_expression "(int *)(*(int *)(iVar5 + 8) + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 8) + iVar8 * 4)" ( (binary_expression "*(int *)(iVar5 + 8) + iVar8 * 4" (pointer_expression "*(int *)(iVar5 + 8)" * (cast_expression "(int *)(iVar5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) )))) + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) ;) (expression_statement "iVar7 = *piVar6;" (assignment_expression "iVar7 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (if_statement "if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }" if (parenthesized_expression "((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20))" ( (binary_expression "(*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)" (parenthesized_expression "(*(int *)(iVar5 + 0x14) == 8)" ( (binary_expression "*(int *)(iVar5 + 0x14) == 8" (pointer_expression "*(int *)(iVar5 + 0x14)" * (cast_expression "(int *)(iVar5 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(iVar7 == 0x20)" ( (binary_expression "iVar7 == 0x20" identifier == number_literal) ))) )) (compound_statement "{\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }" { (if_statement "if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }" if (parenthesized_expression "((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8))" ( (binary_expression "(**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)" (parenthesized_expression "(**(char **)PTR_s_code_00035548 != '\0')" ( (binary_expression "**(char **)PTR_s_code_00035548 != '\0'" (pointer_expression "**(char **)PTR_s_code_00035548" * (pointer_expression "*(char **)PTR_s_code_00035548" * (cast_expression "(char **)PTR_s_code_00035548" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) ))) )) (compound_statement "{\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }" { (do_statement "do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));" do (compound_statement "{\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        }" { (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (if_statement "if (iVar8 == 0) goto LAB_0001b16c;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001b16c;" goto statement_identifier ;)) (expression_statement "piVar1 = piVar6 + -1;" (assignment_expression "piVar1 = piVar6 + -1" identifier = (binary_expression "piVar6 + -1" identifier + number_literal)) ;) (expression_statement "piVar6 = piVar6 + -1;" (assignment_expression "piVar6 = piVar6 + -1" identifier = (binary_expression "piVar6 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU))" ( (binary_expression "(*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU)" (parenthesized_expression "(*piVar1 != 0x1c)" ( (binary_expression "*piVar1 != 0x1c" (pointer_expression "*piVar1" * identifier) != number_literal) )) && (parenthesized_expression "(1 < *piVar1 - 0x1eU)" ( (binary_expression "1 < *piVar1 - 0x1eU" number_literal < (binary_expression "*piVar1 - 0x1eU" (pointer_expression "*piVar1" * identifier) - number_literal)) ))) )) ;) (expression_statement "iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);" (assignment_expression "iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" * (cast_expression "(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 0x10) + iVar8 * 4)" ( (binary_expression "*(int *)(iVar5 + 0x10) + iVar8 * 4" (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))) + (binary_expression "iVar8 * 4" identifier * number_literal)) ))))) ;) })) (labeled_statement "LAB_0001b16c:\n      iVar9 = iVar9 - param_1;" statement_identifier : (expression_statement "iVar9 = iVar9 - param_1;" (assignment_expression "iVar9 = iVar9 - param_1" identifier = (binary_expression "iVar9 - param_1" identifier - identifier)) ;)) }) (else_clause "else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }" else (if_statement "if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }" if (parenthesized_expression "((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2))" ( (binary_expression "(iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)" (parenthesized_expression "(iVar7 == 0x1c)" ( (binary_expression "iVar7 == 0x1c" identifier == number_literal) )) || (parenthesized_expression "(iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)" ( (comma_expression "iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2" (assignment_expression "iVar9 = iVar9 - param_1" identifier = (binary_expression "iVar9 - param_1" identifier - identifier)) , (binary_expression "iVar7 - 0x1eU < 2" (binary_expression "iVar7 - 0x1eU" identifier - number_literal) < number_literal)) ))) )) (compound_statement "{\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }" { (expression_statement "iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);" (assignment_expression "iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" * (cast_expression "(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 0x10) + iVar8 * 4)" ( (binary_expression "*(int *)(iVar5 + 0x10) + iVar8 * 4" (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))) + (binary_expression "iVar8 * 4" identifier * number_literal)) ))))) ;) (goto_statement "goto LAB_0001b16c;" goto statement_identifier ;) })))) (if_statement "if (iVar4 == 0) {\n      trap(7);\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      trap(7);\n    }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;" (assignment_expression "iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1" identifier = (binary_expression "((iVar9 + 1) / iVar4) * iVar4 + param_1" (binary_expression "((iVar9 + 1) / iVar4) * iVar4" (parenthesized_expression "((iVar9 + 1) / iVar4)" ( (binary_expression "(iVar9 + 1) / iVar4" (parenthesized_expression "(iVar9 + 1)" ( (binary_expression "iVar9 + 1" identifier + number_literal) )) / identifier) )) * identifier) + identifier)) ;) })) (if_statement "if (iVar4 == 0) {\n    trap(7);\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    trap(7);\n  }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "iVar4 = (iVar4 - (param_1 + -1) % iVar4) + param_1;" (assignment_expression "iVar4 = (iVar4 - (param_1 + -1) % iVar4) + param_1" identifier = (binary_expression "(iVar4 - (param_1 + -1) % iVar4) + param_1" (parenthesized_expression "(iVar4 - (param_1 + -1) % iVar4)" ( (binary_expression "iVar4 - (param_1 + -1) % iVar4" identifier - (binary_expression "(param_1 + -1) % iVar4" (parenthesized_expression "(param_1 + -1)" ( (binary_expression "param_1 + -1" identifier + number_literal) )) % identifier)) )) + identifier)) ;) (if_statement "if (iVar4 <= iVar9) {\n    do {\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);\n    if (param_2 <= param_1) {\n      return param_1;\n    }\n  }" if (parenthesized_expression "(iVar4 <= iVar9)" ( (binary_expression "iVar4 <= iVar9" identifier <= identifier) )) (compound_statement "{\n    do {\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);\n    if (param_2 <= param_1) {\n      return param_1;\n    }\n  }" { (do_statement "do {\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);" do (compound_statement "{\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    }" { (expression_statement "param_1 = iVar4;" (assignment_expression "param_1 = iVar4" identifier = identifier) ;) (expression_statement "(*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));" (call_expression "(*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4))" (parenthesized_expression "(*(code *)PTR_putc_000356d8)" ( (pointer_expression "*(code *)PTR_putc_000356d8" * (cast_expression "(code *)PTR_putc_000356d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(9,*(undefined4 *)(puVar2 + 0x59e4))" ( number_literal , (pointer_expression "*(undefined4 *)(puVar2 + 0x59e4)" * (cast_expression "(undefined4 *)(puVar2 + 0x59e4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x59e4)" ( (binary_expression "puVar2 + 0x59e4" identifier + number_literal) )))) ))) ;) (expression_statement "iVar4 = param_1 + *(int *)(puVar3 + 8);" (assignment_expression "iVar4 = param_1 + *(int *)(puVar3 + 8)" identifier = (binary_expression "param_1 + *(int *)(puVar3 + 8)" identifier + (pointer_expression "*(int *)(puVar3 + 8)" * (cast_expression "(int *)(puVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 8)" ( (binary_expression "puVar3 + 8" identifier + number_literal) )))))) ;) }) while (parenthesized_expression "(param_1 + *(int *)(puVar3 + 8) <= iVar9)" ( (binary_expression "param_1 + *(int *)(puVar3 + 8) <= iVar9" (binary_expression "param_1 + *(int *)(puVar3 + 8)" identifier + (pointer_expression "*(int *)(puVar3 + 8)" * (cast_expression "(int *)(puVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 8)" ( (binary_expression "puVar3 + 8" identifier + number_literal) ))))) <= identifier) )) ;) (if_statement "if (param_2 <= param_1) {\n      return param_1;\n    }" if (parenthesized_expression "(param_2 <= param_1)" ( (binary_expression "param_2 <= param_1" identifier <= identifier) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) })) (labeled_statement "LAB_0001b1ec:\n  do {\n    param_1 = param_1 + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (param_1 < param_2);" statement_identifier : (do_statement "do {\n    param_1 = param_1 + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (param_1 < param_2);" do (compound_statement "{\n    param_1 = param_1 + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));" (call_expression "(*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4))" (parenthesized_expression "(*(code *)PTR_putc_000356d8)" ( (pointer_expression "*(code *)PTR_putc_000356d8" * (cast_expression "(code *)PTR_putc_000356d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x20,*(undefined4 *)(puVar2 + 0x59e4))" ( number_literal , (pointer_expression "*(undefined4 *)(puVar2 + 0x59e4)" * (cast_expression "(undefined4 *)(puVar2 + 0x59e4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x59e4)" ( (binary_expression "puVar2 + 0x59e4" identifier + number_literal) )))) ))) ;) }) while (parenthesized_expression "(param_1 < param_2)" ( (binary_expression "param_1 < param_2" identifier < identifier) )) ;)) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "int pad_output(int cur_col,int target_column)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int align_target;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_settings_00035514;\n  puVar2 = PTR_DAT_000354d8;\n  if (target_column <= cur_col) {\n    return cur_col;\n  }\n  if ((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)) goto LAB_0001b1ec;\n  iVar9 = target_column;\n  if (*(int *)(PTR_settings_00035514 + 0xf4) != 0) {\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (target_column < *(int *)(iVar5 + 0x74)) {\n      iVar9 = target_column;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - cur_col;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - cur_col, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + cur_col;\n  }\n  if (iVar4 == 0) {\n    trap(7);\n  }\n  iVar4 = (iVar4 - (cur_col + -1) % iVar4) + cur_col;\n  if (iVar4 <= iVar9) {\n    do {\n      cur_col = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = cur_col + *(int *)(puVar3 + 8);\n    } while (cur_col + *(int *)(puVar3 + 8) <= iVar9);\n    if (target_column <= cur_col) {\n      return cur_col;\n    }\n  }\nLAB_0001b1ec:\n  do {\n    cur_col = cur_col + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (cur_col < target_column);\n  return cur_col;\n}\n\n" (function_definition "int pad_output(int cur_col,int target_column)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int align_target;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_settings_00035514;\n  puVar2 = PTR_DAT_000354d8;\n  if (target_column <= cur_col) {\n    return cur_col;\n  }\n  if ((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)) goto LAB_0001b1ec;\n  iVar9 = target_column;\n  if (*(int *)(PTR_settings_00035514 + 0xf4) != 0) {\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (target_column < *(int *)(iVar5 + 0x74)) {\n      iVar9 = target_column;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - cur_col;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - cur_col, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + cur_col;\n  }\n  if (iVar4 == 0) {\n    trap(7);\n  }\n  iVar4 = (iVar4 - (cur_col + -1) % iVar4) + cur_col;\n  if (iVar4 <= iVar9) {\n    do {\n      cur_col = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = cur_col + *(int *)(puVar3 + 8);\n    } while (cur_col + *(int *)(puVar3 + 8) <= iVar9);\n    if (target_column <= cur_col) {\n      return cur_col;\n    }\n  }\nLAB_0001b1ec:\n  do {\n    cur_col = cur_col + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (cur_col < target_column);\n  return cur_col;\n}" primitive_type (function_declarator "pad_output(int cur_col,int target_column)" identifier (parameter_list "(int cur_col,int target_column)" ( (parameter_declaration "int cur_col" primitive_type identifier) , (parameter_declaration "int target_column" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int align_target;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_settings_00035514;\n  puVar2 = PTR_DAT_000354d8;\n  if (target_column <= cur_col) {\n    return cur_col;\n  }\n  if ((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)) goto LAB_0001b1ec;\n  iVar9 = target_column;\n  if (*(int *)(PTR_settings_00035514 + 0xf4) != 0) {\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (target_column < *(int *)(iVar5 + 0x74)) {\n      iVar9 = target_column;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - cur_col;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - cur_col, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + cur_col;\n  }\n  if (iVar4 == 0) {\n    trap(7);\n  }\n  iVar4 = (iVar4 - (cur_col + -1) % iVar4) + cur_col;\n  if (iVar4 <= iVar9) {\n    do {\n      cur_col = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = cur_col + *(int *)(puVar3 + 8);\n    } while (cur_col + *(int *)(puVar3 + 8) <= iVar9);\n    if (target_column <= cur_col) {\n      return cur_col;\n    }\n  }\nLAB_0001b1ec:\n  do {\n    cur_col = cur_col + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (cur_col < target_column);\n  return cur_col;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int align_target;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (expression_statement "puVar3 = PTR_settings_00035514;" (assignment_expression "puVar3 = PTR_settings_00035514" identifier = identifier) ;) (expression_statement "puVar2 = PTR_DAT_000354d8;" (assignment_expression "puVar2 = PTR_DAT_000354d8" identifier = identifier) ;) (if_statement "if (target_column <= cur_col) {\n    return cur_col;\n  }" if (parenthesized_expression "(target_column <= cur_col)" ( (binary_expression "target_column <= cur_col" identifier <= identifier) )) (compound_statement "{\n    return cur_col;\n  }" { (return_statement "return cur_col;" return identifier ;) })) (if_statement "if ((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)) goto LAB_0001b1ec;" if (parenthesized_expression "((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2))" ( (binary_expression "(*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)" (parenthesized_expression "(*(int *)(PTR_settings_00035514 + 4) == 0)" ( (binary_expression "*(int *)(PTR_settings_00035514 + 4) == 0" (pointer_expression "*(int *)(PTR_settings_00035514 + 4)" * (cast_expression "(int *)(PTR_settings_00035514 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_settings_00035514 + 4)" ( (binary_expression "PTR_settings_00035514 + 4" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)" ( (comma_expression "iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2" (assignment_expression "iVar4 = *(int *)(PTR_settings_00035514 + 8)" identifier = (pointer_expression "*(int *)(PTR_settings_00035514 + 8)" * (cast_expression "(int *)(PTR_settings_00035514 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_settings_00035514 + 8)" ( (binary_expression "PTR_settings_00035514 + 8" identifier + number_literal) ))))) , (binary_expression "iVar4 < 2" identifier < number_literal)) ))) )) (goto_statement "goto LAB_0001b1ec;" goto statement_identifier ;)) (expression_statement "iVar9 = target_column;" (assignment_expression "iVar9 = target_column" identifier = identifier) ;) (if_statement "if (*(int *)(PTR_settings_00035514 + 0xf4) != 0) {\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (target_column < *(int *)(iVar5 + 0x74)) {\n      iVar9 = target_column;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - cur_col;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - cur_col, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + cur_col;\n  }" if (parenthesized_expression "(*(int *)(PTR_settings_00035514 + 0xf4) != 0)" ( (binary_expression "*(int *)(PTR_settings_00035514 + 0xf4) != 0" (pointer_expression "*(int *)(PTR_settings_00035514 + 0xf4)" * (cast_expression "(int *)(PTR_settings_00035514 + 0xf4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_settings_00035514 + 0xf4)" ( (binary_expression "PTR_settings_00035514 + 0xf4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (target_column < *(int *)(iVar5 + 0x74)) {\n      iVar9 = target_column;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - cur_col;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - cur_col, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + cur_col;\n  }" { (expression_statement "iVar5 = *(int *)PTR_parser_state_tos_000354ec;" (assignment_expression "iVar5 = *(int *)PTR_parser_state_tos_000354ec" identifier = (pointer_expression "*(int *)PTR_parser_state_tos_000354ec" * (cast_expression "(int *)PTR_parser_state_tos_000354ec" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar8 = *(int *)(iVar5 + 0x20);" (assignment_expression "iVar8 = *(int *)(iVar5 + 0x20)" identifier = (pointer_expression "*(int *)(iVar5 + 0x20)" * (cast_expression "(int *)(iVar5 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x20)" ( (binary_expression "iVar5 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "iVar9 = *(int *)(iVar5 + 0x74);" (assignment_expression "iVar9 = *(int *)(iVar5 + 0x74)" identifier = (pointer_expression "*(int *)(iVar5 + 0x74)" * (cast_expression "(int *)(iVar5 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x74)" ( (binary_expression "iVar5 + 0x74" identifier + number_literal) ))))) ;) (if_statement "if (target_column < *(int *)(iVar5 + 0x74)) {\n      iVar9 = target_column;\n    }" if (parenthesized_expression "(target_column < *(int *)(iVar5 + 0x74))" ( (binary_expression "target_column < *(int *)(iVar5 + 0x74)" identifier < (pointer_expression "*(int *)(iVar5 + 0x74)" * (cast_expression "(int *)(iVar5 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x74)" ( (binary_expression "iVar5 + 0x74" identifier + number_literal) ))))) )) (compound_statement "{\n      iVar9 = target_column;\n    }" { (expression_statement "iVar9 = target_column;" (assignment_expression "iVar9 = target_column" identifier = identifier) ;) })) (expression_statement "piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);" (assignment_expression "piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4)" identifier = (cast_expression "(int *)(*(int *)(iVar5 + 8) + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 8) + iVar8 * 4)" ( (binary_expression "*(int *)(iVar5 + 8) + iVar8 * 4" (pointer_expression "*(int *)(iVar5 + 8)" * (cast_expression "(int *)(iVar5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) )))) + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) ;) (expression_statement "iVar7 = *piVar6;" (assignment_expression "iVar7 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (if_statement "if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - cur_col;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - cur_col, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }" if (parenthesized_expression "((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20))" ( (binary_expression "(*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)" (parenthesized_expression "(*(int *)(iVar5 + 0x14) == 8)" ( (binary_expression "*(int *)(iVar5 + 0x14) == 8" (pointer_expression "*(int *)(iVar5 + 0x14)" * (cast_expression "(int *)(iVar5 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(iVar7 == 0x20)" ( (binary_expression "iVar7 == 0x20" identifier == number_literal) ))) )) (compound_statement "{\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - cur_col;\n    }" { (if_statement "if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }" if (parenthesized_expression "((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8))" ( (binary_expression "(**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)" (parenthesized_expression "(**(char **)PTR_s_code_00035548 != '\0')" ( (binary_expression "**(char **)PTR_s_code_00035548 != '\0'" (pointer_expression "**(char **)PTR_s_code_00035548" * (pointer_expression "*(char **)PTR_s_code_00035548" * (cast_expression "(char **)PTR_s_code_00035548" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) ))) )) (compound_statement "{\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }" { (do_statement "do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));" do (compound_statement "{\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        }" { (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (if_statement "if (iVar8 == 0) goto LAB_0001b16c;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001b16c;" goto statement_identifier ;)) (expression_statement "piVar1 = piVar6 + -1;" (assignment_expression "piVar1 = piVar6 + -1" identifier = (binary_expression "piVar6 + -1" identifier + number_literal)) ;) (expression_statement "piVar6 = piVar6 + -1;" (assignment_expression "piVar6 = piVar6 + -1" identifier = (binary_expression "piVar6 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU))" ( (binary_expression "(*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU)" (parenthesized_expression "(*piVar1 != 0x1c)" ( (binary_expression "*piVar1 != 0x1c" (pointer_expression "*piVar1" * identifier) != number_literal) )) && (parenthesized_expression "(1 < *piVar1 - 0x1eU)" ( (binary_expression "1 < *piVar1 - 0x1eU" number_literal < (binary_expression "*piVar1 - 0x1eU" (pointer_expression "*piVar1" * identifier) - number_literal)) ))) )) ;) (expression_statement "iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);" (assignment_expression "iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" * (cast_expression "(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 0x10) + iVar8 * 4)" ( (binary_expression "*(int *)(iVar5 + 0x10) + iVar8 * 4" (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))) + (binary_expression "iVar8 * 4" identifier * number_literal)) ))))) ;) })) (labeled_statement "LAB_0001b16c:\n      iVar9 = iVar9 - cur_col;" statement_identifier : (expression_statement "iVar9 = iVar9 - cur_col;" (assignment_expression "iVar9 = iVar9 - cur_col" identifier = (binary_expression "iVar9 - cur_col" identifier - identifier)) ;)) }) (else_clause "else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - cur_col, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }" else (if_statement "if ((iVar7 == 0x1c) || (iVar9 = iVar9 - cur_col, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }" if (parenthesized_expression "((iVar7 == 0x1c) || (iVar9 = iVar9 - cur_col, iVar7 - 0x1eU < 2))" ( (binary_expression "(iVar7 == 0x1c) || (iVar9 = iVar9 - cur_col, iVar7 - 0x1eU < 2)" (parenthesized_expression "(iVar7 == 0x1c)" ( (binary_expression "iVar7 == 0x1c" identifier == number_literal) )) || (parenthesized_expression "(iVar9 = iVar9 - cur_col, iVar7 - 0x1eU < 2)" ( (comma_expression "iVar9 = iVar9 - cur_col, iVar7 - 0x1eU < 2" (assignment_expression "iVar9 = iVar9 - cur_col" identifier = (binary_expression "iVar9 - cur_col" identifier - identifier)) , (binary_expression "iVar7 - 0x1eU < 2" (binary_expression "iVar7 - 0x1eU" identifier - number_literal) < number_literal)) ))) )) (compound_statement "{\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }" { (expression_statement "iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);" (assignment_expression "iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" * (cast_expression "(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 0x10) + iVar8 * 4)" ( (binary_expression "*(int *)(iVar5 + 0x10) + iVar8 * 4" (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))) + (binary_expression "iVar8 * 4" identifier * number_literal)) ))))) ;) (goto_statement "goto LAB_0001b16c;" goto statement_identifier ;) })))) (if_statement "if (iVar4 == 0) {\n      trap(7);\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      trap(7);\n    }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + cur_col;" (assignment_expression "iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + cur_col" identifier = (binary_expression "((iVar9 + 1) / iVar4) * iVar4 + cur_col" (binary_expression "((iVar9 + 1) / iVar4) * iVar4" (parenthesized_expression "((iVar9 + 1) / iVar4)" ( (binary_expression "(iVar9 + 1) / iVar4" (parenthesized_expression "(iVar9 + 1)" ( (binary_expression "iVar9 + 1" identifier + number_literal) )) / identifier) )) * identifier) + identifier)) ;) })) (if_statement "if (iVar4 == 0) {\n    trap(7);\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    trap(7);\n  }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "iVar4 = (iVar4 - (cur_col + -1) % iVar4) + cur_col;" (assignment_expression "iVar4 = (iVar4 - (cur_col + -1) % iVar4) + cur_col" identifier = (binary_expression "(iVar4 - (cur_col + -1) % iVar4) + cur_col" (parenthesized_expression "(iVar4 - (cur_col + -1) % iVar4)" ( (binary_expression "iVar4 - (cur_col + -1) % iVar4" identifier - (binary_expression "(cur_col + -1) % iVar4" (parenthesized_expression "(cur_col + -1)" ( (binary_expression "cur_col + -1" identifier + number_literal) )) % identifier)) )) + identifier)) ;) (if_statement "if (iVar4 <= iVar9) {\n    do {\n      cur_col = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = cur_col + *(int *)(puVar3 + 8);\n    } while (cur_col + *(int *)(puVar3 + 8) <= iVar9);\n    if (target_column <= cur_col) {\n      return cur_col;\n    }\n  }" if (parenthesized_expression "(iVar4 <= iVar9)" ( (binary_expression "iVar4 <= iVar9" identifier <= identifier) )) (compound_statement "{\n    do {\n      cur_col = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = cur_col + *(int *)(puVar3 + 8);\n    } while (cur_col + *(int *)(puVar3 + 8) <= iVar9);\n    if (target_column <= cur_col) {\n      return cur_col;\n    }\n  }" { (do_statement "do {\n      cur_col = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = cur_col + *(int *)(puVar3 + 8);\n    } while (cur_col + *(int *)(puVar3 + 8) <= iVar9);" do (compound_statement "{\n      cur_col = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = cur_col + *(int *)(puVar3 + 8);\n    }" { (expression_statement "cur_col = iVar4;" (assignment_expression "cur_col = iVar4" identifier = identifier) ;) (expression_statement "(*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));" (call_expression "(*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4))" (parenthesized_expression "(*(code *)PTR_putc_000356d8)" ( (pointer_expression "*(code *)PTR_putc_000356d8" * (cast_expression "(code *)PTR_putc_000356d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(9,*(undefined4 *)(puVar2 + 0x59e4))" ( number_literal , (pointer_expression "*(undefined4 *)(puVar2 + 0x59e4)" * (cast_expression "(undefined4 *)(puVar2 + 0x59e4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x59e4)" ( (binary_expression "puVar2 + 0x59e4" identifier + number_literal) )))) ))) ;) (expression_statement "iVar4 = cur_col + *(int *)(puVar3 + 8);" (assignment_expression "iVar4 = cur_col + *(int *)(puVar3 + 8)" identifier = (binary_expression "cur_col + *(int *)(puVar3 + 8)" identifier + (pointer_expression "*(int *)(puVar3 + 8)" * (cast_expression "(int *)(puVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 8)" ( (binary_expression "puVar3 + 8" identifier + number_literal) )))))) ;) }) while (parenthesized_expression "(cur_col + *(int *)(puVar3 + 8) <= iVar9)" ( (binary_expression "cur_col + *(int *)(puVar3 + 8) <= iVar9" (binary_expression "cur_col + *(int *)(puVar3 + 8)" identifier + (pointer_expression "*(int *)(puVar3 + 8)" * (cast_expression "(int *)(puVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 8)" ( (binary_expression "puVar3 + 8" identifier + number_literal) ))))) <= identifier) )) ;) (if_statement "if (target_column <= cur_col) {\n      return cur_col;\n    }" if (parenthesized_expression "(target_column <= cur_col)" ( (binary_expression "target_column <= cur_col" identifier <= identifier) )) (compound_statement "{\n      return cur_col;\n    }" { (return_statement "return cur_col;" return identifier ;) })) })) (labeled_statement "LAB_0001b1ec:\n  do {\n    cur_col = cur_col + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (cur_col < target_column);" statement_identifier : (do_statement "do {\n    cur_col = cur_col + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (cur_col < target_column);" do (compound_statement "{\n    cur_col = cur_col + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  }" { (expression_statement "cur_col = cur_col + 1;" (assignment_expression "cur_col = cur_col + 1" identifier = (binary_expression "cur_col + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));" (call_expression "(*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4))" (parenthesized_expression "(*(code *)PTR_putc_000356d8)" ( (pointer_expression "*(code *)PTR_putc_000356d8" * (cast_expression "(code *)PTR_putc_000356d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x20,*(undefined4 *)(puVar2 + 0x59e4))" ( number_literal , (pointer_expression "*(undefined4 *)(puVar2 + 0x59e4)" * (cast_expression "(undefined4 *)(puVar2 + 0x59e4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x59e4)" ( (binary_expression "puVar2 + 0x59e4" identifier + number_literal) )))) ))) ;) }) while (parenthesized_expression "(cur_col < target_column)" ( (binary_expression "cur_col < target_column" identifier < identifier) )) ;)) (return_statement "return cur_col;" return identifier ;) })))
(translation_unit "int FUN_0001b0b0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_settings_00035514;\n  puVar2 = PTR_DAT_000354d8;\n  if (param_2 <= param_1) {\n    return param_1;\n  }\n  if ((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)) goto LAB_0001b1ec;\n  iVar9 = param_2;\n  if (*(int *)(PTR_settings_00035514 + 0xf4) != 0) {\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (param_2 < *(int *)(iVar5 + 0x74)) {\n      iVar9 = param_2;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;\n  }\n  if (iVar4 == 0) {\n    trap(7);\n  }\n  iVar4 = (iVar4 - (param_1 + -1) % iVar4) + param_1;\n  if (iVar4 <= iVar9) {\n    do {\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);\n    if (param_2 <= param_1) {\n      return param_1;\n    }\n  }\nLAB_0001b1ec:\n  do {\n    param_1 = param_1 + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (param_1 < param_2);\n  return param_1;\n}\n\n" (function_definition "int FUN_0001b0b0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_settings_00035514;\n  puVar2 = PTR_DAT_000354d8;\n  if (param_2 <= param_1) {\n    return param_1;\n  }\n  if ((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)) goto LAB_0001b1ec;\n  iVar9 = param_2;\n  if (*(int *)(PTR_settings_00035514 + 0xf4) != 0) {\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (param_2 < *(int *)(iVar5 + 0x74)) {\n      iVar9 = param_2;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;\n  }\n  if (iVar4 == 0) {\n    trap(7);\n  }\n  iVar4 = (iVar4 - (param_1 + -1) % iVar4) + param_1;\n  if (iVar4 <= iVar9) {\n    do {\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);\n    if (param_2 <= param_1) {\n      return param_1;\n    }\n  }\nLAB_0001b1ec:\n  do {\n    param_1 = param_1 + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (param_1 < param_2);\n  return param_1;\n}" primitive_type (function_declarator "FUN_0001b0b0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_settings_00035514;\n  puVar2 = PTR_DAT_000354d8;\n  if (param_2 <= param_1) {\n    return param_1;\n  }\n  if ((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)) goto LAB_0001b1ec;\n  iVar9 = param_2;\n  if (*(int *)(PTR_settings_00035514 + 0xf4) != 0) {\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (param_2 < *(int *)(iVar5 + 0x74)) {\n      iVar9 = param_2;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;\n  }\n  if (iVar4 == 0) {\n    trap(7);\n  }\n  iVar4 = (iVar4 - (param_1 + -1) % iVar4) + param_1;\n  if (iVar4 <= iVar9) {\n    do {\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);\n    if (param_2 <= param_1) {\n      return param_1;\n    }\n  }\nLAB_0001b1ec:\n  do {\n    param_1 = param_1 + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (param_1 < param_2);\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (expression_statement "puVar3 = PTR_settings_00035514;" (assignment_expression "puVar3 = PTR_settings_00035514" identifier = identifier) ;) (expression_statement "puVar2 = PTR_DAT_000354d8;" (assignment_expression "puVar2 = PTR_DAT_000354d8" identifier = identifier) ;) (if_statement "if (param_2 <= param_1) {\n    return param_1;\n  }" if (parenthesized_expression "(param_2 <= param_1)" ( (binary_expression "param_2 <= param_1" identifier <= identifier) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (if_statement "if ((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)) goto LAB_0001b1ec;" if (parenthesized_expression "((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2))" ( (binary_expression "(*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)" (parenthesized_expression "(*(int *)(PTR_settings_00035514 + 4) == 0)" ( (binary_expression "*(int *)(PTR_settings_00035514 + 4) == 0" (pointer_expression "*(int *)(PTR_settings_00035514 + 4)" * (cast_expression "(int *)(PTR_settings_00035514 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_settings_00035514 + 4)" ( (binary_expression "PTR_settings_00035514 + 4" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)" ( (comma_expression "iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2" (assignment_expression "iVar4 = *(int *)(PTR_settings_00035514 + 8)" identifier = (pointer_expression "*(int *)(PTR_settings_00035514 + 8)" * (cast_expression "(int *)(PTR_settings_00035514 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_settings_00035514 + 8)" ( (binary_expression "PTR_settings_00035514 + 8" identifier + number_literal) ))))) , (binary_expression "iVar4 < 2" identifier < number_literal)) ))) )) (goto_statement "goto LAB_0001b1ec;" goto statement_identifier ;)) (expression_statement "iVar9 = param_2;" (assignment_expression "iVar9 = param_2" identifier = identifier) ;) (if_statement "if (*(int *)(PTR_settings_00035514 + 0xf4) != 0) {\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (param_2 < *(int *)(iVar5 + 0x74)) {\n      iVar9 = param_2;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;\n  }" if (parenthesized_expression "(*(int *)(PTR_settings_00035514 + 0xf4) != 0)" ( (binary_expression "*(int *)(PTR_settings_00035514 + 0xf4) != 0" (pointer_expression "*(int *)(PTR_settings_00035514 + 0xf4)" * (cast_expression "(int *)(PTR_settings_00035514 + 0xf4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_settings_00035514 + 0xf4)" ( (binary_expression "PTR_settings_00035514 + 0xf4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (param_2 < *(int *)(iVar5 + 0x74)) {\n      iVar9 = param_2;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;\n  }" { (expression_statement "iVar5 = *(int *)PTR_parser_state_tos_000354ec;" (assignment_expression "iVar5 = *(int *)PTR_parser_state_tos_000354ec" identifier = (pointer_expression "*(int *)PTR_parser_state_tos_000354ec" * (cast_expression "(int *)PTR_parser_state_tos_000354ec" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar8 = *(int *)(iVar5 + 0x20);" (assignment_expression "iVar8 = *(int *)(iVar5 + 0x20)" identifier = (pointer_expression "*(int *)(iVar5 + 0x20)" * (cast_expression "(int *)(iVar5 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x20)" ( (binary_expression "iVar5 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "iVar9 = *(int *)(iVar5 + 0x74);" (assignment_expression "iVar9 = *(int *)(iVar5 + 0x74)" identifier = (pointer_expression "*(int *)(iVar5 + 0x74)" * (cast_expression "(int *)(iVar5 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x74)" ( (binary_expression "iVar5 + 0x74" identifier + number_literal) ))))) ;) (if_statement "if (param_2 < *(int *)(iVar5 + 0x74)) {\n      iVar9 = param_2;\n    }" if (parenthesized_expression "(param_2 < *(int *)(iVar5 + 0x74))" ( (binary_expression "param_2 < *(int *)(iVar5 + 0x74)" identifier < (pointer_expression "*(int *)(iVar5 + 0x74)" * (cast_expression "(int *)(iVar5 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x74)" ( (binary_expression "iVar5 + 0x74" identifier + number_literal) ))))) )) (compound_statement "{\n      iVar9 = param_2;\n    }" { (expression_statement "iVar9 = param_2;" (assignment_expression "iVar9 = param_2" identifier = identifier) ;) })) (expression_statement "piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);" (assignment_expression "piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4)" identifier = (cast_expression "(int *)(*(int *)(iVar5 + 8) + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 8) + iVar8 * 4)" ( (binary_expression "*(int *)(iVar5 + 8) + iVar8 * 4" (pointer_expression "*(int *)(iVar5 + 8)" * (cast_expression "(int *)(iVar5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) )))) + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) ;) (expression_statement "iVar7 = *piVar6;" (assignment_expression "iVar7 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (if_statement "if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }" if (parenthesized_expression "((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20))" ( (binary_expression "(*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)" (parenthesized_expression "(*(int *)(iVar5 + 0x14) == 8)" ( (binary_expression "*(int *)(iVar5 + 0x14) == 8" (pointer_expression "*(int *)(iVar5 + 0x14)" * (cast_expression "(int *)(iVar5 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(iVar7 == 0x20)" ( (binary_expression "iVar7 == 0x20" identifier == number_literal) ))) )) (compound_statement "{\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }" { (if_statement "if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }" if (parenthesized_expression "((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8))" ( (binary_expression "(**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)" (parenthesized_expression "(**(char **)PTR_s_code_00035548 != '\0')" ( (binary_expression "**(char **)PTR_s_code_00035548 != '\0'" (pointer_expression "**(char **)PTR_s_code_00035548" * (pointer_expression "*(char **)PTR_s_code_00035548" * (cast_expression "(char **)PTR_s_code_00035548" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) ))) )) (compound_statement "{\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }" { (do_statement "do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));" do (compound_statement "{\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        }" { (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (if_statement "if (iVar8 == 0) goto LAB_0001b16c;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001b16c;" goto statement_identifier ;)) (expression_statement "piVar1 = piVar6 + -1;" (assignment_expression "piVar1 = piVar6 + -1" identifier = (binary_expression "piVar6 + -1" identifier + number_literal)) ;) (expression_statement "piVar6 = piVar6 + -1;" (assignment_expression "piVar6 = piVar6 + -1" identifier = (binary_expression "piVar6 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU))" ( (binary_expression "(*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU)" (parenthesized_expression "(*piVar1 != 0x1c)" ( (binary_expression "*piVar1 != 0x1c" (pointer_expression "*piVar1" * identifier) != number_literal) )) && (parenthesized_expression "(1 < *piVar1 - 0x1eU)" ( (binary_expression "1 < *piVar1 - 0x1eU" number_literal < (binary_expression "*piVar1 - 0x1eU" (pointer_expression "*piVar1" * identifier) - number_literal)) ))) )) ;) (expression_statement "iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);" (assignment_expression "iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" * (cast_expression "(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 0x10) + iVar8 * 4)" ( (binary_expression "*(int *)(iVar5 + 0x10) + iVar8 * 4" (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))) + (binary_expression "iVar8 * 4" identifier * number_literal)) ))))) ;) })) (labeled_statement "LAB_0001b16c:\n      iVar9 = iVar9 - param_1;" statement_identifier : (expression_statement "iVar9 = iVar9 - param_1;" (assignment_expression "iVar9 = iVar9 - param_1" identifier = (binary_expression "iVar9 - param_1" identifier - identifier)) ;)) }) (else_clause "else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }" else (if_statement "if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }" if (parenthesized_expression "((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2))" ( (binary_expression "(iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)" (parenthesized_expression "(iVar7 == 0x1c)" ( (binary_expression "iVar7 == 0x1c" identifier == number_literal) )) || (parenthesized_expression "(iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)" ( (comma_expression "iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2" (assignment_expression "iVar9 = iVar9 - param_1" identifier = (binary_expression "iVar9 - param_1" identifier - identifier)) , (binary_expression "iVar7 - 0x1eU < 2" (binary_expression "iVar7 - 0x1eU" identifier - number_literal) < number_literal)) ))) )) (compound_statement "{\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }" { (expression_statement "iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);" (assignment_expression "iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" * (cast_expression "(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 0x10) + iVar8 * 4)" ( (binary_expression "*(int *)(iVar5 + 0x10) + iVar8 * 4" (pointer_expression "*(int *)(iVar5 + 0x10)" * (cast_expression "(int *)(iVar5 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))) + (binary_expression "iVar8 * 4" identifier * number_literal)) ))))) ;) (goto_statement "goto LAB_0001b16c;" goto statement_identifier ;) })))) (if_statement "if (iVar4 == 0) {\n      trap(7);\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      trap(7);\n    }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;" (assignment_expression "iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1" identifier = (binary_expression "((iVar9 + 1) / iVar4) * iVar4 + param_1" (binary_expression "((iVar9 + 1) / iVar4) * iVar4" (parenthesized_expression "((iVar9 + 1) / iVar4)" ( (binary_expression "(iVar9 + 1) / iVar4" (parenthesized_expression "(iVar9 + 1)" ( (binary_expression "iVar9 + 1" identifier + number_literal) )) / identifier) )) * identifier) + identifier)) ;) })) (if_statement "if (iVar4 == 0) {\n    trap(7);\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    trap(7);\n  }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "iVar4 = (iVar4 - (param_1 + -1) % iVar4) + param_1;" (assignment_expression "iVar4 = (iVar4 - (param_1 + -1) % iVar4) + param_1" identifier = (binary_expression "(iVar4 - (param_1 + -1) % iVar4) + param_1" (parenthesized_expression "(iVar4 - (param_1 + -1) % iVar4)" ( (binary_expression "iVar4 - (param_1 + -1) % iVar4" identifier - (binary_expression "(param_1 + -1) % iVar4" (parenthesized_expression "(param_1 + -1)" ( (binary_expression "param_1 + -1" identifier + number_literal) )) % identifier)) )) + identifier)) ;) (if_statement "if (iVar4 <= iVar9) {\n    do {\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);\n    if (param_2 <= param_1) {\n      return param_1;\n    }\n  }" if (parenthesized_expression "(iVar4 <= iVar9)" ( (binary_expression "iVar4 <= iVar9" identifier <= identifier) )) (compound_statement "{\n    do {\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);\n    if (param_2 <= param_1) {\n      return param_1;\n    }\n  }" { (do_statement "do {\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);" do (compound_statement "{\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    }" { (expression_statement "param_1 = iVar4;" (assignment_expression "param_1 = iVar4" identifier = identifier) ;) (expression_statement "(*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));" (call_expression "(*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4))" (parenthesized_expression "(*(code *)PTR_putc_000356d8)" ( (pointer_expression "*(code *)PTR_putc_000356d8" * (cast_expression "(code *)PTR_putc_000356d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(9,*(undefined4 *)(puVar2 + 0x59e4))" ( number_literal , (pointer_expression "*(undefined4 *)(puVar2 + 0x59e4)" * (cast_expression "(undefined4 *)(puVar2 + 0x59e4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x59e4)" ( (binary_expression "puVar2 + 0x59e4" identifier + number_literal) )))) ))) ;) (expression_statement "iVar4 = param_1 + *(int *)(puVar3 + 8);" (assignment_expression "iVar4 = param_1 + *(int *)(puVar3 + 8)" identifier = (binary_expression "param_1 + *(int *)(puVar3 + 8)" identifier + (pointer_expression "*(int *)(puVar3 + 8)" * (cast_expression "(int *)(puVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 8)" ( (binary_expression "puVar3 + 8" identifier + number_literal) )))))) ;) }) while (parenthesized_expression "(param_1 + *(int *)(puVar3 + 8) <= iVar9)" ( (binary_expression "param_1 + *(int *)(puVar3 + 8) <= iVar9" (binary_expression "param_1 + *(int *)(puVar3 + 8)" identifier + (pointer_expression "*(int *)(puVar3 + 8)" * (cast_expression "(int *)(puVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 8)" ( (binary_expression "puVar3 + 8" identifier + number_literal) ))))) <= identifier) )) ;) (if_statement "if (param_2 <= param_1) {\n      return param_1;\n    }" if (parenthesized_expression "(param_2 <= param_1)" ( (binary_expression "param_2 <= param_1" identifier <= identifier) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) })) (labeled_statement "LAB_0001b1ec:\n  do {\n    param_1 = param_1 + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (param_1 < param_2);" statement_identifier : (do_statement "do {\n    param_1 = param_1 + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (param_1 < param_2);" do (compound_statement "{\n    param_1 = param_1 + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));" (call_expression "(*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4))" (parenthesized_expression "(*(code *)PTR_putc_000356d8)" ( (pointer_expression "*(code *)PTR_putc_000356d8" * (cast_expression "(code *)PTR_putc_000356d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x20,*(undefined4 *)(puVar2 + 0x59e4))" ( number_literal , (pointer_expression "*(undefined4 *)(puVar2 + 0x59e4)" * (cast_expression "(undefined4 *)(puVar2 + 0x59e4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x59e4)" ( (binary_expression "puVar2 + 0x59e4" identifier + number_literal) )))) ))) ;) }) while (parenthesized_expression "(param_1 < param_2)" ( (binary_expression "param_1 < param_2" identifier < identifier) )) ;)) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT < LIT)) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) && (parenthesized_expression ( (binary_expression LIT < (binary_expression (pointer_expression * IDENT) - LIT)) ))) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;)) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT - IDENT)) , (binary_expression (binary_expression IDENT - LIT) < LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (goto_statement goto statement_identifier ;) })))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) / IDENT) )) * IDENT) + IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) % IDENT)) )) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) <= IDENT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return IDENT ;) })) })) (labeled_statement statement_identifier : (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;)) (return_statement return IDENT ;) })))
(function_definition "int FUN_0001b0b0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_settings_00035514;\n  puVar2 = PTR_DAT_000354d8;\n  if (param_2 <= param_1) {\n    return param_1;\n  }\n  if ((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)) goto LAB_0001b1ec;\n  iVar9 = param_2;\n  if (*(int *)(PTR_settings_00035514 + 0xf4) != 0) {\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (param_2 < *(int *)(iVar5 + 0x74)) {\n      iVar9 = param_2;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;\n  }\n  if (iVar4 == 0) {\n    trap(7);\n  }\n  iVar4 = (iVar4 - (param_1 + -1) % iVar4) + param_1;\n  if (iVar4 <= iVar9) {\n    do {\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);\n    if (param_2 <= param_1) {\n      return param_1;\n    }\n  }\nLAB_0001b1ec:\n  do {\n    param_1 = param_1 + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (param_1 < param_2);\n  return param_1;\n}" (primitive_type "int") (function_declarator "FUN_0001b0b0(int param_1,int param_2)" (identifier "FUN_0001b0b0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_settings_00035514;\n  puVar2 = PTR_DAT_000354d8;\n  if (param_2 <= param_1) {\n    return param_1;\n  }\n  if ((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)) goto LAB_0001b1ec;\n  iVar9 = param_2;\n  if (*(int *)(PTR_settings_00035514 + 0xf4) != 0) {\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (param_2 < *(int *)(iVar5 + 0x74)) {\n      iVar9 = param_2;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;\n  }\n  if (iVar4 == 0) {\n    trap(7);\n  }\n  iVar4 = (iVar4 - (param_1 + -1) % iVar4) + param_1;\n  if (iVar4 <= iVar9) {\n    do {\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);\n    if (param_2 <= param_1) {\n      return param_1;\n    }\n  }\nLAB_0001b1ec:\n  do {\n    param_1 = param_1 + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (param_1 < param_2);\n  return param_1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (expression_statement "puVar3 = PTR_settings_00035514;" (assignment_expression "puVar3 = PTR_settings_00035514" (identifier "puVar3") (= "=") (identifier "PTR_settings_00035514")) (; ";")) (expression_statement "puVar2 = PTR_DAT_000354d8;" (assignment_expression "puVar2 = PTR_DAT_000354d8" (identifier "puVar2") (= "=") (identifier "PTR_DAT_000354d8")) (; ";")) (if_statement "if (param_2 <= param_1) {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(param_2 <= param_1)" (( "(") (binary_expression "param_2 <= param_1" (identifier "param_2") (<= "<=") (identifier "param_1")) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (if_statement "if ((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)) goto LAB_0001b1ec;" (if "if") (parenthesized_expression "((*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2))" (( "(") (binary_expression "(*(int *)(PTR_settings_00035514 + 4) == 0) ||\n     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)" (parenthesized_expression "(*(int *)(PTR_settings_00035514 + 4) == 0)" (( "(") (binary_expression "*(int *)(PTR_settings_00035514 + 4) == 0" (pointer_expression "*(int *)(PTR_settings_00035514 + 4)" (* "*") (cast_expression "(int *)(PTR_settings_00035514 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_settings_00035514 + 4)" (( "(") (binary_expression "PTR_settings_00035514 + 4" (identifier "PTR_settings_00035514") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)" (( "(") (comma_expression "iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2" (assignment_expression "iVar4 = *(int *)(PTR_settings_00035514 + 8)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(PTR_settings_00035514 + 8)" (* "*") (cast_expression "(int *)(PTR_settings_00035514 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_settings_00035514 + 8)" (( "(") (binary_expression "PTR_settings_00035514 + 8" (identifier "PTR_settings_00035514") (+ "+") (number_literal "8")) () ")"))))) (, ",") (binary_expression "iVar4 < 2" (identifier "iVar4") (< "<") (number_literal "2"))) () ")"))) () ")")) (goto_statement "goto LAB_0001b1ec;" (goto "goto") (statement_identifier "LAB_0001b1ec") (; ";"))) (expression_statement "iVar9 = param_2;" (assignment_expression "iVar9 = param_2" (identifier "iVar9") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (*(int *)(PTR_settings_00035514 + 0xf4) != 0) {\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (param_2 < *(int *)(iVar5 + 0x74)) {\n      iVar9 = param_2;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;\n  }" (if "if") (parenthesized_expression "(*(int *)(PTR_settings_00035514 + 0xf4) != 0)" (( "(") (binary_expression "*(int *)(PTR_settings_00035514 + 0xf4) != 0" (pointer_expression "*(int *)(PTR_settings_00035514 + 0xf4)" (* "*") (cast_expression "(int *)(PTR_settings_00035514 + 0xf4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_settings_00035514 + 0xf4)" (( "(") (binary_expression "PTR_settings_00035514 + 0xf4" (identifier "PTR_settings_00035514") (+ "+") (number_literal "0xf4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar5 = *(int *)PTR_parser_state_tos_000354ec;\n    iVar8 = *(int *)(iVar5 + 0x20);\n    iVar9 = *(int *)(iVar5 + 0x74);\n    if (param_2 < *(int *)(iVar5 + 0x74)) {\n      iVar9 = param_2;\n    }\n    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);\n    iVar7 = *piVar6;\n    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }\n    if (iVar4 == 0) {\n      trap(7);\n    }\n    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;\n  }" ({ "{") (expression_statement "iVar5 = *(int *)PTR_parser_state_tos_000354ec;" (assignment_expression "iVar5 = *(int *)PTR_parser_state_tos_000354ec" (identifier "iVar5") (= "=") (pointer_expression "*(int *)PTR_parser_state_tos_000354ec" (* "*") (cast_expression "(int *)PTR_parser_state_tos_000354ec" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_parser_state_tos_000354ec")))) (; ";")) (expression_statement "iVar8 = *(int *)(iVar5 + 0x20);" (assignment_expression "iVar8 = *(int *)(iVar5 + 0x20)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(iVar5 + 0x20)" (* "*") (cast_expression "(int *)(iVar5 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x20)" (( "(") (binary_expression "iVar5 + 0x20" (identifier "iVar5") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "iVar9 = *(int *)(iVar5 + 0x74);" (assignment_expression "iVar9 = *(int *)(iVar5 + 0x74)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(iVar5 + 0x74)" (* "*") (cast_expression "(int *)(iVar5 + 0x74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x74)" (( "(") (binary_expression "iVar5 + 0x74" (identifier "iVar5") (+ "+") (number_literal "0x74")) () ")"))))) (; ";")) (if_statement "if (param_2 < *(int *)(iVar5 + 0x74)) {\n      iVar9 = param_2;\n    }" (if "if") (parenthesized_expression "(param_2 < *(int *)(iVar5 + 0x74))" (( "(") (binary_expression "param_2 < *(int *)(iVar5 + 0x74)" (identifier "param_2") (< "<") (pointer_expression "*(int *)(iVar5 + 0x74)" (* "*") (cast_expression "(int *)(iVar5 + 0x74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x74)" (( "(") (binary_expression "iVar5 + 0x74" (identifier "iVar5") (+ "+") (number_literal "0x74")) () ")"))))) () ")")) (compound_statement "{\n      iVar9 = param_2;\n    }" ({ "{") (expression_statement "iVar9 = param_2;" (assignment_expression "iVar9 = param_2" (identifier "iVar9") (= "=") (identifier "param_2")) (; ";")) (} "}"))) (expression_statement "piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);" (assignment_expression "piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4)" (identifier "piVar6") (= "=") (cast_expression "(int *)(*(int *)(iVar5 + 8) + iVar8 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar5 + 8) + iVar8 * 4)" (( "(") (binary_expression "*(int *)(iVar5 + 8) + iVar8 * 4" (pointer_expression "*(int *)(iVar5 + 8)" (* "*") (cast_expression "(int *)(iVar5 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 8)" (( "(") (binary_expression "iVar5 + 8" (identifier "iVar5") (+ "+") (number_literal "8")) () ")")))) (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "iVar7 = *piVar6;" (assignment_expression "iVar7 = *piVar6" (identifier "iVar7") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (if_statement "if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }\n    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }" (if "if") (parenthesized_expression "((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20))" (( "(") (binary_expression "(*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)" (parenthesized_expression "(*(int *)(iVar5 + 0x14) == 8)" (( "(") (binary_expression "*(int *)(iVar5 + 0x14) == 8" (pointer_expression "*(int *)(iVar5 + 0x14)" (* "*") (cast_expression "(int *)(iVar5 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x14)" (( "(") (binary_expression "iVar5 + 0x14" (identifier "iVar5") (+ "+") (number_literal "0x14")) () ")")))) (== "==") (number_literal "8")) () ")")) (&& "&&") (parenthesized_expression "(iVar7 == 0x20)" (( "(") (binary_expression "iVar7 == 0x20" (identifier "iVar7") (== "==") (number_literal "0x20")) () ")"))) () ")")) (compound_statement "{\n      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }\nLAB_0001b16c:\n      iVar9 = iVar9 - param_1;\n    }" ({ "{") (if_statement "if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }" (if "if") (parenthesized_expression "((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8))" (( "(") (binary_expression "(**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)" (parenthesized_expression "(**(char **)PTR_s_code_00035548 != '\0')" (( "(") (binary_expression "**(char **)PTR_s_code_00035548 != '\0'" (pointer_expression "**(char **)PTR_s_code_00035548" (* "*") (pointer_expression "*(char **)PTR_s_code_00035548" (* "*") (cast_expression "(char **)PTR_s_code_00035548" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_s_code_00035548")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(0 < iVar8)" (( "(") (binary_expression "0 < iVar8" (number_literal "0") (< "<") (identifier "iVar8")) () ")"))) () ")")) (compound_statement "{\n        do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));\n        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      }" ({ "{") (do_statement "do {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));" (do "do") (compound_statement "{\n          iVar8 = iVar8 + -1;\n          if (iVar8 == 0) goto LAB_0001b16c;\n          piVar1 = piVar6 + -1;\n          piVar6 = piVar6 + -1;\n        }" ({ "{") (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + -1" (identifier "iVar8") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar8 == 0) goto LAB_0001b16c;" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001b16c;" (goto "goto") (statement_identifier "LAB_0001b16c") (; ";"))) (expression_statement "piVar1 = piVar6 + -1;" (assignment_expression "piVar1 = piVar6 + -1" (identifier "piVar1") (= "=") (binary_expression "piVar6 + -1" (identifier "piVar6") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "piVar6 = piVar6 + -1;" (assignment_expression "piVar6 = piVar6 + -1" (identifier "piVar6") (= "=") (binary_expression "piVar6 + -1" (identifier "piVar6") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU))" (( "(") (binary_expression "(*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU)" (parenthesized_expression "(*piVar1 != 0x1c)" (( "(") (binary_expression "*piVar1 != 0x1c" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0x1c")) () ")")) (&& "&&") (parenthesized_expression "(1 < *piVar1 - 0x1eU)" (( "(") (binary_expression "1 < *piVar1 - 0x1eU" (number_literal "1") (< "<") (binary_expression "*piVar1 - 0x1eU" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (- "-") (number_literal "0x1eU"))) () ")"))) () ")")) (; ";")) (expression_statement "iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);" (assignment_expression "iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" (* "*") (cast_expression "(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar5 + 0x10) + iVar8 * 4)" (( "(") (binary_expression "*(int *)(iVar5 + 0x10) + iVar8 * 4" (pointer_expression "*(int *)(iVar5 + 0x10)" (* "*") (cast_expression "(int *)(iVar5 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x10)" (( "(") (binary_expression "iVar5 + 0x10" (identifier "iVar5") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (} "}"))) (labeled_statement "LAB_0001b16c:\n      iVar9 = iVar9 - param_1;" (statement_identifier "LAB_0001b16c") (: ":") (expression_statement "iVar9 = iVar9 - param_1;" (assignment_expression "iVar9 = iVar9 - param_1" (identifier "iVar9") (= "=") (binary_expression "iVar9 - param_1" (identifier "iVar9") (- "-") (identifier "param_1"))) (; ";"))) (} "}")) (else_clause "else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }" (else "else") (if_statement "if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }" (if "if") (parenthesized_expression "((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2))" (( "(") (binary_expression "(iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)" (parenthesized_expression "(iVar7 == 0x1c)" (( "(") (binary_expression "iVar7 == 0x1c" (identifier "iVar7") (== "==") (number_literal "0x1c")) () ")")) (|| "||") (parenthesized_expression "(iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)" (( "(") (comma_expression "iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2" (assignment_expression "iVar9 = iVar9 - param_1" (identifier "iVar9") (= "=") (binary_expression "iVar9 - param_1" (identifier "iVar9") (- "-") (identifier "param_1"))) (, ",") (binary_expression "iVar7 - 0x1eU < 2" (binary_expression "iVar7 - 0x1eU" (identifier "iVar7") (- "-") (number_literal "0x1eU")) (< "<") (number_literal "2"))) () ")"))) () ")")) (compound_statement "{\n      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);\n      goto LAB_0001b16c;\n    }" ({ "{") (expression_statement "iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);" (assignment_expression "iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" (* "*") (cast_expression "(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar5 + 0x10) + iVar8 * 4)" (( "(") (binary_expression "*(int *)(iVar5 + 0x10) + iVar8 * 4" (pointer_expression "*(int *)(iVar5 + 0x10)" (* "*") (cast_expression "(int *)(iVar5 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x10)" (( "(") (binary_expression "iVar5 + 0x10" (identifier "iVar5") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (goto_statement "goto LAB_0001b16c;" (goto "goto") (statement_identifier "LAB_0001b16c") (; ";")) (} "}"))))) (if_statement "if (iVar4 == 0) {\n      trap(7);\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      trap(7);\n    }" ({ "{") (expression_statement "trap(7);" (call_expression "trap(7)" (identifier "trap") (argument_list "(7)" (( "(") (number_literal "7") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;" (assignment_expression "iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1" (identifier "iVar9") (= "=") (binary_expression "((iVar9 + 1) / iVar4) * iVar4 + param_1" (binary_expression "((iVar9 + 1) / iVar4) * iVar4" (parenthesized_expression "((iVar9 + 1) / iVar4)" (( "(") (binary_expression "(iVar9 + 1) / iVar4" (parenthesized_expression "(iVar9 + 1)" (( "(") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1")) () ")")) (/ "/") (identifier "iVar4")) () ")")) (* "*") (identifier "iVar4")) (+ "+") (identifier "param_1"))) (; ";")) (} "}"))) (if_statement "if (iVar4 == 0) {\n    trap(7);\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    trap(7);\n  }" ({ "{") (expression_statement "trap(7);" (call_expression "trap(7)" (identifier "trap") (argument_list "(7)" (( "(") (number_literal "7") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = (iVar4 - (param_1 + -1) % iVar4) + param_1;" (assignment_expression "iVar4 = (iVar4 - (param_1 + -1) % iVar4) + param_1" (identifier "iVar4") (= "=") (binary_expression "(iVar4 - (param_1 + -1) % iVar4) + param_1" (parenthesized_expression "(iVar4 - (param_1 + -1) % iVar4)" (( "(") (binary_expression "iVar4 - (param_1 + -1) % iVar4" (identifier "iVar4") (- "-") (binary_expression "(param_1 + -1) % iVar4" (parenthesized_expression "(param_1 + -1)" (( "(") (binary_expression "param_1 + -1" (identifier "param_1") (+ "+") (number_literal "-1")) () ")")) (% "%") (identifier "iVar4"))) () ")")) (+ "+") (identifier "param_1"))) (; ";")) (if_statement "if (iVar4 <= iVar9) {\n    do {\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);\n    if (param_2 <= param_1) {\n      return param_1;\n    }\n  }" (if "if") (parenthesized_expression "(iVar4 <= iVar9)" (( "(") (binary_expression "iVar4 <= iVar9" (identifier "iVar4") (<= "<=") (identifier "iVar9")) () ")")) (compound_statement "{\n    do {\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);\n    if (param_2 <= param_1) {\n      return param_1;\n    }\n  }" ({ "{") (do_statement "do {\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);" (do "do") (compound_statement "{\n      param_1 = iVar4;\n      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));\n      iVar4 = param_1 + *(int *)(puVar3 + 8);\n    }" ({ "{") (expression_statement "param_1 = iVar4;" (assignment_expression "param_1 = iVar4" (identifier "param_1") (= "=") (identifier "iVar4")) (; ";")) (expression_statement "(*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));" (call_expression "(*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4))" (parenthesized_expression "(*(code *)PTR_putc_000356d8)" (( "(") (pointer_expression "*(code *)PTR_putc_000356d8" (* "*") (cast_expression "(code *)PTR_putc_000356d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_putc_000356d8"))) () ")")) (argument_list "(9,*(undefined4 *)(puVar2 + 0x59e4))" (( "(") (number_literal "9") (, ",") (pointer_expression "*(undefined4 *)(puVar2 + 0x59e4)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 0x59e4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x59e4)" (( "(") (binary_expression "puVar2 + 0x59e4" (identifier "puVar2") (+ "+") (number_literal "0x59e4")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar4 = param_1 + *(int *)(puVar3 + 8);" (assignment_expression "iVar4 = param_1 + *(int *)(puVar3 + 8)" (identifier "iVar4") (= "=") (binary_expression "param_1 + *(int *)(puVar3 + 8)" (identifier "param_1") (+ "+") (pointer_expression "*(int *)(puVar3 + 8)" (* "*") (cast_expression "(int *)(puVar3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 8)" (( "(") (binary_expression "puVar3 + 8" (identifier "puVar3") (+ "+") (number_literal "8")) () ")")))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 + *(int *)(puVar3 + 8) <= iVar9)" (( "(") (binary_expression "param_1 + *(int *)(puVar3 + 8) <= iVar9" (binary_expression "param_1 + *(int *)(puVar3 + 8)" (identifier "param_1") (+ "+") (pointer_expression "*(int *)(puVar3 + 8)" (* "*") (cast_expression "(int *)(puVar3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 8)" (( "(") (binary_expression "puVar3 + 8" (identifier "puVar3") (+ "+") (number_literal "8")) () ")"))))) (<= "<=") (identifier "iVar9")) () ")")) (; ";")) (if_statement "if (param_2 <= param_1) {\n      return param_1;\n    }" (if "if") (parenthesized_expression "(param_2 <= param_1)" (( "(") (binary_expression "param_2 <= param_1" (identifier "param_2") (<= "<=") (identifier "param_1")) () ")")) (compound_statement "{\n      return param_1;\n    }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_0001b1ec:\n  do {\n    param_1 = param_1 + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (param_1 < param_2);" (statement_identifier "LAB_0001b1ec") (: ":") (do_statement "do {\n    param_1 = param_1 + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  } while (param_1 < param_2);" (do "do") (compound_statement "{\n    param_1 = param_1 + 1;\n    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));\n  }" ({ "{") (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));" (call_expression "(*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4))" (parenthesized_expression "(*(code *)PTR_putc_000356d8)" (( "(") (pointer_expression "*(code *)PTR_putc_000356d8" (* "*") (cast_expression "(code *)PTR_putc_000356d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_putc_000356d8"))) () ")")) (argument_list "(0x20,*(undefined4 *)(puVar2 + 0x59e4))" (( "(") (number_literal "0x20") (, ",") (pointer_expression "*(undefined4 *)(puVar2 + 0x59e4)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 0x59e4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x59e4)" (( "(") (binary_expression "puVar2 + 0x59e4" (identifier "puVar2") (+ "+") (number_literal "0x59e4")) () ")")))) () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 < param_2)" (( "(") (binary_expression "param_1 < param_2" (identifier "param_1") (< "<") (identifier "param_2")) () ")")) (; ";"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier)))) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))))) (goto_statement label: (statement_identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (identifier))) right: (identifier)) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (identifier)))) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))))) (labeled_statement label: (statement_identifier) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (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))))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) (return_statement (identifier)))))

int MASKED(int param_1,int param_2)

{
  int *piVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  int iVar5;
  int *piVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  
  puVar3 = PTR_settings_00035514;
  puVar2 = PTR_DAT_000354d8;
  if (param_2 <= param_1) {
    return param_1;
  }
  if ((*(int *)(PTR_settings_00035514 + 4) == 0) ||
     (iVar4 = *(int *)(PTR_settings_00035514 + 8), iVar4 < 2)) goto LAB_0001b1ec;
  iVar9 = param_2;
  if (*(int *)(PTR_settings_00035514 + 0xf4) != 0) {
    iVar5 = *(int *)PTR_parser_state_tos_000354ec;
    iVar8 = *(int *)(iVar5 + 0x20);
    iVar9 = *(int *)(iVar5 + 0x74);
    if (param_2 < *(int *)(iVar5 + 0x74)) {
      iVar9 = param_2;
    }
    piVar6 = (int *)(*(int *)(iVar5 + 8) + iVar8 * 4);
    iVar7 = *piVar6;
    if ((*(int *)(iVar5 + 0x14) == 8) && (iVar7 == 0x20)) {
      if ((**(char **)PTR_s_code_00035548 != '\0') && (0 < iVar8)) {
        do {
          iVar8 = iVar8 + -1;
          if (iVar8 == 0) goto LAB_0001b16c;
          piVar1 = piVar6 + -1;
          piVar6 = piVar6 + -1;
        } while ((*piVar1 != 0x1c) && (1 < *piVar1 - 0x1eU));
        iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);
      }
LAB_0001b16c:
      iVar9 = iVar9 - param_1;
    }
    else if ((iVar7 == 0x1c) || (iVar9 = iVar9 - param_1, iVar7 - 0x1eU < 2)) {
      iVar9 = *(int *)(*(int *)(iVar5 + 0x10) + iVar8 * 4);
      goto LAB_0001b16c;
    }
    if (iVar4 == 0) {
      trap(7);
    }
    iVar9 = ((iVar9 + 1) / iVar4) * iVar4 + param_1;
  }
  if (iVar4 == 0) {
    trap(7);
  }
  iVar4 = (iVar4 - (param_1 + -1) % iVar4) + param_1;
  if (iVar4 <= iVar9) {
    do {
      param_1 = iVar4;
      (*(code *)PTR_putc_000356d8)(9,*(undefined4 *)(puVar2 + 0x59e4));
      iVar4 = param_1 + *(int *)(puVar3 + 8);
    } while (param_1 + *(int *)(puVar3 + 8) <= iVar9);
    if (param_2 <= param_1) {
      return param_1;
    }
  }
LAB_0001b1ec:
  do {
    param_1 = param_1 + 1;
    (*(code *)PTR_putc_000356d8)(0x20,*(undefined4 *)(puVar2 + 0x59e4));
  } while (param_1 < param_2);
  return param_1;
}

