
/* WARNING: Type propagation algorithm not settling */

ulong parse_omp_threads(char *threads)

{
  char cVar1;
  ulong uVar2;
  char *pcVar3;
  ulong uVar4;
  uint uVar5;
  int iVar6;
  undefined *puVar7;
  char *endptr;
  int local_c;
  
  puVar7 = PTR___stack_chk_guard_000292ac;
  iVar6 = (int)*threads;
  local_c = *(int *)PTR___stack_chk_guard_000292ac;
  if (iVar6 == 0) {
LAB_000122a8:
    uVar2 = 0;
  }
  else {
    if (0x17 < iVar6 - 9U) {
LAB_00012214:
      if (iVar6 - 0x30U < 10) {
        endptr = (char *)0x0;
        uVar2 = (*(code *)PTR_strtoul_00029254)(threads,&endptr,10);
        if (endptr != (char *)0x0) {
          cVar1 = *endptr;
          while (iVar6 = (int)cVar1, iVar6 != 0) {
            if ((0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)) {
              if (iVar6 != 0x2c) goto LAB_000122a8;
              break;
            }
            endptr = endptr + 1;
            cVar1 = *endptr;
          }
          goto LAB_000122ac;
        }
      }
      goto LAB_000122a8;
    }
    uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;
    if (uVar2 != 0) {
      threads = threads + 1;
      cVar1 = *threads;
      while( true ) {
        iVar6 = (int)cVar1;
        if (iVar6 == 0) break;
        if (0x17 < iVar6 - 9U) goto LAB_00012214;
        uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;
        threads = threads + 1;
        if (uVar2 == 0) goto LAB_000122ac;
        cVar1 = *threads;
      }
      goto LAB_000122a8;
    }
  }
LAB_000122ac:
  if (local_c == *(int *)puVar7) {
    return uVar2;
  }
  iVar6 = local_c;
  puVar7 = PTR___stack_chk_fail_00029294;
  (*(code *)PTR___stack_chk_fail_00029294)();
  if (iVar6 == 2) {
    pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e74);
    if (pcVar3 != (char *)0x0) {
      uVar4 = parse_omp_threads(pcVar3);
      pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84);
      if ((pcVar3 == (char *)0x0) || (uVar2 = parse_omp_threads(pcVar3), uVar2 == 0)) {
        uVar2 = 0xffffffff;
      }
      if (uVar4 != 0) {
        if (uVar2 <= uVar4) {
          uVar4 = uVar2;
        }
        return uVar4;
      }
      goto LAB_000123a8;
    }
    pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84);
    if ((pcVar3 != (char *)0x0) && (uVar2 = parse_omp_threads(pcVar3), uVar2 != 0))
    goto LAB_000123a8;
  }
  else if (iVar6 != 1) {
    uVar2 = (**(code **)(puVar7 + 0x16fbc))(0x53);
    if ((uVar2 == 1) && (uVar2 = num_processors_via_affinity_mask(), uVar2 == 0)) {
      return 1;
    }
    if ((int)uVar2 < 1) {
      uVar2 = 1;
    }
    return uVar2;
  }
  uVar2 = 0xffffffff;
LAB_000123a8:
  uVar5 = num_processors_via_affinity_mask();
  if ((uVar5 == 0) && (uVar5 = (**(code **)(puVar7 + 0x16fbc))(0x54), (int)uVar5 < 1)) {
    return 1;
  }
  if (uVar2 < uVar5) {
    uVar5 = uVar2;
  }
  return uVar5;
}



/* WARNING: Type propagation algorithm not settling */

uint FUN_00012180(char *param_1)

{
  char cVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  undefined *puVar5;
  char *local_10;
  int local_c;
  
  puVar5 = PTR___stack_chk_guard_000292ac;
  iVar4 = (int)*param_1;
  local_c = *(int *)PTR___stack_chk_guard_000292ac;
  if (iVar4 == 0) {
LAB_000122a8:
    uVar2 = 0;
  }
  else {
    if (0x17 < iVar4 - 9U) {
LAB_00012214:
      if (iVar4 - 0x30U < 10) {
        local_10 = (char *)0x0;
        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);
        if (local_10 != (char *)0x0) {
          cVar1 = *local_10;
          while (iVar4 = (int)cVar1, iVar4 != 0) {
            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {
              if (iVar4 != 0x2c) goto LAB_000122a8;
              break;
            }
            local_10 = local_10 + 1;
            cVar1 = *local_10;
          }
          goto LAB_000122ac;
        }
      }
      goto LAB_000122a8;
    }
    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;
    if (uVar2 != 0) {
      param_1 = param_1 + 1;
      cVar1 = *param_1;
      while( true ) {
        iVar4 = (int)cVar1;
        if (iVar4 == 0) break;
        if (0x17 < iVar4 - 9U) goto LAB_00012214;
        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;
        param_1 = param_1 + 1;
        if (uVar2 == 0) goto LAB_000122ac;
        cVar1 = *param_1;
      }
      goto LAB_000122a8;
    }
  }
LAB_000122ac:
  if (local_c == *(int *)puVar5) {
    return uVar2;
  }
  iVar4 = local_c;
  puVar5 = PTR___stack_chk_fail_00029294;
  (*(code *)PTR___stack_chk_fail_00029294)();
  if (iVar4 == 2) {
    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);
    if (iVar4 != 0) {
      uVar3 = FUN_00012180(iVar4);
      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);
      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {
        uVar2 = 0xffffffff;
      }
      if (uVar3 != 0) {
        if (uVar2 <= uVar3) {
          uVar3 = uVar2;
        }
        return uVar3;
      }
      goto LAB_000123a8;
    }
    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);
    if ((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)) goto LAB_000123a8;
  }
  else if (iVar4 != 1) {
    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);
    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {
      return 1;
    }
    if ((int)uVar2 < 1) {
      uVar2 = 1;
    }
    return uVar2;
  }
  uVar2 = 0xffffffff;
LAB_000123a8:
  uVar3 = FUN_000120e0();
  if ((uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)) {
    return 1;
  }
  if (uVar2 < uVar3) {
    uVar3 = uVar2;
  }
  return uVar3;
}


