
int safe_atoi(char *s,quoting_style style)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  char *arg;
  int iVar4;
  undefined *puVar5;
  int *piVar6;
  char *pcVar7;
  undefined *puVar8;
  code *pcVar9;
  int *piStack_30;
  char *end;
  int iStack_1c;
  
  puVar8 = PTR___stack_chk_guard_00075be8;
  iStack_1c = *(int *)PTR___stack_chk_guard_00075be8;
  piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();
  *piVar1 = 0;
  iVar2 = (*(code *)PTR_strtol_000759f8)(s,&end,10);
  if (iVar2 + 0x7fffffffU < 0xfffffffe) {
LAB_00029894:
    puVar5 = PTR_s_directory_000755b8;
    if (*end != '\0') goto LAB_000298f8;
    piVar6 = (int *)PTR_s_directory_000755b8;
    arg = s;
    if (s != end) {
      if (iStack_1c == *(int *)puVar8) {
        return iVar2;
      }
      goto LAB_000298ec;
    }
  }
  else {
    if (*piVar1 != 0x22) {
      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,s);
      goto LAB_00029894;
    }
    puVar5 = (undefined *)0x22;
    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,s);
LAB_000298ec:
    (*(code *)PTR___stack_chk_fail_00075ba8)();
LAB_000298f8:
    piVar1 = (int *)*piVar1;
    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar5 + -0x3d8,5);
    arg = quotearg_n_style(0,style,end);
    piStack_30 = (int *)quotearg_n_style(1,style,s);
    piVar6 = piVar1;
    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,arg);
  }
  pcVar7 = (char *)*piVar1;
  iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar6 + -0xef,5);
  piVar1 = (int *)quotearg_n_style(0,style,arg);
  iVar4 = 1;
  puVar8 = PTR_error_00075b3c;
  (*(code *)PTR_error_00075b3c)();
  if (iVar2 == 0) {
    iVar2 = *piVar1 + *piStack_30;
    *piVar1 = iVar2;
    if (*(char *)(iVar4 + iVar2) == '\0') {
      return 0;
    }
    *piVar1 = iVar2 + 1;
    iVar4 = iVar4 + iVar2 + 1;
    if (*pcVar7 != '\0') {
      pcVar9 = *(code **)(puVar8 + 0x4c0b4);
      goto LAB_00029a04;
    }
  }
  else {
    *piVar1 = 0;
    *piStack_30 = 0;
    iVar4 = iVar4 + *piVar1;
    if (*pcVar7 != '\0') {
      pcVar9 = *(code **)(puVar8 + 0x4c0b4);
LAB_00029a04:
      iVar2 = (*pcVar9)(iVar4);
      if (iVar2 != 0) {
        iVar2 = iVar2 - iVar4;
        goto LAB_00029a1c;
      }
    }
  }
  iVar2 = (**(code **)(puVar8 + 0x4c134))(iVar4);
LAB_00029a1c:
  *piStack_30 = iVar2;
  return 1;
}



int safe_atoi(char *param_1,undefined4 param_2)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  char *pcVar4;
  int iVar5;
  undefined *puVar6;
  int *piVar7;
  char *pcVar8;
  undefined *puVar9;
  code *pcVar10;
  int *local_30;
  char *local_20;
  int local_1c;
  
  puVar9 = PTR___stack_chk_guard_00075be8;
  local_1c = *(int *)PTR___stack_chk_guard_00075be8;
  piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();
  *piVar1 = 0;
  iVar2 = (*(code *)PTR_strtol_000759f8)(param_1,&local_20,10);
  if (iVar2 + 0x7fffffffU < 0xfffffffe) {
LAB_00029894:
    puVar6 = PTR_s_directory_000755b8;
    if (*local_20 != '\0') goto LAB_000298f8;
    piVar7 = (int *)PTR_s_directory_000755b8;
    pcVar4 = param_1;
    if (param_1 != local_20) {
      if (local_1c == *(int *)puVar9) {
        return iVar2;
      }
      goto LAB_000298ec;
    }
  }
  else {
    if (*piVar1 != 0x22) {
      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);
      goto LAB_00029894;
    }
    puVar6 = &DAT_00000022;
    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);
LAB_000298ec:
    (*(code *)PTR___stack_chk_fail_00075ba8)();
LAB_000298f8:
    piVar1 = (int *)*piVar1;
    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);
    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);
    local_30 = (int *)quotearg_n_style(1,param_2,param_1);
    piVar7 = piVar1;
    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);
  }
  pcVar8 = (char *)*piVar1;
  iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5);
  piVar1 = (int *)quotearg_n_style(0,param_2,pcVar4);
  iVar5 = 1;
  puVar9 = PTR_error_00075b3c;
  (*(code *)PTR_error_00075b3c)();
  if (iVar2 == 0) {
    iVar2 = *piVar1 + *local_30;
    *piVar1 = iVar2;
    if (*(char *)(iVar5 + iVar2) == '\0') {
      return 0;
    }
    *piVar1 = iVar2 + 1;
    iVar5 = iVar5 + iVar2 + 1;
    if (*pcVar8 != '\0') {
      pcVar10 = *(code **)(puVar9 + 0x4c0b4);
      goto LAB_00029a04;
    }
  }
  else {
    *piVar1 = 0;
    *local_30 = 0;
    iVar5 = iVar5 + *piVar1;
    if (*pcVar8 != '\0') {
      pcVar10 = *(code **)(puVar9 + 0x4c0b4);
LAB_00029a04:
      iVar2 = (*pcVar10)(iVar5);
      if (iVar2 != 0) {
        iVar2 = iVar2 - iVar5;
        goto LAB_00029a1c;
      }
    }
  }
  iVar2 = (**(code **)(puVar9 + 0x4c134))(iVar5);
LAB_00029a1c:
  *local_30 = iVar2;
  return 1;
}


lui gp,0x5
addiu gp,gp,0x3d90
addu gp,gp,t9
addiu sp,sp,-0x40
lw t9,-0x7abc(gp)
sw s2,0x34(sp)
lw s2,-0x7998(gp)
sw gp,0x18(sp)
sw ra,0x3c(sp)
sw s3,0x38(sp)
or s3,a1,zero
sw s1,0x30(sp)
sw s0,0x2c(sp)
or s0,a0,zero
lw v0,0x0(s2)
sw v0,0x24(sp)
jalr t9
_nop
li a2,0xa
lw gp,0x18(sp)
addiu a1,sp,0x20
sw zero,0x0(v0)
or a0,s0,zero
lw t9,-0x7b88(gp)
jalr t9
_or s1,v0,zero
lui v1,0x7fff
ori v1,v1,0xffff
addu v1,v0,v1
sltiu v1,v1,-0x2
bne v1,zero,0x00029894
_lw gp,0x18(sp)
lw a1,0x0(s1)
li v0,0x22
beq a1,v0,0x000298d4
_li a0,0x1
lw a2,-0x7fc8(gp)
lw t9,-0x7a44(gp)
or a3,s0,zero
jalr t9
_addiu a2,a2,-0x254
lw v1,0x20(sp)
lb a0,0x0(v1)
bne a0,zero,0x000298f8
_lw a1,-0x7fc8(gp)
beq s0,v1,0x00029968
_lw a1,-0x7fc8(gp)
lw a0,0x24(sp)
lw v1,0x0(s2)
bne a0,v1,0x000298ec
_lw ra,0x3c(sp)
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x40
lw a2,-0x7fc8(gp)
li a1,0x22
lw t9,-0x7a44(gp)
or a3,s0,zero
jalr t9
_addiu a2,a2,-0x254
lw t9,-0x79d8(gp)
jalr t9
_nop
li a2,0x5
lw t9,-0x79d0(gp)
or a0,zero,zero
lw s1,0x0(s1)
jalr t9
_addiu a1,a1,-0x3d8
or a0,zero,zero
lw gp,0x18(sp)
or a1,s3,zero
lw a2,0x20(sp)
lw t9,-0x7fa0(gp)
bal 0x00038f58
_or s2,v0,zero
li a0,0x1
lw gp,0x18(sp)
or a2,s0,zero
or a1,s3,zero
lw t9,-0x7fa0(gp)
bal 0x00038f58
_or s0,v0,zero
li a0,0x1
lw gp,0x18(sp)
or a3,s0,zero
sw v0,0x10(sp)
or a2,s2,zero
lw t9,-0x7a44(gp)
jalr t9
_or a1,s1,zero
li a2,0x5
lw t9,-0x79d0(gp)
or a0,zero,zero
lw s1,0x0(s1)
jalr t9
_addiu a1,a1,-0x3bc
or a0,zero,zero
lw gp,0x18(sp)
or a2,s0,zero
or a1,s3,zero
lw t9,-0x7fa0(gp)
bal 0x00038f58
_or s0,v0,zero
li a0,0x1
lw gp,0x18(sp)
or a3,v0,zero
or a2,s0,zero
lw t9,-0x7a44(gp)
jalr t9
_or a1,s1,zero
nop
nop
(translation_unit "int safe_atoi(char *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  int *piVar7;\n  char *pcVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  int *local_30;\n  char *local_20;\n  int local_1c;\n  \n  puVar9 = PTR___stack_chk_guard_00075be8;\n  local_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n  *piVar1 = 0;\n  iVar2 = (*(code *)PTR_strtol_000759f8)(param_1,&local_20,10);\n  if (iVar2 + 0x7fffffffU < 0xfffffffe) {\nLAB_00029894:\n    puVar6 = PTR_s_directory_000755b8;\n    if (*local_20 != '\0') goto LAB_000298f8;\n    piVar7 = (int *)PTR_s_directory_000755b8;\n    pcVar4 = param_1;\n    if (param_1 != local_20) {\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }\n  else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }\n    puVar6 = &DAT_00000022;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);\n    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);\n    local_30 = (int *)quotearg_n_style(1,param_2,param_1);\n    piVar7 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);\n  }\n  pcVar8 = (char *)*piVar1;\n  iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5);\n  piVar1 = (int *)quotearg_n_style(0,param_2,pcVar4);\n  iVar5 = 1;\n  puVar9 = PTR_error_00075b3c;\n  (*(code *)PTR_error_00075b3c)();\n  if (iVar2 == 0) {\n    iVar2 = *piVar1 + *local_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar5 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar5 = iVar5 + iVar2 + 1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }\n  else {\n    *piVar1 = 0;\n    *local_30 = 0;\n    iVar5 = iVar5 + *piVar1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }\n  }\n  iVar2 = (**(code **)(puVar9 + 0x4c134))(iVar5);\nLAB_00029a1c:\n  *local_30 = iVar2;\n  return 1;\n}\n\n" (function_definition "int safe_atoi(char *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  int *piVar7;\n  char *pcVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  int *local_30;\n  char *local_20;\n  int local_1c;\n  \n  puVar9 = PTR___stack_chk_guard_00075be8;\n  local_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n  *piVar1 = 0;\n  iVar2 = (*(code *)PTR_strtol_000759f8)(param_1,&local_20,10);\n  if (iVar2 + 0x7fffffffU < 0xfffffffe) {\nLAB_00029894:\n    puVar6 = PTR_s_directory_000755b8;\n    if (*local_20 != '\0') goto LAB_000298f8;\n    piVar7 = (int *)PTR_s_directory_000755b8;\n    pcVar4 = param_1;\n    if (param_1 != local_20) {\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }\n  else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }\n    puVar6 = &DAT_00000022;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);\n    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);\n    local_30 = (int *)quotearg_n_style(1,param_2,param_1);\n    piVar7 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);\n  }\n  pcVar8 = (char *)*piVar1;\n  iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5);\n  piVar1 = (int *)quotearg_n_style(0,param_2,pcVar4);\n  iVar5 = 1;\n  puVar9 = PTR_error_00075b3c;\n  (*(code *)PTR_error_00075b3c)();\n  if (iVar2 == 0) {\n    iVar2 = *piVar1 + *local_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar5 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar5 = iVar5 + iVar2 + 1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }\n  else {\n    *piVar1 = 0;\n    *local_30 = 0;\n    iVar5 = iVar5 + *piVar1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }\n  }\n  iVar2 = (**(code **)(puVar9 + 0x4c134))(iVar5);\nLAB_00029a1c:\n  *local_30 = iVar2;\n  return 1;\n}" primitive_type (function_declarator "safe_atoi(char *param_1,undefined4 param_2)" identifier (parameter_list "(char *param_1,undefined4 param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  int *piVar7;\n  char *pcVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  int *local_30;\n  char *local_20;\n  int local_1c;\n  \n  puVar9 = PTR___stack_chk_guard_00075be8;\n  local_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n  *piVar1 = 0;\n  iVar2 = (*(code *)PTR_strtol_000759f8)(param_1,&local_20,10);\n  if (iVar2 + 0x7fffffffU < 0xfffffffe) {\nLAB_00029894:\n    puVar6 = PTR_s_directory_000755b8;\n    if (*local_20 != '\0') goto LAB_000298f8;\n    piVar7 = (int *)PTR_s_directory_000755b8;\n    pcVar4 = param_1;\n    if (param_1 != local_20) {\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }\n  else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }\n    puVar6 = &DAT_00000022;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);\n    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);\n    local_30 = (int *)quotearg_n_style(1,param_2,param_1);\n    piVar7 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);\n  }\n  pcVar8 = (char *)*piVar1;\n  iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5);\n  piVar1 = (int *)quotearg_n_style(0,param_2,pcVar4);\n  iVar5 = 1;\n  puVar9 = PTR_error_00075b3c;\n  (*(code *)PTR_error_00075b3c)();\n  if (iVar2 == 0) {\n    iVar2 = *piVar1 + *local_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar5 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar5 = iVar5 + iVar2 + 1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }\n  else {\n    *piVar1 = 0;\n    *local_30 = 0;\n    iVar5 = iVar5 + *piVar1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }\n  }\n  iVar2 = (**(code **)(puVar9 + 0x4c134))(iVar5);\nLAB_00029a1c:\n  *local_30 = iVar2;\n  return 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int *local_30;" primitive_type (pointer_declarator "*local_30" * identifier) ;) (declaration "char *local_20;" primitive_type (pointer_declarator "*local_20" * identifier) ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar9 = PTR___stack_chk_guard_00075be8;" (assignment_expression "puVar9 = PTR___stack_chk_guard_00075be8" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_00075be8;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_00075be8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00075be8" * (cast_expression "(int *)PTR___stack_chk_guard_00075be8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" ( (pointer_expression "*(code *)PTR___errno_location_00075ac4" * (cast_expression "(code *)PTR___errno_location_00075ac4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_strtol_000759f8)(param_1,&local_20,10);" (assignment_expression "iVar2 = (*(code *)PTR_strtol_000759f8)(param_1,&local_20,10)" identifier = (call_expression "(*(code *)PTR_strtol_000759f8)(param_1,&local_20,10)" (parenthesized_expression "(*(code *)PTR_strtol_000759f8)" ( (pointer_expression "*(code *)PTR_strtol_000759f8" * (cast_expression "(code *)PTR_strtol_000759f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,&local_20,10)" ( identifier , (pointer_expression "&local_20" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 + 0x7fffffffU < 0xfffffffe) {\nLAB_00029894:\n    puVar6 = PTR_s_directory_000755b8;\n    if (*local_20 != '\0') goto LAB_000298f8;\n    piVar7 = (int *)PTR_s_directory_000755b8;\n    pcVar4 = param_1;\n    if (param_1 != local_20) {\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }\n  else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }\n    puVar6 = &DAT_00000022;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);\n    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);\n    local_30 = (int *)quotearg_n_style(1,param_2,param_1);\n    piVar7 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);\n  }" if (parenthesized_expression "(iVar2 + 0x7fffffffU < 0xfffffffe)" ( (binary_expression "iVar2 + 0x7fffffffU < 0xfffffffe" (binary_expression "iVar2 + 0x7fffffffU" identifier + number_literal) < number_literal) )) (compound_statement "{\nLAB_00029894:\n    puVar6 = PTR_s_directory_000755b8;\n    if (*local_20 != '\0') goto LAB_000298f8;\n    piVar7 = (int *)PTR_s_directory_000755b8;\n    pcVar4 = param_1;\n    if (param_1 != local_20) {\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }" { (labeled_statement "LAB_00029894:\n    puVar6 = PTR_s_directory_000755b8;" statement_identifier : (expression_statement "puVar6 = PTR_s_directory_000755b8;" (assignment_expression "puVar6 = PTR_s_directory_000755b8" identifier = identifier) ;)) (if_statement "if (*local_20 != '\0') goto LAB_000298f8;" if (parenthesized_expression "(*local_20 != '\0')" ( (binary_expression "*local_20 != '\0'" (pointer_expression "*local_20" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000298f8;" goto statement_identifier ;)) (expression_statement "piVar7 = (int *)PTR_s_directory_000755b8;" (assignment_expression "piVar7 = (int *)PTR_s_directory_000755b8" identifier = (cast_expression "(int *)PTR_s_directory_000755b8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pcVar4 = param_1;" (assignment_expression "pcVar4 = param_1" identifier = identifier) ;) (if_statement "if (param_1 != local_20) {\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }" if (parenthesized_expression "(param_1 != local_20)" ( (binary_expression "param_1 != local_20" identifier != identifier) )) (compound_statement "{\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }" { (if_statement "if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }" if (parenthesized_expression "(local_1c == *(int *)puVar9)" ( (binary_expression "local_1c == *(int *)puVar9" identifier == (pointer_expression "*(int *)puVar9" * (cast_expression "(int *)puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n        return iVar2;\n      }" { (return_statement "return iVar2;" return identifier ;) })) (goto_statement "goto LAB_000298ec;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }\n    puVar6 = &DAT_00000022;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);\n    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);\n    local_30 = (int *)quotearg_n_style(1,param_2,param_1);\n    piVar7 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);\n  }" else (compound_statement "{\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }\n    puVar6 = &DAT_00000022;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);\n    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);\n    local_30 = (int *)quotearg_n_style(1,param_2,param_1);\n    piVar7 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);\n  }" { (if_statement "if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }" if (parenthesized_expression "(*piVar1 != 0x22)" ( (binary_expression "*piVar1 != 0x22" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);" (assignment_expression "iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1)" identifier = (call_expression "(*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1)" (parenthesized_expression "(*(code *)PTR_error_00075b3c)" ( (pointer_expression "*(code *)PTR_error_00075b3c" * (cast_expression "(code *)PTR_error_00075b3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1)" ( number_literal , (pointer_expression "*piVar1" * identifier) , (binary_expression "PTR_s_directory_000755b8 + -0x254" identifier + number_literal) , identifier )))) ;) (goto_statement "goto LAB_00029894;" goto statement_identifier ;) })) (expression_statement "puVar6 = &DAT_00000022;" (assignment_expression "puVar6 = &DAT_00000022" identifier = (pointer_expression "&DAT_00000022" & identifier)) ;) (expression_statement "(*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);" (call_expression "(*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1)" (parenthesized_expression "(*(code *)PTR_error_00075b3c)" ( (pointer_expression "*(code *)PTR_error_00075b3c" * (cast_expression "(code *)PTR_error_00075b3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1)" ( number_literal , number_literal , (binary_expression "PTR_s_directory_000755b8 + -0x254" identifier + number_literal) , identifier ))) ;) (labeled_statement "LAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();" statement_identifier : (expression_statement "(*(code *)PTR___stack_chk_fail_00075ba8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00075ba8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00075ba8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00075ba8" * (cast_expression "(code *)PTR___stack_chk_fail_00075ba8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;)) (labeled_statement "LAB_000298f8:\n    piVar1 = (int *)*piVar1;" statement_identifier : (expression_statement "piVar1 = (int *)*piVar1;" (assignment_expression "piVar1 = (int *)*piVar1" identifier = (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ;)) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00075bb0)" ( (pointer_expression "*(code *)PTR_dcgettext_00075bb0" * (cast_expression "(code *)PTR_dcgettext_00075bb0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,puVar6 + -0x3d8,5)" ( number_literal , (binary_expression "puVar6 + -0x3d8" identifier + number_literal) , number_literal )))) ;) (expression_statement "pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);" (assignment_expression "pcVar4 = (char *)quotearg_n_style(0,param_2,local_20)" identifier = (cast_expression "(char *)quotearg_n_style(0,param_2,local_20)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "quotearg_n_style(0,param_2,local_20)" identifier (argument_list "(0,param_2,local_20)" ( number_literal , identifier , identifier ))))) ;) (expression_statement "local_30 = (int *)quotearg_n_style(1,param_2,param_1);" (assignment_expression "local_30 = (int *)quotearg_n_style(1,param_2,param_1)" identifier = (cast_expression "(int *)quotearg_n_style(1,param_2,param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "quotearg_n_style(1,param_2,param_1)" identifier (argument_list "(1,param_2,param_1)" ( number_literal , identifier , identifier ))))) ;) (expression_statement "piVar7 = piVar1;" (assignment_expression "piVar7 = piVar1" identifier = identifier) ;) (expression_statement "(*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);" (call_expression "(*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4)" (parenthesized_expression "(*(code *)PTR_error_00075b3c)" ( (pointer_expression "*(code *)PTR_error_00075b3c" * (cast_expression "(code *)PTR_error_00075b3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,piVar1,uVar3,pcVar4)" ( number_literal , identifier , identifier , identifier ))) ;) }))) (expression_statement "pcVar8 = (char *)*piVar1;" (assignment_expression "pcVar8 = (char *)*piVar1" identifier = (cast_expression "(char *)*piVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5);" (assignment_expression "iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00075bb0)" ( (pointer_expression "*(code *)PTR_dcgettext_00075bb0" * (cast_expression "(code *)PTR_dcgettext_00075bb0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,piVar7 + -0xef,5)" ( number_literal , (binary_expression "piVar7 + -0xef" identifier + number_literal) , number_literal )))) ;) (expression_statement "piVar1 = (int *)quotearg_n_style(0,param_2,pcVar4);" (assignment_expression "piVar1 = (int *)quotearg_n_style(0,param_2,pcVar4)" identifier = (cast_expression "(int *)quotearg_n_style(0,param_2,pcVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "quotearg_n_style(0,param_2,pcVar4)" identifier (argument_list "(0,param_2,pcVar4)" ( number_literal , identifier , identifier ))))) ;) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "puVar9 = PTR_error_00075b3c;" (assignment_expression "puVar9 = PTR_error_00075b3c" identifier = identifier) ;) (expression_statement "(*(code *)PTR_error_00075b3c)();" (call_expression "(*(code *)PTR_error_00075b3c)()" (parenthesized_expression "(*(code *)PTR_error_00075b3c)" ( (pointer_expression "*(code *)PTR_error_00075b3c" * (cast_expression "(code *)PTR_error_00075b3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = *piVar1 + *local_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar5 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar5 = iVar5 + iVar2 + 1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }\n  else {\n    *piVar1 = 0;\n    *local_30 = 0;\n    iVar5 = iVar5 + *piVar1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = *piVar1 + *local_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar5 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar5 = iVar5 + iVar2 + 1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }" { (expression_statement "iVar2 = *piVar1 + *local_30;" (assignment_expression "iVar2 = *piVar1 + *local_30" identifier = (binary_expression "*piVar1 + *local_30" (pointer_expression "*piVar1" * identifier) + (pointer_expression "*local_30" * identifier))) ;) (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (if_statement "if (*(char *)(iVar5 + iVar2) == '\0') {\n      return 0;\n    }" if (parenthesized_expression "(*(char *)(iVar5 + iVar2) == '\0')" ( (binary_expression "*(char *)(iVar5 + iVar2) == '\0'" (pointer_expression "*(char *)(iVar5 + iVar2)" * (cast_expression "(char *)(iVar5 + iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar2)" ( (binary_expression "iVar5 + iVar2" identifier + identifier) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*piVar1 = iVar2 + 1;" (assignment_expression "*piVar1 = iVar2 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar5 + iVar2 + 1;" (assignment_expression "iVar5 = iVar5 + iVar2 + 1" identifier = (binary_expression "iVar5 + iVar2 + 1" (binary_expression "iVar5 + iVar2" identifier + identifier) + number_literal)) ;) (if_statement "if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }" if (parenthesized_expression "(*pcVar8 != '\0')" ( (binary_expression "*pcVar8 != '\0'" (pointer_expression "*pcVar8" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }" { (expression_statement "pcVar10 = *(code **)(puVar9 + 0x4c0b4);" (assignment_expression "pcVar10 = *(code **)(puVar9 + 0x4c0b4)" identifier = (pointer_expression "*(code **)(puVar9 + 0x4c0b4)" * (cast_expression "(code **)(puVar9 + 0x4c0b4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x4c0b4)" ( (binary_expression "puVar9 + 0x4c0b4" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00029a04;" goto statement_identifier ;) })) }) (else_clause "else {\n    *piVar1 = 0;\n    *local_30 = 0;\n    iVar5 = iVar5 + *piVar1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }\n  }" else (compound_statement "{\n    *piVar1 = 0;\n    *local_30 = 0;\n    iVar5 = iVar5 + *piVar1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }\n  }" { (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (expression_statement "*local_30 = 0;" (assignment_expression "*local_30 = 0" (pointer_expression "*local_30" * identifier) = number_literal) ;) (expression_statement "iVar5 = iVar5 + *piVar1;" (assignment_expression "iVar5 = iVar5 + *piVar1" identifier = (binary_expression "iVar5 + *piVar1" identifier + (pointer_expression "*piVar1" * identifier))) ;) (if_statement "if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }" if (parenthesized_expression "(*pcVar8 != '\0')" ( (binary_expression "*pcVar8 != '\0'" (pointer_expression "*pcVar8" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }" { (expression_statement "pcVar10 = *(code **)(puVar9 + 0x4c0b4);" (assignment_expression "pcVar10 = *(code **)(puVar9 + 0x4c0b4)" identifier = (pointer_expression "*(code **)(puVar9 + 0x4c0b4)" * (cast_expression "(code **)(puVar9 + 0x4c0b4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x4c0b4)" ( (binary_expression "puVar9 + 0x4c0b4" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);" statement_identifier : (expression_statement "iVar2 = (*pcVar10)(iVar5);" (assignment_expression "iVar2 = (*pcVar10)(iVar5)" identifier = (call_expression "(*pcVar10)(iVar5)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(iVar5)" ( identifier )))) ;)) (if_statement "if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }" { (expression_statement "iVar2 = iVar2 - iVar5;" (assignment_expression "iVar2 = iVar2 - iVar5" identifier = (binary_expression "iVar2 - iVar5" identifier - identifier)) ;) (goto_statement "goto LAB_00029a1c;" goto statement_identifier ;) })) })) }))) (expression_statement "iVar2 = (**(code **)(puVar9 + 0x4c134))(iVar5);" (assignment_expression "iVar2 = (**(code **)(puVar9 + 0x4c134))(iVar5)" identifier = (call_expression "(**(code **)(puVar9 + 0x4c134))(iVar5)" (parenthesized_expression "(**(code **)(puVar9 + 0x4c134))" ( (pointer_expression "**(code **)(puVar9 + 0x4c134)" * (pointer_expression "*(code **)(puVar9 + 0x4c134)" * (cast_expression "(code **)(puVar9 + 0x4c134)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x4c134)" ( (binary_expression "puVar9 + 0x4c134" identifier + number_literal) ))))) )) (argument_list "(iVar5)" ( identifier )))) ;) (labeled_statement "LAB_00029a1c:\n  *local_30 = iVar2;" statement_identifier : (expression_statement "*local_30 = iVar2;" (assignment_expression "*local_30 = iVar2" (pointer_expression "*local_30" * identifier) = identifier) ;)) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int safe_atoi(char *s,quoting_style style)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *arg;\n  int iVar4;\n  undefined *puVar5;\n  int *piVar6;\n  char *pcVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  int *piStack_30;\n  char *end;\n  int iStack_1c;\n  \n  puVar8 = PTR___stack_chk_guard_00075be8;\n  iStack_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n  *piVar1 = 0;\n  iVar2 = (*(code *)PTR_strtol_000759f8)(s,&end,10);\n  if (iVar2 + 0x7fffffffU < 0xfffffffe) {\nLAB_00029894:\n    puVar5 = PTR_s_directory_000755b8;\n    if (*end != '\0') goto LAB_000298f8;\n    piVar6 = (int *)PTR_s_directory_000755b8;\n    arg = s;\n    if (s != end) {\n      if (iStack_1c == *(int *)puVar8) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }\n  else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,s);\n      goto LAB_00029894;\n    }\n    puVar5 = (undefined *)0x22;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,s);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar5 + -0x3d8,5);\n    arg = quotearg_n_style(0,style,end);\n    piStack_30 = (int *)quotearg_n_style(1,style,s);\n    piVar6 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,arg);\n  }\n  pcVar7 = (char *)*piVar1;\n  iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar6 + -0xef,5);\n  piVar1 = (int *)quotearg_n_style(0,style,arg);\n  iVar4 = 1;\n  puVar8 = PTR_error_00075b3c;\n  (*(code *)PTR_error_00075b3c)();\n  if (iVar2 == 0) {\n    iVar2 = *piVar1 + *piStack_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar4 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar4 = iVar4 + iVar2 + 1;\n    if (*pcVar7 != '\0') {\n      pcVar9 = *(code **)(puVar8 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }\n  else {\n    *piVar1 = 0;\n    *piStack_30 = 0;\n    iVar4 = iVar4 + *piVar1;\n    if (*pcVar7 != '\0') {\n      pcVar9 = *(code **)(puVar8 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar9)(iVar4);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar4;\n        goto LAB_00029a1c;\n      }\n    }\n  }\n  iVar2 = (**(code **)(puVar8 + 0x4c134))(iVar4);\nLAB_00029a1c:\n  *piStack_30 = iVar2;\n  return 1;\n}\n\n" (function_definition "int safe_atoi(char *s,quoting_style style)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *arg;\n  int iVar4;\n  undefined *puVar5;\n  int *piVar6;\n  char *pcVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  int *piStack_30;\n  char *end;\n  int iStack_1c;\n  \n  puVar8 = PTR___stack_chk_guard_00075be8;\n  iStack_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n  *piVar1 = 0;\n  iVar2 = (*(code *)PTR_strtol_000759f8)(s,&end,10);\n  if (iVar2 + 0x7fffffffU < 0xfffffffe) {\nLAB_00029894:\n    puVar5 = PTR_s_directory_000755b8;\n    if (*end != '\0') goto LAB_000298f8;\n    piVar6 = (int *)PTR_s_directory_000755b8;\n    arg = s;\n    if (s != end) {\n      if (iStack_1c == *(int *)puVar8) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }\n  else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,s);\n      goto LAB_00029894;\n    }\n    puVar5 = (undefined *)0x22;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,s);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar5 + -0x3d8,5);\n    arg = quotearg_n_style(0,style,end);\n    piStack_30 = (int *)quotearg_n_style(1,style,s);\n    piVar6 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,arg);\n  }\n  pcVar7 = (char *)*piVar1;\n  iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar6 + -0xef,5);\n  piVar1 = (int *)quotearg_n_style(0,style,arg);\n  iVar4 = 1;\n  puVar8 = PTR_error_00075b3c;\n  (*(code *)PTR_error_00075b3c)();\n  if (iVar2 == 0) {\n    iVar2 = *piVar1 + *piStack_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar4 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar4 = iVar4 + iVar2 + 1;\n    if (*pcVar7 != '\0') {\n      pcVar9 = *(code **)(puVar8 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }\n  else {\n    *piVar1 = 0;\n    *piStack_30 = 0;\n    iVar4 = iVar4 + *piVar1;\n    if (*pcVar7 != '\0') {\n      pcVar9 = *(code **)(puVar8 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar9)(iVar4);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar4;\n        goto LAB_00029a1c;\n      }\n    }\n  }\n  iVar2 = (**(code **)(puVar8 + 0x4c134))(iVar4);\nLAB_00029a1c:\n  *piStack_30 = iVar2;\n  return 1;\n}" primitive_type (function_declarator "safe_atoi(char *s,quoting_style style)" identifier (parameter_list "(char *s,quoting_style style)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) , (parameter_declaration "quoting_style style" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *arg;\n  int iVar4;\n  undefined *puVar5;\n  int *piVar6;\n  char *pcVar7;\n  undefined *puVar8;\n  code *pcVar9;\n  int *piStack_30;\n  char *end;\n  int iStack_1c;\n  \n  puVar8 = PTR___stack_chk_guard_00075be8;\n  iStack_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n  *piVar1 = 0;\n  iVar2 = (*(code *)PTR_strtol_000759f8)(s,&end,10);\n  if (iVar2 + 0x7fffffffU < 0xfffffffe) {\nLAB_00029894:\n    puVar5 = PTR_s_directory_000755b8;\n    if (*end != '\0') goto LAB_000298f8;\n    piVar6 = (int *)PTR_s_directory_000755b8;\n    arg = s;\n    if (s != end) {\n      if (iStack_1c == *(int *)puVar8) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }\n  else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,s);\n      goto LAB_00029894;\n    }\n    puVar5 = (undefined *)0x22;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,s);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar5 + -0x3d8,5);\n    arg = quotearg_n_style(0,style,end);\n    piStack_30 = (int *)quotearg_n_style(1,style,s);\n    piVar6 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,arg);\n  }\n  pcVar7 = (char *)*piVar1;\n  iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar6 + -0xef,5);\n  piVar1 = (int *)quotearg_n_style(0,style,arg);\n  iVar4 = 1;\n  puVar8 = PTR_error_00075b3c;\n  (*(code *)PTR_error_00075b3c)();\n  if (iVar2 == 0) {\n    iVar2 = *piVar1 + *piStack_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar4 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar4 = iVar4 + iVar2 + 1;\n    if (*pcVar7 != '\0') {\n      pcVar9 = *(code **)(puVar8 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }\n  else {\n    *piVar1 = 0;\n    *piStack_30 = 0;\n    iVar4 = iVar4 + *piVar1;\n    if (*pcVar7 != '\0') {\n      pcVar9 = *(code **)(puVar8 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar9)(iVar4);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar4;\n        goto LAB_00029a1c;\n      }\n    }\n  }\n  iVar2 = (**(code **)(puVar8 + 0x4c134))(iVar4);\nLAB_00029a1c:\n  *piStack_30 = iVar2;\n  return 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *arg;" primitive_type (pointer_declarator "*arg" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (declaration "int *piStack_30;" primitive_type (pointer_declarator "*piStack_30" * identifier) ;) (declaration "char *end;" primitive_type (pointer_declarator "*end" * identifier) ;) (declaration "int iStack_1c;" primitive_type identifier ;) (expression_statement "puVar8 = PTR___stack_chk_guard_00075be8;" (assignment_expression "puVar8 = PTR___stack_chk_guard_00075be8" identifier = identifier) ;) (expression_statement "iStack_1c = *(int *)PTR___stack_chk_guard_00075be8;" (assignment_expression "iStack_1c = *(int *)PTR___stack_chk_guard_00075be8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00075be8" * (cast_expression "(int *)PTR___stack_chk_guard_00075be8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" ( (pointer_expression "*(code *)PTR___errno_location_00075ac4" * (cast_expression "(code *)PTR___errno_location_00075ac4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_strtol_000759f8)(s,&end,10);" (assignment_expression "iVar2 = (*(code *)PTR_strtol_000759f8)(s,&end,10)" identifier = (call_expression "(*(code *)PTR_strtol_000759f8)(s,&end,10)" (parenthesized_expression "(*(code *)PTR_strtol_000759f8)" ( (pointer_expression "*(code *)PTR_strtol_000759f8" * (cast_expression "(code *)PTR_strtol_000759f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(s,&end,10)" ( identifier , (pointer_expression "&end" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 + 0x7fffffffU < 0xfffffffe) {\nLAB_00029894:\n    puVar5 = PTR_s_directory_000755b8;\n    if (*end != '\0') goto LAB_000298f8;\n    piVar6 = (int *)PTR_s_directory_000755b8;\n    arg = s;\n    if (s != end) {\n      if (iStack_1c == *(int *)puVar8) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }\n  else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,s);\n      goto LAB_00029894;\n    }\n    puVar5 = (undefined *)0x22;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,s);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar5 + -0x3d8,5);\n    arg = quotearg_n_style(0,style,end);\n    piStack_30 = (int *)quotearg_n_style(1,style,s);\n    piVar6 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,arg);\n  }" if (parenthesized_expression "(iVar2 + 0x7fffffffU < 0xfffffffe)" ( (binary_expression "iVar2 + 0x7fffffffU < 0xfffffffe" (binary_expression "iVar2 + 0x7fffffffU" identifier + number_literal) < number_literal) )) (compound_statement "{\nLAB_00029894:\n    puVar5 = PTR_s_directory_000755b8;\n    if (*end != '\0') goto LAB_000298f8;\n    piVar6 = (int *)PTR_s_directory_000755b8;\n    arg = s;\n    if (s != end) {\n      if (iStack_1c == *(int *)puVar8) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }" { (labeled_statement "LAB_00029894:\n    puVar5 = PTR_s_directory_000755b8;" statement_identifier : (expression_statement "puVar5 = PTR_s_directory_000755b8;" (assignment_expression "puVar5 = PTR_s_directory_000755b8" identifier = identifier) ;)) (if_statement "if (*end != '\0') goto LAB_000298f8;" if (parenthesized_expression "(*end != '\0')" ( (binary_expression "*end != '\0'" (pointer_expression "*end" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000298f8;" goto statement_identifier ;)) (expression_statement "piVar6 = (int *)PTR_s_directory_000755b8;" (assignment_expression "piVar6 = (int *)PTR_s_directory_000755b8" identifier = (cast_expression "(int *)PTR_s_directory_000755b8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "arg = s;" (assignment_expression "arg = s" identifier = identifier) ;) (if_statement "if (s != end) {\n      if (iStack_1c == *(int *)puVar8) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }" if (parenthesized_expression "(s != end)" ( (binary_expression "s != end" identifier != identifier) )) (compound_statement "{\n      if (iStack_1c == *(int *)puVar8) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }" { (if_statement "if (iStack_1c == *(int *)puVar8) {\n        return iVar2;\n      }" if (parenthesized_expression "(iStack_1c == *(int *)puVar8)" ( (binary_expression "iStack_1c == *(int *)puVar8" identifier == (pointer_expression "*(int *)puVar8" * (cast_expression "(int *)puVar8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n        return iVar2;\n      }" { (return_statement "return iVar2;" return identifier ;) })) (goto_statement "goto LAB_000298ec;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,s);\n      goto LAB_00029894;\n    }\n    puVar5 = (undefined *)0x22;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,s);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar5 + -0x3d8,5);\n    arg = quotearg_n_style(0,style,end);\n    piStack_30 = (int *)quotearg_n_style(1,style,s);\n    piVar6 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,arg);\n  }" else (compound_statement "{\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,s);\n      goto LAB_00029894;\n    }\n    puVar5 = (undefined *)0x22;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,s);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar5 + -0x3d8,5);\n    arg = quotearg_n_style(0,style,end);\n    piStack_30 = (int *)quotearg_n_style(1,style,s);\n    piVar6 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,arg);\n  }" { (if_statement "if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,s);\n      goto LAB_00029894;\n    }" if (parenthesized_expression "(*piVar1 != 0x22)" ( (binary_expression "*piVar1 != 0x22" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,s);\n      goto LAB_00029894;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,s);" (assignment_expression "iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,s)" identifier = (call_expression "(*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,s)" (parenthesized_expression "(*(code *)PTR_error_00075b3c)" ( (pointer_expression "*(code *)PTR_error_00075b3c" * (cast_expression "(code *)PTR_error_00075b3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,*piVar1,PTR_s_directory_000755b8 + -0x254,s)" ( number_literal , (pointer_expression "*piVar1" * identifier) , (binary_expression "PTR_s_directory_000755b8 + -0x254" identifier + number_literal) , identifier )))) ;) (goto_statement "goto LAB_00029894;" goto statement_identifier ;) })) (expression_statement "puVar5 = (undefined *)0x22;" (assignment_expression "puVar5 = (undefined *)0x22" identifier = (cast_expression "(undefined *)0x22" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,s);" (call_expression "(*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,s)" (parenthesized_expression "(*(code *)PTR_error_00075b3c)" ( (pointer_expression "*(code *)PTR_error_00075b3c" * (cast_expression "(code *)PTR_error_00075b3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x22,PTR_s_directory_000755b8 + -0x254,s)" ( number_literal , number_literal , (binary_expression "PTR_s_directory_000755b8 + -0x254" identifier + number_literal) , identifier ))) ;) (labeled_statement "LAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();" statement_identifier : (expression_statement "(*(code *)PTR___stack_chk_fail_00075ba8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00075ba8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00075ba8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00075ba8" * (cast_expression "(code *)PTR___stack_chk_fail_00075ba8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;)) (labeled_statement "LAB_000298f8:\n    piVar1 = (int *)*piVar1;" statement_identifier : (expression_statement "piVar1 = (int *)*piVar1;" (assignment_expression "piVar1 = (int *)*piVar1" identifier = (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ;)) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar5 + -0x3d8,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar5 + -0x3d8,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00075bb0)(0,puVar5 + -0x3d8,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00075bb0)" ( (pointer_expression "*(code *)PTR_dcgettext_00075bb0" * (cast_expression "(code *)PTR_dcgettext_00075bb0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,puVar5 + -0x3d8,5)" ( number_literal , (binary_expression "puVar5 + -0x3d8" identifier + number_literal) , number_literal )))) ;) (expression_statement "arg = quotearg_n_style(0,style,end);" (assignment_expression "arg = quotearg_n_style(0,style,end)" identifier = (call_expression "quotearg_n_style(0,style,end)" identifier (argument_list "(0,style,end)" ( number_literal , identifier , identifier )))) ;) (expression_statement "piStack_30 = (int *)quotearg_n_style(1,style,s);" (assignment_expression "piStack_30 = (int *)quotearg_n_style(1,style,s)" identifier = (cast_expression "(int *)quotearg_n_style(1,style,s)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "quotearg_n_style(1,style,s)" identifier (argument_list "(1,style,s)" ( number_literal , identifier , identifier ))))) ;) (expression_statement "piVar6 = piVar1;" (assignment_expression "piVar6 = piVar1" identifier = identifier) ;) (expression_statement "(*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,arg);" (call_expression "(*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,arg)" (parenthesized_expression "(*(code *)PTR_error_00075b3c)" ( (pointer_expression "*(code *)PTR_error_00075b3c" * (cast_expression "(code *)PTR_error_00075b3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,piVar1,uVar3,arg)" ( number_literal , identifier , identifier , identifier ))) ;) }))) (expression_statement "pcVar7 = (char *)*piVar1;" (assignment_expression "pcVar7 = (char *)*piVar1" identifier = (cast_expression "(char *)*piVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar6 + -0xef,5);" (assignment_expression "iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar6 + -0xef,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00075bb0)(0,piVar6 + -0xef,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00075bb0)" ( (pointer_expression "*(code *)PTR_dcgettext_00075bb0" * (cast_expression "(code *)PTR_dcgettext_00075bb0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,piVar6 + -0xef,5)" ( number_literal , (binary_expression "piVar6 + -0xef" identifier + number_literal) , number_literal )))) ;) (expression_statement "piVar1 = (int *)quotearg_n_style(0,style,arg);" (assignment_expression "piVar1 = (int *)quotearg_n_style(0,style,arg)" identifier = (cast_expression "(int *)quotearg_n_style(0,style,arg)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "quotearg_n_style(0,style,arg)" identifier (argument_list "(0,style,arg)" ( number_literal , identifier , identifier ))))) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "puVar8 = PTR_error_00075b3c;" (assignment_expression "puVar8 = PTR_error_00075b3c" identifier = identifier) ;) (expression_statement "(*(code *)PTR_error_00075b3c)();" (call_expression "(*(code *)PTR_error_00075b3c)()" (parenthesized_expression "(*(code *)PTR_error_00075b3c)" ( (pointer_expression "*(code *)PTR_error_00075b3c" * (cast_expression "(code *)PTR_error_00075b3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = *piVar1 + *piStack_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar4 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar4 = iVar4 + iVar2 + 1;\n    if (*pcVar7 != '\0') {\n      pcVar9 = *(code **)(puVar8 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }\n  else {\n    *piVar1 = 0;\n    *piStack_30 = 0;\n    iVar4 = iVar4 + *piVar1;\n    if (*pcVar7 != '\0') {\n      pcVar9 = *(code **)(puVar8 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar9)(iVar4);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar4;\n        goto LAB_00029a1c;\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = *piVar1 + *piStack_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar4 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar4 = iVar4 + iVar2 + 1;\n    if (*pcVar7 != '\0') {\n      pcVar9 = *(code **)(puVar8 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }" { (expression_statement "iVar2 = *piVar1 + *piStack_30;" (assignment_expression "iVar2 = *piVar1 + *piStack_30" identifier = (binary_expression "*piVar1 + *piStack_30" (pointer_expression "*piVar1" * identifier) + (pointer_expression "*piStack_30" * identifier))) ;) (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (if_statement "if (*(char *)(iVar4 + iVar2) == '\0') {\n      return 0;\n    }" if (parenthesized_expression "(*(char *)(iVar4 + iVar2) == '\0')" ( (binary_expression "*(char *)(iVar4 + iVar2) == '\0'" (pointer_expression "*(char *)(iVar4 + iVar2)" * (cast_expression "(char *)(iVar4 + iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar2)" ( (binary_expression "iVar4 + iVar2" identifier + identifier) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*piVar1 = iVar2 + 1;" (assignment_expression "*piVar1 = iVar2 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar4 + iVar2 + 1;" (assignment_expression "iVar4 = iVar4 + iVar2 + 1" identifier = (binary_expression "iVar4 + iVar2 + 1" (binary_expression "iVar4 + iVar2" identifier + identifier) + number_literal)) ;) (if_statement "if (*pcVar7 != '\0') {\n      pcVar9 = *(code **)(puVar8 + 0x4c0b4);\n      goto LAB_00029a04;\n    }" if (parenthesized_expression "(*pcVar7 != '\0')" ( (binary_expression "*pcVar7 != '\0'" (pointer_expression "*pcVar7" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar9 = *(code **)(puVar8 + 0x4c0b4);\n      goto LAB_00029a04;\n    }" { (expression_statement "pcVar9 = *(code **)(puVar8 + 0x4c0b4);" (assignment_expression "pcVar9 = *(code **)(puVar8 + 0x4c0b4)" identifier = (pointer_expression "*(code **)(puVar8 + 0x4c0b4)" * (cast_expression "(code **)(puVar8 + 0x4c0b4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x4c0b4)" ( (binary_expression "puVar8 + 0x4c0b4" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00029a04;" goto statement_identifier ;) })) }) (else_clause "else {\n    *piVar1 = 0;\n    *piStack_30 = 0;\n    iVar4 = iVar4 + *piVar1;\n    if (*pcVar7 != '\0') {\n      pcVar9 = *(code **)(puVar8 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar9)(iVar4);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar4;\n        goto LAB_00029a1c;\n      }\n    }\n  }" else (compound_statement "{\n    *piVar1 = 0;\n    *piStack_30 = 0;\n    iVar4 = iVar4 + *piVar1;\n    if (*pcVar7 != '\0') {\n      pcVar9 = *(code **)(puVar8 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar9)(iVar4);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar4;\n        goto LAB_00029a1c;\n      }\n    }\n  }" { (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (expression_statement "*piStack_30 = 0;" (assignment_expression "*piStack_30 = 0" (pointer_expression "*piStack_30" * identifier) = number_literal) ;) (expression_statement "iVar4 = iVar4 + *piVar1;" (assignment_expression "iVar4 = iVar4 + *piVar1" identifier = (binary_expression "iVar4 + *piVar1" identifier + (pointer_expression "*piVar1" * identifier))) ;) (if_statement "if (*pcVar7 != '\0') {\n      pcVar9 = *(code **)(puVar8 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar9)(iVar4);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar4;\n        goto LAB_00029a1c;\n      }\n    }" if (parenthesized_expression "(*pcVar7 != '\0')" ( (binary_expression "*pcVar7 != '\0'" (pointer_expression "*pcVar7" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar9 = *(code **)(puVar8 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar9)(iVar4);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar4;\n        goto LAB_00029a1c;\n      }\n    }" { (expression_statement "pcVar9 = *(code **)(puVar8 + 0x4c0b4);" (assignment_expression "pcVar9 = *(code **)(puVar8 + 0x4c0b4)" identifier = (pointer_expression "*(code **)(puVar8 + 0x4c0b4)" * (cast_expression "(code **)(puVar8 + 0x4c0b4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x4c0b4)" ( (binary_expression "puVar8 + 0x4c0b4" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00029a04:\n      iVar2 = (*pcVar9)(iVar4);" statement_identifier : (expression_statement "iVar2 = (*pcVar9)(iVar4);" (assignment_expression "iVar2 = (*pcVar9)(iVar4)" identifier = (call_expression "(*pcVar9)(iVar4)" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "(iVar4)" ( identifier )))) ;)) (if_statement "if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar4;\n        goto LAB_00029a1c;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar2 = iVar2 - iVar4;\n        goto LAB_00029a1c;\n      }" { (expression_statement "iVar2 = iVar2 - iVar4;" (assignment_expression "iVar2 = iVar2 - iVar4" identifier = (binary_expression "iVar2 - iVar4" identifier - identifier)) ;) (goto_statement "goto LAB_00029a1c;" goto statement_identifier ;) })) })) }))) (expression_statement "iVar2 = (**(code **)(puVar8 + 0x4c134))(iVar4);" (assignment_expression "iVar2 = (**(code **)(puVar8 + 0x4c134))(iVar4)" identifier = (call_expression "(**(code **)(puVar8 + 0x4c134))(iVar4)" (parenthesized_expression "(**(code **)(puVar8 + 0x4c134))" ( (pointer_expression "**(code **)(puVar8 + 0x4c134)" * (pointer_expression "*(code **)(puVar8 + 0x4c134)" * (cast_expression "(code **)(puVar8 + 0x4c134)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar8 + 0x4c134)" ( (binary_expression "puVar8 + 0x4c134" identifier + number_literal) ))))) )) (argument_list "(iVar4)" ( identifier )))) ;) (labeled_statement "LAB_00029a1c:\n  *piStack_30 = iVar2;" statement_identifier : (expression_statement "*piStack_30 = iVar2;" (assignment_expression "*piStack_30 = iVar2" (pointer_expression "*piStack_30" * identifier) = identifier) ;)) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int safe_atoi(char *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  int *piVar7;\n  char *pcVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  int *local_30;\n  char *local_20;\n  int local_1c;\n  \n  puVar9 = PTR___stack_chk_guard_00075be8;\n  local_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n  *piVar1 = 0;\n  iVar2 = (*(code *)PTR_strtol_000759f8)(param_1,&local_20,10);\n  if (iVar2 + 0x7fffffffU < 0xfffffffe) {\nLAB_00029894:\n    puVar6 = PTR_s_directory_000755b8;\n    if (*local_20 != '\0') goto LAB_000298f8;\n    piVar7 = (int *)PTR_s_directory_000755b8;\n    pcVar4 = param_1;\n    if (param_1 != local_20) {\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }\n  else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }\n    puVar6 = &DAT_00000022;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);\n    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);\n    local_30 = (int *)quotearg_n_style(1,param_2,param_1);\n    piVar7 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);\n  }\n  pcVar8 = (char *)*piVar1;\n  iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5);\n  piVar1 = (int *)quotearg_n_style(0,param_2,pcVar4);\n  iVar5 = 1;\n  puVar9 = PTR_error_00075b3c;\n  (*(code *)PTR_error_00075b3c)();\n  if (iVar2 == 0) {\n    iVar2 = *piVar1 + *local_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar5 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar5 = iVar5 + iVar2 + 1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }\n  else {\n    *piVar1 = 0;\n    *local_30 = 0;\n    iVar5 = iVar5 + *piVar1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }\n  }\n  iVar2 = (**(code **)(puVar9 + 0x4c134))(iVar5);\nLAB_00029a1c:\n  *local_30 = iVar2;\n  return 1;\n}\n\n" (function_definition "int safe_atoi(char *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  int *piVar7;\n  char *pcVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  int *local_30;\n  char *local_20;\n  int local_1c;\n  \n  puVar9 = PTR___stack_chk_guard_00075be8;\n  local_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n  *piVar1 = 0;\n  iVar2 = (*(code *)PTR_strtol_000759f8)(param_1,&local_20,10);\n  if (iVar2 + 0x7fffffffU < 0xfffffffe) {\nLAB_00029894:\n    puVar6 = PTR_s_directory_000755b8;\n    if (*local_20 != '\0') goto LAB_000298f8;\n    piVar7 = (int *)PTR_s_directory_000755b8;\n    pcVar4 = param_1;\n    if (param_1 != local_20) {\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }\n  else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }\n    puVar6 = &DAT_00000022;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);\n    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);\n    local_30 = (int *)quotearg_n_style(1,param_2,param_1);\n    piVar7 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);\n  }\n  pcVar8 = (char *)*piVar1;\n  iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5);\n  piVar1 = (int *)quotearg_n_style(0,param_2,pcVar4);\n  iVar5 = 1;\n  puVar9 = PTR_error_00075b3c;\n  (*(code *)PTR_error_00075b3c)();\n  if (iVar2 == 0) {\n    iVar2 = *piVar1 + *local_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar5 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar5 = iVar5 + iVar2 + 1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }\n  else {\n    *piVar1 = 0;\n    *local_30 = 0;\n    iVar5 = iVar5 + *piVar1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }\n  }\n  iVar2 = (**(code **)(puVar9 + 0x4c134))(iVar5);\nLAB_00029a1c:\n  *local_30 = iVar2;\n  return 1;\n}" primitive_type (function_declarator "safe_atoi(char *param_1,undefined4 param_2)" identifier (parameter_list "(char *param_1,undefined4 param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  int *piVar7;\n  char *pcVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  int *local_30;\n  char *local_20;\n  int local_1c;\n  \n  puVar9 = PTR___stack_chk_guard_00075be8;\n  local_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n  *piVar1 = 0;\n  iVar2 = (*(code *)PTR_strtol_000759f8)(param_1,&local_20,10);\n  if (iVar2 + 0x7fffffffU < 0xfffffffe) {\nLAB_00029894:\n    puVar6 = PTR_s_directory_000755b8;\n    if (*local_20 != '\0') goto LAB_000298f8;\n    piVar7 = (int *)PTR_s_directory_000755b8;\n    pcVar4 = param_1;\n    if (param_1 != local_20) {\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }\n  else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }\n    puVar6 = &DAT_00000022;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);\n    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);\n    local_30 = (int *)quotearg_n_style(1,param_2,param_1);\n    piVar7 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);\n  }\n  pcVar8 = (char *)*piVar1;\n  iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5);\n  piVar1 = (int *)quotearg_n_style(0,param_2,pcVar4);\n  iVar5 = 1;\n  puVar9 = PTR_error_00075b3c;\n  (*(code *)PTR_error_00075b3c)();\n  if (iVar2 == 0) {\n    iVar2 = *piVar1 + *local_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar5 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar5 = iVar5 + iVar2 + 1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }\n  else {\n    *piVar1 = 0;\n    *local_30 = 0;\n    iVar5 = iVar5 + *piVar1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }\n  }\n  iVar2 = (**(code **)(puVar9 + 0x4c134))(iVar5);\nLAB_00029a1c:\n  *local_30 = iVar2;\n  return 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int *local_30;" primitive_type (pointer_declarator "*local_30" * identifier) ;) (declaration "char *local_20;" primitive_type (pointer_declarator "*local_20" * identifier) ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar9 = PTR___stack_chk_guard_00075be8;" (assignment_expression "puVar9 = PTR___stack_chk_guard_00075be8" identifier = identifier) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_00075be8;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_00075be8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00075be8" * (cast_expression "(int *)PTR___stack_chk_guard_00075be8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" ( (pointer_expression "*(code *)PTR___errno_location_00075ac4" * (cast_expression "(code *)PTR___errno_location_00075ac4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_strtol_000759f8)(param_1,&local_20,10);" (assignment_expression "iVar2 = (*(code *)PTR_strtol_000759f8)(param_1,&local_20,10)" identifier = (call_expression "(*(code *)PTR_strtol_000759f8)(param_1,&local_20,10)" (parenthesized_expression "(*(code *)PTR_strtol_000759f8)" ( (pointer_expression "*(code *)PTR_strtol_000759f8" * (cast_expression "(code *)PTR_strtol_000759f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,&local_20,10)" ( identifier , (pointer_expression "&local_20" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 + 0x7fffffffU < 0xfffffffe) {\nLAB_00029894:\n    puVar6 = PTR_s_directory_000755b8;\n    if (*local_20 != '\0') goto LAB_000298f8;\n    piVar7 = (int *)PTR_s_directory_000755b8;\n    pcVar4 = param_1;\n    if (param_1 != local_20) {\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }\n  else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }\n    puVar6 = &DAT_00000022;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);\n    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);\n    local_30 = (int *)quotearg_n_style(1,param_2,param_1);\n    piVar7 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);\n  }" if (parenthesized_expression "(iVar2 + 0x7fffffffU < 0xfffffffe)" ( (binary_expression "iVar2 + 0x7fffffffU < 0xfffffffe" (binary_expression "iVar2 + 0x7fffffffU" identifier + number_literal) < number_literal) )) (compound_statement "{\nLAB_00029894:\n    puVar6 = PTR_s_directory_000755b8;\n    if (*local_20 != '\0') goto LAB_000298f8;\n    piVar7 = (int *)PTR_s_directory_000755b8;\n    pcVar4 = param_1;\n    if (param_1 != local_20) {\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }" { (labeled_statement "LAB_00029894:\n    puVar6 = PTR_s_directory_000755b8;" statement_identifier : (expression_statement "puVar6 = PTR_s_directory_000755b8;" (assignment_expression "puVar6 = PTR_s_directory_000755b8" identifier = identifier) ;)) (if_statement "if (*local_20 != '\0') goto LAB_000298f8;" if (parenthesized_expression "(*local_20 != '\0')" ( (binary_expression "*local_20 != '\0'" (pointer_expression "*local_20" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000298f8;" goto statement_identifier ;)) (expression_statement "piVar7 = (int *)PTR_s_directory_000755b8;" (assignment_expression "piVar7 = (int *)PTR_s_directory_000755b8" identifier = (cast_expression "(int *)PTR_s_directory_000755b8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pcVar4 = param_1;" (assignment_expression "pcVar4 = param_1" identifier = identifier) ;) (if_statement "if (param_1 != local_20) {\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }" if (parenthesized_expression "(param_1 != local_20)" ( (binary_expression "param_1 != local_20" identifier != identifier) )) (compound_statement "{\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }" { (if_statement "if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }" if (parenthesized_expression "(local_1c == *(int *)puVar9)" ( (binary_expression "local_1c == *(int *)puVar9" identifier == (pointer_expression "*(int *)puVar9" * (cast_expression "(int *)puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n        return iVar2;\n      }" { (return_statement "return iVar2;" return identifier ;) })) (goto_statement "goto LAB_000298ec;" goto statement_identifier ;) })) }) (else_clause "else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }\n    puVar6 = &DAT_00000022;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);\n    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);\n    local_30 = (int *)quotearg_n_style(1,param_2,param_1);\n    piVar7 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);\n  }" else (compound_statement "{\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }\n    puVar6 = &DAT_00000022;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);\n    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);\n    local_30 = (int *)quotearg_n_style(1,param_2,param_1);\n    piVar7 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);\n  }" { (if_statement "if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }" if (parenthesized_expression "(*piVar1 != 0x22)" ( (binary_expression "*piVar1 != 0x22" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }" { (expression_statement "iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);" (assignment_expression "iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1)" identifier = (call_expression "(*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1)" (parenthesized_expression "(*(code *)PTR_error_00075b3c)" ( (pointer_expression "*(code *)PTR_error_00075b3c" * (cast_expression "(code *)PTR_error_00075b3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1)" ( number_literal , (pointer_expression "*piVar1" * identifier) , (binary_expression "PTR_s_directory_000755b8 + -0x254" identifier + number_literal) , identifier )))) ;) (goto_statement "goto LAB_00029894;" goto statement_identifier ;) })) (expression_statement "puVar6 = &DAT_00000022;" (assignment_expression "puVar6 = &DAT_00000022" identifier = (pointer_expression "&DAT_00000022" & identifier)) ;) (expression_statement "(*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);" (call_expression "(*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1)" (parenthesized_expression "(*(code *)PTR_error_00075b3c)" ( (pointer_expression "*(code *)PTR_error_00075b3c" * (cast_expression "(code *)PTR_error_00075b3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1)" ( number_literal , number_literal , (binary_expression "PTR_s_directory_000755b8 + -0x254" identifier + number_literal) , identifier ))) ;) (labeled_statement "LAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();" statement_identifier : (expression_statement "(*(code *)PTR___stack_chk_fail_00075ba8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00075ba8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00075ba8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00075ba8" * (cast_expression "(code *)PTR___stack_chk_fail_00075ba8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;)) (labeled_statement "LAB_000298f8:\n    piVar1 = (int *)*piVar1;" statement_identifier : (expression_statement "piVar1 = (int *)*piVar1;" (assignment_expression "piVar1 = (int *)*piVar1" identifier = (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ;)) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00075bb0)" ( (pointer_expression "*(code *)PTR_dcgettext_00075bb0" * (cast_expression "(code *)PTR_dcgettext_00075bb0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,puVar6 + -0x3d8,5)" ( number_literal , (binary_expression "puVar6 + -0x3d8" identifier + number_literal) , number_literal )))) ;) (expression_statement "pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);" (assignment_expression "pcVar4 = (char *)quotearg_n_style(0,param_2,local_20)" identifier = (cast_expression "(char *)quotearg_n_style(0,param_2,local_20)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "quotearg_n_style(0,param_2,local_20)" identifier (argument_list "(0,param_2,local_20)" ( number_literal , identifier , identifier ))))) ;) (expression_statement "local_30 = (int *)quotearg_n_style(1,param_2,param_1);" (assignment_expression "local_30 = (int *)quotearg_n_style(1,param_2,param_1)" identifier = (cast_expression "(int *)quotearg_n_style(1,param_2,param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "quotearg_n_style(1,param_2,param_1)" identifier (argument_list "(1,param_2,param_1)" ( number_literal , identifier , identifier ))))) ;) (expression_statement "piVar7 = piVar1;" (assignment_expression "piVar7 = piVar1" identifier = identifier) ;) (expression_statement "(*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);" (call_expression "(*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4)" (parenthesized_expression "(*(code *)PTR_error_00075b3c)" ( (pointer_expression "*(code *)PTR_error_00075b3c" * (cast_expression "(code *)PTR_error_00075b3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,piVar1,uVar3,pcVar4)" ( number_literal , identifier , identifier , identifier ))) ;) }))) (expression_statement "pcVar8 = (char *)*piVar1;" (assignment_expression "pcVar8 = (char *)*piVar1" identifier = (cast_expression "(char *)*piVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ;) (expression_statement "iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5);" (assignment_expression "iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00075bb0)" ( (pointer_expression "*(code *)PTR_dcgettext_00075bb0" * (cast_expression "(code *)PTR_dcgettext_00075bb0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,piVar7 + -0xef,5)" ( number_literal , (binary_expression "piVar7 + -0xef" identifier + number_literal) , number_literal )))) ;) (expression_statement "piVar1 = (int *)quotearg_n_style(0,param_2,pcVar4);" (assignment_expression "piVar1 = (int *)quotearg_n_style(0,param_2,pcVar4)" identifier = (cast_expression "(int *)quotearg_n_style(0,param_2,pcVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "quotearg_n_style(0,param_2,pcVar4)" identifier (argument_list "(0,param_2,pcVar4)" ( number_literal , identifier , identifier ))))) ;) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "puVar9 = PTR_error_00075b3c;" (assignment_expression "puVar9 = PTR_error_00075b3c" identifier = identifier) ;) (expression_statement "(*(code *)PTR_error_00075b3c)();" (call_expression "(*(code *)PTR_error_00075b3c)()" (parenthesized_expression "(*(code *)PTR_error_00075b3c)" ( (pointer_expression "*(code *)PTR_error_00075b3c" * (cast_expression "(code *)PTR_error_00075b3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = *piVar1 + *local_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar5 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar5 = iVar5 + iVar2 + 1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }\n  else {\n    *piVar1 = 0;\n    *local_30 = 0;\n    iVar5 = iVar5 + *piVar1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = *piVar1 + *local_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar5 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar5 = iVar5 + iVar2 + 1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }" { (expression_statement "iVar2 = *piVar1 + *local_30;" (assignment_expression "iVar2 = *piVar1 + *local_30" identifier = (binary_expression "*piVar1 + *local_30" (pointer_expression "*piVar1" * identifier) + (pointer_expression "*local_30" * identifier))) ;) (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (if_statement "if (*(char *)(iVar5 + iVar2) == '\0') {\n      return 0;\n    }" if (parenthesized_expression "(*(char *)(iVar5 + iVar2) == '\0')" ( (binary_expression "*(char *)(iVar5 + iVar2) == '\0'" (pointer_expression "*(char *)(iVar5 + iVar2)" * (cast_expression "(char *)(iVar5 + iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar2)" ( (binary_expression "iVar5 + iVar2" identifier + identifier) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*piVar1 = iVar2 + 1;" (assignment_expression "*piVar1 = iVar2 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar5 + iVar2 + 1;" (assignment_expression "iVar5 = iVar5 + iVar2 + 1" identifier = (binary_expression "iVar5 + iVar2 + 1" (binary_expression "iVar5 + iVar2" identifier + identifier) + number_literal)) ;) (if_statement "if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }" if (parenthesized_expression "(*pcVar8 != '\0')" ( (binary_expression "*pcVar8 != '\0'" (pointer_expression "*pcVar8" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }" { (expression_statement "pcVar10 = *(code **)(puVar9 + 0x4c0b4);" (assignment_expression "pcVar10 = *(code **)(puVar9 + 0x4c0b4)" identifier = (pointer_expression "*(code **)(puVar9 + 0x4c0b4)" * (cast_expression "(code **)(puVar9 + 0x4c0b4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x4c0b4)" ( (binary_expression "puVar9 + 0x4c0b4" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00029a04;" goto statement_identifier ;) })) }) (else_clause "else {\n    *piVar1 = 0;\n    *local_30 = 0;\n    iVar5 = iVar5 + *piVar1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }\n  }" else (compound_statement "{\n    *piVar1 = 0;\n    *local_30 = 0;\n    iVar5 = iVar5 + *piVar1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }\n  }" { (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (expression_statement "*local_30 = 0;" (assignment_expression "*local_30 = 0" (pointer_expression "*local_30" * identifier) = number_literal) ;) (expression_statement "iVar5 = iVar5 + *piVar1;" (assignment_expression "iVar5 = iVar5 + *piVar1" identifier = (binary_expression "iVar5 + *piVar1" identifier + (pointer_expression "*piVar1" * identifier))) ;) (if_statement "if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }" if (parenthesized_expression "(*pcVar8 != '\0')" ( (binary_expression "*pcVar8 != '\0'" (pointer_expression "*pcVar8" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }" { (expression_statement "pcVar10 = *(code **)(puVar9 + 0x4c0b4);" (assignment_expression "pcVar10 = *(code **)(puVar9 + 0x4c0b4)" identifier = (pointer_expression "*(code **)(puVar9 + 0x4c0b4)" * (cast_expression "(code **)(puVar9 + 0x4c0b4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x4c0b4)" ( (binary_expression "puVar9 + 0x4c0b4" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);" statement_identifier : (expression_statement "iVar2 = (*pcVar10)(iVar5);" (assignment_expression "iVar2 = (*pcVar10)(iVar5)" identifier = (call_expression "(*pcVar10)(iVar5)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(iVar5)" ( identifier )))) ;)) (if_statement "if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }" { (expression_statement "iVar2 = iVar2 - iVar5;" (assignment_expression "iVar2 = iVar2 - iVar5" identifier = (binary_expression "iVar2 - iVar5" identifier - identifier)) ;) (goto_statement "goto LAB_00029a1c;" goto statement_identifier ;) })) })) }))) (expression_statement "iVar2 = (**(code **)(puVar9 + 0x4c134))(iVar5);" (assignment_expression "iVar2 = (**(code **)(puVar9 + 0x4c134))(iVar5)" identifier = (call_expression "(**(code **)(puVar9 + 0x4c134))(iVar5)" (parenthesized_expression "(**(code **)(puVar9 + 0x4c134))" ( (pointer_expression "**(code **)(puVar9 + 0x4c134)" * (pointer_expression "*(code **)(puVar9 + 0x4c134)" * (cast_expression "(code **)(puVar9 + 0x4c134)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x4c134)" ( (binary_expression "puVar9 + 0x4c134" identifier + number_literal) ))))) )) (argument_list "(iVar5)" ( identifier )))) ;) (labeled_statement "LAB_00029a1c:\n  *local_30 = iVar2;" statement_identifier : (expression_statement "*local_30 = iVar2;" (assignment_expression "*local_30 = iVar2" (pointer_expression "*local_30" * identifier) = identifier) ;)) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = 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 (binary_expression IDENT + LIT) < LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (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 ;) })) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (pointer_expression * IDENT) , (binary_expression IDENT + LIT) , IDENT )))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , 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 ( LIT , IDENT , IDENT , IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 = (binary_expression (pointer_expression * IDENT) + (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - 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 ( IDENT )))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (return_statement return LIT ;) })))
(function_definition "int safe_atoi(char *param_1,undefined4 param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  int *piVar7;\n  char *pcVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  int *local_30;\n  char *local_20;\n  int local_1c;\n  \n  puVar9 = PTR___stack_chk_guard_00075be8;\n  local_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n  *piVar1 = 0;\n  iVar2 = (*(code *)PTR_strtol_000759f8)(param_1,&local_20,10);\n  if (iVar2 + 0x7fffffffU < 0xfffffffe) {\nLAB_00029894:\n    puVar6 = PTR_s_directory_000755b8;\n    if (*local_20 != '\0') goto LAB_000298f8;\n    piVar7 = (int *)PTR_s_directory_000755b8;\n    pcVar4 = param_1;\n    if (param_1 != local_20) {\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }\n  else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }\n    puVar6 = &DAT_00000022;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);\n    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);\n    local_30 = (int *)quotearg_n_style(1,param_2,param_1);\n    piVar7 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);\n  }\n  pcVar8 = (char *)*piVar1;\n  iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5);\n  piVar1 = (int *)quotearg_n_style(0,param_2,pcVar4);\n  iVar5 = 1;\n  puVar9 = PTR_error_00075b3c;\n  (*(code *)PTR_error_00075b3c)();\n  if (iVar2 == 0) {\n    iVar2 = *piVar1 + *local_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar5 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar5 = iVar5 + iVar2 + 1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }\n  else {\n    *piVar1 = 0;\n    *local_30 = 0;\n    iVar5 = iVar5 + *piVar1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }\n  }\n  iVar2 = (**(code **)(puVar9 + 0x4c134))(iVar5);\nLAB_00029a1c:\n  *local_30 = iVar2;\n  return 1;\n}" (primitive_type "int") (function_declarator "safe_atoi(char *param_1,undefined4 param_2)" (identifier "safe_atoi") (parameter_list "(char *param_1,undefined4 param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  int *piVar7;\n  char *pcVar8;\n  undefined *puVar9;\n  code *pcVar10;\n  int *local_30;\n  char *local_20;\n  int local_1c;\n  \n  puVar9 = PTR___stack_chk_guard_00075be8;\n  local_1c = *(int *)PTR___stack_chk_guard_00075be8;\n  piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();\n  *piVar1 = 0;\n  iVar2 = (*(code *)PTR_strtol_000759f8)(param_1,&local_20,10);\n  if (iVar2 + 0x7fffffffU < 0xfffffffe) {\nLAB_00029894:\n    puVar6 = PTR_s_directory_000755b8;\n    if (*local_20 != '\0') goto LAB_000298f8;\n    piVar7 = (int *)PTR_s_directory_000755b8;\n    pcVar4 = param_1;\n    if (param_1 != local_20) {\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }\n  else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }\n    puVar6 = &DAT_00000022;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);\n    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);\n    local_30 = (int *)quotearg_n_style(1,param_2,param_1);\n    piVar7 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);\n  }\n  pcVar8 = (char *)*piVar1;\n  iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5);\n  piVar1 = (int *)quotearg_n_style(0,param_2,pcVar4);\n  iVar5 = 1;\n  puVar9 = PTR_error_00075b3c;\n  (*(code *)PTR_error_00075b3c)();\n  if (iVar2 == 0) {\n    iVar2 = *piVar1 + *local_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar5 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar5 = iVar5 + iVar2 + 1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }\n  else {\n    *piVar1 = 0;\n    *local_30 = 0;\n    iVar5 = iVar5 + *piVar1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }\n  }\n  iVar2 = (**(code **)(puVar9 + 0x4c134))(iVar5);\nLAB_00029a1c:\n  *local_30 = iVar2;\n  return 1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "undefined *puVar9;" (type_identifier "undefined") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "code *pcVar10;" (type_identifier "code") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "int *local_30;" (primitive_type "int") (pointer_declarator "*local_30" (* "*") (identifier "local_30")) (; ";")) (declaration "char *local_20;" (primitive_type "char") (pointer_declarator "*local_20" (* "*") (identifier "local_20")) (; ";")) (declaration "int local_1c;" (primitive_type "int") (identifier "local_1c") (; ";")) (expression_statement "puVar9 = PTR___stack_chk_guard_00075be8;" (assignment_expression "puVar9 = PTR___stack_chk_guard_00075be8" (identifier "puVar9") (= "=") (identifier "PTR___stack_chk_guard_00075be8")) (; ";")) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_00075be8;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_00075be8" (identifier "local_1c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00075be8" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00075be8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00075be8")))) (; ";")) (expression_statement "piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)()" (identifier "piVar1") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_00075ac4)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00075ac4)()" (parenthesized_expression "(*(code *)PTR___errno_location_00075ac4)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00075ac4" (* "*") (cast_expression "(code *)PTR___errno_location_00075ac4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00075ac4"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_strtol_000759f8)(param_1,&local_20,10);" (assignment_expression "iVar2 = (*(code *)PTR_strtol_000759f8)(param_1,&local_20,10)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strtol_000759f8)(param_1,&local_20,10)" (parenthesized_expression "(*(code *)PTR_strtol_000759f8)" (( "(") (pointer_expression "*(code *)PTR_strtol_000759f8" (* "*") (cast_expression "(code *)PTR_strtol_000759f8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strtol_000759f8"))) () ")")) (argument_list "(param_1,&local_20,10)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_20" (& "&") (identifier "local_20")) (, ",") (number_literal "10") () ")")))) (; ";")) (if_statement "if (iVar2 + 0x7fffffffU < 0xfffffffe) {\nLAB_00029894:\n    puVar6 = PTR_s_directory_000755b8;\n    if (*local_20 != '\0') goto LAB_000298f8;\n    piVar7 = (int *)PTR_s_directory_000755b8;\n    pcVar4 = param_1;\n    if (param_1 != local_20) {\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }\n  else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }\n    puVar6 = &DAT_00000022;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);\n    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);\n    local_30 = (int *)quotearg_n_style(1,param_2,param_1);\n    piVar7 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);\n  }" (if "if") (parenthesized_expression "(iVar2 + 0x7fffffffU < 0xfffffffe)" (( "(") (binary_expression "iVar2 + 0x7fffffffU < 0xfffffffe" (binary_expression "iVar2 + 0x7fffffffU" (identifier "iVar2") (+ "+") (number_literal "0x7fffffffU")) (< "<") (number_literal "0xfffffffe")) () ")")) (compound_statement "{\nLAB_00029894:\n    puVar6 = PTR_s_directory_000755b8;\n    if (*local_20 != '\0') goto LAB_000298f8;\n    piVar7 = (int *)PTR_s_directory_000755b8;\n    pcVar4 = param_1;\n    if (param_1 != local_20) {\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }\n  }" ({ "{") (labeled_statement "LAB_00029894:\n    puVar6 = PTR_s_directory_000755b8;" (statement_identifier "LAB_00029894") (: ":") (expression_statement "puVar6 = PTR_s_directory_000755b8;" (assignment_expression "puVar6 = PTR_s_directory_000755b8" (identifier "puVar6") (= "=") (identifier "PTR_s_directory_000755b8")) (; ";"))) (if_statement "if (*local_20 != '\0') goto LAB_000298f8;" (if "if") (parenthesized_expression "(*local_20 != '\0')" (( "(") (binary_expression "*local_20 != '\0'" (pointer_expression "*local_20" (* "*") (identifier "local_20")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000298f8;" (goto "goto") (statement_identifier "LAB_000298f8") (; ";"))) (expression_statement "piVar7 = (int *)PTR_s_directory_000755b8;" (assignment_expression "piVar7 = (int *)PTR_s_directory_000755b8" (identifier "piVar7") (= "=") (cast_expression "(int *)PTR_s_directory_000755b8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_s_directory_000755b8"))) (; ";")) (expression_statement "pcVar4 = param_1;" (assignment_expression "pcVar4 = param_1" (identifier "pcVar4") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (param_1 != local_20) {\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }" (if "if") (parenthesized_expression "(param_1 != local_20)" (( "(") (binary_expression "param_1 != local_20" (identifier "param_1") (!= "!=") (identifier "local_20")) () ")")) (compound_statement "{\n      if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }\n      goto LAB_000298ec;\n    }" ({ "{") (if_statement "if (local_1c == *(int *)puVar9) {\n        return iVar2;\n      }" (if "if") (parenthesized_expression "(local_1c == *(int *)puVar9)" (( "(") (binary_expression "local_1c == *(int *)puVar9" (identifier "local_1c") (== "==") (pointer_expression "*(int *)puVar9" (* "*") (cast_expression "(int *)puVar9" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar9")))) () ")")) (compound_statement "{\n        return iVar2;\n      }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (goto_statement "goto LAB_000298ec;" (goto "goto") (statement_identifier "LAB_000298ec") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }\n    puVar6 = &DAT_00000022;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);\n    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);\n    local_30 = (int *)quotearg_n_style(1,param_2,param_1);\n    piVar7 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);\n  }" (else "else") (compound_statement "{\n    if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }\n    puVar6 = &DAT_00000022;\n    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);\nLAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();\nLAB_000298f8:\n    piVar1 = (int *)*piVar1;\n    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);\n    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);\n    local_30 = (int *)quotearg_n_style(1,param_2,param_1);\n    piVar7 = piVar1;\n    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);\n  }" ({ "{") (if_statement "if (*piVar1 != 0x22) {\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }" (if "if") (parenthesized_expression "(*piVar1 != 0x22)" (( "(") (binary_expression "*piVar1 != 0x22" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0x22")) () ")")) (compound_statement "{\n      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);\n      goto LAB_00029894;\n    }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);" (assignment_expression "iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1)" (parenthesized_expression "(*(code *)PTR_error_00075b3c)" (( "(") (pointer_expression "*(code *)PTR_error_00075b3c" (* "*") (cast_expression "(code *)PTR_error_00075b3c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_error_00075b3c"))) () ")")) (argument_list "(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1)" (( "(") (number_literal "1") (, ",") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (, ",") (binary_expression "PTR_s_directory_000755b8 + -0x254" (identifier "PTR_s_directory_000755b8") (+ "+") (number_literal "-0x254")) (, ",") (identifier "param_1") () ")")))) (; ";")) (goto_statement "goto LAB_00029894;" (goto "goto") (statement_identifier "LAB_00029894") (; ";")) (} "}"))) (expression_statement "puVar6 = &DAT_00000022;" (assignment_expression "puVar6 = &DAT_00000022" (identifier "puVar6") (= "=") (pointer_expression "&DAT_00000022" (& "&") (identifier "DAT_00000022"))) (; ";")) (expression_statement "(*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);" (call_expression "(*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1)" (parenthesized_expression "(*(code *)PTR_error_00075b3c)" (( "(") (pointer_expression "*(code *)PTR_error_00075b3c" (* "*") (cast_expression "(code *)PTR_error_00075b3c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_error_00075b3c"))) () ")")) (argument_list "(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1)" (( "(") (number_literal "1") (, ",") (number_literal "0x22") (, ",") (binary_expression "PTR_s_directory_000755b8 + -0x254" (identifier "PTR_s_directory_000755b8") (+ "+") (number_literal "-0x254")) (, ",") (identifier "param_1") () ")"))) (; ";")) (labeled_statement "LAB_000298ec:\n    (*(code *)PTR___stack_chk_fail_00075ba8)();" (statement_identifier "LAB_000298ec") (: ":") (expression_statement "(*(code *)PTR___stack_chk_fail_00075ba8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00075ba8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00075ba8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00075ba8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00075ba8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00075ba8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";"))) (labeled_statement "LAB_000298f8:\n    piVar1 = (int *)*piVar1;" (statement_identifier "LAB_000298f8") (: ":") (expression_statement "piVar1 = (int *)*piVar1;" (assignment_expression "piVar1 = (int *)*piVar1" (identifier "piVar1") (= "=") (cast_expression "(int *)*piVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")))) (; ";"))) (expression_statement "uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00075bb0)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_00075bb0" (* "*") (cast_expression "(code *)PTR_dcgettext_00075bb0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_00075bb0"))) () ")")) (argument_list "(0,puVar6 + -0x3d8,5)" (( "(") (number_literal "0") (, ",") (binary_expression "puVar6 + -0x3d8" (identifier "puVar6") (+ "+") (number_literal "-0x3d8")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);" (assignment_expression "pcVar4 = (char *)quotearg_n_style(0,param_2,local_20)" (identifier "pcVar4") (= "=") (cast_expression "(char *)quotearg_n_style(0,param_2,local_20)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "quotearg_n_style(0,param_2,local_20)" (identifier "quotearg_n_style") (argument_list "(0,param_2,local_20)" (( "(") (number_literal "0") (, ",") (identifier "param_2") (, ",") (identifier "local_20") () ")"))))) (; ";")) (expression_statement "local_30 = (int *)quotearg_n_style(1,param_2,param_1);" (assignment_expression "local_30 = (int *)quotearg_n_style(1,param_2,param_1)" (identifier "local_30") (= "=") (cast_expression "(int *)quotearg_n_style(1,param_2,param_1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "quotearg_n_style(1,param_2,param_1)" (identifier "quotearg_n_style") (argument_list "(1,param_2,param_1)" (( "(") (number_literal "1") (, ",") (identifier "param_2") (, ",") (identifier "param_1") () ")"))))) (; ";")) (expression_statement "piVar7 = piVar1;" (assignment_expression "piVar7 = piVar1" (identifier "piVar7") (= "=") (identifier "piVar1")) (; ";")) (expression_statement "(*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);" (call_expression "(*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4)" (parenthesized_expression "(*(code *)PTR_error_00075b3c)" (( "(") (pointer_expression "*(code *)PTR_error_00075b3c" (* "*") (cast_expression "(code *)PTR_error_00075b3c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_error_00075b3c"))) () ")")) (argument_list "(1,piVar1,uVar3,pcVar4)" (( "(") (number_literal "1") (, ",") (identifier "piVar1") (, ",") (identifier "uVar3") (, ",") (identifier "pcVar4") () ")"))) (; ";")) (} "}")))) (expression_statement "pcVar8 = (char *)*piVar1;" (assignment_expression "pcVar8 = (char *)*piVar1" (identifier "pcVar8") (= "=") (cast_expression "(char *)*piVar1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5);" (assignment_expression "iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_00075bb0)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_00075bb0" (* "*") (cast_expression "(code *)PTR_dcgettext_00075bb0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_00075bb0"))) () ")")) (argument_list "(0,piVar7 + -0xef,5)" (( "(") (number_literal "0") (, ",") (binary_expression "piVar7 + -0xef" (identifier "piVar7") (+ "+") (number_literal "-0xef")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "piVar1 = (int *)quotearg_n_style(0,param_2,pcVar4);" (assignment_expression "piVar1 = (int *)quotearg_n_style(0,param_2,pcVar4)" (identifier "piVar1") (= "=") (cast_expression "(int *)quotearg_n_style(0,param_2,pcVar4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "quotearg_n_style(0,param_2,pcVar4)" (identifier "quotearg_n_style") (argument_list "(0,param_2,pcVar4)" (( "(") (number_literal "0") (, ",") (identifier "param_2") (, ",") (identifier "pcVar4") () ")"))))) (; ";")) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" (identifier "iVar5") (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar9 = PTR_error_00075b3c;" (assignment_expression "puVar9 = PTR_error_00075b3c" (identifier "puVar9") (= "=") (identifier "PTR_error_00075b3c")) (; ";")) (expression_statement "(*(code *)PTR_error_00075b3c)();" (call_expression "(*(code *)PTR_error_00075b3c)()" (parenthesized_expression "(*(code *)PTR_error_00075b3c)" (( "(") (pointer_expression "*(code *)PTR_error_00075b3c" (* "*") (cast_expression "(code *)PTR_error_00075b3c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_error_00075b3c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (iVar2 == 0) {\n    iVar2 = *piVar1 + *local_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar5 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar5 = iVar5 + iVar2 + 1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }\n  else {\n    *piVar1 = 0;\n    *local_30 = 0;\n    iVar5 = iVar5 + *piVar1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = *piVar1 + *local_30;\n    *piVar1 = iVar2;\n    if (*(char *)(iVar5 + iVar2) == '\0') {\n      return 0;\n    }\n    *piVar1 = iVar2 + 1;\n    iVar5 = iVar5 + iVar2 + 1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }\n  }" ({ "{") (expression_statement "iVar2 = *piVar1 + *local_30;" (assignment_expression "iVar2 = *piVar1 + *local_30" (identifier "iVar2") (= "=") (binary_expression "*piVar1 + *local_30" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (pointer_expression "*local_30" (* "*") (identifier "local_30")))) (; ";")) (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (*(char *)(iVar5 + iVar2) == '\0') {\n      return 0;\n    }" (if "if") (parenthesized_expression "(*(char *)(iVar5 + iVar2) == '\0')" (( "(") (binary_expression "*(char *)(iVar5 + iVar2) == '\0'" (pointer_expression "*(char *)(iVar5 + iVar2)" (* "*") (cast_expression "(char *)(iVar5 + iVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + iVar2)" (( "(") (binary_expression "iVar5 + iVar2" (identifier "iVar5") (+ "+") (identifier "iVar2")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*piVar1 = iVar2 + 1;" (assignment_expression "*piVar1 = iVar2 + 1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = iVar5 + iVar2 + 1;" (assignment_expression "iVar5 = iVar5 + iVar2 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + iVar2 + 1" (binary_expression "iVar5 + iVar2" (identifier "iVar5") (+ "+") (identifier "iVar2")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }" (if "if") (parenthesized_expression "(*pcVar8 != '\0')" (( "(") (binary_expression "*pcVar8 != '\0'" (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\n      goto LAB_00029a04;\n    }" ({ "{") (expression_statement "pcVar10 = *(code **)(puVar9 + 0x4c0b4);" (assignment_expression "pcVar10 = *(code **)(puVar9 + 0x4c0b4)" (identifier "pcVar10") (= "=") (pointer_expression "*(code **)(puVar9 + 0x4c0b4)" (* "*") (cast_expression "(code **)(puVar9 + 0x4c0b4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x4c0b4)" (( "(") (binary_expression "puVar9 + 0x4c0b4" (identifier "puVar9") (+ "+") (number_literal "0x4c0b4")) () ")"))))) (; ";")) (goto_statement "goto LAB_00029a04;" (goto "goto") (statement_identifier "LAB_00029a04") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    *piVar1 = 0;\n    *local_30 = 0;\n    iVar5 = iVar5 + *piVar1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    *piVar1 = 0;\n    *local_30 = 0;\n    iVar5 = iVar5 + *piVar1;\n    if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }\n  }" ({ "{") (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*local_30 = 0;" (assignment_expression "*local_30 = 0" (pointer_expression "*local_30" (* "*") (identifier "local_30")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = iVar5 + *piVar1;" (assignment_expression "iVar5 = iVar5 + *piVar1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + *piVar1" (identifier "iVar5") (+ "+") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")))) (; ";")) (if_statement "if (*pcVar8 != '\0') {\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }" (if "if") (parenthesized_expression "(*pcVar8 != '\0')" (( "(") (binary_expression "*pcVar8 != '\0'" (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      pcVar10 = *(code **)(puVar9 + 0x4c0b4);\nLAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);\n      if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }\n    }" ({ "{") (expression_statement "pcVar10 = *(code **)(puVar9 + 0x4c0b4);" (assignment_expression "pcVar10 = *(code **)(puVar9 + 0x4c0b4)" (identifier "pcVar10") (= "=") (pointer_expression "*(code **)(puVar9 + 0x4c0b4)" (* "*") (cast_expression "(code **)(puVar9 + 0x4c0b4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x4c0b4)" (( "(") (binary_expression "puVar9 + 0x4c0b4" (identifier "puVar9") (+ "+") (number_literal "0x4c0b4")) () ")"))))) (; ";")) (labeled_statement "LAB_00029a04:\n      iVar2 = (*pcVar10)(iVar5);" (statement_identifier "LAB_00029a04") (: ":") (expression_statement "iVar2 = (*pcVar10)(iVar5);" (assignment_expression "iVar2 = (*pcVar10)(iVar5)" (identifier "iVar2") (= "=") (call_expression "(*pcVar10)(iVar5)" (parenthesized_expression "(*pcVar10)" (( "(") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) () ")")) (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")")))) (; ";"))) (if_statement "if (iVar2 != 0) {\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar2 = iVar2 - iVar5;\n        goto LAB_00029a1c;\n      }" ({ "{") (expression_statement "iVar2 = iVar2 - iVar5;" (assignment_expression "iVar2 = iVar2 - iVar5" (identifier "iVar2") (= "=") (binary_expression "iVar2 - iVar5" (identifier "iVar2") (- "-") (identifier "iVar5"))) (; ";")) (goto_statement "goto LAB_00029a1c;" (goto "goto") (statement_identifier "LAB_00029a1c") (; ";")) (} "}"))) (} "}"))) (} "}")))) (expression_statement "iVar2 = (**(code **)(puVar9 + 0x4c134))(iVar5);" (assignment_expression "iVar2 = (**(code **)(puVar9 + 0x4c134))(iVar5)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(puVar9 + 0x4c134))(iVar5)" (parenthesized_expression "(**(code **)(puVar9 + 0x4c134))" (( "(") (pointer_expression "**(code **)(puVar9 + 0x4c134)" (* "*") (pointer_expression "*(code **)(puVar9 + 0x4c134)" (* "*") (cast_expression "(code **)(puVar9 + 0x4c134)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x4c134)" (( "(") (binary_expression "puVar9 + 0x4c134" (identifier "puVar9") (+ "+") (number_literal "0x4c134")) () ")"))))) () ")")) (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")")))) (; ";")) (labeled_statement "LAB_00029a1c:\n  *local_30 = iVar2;" (statement_identifier "LAB_00029a1c") (: ":") (expression_statement "*local_30 = iVar2;" (assignment_expression "*local_30 = iVar2" (pointer_expression "*local_30" (* "*") (identifier "local_30")) (= "=") (identifier "iVar2")) (; ";"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator 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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (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: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (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)))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (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 (number_literal) (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (labeled_statement label: (statement_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)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) (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 (number_literal) (binary_expression left: (identifier) right: (number_literal)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (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 (number_literal) (identifier) (identifier) (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (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 (number_literal) (binary_expression left: (identifier) right: (number_literal)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (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 (identifier))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (return_statement (number_literal)))))

int MASKED(char *param_1,undefined4 param_2)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  char *pcVar4;
  int iVar5;
  undefined *puVar6;
  int *piVar7;
  char *pcVar8;
  undefined *puVar9;
  code *pcVar10;
  int *local_30;
  char *local_20;
  int local_1c;
  
  puVar9 = PTR___stack_chk_guard_00075be8;
  local_1c = *(int *)PTR___stack_chk_guard_00075be8;
  piVar1 = (int *)(*(code *)PTR___errno_location_00075ac4)();
  *piVar1 = 0;
  iVar2 = (*(code *)PTR_strtol_000759f8)(param_1,&local_20,10);
  if (iVar2 + 0x7fffffffU < 0xfffffffe) {
LAB_00029894:
    puVar6 = PTR_s_directory_000755b8;
    if (*local_20 != '\0') goto LAB_000298f8;
    piVar7 = (int *)PTR_s_directory_000755b8;
    pcVar4 = param_1;
    if (param_1 != local_20) {
      if (local_1c == *(int *)puVar9) {
        return iVar2;
      }
      goto LAB_000298ec;
    }
  }
  else {
    if (*piVar1 != 0x22) {
      iVar2 = (*(code *)PTR_error_00075b3c)(1,*piVar1,PTR_s_directory_000755b8 + -0x254,param_1);
      goto LAB_00029894;
    }
    puVar6 = &DAT_00000022;
    (*(code *)PTR_error_00075b3c)(1,0x22,PTR_s_directory_000755b8 + -0x254,param_1);
LAB_000298ec:
    (*(code *)PTR___stack_chk_fail_00075ba8)();
LAB_000298f8:
    piVar1 = (int *)*piVar1;
    uVar3 = (*(code *)PTR_dcgettext_00075bb0)(0,puVar6 + -0x3d8,5);
    pcVar4 = (char *)quotearg_n_style(0,param_2,local_20);
    local_30 = (int *)quotearg_n_style(1,param_2,param_1);
    piVar7 = piVar1;
    (*(code *)PTR_error_00075b3c)(1,piVar1,uVar3,pcVar4);
  }
  pcVar8 = (char *)*piVar1;
  iVar2 = (*(code *)PTR_dcgettext_00075bb0)(0,piVar7 + -0xef,5);
  piVar1 = (int *)quotearg_n_style(0,param_2,pcVar4);
  iVar5 = 1;
  puVar9 = PTR_error_00075b3c;
  (*(code *)PTR_error_00075b3c)();
  if (iVar2 == 0) {
    iVar2 = *piVar1 + *local_30;
    *piVar1 = iVar2;
    if (*(char *)(iVar5 + iVar2) == '\0') {
      return 0;
    }
    *piVar1 = iVar2 + 1;
    iVar5 = iVar5 + iVar2 + 1;
    if (*pcVar8 != '\0') {
      pcVar10 = *(code **)(puVar9 + 0x4c0b4);
      goto LAB_00029a04;
    }
  }
  else {
    *piVar1 = 0;
    *local_30 = 0;
    iVar5 = iVar5 + *piVar1;
    if (*pcVar8 != '\0') {
      pcVar10 = *(code **)(puVar9 + 0x4c0b4);
LAB_00029a04:
      iVar2 = (*pcVar10)(iVar5);
      if (iVar2 != 0) {
        iVar2 = iVar2 - iVar5;
        goto LAB_00029a1c;
      }
    }
  }
  iVar2 = (**(code **)(puVar9 + 0x4c134))(iVar5);
LAB_00029a1c:
  *local_30 = iVar2;
  return 1;
}