lui gp,0x2
addiu gp,gp,-0x10b0
addu gp,gp,t9
addiu sp,sp,-0x28
sw s0,0x20(sp)
sw gp,0x10(sp)
sw ra,0x24(sp)
lw s0,-0x7e24(gp)
lb v1,0x0(a0)
lw v0,0x0(s0)
sw v0,0x1c(sp)
beq v1,zero,0x000122a8
_addiu a1,v1,-0x9
sltiu v0,a1,0x18
beq v0,zero,0x00012214
_addiu v1,v1,-0x30
li v0,0x1
lui v1,0x80
sllv v0,v0,a1
addiu v1,v1,0x1f
and v0,v0,v1
beq v0,zero,0x000122ac
_li a3,0x1
or a1,v1,zero
addiu a0,a0,0x1
lb v1,0x0(a0)
beq v1,zero,0x000122a8
_addiu v0,v1,-0x9
sltiu a2,v0,0x18
beq a2,zero,0x00012214
_addiu v1,v1,-0x30
sllv v0,a3,v0
and v0,v0,a1
beq v0,zero,0x000122ac
_addiu a0,a0,0x1
b 0x000121e8
_lb v1,0x0(a0)
sltiu v1,v1,0xa
beq v1,zero,0x000122a8
_lw t9,-0x7e7c(gp)
li a2,0xa
addiu a1,sp,0x18
jalr t9
_sw zero,0x18(sp)
lw v1,0x18(sp)
beq v1,zero,0x000122a8
_lw gp,0x10(sp)
lb a0,0x0(v1)
beq a0,zero,0x000122ac
_nop
addiu a2,a0,-0x9
sltiu a1,a2,0x18
beq a1,zero,0x0001229c
_li a1,0x1
sllv a1,a1,a2
lui a2,0x80
addiu a2,a2,0x1f
and a1,a1,a2
beq a1,zero,0x0001229c
_addiu v1,v1,0x1
li t0,0x1
sw v1,0x18(sp)
lb a0,0x0(v1)
beq a0,zero,0x000122ac
_addiu a1,a0,-0x9
sltiu a3,a1,0x18
beq a3,zero,0x0001229c
_sllv a1,t0,a1
and a1,a1,a2
bne a1,zero,0x00012274
_addiu v1,v1,0x1
li v1,0x2c
beq a0,v1,0x000122ac
_nop
or v0,zero,zero
lw a0,0x1c(sp)
lw v1,0x0(s0)
bne a0,v1,0x000122c8
_lw ra,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7e3c(gp)
jalr t9
_nop
(translation_unit "/* WARNING: Type propagation algorithm not settling */\n\nuint FUN_00012180(char *param_1)\n\n{\n  char cVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  undefined *puVar5;\n  char *local_10;\n  int local_c;\n  \n  puVar5 = PTR___stack_chk_guard_000292ac;\n  iVar4 = (int)*param_1;\n  local_c = *(int *)PTR___stack_chk_guard_000292ac;\n  if (iVar4 == 0) {\nLAB_000122a8:\n    uVar2 = 0;\n  }\n  else {\n    if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }\n  }\nLAB_000122ac:\n  if (local_c == *(int *)puVar5) {\n    return uVar2;\n  }\n  iVar4 = local_c;\n  puVar5 = PTR___stack_chk_fail_00029294;\n  (*(code *)PTR___stack_chk_fail_00029294)();\n  if (iVar4 == 2) {\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);\n    if (iVar4 != 0) {\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n    if ((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)) goto LAB_000123a8;\n  }\n  else if (iVar4 != 1) {\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }\n  uVar2 = 0xffffffff;\nLAB_000123a8:\n  uVar3 = FUN_000120e0();\n  if ((uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)) {\n    return 1;\n  }\n  if (uVar2 < uVar3) {\n    uVar3 = uVar2;\n  }\n  return uVar3;\n}\n\n" comment (function_definition "uint FUN_00012180(char *param_1)\n\n{\n  char cVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  undefined *puVar5;\n  char *local_10;\n  int local_c;\n  \n  puVar5 = PTR___stack_chk_guard_000292ac;\n  iVar4 = (int)*param_1;\n  local_c = *(int *)PTR___stack_chk_guard_000292ac;\n  if (iVar4 == 0) {\nLAB_000122a8:\n    uVar2 = 0;\n  }\n  else {\n    if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }\n  }\nLAB_000122ac:\n  if (local_c == *(int *)puVar5) {\n    return uVar2;\n  }\n  iVar4 = local_c;\n  puVar5 = PTR___stack_chk_fail_00029294;\n  (*(code *)PTR___stack_chk_fail_00029294)();\n  if (iVar4 == 2) {\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);\n    if (iVar4 != 0) {\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n    if ((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)) goto LAB_000123a8;\n  }\n  else if (iVar4 != 1) {\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }\n  uVar2 = 0xffffffff;\nLAB_000123a8:\n  uVar3 = FUN_000120e0();\n  if ((uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)) {\n    return 1;\n  }\n  if (uVar2 < uVar3) {\n    uVar3 = uVar2;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00012180(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  undefined *puVar5;\n  char *local_10;\n  int local_c;\n  \n  puVar5 = PTR___stack_chk_guard_000292ac;\n  iVar4 = (int)*param_1;\n  local_c = *(int *)PTR___stack_chk_guard_000292ac;\n  if (iVar4 == 0) {\nLAB_000122a8:\n    uVar2 = 0;\n  }\n  else {\n    if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }\n  }\nLAB_000122ac:\n  if (local_c == *(int *)puVar5) {\n    return uVar2;\n  }\n  iVar4 = local_c;\n  puVar5 = PTR___stack_chk_fail_00029294;\n  (*(code *)PTR___stack_chk_fail_00029294)();\n  if (iVar4 == 2) {\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);\n    if (iVar4 != 0) {\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n    if ((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)) goto LAB_000123a8;\n  }\n  else if (iVar4 != 1) {\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }\n  uVar2 = 0xffffffff;\nLAB_000123a8:\n  uVar3 = FUN_000120e0();\n  if ((uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)) {\n    return 1;\n  }\n  if (uVar2 < uVar3) {\n    uVar3 = uVar2;\n  }\n  return uVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "char *local_10;" primitive_type (pointer_declarator "*local_10" * identifier) ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar5 = PTR___stack_chk_guard_000292ac;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000292ac" identifier = identifier) ;) (expression_statement "iVar4 = (int)*param_1;" (assignment_expression "iVar4 = (int)*param_1" identifier = (cast_expression "(int)*param_1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000292ac;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000292ac" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000292ac" * (cast_expression "(int *)PTR___stack_chk_guard_000292ac" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (iVar4 == 0) {\nLAB_000122a8:\n    uVar2 = 0;\n  }\n  else {\n    if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000122a8:\n    uVar2 = 0;\n  }" { (labeled_statement "LAB_000122a8:\n    uVar2 = 0;" statement_identifier : (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n    if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }\n  }" else (compound_statement "{\n    if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }\n  }" { (if_statement "if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }" if (parenthesized_expression "(0x17 < iVar4 - 9U)" ( (binary_expression "0x17 < iVar4 - 9U" number_literal < (binary_expression "iVar4 - 9U" identifier - number_literal)) )) (compound_statement "{\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }" { (labeled_statement "LAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }" statement_identifier : (if_statement "if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }" if (parenthesized_expression "(iVar4 - 0x30U < 10)" ( (binary_expression "iVar4 - 0x30U < 10" (binary_expression "iVar4 - 0x30U" identifier - number_literal) < number_literal) )) (compound_statement "{\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }" { (expression_statement "local_10 = (char *)0x0;" (assignment_expression "local_10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);" (assignment_expression "uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10)" identifier = (call_expression "(*(code *)PTR_strtoul_00029254)(param_1,&local_10,10)" (parenthesized_expression "(*(code *)PTR_strtoul_00029254)" ( (pointer_expression "*(code *)PTR_strtoul_00029254" * (cast_expression "(code *)PTR_strtoul_00029254" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,&local_10,10)" ( identifier , (pointer_expression "&local_10" & identifier) , number_literal )))) ;) (if_statement "if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }" if (parenthesized_expression "(local_10 != (char *)0x0)" ( (binary_expression "local_10 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }" { (expression_statement "cVar1 = *local_10;" (assignment_expression "cVar1 = *local_10" identifier = (pointer_expression "*local_10" * identifier)) ;) (while_statement "while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }" while (parenthesized_expression "(iVar4 = (int)cVar1, iVar4 != 0)" ( (comma_expression "iVar4 = (int)cVar1, iVar4 != 0" (assignment_expression "iVar4 = (int)cVar1" identifier = (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "iVar4 != 0" identifier != number_literal)) )) (compound_statement "{\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }" { (if_statement "if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }" if (parenthesized_expression "((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0))" ( (binary_expression "(0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)" (parenthesized_expression "(0x17 < iVar4 - 9U)" ( (binary_expression "0x17 < iVar4 - 9U" number_literal < (binary_expression "iVar4 - 9U" identifier - number_literal)) )) || (parenthesized_expression "((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)" ( (binary_expression "(1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0" (parenthesized_expression "(1 << (iVar4 - 9U & 0x1f) & 0x80001fU)" ( (binary_expression "1 << (iVar4 - 9U & 0x1f) & 0x80001fU" (binary_expression "1 << (iVar4 - 9U & 0x1f)" number_literal << (parenthesized_expression "(iVar4 - 9U & 0x1f)" ( (binary_expression "iVar4 - 9U & 0x1f" (binary_expression "iVar4 - 9U" identifier - number_literal) & number_literal) ))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }" { (if_statement "if (iVar4 != 0x2c) goto LAB_000122a8;" if (parenthesized_expression "(iVar4 != 0x2c)" ( (binary_expression "iVar4 != 0x2c" identifier != number_literal) )) (goto_statement "goto LAB_000122a8;" goto statement_identifier ;)) (break_statement "break;" break ;) })) (expression_statement "local_10 = local_10 + 1;" (assignment_expression "local_10 = local_10 + 1" identifier = (binary_expression "local_10 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *local_10;" (assignment_expression "cVar1 = *local_10" identifier = (pointer_expression "*local_10" * identifier)) ;) })) (goto_statement "goto LAB_000122ac;" goto statement_identifier ;) })) }))) (goto_statement "goto LAB_000122a8;" goto statement_identifier ;) })) (expression_statement "uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;" (assignment_expression "uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f" identifier = (binary_expression "1 << (iVar4 - 9U & 0x1f) & 0x80001f" (binary_expression "1 << (iVar4 - 9U & 0x1f)" number_literal << (parenthesized_expression "(iVar4 - 9U & 0x1f)" ( (binary_expression "iVar4 - 9U & 0x1f" (binary_expression "iVar4 - 9U" identifier - number_literal) & number_literal) ))) & number_literal)) ;) (if_statement "if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\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 "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (while_statement "while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }" { (expression_statement "iVar4 = (int)cVar1;" (assignment_expression "iVar4 = (int)cVar1" identifier = (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (0x17 < iVar4 - 9U) goto LAB_00012214;" if (parenthesized_expression "(0x17 < iVar4 - 9U)" ( (binary_expression "0x17 < iVar4 - 9U" number_literal < (binary_expression "iVar4 - 9U" identifier - number_literal)) )) (goto_statement "goto LAB_00012214;" goto statement_identifier ;)) (expression_statement "uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;" (assignment_expression "uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f" identifier = (binary_expression "1 << (iVar4 - 9U & 0x1f) & 0x80001f" (binary_expression "1 << (iVar4 - 9U & 0x1f)" number_literal << (parenthesized_expression "(iVar4 - 9U & 0x1f)" ( (binary_expression "iVar4 - 9U & 0x1f" (binary_expression "iVar4 - 9U" identifier - number_literal) & number_literal) ))) & number_literal)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (uVar2 == 0) goto LAB_000122ac;" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000122ac;" goto statement_identifier ;)) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (goto_statement "goto LAB_000122a8;" goto statement_identifier ;) })) }))) (labeled_statement "LAB_000122ac:\n  if (local_c == *(int *)puVar5) {\n    return uVar2;\n  }" statement_identifier : (if_statement "if (local_c == *(int *)puVar5) {\n    return uVar2;\n  }" if (parenthesized_expression "(local_c == *(int *)puVar5)" ( (binary_expression "local_c == *(int *)puVar5" identifier == (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) }))) (expression_statement "iVar4 = local_c;" (assignment_expression "iVar4 = local_c" identifier = identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_fail_00029294;" (assignment_expression "puVar5 = PTR___stack_chk_fail_00029294" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00029294)();" (call_expression "(*(code *)PTR___stack_chk_fail_00029294)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00029294)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00029294" * (cast_expression "(code *)PTR___stack_chk_fail_00029294" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (iVar4 == 2) {\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);\n    if (iVar4 != 0) {\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n    if ((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)) goto LAB_000123a8;\n  }\n  else if (iVar4 != 1) {\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(iVar4 == 2)" ( (binary_expression "iVar4 == 2" identifier == number_literal) )) (compound_statement "{\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);\n    if (iVar4 != 0) {\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n    if ((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)) goto LAB_000123a8;\n  }" { (expression_statement "iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);" (assignment_expression "iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74)" identifier = (call_expression "(**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74)" (parenthesized_expression "(**(code **)(puVar5 + 0x16f98))" ( (pointer_expression "**(code **)(puVar5 + 0x16f98)" * (pointer_expression "*(code **)(puVar5 + 0x16f98)" * (cast_expression "(code **)(puVar5 + 0x16f98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x16f98)" ( (binary_expression "puVar5 + 0x16f98" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar5 + 0x16e30) + 0x7e74)" ( (binary_expression "*(int *)(puVar5 + 0x16e30) + 0x7e74" (pointer_expression "*(int *)(puVar5 + 0x16e30)" * (cast_expression "(int *)(puVar5 + 0x16e30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x16e30)" ( (binary_expression "puVar5 + 0x16e30" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (iVar4 != 0) {\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }" { (expression_statement "uVar3 = FUN_00012180(iVar4);" (assignment_expression "uVar3 = FUN_00012180(iVar4)" identifier = (call_expression "FUN_00012180(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);" (assignment_expression "iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84)" identifier = (call_expression "(**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84)" (parenthesized_expression "(**(code **)(puVar5 + 0x16f98))" ( (pointer_expression "**(code **)(puVar5 + 0x16f98)" * (pointer_expression "*(code **)(puVar5 + 0x16f98)" * (cast_expression "(code **)(puVar5 + 0x16f98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x16f98)" ( (binary_expression "puVar5 + 0x16f98" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar5 + 0x16e30) + 0x7e84)" ( (binary_expression "*(int *)(puVar5 + 0x16e30) + 0x7e84" (pointer_expression "*(int *)(puVar5 + 0x16e30)" * (cast_expression "(int *)(puVar5 + 0x16e30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x16e30)" ( (binary_expression "puVar5 + 0x16e30" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }" if (parenthesized_expression "((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0))" ( (binary_expression "(iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar2 = FUN_00012180(iVar4), uVar2 == 0)" ( (comma_expression "uVar2 = FUN_00012180(iVar4), uVar2 == 0" (assignment_expression "uVar2 = FUN_00012180(iVar4)" identifier = (call_expression "FUN_00012180(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) , (binary_expression "uVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        uVar2 = 0xffffffff;\n      }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) })) (if_statement "if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }" { (if_statement "if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }" if (parenthesized_expression "(uVar2 <= uVar3)" ( (binary_expression "uVar2 <= uVar3" identifier <= identifier) )) (compound_statement "{\n          uVar3 = uVar2;\n        }" { (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" identifier = identifier) ;) })) (return_statement "return uVar3;" return identifier ;) })) (goto_statement "goto LAB_000123a8;" goto statement_identifier ;) })) (expression_statement "iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);" (assignment_expression "iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84)" identifier = (call_expression "(**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84)" (parenthesized_expression "(**(code **)(puVar5 + 0x16f98))" ( (pointer_expression "**(code **)(puVar5 + 0x16f98)" * (pointer_expression "*(code **)(puVar5 + 0x16f98)" * (cast_expression "(code **)(puVar5 + 0x16f98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x16f98)" ( (binary_expression "puVar5 + 0x16f98" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar5 + 0x16e30) + 0x7e84)" ( (binary_expression "*(int *)(puVar5 + 0x16e30) + 0x7e84" (pointer_expression "*(int *)(puVar5 + 0x16e30)" * (cast_expression "(int *)(puVar5 + 0x16e30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x16e30)" ( (binary_expression "puVar5 + 0x16e30" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if ((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)) goto LAB_000123a8;" if (parenthesized_expression "((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0))" ( (binary_expression "(iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)" (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar2 = FUN_00012180(iVar4), uVar2 != 0)" ( (comma_expression "uVar2 = FUN_00012180(iVar4), uVar2 != 0" (assignment_expression "uVar2 = FUN_00012180(iVar4)" identifier = (call_expression "FUN_00012180(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) , (binary_expression "uVar2 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_000123a8;" goto statement_identifier ;)) }) (else_clause "else if (iVar4 != 1) {\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }" else (if_statement "if (iVar4 != 1) {\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(iVar4 != 1)" ( (binary_expression "iVar4 != 1" identifier != number_literal) )) (compound_statement "{\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }" { (expression_statement "uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);" (assignment_expression "uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53)" identifier = (call_expression "(**(code **)(puVar5 + 0x16fbc))(0x53)" (parenthesized_expression "(**(code **)(puVar5 + 0x16fbc))" ( (pointer_expression "**(code **)(puVar5 + 0x16fbc)" * (pointer_expression "*(code **)(puVar5 + 0x16fbc)" * (cast_expression "(code **)(puVar5 + 0x16fbc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x16fbc)" ( (binary_expression "puVar5 + 0x16fbc" identifier + number_literal) ))))) )) (argument_list "(0x53)" ( number_literal )))) ;) (if_statement "if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }" if (parenthesized_expression "((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0))" ( (binary_expression "(uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)" (parenthesized_expression "(uVar2 == 1)" ( (binary_expression "uVar2 == 1" identifier == number_literal) )) && (parenthesized_expression "(uVar2 = FUN_000120e0(), uVar2 == 0)" ( (comma_expression "uVar2 = FUN_000120e0(), uVar2 == 0" (assignment_expression "uVar2 = FUN_000120e0()" identifier = (call_expression "FUN_000120e0()" identifier (argument_list "()" ( )))) , (binary_expression "uVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }" if (parenthesized_expression "((int)uVar2 < 1)" ( (binary_expression "(int)uVar2 < 1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      uVar2 = 1;\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) })) (return_statement "return uVar2;" return identifier ;) })))) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (labeled_statement "LAB_000123a8:\n  uVar3 = FUN_000120e0();" statement_identifier : (expression_statement "uVar3 = FUN_000120e0();" (assignment_expression "uVar3 = FUN_000120e0()" identifier = (call_expression "FUN_000120e0()" identifier (argument_list "()" ( )))) ;)) (if_statement "if ((uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)) {\n    return 1;\n  }" if (parenthesized_expression "((uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1))" ( (binary_expression "(uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)" (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) && (parenthesized_expression "(uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)" ( (comma_expression "uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1" (assignment_expression "uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54)" identifier = (call_expression "(**(code **)(puVar5 + 0x16fbc))(0x54)" (parenthesized_expression "(**(code **)(puVar5 + 0x16fbc))" ( (pointer_expression "**(code **)(puVar5 + 0x16fbc)" * (pointer_expression "*(code **)(puVar5 + 0x16fbc)" * (cast_expression "(code **)(puVar5 + 0x16fbc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x16fbc)" ( (binary_expression "puVar5 + 0x16fbc" identifier + number_literal) ))))) )) (argument_list "(0x54)" ( number_literal )))) , (binary_expression "(int)uVar3 < 1" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal)) ))) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (uVar2 < uVar3) {\n    uVar3 = uVar2;\n  }" if (parenthesized_expression "(uVar2 < uVar3)" ( (binary_expression "uVar2 < uVar3" identifier < identifier) )) (compound_statement "{\n    uVar3 = uVar2;\n  }" { (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" identifier = identifier) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Type propagation algorithm not settling */\n\nulong parse_omp_threads(char *threads)\n\n{\n  char cVar1;\n  ulong uVar2;\n  char *pcVar3;\n  ulong uVar4;\n  uint uVar5;\n  int iVar6;\n  undefined *puVar7;\n  char *endptr;\n  int local_c;\n  \n  puVar7 = PTR___stack_chk_guard_000292ac;\n  iVar6 = (int)*threads;\n  local_c = *(int *)PTR___stack_chk_guard_000292ac;\n  if (iVar6 == 0) {\nLAB_000122a8:\n    uVar2 = 0;\n  }\n  else {\n    if (0x17 < iVar6 - 9U) {\nLAB_00012214:\n      if (iVar6 - 0x30U < 10) {\n        endptr = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(threads,&endptr,10);\n        if (endptr != (char *)0x0) {\n          cVar1 = *endptr;\n          while (iVar6 = (int)cVar1, iVar6 != 0) {\n            if ((0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar6 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            endptr = endptr + 1;\n            cVar1 = *endptr;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      threads = threads + 1;\n      cVar1 = *threads;\n      while( true ) {\n        iVar6 = (int)cVar1;\n        if (iVar6 == 0) break;\n        if (0x17 < iVar6 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;\n        threads = threads + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *threads;\n      }\n      goto LAB_000122a8;\n    }\n  }\nLAB_000122ac:\n  if (local_c == *(int *)puVar7) {\n    return uVar2;\n  }\n  iVar6 = local_c;\n  puVar7 = PTR___stack_chk_fail_00029294;\n  (*(code *)PTR___stack_chk_fail_00029294)();\n  if (iVar6 == 2) {\n    pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e74);\n    if (pcVar3 != (char *)0x0) {\n      uVar4 = parse_omp_threads(pcVar3);\n      pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84);\n      if ((pcVar3 == (char *)0x0) || (uVar2 = parse_omp_threads(pcVar3), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar4 != 0) {\n        if (uVar2 <= uVar4) {\n          uVar4 = uVar2;\n        }\n        return uVar4;\n      }\n      goto LAB_000123a8;\n    }\n    pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84);\n    if ((pcVar3 != (char *)0x0) && (uVar2 = parse_omp_threads(pcVar3), uVar2 != 0))\n    goto LAB_000123a8;\n  }\n  else if (iVar6 != 1) {\n    uVar2 = (**(code **)(puVar7 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = num_processors_via_affinity_mask(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }\n  uVar2 = 0xffffffff;\nLAB_000123a8:\n  uVar5 = num_processors_via_affinity_mask();\n  if ((uVar5 == 0) && (uVar5 = (**(code **)(puVar7 + 0x16fbc))(0x54), (int)uVar5 < 1)) {\n    return 1;\n  }\n  if (uVar2 < uVar5) {\n    uVar5 = uVar2;\n  }\n  return uVar5;\n}\n\n" comment (function_definition "ulong parse_omp_threads(char *threads)\n\n{\n  char cVar1;\n  ulong uVar2;\n  char *pcVar3;\n  ulong uVar4;\n  uint uVar5;\n  int iVar6;\n  undefined *puVar7;\n  char *endptr;\n  int local_c;\n  \n  puVar7 = PTR___stack_chk_guard_000292ac;\n  iVar6 = (int)*threads;\n  local_c = *(int *)PTR___stack_chk_guard_000292ac;\n  if (iVar6 == 0) {\nLAB_000122a8:\n    uVar2 = 0;\n  }\n  else {\n    if (0x17 < iVar6 - 9U) {\nLAB_00012214:\n      if (iVar6 - 0x30U < 10) {\n        endptr = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(threads,&endptr,10);\n        if (endptr != (char *)0x0) {\n          cVar1 = *endptr;\n          while (iVar6 = (int)cVar1, iVar6 != 0) {\n            if ((0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar6 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            endptr = endptr + 1;\n            cVar1 = *endptr;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      threads = threads + 1;\n      cVar1 = *threads;\n      while( true ) {\n        iVar6 = (int)cVar1;\n        if (iVar6 == 0) break;\n        if (0x17 < iVar6 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;\n        threads = threads + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *threads;\n      }\n      goto LAB_000122a8;\n    }\n  }\nLAB_000122ac:\n  if (local_c == *(int *)puVar7) {\n    return uVar2;\n  }\n  iVar6 = local_c;\n  puVar7 = PTR___stack_chk_fail_00029294;\n  (*(code *)PTR___stack_chk_fail_00029294)();\n  if (iVar6 == 2) {\n    pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e74);\n    if (pcVar3 != (char *)0x0) {\n      uVar4 = parse_omp_threads(pcVar3);\n      pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84);\n      if ((pcVar3 == (char *)0x0) || (uVar2 = parse_omp_threads(pcVar3), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar4 != 0) {\n        if (uVar2 <= uVar4) {\n          uVar4 = uVar2;\n        }\n        return uVar4;\n      }\n      goto LAB_000123a8;\n    }\n    pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84);\n    if ((pcVar3 != (char *)0x0) && (uVar2 = parse_omp_threads(pcVar3), uVar2 != 0))\n    goto LAB_000123a8;\n  }\n  else if (iVar6 != 1) {\n    uVar2 = (**(code **)(puVar7 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = num_processors_via_affinity_mask(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }\n  uVar2 = 0xffffffff;\nLAB_000123a8:\n  uVar5 = num_processors_via_affinity_mask();\n  if ((uVar5 == 0) && (uVar5 = (**(code **)(puVar7 + 0x16fbc))(0x54), (int)uVar5 < 1)) {\n    return 1;\n  }\n  if (uVar2 < uVar5) {\n    uVar5 = uVar2;\n  }\n  return uVar5;\n}" type_identifier (function_declarator "parse_omp_threads(char *threads)" identifier (parameter_list "(char *threads)" ( (parameter_declaration "char *threads" primitive_type (pointer_declarator "*threads" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  ulong uVar2;\n  char *pcVar3;\n  ulong uVar4;\n  uint uVar5;\n  int iVar6;\n  undefined *puVar7;\n  char *endptr;\n  int local_c;\n  \n  puVar7 = PTR___stack_chk_guard_000292ac;\n  iVar6 = (int)*threads;\n  local_c = *(int *)PTR___stack_chk_guard_000292ac;\n  if (iVar6 == 0) {\nLAB_000122a8:\n    uVar2 = 0;\n  }\n  else {\n    if (0x17 < iVar6 - 9U) {\nLAB_00012214:\n      if (iVar6 - 0x30U < 10) {\n        endptr = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(threads,&endptr,10);\n        if (endptr != (char *)0x0) {\n          cVar1 = *endptr;\n          while (iVar6 = (int)cVar1, iVar6 != 0) {\n            if ((0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar6 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            endptr = endptr + 1;\n            cVar1 = *endptr;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      threads = threads + 1;\n      cVar1 = *threads;\n      while( true ) {\n        iVar6 = (int)cVar1;\n        if (iVar6 == 0) break;\n        if (0x17 < iVar6 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;\n        threads = threads + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *threads;\n      }\n      goto LAB_000122a8;\n    }\n  }\nLAB_000122ac:\n  if (local_c == *(int *)puVar7) {\n    return uVar2;\n  }\n  iVar6 = local_c;\n  puVar7 = PTR___stack_chk_fail_00029294;\n  (*(code *)PTR___stack_chk_fail_00029294)();\n  if (iVar6 == 2) {\n    pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e74);\n    if (pcVar3 != (char *)0x0) {\n      uVar4 = parse_omp_threads(pcVar3);\n      pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84);\n      if ((pcVar3 == (char *)0x0) || (uVar2 = parse_omp_threads(pcVar3), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar4 != 0) {\n        if (uVar2 <= uVar4) {\n          uVar4 = uVar2;\n        }\n        return uVar4;\n      }\n      goto LAB_000123a8;\n    }\n    pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84);\n    if ((pcVar3 != (char *)0x0) && (uVar2 = parse_omp_threads(pcVar3), uVar2 != 0))\n    goto LAB_000123a8;\n  }\n  else if (iVar6 != 1) {\n    uVar2 = (**(code **)(puVar7 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = num_processors_via_affinity_mask(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }\n  uVar2 = 0xffffffff;\nLAB_000123a8:\n  uVar5 = num_processors_via_affinity_mask();\n  if ((uVar5 == 0) && (uVar5 = (**(code **)(puVar7 + 0x16fbc))(0x54), (int)uVar5 < 1)) {\n    return 1;\n  }\n  if (uVar2 < uVar5) {\n    uVar5 = uVar2;\n  }\n  return uVar5;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "char *endptr;" primitive_type (pointer_declarator "*endptr" * identifier) ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar7 = PTR___stack_chk_guard_000292ac;" (assignment_expression "puVar7 = PTR___stack_chk_guard_000292ac" identifier = identifier) ;) (expression_statement "iVar6 = (int)*threads;" (assignment_expression "iVar6 = (int)*threads" identifier = (cast_expression "(int)*threads" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*threads" * identifier))) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000292ac;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000292ac" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000292ac" * (cast_expression "(int *)PTR___stack_chk_guard_000292ac" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (iVar6 == 0) {\nLAB_000122a8:\n    uVar2 = 0;\n  }\n  else {\n    if (0x17 < iVar6 - 9U) {\nLAB_00012214:\n      if (iVar6 - 0x30U < 10) {\n        endptr = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(threads,&endptr,10);\n        if (endptr != (char *)0x0) {\n          cVar1 = *endptr;\n          while (iVar6 = (int)cVar1, iVar6 != 0) {\n            if ((0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar6 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            endptr = endptr + 1;\n            cVar1 = *endptr;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      threads = threads + 1;\n      cVar1 = *threads;\n      while( true ) {\n        iVar6 = (int)cVar1;\n        if (iVar6 == 0) break;\n        if (0x17 < iVar6 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;\n        threads = threads + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *threads;\n      }\n      goto LAB_000122a8;\n    }\n  }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000122a8:\n    uVar2 = 0;\n  }" { (labeled_statement "LAB_000122a8:\n    uVar2 = 0;" statement_identifier : (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n    if (0x17 < iVar6 - 9U) {\nLAB_00012214:\n      if (iVar6 - 0x30U < 10) {\n        endptr = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(threads,&endptr,10);\n        if (endptr != (char *)0x0) {\n          cVar1 = *endptr;\n          while (iVar6 = (int)cVar1, iVar6 != 0) {\n            if ((0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar6 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            endptr = endptr + 1;\n            cVar1 = *endptr;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      threads = threads + 1;\n      cVar1 = *threads;\n      while( true ) {\n        iVar6 = (int)cVar1;\n        if (iVar6 == 0) break;\n        if (0x17 < iVar6 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;\n        threads = threads + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *threads;\n      }\n      goto LAB_000122a8;\n    }\n  }" else (compound_statement "{\n    if (0x17 < iVar6 - 9U) {\nLAB_00012214:\n      if (iVar6 - 0x30U < 10) {\n        endptr = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(threads,&endptr,10);\n        if (endptr != (char *)0x0) {\n          cVar1 = *endptr;\n          while (iVar6 = (int)cVar1, iVar6 != 0) {\n            if ((0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar6 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            endptr = endptr + 1;\n            cVar1 = *endptr;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      threads = threads + 1;\n      cVar1 = *threads;\n      while( true ) {\n        iVar6 = (int)cVar1;\n        if (iVar6 == 0) break;\n        if (0x17 < iVar6 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;\n        threads = threads + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *threads;\n      }\n      goto LAB_000122a8;\n    }\n  }" { (if_statement "if (0x17 < iVar6 - 9U) {\nLAB_00012214:\n      if (iVar6 - 0x30U < 10) {\n        endptr = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(threads,&endptr,10);\n        if (endptr != (char *)0x0) {\n          cVar1 = *endptr;\n          while (iVar6 = (int)cVar1, iVar6 != 0) {\n            if ((0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar6 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            endptr = endptr + 1;\n            cVar1 = *endptr;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }" if (parenthesized_expression "(0x17 < iVar6 - 9U)" ( (binary_expression "0x17 < iVar6 - 9U" number_literal < (binary_expression "iVar6 - 9U" identifier - number_literal)) )) (compound_statement "{\nLAB_00012214:\n      if (iVar6 - 0x30U < 10) {\n        endptr = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(threads,&endptr,10);\n        if (endptr != (char *)0x0) {\n          cVar1 = *endptr;\n          while (iVar6 = (int)cVar1, iVar6 != 0) {\n            if ((0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar6 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            endptr = endptr + 1;\n            cVar1 = *endptr;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }" { (labeled_statement "LAB_00012214:\n      if (iVar6 - 0x30U < 10) {\n        endptr = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(threads,&endptr,10);\n        if (endptr != (char *)0x0) {\n          cVar1 = *endptr;\n          while (iVar6 = (int)cVar1, iVar6 != 0) {\n            if ((0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar6 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            endptr = endptr + 1;\n            cVar1 = *endptr;\n          }\n          goto LAB_000122ac;\n        }\n      }" statement_identifier : (if_statement "if (iVar6 - 0x30U < 10) {\n        endptr = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(threads,&endptr,10);\n        if (endptr != (char *)0x0) {\n          cVar1 = *endptr;\n          while (iVar6 = (int)cVar1, iVar6 != 0) {\n            if ((0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar6 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            endptr = endptr + 1;\n            cVar1 = *endptr;\n          }\n          goto LAB_000122ac;\n        }\n      }" if (parenthesized_expression "(iVar6 - 0x30U < 10)" ( (binary_expression "iVar6 - 0x30U < 10" (binary_expression "iVar6 - 0x30U" identifier - number_literal) < number_literal) )) (compound_statement "{\n        endptr = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(threads,&endptr,10);\n        if (endptr != (char *)0x0) {\n          cVar1 = *endptr;\n          while (iVar6 = (int)cVar1, iVar6 != 0) {\n            if ((0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar6 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            endptr = endptr + 1;\n            cVar1 = *endptr;\n          }\n          goto LAB_000122ac;\n        }\n      }" { (expression_statement "endptr = (char *)0x0;" (assignment_expression "endptr = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar2 = (*(code *)PTR_strtoul_00029254)(threads,&endptr,10);" (assignment_expression "uVar2 = (*(code *)PTR_strtoul_00029254)(threads,&endptr,10)" identifier = (call_expression "(*(code *)PTR_strtoul_00029254)(threads,&endptr,10)" (parenthesized_expression "(*(code *)PTR_strtoul_00029254)" ( (pointer_expression "*(code *)PTR_strtoul_00029254" * (cast_expression "(code *)PTR_strtoul_00029254" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(threads,&endptr,10)" ( identifier , (pointer_expression "&endptr" & identifier) , number_literal )))) ;) (if_statement "if (endptr != (char *)0x0) {\n          cVar1 = *endptr;\n          while (iVar6 = (int)cVar1, iVar6 != 0) {\n            if ((0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar6 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            endptr = endptr + 1;\n            cVar1 = *endptr;\n          }\n          goto LAB_000122ac;\n        }" if (parenthesized_expression "(endptr != (char *)0x0)" ( (binary_expression "endptr != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          cVar1 = *endptr;\n          while (iVar6 = (int)cVar1, iVar6 != 0) {\n            if ((0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar6 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            endptr = endptr + 1;\n            cVar1 = *endptr;\n          }\n          goto LAB_000122ac;\n        }" { (expression_statement "cVar1 = *endptr;" (assignment_expression "cVar1 = *endptr" identifier = (pointer_expression "*endptr" * identifier)) ;) (while_statement "while (iVar6 = (int)cVar1, iVar6 != 0) {\n            if ((0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar6 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            endptr = endptr + 1;\n            cVar1 = *endptr;\n          }" while (parenthesized_expression "(iVar6 = (int)cVar1, iVar6 != 0)" ( (comma_expression "iVar6 = (int)cVar1, iVar6 != 0" (assignment_expression "iVar6 = (int)cVar1" identifier = (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "iVar6 != 0" identifier != number_literal)) )) (compound_statement "{\n            if ((0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar6 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            endptr = endptr + 1;\n            cVar1 = *endptr;\n          }" { (if_statement "if ((0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar6 != 0x2c) goto LAB_000122a8;\n              break;\n            }" if (parenthesized_expression "((0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0))" ( (binary_expression "(0x17 < iVar6 - 9U) || ((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)" (parenthesized_expression "(0x17 < iVar6 - 9U)" ( (binary_expression "0x17 < iVar6 - 9U" number_literal < (binary_expression "iVar6 - 9U" identifier - number_literal)) )) || (parenthesized_expression "((1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0)" ( (binary_expression "(1 << (iVar6 - 9U & 0x1f) & 0x80001fU) == 0" (parenthesized_expression "(1 << (iVar6 - 9U & 0x1f) & 0x80001fU)" ( (binary_expression "1 << (iVar6 - 9U & 0x1f) & 0x80001fU" (binary_expression "1 << (iVar6 - 9U & 0x1f)" number_literal << (parenthesized_expression "(iVar6 - 9U & 0x1f)" ( (binary_expression "iVar6 - 9U & 0x1f" (binary_expression "iVar6 - 9U" identifier - number_literal) & number_literal) ))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n              if (iVar6 != 0x2c) goto LAB_000122a8;\n              break;\n            }" { (if_statement "if (iVar6 != 0x2c) goto LAB_000122a8;" if (parenthesized_expression "(iVar6 != 0x2c)" ( (binary_expression "iVar6 != 0x2c" identifier != number_literal) )) (goto_statement "goto LAB_000122a8;" goto statement_identifier ;)) (break_statement "break;" break ;) })) (expression_statement "endptr = endptr + 1;" (assignment_expression "endptr = endptr + 1" identifier = (binary_expression "endptr + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *endptr;" (assignment_expression "cVar1 = *endptr" identifier = (pointer_expression "*endptr" * identifier)) ;) })) (goto_statement "goto LAB_000122ac;" goto statement_identifier ;) })) }))) (goto_statement "goto LAB_000122a8;" goto statement_identifier ;) })) (expression_statement "uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;" (assignment_expression "uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f" identifier = (binary_expression "1 << (iVar6 - 9U & 0x1f) & 0x80001f" (binary_expression "1 << (iVar6 - 9U & 0x1f)" number_literal << (parenthesized_expression "(iVar6 - 9U & 0x1f)" ( (binary_expression "iVar6 - 9U & 0x1f" (binary_expression "iVar6 - 9U" identifier - number_literal) & number_literal) ))) & number_literal)) ;) (if_statement "if (uVar2 != 0) {\n      threads = threads + 1;\n      cVar1 = *threads;\n      while( true ) {\n        iVar6 = (int)cVar1;\n        if (iVar6 == 0) break;\n        if (0x17 < iVar6 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;\n        threads = threads + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *threads;\n      }\n      goto LAB_000122a8;\n    }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      threads = threads + 1;\n      cVar1 = *threads;\n      while( true ) {\n        iVar6 = (int)cVar1;\n        if (iVar6 == 0) break;\n        if (0x17 < iVar6 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;\n        threads = threads + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *threads;\n      }\n      goto LAB_000122a8;\n    }" { (expression_statement "threads = threads + 1;" (assignment_expression "threads = threads + 1" identifier = (binary_expression "threads + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *threads;" (assignment_expression "cVar1 = *threads" identifier = (pointer_expression "*threads" * identifier)) ;) (while_statement "while( true ) {\n        iVar6 = (int)cVar1;\n        if (iVar6 == 0) break;\n        if (0x17 < iVar6 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;\n        threads = threads + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *threads;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar6 = (int)cVar1;\n        if (iVar6 == 0) break;\n        if (0x17 < iVar6 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;\n        threads = threads + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *threads;\n      }" { (expression_statement "iVar6 = (int)cVar1;" (assignment_expression "iVar6 = (int)cVar1" identifier = (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (iVar6 == 0) break;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (0x17 < iVar6 - 9U) goto LAB_00012214;" if (parenthesized_expression "(0x17 < iVar6 - 9U)" ( (binary_expression "0x17 < iVar6 - 9U" number_literal < (binary_expression "iVar6 - 9U" identifier - number_literal)) )) (goto_statement "goto LAB_00012214;" goto statement_identifier ;)) (expression_statement "uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f;" (assignment_expression "uVar2 = 1 << (iVar6 - 9U & 0x1f) & 0x80001f" identifier = (binary_expression "1 << (iVar6 - 9U & 0x1f) & 0x80001f" (binary_expression "1 << (iVar6 - 9U & 0x1f)" number_literal << (parenthesized_expression "(iVar6 - 9U & 0x1f)" ( (binary_expression "iVar6 - 9U & 0x1f" (binary_expression "iVar6 - 9U" identifier - number_literal) & number_literal) ))) & number_literal)) ;) (expression_statement "threads = threads + 1;" (assignment_expression "threads = threads + 1" identifier = (binary_expression "threads + 1" identifier + number_literal)) ;) (if_statement "if (uVar2 == 0) goto LAB_000122ac;" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000122ac;" goto statement_identifier ;)) (expression_statement "cVar1 = *threads;" (assignment_expression "cVar1 = *threads" identifier = (pointer_expression "*threads" * identifier)) ;) })) (goto_statement "goto LAB_000122a8;" goto statement_identifier ;) })) }))) (labeled_statement "LAB_000122ac:\n  if (local_c == *(int *)puVar7) {\n    return uVar2;\n  }" statement_identifier : (if_statement "if (local_c == *(int *)puVar7) {\n    return uVar2;\n  }" if (parenthesized_expression "(local_c == *(int *)puVar7)" ( (binary_expression "local_c == *(int *)puVar7" identifier == (pointer_expression "*(int *)puVar7" * (cast_expression "(int *)puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) }))) (expression_statement "iVar6 = local_c;" (assignment_expression "iVar6 = local_c" identifier = identifier) ;) (expression_statement "puVar7 = PTR___stack_chk_fail_00029294;" (assignment_expression "puVar7 = PTR___stack_chk_fail_00029294" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00029294)();" (call_expression "(*(code *)PTR___stack_chk_fail_00029294)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00029294)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00029294" * (cast_expression "(code *)PTR___stack_chk_fail_00029294" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (iVar6 == 2) {\n    pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e74);\n    if (pcVar3 != (char *)0x0) {\n      uVar4 = parse_omp_threads(pcVar3);\n      pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84);\n      if ((pcVar3 == (char *)0x0) || (uVar2 = parse_omp_threads(pcVar3), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar4 != 0) {\n        if (uVar2 <= uVar4) {\n          uVar4 = uVar2;\n        }\n        return uVar4;\n      }\n      goto LAB_000123a8;\n    }\n    pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84);\n    if ((pcVar3 != (char *)0x0) && (uVar2 = parse_omp_threads(pcVar3), uVar2 != 0))\n    goto LAB_000123a8;\n  }\n  else if (iVar6 != 1) {\n    uVar2 = (**(code **)(puVar7 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = num_processors_via_affinity_mask(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(iVar6 == 2)" ( (binary_expression "iVar6 == 2" identifier == number_literal) )) (compound_statement "{\n    pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e74);\n    if (pcVar3 != (char *)0x0) {\n      uVar4 = parse_omp_threads(pcVar3);\n      pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84);\n      if ((pcVar3 == (char *)0x0) || (uVar2 = parse_omp_threads(pcVar3), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar4 != 0) {\n        if (uVar2 <= uVar4) {\n          uVar4 = uVar2;\n        }\n        return uVar4;\n      }\n      goto LAB_000123a8;\n    }\n    pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84);\n    if ((pcVar3 != (char *)0x0) && (uVar2 = parse_omp_threads(pcVar3), uVar2 != 0))\n    goto LAB_000123a8;\n  }" { (expression_statement "pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e74);" (assignment_expression "pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e74)" identifier = (cast_expression "(char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e74)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e74)" (parenthesized_expression "(**(code **)(puVar7 + 0x16f98))" ( (pointer_expression "**(code **)(puVar7 + 0x16f98)" * (pointer_expression "*(code **)(puVar7 + 0x16f98)" * (cast_expression "(code **)(puVar7 + 0x16f98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x16f98)" ( (binary_expression "puVar7 + 0x16f98" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar7 + 0x16e30) + 0x7e74)" ( (binary_expression "*(int *)(puVar7 + 0x16e30) + 0x7e74" (pointer_expression "*(int *)(puVar7 + 0x16e30)" * (cast_expression "(int *)(puVar7 + 0x16e30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x16e30)" ( (binary_expression "puVar7 + 0x16e30" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n      uVar4 = parse_omp_threads(pcVar3);\n      pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84);\n      if ((pcVar3 == (char *)0x0) || (uVar2 = parse_omp_threads(pcVar3), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar4 != 0) {\n        if (uVar2 <= uVar4) {\n          uVar4 = uVar2;\n        }\n        return uVar4;\n      }\n      goto LAB_000123a8;\n    }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar4 = parse_omp_threads(pcVar3);\n      pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84);\n      if ((pcVar3 == (char *)0x0) || (uVar2 = parse_omp_threads(pcVar3), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar4 != 0) {\n        if (uVar2 <= uVar4) {\n          uVar4 = uVar2;\n        }\n        return uVar4;\n      }\n      goto LAB_000123a8;\n    }" { (expression_statement "uVar4 = parse_omp_threads(pcVar3);" (assignment_expression "uVar4 = parse_omp_threads(pcVar3)" identifier = (call_expression "parse_omp_threads(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84);" (assignment_expression "pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84)" identifier = (cast_expression "(char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84)" (parenthesized_expression "(**(code **)(puVar7 + 0x16f98))" ( (pointer_expression "**(code **)(puVar7 + 0x16f98)" * (pointer_expression "*(code **)(puVar7 + 0x16f98)" * (cast_expression "(code **)(puVar7 + 0x16f98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x16f98)" ( (binary_expression "puVar7 + 0x16f98" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar7 + 0x16e30) + 0x7e84)" ( (binary_expression "*(int *)(puVar7 + 0x16e30) + 0x7e84" (pointer_expression "*(int *)(puVar7 + 0x16e30)" * (cast_expression "(int *)(puVar7 + 0x16e30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x16e30)" ( (binary_expression "puVar7 + 0x16e30" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if ((pcVar3 == (char *)0x0) || (uVar2 = parse_omp_threads(pcVar3), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }" if (parenthesized_expression "((pcVar3 == (char *)0x0) || (uVar2 = parse_omp_threads(pcVar3), uVar2 == 0))" ( (binary_expression "(pcVar3 == (char *)0x0) || (uVar2 = parse_omp_threads(pcVar3), uVar2 == 0)" (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(uVar2 = parse_omp_threads(pcVar3), uVar2 == 0)" ( (comma_expression "uVar2 = parse_omp_threads(pcVar3), uVar2 == 0" (assignment_expression "uVar2 = parse_omp_threads(pcVar3)" identifier = (call_expression "parse_omp_threads(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) , (binary_expression "uVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        uVar2 = 0xffffffff;\n      }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) })) (if_statement "if (uVar4 != 0) {\n        if (uVar2 <= uVar4) {\n          uVar4 = uVar2;\n        }\n        return uVar4;\n      }" if (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        if (uVar2 <= uVar4) {\n          uVar4 = uVar2;\n        }\n        return uVar4;\n      }" { (if_statement "if (uVar2 <= uVar4) {\n          uVar4 = uVar2;\n        }" if (parenthesized_expression "(uVar2 <= uVar4)" ( (binary_expression "uVar2 <= uVar4" identifier <= identifier) )) (compound_statement "{\n          uVar4 = uVar2;\n        }" { (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" identifier = identifier) ;) })) (return_statement "return uVar4;" return identifier ;) })) (goto_statement "goto LAB_000123a8;" goto statement_identifier ;) })) (expression_statement "pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84);" (assignment_expression "pcVar3 = (char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84)" identifier = (cast_expression "(char *)(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar7 + 0x16f98))(*(int *)(puVar7 + 0x16e30) + 0x7e84)" (parenthesized_expression "(**(code **)(puVar7 + 0x16f98))" ( (pointer_expression "**(code **)(puVar7 + 0x16f98)" * (pointer_expression "*(code **)(puVar7 + 0x16f98)" * (cast_expression "(code **)(puVar7 + 0x16f98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x16f98)" ( (binary_expression "puVar7 + 0x16f98" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar7 + 0x16e30) + 0x7e84)" ( (binary_expression "*(int *)(puVar7 + 0x16e30) + 0x7e84" (pointer_expression "*(int *)(puVar7 + 0x16e30)" * (cast_expression "(int *)(puVar7 + 0x16e30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x16e30)" ( (binary_expression "puVar7 + 0x16e30" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if ((pcVar3 != (char *)0x0) && (uVar2 = parse_omp_threads(pcVar3), uVar2 != 0))\n    goto LAB_000123a8;" if (parenthesized_expression "((pcVar3 != (char *)0x0) && (uVar2 = parse_omp_threads(pcVar3), uVar2 != 0))" ( (binary_expression "(pcVar3 != (char *)0x0) && (uVar2 = parse_omp_threads(pcVar3), uVar2 != 0)" (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(uVar2 = parse_omp_threads(pcVar3), uVar2 != 0)" ( (comma_expression "uVar2 = parse_omp_threads(pcVar3), uVar2 != 0" (assignment_expression "uVar2 = parse_omp_threads(pcVar3)" identifier = (call_expression "parse_omp_threads(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) , (binary_expression "uVar2 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_000123a8;" goto statement_identifier ;)) }) (else_clause "else if (iVar6 != 1) {\n    uVar2 = (**(code **)(puVar7 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = num_processors_via_affinity_mask(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }" else (if_statement "if (iVar6 != 1) {\n    uVar2 = (**(code **)(puVar7 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = num_processors_via_affinity_mask(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(iVar6 != 1)" ( (binary_expression "iVar6 != 1" identifier != number_literal) )) (compound_statement "{\n    uVar2 = (**(code **)(puVar7 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = num_processors_via_affinity_mask(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }" { (expression_statement "uVar2 = (**(code **)(puVar7 + 0x16fbc))(0x53);" (assignment_expression "uVar2 = (**(code **)(puVar7 + 0x16fbc))(0x53)" identifier = (call_expression "(**(code **)(puVar7 + 0x16fbc))(0x53)" (parenthesized_expression "(**(code **)(puVar7 + 0x16fbc))" ( (pointer_expression "**(code **)(puVar7 + 0x16fbc)" * (pointer_expression "*(code **)(puVar7 + 0x16fbc)" * (cast_expression "(code **)(puVar7 + 0x16fbc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x16fbc)" ( (binary_expression "puVar7 + 0x16fbc" identifier + number_literal) ))))) )) (argument_list "(0x53)" ( number_literal )))) ;) (if_statement "if ((uVar2 == 1) && (uVar2 = num_processors_via_affinity_mask(), uVar2 == 0)) {\n      return 1;\n    }" if (parenthesized_expression "((uVar2 == 1) && (uVar2 = num_processors_via_affinity_mask(), uVar2 == 0))" ( (binary_expression "(uVar2 == 1) && (uVar2 = num_processors_via_affinity_mask(), uVar2 == 0)" (parenthesized_expression "(uVar2 == 1)" ( (binary_expression "uVar2 == 1" identifier == number_literal) )) && (parenthesized_expression "(uVar2 = num_processors_via_affinity_mask(), uVar2 == 0)" ( (comma_expression "uVar2 = num_processors_via_affinity_mask(), uVar2 == 0" (assignment_expression "uVar2 = num_processors_via_affinity_mask()" identifier = (call_expression "num_processors_via_affinity_mask()" identifier (argument_list "()" ( )))) , (binary_expression "uVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }" if (parenthesized_expression "((int)uVar2 < 1)" ( (binary_expression "(int)uVar2 < 1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      uVar2 = 1;\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) })) (return_statement "return uVar2;" return identifier ;) })))) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (labeled_statement "LAB_000123a8:\n  uVar5 = num_processors_via_affinity_mask();" statement_identifier : (expression_statement "uVar5 = num_processors_via_affinity_mask();" (assignment_expression "uVar5 = num_processors_via_affinity_mask()" identifier = (call_expression "num_processors_via_affinity_mask()" identifier (argument_list "()" ( )))) ;)) (if_statement "if ((uVar5 == 0) && (uVar5 = (**(code **)(puVar7 + 0x16fbc))(0x54), (int)uVar5 < 1)) {\n    return 1;\n  }" if (parenthesized_expression "((uVar5 == 0) && (uVar5 = (**(code **)(puVar7 + 0x16fbc))(0x54), (int)uVar5 < 1))" ( (binary_expression "(uVar5 == 0) && (uVar5 = (**(code **)(puVar7 + 0x16fbc))(0x54), (int)uVar5 < 1)" (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) && (parenthesized_expression "(uVar5 = (**(code **)(puVar7 + 0x16fbc))(0x54), (int)uVar5 < 1)" ( (comma_expression "uVar5 = (**(code **)(puVar7 + 0x16fbc))(0x54), (int)uVar5 < 1" (assignment_expression "uVar5 = (**(code **)(puVar7 + 0x16fbc))(0x54)" identifier = (call_expression "(**(code **)(puVar7 + 0x16fbc))(0x54)" (parenthesized_expression "(**(code **)(puVar7 + 0x16fbc))" ( (pointer_expression "**(code **)(puVar7 + 0x16fbc)" * (pointer_expression "*(code **)(puVar7 + 0x16fbc)" * (cast_expression "(code **)(puVar7 + 0x16fbc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x16fbc)" ( (binary_expression "puVar7 + 0x16fbc" identifier + number_literal) ))))) )) (argument_list "(0x54)" ( number_literal )))) , (binary_expression "(int)uVar5 < 1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal)) ))) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (uVar2 < uVar5) {\n    uVar5 = uVar2;\n  }" if (parenthesized_expression "(uVar2 < uVar5)" ( (binary_expression "uVar2 < uVar5" identifier < identifier) )) (compound_statement "{\n    uVar5 = uVar2;\n  }" { (expression_statement "uVar5 = uVar2;" (assignment_expression "uVar5 = uVar2" identifier = identifier) ;) })) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit "uint FUN_00012180(char *param_1)\n\n{\n  char cVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  undefined *puVar5;\n  char *local_10;\n  int local_c;\n  \n  puVar5 = PTR___stack_chk_guard_000292ac;\n  iVar4 = (int)*param_1;\n  local_c = *(int *)PTR___stack_chk_guard_000292ac;\n  if (iVar4 == 0) {\nLAB_000122a8:\n    uVar2 = 0;\n  }\n  else {\n    if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }\n  }\nLAB_000122ac:\n  if (local_c == *(int *)puVar5) {\n    return uVar2;\n  }\n  iVar4 = local_c;\n  puVar5 = PTR___stack_chk_fail_00029294;\n  (*(code *)PTR___stack_chk_fail_00029294)();\n  if (iVar4 == 2) {\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);\n    if (iVar4 != 0) {\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n    if ((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)) goto LAB_000123a8;\n  }\n  else if (iVar4 != 1) {\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }\n  uVar2 = 0xffffffff;\nLAB_000123a8:\n  uVar3 = FUN_000120e0();\n  if ((uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)) {\n    return 1;\n  }\n  if (uVar2 < uVar3) {\n    uVar3 = uVar2;\n  }\n  return uVar3;\n}\n\n" (function_definition "uint FUN_00012180(char *param_1)\n\n{\n  char cVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  undefined *puVar5;\n  char *local_10;\n  int local_c;\n  \n  puVar5 = PTR___stack_chk_guard_000292ac;\n  iVar4 = (int)*param_1;\n  local_c = *(int *)PTR___stack_chk_guard_000292ac;\n  if (iVar4 == 0) {\nLAB_000122a8:\n    uVar2 = 0;\n  }\n  else {\n    if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }\n  }\nLAB_000122ac:\n  if (local_c == *(int *)puVar5) {\n    return uVar2;\n  }\n  iVar4 = local_c;\n  puVar5 = PTR___stack_chk_fail_00029294;\n  (*(code *)PTR___stack_chk_fail_00029294)();\n  if (iVar4 == 2) {\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);\n    if (iVar4 != 0) {\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n    if ((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)) goto LAB_000123a8;\n  }\n  else if (iVar4 != 1) {\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }\n  uVar2 = 0xffffffff;\nLAB_000123a8:\n  uVar3 = FUN_000120e0();\n  if ((uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)) {\n    return 1;\n  }\n  if (uVar2 < uVar3) {\n    uVar3 = uVar2;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00012180(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  undefined *puVar5;\n  char *local_10;\n  int local_c;\n  \n  puVar5 = PTR___stack_chk_guard_000292ac;\n  iVar4 = (int)*param_1;\n  local_c = *(int *)PTR___stack_chk_guard_000292ac;\n  if (iVar4 == 0) {\nLAB_000122a8:\n    uVar2 = 0;\n  }\n  else {\n    if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }\n  }\nLAB_000122ac:\n  if (local_c == *(int *)puVar5) {\n    return uVar2;\n  }\n  iVar4 = local_c;\n  puVar5 = PTR___stack_chk_fail_00029294;\n  (*(code *)PTR___stack_chk_fail_00029294)();\n  if (iVar4 == 2) {\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);\n    if (iVar4 != 0) {\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n    if ((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)) goto LAB_000123a8;\n  }\n  else if (iVar4 != 1) {\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }\n  uVar2 = 0xffffffff;\nLAB_000123a8:\n  uVar3 = FUN_000120e0();\n  if ((uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)) {\n    return 1;\n  }\n  if (uVar2 < uVar3) {\n    uVar3 = uVar2;\n  }\n  return uVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "char *local_10;" primitive_type (pointer_declarator "*local_10" * identifier) ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "puVar5 = PTR___stack_chk_guard_000292ac;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000292ac" identifier = identifier) ;) (expression_statement "iVar4 = (int)*param_1;" (assignment_expression "iVar4 = (int)*param_1" identifier = (cast_expression "(int)*param_1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000292ac;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000292ac" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000292ac" * (cast_expression "(int *)PTR___stack_chk_guard_000292ac" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (iVar4 == 0) {\nLAB_000122a8:\n    uVar2 = 0;\n  }\n  else {\n    if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000122a8:\n    uVar2 = 0;\n  }" { (labeled_statement "LAB_000122a8:\n    uVar2 = 0;" statement_identifier : (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n    if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }\n  }" else (compound_statement "{\n    if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }\n  }" { (if_statement "if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }" if (parenthesized_expression "(0x17 < iVar4 - 9U)" ( (binary_expression "0x17 < iVar4 - 9U" number_literal < (binary_expression "iVar4 - 9U" identifier - number_literal)) )) (compound_statement "{\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }" { (labeled_statement "LAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }" statement_identifier : (if_statement "if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }" if (parenthesized_expression "(iVar4 - 0x30U < 10)" ( (binary_expression "iVar4 - 0x30U < 10" (binary_expression "iVar4 - 0x30U" identifier - number_literal) < number_literal) )) (compound_statement "{\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }" { (expression_statement "local_10 = (char *)0x0;" (assignment_expression "local_10 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);" (assignment_expression "uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10)" identifier = (call_expression "(*(code *)PTR_strtoul_00029254)(param_1,&local_10,10)" (parenthesized_expression "(*(code *)PTR_strtoul_00029254)" ( (pointer_expression "*(code *)PTR_strtoul_00029254" * (cast_expression "(code *)PTR_strtoul_00029254" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,&local_10,10)" ( identifier , (pointer_expression "&local_10" & identifier) , number_literal )))) ;) (if_statement "if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }" if (parenthesized_expression "(local_10 != (char *)0x0)" ( (binary_expression "local_10 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }" { (expression_statement "cVar1 = *local_10;" (assignment_expression "cVar1 = *local_10" identifier = (pointer_expression "*local_10" * identifier)) ;) (while_statement "while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }" while (parenthesized_expression "(iVar4 = (int)cVar1, iVar4 != 0)" ( (comma_expression "iVar4 = (int)cVar1, iVar4 != 0" (assignment_expression "iVar4 = (int)cVar1" identifier = (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "iVar4 != 0" identifier != number_literal)) )) (compound_statement "{\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }" { (if_statement "if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }" if (parenthesized_expression "((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0))" ( (binary_expression "(0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)" (parenthesized_expression "(0x17 < iVar4 - 9U)" ( (binary_expression "0x17 < iVar4 - 9U" number_literal < (binary_expression "iVar4 - 9U" identifier - number_literal)) )) || (parenthesized_expression "((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)" ( (binary_expression "(1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0" (parenthesized_expression "(1 << (iVar4 - 9U & 0x1f) & 0x80001fU)" ( (binary_expression "1 << (iVar4 - 9U & 0x1f) & 0x80001fU" (binary_expression "1 << (iVar4 - 9U & 0x1f)" number_literal << (parenthesized_expression "(iVar4 - 9U & 0x1f)" ( (binary_expression "iVar4 - 9U & 0x1f" (binary_expression "iVar4 - 9U" identifier - number_literal) & number_literal) ))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }" { (if_statement "if (iVar4 != 0x2c) goto LAB_000122a8;" if (parenthesized_expression "(iVar4 != 0x2c)" ( (binary_expression "iVar4 != 0x2c" identifier != number_literal) )) (goto_statement "goto LAB_000122a8;" goto statement_identifier ;)) (break_statement "break;" break ;) })) (expression_statement "local_10 = local_10 + 1;" (assignment_expression "local_10 = local_10 + 1" identifier = (binary_expression "local_10 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *local_10;" (assignment_expression "cVar1 = *local_10" identifier = (pointer_expression "*local_10" * identifier)) ;) })) (goto_statement "goto LAB_000122ac;" goto statement_identifier ;) })) }))) (goto_statement "goto LAB_000122a8;" goto statement_identifier ;) })) (expression_statement "uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;" (assignment_expression "uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f" identifier = (binary_expression "1 << (iVar4 - 9U & 0x1f) & 0x80001f" (binary_expression "1 << (iVar4 - 9U & 0x1f)" number_literal << (parenthesized_expression "(iVar4 - 9U & 0x1f)" ( (binary_expression "iVar4 - 9U & 0x1f" (binary_expression "iVar4 - 9U" identifier - number_literal) & number_literal) ))) & number_literal)) ;) (if_statement "if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\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 "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (while_statement "while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }" { (expression_statement "iVar4 = (int)cVar1;" (assignment_expression "iVar4 = (int)cVar1" identifier = (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (0x17 < iVar4 - 9U) goto LAB_00012214;" if (parenthesized_expression "(0x17 < iVar4 - 9U)" ( (binary_expression "0x17 < iVar4 - 9U" number_literal < (binary_expression "iVar4 - 9U" identifier - number_literal)) )) (goto_statement "goto LAB_00012214;" goto statement_identifier ;)) (expression_statement "uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;" (assignment_expression "uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f" identifier = (binary_expression "1 << (iVar4 - 9U & 0x1f) & 0x80001f" (binary_expression "1 << (iVar4 - 9U & 0x1f)" number_literal << (parenthesized_expression "(iVar4 - 9U & 0x1f)" ( (binary_expression "iVar4 - 9U & 0x1f" (binary_expression "iVar4 - 9U" identifier - number_literal) & number_literal) ))) & number_literal)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (uVar2 == 0) goto LAB_000122ac;" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000122ac;" goto statement_identifier ;)) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (goto_statement "goto LAB_000122a8;" goto statement_identifier ;) })) }))) (labeled_statement "LAB_000122ac:\n  if (local_c == *(int *)puVar5) {\n    return uVar2;\n  }" statement_identifier : (if_statement "if (local_c == *(int *)puVar5) {\n    return uVar2;\n  }" if (parenthesized_expression "(local_c == *(int *)puVar5)" ( (binary_expression "local_c == *(int *)puVar5" identifier == (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) }))) (expression_statement "iVar4 = local_c;" (assignment_expression "iVar4 = local_c" identifier = identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_fail_00029294;" (assignment_expression "puVar5 = PTR___stack_chk_fail_00029294" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00029294)();" (call_expression "(*(code *)PTR___stack_chk_fail_00029294)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00029294)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00029294" * (cast_expression "(code *)PTR___stack_chk_fail_00029294" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (iVar4 == 2) {\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);\n    if (iVar4 != 0) {\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n    if ((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)) goto LAB_000123a8;\n  }\n  else if (iVar4 != 1) {\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(iVar4 == 2)" ( (binary_expression "iVar4 == 2" identifier == number_literal) )) (compound_statement "{\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);\n    if (iVar4 != 0) {\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n    if ((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)) goto LAB_000123a8;\n  }" { (expression_statement "iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);" (assignment_expression "iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74)" identifier = (call_expression "(**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74)" (parenthesized_expression "(**(code **)(puVar5 + 0x16f98))" ( (pointer_expression "**(code **)(puVar5 + 0x16f98)" * (pointer_expression "*(code **)(puVar5 + 0x16f98)" * (cast_expression "(code **)(puVar5 + 0x16f98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x16f98)" ( (binary_expression "puVar5 + 0x16f98" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar5 + 0x16e30) + 0x7e74)" ( (binary_expression "*(int *)(puVar5 + 0x16e30) + 0x7e74" (pointer_expression "*(int *)(puVar5 + 0x16e30)" * (cast_expression "(int *)(puVar5 + 0x16e30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x16e30)" ( (binary_expression "puVar5 + 0x16e30" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (iVar4 != 0) {\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }" { (expression_statement "uVar3 = FUN_00012180(iVar4);" (assignment_expression "uVar3 = FUN_00012180(iVar4)" identifier = (call_expression "FUN_00012180(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);" (assignment_expression "iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84)" identifier = (call_expression "(**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84)" (parenthesized_expression "(**(code **)(puVar5 + 0x16f98))" ( (pointer_expression "**(code **)(puVar5 + 0x16f98)" * (pointer_expression "*(code **)(puVar5 + 0x16f98)" * (cast_expression "(code **)(puVar5 + 0x16f98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x16f98)" ( (binary_expression "puVar5 + 0x16f98" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar5 + 0x16e30) + 0x7e84)" ( (binary_expression "*(int *)(puVar5 + 0x16e30) + 0x7e84" (pointer_expression "*(int *)(puVar5 + 0x16e30)" * (cast_expression "(int *)(puVar5 + 0x16e30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x16e30)" ( (binary_expression "puVar5 + 0x16e30" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }" if (parenthesized_expression "((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0))" ( (binary_expression "(iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar2 = FUN_00012180(iVar4), uVar2 == 0)" ( (comma_expression "uVar2 = FUN_00012180(iVar4), uVar2 == 0" (assignment_expression "uVar2 = FUN_00012180(iVar4)" identifier = (call_expression "FUN_00012180(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) , (binary_expression "uVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        uVar2 = 0xffffffff;\n      }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) })) (if_statement "if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }" { (if_statement "if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }" if (parenthesized_expression "(uVar2 <= uVar3)" ( (binary_expression "uVar2 <= uVar3" identifier <= identifier) )) (compound_statement "{\n          uVar3 = uVar2;\n        }" { (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" identifier = identifier) ;) })) (return_statement "return uVar3;" return identifier ;) })) (goto_statement "goto LAB_000123a8;" goto statement_identifier ;) })) (expression_statement "iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);" (assignment_expression "iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84)" identifier = (call_expression "(**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84)" (parenthesized_expression "(**(code **)(puVar5 + 0x16f98))" ( (pointer_expression "**(code **)(puVar5 + 0x16f98)" * (pointer_expression "*(code **)(puVar5 + 0x16f98)" * (cast_expression "(code **)(puVar5 + 0x16f98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x16f98)" ( (binary_expression "puVar5 + 0x16f98" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar5 + 0x16e30) + 0x7e84)" ( (binary_expression "*(int *)(puVar5 + 0x16e30) + 0x7e84" (pointer_expression "*(int *)(puVar5 + 0x16e30)" * (cast_expression "(int *)(puVar5 + 0x16e30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x16e30)" ( (binary_expression "puVar5 + 0x16e30" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if ((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)) goto LAB_000123a8;" if (parenthesized_expression "((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0))" ( (binary_expression "(iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)" (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar2 = FUN_00012180(iVar4), uVar2 != 0)" ( (comma_expression "uVar2 = FUN_00012180(iVar4), uVar2 != 0" (assignment_expression "uVar2 = FUN_00012180(iVar4)" identifier = (call_expression "FUN_00012180(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) , (binary_expression "uVar2 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_000123a8;" goto statement_identifier ;)) }) (else_clause "else if (iVar4 != 1) {\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }" else (if_statement "if (iVar4 != 1) {\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(iVar4 != 1)" ( (binary_expression "iVar4 != 1" identifier != number_literal) )) (compound_statement "{\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }" { (expression_statement "uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);" (assignment_expression "uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53)" identifier = (call_expression "(**(code **)(puVar5 + 0x16fbc))(0x53)" (parenthesized_expression "(**(code **)(puVar5 + 0x16fbc))" ( (pointer_expression "**(code **)(puVar5 + 0x16fbc)" * (pointer_expression "*(code **)(puVar5 + 0x16fbc)" * (cast_expression "(code **)(puVar5 + 0x16fbc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x16fbc)" ( (binary_expression "puVar5 + 0x16fbc" identifier + number_literal) ))))) )) (argument_list "(0x53)" ( number_literal )))) ;) (if_statement "if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }" if (parenthesized_expression "((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0))" ( (binary_expression "(uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)" (parenthesized_expression "(uVar2 == 1)" ( (binary_expression "uVar2 == 1" identifier == number_literal) )) && (parenthesized_expression "(uVar2 = FUN_000120e0(), uVar2 == 0)" ( (comma_expression "uVar2 = FUN_000120e0(), uVar2 == 0" (assignment_expression "uVar2 = FUN_000120e0()" identifier = (call_expression "FUN_000120e0()" identifier (argument_list "()" ( )))) , (binary_expression "uVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }" if (parenthesized_expression "((int)uVar2 < 1)" ( (binary_expression "(int)uVar2 < 1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      uVar2 = 1;\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) })) (return_statement "return uVar2;" return identifier ;) })))) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (labeled_statement "LAB_000123a8:\n  uVar3 = FUN_000120e0();" statement_identifier : (expression_statement "uVar3 = FUN_000120e0();" (assignment_expression "uVar3 = FUN_000120e0()" identifier = (call_expression "FUN_000120e0()" identifier (argument_list "()" ( )))) ;)) (if_statement "if ((uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)) {\n    return 1;\n  }" if (parenthesized_expression "((uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1))" ( (binary_expression "(uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)" (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) && (parenthesized_expression "(uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)" ( (comma_expression "uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1" (assignment_expression "uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54)" identifier = (call_expression "(**(code **)(puVar5 + 0x16fbc))(0x54)" (parenthesized_expression "(**(code **)(puVar5 + 0x16fbc))" ( (pointer_expression "**(code **)(puVar5 + 0x16fbc)" * (pointer_expression "*(code **)(puVar5 + 0x16fbc)" * (cast_expression "(code **)(puVar5 + 0x16fbc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x16fbc)" ( (binary_expression "puVar5 + 0x16fbc" identifier + number_literal) ))))) )) (argument_list "(0x54)" ( number_literal )))) , (binary_expression "(int)uVar3 < 1" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal)) ))) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (uVar2 < uVar3) {\n    uVar3 = uVar2;\n  }" if (parenthesized_expression "(uVar2 < uVar3)" ( (binary_expression "uVar2 < uVar3" identifier < identifier) )) (compound_statement "{\n    uVar3 = uVar2;\n  }" { (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" identifier = identifier) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - LIT)) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) , (binary_expression IDENT != LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - LIT)) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression LIT << (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) ))) & LIT) )) == LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (goto_statement goto statement_identifier ;) })) }))) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression LIT << (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) ))) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression LIT << (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) ))) & LIT)) ;) (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 = (pointer_expression * IDENT)) ;) })) (goto_statement goto statement_identifier ;) })) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (return_statement return IDENT ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT != LIT)) ))) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT )))) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT)) ))) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint FUN_00012180(char *param_1)\n\n{\n  char cVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  undefined *puVar5;\n  char *local_10;\n  int local_c;\n  \n  puVar5 = PTR___stack_chk_guard_000292ac;\n  iVar4 = (int)*param_1;\n  local_c = *(int *)PTR___stack_chk_guard_000292ac;\n  if (iVar4 == 0) {\nLAB_000122a8:\n    uVar2 = 0;\n  }\n  else {\n    if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }\n  }\nLAB_000122ac:\n  if (local_c == *(int *)puVar5) {\n    return uVar2;\n  }\n  iVar4 = local_c;\n  puVar5 = PTR___stack_chk_fail_00029294;\n  (*(code *)PTR___stack_chk_fail_00029294)();\n  if (iVar4 == 2) {\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);\n    if (iVar4 != 0) {\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n    if ((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)) goto LAB_000123a8;\n  }\n  else if (iVar4 != 1) {\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }\n  uVar2 = 0xffffffff;\nLAB_000123a8:\n  uVar3 = FUN_000120e0();\n  if ((uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)) {\n    return 1;\n  }\n  if (uVar2 < uVar3) {\n    uVar3 = uVar2;\n  }\n  return uVar3;\n}" (type_identifier "uint") (function_declarator "FUN_00012180(char *param_1)" (identifier "FUN_00012180") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  undefined *puVar5;\n  char *local_10;\n  int local_c;\n  \n  puVar5 = PTR___stack_chk_guard_000292ac;\n  iVar4 = (int)*param_1;\n  local_c = *(int *)PTR___stack_chk_guard_000292ac;\n  if (iVar4 == 0) {\nLAB_000122a8:\n    uVar2 = 0;\n  }\n  else {\n    if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }\n  }\nLAB_000122ac:\n  if (local_c == *(int *)puVar5) {\n    return uVar2;\n  }\n  iVar4 = local_c;\n  puVar5 = PTR___stack_chk_fail_00029294;\n  (*(code *)PTR___stack_chk_fail_00029294)();\n  if (iVar4 == 2) {\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);\n    if (iVar4 != 0) {\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n    if ((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)) goto LAB_000123a8;\n  }\n  else if (iVar4 != 1) {\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }\n  uVar2 = 0xffffffff;\nLAB_000123a8:\n  uVar3 = FUN_000120e0();\n  if ((uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)) {\n    return 1;\n  }\n  if (uVar2 < uVar3) {\n    uVar3 = uVar2;\n  }\n  return uVar3;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "char *local_10;" (primitive_type "char") (pointer_declarator "*local_10" (* "*") (identifier "local_10")) (; ";")) (declaration "int local_c;" (primitive_type "int") (identifier "local_c") (; ";")) (expression_statement "puVar5 = PTR___stack_chk_guard_000292ac;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000292ac" (identifier "puVar5") (= "=") (identifier "PTR___stack_chk_guard_000292ac")) (; ";")) (expression_statement "iVar4 = (int)*param_1;" (assignment_expression "iVar4 = (int)*param_1" (identifier "iVar4") (= "=") (cast_expression "(int)*param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000292ac;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000292ac" (identifier "local_c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000292ac" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000292ac" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000292ac")))) (; ";")) (if_statement "if (iVar4 == 0) {\nLAB_000122a8:\n    uVar2 = 0;\n  }\n  else {\n    if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000122a8:\n    uVar2 = 0;\n  }" ({ "{") (labeled_statement "LAB_000122a8:\n    uVar2 = 0;" (statement_identifier "LAB_000122a8") (: ":") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";"))) (} "}")) (else_clause "else {\n    if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }\n  }" (else "else") (compound_statement "{\n    if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }\n    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n    if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }\n  }" ({ "{") (if_statement "if (0x17 < iVar4 - 9U) {\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }" (if "if") (parenthesized_expression "(0x17 < iVar4 - 9U)" (( "(") (binary_expression "0x17 < iVar4 - 9U" (number_literal "0x17") (< "<") (binary_expression "iVar4 - 9U" (identifier "iVar4") (- "-") (number_literal "9U"))) () ")")) (compound_statement "{\nLAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }\n      goto LAB_000122a8;\n    }" ({ "{") (labeled_statement "LAB_00012214:\n      if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }" (statement_identifier "LAB_00012214") (: ":") (if_statement "if (iVar4 - 0x30U < 10) {\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }" (if "if") (parenthesized_expression "(iVar4 - 0x30U < 10)" (( "(") (binary_expression "iVar4 - 0x30U < 10" (binary_expression "iVar4 - 0x30U" (identifier "iVar4") (- "-") (number_literal "0x30U")) (< "<") (number_literal "10")) () ")")) (compound_statement "{\n        local_10 = (char *)0x0;\n        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);\n        if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }\n      }" ({ "{") (expression_statement "local_10 = (char *)0x0;" (assignment_expression "local_10 = (char *)0x0" (identifier "local_10") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);" (assignment_expression "uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_strtoul_00029254)(param_1,&local_10,10)" (parenthesized_expression "(*(code *)PTR_strtoul_00029254)" (( "(") (pointer_expression "*(code *)PTR_strtoul_00029254" (* "*") (cast_expression "(code *)PTR_strtoul_00029254" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strtoul_00029254"))) () ")")) (argument_list "(param_1,&local_10,10)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_10" (& "&") (identifier "local_10")) (, ",") (number_literal "10") () ")")))) (; ";")) (if_statement "if (local_10 != (char *)0x0) {\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }" (if "if") (parenthesized_expression "(local_10 != (char *)0x0)" (( "(") (binary_expression "local_10 != (char *)0x0" (identifier "local_10") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          cVar1 = *local_10;\n          while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }\n          goto LAB_000122ac;\n        }" ({ "{") (expression_statement "cVar1 = *local_10;" (assignment_expression "cVar1 = *local_10" (identifier "cVar1") (= "=") (pointer_expression "*local_10" (* "*") (identifier "local_10"))) (; ";")) (while_statement "while (iVar4 = (int)cVar1, iVar4 != 0) {\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }" (while "while") (parenthesized_expression "(iVar4 = (int)cVar1, iVar4 != 0)" (( "(") (comma_expression "iVar4 = (int)cVar1, iVar4 != 0" (assignment_expression "iVar4 = (int)cVar1" (identifier "iVar4") (= "=") (cast_expression "(int)cVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar1"))) (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }\n            local_10 = local_10 + 1;\n            cVar1 = *local_10;\n          }" ({ "{") (if_statement "if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }" (if "if") (parenthesized_expression "((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0))" (( "(") (binary_expression "(0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)" (parenthesized_expression "(0x17 < iVar4 - 9U)" (( "(") (binary_expression "0x17 < iVar4 - 9U" (number_literal "0x17") (< "<") (binary_expression "iVar4 - 9U" (identifier "iVar4") (- "-") (number_literal "9U"))) () ")")) (|| "||") (parenthesized_expression "((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)" (( "(") (binary_expression "(1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0" (parenthesized_expression "(1 << (iVar4 - 9U & 0x1f) & 0x80001fU)" (( "(") (binary_expression "1 << (iVar4 - 9U & 0x1f) & 0x80001fU" (binary_expression "1 << (iVar4 - 9U & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "(iVar4 - 9U & 0x1f)" (( "(") (binary_expression "iVar4 - 9U & 0x1f" (binary_expression "iVar4 - 9U" (identifier "iVar4") (- "-") (number_literal "9U")) (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "0x80001fU")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n              if (iVar4 != 0x2c) goto LAB_000122a8;\n              break;\n            }" ({ "{") (if_statement "if (iVar4 != 0x2c) goto LAB_000122a8;" (if "if") (parenthesized_expression "(iVar4 != 0x2c)" (( "(") (binary_expression "iVar4 != 0x2c" (identifier "iVar4") (!= "!=") (number_literal "0x2c")) () ")")) (goto_statement "goto LAB_000122a8;" (goto "goto") (statement_identifier "LAB_000122a8") (; ";"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "local_10 = local_10 + 1;" (assignment_expression "local_10 = local_10 + 1" (identifier "local_10") (= "=") (binary_expression "local_10 + 1" (identifier "local_10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *local_10;" (assignment_expression "cVar1 = *local_10" (identifier "cVar1") (= "=") (pointer_expression "*local_10" (* "*") (identifier "local_10"))) (; ";")) (} "}"))) (goto_statement "goto LAB_000122ac;" (goto "goto") (statement_identifier "LAB_000122ac") (; ";")) (} "}"))) (} "}")))) (goto_statement "goto LAB_000122a8;" (goto "goto") (statement_identifier "LAB_000122a8") (; ";")) (} "}"))) (expression_statement "uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;" (assignment_expression "uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f" (identifier "uVar2") (= "=") (binary_expression "1 << (iVar4 - 9U & 0x1f) & 0x80001f" (binary_expression "1 << (iVar4 - 9U & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "(iVar4 - 9U & 0x1f)" (( "(") (binary_expression "iVar4 - 9U & 0x1f" (binary_expression "iVar4 - 9U" (identifier "iVar4") (- "-") (number_literal "9U")) (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "0x80001f"))) (; ";")) (if_statement "if (uVar2 != 0) {\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\n    }" (if "if") (parenthesized_expression "(uVar2 != 0)" (( "(") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      param_1 = param_1 + 1;\n      cVar1 = *param_1;\n      while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }\n      goto LAB_000122a8;\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 "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (while_statement "while( true ) {\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        iVar4 = (int)cVar1;\n        if (iVar4 == 0) break;\n        if (0x17 < iVar4 - 9U) goto LAB_00012214;\n        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;\n        param_1 = param_1 + 1;\n        if (uVar2 == 0) goto LAB_000122ac;\n        cVar1 = *param_1;\n      }" ({ "{") (expression_statement "iVar4 = (int)cVar1;" (assignment_expression "iVar4 = (int)cVar1" (identifier "iVar4") (= "=") (cast_expression "(int)cVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar1"))) (; ";")) (if_statement "if (iVar4 == 0) break;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (0x17 < iVar4 - 9U) goto LAB_00012214;" (if "if") (parenthesized_expression "(0x17 < iVar4 - 9U)" (( "(") (binary_expression "0x17 < iVar4 - 9U" (number_literal "0x17") (< "<") (binary_expression "iVar4 - 9U" (identifier "iVar4") (- "-") (number_literal "9U"))) () ")")) (goto_statement "goto LAB_00012214;" (goto "goto") (statement_identifier "LAB_00012214") (; ";"))) (expression_statement "uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;" (assignment_expression "uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f" (identifier "uVar2") (= "=") (binary_expression "1 << (iVar4 - 9U & 0x1f) & 0x80001f" (binary_expression "1 << (iVar4 - 9U & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "(iVar4 - 9U & 0x1f)" (( "(") (binary_expression "iVar4 - 9U & 0x1f" (binary_expression "iVar4 - 9U" (identifier "iVar4") (- "-") (number_literal "9U")) (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "0x80001f"))) (; ";")) (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"))) (; ";")) (if_statement "if (uVar2 == 0) goto LAB_000122ac;" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000122ac;" (goto "goto") (statement_identifier "LAB_000122ac") (; ";"))) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}"))) (goto_statement "goto LAB_000122a8;" (goto "goto") (statement_identifier "LAB_000122a8") (; ";")) (} "}"))) (} "}")))) (labeled_statement "LAB_000122ac:\n  if (local_c == *(int *)puVar5) {\n    return uVar2;\n  }" (statement_identifier "LAB_000122ac") (: ":") (if_statement "if (local_c == *(int *)puVar5) {\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(local_c == *(int *)puVar5)" (( "(") (binary_expression "local_c == *(int *)puVar5" (identifier "local_c") (== "==") (pointer_expression "*(int *)puVar5" (* "*") (cast_expression "(int *)puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5")))) () ")")) (compound_statement "{\n    return uVar2;\n  }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))) (expression_statement "iVar4 = local_c;" (assignment_expression "iVar4 = local_c" (identifier "iVar4") (= "=") (identifier "local_c")) (; ";")) (expression_statement "puVar5 = PTR___stack_chk_fail_00029294;" (assignment_expression "puVar5 = PTR___stack_chk_fail_00029294" (identifier "puVar5") (= "=") (identifier "PTR___stack_chk_fail_00029294")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_00029294)();" (call_expression "(*(code *)PTR___stack_chk_fail_00029294)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00029294)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00029294" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00029294" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00029294"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (iVar4 == 2) {\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);\n    if (iVar4 != 0) {\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n    if ((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)) goto LAB_000123a8;\n  }\n  else if (iVar4 != 1) {\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(iVar4 == 2)" (( "(") (binary_expression "iVar4 == 2" (identifier "iVar4") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);\n    if (iVar4 != 0) {\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }\n    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n    if ((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)) goto LAB_000123a8;\n  }" ({ "{") (expression_statement "iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);" (assignment_expression "iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74)" (parenthesized_expression "(**(code **)(puVar5 + 0x16f98))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x16f98)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x16f98)" (* "*") (cast_expression "(code **)(puVar5 + 0x16f98)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x16f98)" (( "(") (binary_expression "puVar5 + 0x16f98" (identifier "puVar5") (+ "+") (number_literal "0x16f98")) () ")"))))) () ")")) (argument_list "(*(int *)(puVar5 + 0x16e30) + 0x7e74)" (( "(") (binary_expression "*(int *)(puVar5 + 0x16e30) + 0x7e74" (pointer_expression "*(int *)(puVar5 + 0x16e30)" (* "*") (cast_expression "(int *)(puVar5 + 0x16e30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 0x16e30)" (( "(") (binary_expression "puVar5 + 0x16e30" (identifier "puVar5") (+ "+") (number_literal "0x16e30")) () ")")))) (+ "+") (number_literal "0x7e74")) () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = FUN_00012180(iVar4);\n      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);\n      if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }\n      if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }\n      goto LAB_000123a8;\n    }" ({ "{") (expression_statement "uVar3 = FUN_00012180(iVar4);" (assignment_expression "uVar3 = FUN_00012180(iVar4)" (identifier "uVar3") (= "=") (call_expression "FUN_00012180(iVar4)" (identifier "FUN_00012180") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);" (assignment_expression "iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84)" (parenthesized_expression "(**(code **)(puVar5 + 0x16f98))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x16f98)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x16f98)" (* "*") (cast_expression "(code **)(puVar5 + 0x16f98)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x16f98)" (( "(") (binary_expression "puVar5 + 0x16f98" (identifier "puVar5") (+ "+") (number_literal "0x16f98")) () ")"))))) () ")")) (argument_list "(*(int *)(puVar5 + 0x16e30) + 0x7e84)" (( "(") (binary_expression "*(int *)(puVar5 + 0x16e30) + 0x7e84" (pointer_expression "*(int *)(puVar5 + 0x16e30)" (* "*") (cast_expression "(int *)(puVar5 + 0x16e30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 0x16e30)" (( "(") (binary_expression "puVar5 + 0x16e30" (identifier "puVar5") (+ "+") (number_literal "0x16e30")) () ")")))) (+ "+") (number_literal "0x7e84")) () ")")))) (; ";")) (if_statement "if ((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)) {\n        uVar2 = 0xffffffff;\n      }" (if "if") (parenthesized_expression "((iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0))" (( "(") (binary_expression "(iVar4 == 0) || (uVar2 = FUN_00012180(iVar4), uVar2 == 0)" (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(uVar2 = FUN_00012180(iVar4), uVar2 == 0)" (( "(") (comma_expression "uVar2 = FUN_00012180(iVar4), uVar2 == 0" (assignment_expression "uVar2 = FUN_00012180(iVar4)" (identifier "uVar2") (= "=") (call_expression "FUN_00012180(iVar4)" (identifier "FUN_00012180") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (, ",") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n        uVar2 = 0xffffffff;\n      }" ({ "{") (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}"))) (if_statement "if (uVar3 != 0) {\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }" (if "if") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }\n        return uVar3;\n      }" ({ "{") (if_statement "if (uVar2 <= uVar3) {\n          uVar3 = uVar2;\n        }" (if "if") (parenthesized_expression "(uVar2 <= uVar3)" (( "(") (binary_expression "uVar2 <= uVar3" (identifier "uVar2") (<= "<=") (identifier "uVar3")) () ")")) (compound_statement "{\n          uVar3 = uVar2;\n        }" ({ "{") (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" (identifier "uVar3") (= "=") (identifier "uVar2")) (; ";")) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (goto_statement "goto LAB_000123a8;" (goto "goto") (statement_identifier "LAB_000123a8") (; ";")) (} "}"))) (expression_statement "iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);" (assignment_expression "iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84)" (parenthesized_expression "(**(code **)(puVar5 + 0x16f98))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x16f98)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x16f98)" (* "*") (cast_expression "(code **)(puVar5 + 0x16f98)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x16f98)" (( "(") (binary_expression "puVar5 + 0x16f98" (identifier "puVar5") (+ "+") (number_literal "0x16f98")) () ")"))))) () ")")) (argument_list "(*(int *)(puVar5 + 0x16e30) + 0x7e84)" (( "(") (binary_expression "*(int *)(puVar5 + 0x16e30) + 0x7e84" (pointer_expression "*(int *)(puVar5 + 0x16e30)" (* "*") (cast_expression "(int *)(puVar5 + 0x16e30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 0x16e30)" (( "(") (binary_expression "puVar5 + 0x16e30" (identifier "puVar5") (+ "+") (number_literal "0x16e30")) () ")")))) (+ "+") (number_literal "0x7e84")) () ")")))) (; ";")) (if_statement "if ((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)) goto LAB_000123a8;" (if "if") (parenthesized_expression "((iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0))" (( "(") (binary_expression "(iVar4 != 0) && (uVar2 = FUN_00012180(iVar4), uVar2 != 0)" (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar2 = FUN_00012180(iVar4), uVar2 != 0)" (( "(") (comma_expression "uVar2 = FUN_00012180(iVar4), uVar2 != 0" (assignment_expression "uVar2 = FUN_00012180(iVar4)" (identifier "uVar2") (= "=") (call_expression "FUN_00012180(iVar4)" (identifier "FUN_00012180") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (, ",") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_000123a8;" (goto "goto") (statement_identifier "LAB_000123a8") (; ";"))) (} "}")) (else_clause "else if (iVar4 != 1) {\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }" (else "else") (if_statement "if (iVar4 != 1) {\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(iVar4 != 1)" (( "(") (binary_expression "iVar4 != 1" (identifier "iVar4") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);\n    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }\n    if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);" (assignment_expression "uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53)" (identifier "uVar2") (= "=") (call_expression "(**(code **)(puVar5 + 0x16fbc))(0x53)" (parenthesized_expression "(**(code **)(puVar5 + 0x16fbc))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x16fbc)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x16fbc)" (* "*") (cast_expression "(code **)(puVar5 + 0x16fbc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x16fbc)" (( "(") (binary_expression "puVar5 + 0x16fbc" (identifier "puVar5") (+ "+") (number_literal "0x16fbc")) () ")"))))) () ")")) (argument_list "(0x53)" (( "(") (number_literal "0x53") () ")")))) (; ";")) (if_statement "if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {\n      return 1;\n    }" (if "if") (parenthesized_expression "((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0))" (( "(") (binary_expression "(uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)" (parenthesized_expression "(uVar2 == 1)" (( "(") (binary_expression "uVar2 == 1" (identifier "uVar2") (== "==") (number_literal "1")) () ")")) (&& "&&") (parenthesized_expression "(uVar2 = FUN_000120e0(), uVar2 == 0)" (( "(") (comma_expression "uVar2 = FUN_000120e0(), uVar2 == 0" (assignment_expression "uVar2 = FUN_000120e0()" (identifier "uVar2") (= "=") (call_expression "FUN_000120e0()" (identifier "FUN_000120e0") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if ((int)uVar2 < 1) {\n      uVar2 = 1;\n    }" (if "if") (parenthesized_expression "((int)uVar2 < 1)" (( "(") (binary_expression "(int)uVar2 < 1" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      uVar2 = 1;\n    }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))))) (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffff")) (; ";")) (labeled_statement "LAB_000123a8:\n  uVar3 = FUN_000120e0();" (statement_identifier "LAB_000123a8") (: ":") (expression_statement "uVar3 = FUN_000120e0();" (assignment_expression "uVar3 = FUN_000120e0()" (identifier "uVar3") (= "=") (call_expression "FUN_000120e0()" (identifier "FUN_000120e0") (argument_list "()" (( "(") () ")")))) (; ";"))) (if_statement "if ((uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)) {\n    return 1;\n  }" (if "if") (parenthesized_expression "((uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1))" (( "(") (binary_expression "(uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)" (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)" (( "(") (comma_expression "uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1" (assignment_expression "uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54)" (identifier "uVar3") (= "=") (call_expression "(**(code **)(puVar5 + 0x16fbc))(0x54)" (parenthesized_expression "(**(code **)(puVar5 + 0x16fbc))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x16fbc)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x16fbc)" (* "*") (cast_expression "(code **)(puVar5 + 0x16fbc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x16fbc)" (( "(") (binary_expression "puVar5 + 0x16fbc" (identifier "puVar5") (+ "+") (number_literal "0x16fbc")) () ")"))))) () ")")) (argument_list "(0x54)" (( "(") (number_literal "0x54") () ")")))) (, ",") (binary_expression "(int)uVar3 < 1" (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")) (< "<") (number_literal "1"))) () ")"))) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (uVar2 < uVar3) {\n    uVar3 = uVar2;\n  }" (if "if") (parenthesized_expression "(uVar2 < uVar3)" (( "(") (binary_expression "uVar2 < uVar3" (identifier "uVar2") (< "<") (identifier "uVar3")) () ")")) (compound_statement "{\n    uVar3 = uVar2;\n  }" ({ "{") (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" (identifier "uVar3") (= "=") (identifier "uVar2")) (; ";")) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

/* WARNING: Type propagation algorithm not settling */

type_1 function_1(char *var_4)

{
  char cVar1;
  type_1 var_3;
  char *var_7;
  type_1 var_8;
  type_2 var_10;
  int var_1;
  type_3 *var_6;
  char *var_2;
  int var_5;
  
  var_6 = PTR___stack_chk_guard_000292ac;
  var_1 = (int)*var_4;
  var_5 = *(int *)PTR___stack_chk_guard_000292ac;
  if (var_1 == 0) {
LAB_000122a8:
    var_3 = 0;
  }
  else {
    if (0x17 < var_1 - 9U) {
LAB_00012214:
      if (var_1 - 0x30U < 10) {
        var_2 = (char *)0x0;
        var_3 = (*(type_4 *)PTR_strtoul_00029254)(var_4,&var_2,10);
        if (var_2 != (char *)0x0) {
          cVar1 = *var_2;
          while (var_1 = (int)cVar1, var_1 != 0) {
            if ((0x17 < var_1 - 9U) || ((1 << (var_1 - 9U & 0x1f) & 0x80001fU) == 0)) {
              if (var_1 != 0x2c) goto LAB_000122a8;
              break;
            }
            var_2 = var_2 + 1;
            cVar1 = *var_2;
          }
          goto LAB_000122ac;
        }
      }
      goto LAB_000122a8;
    }
    var_3 = 1 << (var_1 - 9U & 0x1f) & 0x80001f;
    if (var_3 != 0) {
      var_4 = var_4 + 1;
      cVar1 = *var_4;
      while( true ) {
        var_1 = (int)cVar1;
        if (var_1 == 0) break;
        if (0x17 < var_1 - 9U) goto LAB_00012214;
        var_3 = 1 << (var_1 - 9U & 0x1f) & 0x80001f;
        var_4 = var_4 + 1;
        if (var_3 == 0) goto LAB_000122ac;
        cVar1 = *var_4;
      }
      goto LAB_000122a8;
    }
  }
LAB_000122ac:
  if (var_5 == *(int *)var_6) {
    return var_3;
  }
  var_1 = var_5;
  var_6 = PTR___stack_chk_fail_00029294;
  (*(type_4 *)PTR___stack_chk_fail_00029294)();
  if (var_1 == 2) {
    var_7 = (char *)(**(type_4 **)(var_6 + 0x16f98))(*(int *)(var_6 + 0x16e30) + 0x7e74);
    if (var_7 != (char *)0x0) {
      var_8 = function_1(var_7);
      var_7 = (char *)(**(type_4 **)(var_6 + 0x16f98))(*(int *)(var_6 + 0x16e30) + 0x7e84);
      if ((var_7 == (char *)0x0) || (var_3 = function_1(var_7), var_3 == 0)) {
        var_3 = 0xffffffff;
      }
      if (var_8 != 0) {
        if (var_3 <= var_8) {
          var_8 = var_3;
        }
        return var_8;
      }
      goto LAB_000123a8;
    }
    var_7 = (char *)(**(type_4 **)(var_6 + 0x16f98))(*(int *)(var_6 + 0x16e30) + 0x7e84);
    if ((var_7 != (char *)0x0) && (var_3 = function_1(var_7), var_3 != 0))
    goto LAB_000123a8;
  }
  else if (var_1 != 1) {
    var_3 = (**(type_4 **)(var_6 + 0x16fbc))(0x53);
    if ((var_3 == 1) && (var_3 = var_9(), var_3 == 0)) {
      return 1;
    }
    if ((int)var_3 < 1) {
      var_3 = 1;
    }
    return var_3;
  }
  var_3 = 0xffffffff;
LAB_000123a8:
  var_10 = var_9();
  if ((var_10 == 0) && (var_10 = (**(type_4 **)(var_6 + 0x16fbc))(0x54), (int)var_10 < 1)) {
    return 1;
  }
  if (var_3 < var_10) {
    var_10 = var_3;
  }
  return var_10;
}


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

/* WARNING: Type propagation algorithm not settling */

uint MASKED(char *param_1)

{
  char cVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  undefined *puVar5;
  char *local_10;
  int local_c;
  
  puVar5 = PTR___stack_chk_guard_000292ac;
  iVar4 = (int)*param_1;
  local_c = *(int *)PTR___stack_chk_guard_000292ac;
  if (iVar4 == 0) {
LAB_000122a8:
    uVar2 = 0;
  }
  else {
    if (0x17 < iVar4 - 9U) {
LAB_00012214:
      if (iVar4 - 0x30U < 10) {
        local_10 = (char *)0x0;
        uVar2 = (*(code *)PTR_strtoul_00029254)(param_1,&local_10,10);
        if (local_10 != (char *)0x0) {
          cVar1 = *local_10;
          while (iVar4 = (int)cVar1, iVar4 != 0) {
            if ((0x17 < iVar4 - 9U) || ((1 << (iVar4 - 9U & 0x1f) & 0x80001fU) == 0)) {
              if (iVar4 != 0x2c) goto LAB_000122a8;
              break;
            }
            local_10 = local_10 + 1;
            cVar1 = *local_10;
          }
          goto LAB_000122ac;
        }
      }
      goto LAB_000122a8;
    }
    uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;
    if (uVar2 != 0) {
      param_1 = param_1 + 1;
      cVar1 = *param_1;
      while( true ) {
        iVar4 = (int)cVar1;
        if (iVar4 == 0) break;
        if (0x17 < iVar4 - 9U) goto LAB_00012214;
        uVar2 = 1 << (iVar4 - 9U & 0x1f) & 0x80001f;
        param_1 = param_1 + 1;
        if (uVar2 == 0) goto LAB_000122ac;
        cVar1 = *param_1;
      }
      goto LAB_000122a8;
    }
  }
LAB_000122ac:
  if (local_c == *(int *)puVar5) {
    return uVar2;
  }
  iVar4 = local_c;
  puVar5 = PTR___stack_chk_fail_00029294;
  (*(code *)PTR___stack_chk_fail_00029294)();
  if (iVar4 == 2) {
    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e74);
    if (iVar4 != 0) {
      uVar3 = MASKED(iVar4);
      iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);
      if ((iVar4 == 0) || (uVar2 = MASKED(iVar4), uVar2 == 0)) {
        uVar2 = 0xffffffff;
      }
      if (uVar3 != 0) {
        if (uVar2 <= uVar3) {
          uVar3 = uVar2;
        }
        return uVar3;
      }
      goto LAB_000123a8;
    }
    iVar4 = (**(code **)(puVar5 + 0x16f98))(*(int *)(puVar5 + 0x16e30) + 0x7e84);
    if ((iVar4 != 0) && (uVar2 = MASKED(iVar4), uVar2 != 0)) goto LAB_000123a8;
  }
  else if (iVar4 != 1) {
    uVar2 = (**(code **)(puVar5 + 0x16fbc))(0x53);
    if ((uVar2 == 1) && (uVar2 = FUN_000120e0(), uVar2 == 0)) {
      return 1;
    }
    if ((int)uVar2 < 1) {
      uVar2 = 1;
    }
    return uVar2;
  }
  uVar2 = 0xffffffff;
LAB_000123a8:
  uVar3 = FUN_000120e0();
  if ((uVar3 == 0) && (uVar3 = (**(code **)(puVar5 + 0x16fbc))(0x54), (int)uVar3 < 1)) {
    return 1;
  }
  if (uVar2 < uVar3) {
    uVar3 = uVar2;
  }
  return uVar3;
}

