
strtol_error xstrtol(char *s,char **ptr,int strtol_base,long *val,char *valid_suffixes)

{
  ulonglong uVar1;
  uint uVar2;
  bool bVar3;
  int *piVar4;
  uint uVar5;
  char **ppcVar6;
  int iVar7;
  char **ppcVar8;
  char **ppcVar9;
  strtol_error sVar10;
  char *pcVar11;
  int iVar12;
  char *t_ptr;
  long tmp;
  uint *local_24;
  
  local_24 = *(uint **)PTR___stack_chk_guard_00031344;
  if (0x24 < (uint)strtol_base) {
    sVar10 = (*(code *)PTR___assert_fail_00031260)
                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,
                        PTR_UINT_00031148 + 0x228);
    return sVar10;
  }
  if (ptr == (char **)0x0) {
    ptr = &t_ptr;
  }
  piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)();
  *piVar4 = 0;
  ppcVar9 = ptr;
  tmp = (*(code *)PTR_strtol_00031268)(s);
  pcVar11 = *ptr;
  if (pcVar11 == s) {
    sVar10 = LONGINT_INVALID;
    if (valid_suffixes == (char *)0x0) goto LAB_0001acd8;
    ppcVar9 = (char **)(int)*s;
    if (ppcVar9 == (char **)0x0) {
      sVar10 = LONGINT_INVALID;
      goto LAB_0001acd8;
    }
    iVar7 = (*(code *)PTR_strchr_000312e8)(valid_suffixes);
    if (iVar7 == 0) {
      sVar10 = LONGINT_INVALID;
      goto LAB_0001acd8;
    }
    tmp = 1;
    ppcVar6 = (char **)(int)*pcVar11;
    sVar10 = LONGINT_OK;
  }
  else {
    if (*piVar4 == 0) {
      sVar10 = LONGINT_OK;
    }
    else {
      if (*piVar4 != 0x22) {
        sVar10 = LONGINT_INVALID;
        goto LAB_0001acd8;
      }
      sVar10 = LONGINT_OVERFLOW;
    }
    if (valid_suffixes == (char *)0x0) {
      *val = tmp;
      goto LAB_0001acd8;
    }
    ppcVar9 = (char **)(int)*pcVar11;
    ppcVar6 = ppcVar9;
    if (ppcVar9 == (char **)0x0) {
      *val = tmp;
      goto LAB_0001acd8;
    }
  }
  ppcVar9 = ppcVar6;
  iVar7 = (*(code *)PTR_strchr_000312e8)(valid_suffixes);
  if (iVar7 == 0) {
    *val = tmp;
    sVar10 = sVar10 | LONGINT_INVALID_SUFFIX_CHAR;
  }
  else {
    if (((int)ppcVar6 - 0x45U & 0xff) < 0x30) {
                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */
                    /* WARNING: Treating indirect jump as call */
      sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +
                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90)))();
      return sVar10;
    }
    ppcVar9 = (char **)0x400;
    if (((int)ppcVar6 - 0x42U & 0xff) < 0x36) {
                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */
                    /* WARNING: Treating indirect jump as call */
      sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +
                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150)))();
      return sVar10;
    }
    *val = tmp;
    sVar10 = sVar10 | LONGINT_INVALID_SUFFIX_CHAR;
  }
LAB_0001acd8:
  if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {
    return sVar10;
  }
  (*(code *)PTR___stack_chk_fail_0003132c)();
  iVar7 = strtol_base + -1;
  if (strtol_base == 0) {
    return LONGINT_OK;
  }
  ppcVar6 = (char **)local_24[1];
  uVar5 = *local_24;
  sVar10 = LONGINT_OK;
  do {
    bVar3 = false;
    if (uVar5 == 0) {
      ppcVar8 = ppcVar6;
      uVar2 = (int)ppcVar9 >> 0x1f;
      if ((int)ppcVar9 < 0) {
LAB_0001b0b8:
        if ((int)(ZEXT48(ppcVar8) * (ulonglong)uVar2 + (ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)
                 >> 0x20) != 0) goto LAB_0001b134;
      }
    }
    else {
      ppcVar8 = ppcVar9;
      uVar2 = uVar5;
      if (-1 < (int)ppcVar9) goto LAB_0001b0b8;
LAB_0001b134:
      bVar3 = true;
    }
    iVar12 = ((int)ppcVar9 >> 0x1f) * (int)ppcVar6;
    if (bVar3) {
      ppcVar6 = (char **)0xffffffff;
      uVar5 = 0xffffffff;
    }
    else {
      uVar1 = ZEXT48(ppcVar6);
      ppcVar6 = (char **)(uVar1 * ZEXT48(ppcVar9));
      uVar5 = iVar12 + (int)ppcVar9 * uVar5 + (int)(uVar1 * ZEXT48(ppcVar9) >> 0x20);
    }
    iVar7 = iVar7 + -1;
    sVar10 = sVar10 | bVar3;
    if (iVar7 == -1) {
      local_24[1] = (uint)ppcVar6;
      *local_24 = uVar5;
      return sVar10;
    }
  } while( true );
}



uint xstrtol(char *param_1,undefined4 *param_2,uint param_3,undefined4 *param_4,int param_5)

{
  ulonglong uVar1;
  uint uVar2;
  bool bVar3;
  int *piVar4;
  uint uVar5;
  undefined4 *puVar6;
  int iVar7;
  undefined4 *puVar8;
  undefined4 *puVar9;
  uint uVar10;
  char *pcVar11;
  int iVar12;
  undefined4 uStack_2c;
  undefined4 local_28;
  uint *local_24;
  
  local_24 = *(uint **)PTR___stack_chk_guard_00031344;
  if (0x24 < param_3) {
    uVar10 = (*(code *)PTR___assert_fail_00031260)
                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,
                        PTR_UINT_00031148 + 0x228);
    return uVar10;
  }
  if (param_2 == (undefined4 *)0x0) {
    param_2 = &uStack_2c;
  }
  piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)();
  *piVar4 = 0;
  puVar9 = param_2;
  local_28 = (*(code *)PTR_strtol_00031268)(param_1);
  pcVar11 = (char *)*param_2;
  if (pcVar11 == param_1) {
    uVar10 = 4;
    if (param_5 == 0) goto LAB_0001acd8;
    puVar9 = (undefined4 *)(int)*param_1;
    if (puVar9 == (undefined4 *)0x0) {
      uVar10 = 4;
      goto LAB_0001acd8;
    }
    iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);
    if (iVar7 == 0) {
      uVar10 = 4;
      goto LAB_0001acd8;
    }
    local_28 = 1;
    puVar6 = (undefined4 *)(int)*pcVar11;
    uVar10 = 0;
  }
  else {
    if (*piVar4 == 0) {
      uVar10 = 0;
    }
    else {
      if (*piVar4 != 0x22) {
        uVar10 = 4;
        goto LAB_0001acd8;
      }
      uVar10 = 1;
    }
    if (param_5 == 0) {
      *param_4 = local_28;
      goto LAB_0001acd8;
    }
    puVar9 = (undefined4 *)(int)*pcVar11;
    puVar6 = puVar9;
    if (puVar9 == (undefined4 *)0x0) {
      *param_4 = local_28;
      goto LAB_0001acd8;
    }
  }
  puVar9 = puVar6;
  iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);
  if (iVar7 == 0) {
    *param_4 = local_28;
    uVar10 = uVar10 | 2;
  }
  else {
    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {
                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */
                    /* WARNING: Treating indirect jump as call */
      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +
                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();
      return uVar10;
    }
    puVar9 = (undefined4 *)0x400;
    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {
                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */
                    /* WARNING: Treating indirect jump as call */
      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +
                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();
      return uVar10;
    }
    *param_4 = local_28;
    uVar10 = uVar10 | 2;
  }
LAB_0001acd8:
  if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {
    return uVar10;
  }
  (*(code *)PTR___stack_chk_fail_0003132c)();
  iVar7 = param_3 - 1;
  if (param_3 == 0) {
    return 0;
  }
  puVar6 = (undefined4 *)local_24[1];
  uVar5 = *local_24;
  uVar10 = 0;
  do {
    bVar3 = false;
    if (uVar5 == 0) {
      puVar8 = puVar6;
      uVar2 = (int)puVar9 >> 0x1f;
      if ((int)puVar9 < 0) {
LAB_0001b0b8:
        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>
                 0x20) != 0) goto LAB_0001b134;
      }
    }
    else {
      puVar8 = puVar9;
      uVar2 = uVar5;
      if (-1 < (int)puVar9) goto LAB_0001b0b8;
LAB_0001b134:
      bVar3 = true;
    }
    iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;
    if (bVar3) {
      puVar6 = (undefined4 *)0xffffffff;
      uVar5 = 0xffffffff;
    }
    else {
      uVar1 = ZEXT48(puVar6);
      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));
      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);
    }
    iVar7 = iVar7 + -1;
    uVar10 = uVar10 | bVar3;
    if (iVar7 == -1) {
      local_24[1] = (uint)puVar6;
      *local_24 = uVar5;
      return uVar10;
    }
  } while( true );
}


lui gp,0x2
addiu gp,gp,-0x1a30
addu gp,gp,t9
addiu sp,sp,-0x48
sw ra,0x44(sp)
sw s6,0x40(sp)
sw s5,0x3c(sp)
sw s4,0x38(sp)
sw s3,0x34(sp)
sw s2,0x30(sp)
sw s1,0x2c(sp)
sw s0,0x28(sp)
sw gp,0x10(sp)
lw s6,0x58(sp)
lw v0,-0x7dcc(gp)
lw v0,0x0(v0)
sw v0,0x24(sp)
sltiu v0,a2,0x25
beq v0,zero,0x0001ac04
_lw t9,-0x7eb0(gp)
or s1,a0,zero
or s0,a1,zero
or s2,a2,zero
beq a1,zero,0x0001ac28
_or s3,a3,zero
lw t9,-0x7e44(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s5,v0,zero
sw zero,0x0(v0)
or a2,s2,zero
or a1,s0,zero
or a0,s1,zero
lw t9,-0x7ea8(gp)
jalr t9
_nop
lw gp,0x10(sp)
sw v0,0x20(sp)
lw s4,0x0(s0)
beq s4,s1,0x0001ac30
_nop
lw v1,0x0(s5)
beq v1,zero,0x0001acb8
_li a0,0x22
bne v1,a0,0x0001b058
_nop
b 0x0001acbc
_li s2,0x1
lw a3,-0x7fc8(gp)
addiu a3,a3,0x228
li a2,0x60
lw a1,-0x7fc8(gp)
addiu a1,a1,0x54
lw a0,-0x7fc8(gp)
addiu a0,a0,0x64
jalr t9
_nop
b 0x0001aba4
_addiu s0,sp,0x1c
beq s6,zero,0x0001acd8
_li s2,0x4
lb a1,0x0(s1)
beq a1,zero,0x0001b048
_or a0,s6,zero
lw t9,-0x7e28(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x0001b050
_li v0,0x1
sw v0,0x20(sp)
lb s1,0x0(s4)
or s2,zero,zero
or a1,s1,zero
or a0,s6,zero
lw t9,-0x7e28(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x0001ad1c
_addiu v0,s1,-0x45
andi v1,v0,0xff
sltiu v1,v1,0x30
beq v1,zero,0x0001addc
_andi v0,v0,0xff
sll v0,v0,0x2
lw v1,-0x7fc8(gp)
addiu v1,v1,0x90
addu v0,v1,v0
lw v0,0x0(v0)
addu v0,v0,gp
jr v0
_nop
or s2,zero,zero
beq s6,zero,0x0001ad14
_nop
lb s1,0x0(s4)
bne s1,zero,0x0001ac6c
_or a1,s1,zero
lw v0,0x20(sp)
sw v0,0x0(s3)
or v0,s2,zero
lw a0,0x24(sp)
lw v1,-0x7dcc(gp)
lw v1,0x0(v1)
bne a0,v1,0x0001b060
_lw ra,0x44(sp)
lw s6,0x40(sp)
lw s5,0x3c(sp)
lw s4,0x38(sp)
lw s3,0x34(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x48
b 0x0001acd8
_sw v0,0x0(s3)
lw v0,0x20(sp)
sw v0,0x0(s3)
b 0x0001acd8
_ori s2,s2,0x2
li a1,0x30
or a0,s6,zero
lw t9,-0x7e28(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x0001ade8
_li v0,0x44
lb a1,0x1(s4)
beq a1,v0,0x0001adf4
_li v0,0x69
beq a1,v0,0x0001adbc
_li v0,0x42
xor s4,a1,v0
li a0,0x2
li v1,0x1
movz v1,a0,s4
or s4,v1,zero
xor a1,a1,v0
li v1,0x3e8
li v0,0x400
movz v0,v1,a1
or a1,v0,zero
addiu s1,s1,-0x42
andi v0,s1,0xff
sltiu v0,v0,0x36
beq v0,zero,0x0001b010
_lw v0,-0x7fc8(gp)
andi s1,s1,0xff
sll s1,s1,0x2
addiu v0,v0,0x150
addu s1,v0,s1
lw v0,0x0(s1)
addu v0,v0,gp
jr v0
_nop
lb s4,0x2(s4)
xori s4,s4,0x42
li v1,0x1
li v0,0x3
movn v0,v1,s4
or s4,v0,zero
b 0x0001ad88
_li a1,0x400
li s4,0x1
b 0x0001ad88
_li a1,0x400
li s4,0x1
b 0x0001ad88
_li a1,0x400
li s4,0x2
b 0x0001ad88
_li a1,0x3e8
lw v1,0x20(sp)
lui v0,0xffc0
slt v0,v1,v0
bne v0,zero,0x0001ae30
_lui v0,0x8000
lui v0,0x40
slt v0,v1,v0
beq v0,zero,0x0001ae3c
_sll v1,v1,0x9
sw v1,0x20(sp)
b 0x0001b024
_or v0,zero,zero
sw v0,0x20(sp)
b 0x0001b024
_li v0,0x1
lui v0,0x7fff
ori v0,v0,0xffff
sw v0,0x20(sp)
b 0x0001b024
_li v0,0x1
lw v1,0x20(sp)
lui v0,0xffe0
slt v0,v1,v0
bne v0,zero,0x0001ae80
_lui v0,0x8000
lui v0,0x20
slt v0,v1,v0
beq v0,zero,0x0001ae8c
_sll v1,v1,0xa
sw v1,0x20(sp)
b 0x0001b024
_or v0,zero,zero
sw v0,0x20(sp)
b 0x0001b024
_li v0,0x1
lui v0,0x7fff
ori v0,v0,0xffff
sw v0,0x20(sp)
b 0x0001b024
_li v0,0x1
li a2,0x6
addiu a0,sp,0x20
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x5560
bal 0x0001aaa0
_nop
lw gp,0x10(sp)
b 0x0001b028
_or s2,s2,v0
li a2,0x3
addiu a0,sp,0x20
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x5560
bal 0x0001aaa0
_nop
lw gp,0x10(sp)
b 0x0001b028
_or s2,s2,v0
li a2,0x1
addiu a0,sp,0x20
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x5560
bal 0x0001aaa0
_nop
lw gp,0x10(sp)
b 0x0001b028
_or s2,s2,v0
li a2,0x2
addiu a0,sp,0x20
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x5560
bal 0x0001aaa0
_nop
lw gp,0x10(sp)
b 0x0001b028
_or s2,s2,v0
li a2,0x5
addiu a0,sp,0x20
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x5560
bal 0x0001aaa0
_nop
lw gp,0x10(sp)
b 0x0001b028
_or s2,s2,v0
li a2,0x4
addiu a0,sp,0x20
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x5560
bal 0x0001aaa0
_nop
lw gp,0x10(sp)
b 0x0001b028
_or s2,s2,v0
lw v1,0x20(sp)
lui v0,0xc000
slt v0,v1,v0
bne v0,zero,0x0001afa8
_lui v0,0x8000
lui v0,0x4000
slt v0,v1,v0
beq v0,zero,0x0001afb4
_sll v1,v1,0x1
sw v1,0x20(sp)
b 0x0001b024
_or v0,zero,zero
sw v0,0x20(sp)
b 0x0001b024
_li v0,0x1
lui v0,0x7fff
ori v0,v0,0xffff
sw v0,0x20(sp)
b 0x0001b024
_li v0,0x1
li a2,0x8
addiu a0,sp,0x20
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x5560
bal 0x0001aaa0
_nop
lw gp,0x10(sp)
b 0x0001b028
_or s2,s2,v0
li a2,0x7
addiu a0,sp,0x20
lw t9,-0x7fc8(gp)
addiu t9,t9,-0x5560
bal 0x0001aaa0
_nop
lw gp,0x10(sp)
b 0x0001b028
_or s2,s2,v0
lw v0,0x20(sp)
sw v0,0x0(s3)
b 0x0001acd8
_ori s2,s2,0x2
or v0,zero,zero
or s2,s2,v0
lw v0,0x0(s0)
addu s4,v0,s4
sw s4,0x0(s0)
lb v0,0x0(s4)
beq v0,zero,0x0001acd4
_lw v0,0x20(sp)
b 0x0001acd4
_ori s2,s2,0x2
b 0x0001acd8
_li s2,0x4
b 0x0001acd8
_li s2,0x4
b 0x0001acd8
_li s2,0x4
lw t9,-0x7de4(gp)
jalr t9
_nop
nop
(translation_unit "uint xstrtol(char *param_1,undefined4 *param_2,uint param_3,undefined4 *param_4,int param_5)\n\n{\n  ulonglong uVar1;\n  uint uVar2;\n  bool bVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  int iVar12;\n  undefined4 uStack_2c;\n  undefined4 local_28;\n  uint *local_24;\n  \n  local_24 = *(uint **)PTR___stack_chk_guard_00031344;\n  if (0x24 < param_3) {\n    uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return uVar10;\n  }\n  if (param_2 == (undefined4 *)0x0) {\n    param_2 = &uStack_2c;\n  }\n  piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)();\n  *piVar4 = 0;\n  puVar9 = param_2;\n  local_28 = (*(code *)PTR_strtol_00031268)(param_1);\n  pcVar11 = (char *)*param_2;\n  if (pcVar11 == param_1) {\n    uVar10 = 4;\n    if (param_5 == 0) goto LAB_0001acd8;\n    puVar9 = (undefined4 *)(int)*param_1;\n    if (puVar9 == (undefined4 *)0x0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n    if (iVar7 == 0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    local_28 = 1;\n    puVar6 = (undefined4 *)(int)*pcVar11;\n    uVar10 = 0;\n  }\n  else {\n    if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }\n    if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n    puVar9 = (undefined4 *)(int)*pcVar11;\n    puVar6 = puVar9;\n    if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n  }\n  puVar9 = puVar6;\n  iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n  if (iVar7 == 0) {\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\n  else {\n    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */\n                    /* WARNING: Treating indirect jump as call */\n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }\n    puVar9 = (undefined4 *)0x400;\n    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */\n                    /* WARNING: Treating indirect jump as call */\n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\nLAB_0001acd8:\n  if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return uVar10;\n  }\n  (*(code *)PTR___stack_chk_fail_0003132c)();\n  iVar7 = param_3 - 1;\n  if (param_3 == 0) {\n    return 0;\n  }\n  puVar6 = (undefined4 *)local_24[1];\n  uVar5 = *local_24;\n  uVar10 = 0;\n  do {\n    bVar3 = false;\n    if (uVar5 == 0) {\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;\n    if (bVar3) {\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    uVar10 = uVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }\n  } while( true );\n}\n\n" (function_definition "uint xstrtol(char *param_1,undefined4 *param_2,uint param_3,undefined4 *param_4,int param_5)\n\n{\n  ulonglong uVar1;\n  uint uVar2;\n  bool bVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  int iVar12;\n  undefined4 uStack_2c;\n  undefined4 local_28;\n  uint *local_24;\n  \n  local_24 = *(uint **)PTR___stack_chk_guard_00031344;\n  if (0x24 < param_3) {\n    uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return uVar10;\n  }\n  if (param_2 == (undefined4 *)0x0) {\n    param_2 = &uStack_2c;\n  }\n  piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)();\n  *piVar4 = 0;\n  puVar9 = param_2;\n  local_28 = (*(code *)PTR_strtol_00031268)(param_1);\n  pcVar11 = (char *)*param_2;\n  if (pcVar11 == param_1) {\n    uVar10 = 4;\n    if (param_5 == 0) goto LAB_0001acd8;\n    puVar9 = (undefined4 *)(int)*param_1;\n    if (puVar9 == (undefined4 *)0x0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n    if (iVar7 == 0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    local_28 = 1;\n    puVar6 = (undefined4 *)(int)*pcVar11;\n    uVar10 = 0;\n  }\n  else {\n    if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }\n    if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n    puVar9 = (undefined4 *)(int)*pcVar11;\n    puVar6 = puVar9;\n    if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n  }\n  puVar9 = puVar6;\n  iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n  if (iVar7 == 0) {\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\n  else {\n    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */\n                    /* WARNING: Treating indirect jump as call */\n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }\n    puVar9 = (undefined4 *)0x400;\n    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */\n                    /* WARNING: Treating indirect jump as call */\n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\nLAB_0001acd8:\n  if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return uVar10;\n  }\n  (*(code *)PTR___stack_chk_fail_0003132c)();\n  iVar7 = param_3 - 1;\n  if (param_3 == 0) {\n    return 0;\n  }\n  puVar6 = (undefined4 *)local_24[1];\n  uVar5 = *local_24;\n  uVar10 = 0;\n  do {\n    bVar3 = false;\n    if (uVar5 == 0) {\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;\n    if (bVar3) {\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    uVar10 = uVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }\n  } while( true );\n}" type_identifier (function_declarator "xstrtol(char *param_1,undefined4 *param_2,uint param_3,undefined4 *param_4,int param_5)" identifier (parameter_list "(char *param_1,undefined4 *param_2,uint param_3,undefined4 *param_4,int param_5)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  ulonglong uVar1;\n  uint uVar2;\n  bool bVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  int iVar12;\n  undefined4 uStack_2c;\n  undefined4 local_28;\n  uint *local_24;\n  \n  local_24 = *(uint **)PTR___stack_chk_guard_00031344;\n  if (0x24 < param_3) {\n    uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return uVar10;\n  }\n  if (param_2 == (undefined4 *)0x0) {\n    param_2 = &uStack_2c;\n  }\n  piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)();\n  *piVar4 = 0;\n  puVar9 = param_2;\n  local_28 = (*(code *)PTR_strtol_00031268)(param_1);\n  pcVar11 = (char *)*param_2;\n  if (pcVar11 == param_1) {\n    uVar10 = 4;\n    if (param_5 == 0) goto LAB_0001acd8;\n    puVar9 = (undefined4 *)(int)*param_1;\n    if (puVar9 == (undefined4 *)0x0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n    if (iVar7 == 0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    local_28 = 1;\n    puVar6 = (undefined4 *)(int)*pcVar11;\n    uVar10 = 0;\n  }\n  else {\n    if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }\n    if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n    puVar9 = (undefined4 *)(int)*pcVar11;\n    puVar6 = puVar9;\n    if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n  }\n  puVar9 = puVar6;\n  iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n  if (iVar7 == 0) {\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\n  else {\n    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */\n                    /* WARNING: Treating indirect jump as call */\n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }\n    puVar9 = (undefined4 *)0x400;\n    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */\n                    /* WARNING: Treating indirect jump as call */\n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\nLAB_0001acd8:\n  if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return uVar10;\n  }\n  (*(code *)PTR___stack_chk_fail_0003132c)();\n  iVar7 = param_3 - 1;\n  if (param_3 == 0) {\n    return 0;\n  }\n  puVar6 = (undefined4 *)local_24[1];\n  uVar5 = *local_24;\n  uVar10 = 0;\n  do {\n    bVar3 = false;\n    if (uVar5 == 0) {\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;\n    if (bVar3) {\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    uVar10 = uVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }\n  } while( true );\n}" { (declaration "ulonglong uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "undefined4 uStack_2c;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "uint *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (expression_statement "local_24 = *(uint **)PTR___stack_chk_guard_00031344;" (assignment_expression "local_24 = *(uint **)PTR___stack_chk_guard_00031344" identifier = (pointer_expression "*(uint **)PTR___stack_chk_guard_00031344" * (cast_expression "(uint **)PTR___stack_chk_guard_00031344" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (0x24 < param_3) {\n    uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return uVar10;\n  }" if (parenthesized_expression "(0x24 < param_3)" ( (binary_expression "0x24 < param_3" number_literal < identifier) )) (compound_statement "{\n    uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return uVar10;\n  }" { (expression_statement "uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);" (assignment_expression "uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228)" identifier = (call_expression "(*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228)" (parenthesized_expression "(*(code *)PTR___assert_fail_00031260)" ( (pointer_expression "*(code *)PTR___assert_fail_00031260" * (cast_expression "(code *)PTR___assert_fail_00031260" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228)" ( (binary_expression "PTR_UINT_00031148 + 100" identifier + number_literal) , (binary_expression "PTR_UINT_00031148 + 0x54" identifier + number_literal) , number_literal , (binary_expression "PTR_UINT_00031148 + 0x228" identifier + number_literal) )))) ;) (return_statement "return uVar10;" return identifier ;) })) (if_statement "if (param_2 == (undefined4 *)0x0) {\n    param_2 = &uStack_2c;\n  }" if (parenthesized_expression "(param_2 == (undefined4 *)0x0)" ( (binary_expression "param_2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_2 = &uStack_2c;\n  }" { (expression_statement "param_2 = &uStack_2c;" (assignment_expression "param_2 = &uStack_2c" identifier = (pointer_expression "&uStack_2c" & identifier)) ;) })) (expression_statement "piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)();" (assignment_expression "piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000312cc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000312cc)()" (parenthesized_expression "(*(code *)PTR___errno_location_000312cc)" ( (pointer_expression "*(code *)PTR___errno_location_000312cc" * (cast_expression "(code *)PTR___errno_location_000312cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*piVar4 = 0;" (assignment_expression "*piVar4 = 0" (pointer_expression "*piVar4" * identifier) = number_literal) ;) (expression_statement "puVar9 = param_2;" (assignment_expression "puVar9 = param_2" identifier = identifier) ;) (expression_statement "local_28 = (*(code *)PTR_strtol_00031268)(param_1);" (assignment_expression "local_28 = (*(code *)PTR_strtol_00031268)(param_1)" identifier = (call_expression "(*(code *)PTR_strtol_00031268)(param_1)" (parenthesized_expression "(*(code *)PTR_strtol_00031268)" ( (pointer_expression "*(code *)PTR_strtol_00031268" * (cast_expression "(code *)PTR_strtol_00031268" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "pcVar11 = (char *)*param_2;" (assignment_expression "pcVar11 = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (pcVar11 == param_1) {\n    uVar10 = 4;\n    if (param_5 == 0) goto LAB_0001acd8;\n    puVar9 = (undefined4 *)(int)*param_1;\n    if (puVar9 == (undefined4 *)0x0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n    if (iVar7 == 0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    local_28 = 1;\n    puVar6 = (undefined4 *)(int)*pcVar11;\n    uVar10 = 0;\n  }\n  else {\n    if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }\n    if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n    puVar9 = (undefined4 *)(int)*pcVar11;\n    puVar6 = puVar9;\n    if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n  }" if (parenthesized_expression "(pcVar11 == param_1)" ( (binary_expression "pcVar11 == param_1" identifier == identifier) )) (compound_statement "{\n    uVar10 = 4;\n    if (param_5 == 0) goto LAB_0001acd8;\n    puVar9 = (undefined4 *)(int)*param_1;\n    if (puVar9 == (undefined4 *)0x0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n    if (iVar7 == 0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    local_28 = 1;\n    puVar6 = (undefined4 *)(int)*pcVar11;\n    uVar10 = 0;\n  }" { (expression_statement "uVar10 = 4;" (assignment_expression "uVar10 = 4" identifier = number_literal) ;) (if_statement "if (param_5 == 0) goto LAB_0001acd8;" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001acd8;" goto statement_identifier ;)) (expression_statement "puVar9 = (undefined4 *)(int)*param_1;" (assignment_expression "puVar9 = (undefined4 *)(int)*param_1" identifier = (cast_expression "(undefined4 *)(int)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(int)*param_1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_1" * identifier)))) ;) (if_statement "if (puVar9 == (undefined4 *)0x0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }" if (parenthesized_expression "(puVar9 == (undefined4 *)0x0)" ( (binary_expression "puVar9 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }" { (expression_statement "uVar10 = 4;" (assignment_expression "uVar10 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_0001acd8;" goto statement_identifier ;) })) (expression_statement "iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);" (assignment_expression "iVar7 = (*(code *)PTR_strchr_000312e8)(param_5)" identifier = (call_expression "(*(code *)PTR_strchr_000312e8)(param_5)" (parenthesized_expression "(*(code *)PTR_strchr_000312e8)" ( (pointer_expression "*(code *)PTR_strchr_000312e8" * (cast_expression "(code *)PTR_strchr_000312e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_5)" ( identifier )))) ;) (if_statement "if (iVar7 == 0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }" { (expression_statement "uVar10 = 4;" (assignment_expression "uVar10 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_0001acd8;" goto statement_identifier ;) })) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" identifier = number_literal) ;) (expression_statement "puVar6 = (undefined4 *)(int)*pcVar11;" (assignment_expression "puVar6 = (undefined4 *)(int)*pcVar11" identifier = (cast_expression "(undefined4 *)(int)*pcVar11" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(int)*pcVar11" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar11" * identifier)))) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }\n    if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n    puVar9 = (undefined4 *)(int)*pcVar11;\n    puVar6 = puVar9;\n    if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n  }" else (compound_statement "{\n    if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }\n    if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n    puVar9 = (undefined4 *)(int)*pcVar11;\n    puVar6 = puVar9;\n    if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n  }" { (if_statement "if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }" if (parenthesized_expression "(*piVar4 == 0)" ( (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" * identifier) == number_literal) )) (compound_statement "{\n      uVar10 = 0;\n    }" { (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }" else (compound_statement "{\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }" { (if_statement "if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }" if (parenthesized_expression "(*piVar4 != 0x22)" ( (binary_expression "*piVar4 != 0x22" (pointer_expression "*piVar4" * identifier) != number_literal) )) (compound_statement "{\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }" { (expression_statement "uVar10 = 4;" (assignment_expression "uVar10 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_0001acd8;" goto statement_identifier ;) })) (expression_statement "uVar10 = 1;" (assignment_expression "uVar10 = 1" identifier = number_literal) ;) }))) (if_statement "if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (compound_statement "{\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }" { (expression_statement "*param_4 = local_28;" (assignment_expression "*param_4 = local_28" (pointer_expression "*param_4" * identifier) = identifier) ;) (goto_statement "goto LAB_0001acd8;" goto statement_identifier ;) })) (expression_statement "puVar9 = (undefined4 *)(int)*pcVar11;" (assignment_expression "puVar9 = (undefined4 *)(int)*pcVar11" identifier = (cast_expression "(undefined4 *)(int)*pcVar11" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(int)*pcVar11" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar11" * identifier)))) ;) (expression_statement "puVar6 = puVar9;" (assignment_expression "puVar6 = puVar9" identifier = identifier) ;) (if_statement "if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }" if (parenthesized_expression "(puVar9 == (undefined4 *)0x0)" ( (binary_expression "puVar9 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }" { (expression_statement "*param_4 = local_28;" (assignment_expression "*param_4 = local_28" (pointer_expression "*param_4" * identifier) = identifier) ;) (goto_statement "goto LAB_0001acd8;" goto statement_identifier ;) })) }))) (expression_statement "puVar9 = puVar6;" (assignment_expression "puVar9 = puVar6" identifier = identifier) ;) (expression_statement "iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);" (assignment_expression "iVar7 = (*(code *)PTR_strchr_000312e8)(param_5)" identifier = (call_expression "(*(code *)PTR_strchr_000312e8)(param_5)" (parenthesized_expression "(*(code *)PTR_strchr_000312e8)" ( (pointer_expression "*(code *)PTR_strchr_000312e8" * (cast_expression "(code *)PTR_strchr_000312e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_5)" ( identifier )))) ;) (if_statement "if (iVar7 == 0) {\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\n  else {\n    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */\n                    /* WARNING: Treating indirect jump as call */\n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }\n    puVar9 = (undefined4 *)0x400;\n    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */\n                    /* WARNING: Treating indirect jump as call */\n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }" { (expression_statement "*param_4 = local_28;" (assignment_expression "*param_4 = local_28" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "uVar10 = uVar10 | 2;" (assignment_expression "uVar10 = uVar10 | 2" identifier = (binary_expression "uVar10 | 2" identifier | number_literal)) ;) }) (else_clause "else {\n    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */\n                    /* WARNING: Treating indirect jump as call */\n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }\n    puVar9 = (undefined4 *)0x400;\n    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */\n                    /* WARNING: Treating indirect jump as call */\n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }" else (compound_statement "{\n    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */\n                    /* WARNING: Treating indirect jump as call */\n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }\n    puVar9 = (undefined4 *)0x400;\n    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */\n                    /* WARNING: Treating indirect jump as call */\n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }" { (if_statement "if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */\n                    /* WARNING: Treating indirect jump as call */\n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }" if (parenthesized_expression "(((int)puVar6 - 0x45U & 0xff) < 0x30)" ( (binary_expression "((int)puVar6 - 0x45U & 0xff) < 0x30" (parenthesized_expression "((int)puVar6 - 0x45U & 0xff)" ( (binary_expression "(int)puVar6 - 0x45U & 0xff" (binary_expression "(int)puVar6 - 0x45U" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) & number_literal) )) < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */\n                    /* WARNING: Treating indirect jump as call */\n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }" { comment comment (expression_statement "uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();" (assignment_expression "uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))()" identifier = (call_expression "(*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))()" (parenthesized_expression "(*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))" ( (pointer_expression "*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90))" * (cast_expression "(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90))" ( (binary_expression "&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)" (pointer_expression "&_gp_1" & identifier) + (pointer_expression "*(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)" * (cast_expression "(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)" ( (binary_expression "PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90" (binary_expression "PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4" identifier + (binary_expression "((int)puVar6 - 0x45U & 0xff) * 4" (parenthesized_expression "((int)puVar6 - 0x45U & 0xff)" ( (binary_expression "(int)puVar6 - 0x45U & 0xff" (binary_expression "(int)puVar6 - 0x45U" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) & number_literal) )) * number_literal)) + number_literal) ))))) )))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar10;" return identifier ;) })) (expression_statement "puVar9 = (undefined4 *)0x400;" (assignment_expression "puVar9 = (undefined4 *)0x400" identifier = (cast_expression "(undefined4 *)0x400" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */\n                    /* WARNING: Treating indirect jump as call */\n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }" if (parenthesized_expression "(((int)puVar6 - 0x42U & 0xff) < 0x36)" ( (binary_expression "((int)puVar6 - 0x42U & 0xff) < 0x36" (parenthesized_expression "((int)puVar6 - 0x42U & 0xff)" ( (binary_expression "(int)puVar6 - 0x42U & 0xff" (binary_expression "(int)puVar6 - 0x42U" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) & number_literal) )) < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */\n                    /* WARNING: Treating indirect jump as call */\n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }" { comment comment (expression_statement "uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();" (assignment_expression "uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))()" identifier = (call_expression "(*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))()" (parenthesized_expression "(*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))" ( (pointer_expression "*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150))" * (cast_expression "(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150))" ( (binary_expression "&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)" (pointer_expression "&_gp_1" & identifier) + (pointer_expression "*(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)" * (cast_expression "(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)" ( (binary_expression "PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150" (binary_expression "PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4" identifier + (binary_expression "((int)puVar6 - 0x42U & 0xff) * 4" (parenthesized_expression "((int)puVar6 - 0x42U & 0xff)" ( (binary_expression "(int)puVar6 - 0x42U & 0xff" (binary_expression "(int)puVar6 - 0x42U" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) & number_literal) )) * number_literal)) + number_literal) ))))) )))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar10;" return identifier ;) })) (expression_statement "*param_4 = local_28;" (assignment_expression "*param_4 = local_28" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "uVar10 = uVar10 | 2;" (assignment_expression "uVar10 = uVar10 | 2" identifier = (binary_expression "uVar10 | 2" identifier | number_literal)) ;) }))) (labeled_statement "LAB_0001acd8:\n  if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return uVar10;\n  }" statement_identifier : (if_statement "if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return uVar10;\n  }" if (parenthesized_expression "(local_24 == *(uint **)PTR___stack_chk_guard_00031344)" ( (binary_expression "local_24 == *(uint **)PTR___stack_chk_guard_00031344" identifier == (pointer_expression "*(uint **)PTR___stack_chk_guard_00031344" * (cast_expression "(uint **)PTR___stack_chk_guard_00031344" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return uVar10;\n  }" { (return_statement "return uVar10;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_0003132c)();" (call_expression "(*(code *)PTR___stack_chk_fail_0003132c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0003132c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0003132c" * (cast_expression "(code *)PTR___stack_chk_fail_0003132c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar7 = param_3 - 1;" (assignment_expression "iVar7 = param_3 - 1" identifier = (binary_expression "param_3 - 1" identifier - number_literal)) ;) (if_statement "if (param_3 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar6 = (undefined4 *)local_24[1];" (assignment_expression "puVar6 = (undefined4 *)local_24[1]" identifier = (cast_expression "(undefined4 *)local_24[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "local_24[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar5 = *local_24;" (assignment_expression "uVar5 = *local_24" identifier = (pointer_expression "*local_24" * identifier)) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (do_statement "do {\n    bVar3 = false;\n    if (uVar5 == 0) {\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;\n    if (bVar3) {\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    uVar10 = uVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }\n  } while( true );" do (compound_statement "{\n    bVar3 = false;\n    if (uVar5 == 0) {\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;\n    if (bVar3) {\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    uVar10 = uVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }\n  }" { (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) (if_statement "if (uVar5 == 0) {\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }" { (expression_statement "puVar8 = puVar6;" (assignment_expression "puVar8 = puVar6" identifier = identifier) ;) (expression_statement "uVar2 = (int)puVar9 >> 0x1f;" (assignment_expression "uVar2 = (int)puVar9 >> 0x1f" identifier = (binary_expression "(int)puVar9 >> 0x1f" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (if_statement "if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }" if (parenthesized_expression "((int)puVar9 < 0)" ( (binary_expression "(int)puVar9 < 0" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }" { (labeled_statement "LAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;" statement_identifier : (if_statement "if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;" if (parenthesized_expression "((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0)" ( (binary_expression "(int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0" (cast_expression "(int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20)" ( (binary_expression "ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20" (binary_expression "ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20)" (binary_expression "ZEXT48(puVar8) * (ulonglong)uVar2" (call_expression "ZEXT48(puVar8)" identifier (argument_list "(puVar8)" ( identifier ))) * (cast_expression "(ulonglong)uVar2" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) + (parenthesized_expression "(ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20)" ( (binary_expression "ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20" (binary_expression "ZEXT48(puVar6) * ZEXT48(puVar9)" (call_expression "ZEXT48(puVar6)" identifier (argument_list "(puVar6)" ( identifier ))) * (call_expression "ZEXT48(puVar9)" identifier (argument_list "(puVar9)" ( identifier )))) >> number_literal) ))) >> number_literal) ))) != number_literal) )) (goto_statement "goto LAB_0001b134;" goto statement_identifier ;))) })) }) (else_clause "else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }" else (compound_statement "{\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }" { (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" identifier = identifier) ;) (expression_statement "uVar2 = uVar5;" (assignment_expression "uVar2 = uVar5" identifier = identifier) ;) (if_statement "if (-1 < (int)puVar9) goto LAB_0001b0b8;" if (parenthesized_expression "(-1 < (int)puVar9)" ( (binary_expression "-1 < (int)puVar9" number_literal < (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0001b0b8;" goto statement_identifier ;)) (labeled_statement "LAB_0001b134:\n      bVar3 = true;" statement_identifier : (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;)) }))) (expression_statement "iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;" (assignment_expression "iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6" identifier = (binary_expression "((int)puVar9 >> 0x1f) * (int)puVar6" (parenthesized_expression "((int)puVar9 >> 0x1f)" ( (binary_expression "(int)puVar9 >> 0x1f" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) * (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (bVar3) {\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }" { (expression_statement "puVar6 = (undefined4 *)0xffffffff;" (assignment_expression "puVar6 = (undefined4 *)0xffffffff" identifier = (cast_expression "(undefined4 *)0xffffffff" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }" else (compound_statement "{\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }" { (expression_statement "uVar1 = ZEXT48(puVar6);" (assignment_expression "uVar1 = ZEXT48(puVar6)" identifier = (call_expression "ZEXT48(puVar6)" identifier (argument_list "(puVar6)" ( identifier )))) ;) (expression_statement "puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));" (assignment_expression "puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9))" identifier = (cast_expression "(undefined4 *)(uVar1 * ZEXT48(puVar9))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar1 * ZEXT48(puVar9))" ( (binary_expression "uVar1 * ZEXT48(puVar9)" identifier * (call_expression "ZEXT48(puVar9)" identifier (argument_list "(puVar9)" ( identifier )))) )))) ;) (expression_statement "uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);" (assignment_expression "uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20)" identifier = (binary_expression "iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20)" (binary_expression "iVar12 + (int)puVar9 * uVar5" identifier + (binary_expression "(int)puVar9 * uVar5" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) * identifier)) + (cast_expression "(int)(uVar1 * ZEXT48(puVar9) >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 * ZEXT48(puVar9) >> 0x20)" ( (binary_expression "uVar1 * ZEXT48(puVar9) >> 0x20" (binary_expression "uVar1 * ZEXT48(puVar9)" identifier * (call_expression "ZEXT48(puVar9)" identifier (argument_list "(puVar9)" ( identifier )))) >> number_literal) ))))) ;) }))) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "uVar10 = uVar10 | bVar3;" (assignment_expression "uVar10 = uVar10 | bVar3" identifier = (binary_expression "uVar10 | bVar3" identifier | identifier)) ;) (if_statement "if (iVar7 == -1) {\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }" if (parenthesized_expression "(iVar7 == -1)" ( (binary_expression "iVar7 == -1" identifier == number_literal) )) (compound_statement "{\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }" { (expression_statement "local_24[1] = (uint)puVar6;" (assignment_expression "local_24[1] = (uint)puVar6" (subscript_expression "local_24[1]" identifier [ number_literal ]) = (cast_expression "(uint)puVar6" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*local_24 = uVar5;" (assignment_expression "*local_24 = uVar5" (pointer_expression "*local_24" * identifier) = identifier) ;) (return_statement "return uVar10;" return identifier ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "strtol_error xstrtol(char *s,char **ptr,int strtol_base,long *val,char *valid_suffixes)\n\n{\n  ulonglong uVar1;\n  uint uVar2;\n  bool bVar3;\n  int *piVar4;\n  uint uVar5;\n  char **ppcVar6;\n  int iVar7;\n  char **ppcVar8;\n  char **ppcVar9;\n  strtol_error sVar10;\n  char *pcVar11;\n  int iVar12;\n  char *t_ptr;\n  long tmp;\n  uint *local_24;\n  \n  local_24 = *(uint **)PTR___stack_chk_guard_00031344;\n  if (0x24 < (uint)strtol_base) {\n    sVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return sVar10;\n  }\n  if (ptr == (char **)0x0) {\n    ptr = &t_ptr;\n  }\n  piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)();\n  *piVar4 = 0;\n  ppcVar9 = ptr;\n  tmp = (*(code *)PTR_strtol_00031268)(s);\n  pcVar11 = *ptr;\n  if (pcVar11 == s) {\n    sVar10 = LONGINT_INVALID;\n    if (valid_suffixes == (char *)0x0) goto LAB_0001acd8;\n    ppcVar9 = (char **)(int)*s;\n    if (ppcVar9 == (char **)0x0) {\n      sVar10 = LONGINT_INVALID;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(valid_suffixes);\n    if (iVar7 == 0) {\n      sVar10 = LONGINT_INVALID;\n      goto LAB_0001acd8;\n    }\n    tmp = 1;\n    ppcVar6 = (char **)(int)*pcVar11;\n    sVar10 = LONGINT_OK;\n  }\n  else {\n    if (*piVar4 == 0) {\n      sVar10 = LONGINT_OK;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        sVar10 = LONGINT_INVALID;\n        goto LAB_0001acd8;\n      }\n      sVar10 = LONGINT_OVERFLOW;\n    }\n    if (valid_suffixes == (char *)0x0) {\n      *val = tmp;\n      goto LAB_0001acd8;\n    }\n    ppcVar9 = (char **)(int)*pcVar11;\n    ppcVar6 = ppcVar9;\n    if (ppcVar9 == (char **)0x0) {\n      *val = tmp;\n      goto LAB_0001acd8;\n    }\n  }\n  ppcVar9 = ppcVar6;\n  iVar7 = (*(code *)PTR_strchr_000312e8)(valid_suffixes);\n  if (iVar7 == 0) {\n    *val = tmp;\n    sVar10 = sVar10 | LONGINT_INVALID_SUFFIX_CHAR;\n  }\n  else {\n    if (((int)ppcVar6 - 0x45U & 0xff) < 0x30) {\n                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */\n                    /* WARNING: Treating indirect jump as call */\n      sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return sVar10;\n    }\n    ppcVar9 = (char **)0x400;\n    if (((int)ppcVar6 - 0x42U & 0xff) < 0x36) {\n                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */\n                    /* WARNING: Treating indirect jump as call */\n      sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return sVar10;\n    }\n    *val = tmp;\n    sVar10 = sVar10 | LONGINT_INVALID_SUFFIX_CHAR;\n  }\nLAB_0001acd8:\n  if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return sVar10;\n  }\n  (*(code *)PTR___stack_chk_fail_0003132c)();\n  iVar7 = strtol_base + -1;\n  if (strtol_base == 0) {\n    return LONGINT_OK;\n  }\n  ppcVar6 = (char **)local_24[1];\n  uVar5 = *local_24;\n  sVar10 = LONGINT_OK;\n  do {\n    bVar3 = false;\n    if (uVar5 == 0) {\n      ppcVar8 = ppcVar6;\n      uVar2 = (int)ppcVar9 >> 0x1f;\n      if ((int)ppcVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(ppcVar8) * (ulonglong)uVar2 + (ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)\n                 >> 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      ppcVar8 = ppcVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)ppcVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)ppcVar9 >> 0x1f) * (int)ppcVar6;\n    if (bVar3) {\n      ppcVar6 = (char **)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(ppcVar6);\n      ppcVar6 = (char **)(uVar1 * ZEXT48(ppcVar9));\n      uVar5 = iVar12 + (int)ppcVar9 * uVar5 + (int)(uVar1 * ZEXT48(ppcVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    sVar10 = sVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)ppcVar6;\n      *local_24 = uVar5;\n      return sVar10;\n    }\n  } while( true );\n}\n\n" (function_definition "strtol_error xstrtol(char *s,char **ptr,int strtol_base,long *val,char *valid_suffixes)\n\n{\n  ulonglong uVar1;\n  uint uVar2;\n  bool bVar3;\n  int *piVar4;\n  uint uVar5;\n  char **ppcVar6;\n  int iVar7;\n  char **ppcVar8;\n  char **ppcVar9;\n  strtol_error sVar10;\n  char *pcVar11;\n  int iVar12;\n  char *t_ptr;\n  long tmp;\n  uint *local_24;\n  \n  local_24 = *(uint **)PTR___stack_chk_guard_00031344;\n  if (0x24 < (uint)strtol_base) {\n    sVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return sVar10;\n  }\n  if (ptr == (char **)0x0) {\n    ptr = &t_ptr;\n  }\n  piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)();\n  *piVar4 = 0;\n  ppcVar9 = ptr;\n  tmp = (*(code *)PTR_strtol_00031268)(s);\n  pcVar11 = *ptr;\n  if (pcVar11 == s) {\n    sVar10 = LONGINT_INVALID;\n    if (valid_suffixes == (char *)0x0) goto LAB_0001acd8;\n    ppcVar9 = (char **)(int)*s;\n    if (ppcVar9 == (char **)0x0) {\n      sVar10 = LONGINT_INVALID;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(valid_suffixes);\n    if (iVar7 == 0) {\n      sVar10 = LONGINT_INVALID;\n      goto LAB_0001acd8;\n    }\n    tmp = 1;\n    ppcVar6 = (char **)(int)*pcVar11;\n    sVar10 = LONGINT_OK;\n  }\n  else {\n    if (*piVar4 == 0) {\n      sVar10 = LONGINT_OK;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        sVar10 = LONGINT_INVALID;\n        goto LAB_0001acd8;\n      }\n      sVar10 = LONGINT_OVERFLOW;\n    }\n    if (valid_suffixes == (char *)0x0) {\n      *val = tmp;\n      goto LAB_0001acd8;\n    }\n    ppcVar9 = (char **)(int)*pcVar11;\n    ppcVar6 = ppcVar9;\n    if (ppcVar9 == (char **)0x0) {\n      *val = tmp;\n      goto LAB_0001acd8;\n    }\n  }\n  ppcVar9 = ppcVar6;\n  iVar7 = (*(code *)PTR_strchr_000312e8)(valid_suffixes);\n  if (iVar7 == 0) {\n    *val = tmp;\n    sVar10 = sVar10 | LONGINT_INVALID_SUFFIX_CHAR;\n  }\n  else {\n    if (((int)ppcVar6 - 0x45U & 0xff) < 0x30) {\n                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */\n                    /* WARNING: Treating indirect jump as call */\n      sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return sVar10;\n    }\n    ppcVar9 = (char **)0x400;\n    if (((int)ppcVar6 - 0x42U & 0xff) < 0x36) {\n                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */\n                    /* WARNING: Treating indirect jump as call */\n      sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return sVar10;\n    }\n    *val = tmp;\n    sVar10 = sVar10 | LONGINT_INVALID_SUFFIX_CHAR;\n  }\nLAB_0001acd8:\n  if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return sVar10;\n  }\n  (*(code *)PTR___stack_chk_fail_0003132c)();\n  iVar7 = strtol_base + -1;\n  if (strtol_base == 0) {\n    return LONGINT_OK;\n  }\n  ppcVar6 = (char **)local_24[1];\n  uVar5 = *local_24;\n  sVar10 = LONGINT_OK;\n  do {\n    bVar3 = false;\n    if (uVar5 == 0) {\n      ppcVar8 = ppcVar6;\n      uVar2 = (int)ppcVar9 >> 0x1f;\n      if ((int)ppcVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(ppcVar8) * (ulonglong)uVar2 + (ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)\n                 >> 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      ppcVar8 = ppcVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)ppcVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)ppcVar9 >> 0x1f) * (int)ppcVar6;\n    if (bVar3) {\n      ppcVar6 = (char **)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(ppcVar6);\n      ppcVar6 = (char **)(uVar1 * ZEXT48(ppcVar9));\n      uVar5 = iVar12 + (int)ppcVar9 * uVar5 + (int)(uVar1 * ZEXT48(ppcVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    sVar10 = sVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)ppcVar6;\n      *local_24 = uVar5;\n      return sVar10;\n    }\n  } while( true );\n}" type_identifier (function_declarator "xstrtol(char *s,char **ptr,int strtol_base,long *val,char *valid_suffixes)" identifier (parameter_list "(char *s,char **ptr,int strtol_base,long *val,char *valid_suffixes)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) , (parameter_declaration "char **ptr" primitive_type (pointer_declarator "**ptr" * (pointer_declarator "*ptr" * identifier))) , (parameter_declaration "int strtol_base" primitive_type identifier) , (parameter_declaration "long *val" (sized_type_specifier "long" long) (pointer_declarator "*val" * identifier)) , (parameter_declaration "char *valid_suffixes" primitive_type (pointer_declarator "*valid_suffixes" * identifier)) ))) (compound_statement "{\n  ulonglong uVar1;\n  uint uVar2;\n  bool bVar3;\n  int *piVar4;\n  uint uVar5;\n  char **ppcVar6;\n  int iVar7;\n  char **ppcVar8;\n  char **ppcVar9;\n  strtol_error sVar10;\n  char *pcVar11;\n  int iVar12;\n  char *t_ptr;\n  long tmp;\n  uint *local_24;\n  \n  local_24 = *(uint **)PTR___stack_chk_guard_00031344;\n  if (0x24 < (uint)strtol_base) {\n    sVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return sVar10;\n  }\n  if (ptr == (char **)0x0) {\n    ptr = &t_ptr;\n  }\n  piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)();\n  *piVar4 = 0;\n  ppcVar9 = ptr;\n  tmp = (*(code *)PTR_strtol_00031268)(s);\n  pcVar11 = *ptr;\n  if (pcVar11 == s) {\n    sVar10 = LONGINT_INVALID;\n    if (valid_suffixes == (char *)0x0) goto LAB_0001acd8;\n    ppcVar9 = (char **)(int)*s;\n    if (ppcVar9 == (char **)0x0) {\n      sVar10 = LONGINT_INVALID;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(valid_suffixes);\n    if (iVar7 == 0) {\n      sVar10 = LONGINT_INVALID;\n      goto LAB_0001acd8;\n    }\n    tmp = 1;\n    ppcVar6 = (char **)(int)*pcVar11;\n    sVar10 = LONGINT_OK;\n  }\n  else {\n    if (*piVar4 == 0) {\n      sVar10 = LONGINT_OK;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        sVar10 = LONGINT_INVALID;\n        goto LAB_0001acd8;\n      }\n      sVar10 = LONGINT_OVERFLOW;\n    }\n    if (valid_suffixes == (char *)0x0) {\n      *val = tmp;\n      goto LAB_0001acd8;\n    }\n    ppcVar9 = (char **)(int)*pcVar11;\n    ppcVar6 = ppcVar9;\n    if (ppcVar9 == (char **)0x0) {\n      *val = tmp;\n      goto LAB_0001acd8;\n    }\n  }\n  ppcVar9 = ppcVar6;\n  iVar7 = (*(code *)PTR_strchr_000312e8)(valid_suffixes);\n  if (iVar7 == 0) {\n    *val = tmp;\n    sVar10 = sVar10 | LONGINT_INVALID_SUFFIX_CHAR;\n  }\n  else {\n    if (((int)ppcVar6 - 0x45U & 0xff) < 0x30) {\n                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */\n                    /* WARNING: Treating indirect jump as call */\n      sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return sVar10;\n    }\n    ppcVar9 = (char **)0x400;\n    if (((int)ppcVar6 - 0x42U & 0xff) < 0x36) {\n                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */\n                    /* WARNING: Treating indirect jump as call */\n      sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return sVar10;\n    }\n    *val = tmp;\n    sVar10 = sVar10 | LONGINT_INVALID_SUFFIX_CHAR;\n  }\nLAB_0001acd8:\n  if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return sVar10;\n  }\n  (*(code *)PTR___stack_chk_fail_0003132c)();\n  iVar7 = strtol_base + -1;\n  if (strtol_base == 0) {\n    return LONGINT_OK;\n  }\n  ppcVar6 = (char **)local_24[1];\n  uVar5 = *local_24;\n  sVar10 = LONGINT_OK;\n  do {\n    bVar3 = false;\n    if (uVar5 == 0) {\n      ppcVar8 = ppcVar6;\n      uVar2 = (int)ppcVar9 >> 0x1f;\n      if ((int)ppcVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(ppcVar8) * (ulonglong)uVar2 + (ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)\n                 >> 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      ppcVar8 = ppcVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)ppcVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)ppcVar9 >> 0x1f) * (int)ppcVar6;\n    if (bVar3) {\n      ppcVar6 = (char **)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(ppcVar6);\n      ppcVar6 = (char **)(uVar1 * ZEXT48(ppcVar9));\n      uVar5 = iVar12 + (int)ppcVar9 * uVar5 + (int)(uVar1 * ZEXT48(ppcVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    sVar10 = sVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)ppcVar6;\n      *local_24 = uVar5;\n      return sVar10;\n    }\n  } while( true );\n}" { (declaration "ulonglong uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "char **ppcVar6;" primitive_type (pointer_declarator "**ppcVar6" * (pointer_declarator "*ppcVar6" * identifier)) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char **ppcVar8;" primitive_type (pointer_declarator "**ppcVar8" * (pointer_declarator "*ppcVar8" * identifier)) ;) (declaration "char **ppcVar9;" primitive_type (pointer_declarator "**ppcVar9" * (pointer_declarator "*ppcVar9" * identifier)) ;) (declaration "strtol_error sVar10;" type_identifier identifier ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "char *t_ptr;" primitive_type (pointer_declarator "*t_ptr" * identifier) ;) (declaration "long tmp;" (sized_type_specifier "long" long) identifier ;) (declaration "uint *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (expression_statement "local_24 = *(uint **)PTR___stack_chk_guard_00031344;" (assignment_expression "local_24 = *(uint **)PTR___stack_chk_guard_00031344" identifier = (pointer_expression "*(uint **)PTR___stack_chk_guard_00031344" * (cast_expression "(uint **)PTR___stack_chk_guard_00031344" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (0x24 < (uint)strtol_base) {\n    sVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return sVar10;\n  }" if (parenthesized_expression "(0x24 < (uint)strtol_base)" ( (binary_expression "0x24 < (uint)strtol_base" number_literal < (cast_expression "(uint)strtol_base" ( (type_descriptor "uint" type_identifier) ) identifier)) )) (compound_statement "{\n    sVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return sVar10;\n  }" { (expression_statement "sVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);" (assignment_expression "sVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228)" identifier = (call_expression "(*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228)" (parenthesized_expression "(*(code *)PTR___assert_fail_00031260)" ( (pointer_expression "*(code *)PTR___assert_fail_00031260" * (cast_expression "(code *)PTR___assert_fail_00031260" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228)" ( (binary_expression "PTR_UINT_00031148 + 100" identifier + number_literal) , (binary_expression "PTR_UINT_00031148 + 0x54" identifier + number_literal) , number_literal , (binary_expression "PTR_UINT_00031148 + 0x228" identifier + number_literal) )))) ;) (return_statement "return sVar10;" return identifier ;) })) (if_statement "if (ptr == (char **)0x0) {\n    ptr = &t_ptr;\n  }" if (parenthesized_expression "(ptr == (char **)0x0)" ( (binary_expression "ptr == (char **)0x0" identifier == (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    ptr = &t_ptr;\n  }" { (expression_statement "ptr = &t_ptr;" (assignment_expression "ptr = &t_ptr" identifier = (pointer_expression "&t_ptr" & identifier)) ;) })) (expression_statement "piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)();" (assignment_expression "piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000312cc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000312cc)()" (parenthesized_expression "(*(code *)PTR___errno_location_000312cc)" ( (pointer_expression "*(code *)PTR___errno_location_000312cc" * (cast_expression "(code *)PTR___errno_location_000312cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*piVar4 = 0;" (assignment_expression "*piVar4 = 0" (pointer_expression "*piVar4" * identifier) = number_literal) ;) (expression_statement "ppcVar9 = ptr;" (assignment_expression "ppcVar9 = ptr" identifier = identifier) ;) (expression_statement "tmp = (*(code *)PTR_strtol_00031268)(s);" (assignment_expression "tmp = (*(code *)PTR_strtol_00031268)(s)" identifier = (call_expression "(*(code *)PTR_strtol_00031268)(s)" (parenthesized_expression "(*(code *)PTR_strtol_00031268)" ( (pointer_expression "*(code *)PTR_strtol_00031268" * (cast_expression "(code *)PTR_strtol_00031268" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(s)" ( identifier )))) ;) (expression_statement "pcVar11 = *ptr;" (assignment_expression "pcVar11 = *ptr" identifier = (pointer_expression "*ptr" * identifier)) ;) (if_statement "if (pcVar11 == s) {\n    sVar10 = LONGINT_INVALID;\n    if (valid_suffixes == (char *)0x0) goto LAB_0001acd8;\n    ppcVar9 = (char **)(int)*s;\n    if (ppcVar9 == (char **)0x0) {\n      sVar10 = LONGINT_INVALID;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(valid_suffixes);\n    if (iVar7 == 0) {\n      sVar10 = LONGINT_INVALID;\n      goto LAB_0001acd8;\n    }\n    tmp = 1;\n    ppcVar6 = (char **)(int)*pcVar11;\n    sVar10 = LONGINT_OK;\n  }\n  else {\n    if (*piVar4 == 0) {\n      sVar10 = LONGINT_OK;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        sVar10 = LONGINT_INVALID;\n        goto LAB_0001acd8;\n      }\n      sVar10 = LONGINT_OVERFLOW;\n    }\n    if (valid_suffixes == (char *)0x0) {\n      *val = tmp;\n      goto LAB_0001acd8;\n    }\n    ppcVar9 = (char **)(int)*pcVar11;\n    ppcVar6 = ppcVar9;\n    if (ppcVar9 == (char **)0x0) {\n      *val = tmp;\n      goto LAB_0001acd8;\n    }\n  }" if (parenthesized_expression "(pcVar11 == s)" ( (binary_expression "pcVar11 == s" identifier == identifier) )) (compound_statement "{\n    sVar10 = LONGINT_INVALID;\n    if (valid_suffixes == (char *)0x0) goto LAB_0001acd8;\n    ppcVar9 = (char **)(int)*s;\n    if (ppcVar9 == (char **)0x0) {\n      sVar10 = LONGINT_INVALID;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(valid_suffixes);\n    if (iVar7 == 0) {\n      sVar10 = LONGINT_INVALID;\n      goto LAB_0001acd8;\n    }\n    tmp = 1;\n    ppcVar6 = (char **)(int)*pcVar11;\n    sVar10 = LONGINT_OK;\n  }" { (expression_statement "sVar10 = LONGINT_INVALID;" (assignment_expression "sVar10 = LONGINT_INVALID" identifier = identifier) ;) (if_statement "if (valid_suffixes == (char *)0x0) goto LAB_0001acd8;" if (parenthesized_expression "(valid_suffixes == (char *)0x0)" ( (binary_expression "valid_suffixes == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001acd8;" goto statement_identifier ;)) (expression_statement "ppcVar9 = (char **)(int)*s;" (assignment_expression "ppcVar9 = (char **)(int)*s" identifier = (cast_expression "(char **)(int)*s" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (cast_expression "(int)*s" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*s" * identifier)))) ;) (if_statement "if (ppcVar9 == (char **)0x0) {\n      sVar10 = LONGINT_INVALID;\n      goto LAB_0001acd8;\n    }" if (parenthesized_expression "(ppcVar9 == (char **)0x0)" ( (binary_expression "ppcVar9 == (char **)0x0" identifier == (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n      sVar10 = LONGINT_INVALID;\n      goto LAB_0001acd8;\n    }" { (expression_statement "sVar10 = LONGINT_INVALID;" (assignment_expression "sVar10 = LONGINT_INVALID" identifier = identifier) ;) (goto_statement "goto LAB_0001acd8;" goto statement_identifier ;) })) (expression_statement "iVar7 = (*(code *)PTR_strchr_000312e8)(valid_suffixes);" (assignment_expression "iVar7 = (*(code *)PTR_strchr_000312e8)(valid_suffixes)" identifier = (call_expression "(*(code *)PTR_strchr_000312e8)(valid_suffixes)" (parenthesized_expression "(*(code *)PTR_strchr_000312e8)" ( (pointer_expression "*(code *)PTR_strchr_000312e8" * (cast_expression "(code *)PTR_strchr_000312e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(valid_suffixes)" ( identifier )))) ;) (if_statement "if (iVar7 == 0) {\n      sVar10 = LONGINT_INVALID;\n      goto LAB_0001acd8;\n    }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n      sVar10 = LONGINT_INVALID;\n      goto LAB_0001acd8;\n    }" { (expression_statement "sVar10 = LONGINT_INVALID;" (assignment_expression "sVar10 = LONGINT_INVALID" identifier = identifier) ;) (goto_statement "goto LAB_0001acd8;" goto statement_identifier ;) })) (expression_statement "tmp = 1;" (assignment_expression "tmp = 1" identifier = number_literal) ;) (expression_statement "ppcVar6 = (char **)(int)*pcVar11;" (assignment_expression "ppcVar6 = (char **)(int)*pcVar11" identifier = (cast_expression "(char **)(int)*pcVar11" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (cast_expression "(int)*pcVar11" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar11" * identifier)))) ;) (expression_statement "sVar10 = LONGINT_OK;" (assignment_expression "sVar10 = LONGINT_OK" identifier = identifier) ;) }) (else_clause "else {\n    if (*piVar4 == 0) {\n      sVar10 = LONGINT_OK;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        sVar10 = LONGINT_INVALID;\n        goto LAB_0001acd8;\n      }\n      sVar10 = LONGINT_OVERFLOW;\n    }\n    if (valid_suffixes == (char *)0x0) {\n      *val = tmp;\n      goto LAB_0001acd8;\n    }\n    ppcVar9 = (char **)(int)*pcVar11;\n    ppcVar6 = ppcVar9;\n    if (ppcVar9 == (char **)0x0) {\n      *val = tmp;\n      goto LAB_0001acd8;\n    }\n  }" else (compound_statement "{\n    if (*piVar4 == 0) {\n      sVar10 = LONGINT_OK;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        sVar10 = LONGINT_INVALID;\n        goto LAB_0001acd8;\n      }\n      sVar10 = LONGINT_OVERFLOW;\n    }\n    if (valid_suffixes == (char *)0x0) {\n      *val = tmp;\n      goto LAB_0001acd8;\n    }\n    ppcVar9 = (char **)(int)*pcVar11;\n    ppcVar6 = ppcVar9;\n    if (ppcVar9 == (char **)0x0) {\n      *val = tmp;\n      goto LAB_0001acd8;\n    }\n  }" { (if_statement "if (*piVar4 == 0) {\n      sVar10 = LONGINT_OK;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        sVar10 = LONGINT_INVALID;\n        goto LAB_0001acd8;\n      }\n      sVar10 = LONGINT_OVERFLOW;\n    }" if (parenthesized_expression "(*piVar4 == 0)" ( (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" * identifier) == number_literal) )) (compound_statement "{\n      sVar10 = LONGINT_OK;\n    }" { (expression_statement "sVar10 = LONGINT_OK;" (assignment_expression "sVar10 = LONGINT_OK" identifier = identifier) ;) }) (else_clause "else {\n      if (*piVar4 != 0x22) {\n        sVar10 = LONGINT_INVALID;\n        goto LAB_0001acd8;\n      }\n      sVar10 = LONGINT_OVERFLOW;\n    }" else (compound_statement "{\n      if (*piVar4 != 0x22) {\n        sVar10 = LONGINT_INVALID;\n        goto LAB_0001acd8;\n      }\n      sVar10 = LONGINT_OVERFLOW;\n    }" { (if_statement "if (*piVar4 != 0x22) {\n        sVar10 = LONGINT_INVALID;\n        goto LAB_0001acd8;\n      }" if (parenthesized_expression "(*piVar4 != 0x22)" ( (binary_expression "*piVar4 != 0x22" (pointer_expression "*piVar4" * identifier) != number_literal) )) (compound_statement "{\n        sVar10 = LONGINT_INVALID;\n        goto LAB_0001acd8;\n      }" { (expression_statement "sVar10 = LONGINT_INVALID;" (assignment_expression "sVar10 = LONGINT_INVALID" identifier = identifier) ;) (goto_statement "goto LAB_0001acd8;" goto statement_identifier ;) })) (expression_statement "sVar10 = LONGINT_OVERFLOW;" (assignment_expression "sVar10 = LONGINT_OVERFLOW" identifier = identifier) ;) }))) (if_statement "if (valid_suffixes == (char *)0x0) {\n      *val = tmp;\n      goto LAB_0001acd8;\n    }" if (parenthesized_expression "(valid_suffixes == (char *)0x0)" ( (binary_expression "valid_suffixes == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *val = tmp;\n      goto LAB_0001acd8;\n    }" { (expression_statement "*val = tmp;" (assignment_expression "*val = tmp" (pointer_expression "*val" * identifier) = identifier) ;) (goto_statement "goto LAB_0001acd8;" goto statement_identifier ;) })) (expression_statement "ppcVar9 = (char **)(int)*pcVar11;" (assignment_expression "ppcVar9 = (char **)(int)*pcVar11" identifier = (cast_expression "(char **)(int)*pcVar11" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (cast_expression "(int)*pcVar11" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar11" * identifier)))) ;) (expression_statement "ppcVar6 = ppcVar9;" (assignment_expression "ppcVar6 = ppcVar9" identifier = identifier) ;) (if_statement "if (ppcVar9 == (char **)0x0) {\n      *val = tmp;\n      goto LAB_0001acd8;\n    }" if (parenthesized_expression "(ppcVar9 == (char **)0x0)" ( (binary_expression "ppcVar9 == (char **)0x0" identifier == (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n      *val = tmp;\n      goto LAB_0001acd8;\n    }" { (expression_statement "*val = tmp;" (assignment_expression "*val = tmp" (pointer_expression "*val" * identifier) = identifier) ;) (goto_statement "goto LAB_0001acd8;" goto statement_identifier ;) })) }))) (expression_statement "ppcVar9 = ppcVar6;" (assignment_expression "ppcVar9 = ppcVar6" identifier = identifier) ;) (expression_statement "iVar7 = (*(code *)PTR_strchr_000312e8)(valid_suffixes);" (assignment_expression "iVar7 = (*(code *)PTR_strchr_000312e8)(valid_suffixes)" identifier = (call_expression "(*(code *)PTR_strchr_000312e8)(valid_suffixes)" (parenthesized_expression "(*(code *)PTR_strchr_000312e8)" ( (pointer_expression "*(code *)PTR_strchr_000312e8" * (cast_expression "(code *)PTR_strchr_000312e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(valid_suffixes)" ( identifier )))) ;) (if_statement "if (iVar7 == 0) {\n    *val = tmp;\n    sVar10 = sVar10 | LONGINT_INVALID_SUFFIX_CHAR;\n  }\n  else {\n    if (((int)ppcVar6 - 0x45U & 0xff) < 0x30) {\n                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */\n                    /* WARNING: Treating indirect jump as call */\n      sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return sVar10;\n    }\n    ppcVar9 = (char **)0x400;\n    if (((int)ppcVar6 - 0x42U & 0xff) < 0x36) {\n                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */\n                    /* WARNING: Treating indirect jump as call */\n      sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return sVar10;\n    }\n    *val = tmp;\n    sVar10 = sVar10 | LONGINT_INVALID_SUFFIX_CHAR;\n  }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n    *val = tmp;\n    sVar10 = sVar10 | LONGINT_INVALID_SUFFIX_CHAR;\n  }" { (expression_statement "*val = tmp;" (assignment_expression "*val = tmp" (pointer_expression "*val" * identifier) = identifier) ;) (expression_statement "sVar10 = sVar10 | LONGINT_INVALID_SUFFIX_CHAR;" (assignment_expression "sVar10 = sVar10 | LONGINT_INVALID_SUFFIX_CHAR" identifier = (binary_expression "sVar10 | LONGINT_INVALID_SUFFIX_CHAR" identifier | identifier)) ;) }) (else_clause "else {\n    if (((int)ppcVar6 - 0x45U & 0xff) < 0x30) {\n                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */\n                    /* WARNING: Treating indirect jump as call */\n      sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return sVar10;\n    }\n    ppcVar9 = (char **)0x400;\n    if (((int)ppcVar6 - 0x42U & 0xff) < 0x36) {\n                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */\n                    /* WARNING: Treating indirect jump as call */\n      sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return sVar10;\n    }\n    *val = tmp;\n    sVar10 = sVar10 | LONGINT_INVALID_SUFFIX_CHAR;\n  }" else (compound_statement "{\n    if (((int)ppcVar6 - 0x45U & 0xff) < 0x30) {\n                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */\n                    /* WARNING: Treating indirect jump as call */\n      sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return sVar10;\n    }\n    ppcVar9 = (char **)0x400;\n    if (((int)ppcVar6 - 0x42U & 0xff) < 0x36) {\n                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */\n                    /* WARNING: Treating indirect jump as call */\n      sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return sVar10;\n    }\n    *val = tmp;\n    sVar10 = sVar10 | LONGINT_INVALID_SUFFIX_CHAR;\n  }" { (if_statement "if (((int)ppcVar6 - 0x45U & 0xff) < 0x30) {\n                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */\n                    /* WARNING: Treating indirect jump as call */\n      sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return sVar10;\n    }" if (parenthesized_expression "(((int)ppcVar6 - 0x45U & 0xff) < 0x30)" ( (binary_expression "((int)ppcVar6 - 0x45U & 0xff) < 0x30" (parenthesized_expression "((int)ppcVar6 - 0x45U & 0xff)" ( (binary_expression "(int)ppcVar6 - 0x45U & 0xff" (binary_expression "(int)ppcVar6 - 0x45U" (cast_expression "(int)ppcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) & number_literal) )) < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */\n                    /* WARNING: Treating indirect jump as call */\n      sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return sVar10;\n    }" { comment comment (expression_statement "sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90)))();" (assignment_expression "sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90)))()" identifier = (call_expression "(*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90)))()" (parenthesized_expression "(*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90)))" ( (pointer_expression "*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90))" * (cast_expression "(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90))" ( (binary_expression "&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90)" (pointer_expression "&_gp" & identifier) + (pointer_expression "*(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90)" * (cast_expression "(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90)" ( (binary_expression "PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90" (binary_expression "PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x45U & 0xff) * 4" identifier + (binary_expression "((int)ppcVar6 - 0x45U & 0xff) * 4" (parenthesized_expression "((int)ppcVar6 - 0x45U & 0xff)" ( (binary_expression "(int)ppcVar6 - 0x45U & 0xff" (binary_expression "(int)ppcVar6 - 0x45U" (cast_expression "(int)ppcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) & number_literal) )) * number_literal)) + number_literal) ))))) )))) )) (argument_list "()" ( )))) ;) (return_statement "return sVar10;" return identifier ;) })) (expression_statement "ppcVar9 = (char **)0x400;" (assignment_expression "ppcVar9 = (char **)0x400" identifier = (cast_expression "(char **)0x400" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (if_statement "if (((int)ppcVar6 - 0x42U & 0xff) < 0x36) {\n                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */\n                    /* WARNING: Treating indirect jump as call */\n      sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return sVar10;\n    }" if (parenthesized_expression "(((int)ppcVar6 - 0x42U & 0xff) < 0x36)" ( (binary_expression "((int)ppcVar6 - 0x42U & 0xff) < 0x36" (parenthesized_expression "((int)ppcVar6 - 0x42U & 0xff)" ( (binary_expression "(int)ppcVar6 - 0x42U & 0xff" (binary_expression "(int)ppcVar6 - 0x42U" (cast_expression "(int)ppcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) & number_literal) )) < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */\n                    /* WARNING: Treating indirect jump as call */\n      sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return sVar10;\n    }" { comment comment (expression_statement "sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150)))();" (assignment_expression "sVar10 = (*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150)))()" identifier = (call_expression "(*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150)))()" (parenthesized_expression "(*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150)))" ( (pointer_expression "*(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150))" * (cast_expression "(code *)(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150))" ( (binary_expression "&_gp + *(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150)" (pointer_expression "&_gp" & identifier) + (pointer_expression "*(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150)" * (cast_expression "(int *)(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150)" ( (binary_expression "PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150" (binary_expression "PTR_UINT_00031148 +\n                                         ((int)ppcVar6 - 0x42U & 0xff) * 4" identifier + (binary_expression "((int)ppcVar6 - 0x42U & 0xff) * 4" (parenthesized_expression "((int)ppcVar6 - 0x42U & 0xff)" ( (binary_expression "(int)ppcVar6 - 0x42U & 0xff" (binary_expression "(int)ppcVar6 - 0x42U" (cast_expression "(int)ppcVar6" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) & number_literal) )) * number_literal)) + number_literal) ))))) )))) )) (argument_list "()" ( )))) ;) (return_statement "return sVar10;" return identifier ;) })) (expression_statement "*val = tmp;" (assignment_expression "*val = tmp" (pointer_expression "*val" * identifier) = identifier) ;) (expression_statement "sVar10 = sVar10 | LONGINT_INVALID_SUFFIX_CHAR;" (assignment_expression "sVar10 = sVar10 | LONGINT_INVALID_SUFFIX_CHAR" identifier = (binary_expression "sVar10 | LONGINT_INVALID_SUFFIX_CHAR" identifier | identifier)) ;) }))) (labeled_statement "LAB_0001acd8:\n  if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return sVar10;\n  }" statement_identifier : (if_statement "if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return sVar10;\n  }" if (parenthesized_expression "(local_24 == *(uint **)PTR___stack_chk_guard_00031344)" ( (binary_expression "local_24 == *(uint **)PTR___stack_chk_guard_00031344" identifier == (pointer_expression "*(uint **)PTR___stack_chk_guard_00031344" * (cast_expression "(uint **)PTR___stack_chk_guard_00031344" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return sVar10;\n  }" { (return_statement "return sVar10;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_0003132c)();" (call_expression "(*(code *)PTR___stack_chk_fail_0003132c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0003132c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0003132c" * (cast_expression "(code *)PTR___stack_chk_fail_0003132c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar7 = strtol_base + -1;" (assignment_expression "iVar7 = strtol_base + -1" identifier = (binary_expression "strtol_base + -1" identifier + number_literal)) ;) (if_statement "if (strtol_base == 0) {\n    return LONGINT_OK;\n  }" if (parenthesized_expression "(strtol_base == 0)" ( (binary_expression "strtol_base == 0" identifier == number_literal) )) (compound_statement "{\n    return LONGINT_OK;\n  }" { (return_statement "return LONGINT_OK;" return identifier ;) })) (expression_statement "ppcVar6 = (char **)local_24[1];" (assignment_expression "ppcVar6 = (char **)local_24[1]" identifier = (cast_expression "(char **)local_24[1]" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "local_24[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar5 = *local_24;" (assignment_expression "uVar5 = *local_24" identifier = (pointer_expression "*local_24" * identifier)) ;) (expression_statement "sVar10 = LONGINT_OK;" (assignment_expression "sVar10 = LONGINT_OK" identifier = identifier) ;) (do_statement "do {\n    bVar3 = false;\n    if (uVar5 == 0) {\n      ppcVar8 = ppcVar6;\n      uVar2 = (int)ppcVar9 >> 0x1f;\n      if ((int)ppcVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(ppcVar8) * (ulonglong)uVar2 + (ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)\n                 >> 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      ppcVar8 = ppcVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)ppcVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)ppcVar9 >> 0x1f) * (int)ppcVar6;\n    if (bVar3) {\n      ppcVar6 = (char **)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(ppcVar6);\n      ppcVar6 = (char **)(uVar1 * ZEXT48(ppcVar9));\n      uVar5 = iVar12 + (int)ppcVar9 * uVar5 + (int)(uVar1 * ZEXT48(ppcVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    sVar10 = sVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)ppcVar6;\n      *local_24 = uVar5;\n      return sVar10;\n    }\n  } while( true );" do (compound_statement "{\n    bVar3 = false;\n    if (uVar5 == 0) {\n      ppcVar8 = ppcVar6;\n      uVar2 = (int)ppcVar9 >> 0x1f;\n      if ((int)ppcVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(ppcVar8) * (ulonglong)uVar2 + (ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)\n                 >> 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      ppcVar8 = ppcVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)ppcVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)ppcVar9 >> 0x1f) * (int)ppcVar6;\n    if (bVar3) {\n      ppcVar6 = (char **)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(ppcVar6);\n      ppcVar6 = (char **)(uVar1 * ZEXT48(ppcVar9));\n      uVar5 = iVar12 + (int)ppcVar9 * uVar5 + (int)(uVar1 * ZEXT48(ppcVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    sVar10 = sVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)ppcVar6;\n      *local_24 = uVar5;\n      return sVar10;\n    }\n  }" { (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) (if_statement "if (uVar5 == 0) {\n      ppcVar8 = ppcVar6;\n      uVar2 = (int)ppcVar9 >> 0x1f;\n      if ((int)ppcVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(ppcVar8) * (ulonglong)uVar2 + (ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)\n                 >> 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      ppcVar8 = ppcVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)ppcVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      ppcVar8 = ppcVar6;\n      uVar2 = (int)ppcVar9 >> 0x1f;\n      if ((int)ppcVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(ppcVar8) * (ulonglong)uVar2 + (ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)\n                 >> 0x20) != 0) goto LAB_0001b134;\n      }\n    }" { (expression_statement "ppcVar8 = ppcVar6;" (assignment_expression "ppcVar8 = ppcVar6" identifier = identifier) ;) (expression_statement "uVar2 = (int)ppcVar9 >> 0x1f;" (assignment_expression "uVar2 = (int)ppcVar9 >> 0x1f" identifier = (binary_expression "(int)ppcVar9 >> 0x1f" (cast_expression "(int)ppcVar9" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (if_statement "if ((int)ppcVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(ppcVar8) * (ulonglong)uVar2 + (ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)\n                 >> 0x20) != 0) goto LAB_0001b134;\n      }" if (parenthesized_expression "((int)ppcVar9 < 0)" ( (binary_expression "(int)ppcVar9 < 0" (cast_expression "(int)ppcVar9" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\nLAB_0001b0b8:\n        if ((int)(ZEXT48(ppcVar8) * (ulonglong)uVar2 + (ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)\n                 >> 0x20) != 0) goto LAB_0001b134;\n      }" { (labeled_statement "LAB_0001b0b8:\n        if ((int)(ZEXT48(ppcVar8) * (ulonglong)uVar2 + (ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)\n                 >> 0x20) != 0) goto LAB_0001b134;" statement_identifier : (if_statement "if ((int)(ZEXT48(ppcVar8) * (ulonglong)uVar2 + (ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)\n                 >> 0x20) != 0) goto LAB_0001b134;" if (parenthesized_expression "((int)(ZEXT48(ppcVar8) * (ulonglong)uVar2 + (ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)\n                 >> 0x20) != 0)" ( (binary_expression "(int)(ZEXT48(ppcVar8) * (ulonglong)uVar2 + (ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)\n                 >> 0x20) != 0" (cast_expression "(int)(ZEXT48(ppcVar8) * (ulonglong)uVar2 + (ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)\n                 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(ZEXT48(ppcVar8) * (ulonglong)uVar2 + (ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)\n                 >> 0x20)" ( (binary_expression "ZEXT48(ppcVar8) * (ulonglong)uVar2 + (ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)\n                 >> 0x20" (binary_expression "ZEXT48(ppcVar8) * (ulonglong)uVar2 + (ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)" (binary_expression "ZEXT48(ppcVar8) * (ulonglong)uVar2" (call_expression "ZEXT48(ppcVar8)" identifier (argument_list "(ppcVar8)" ( identifier ))) * (cast_expression "(ulonglong)uVar2" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) + (parenthesized_expression "(ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20)" ( (binary_expression "ZEXT48(ppcVar6) * ZEXT48(ppcVar9) >> 0x20" (binary_expression "ZEXT48(ppcVar6) * ZEXT48(ppcVar9)" (call_expression "ZEXT48(ppcVar6)" identifier (argument_list "(ppcVar6)" ( identifier ))) * (call_expression "ZEXT48(ppcVar9)" identifier (argument_list "(ppcVar9)" ( identifier )))) >> number_literal) ))) >> number_literal) ))) != number_literal) )) (goto_statement "goto LAB_0001b134;" goto statement_identifier ;))) })) }) (else_clause "else {\n      ppcVar8 = ppcVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)ppcVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }" else (compound_statement "{\n      ppcVar8 = ppcVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)ppcVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }" { (expression_statement "ppcVar8 = ppcVar9;" (assignment_expression "ppcVar8 = ppcVar9" identifier = identifier) ;) (expression_statement "uVar2 = uVar5;" (assignment_expression "uVar2 = uVar5" identifier = identifier) ;) (if_statement "if (-1 < (int)ppcVar9) goto LAB_0001b0b8;" if (parenthesized_expression "(-1 < (int)ppcVar9)" ( (binary_expression "-1 < (int)ppcVar9" number_literal < (cast_expression "(int)ppcVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0001b0b8;" goto statement_identifier ;)) (labeled_statement "LAB_0001b134:\n      bVar3 = true;" statement_identifier : (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;)) }))) (expression_statement "iVar12 = ((int)ppcVar9 >> 0x1f) * (int)ppcVar6;" (assignment_expression "iVar12 = ((int)ppcVar9 >> 0x1f) * (int)ppcVar6" identifier = (binary_expression "((int)ppcVar9 >> 0x1f) * (int)ppcVar6" (parenthesized_expression "((int)ppcVar9 >> 0x1f)" ( (binary_expression "(int)ppcVar9 >> 0x1f" (cast_expression "(int)ppcVar9" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) * (cast_expression "(int)ppcVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (bVar3) {\n      ppcVar6 = (char **)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(ppcVar6);\n      ppcVar6 = (char **)(uVar1 * ZEXT48(ppcVar9));\n      uVar5 = iVar12 + (int)ppcVar9 * uVar5 + (int)(uVar1 * ZEXT48(ppcVar9) >> 0x20);\n    }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n      ppcVar6 = (char **)0xffffffff;\n      uVar5 = 0xffffffff;\n    }" { (expression_statement "ppcVar6 = (char **)0xffffffff;" (assignment_expression "ppcVar6 = (char **)0xffffffff" identifier = (cast_expression "(char **)0xffffffff" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n      uVar1 = ZEXT48(ppcVar6);\n      ppcVar6 = (char **)(uVar1 * ZEXT48(ppcVar9));\n      uVar5 = iVar12 + (int)ppcVar9 * uVar5 + (int)(uVar1 * ZEXT48(ppcVar9) >> 0x20);\n    }" else (compound_statement "{\n      uVar1 = ZEXT48(ppcVar6);\n      ppcVar6 = (char **)(uVar1 * ZEXT48(ppcVar9));\n      uVar5 = iVar12 + (int)ppcVar9 * uVar5 + (int)(uVar1 * ZEXT48(ppcVar9) >> 0x20);\n    }" { (expression_statement "uVar1 = ZEXT48(ppcVar6);" (assignment_expression "uVar1 = ZEXT48(ppcVar6)" identifier = (call_expression "ZEXT48(ppcVar6)" identifier (argument_list "(ppcVar6)" ( identifier )))) ;) (expression_statement "ppcVar6 = (char **)(uVar1 * ZEXT48(ppcVar9));" (assignment_expression "ppcVar6 = (char **)(uVar1 * ZEXT48(ppcVar9))" identifier = (cast_expression "(char **)(uVar1 * ZEXT48(ppcVar9))" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(uVar1 * ZEXT48(ppcVar9))" ( (binary_expression "uVar1 * ZEXT48(ppcVar9)" identifier * (call_expression "ZEXT48(ppcVar9)" identifier (argument_list "(ppcVar9)" ( identifier )))) )))) ;) (expression_statement "uVar5 = iVar12 + (int)ppcVar9 * uVar5 + (int)(uVar1 * ZEXT48(ppcVar9) >> 0x20);" (assignment_expression "uVar5 = iVar12 + (int)ppcVar9 * uVar5 + (int)(uVar1 * ZEXT48(ppcVar9) >> 0x20)" identifier = (binary_expression "iVar12 + (int)ppcVar9 * uVar5 + (int)(uVar1 * ZEXT48(ppcVar9) >> 0x20)" (binary_expression "iVar12 + (int)ppcVar9 * uVar5" identifier + (binary_expression "(int)ppcVar9 * uVar5" (cast_expression "(int)ppcVar9" ( (type_descriptor "int" primitive_type) ) identifier) * identifier)) + (cast_expression "(int)(uVar1 * ZEXT48(ppcVar9) >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 * ZEXT48(ppcVar9) >> 0x20)" ( (binary_expression "uVar1 * ZEXT48(ppcVar9) >> 0x20" (binary_expression "uVar1 * ZEXT48(ppcVar9)" identifier * (call_expression "ZEXT48(ppcVar9)" identifier (argument_list "(ppcVar9)" ( identifier )))) >> number_literal) ))))) ;) }))) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "sVar10 = sVar10 | bVar3;" (assignment_expression "sVar10 = sVar10 | bVar3" identifier = (binary_expression "sVar10 | bVar3" identifier | identifier)) ;) (if_statement "if (iVar7 == -1) {\n      local_24[1] = (uint)ppcVar6;\n      *local_24 = uVar5;\n      return sVar10;\n    }" if (parenthesized_expression "(iVar7 == -1)" ( (binary_expression "iVar7 == -1" identifier == number_literal) )) (compound_statement "{\n      local_24[1] = (uint)ppcVar6;\n      *local_24 = uVar5;\n      return sVar10;\n    }" { (expression_statement "local_24[1] = (uint)ppcVar6;" (assignment_expression "local_24[1] = (uint)ppcVar6" (subscript_expression "local_24[1]" identifier [ number_literal ]) = (cast_expression "(uint)ppcVar6" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*local_24 = uVar5;" (assignment_expression "*local_24 = uVar5" (pointer_expression "*local_24" * identifier) = identifier) ;) (return_statement "return sVar10;" return identifier ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "uint xstrtol(char *param_1,undefined4 *param_2,uint param_3,undefined4 *param_4,int param_5)\n\n{\n  ulonglong uVar1;\n  uint uVar2;\n  bool bVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  int iVar12;\n  undefined4 uStack_2c;\n  undefined4 local_28;\n  uint *local_24;\n  \n  local_24 = *(uint **)PTR___stack_chk_guard_00031344;\n  if (0x24 < param_3) {\n    uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return uVar10;\n  }\n  if (param_2 == (undefined4 *)0x0) {\n    param_2 = &uStack_2c;\n  }\n  piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)();\n  *piVar4 = 0;\n  puVar9 = param_2;\n  local_28 = (*(code *)PTR_strtol_00031268)(param_1);\n  pcVar11 = (char *)*param_2;\n  if (pcVar11 == param_1) {\n    uVar10 = 4;\n    if (param_5 == 0) goto LAB_0001acd8;\n    puVar9 = (undefined4 *)(int)*param_1;\n    if (puVar9 == (undefined4 *)0x0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n    if (iVar7 == 0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    local_28 = 1;\n    puVar6 = (undefined4 *)(int)*pcVar11;\n    uVar10 = 0;\n  }\n  else {\n    if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }\n    if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n    puVar9 = (undefined4 *)(int)*pcVar11;\n    puVar6 = puVar9;\n    if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n  }\n  puVar9 = puVar6;\n  iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n  if (iVar7 == 0) {\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\n  else {\n    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }\n    puVar9 = (undefined4 *)0x400;\n    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\nLAB_0001acd8:\n  if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return uVar10;\n  }\n  (*(code *)PTR___stack_chk_fail_0003132c)();\n  iVar7 = param_3 - 1;\n  if (param_3 == 0) {\n    return 0;\n  }\n  puVar6 = (undefined4 *)local_24[1];\n  uVar5 = *local_24;\n  uVar10 = 0;\n  do {\n    bVar3 = false;\n    if (uVar5 == 0) {\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;\n    if (bVar3) {\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    uVar10 = uVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }\n  } while( true );\n}\n\n" (function_definition "uint xstrtol(char *param_1,undefined4 *param_2,uint param_3,undefined4 *param_4,int param_5)\n\n{\n  ulonglong uVar1;\n  uint uVar2;\n  bool bVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  int iVar12;\n  undefined4 uStack_2c;\n  undefined4 local_28;\n  uint *local_24;\n  \n  local_24 = *(uint **)PTR___stack_chk_guard_00031344;\n  if (0x24 < param_3) {\n    uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return uVar10;\n  }\n  if (param_2 == (undefined4 *)0x0) {\n    param_2 = &uStack_2c;\n  }\n  piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)();\n  *piVar4 = 0;\n  puVar9 = param_2;\n  local_28 = (*(code *)PTR_strtol_00031268)(param_1);\n  pcVar11 = (char *)*param_2;\n  if (pcVar11 == param_1) {\n    uVar10 = 4;\n    if (param_5 == 0) goto LAB_0001acd8;\n    puVar9 = (undefined4 *)(int)*param_1;\n    if (puVar9 == (undefined4 *)0x0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n    if (iVar7 == 0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    local_28 = 1;\n    puVar6 = (undefined4 *)(int)*pcVar11;\n    uVar10 = 0;\n  }\n  else {\n    if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }\n    if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n    puVar9 = (undefined4 *)(int)*pcVar11;\n    puVar6 = puVar9;\n    if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n  }\n  puVar9 = puVar6;\n  iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n  if (iVar7 == 0) {\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\n  else {\n    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }\n    puVar9 = (undefined4 *)0x400;\n    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\nLAB_0001acd8:\n  if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return uVar10;\n  }\n  (*(code *)PTR___stack_chk_fail_0003132c)();\n  iVar7 = param_3 - 1;\n  if (param_3 == 0) {\n    return 0;\n  }\n  puVar6 = (undefined4 *)local_24[1];\n  uVar5 = *local_24;\n  uVar10 = 0;\n  do {\n    bVar3 = false;\n    if (uVar5 == 0) {\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;\n    if (bVar3) {\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    uVar10 = uVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }\n  } while( true );\n}" type_identifier (function_declarator "xstrtol(char *param_1,undefined4 *param_2,uint param_3,undefined4 *param_4,int param_5)" identifier (parameter_list "(char *param_1,undefined4 *param_2,uint param_3,undefined4 *param_4,int param_5)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  ulonglong uVar1;\n  uint uVar2;\n  bool bVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  int iVar12;\n  undefined4 uStack_2c;\n  undefined4 local_28;\n  uint *local_24;\n  \n  local_24 = *(uint **)PTR___stack_chk_guard_00031344;\n  if (0x24 < param_3) {\n    uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return uVar10;\n  }\n  if (param_2 == (undefined4 *)0x0) {\n    param_2 = &uStack_2c;\n  }\n  piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)();\n  *piVar4 = 0;\n  puVar9 = param_2;\n  local_28 = (*(code *)PTR_strtol_00031268)(param_1);\n  pcVar11 = (char *)*param_2;\n  if (pcVar11 == param_1) {\n    uVar10 = 4;\n    if (param_5 == 0) goto LAB_0001acd8;\n    puVar9 = (undefined4 *)(int)*param_1;\n    if (puVar9 == (undefined4 *)0x0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n    if (iVar7 == 0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    local_28 = 1;\n    puVar6 = (undefined4 *)(int)*pcVar11;\n    uVar10 = 0;\n  }\n  else {\n    if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }\n    if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n    puVar9 = (undefined4 *)(int)*pcVar11;\n    puVar6 = puVar9;\n    if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n  }\n  puVar9 = puVar6;\n  iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n  if (iVar7 == 0) {\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\n  else {\n    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }\n    puVar9 = (undefined4 *)0x400;\n    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\nLAB_0001acd8:\n  if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return uVar10;\n  }\n  (*(code *)PTR___stack_chk_fail_0003132c)();\n  iVar7 = param_3 - 1;\n  if (param_3 == 0) {\n    return 0;\n  }\n  puVar6 = (undefined4 *)local_24[1];\n  uVar5 = *local_24;\n  uVar10 = 0;\n  do {\n    bVar3 = false;\n    if (uVar5 == 0) {\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;\n    if (bVar3) {\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    uVar10 = uVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }\n  } while( true );\n}" { (declaration "ulonglong uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "undefined4 uStack_2c;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "uint *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (expression_statement "local_24 = *(uint **)PTR___stack_chk_guard_00031344;" (assignment_expression "local_24 = *(uint **)PTR___stack_chk_guard_00031344" identifier = (pointer_expression "*(uint **)PTR___stack_chk_guard_00031344" * (cast_expression "(uint **)PTR___stack_chk_guard_00031344" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (0x24 < param_3) {\n    uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return uVar10;\n  }" if (parenthesized_expression "(0x24 < param_3)" ( (binary_expression "0x24 < param_3" number_literal < identifier) )) (compound_statement "{\n    uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return uVar10;\n  }" { (expression_statement "uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);" (assignment_expression "uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228)" identifier = (call_expression "(*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228)" (parenthesized_expression "(*(code *)PTR___assert_fail_00031260)" ( (pointer_expression "*(code *)PTR___assert_fail_00031260" * (cast_expression "(code *)PTR___assert_fail_00031260" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228)" ( (binary_expression "PTR_UINT_00031148 + 100" identifier + number_literal) , (binary_expression "PTR_UINT_00031148 + 0x54" identifier + number_literal) , number_literal , (binary_expression "PTR_UINT_00031148 + 0x228" identifier + number_literal) )))) ;) (return_statement "return uVar10;" return identifier ;) })) (if_statement "if (param_2 == (undefined4 *)0x0) {\n    param_2 = &uStack_2c;\n  }" if (parenthesized_expression "(param_2 == (undefined4 *)0x0)" ( (binary_expression "param_2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_2 = &uStack_2c;\n  }" { (expression_statement "param_2 = &uStack_2c;" (assignment_expression "param_2 = &uStack_2c" identifier = (pointer_expression "&uStack_2c" & identifier)) ;) })) (expression_statement "piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)();" (assignment_expression "piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_000312cc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000312cc)()" (parenthesized_expression "(*(code *)PTR___errno_location_000312cc)" ( (pointer_expression "*(code *)PTR___errno_location_000312cc" * (cast_expression "(code *)PTR___errno_location_000312cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*piVar4 = 0;" (assignment_expression "*piVar4 = 0" (pointer_expression "*piVar4" * identifier) = number_literal) ;) (expression_statement "puVar9 = param_2;" (assignment_expression "puVar9 = param_2" identifier = identifier) ;) (expression_statement "local_28 = (*(code *)PTR_strtol_00031268)(param_1);" (assignment_expression "local_28 = (*(code *)PTR_strtol_00031268)(param_1)" identifier = (call_expression "(*(code *)PTR_strtol_00031268)(param_1)" (parenthesized_expression "(*(code *)PTR_strtol_00031268)" ( (pointer_expression "*(code *)PTR_strtol_00031268" * (cast_expression "(code *)PTR_strtol_00031268" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "pcVar11 = (char *)*param_2;" (assignment_expression "pcVar11 = (char *)*param_2" identifier = (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (pcVar11 == param_1) {\n    uVar10 = 4;\n    if (param_5 == 0) goto LAB_0001acd8;\n    puVar9 = (undefined4 *)(int)*param_1;\n    if (puVar9 == (undefined4 *)0x0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n    if (iVar7 == 0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    local_28 = 1;\n    puVar6 = (undefined4 *)(int)*pcVar11;\n    uVar10 = 0;\n  }\n  else {\n    if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }\n    if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n    puVar9 = (undefined4 *)(int)*pcVar11;\n    puVar6 = puVar9;\n    if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n  }" if (parenthesized_expression "(pcVar11 == param_1)" ( (binary_expression "pcVar11 == param_1" identifier == identifier) )) (compound_statement "{\n    uVar10 = 4;\n    if (param_5 == 0) goto LAB_0001acd8;\n    puVar9 = (undefined4 *)(int)*param_1;\n    if (puVar9 == (undefined4 *)0x0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n    if (iVar7 == 0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    local_28 = 1;\n    puVar6 = (undefined4 *)(int)*pcVar11;\n    uVar10 = 0;\n  }" { (expression_statement "uVar10 = 4;" (assignment_expression "uVar10 = 4" identifier = number_literal) ;) (if_statement "if (param_5 == 0) goto LAB_0001acd8;" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001acd8;" goto statement_identifier ;)) (expression_statement "puVar9 = (undefined4 *)(int)*param_1;" (assignment_expression "puVar9 = (undefined4 *)(int)*param_1" identifier = (cast_expression "(undefined4 *)(int)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(int)*param_1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_1" * identifier)))) ;) (if_statement "if (puVar9 == (undefined4 *)0x0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }" if (parenthesized_expression "(puVar9 == (undefined4 *)0x0)" ( (binary_expression "puVar9 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }" { (expression_statement "uVar10 = 4;" (assignment_expression "uVar10 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_0001acd8;" goto statement_identifier ;) })) (expression_statement "iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);" (assignment_expression "iVar7 = (*(code *)PTR_strchr_000312e8)(param_5)" identifier = (call_expression "(*(code *)PTR_strchr_000312e8)(param_5)" (parenthesized_expression "(*(code *)PTR_strchr_000312e8)" ( (pointer_expression "*(code *)PTR_strchr_000312e8" * (cast_expression "(code *)PTR_strchr_000312e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_5)" ( identifier )))) ;) (if_statement "if (iVar7 == 0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }" { (expression_statement "uVar10 = 4;" (assignment_expression "uVar10 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_0001acd8;" goto statement_identifier ;) })) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" identifier = number_literal) ;) (expression_statement "puVar6 = (undefined4 *)(int)*pcVar11;" (assignment_expression "puVar6 = (undefined4 *)(int)*pcVar11" identifier = (cast_expression "(undefined4 *)(int)*pcVar11" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(int)*pcVar11" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar11" * identifier)))) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }\n    if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n    puVar9 = (undefined4 *)(int)*pcVar11;\n    puVar6 = puVar9;\n    if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n  }" else (compound_statement "{\n    if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }\n    if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n    puVar9 = (undefined4 *)(int)*pcVar11;\n    puVar6 = puVar9;\n    if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n  }" { (if_statement "if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }" if (parenthesized_expression "(*piVar4 == 0)" ( (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" * identifier) == number_literal) )) (compound_statement "{\n      uVar10 = 0;\n    }" { (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }" else (compound_statement "{\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }" { (if_statement "if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }" if (parenthesized_expression "(*piVar4 != 0x22)" ( (binary_expression "*piVar4 != 0x22" (pointer_expression "*piVar4" * identifier) != number_literal) )) (compound_statement "{\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }" { (expression_statement "uVar10 = 4;" (assignment_expression "uVar10 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_0001acd8;" goto statement_identifier ;) })) (expression_statement "uVar10 = 1;" (assignment_expression "uVar10 = 1" identifier = number_literal) ;) }))) (if_statement "if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (compound_statement "{\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }" { (expression_statement "*param_4 = local_28;" (assignment_expression "*param_4 = local_28" (pointer_expression "*param_4" * identifier) = identifier) ;) (goto_statement "goto LAB_0001acd8;" goto statement_identifier ;) })) (expression_statement "puVar9 = (undefined4 *)(int)*pcVar11;" (assignment_expression "puVar9 = (undefined4 *)(int)*pcVar11" identifier = (cast_expression "(undefined4 *)(int)*pcVar11" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (cast_expression "(int)*pcVar11" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar11" * identifier)))) ;) (expression_statement "puVar6 = puVar9;" (assignment_expression "puVar6 = puVar9" identifier = identifier) ;) (if_statement "if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }" if (parenthesized_expression "(puVar9 == (undefined4 *)0x0)" ( (binary_expression "puVar9 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }" { (expression_statement "*param_4 = local_28;" (assignment_expression "*param_4 = local_28" (pointer_expression "*param_4" * identifier) = identifier) ;) (goto_statement "goto LAB_0001acd8;" goto statement_identifier ;) })) }))) (expression_statement "puVar9 = puVar6;" (assignment_expression "puVar9 = puVar6" identifier = identifier) ;) (expression_statement "iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);" (assignment_expression "iVar7 = (*(code *)PTR_strchr_000312e8)(param_5)" identifier = (call_expression "(*(code *)PTR_strchr_000312e8)(param_5)" (parenthesized_expression "(*(code *)PTR_strchr_000312e8)" ( (pointer_expression "*(code *)PTR_strchr_000312e8" * (cast_expression "(code *)PTR_strchr_000312e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_5)" ( identifier )))) ;) (if_statement "if (iVar7 == 0) {\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\n  else {\n    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }\n    puVar9 = (undefined4 *)0x400;\n    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }" { (expression_statement "*param_4 = local_28;" (assignment_expression "*param_4 = local_28" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "uVar10 = uVar10 | 2;" (assignment_expression "uVar10 = uVar10 | 2" identifier = (binary_expression "uVar10 | 2" identifier | number_literal)) ;) }) (else_clause "else {\n    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }\n    puVar9 = (undefined4 *)0x400;\n    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }" else (compound_statement "{\n    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }\n    puVar9 = (undefined4 *)0x400;\n    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }" { (if_statement "if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }" if (parenthesized_expression "(((int)puVar6 - 0x45U & 0xff) < 0x30)" ( (binary_expression "((int)puVar6 - 0x45U & 0xff) < 0x30" (parenthesized_expression "((int)puVar6 - 0x45U & 0xff)" ( (binary_expression "(int)puVar6 - 0x45U & 0xff" (binary_expression "(int)puVar6 - 0x45U" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) & number_literal) )) < number_literal) )) (compound_statement "{\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }" { (expression_statement "uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();" (assignment_expression "uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))()" identifier = (call_expression "(*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))()" (parenthesized_expression "(*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))" ( (pointer_expression "*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90))" * (cast_expression "(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90))" ( (binary_expression "&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)" (pointer_expression "&_gp_1" & identifier) + (pointer_expression "*(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)" * (cast_expression "(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)" ( (binary_expression "PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90" (binary_expression "PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4" identifier + (binary_expression "((int)puVar6 - 0x45U & 0xff) * 4" (parenthesized_expression "((int)puVar6 - 0x45U & 0xff)" ( (binary_expression "(int)puVar6 - 0x45U & 0xff" (binary_expression "(int)puVar6 - 0x45U" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) & number_literal) )) * number_literal)) + number_literal) ))))) )))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar10;" return identifier ;) })) (expression_statement "puVar9 = (undefined4 *)0x400;" (assignment_expression "puVar9 = (undefined4 *)0x400" identifier = (cast_expression "(undefined4 *)0x400" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }" if (parenthesized_expression "(((int)puVar6 - 0x42U & 0xff) < 0x36)" ( (binary_expression "((int)puVar6 - 0x42U & 0xff) < 0x36" (parenthesized_expression "((int)puVar6 - 0x42U & 0xff)" ( (binary_expression "(int)puVar6 - 0x42U & 0xff" (binary_expression "(int)puVar6 - 0x42U" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) & number_literal) )) < number_literal) )) (compound_statement "{\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }" { (expression_statement "uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();" (assignment_expression "uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))()" identifier = (call_expression "(*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))()" (parenthesized_expression "(*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))" ( (pointer_expression "*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150))" * (cast_expression "(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150))" ( (binary_expression "&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)" (pointer_expression "&_gp_1" & identifier) + (pointer_expression "*(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)" * (cast_expression "(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)" ( (binary_expression "PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150" (binary_expression "PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4" identifier + (binary_expression "((int)puVar6 - 0x42U & 0xff) * 4" (parenthesized_expression "((int)puVar6 - 0x42U & 0xff)" ( (binary_expression "(int)puVar6 - 0x42U & 0xff" (binary_expression "(int)puVar6 - 0x42U" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) & number_literal) )) * number_literal)) + number_literal) ))))) )))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar10;" return identifier ;) })) (expression_statement "*param_4 = local_28;" (assignment_expression "*param_4 = local_28" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "uVar10 = uVar10 | 2;" (assignment_expression "uVar10 = uVar10 | 2" identifier = (binary_expression "uVar10 | 2" identifier | number_literal)) ;) }))) (labeled_statement "LAB_0001acd8:\n  if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return uVar10;\n  }" statement_identifier : (if_statement "if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return uVar10;\n  }" if (parenthesized_expression "(local_24 == *(uint **)PTR___stack_chk_guard_00031344)" ( (binary_expression "local_24 == *(uint **)PTR___stack_chk_guard_00031344" identifier == (pointer_expression "*(uint **)PTR___stack_chk_guard_00031344" * (cast_expression "(uint **)PTR___stack_chk_guard_00031344" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return uVar10;\n  }" { (return_statement "return uVar10;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_0003132c)();" (call_expression "(*(code *)PTR___stack_chk_fail_0003132c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0003132c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0003132c" * (cast_expression "(code *)PTR___stack_chk_fail_0003132c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar7 = param_3 - 1;" (assignment_expression "iVar7 = param_3 - 1" identifier = (binary_expression "param_3 - 1" identifier - number_literal)) ;) (if_statement "if (param_3 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar6 = (undefined4 *)local_24[1];" (assignment_expression "puVar6 = (undefined4 *)local_24[1]" identifier = (cast_expression "(undefined4 *)local_24[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "local_24[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar5 = *local_24;" (assignment_expression "uVar5 = *local_24" identifier = (pointer_expression "*local_24" * identifier)) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (do_statement "do {\n    bVar3 = false;\n    if (uVar5 == 0) {\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;\n    if (bVar3) {\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    uVar10 = uVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }\n  } while( true );" do (compound_statement "{\n    bVar3 = false;\n    if (uVar5 == 0) {\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;\n    if (bVar3) {\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    uVar10 = uVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }\n  }" { (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) (if_statement "if (uVar5 == 0) {\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }" { (expression_statement "puVar8 = puVar6;" (assignment_expression "puVar8 = puVar6" identifier = identifier) ;) (expression_statement "uVar2 = (int)puVar9 >> 0x1f;" (assignment_expression "uVar2 = (int)puVar9 >> 0x1f" identifier = (binary_expression "(int)puVar9 >> 0x1f" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (if_statement "if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }" if (parenthesized_expression "((int)puVar9 < 0)" ( (binary_expression "(int)puVar9 < 0" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }" { (labeled_statement "LAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;" statement_identifier : (if_statement "if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;" if (parenthesized_expression "((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0)" ( (binary_expression "(int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0" (cast_expression "(int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20)" ( (binary_expression "ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20" (binary_expression "ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20)" (binary_expression "ZEXT48(puVar8) * (ulonglong)uVar2" (call_expression "ZEXT48(puVar8)" identifier (argument_list "(puVar8)" ( identifier ))) * (cast_expression "(ulonglong)uVar2" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) + (parenthesized_expression "(ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20)" ( (binary_expression "ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20" (binary_expression "ZEXT48(puVar6) * ZEXT48(puVar9)" (call_expression "ZEXT48(puVar6)" identifier (argument_list "(puVar6)" ( identifier ))) * (call_expression "ZEXT48(puVar9)" identifier (argument_list "(puVar9)" ( identifier )))) >> number_literal) ))) >> number_literal) ))) != number_literal) )) (goto_statement "goto LAB_0001b134;" goto statement_identifier ;))) })) }) (else_clause "else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }" else (compound_statement "{\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }" { (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" identifier = identifier) ;) (expression_statement "uVar2 = uVar5;" (assignment_expression "uVar2 = uVar5" identifier = identifier) ;) (if_statement "if (-1 < (int)puVar9) goto LAB_0001b0b8;" if (parenthesized_expression "(-1 < (int)puVar9)" ( (binary_expression "-1 < (int)puVar9" number_literal < (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0001b0b8;" goto statement_identifier ;)) (labeled_statement "LAB_0001b134:\n      bVar3 = true;" statement_identifier : (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;)) }))) (expression_statement "iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;" (assignment_expression "iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6" identifier = (binary_expression "((int)puVar9 >> 0x1f) * (int)puVar6" (parenthesized_expression "((int)puVar9 >> 0x1f)" ( (binary_expression "(int)puVar9 >> 0x1f" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) * (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (bVar3) {\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }" { (expression_statement "puVar6 = (undefined4 *)0xffffffff;" (assignment_expression "puVar6 = (undefined4 *)0xffffffff" identifier = (cast_expression "(undefined4 *)0xffffffff" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }" else (compound_statement "{\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }" { (expression_statement "uVar1 = ZEXT48(puVar6);" (assignment_expression "uVar1 = ZEXT48(puVar6)" identifier = (call_expression "ZEXT48(puVar6)" identifier (argument_list "(puVar6)" ( identifier )))) ;) (expression_statement "puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));" (assignment_expression "puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9))" identifier = (cast_expression "(undefined4 *)(uVar1 * ZEXT48(puVar9))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar1 * ZEXT48(puVar9))" ( (binary_expression "uVar1 * ZEXT48(puVar9)" identifier * (call_expression "ZEXT48(puVar9)" identifier (argument_list "(puVar9)" ( identifier )))) )))) ;) (expression_statement "uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);" (assignment_expression "uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20)" identifier = (binary_expression "iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20)" (binary_expression "iVar12 + (int)puVar9 * uVar5" identifier + (binary_expression "(int)puVar9 * uVar5" (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier) * identifier)) + (cast_expression "(int)(uVar1 * ZEXT48(puVar9) >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 * ZEXT48(puVar9) >> 0x20)" ( (binary_expression "uVar1 * ZEXT48(puVar9) >> 0x20" (binary_expression "uVar1 * ZEXT48(puVar9)" identifier * (call_expression "ZEXT48(puVar9)" identifier (argument_list "(puVar9)" ( identifier )))) >> number_literal) ))))) ;) }))) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "uVar10 = uVar10 | bVar3;" (assignment_expression "uVar10 = uVar10 | bVar3" identifier = (binary_expression "uVar10 | bVar3" identifier | identifier)) ;) (if_statement "if (iVar7 == -1) {\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }" if (parenthesized_expression "(iVar7 == -1)" ( (binary_expression "iVar7 == -1" identifier == number_literal) )) (compound_statement "{\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }" { (expression_statement "local_24[1] = (uint)puVar6;" (assignment_expression "local_24[1] = (uint)puVar6" (subscript_expression "local_24[1]" identifier [ number_literal ]) = (cast_expression "(uint)puVar6" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*local_24 = uVar5;" (assignment_expression "*local_24 = uVar5" (pointer_expression "*local_24" * identifier) = identifier) ;) (return_statement "return uVar10;" return identifier ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) })) (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 = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - LIT) & LIT) )) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - LIT) & LIT) )) * LIT)) + LIT) ))))) )))) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - LIT) & LIT) )) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - LIT) & LIT) )) * LIT)) + LIT) ))))) )))) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (call_expression IDENT (argument_list ( IDENT ))) * (cast_expression ( (type_descriptor TYPE) ) IDENT)) + (parenthesized_expression ( (binary_expression (binary_expression (call_expression IDENT (argument_list ( IDENT ))) * (call_expression IDENT (argument_list ( IDENT )))) >> LIT) ))) >> LIT) ))) != LIT) )) (goto_statement goto statement_identifier ;))) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = BOOL) ;)) }))) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )) * (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT * (call_expression IDENT (argument_list ( IDENT )))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * IDENT)) + (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * (call_expression IDENT (argument_list ( IDENT )))) >> LIT) ))))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "uint xstrtol(char *param_1,undefined4 *param_2,uint param_3,undefined4 *param_4,int param_5)\n\n{\n  ulonglong uVar1;\n  uint uVar2;\n  bool bVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  int iVar12;\n  undefined4 uStack_2c;\n  undefined4 local_28;\n  uint *local_24;\n  \n  local_24 = *(uint **)PTR___stack_chk_guard_00031344;\n  if (0x24 < param_3) {\n    uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return uVar10;\n  }\n  if (param_2 == (undefined4 *)0x0) {\n    param_2 = &uStack_2c;\n  }\n  piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)();\n  *piVar4 = 0;\n  puVar9 = param_2;\n  local_28 = (*(code *)PTR_strtol_00031268)(param_1);\n  pcVar11 = (char *)*param_2;\n  if (pcVar11 == param_1) {\n    uVar10 = 4;\n    if (param_5 == 0) goto LAB_0001acd8;\n    puVar9 = (undefined4 *)(int)*param_1;\n    if (puVar9 == (undefined4 *)0x0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n    if (iVar7 == 0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    local_28 = 1;\n    puVar6 = (undefined4 *)(int)*pcVar11;\n    uVar10 = 0;\n  }\n  else {\n    if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }\n    if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n    puVar9 = (undefined4 *)(int)*pcVar11;\n    puVar6 = puVar9;\n    if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n  }\n  puVar9 = puVar6;\n  iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n  if (iVar7 == 0) {\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\n  else {\n    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }\n    puVar9 = (undefined4 *)0x400;\n    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\nLAB_0001acd8:\n  if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return uVar10;\n  }\n  (*(code *)PTR___stack_chk_fail_0003132c)();\n  iVar7 = param_3 - 1;\n  if (param_3 == 0) {\n    return 0;\n  }\n  puVar6 = (undefined4 *)local_24[1];\n  uVar5 = *local_24;\n  uVar10 = 0;\n  do {\n    bVar3 = false;\n    if (uVar5 == 0) {\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;\n    if (bVar3) {\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    uVar10 = uVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }\n  } while( true );\n}" (type_identifier "uint") (function_declarator "xstrtol(char *param_1,undefined4 *param_2,uint param_3,undefined4 *param_4,int param_5)" (identifier "xstrtol") (parameter_list "(char *param_1,undefined4 *param_2,uint param_3,undefined4 *param_4,int param_5)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  ulonglong uVar1;\n  uint uVar2;\n  bool bVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 *puVar9;\n  uint uVar10;\n  char *pcVar11;\n  int iVar12;\n  undefined4 uStack_2c;\n  undefined4 local_28;\n  uint *local_24;\n  \n  local_24 = *(uint **)PTR___stack_chk_guard_00031344;\n  if (0x24 < param_3) {\n    uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return uVar10;\n  }\n  if (param_2 == (undefined4 *)0x0) {\n    param_2 = &uStack_2c;\n  }\n  piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)();\n  *piVar4 = 0;\n  puVar9 = param_2;\n  local_28 = (*(code *)PTR_strtol_00031268)(param_1);\n  pcVar11 = (char *)*param_2;\n  if (pcVar11 == param_1) {\n    uVar10 = 4;\n    if (param_5 == 0) goto LAB_0001acd8;\n    puVar9 = (undefined4 *)(int)*param_1;\n    if (puVar9 == (undefined4 *)0x0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n    if (iVar7 == 0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    local_28 = 1;\n    puVar6 = (undefined4 *)(int)*pcVar11;\n    uVar10 = 0;\n  }\n  else {\n    if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }\n    if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n    puVar9 = (undefined4 *)(int)*pcVar11;\n    puVar6 = puVar9;\n    if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n  }\n  puVar9 = puVar6;\n  iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n  if (iVar7 == 0) {\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\n  else {\n    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }\n    puVar9 = (undefined4 *)0x400;\n    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\nLAB_0001acd8:\n  if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return uVar10;\n  }\n  (*(code *)PTR___stack_chk_fail_0003132c)();\n  iVar7 = param_3 - 1;\n  if (param_3 == 0) {\n    return 0;\n  }\n  puVar6 = (undefined4 *)local_24[1];\n  uVar5 = *local_24;\n  uVar10 = 0;\n  do {\n    bVar3 = false;\n    if (uVar5 == 0) {\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;\n    if (bVar3) {\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    uVar10 = uVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }\n  } while( true );\n}" ({ "{") (declaration "ulonglong uVar1;" (type_identifier "ulonglong") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "bool bVar3;" (primitive_type "bool") (identifier "bVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined4 *puVar8;" (type_identifier "undefined4") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined4 *puVar9;" (type_identifier "undefined4") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (declaration "char *pcVar11;" (primitive_type "char") (pointer_declarator "*pcVar11" (* "*") (identifier "pcVar11")) (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "undefined4 uStack_2c;" (type_identifier "undefined4") (identifier "uStack_2c") (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (identifier "local_28") (; ";")) (declaration "uint *local_24;" (type_identifier "uint") (pointer_declarator "*local_24" (* "*") (identifier "local_24")) (; ";")) (expression_statement "local_24 = *(uint **)PTR___stack_chk_guard_00031344;" (assignment_expression "local_24 = *(uint **)PTR___stack_chk_guard_00031344" (identifier "local_24") (= "=") (pointer_expression "*(uint **)PTR___stack_chk_guard_00031344" (* "*") (cast_expression "(uint **)PTR___stack_chk_guard_00031344" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_00031344")))) (; ";")) (if_statement "if (0x24 < param_3) {\n    uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return uVar10;\n  }" (if "if") (parenthesized_expression "(0x24 < param_3)" (( "(") (binary_expression "0x24 < param_3" (number_literal "0x24") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n    uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);\n    return uVar10;\n  }" ({ "{") (expression_statement "uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228);" (assignment_expression "uVar10 = (*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228)" (identifier "uVar10") (= "=") (call_expression "(*(code *)PTR___assert_fail_00031260)\n                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228)" (parenthesized_expression "(*(code *)PTR___assert_fail_00031260)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_00031260" (* "*") (cast_expression "(code *)PTR___assert_fail_00031260" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_00031260"))) () ")")) (argument_list "(PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,\n                        PTR_UINT_00031148 + 0x228)" (( "(") (binary_expression "PTR_UINT_00031148 + 100" (identifier "PTR_UINT_00031148") (+ "+") (number_literal "100")) (, ",") (binary_expression "PTR_UINT_00031148 + 0x54" (identifier "PTR_UINT_00031148") (+ "+") (number_literal "0x54")) (, ",") (number_literal "0x60") (, ",") (binary_expression "PTR_UINT_00031148 + 0x228" (identifier "PTR_UINT_00031148") (+ "+") (number_literal "0x228")) () ")")))) (; ";")) (return_statement "return uVar10;" (return "return") (identifier "uVar10") (; ";")) (} "}"))) (if_statement "if (param_2 == (undefined4 *)0x0) {\n    param_2 = &uStack_2c;\n  }" (if "if") (parenthesized_expression "(param_2 == (undefined4 *)0x0)" (( "(") (binary_expression "param_2 == (undefined4 *)0x0" (identifier "param_2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    param_2 = &uStack_2c;\n  }" ({ "{") (expression_statement "param_2 = &uStack_2c;" (assignment_expression "param_2 = &uStack_2c" (identifier "param_2") (= "=") (pointer_expression "&uStack_2c" (& "&") (identifier "uStack_2c"))) (; ";")) (} "}"))) (expression_statement "piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)();" (assignment_expression "piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)()" (identifier "piVar4") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_000312cc)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_000312cc)()" (parenthesized_expression "(*(code *)PTR___errno_location_000312cc)" (( "(") (pointer_expression "*(code *)PTR___errno_location_000312cc" (* "*") (cast_expression "(code *)PTR___errno_location_000312cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_000312cc"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*piVar4 = 0;" (assignment_expression "*piVar4 = 0" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar9 = param_2;" (assignment_expression "puVar9 = param_2" (identifier "puVar9") (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_28 = (*(code *)PTR_strtol_00031268)(param_1);" (assignment_expression "local_28 = (*(code *)PTR_strtol_00031268)(param_1)" (identifier "local_28") (= "=") (call_expression "(*(code *)PTR_strtol_00031268)(param_1)" (parenthesized_expression "(*(code *)PTR_strtol_00031268)" (( "(") (pointer_expression "*(code *)PTR_strtol_00031268" (* "*") (cast_expression "(code *)PTR_strtol_00031268" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strtol_00031268"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "pcVar11 = (char *)*param_2;" (assignment_expression "pcVar11 = (char *)*param_2" (identifier "pcVar11") (= "=") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (pcVar11 == param_1) {\n    uVar10 = 4;\n    if (param_5 == 0) goto LAB_0001acd8;\n    puVar9 = (undefined4 *)(int)*param_1;\n    if (puVar9 == (undefined4 *)0x0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n    if (iVar7 == 0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    local_28 = 1;\n    puVar6 = (undefined4 *)(int)*pcVar11;\n    uVar10 = 0;\n  }\n  else {\n    if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }\n    if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n    puVar9 = (undefined4 *)(int)*pcVar11;\n    puVar6 = puVar9;\n    if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n  }" (if "if") (parenthesized_expression "(pcVar11 == param_1)" (( "(") (binary_expression "pcVar11 == param_1" (identifier "pcVar11") (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n    uVar10 = 4;\n    if (param_5 == 0) goto LAB_0001acd8;\n    puVar9 = (undefined4 *)(int)*param_1;\n    if (puVar9 == (undefined4 *)0x0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);\n    if (iVar7 == 0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }\n    local_28 = 1;\n    puVar6 = (undefined4 *)(int)*pcVar11;\n    uVar10 = 0;\n  }" ({ "{") (expression_statement "uVar10 = 4;" (assignment_expression "uVar10 = 4" (identifier "uVar10") (= "=") (number_literal "4")) (; ";")) (if_statement "if (param_5 == 0) goto LAB_0001acd8;" (if "if") (parenthesized_expression "(param_5 == 0)" (( "(") (binary_expression "param_5 == 0" (identifier "param_5") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001acd8;" (goto "goto") (statement_identifier "LAB_0001acd8") (; ";"))) (expression_statement "puVar9 = (undefined4 *)(int)*param_1;" (assignment_expression "puVar9 = (undefined4 *)(int)*param_1" (identifier "puVar9") (= "=") (cast_expression "(undefined4 *)(int)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (cast_expression "(int)*param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))))) (; ";")) (if_statement "if (puVar9 == (undefined4 *)0x0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }" (if "if") (parenthesized_expression "(puVar9 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar9 == (undefined4 *)0x0" (identifier "puVar9") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }" ({ "{") (expression_statement "uVar10 = 4;" (assignment_expression "uVar10 = 4" (identifier "uVar10") (= "=") (number_literal "4")) (; ";")) (goto_statement "goto LAB_0001acd8;" (goto "goto") (statement_identifier "LAB_0001acd8") (; ";")) (} "}"))) (expression_statement "iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);" (assignment_expression "iVar7 = (*(code *)PTR_strchr_000312e8)(param_5)" (identifier "iVar7") (= "=") (call_expression "(*(code *)PTR_strchr_000312e8)(param_5)" (parenthesized_expression "(*(code *)PTR_strchr_000312e8)" (( "(") (pointer_expression "*(code *)PTR_strchr_000312e8" (* "*") (cast_expression "(code *)PTR_strchr_000312e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strchr_000312e8"))) () ")")) (argument_list "(param_5)" (( "(") (identifier "param_5") () ")")))) (; ";")) (if_statement "if (iVar7 == 0) {\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar10 = 4;\n      goto LAB_0001acd8;\n    }" ({ "{") (expression_statement "uVar10 = 4;" (assignment_expression "uVar10 = 4" (identifier "uVar10") (= "=") (number_literal "4")) (; ";")) (goto_statement "goto LAB_0001acd8;" (goto "goto") (statement_identifier "LAB_0001acd8") (; ";")) (} "}"))) (expression_statement "local_28 = 1;" (assignment_expression "local_28 = 1" (identifier "local_28") (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar6 = (undefined4 *)(int)*pcVar11;" (assignment_expression "puVar6 = (undefined4 *)(int)*pcVar11" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)(int)*pcVar11" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (cast_expression "(int)*pcVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*pcVar11" (* "*") (identifier "pcVar11"))))) (; ";")) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" (identifier "uVar10") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }\n    if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n    puVar9 = (undefined4 *)(int)*pcVar11;\n    puVar6 = puVar9;\n    if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n  }" (else "else") (compound_statement "{\n    if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }\n    if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n    puVar9 = (undefined4 *)(int)*pcVar11;\n    puVar6 = puVar9;\n    if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }\n  }" ({ "{") (if_statement "if (*piVar4 == 0) {\n      uVar10 = 0;\n    }\n    else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }" (if "if") (parenthesized_expression "(*piVar4 == 0)" (( "(") (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar10 = 0;\n    }" ({ "{") (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" (identifier "uVar10") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }" (else "else") (compound_statement "{\n      if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }\n      uVar10 = 1;\n    }" ({ "{") (if_statement "if (*piVar4 != 0x22) {\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }" (if "if") (parenthesized_expression "(*piVar4 != 0x22)" (( "(") (binary_expression "*piVar4 != 0x22" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (!= "!=") (number_literal "0x22")) () ")")) (compound_statement "{\n        uVar10 = 4;\n        goto LAB_0001acd8;\n      }" ({ "{") (expression_statement "uVar10 = 4;" (assignment_expression "uVar10 = 4" (identifier "uVar10") (= "=") (number_literal "4")) (; ";")) (goto_statement "goto LAB_0001acd8;" (goto "goto") (statement_identifier "LAB_0001acd8") (; ";")) (} "}"))) (expression_statement "uVar10 = 1;" (assignment_expression "uVar10 = 1" (identifier "uVar10") (= "=") (number_literal "1")) (; ";")) (} "}")))) (if_statement "if (param_5 == 0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }" (if "if") (parenthesized_expression "(param_5 == 0)" (( "(") (binary_expression "param_5 == 0" (identifier "param_5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }" ({ "{") (expression_statement "*param_4 = local_28;" (assignment_expression "*param_4 = local_28" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "local_28")) (; ";")) (goto_statement "goto LAB_0001acd8;" (goto "goto") (statement_identifier "LAB_0001acd8") (; ";")) (} "}"))) (expression_statement "puVar9 = (undefined4 *)(int)*pcVar11;" (assignment_expression "puVar9 = (undefined4 *)(int)*pcVar11" (identifier "puVar9") (= "=") (cast_expression "(undefined4 *)(int)*pcVar11" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (cast_expression "(int)*pcVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*pcVar11" (* "*") (identifier "pcVar11"))))) (; ";")) (expression_statement "puVar6 = puVar9;" (assignment_expression "puVar6 = puVar9" (identifier "puVar6") (= "=") (identifier "puVar9")) (; ";")) (if_statement "if (puVar9 == (undefined4 *)0x0) {\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }" (if "if") (parenthesized_expression "(puVar9 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar9 == (undefined4 *)0x0" (identifier "puVar9") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *param_4 = local_28;\n      goto LAB_0001acd8;\n    }" ({ "{") (expression_statement "*param_4 = local_28;" (assignment_expression "*param_4 = local_28" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "local_28")) (; ";")) (goto_statement "goto LAB_0001acd8;" (goto "goto") (statement_identifier "LAB_0001acd8") (; ";")) (} "}"))) (} "}")))) (expression_statement "puVar9 = puVar6;" (assignment_expression "puVar9 = puVar6" (identifier "puVar9") (= "=") (identifier "puVar6")) (; ";")) (expression_statement "iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);" (assignment_expression "iVar7 = (*(code *)PTR_strchr_000312e8)(param_5)" (identifier "iVar7") (= "=") (call_expression "(*(code *)PTR_strchr_000312e8)(param_5)" (parenthesized_expression "(*(code *)PTR_strchr_000312e8)" (( "(") (pointer_expression "*(code *)PTR_strchr_000312e8" (* "*") (cast_expression "(code *)PTR_strchr_000312e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strchr_000312e8"))) () ")")) (argument_list "(param_5)" (( "(") (identifier "param_5") () ")")))) (; ";")) (if_statement "if (iVar7 == 0) {\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }\n  else {\n    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }\n    puVar9 = (undefined4 *)0x400;\n    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }" ({ "{") (expression_statement "*param_4 = local_28;" (assignment_expression "*param_4 = local_28" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "local_28")) (; ";")) (expression_statement "uVar10 = uVar10 | 2;" (assignment_expression "uVar10 = uVar10 | 2" (identifier "uVar10") (= "=") (binary_expression "uVar10 | 2" (identifier "uVar10") (| "|") (number_literal "2"))) (; ";")) (} "}")) (else_clause "else {\n    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }\n    puVar9 = (undefined4 *)0x400;\n    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }" (else "else") (compound_statement "{\n    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }\n    puVar9 = (undefined4 *)0x400;\n    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }\n    *param_4 = local_28;\n    uVar10 = uVar10 | 2;\n  }" ({ "{") (if_statement "if (((int)puVar6 - 0x45U & 0xff) < 0x30) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }" (if "if") (parenthesized_expression "(((int)puVar6 - 0x45U & 0xff) < 0x30)" (( "(") (binary_expression "((int)puVar6 - 0x45U & 0xff) < 0x30" (parenthesized_expression "((int)puVar6 - 0x45U & 0xff)" (( "(") (binary_expression "(int)puVar6 - 0x45U & 0xff" (binary_expression "(int)puVar6 - 0x45U" (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6")) (- "-") (number_literal "0x45U")) (& "&") (number_literal "0xff")) () ")")) (< "<") (number_literal "0x30")) () ")")) (compound_statement "{\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();\n      return uVar10;\n    }" ({ "{") (expression_statement "uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();" (assignment_expression "uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))()" (identifier "uVar10") (= "=") (call_expression "(*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))()" (parenthesized_expression "(*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))" (( "(") (pointer_expression "*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90))" (* "*") (cast_expression "(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90))" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90))" (( "(") (binary_expression "&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)" (pointer_expression "&_gp_1" (& "&") (identifier "_gp_1")) (+ "+") (pointer_expression "*(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)" (* "*") (cast_expression "(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)" (( "(") (binary_expression "PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90" (binary_expression "PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x45U & 0xff) * 4" (identifier "PTR_UINT_00031148") (+ "+") (binary_expression "((int)puVar6 - 0x45U & 0xff) * 4" (parenthesized_expression "((int)puVar6 - 0x45U & 0xff)" (( "(") (binary_expression "(int)puVar6 - 0x45U & 0xff" (binary_expression "(int)puVar6 - 0x45U" (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6")) (- "-") (number_literal "0x45U")) (& "&") (number_literal "0xff")) () ")")) (* "*") (number_literal "4"))) (+ "+") (number_literal "0x90")) () ")"))))) () ")")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar10;" (return "return") (identifier "uVar10") (; ";")) (} "}"))) (expression_statement "puVar9 = (undefined4 *)0x400;" (assignment_expression "puVar9 = (undefined4 *)0x400" (identifier "puVar9") (= "=") (cast_expression "(undefined4 *)0x400" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x400"))) (; ";")) (if_statement "if (((int)puVar6 - 0x42U & 0xff) < 0x36) {\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }" (if "if") (parenthesized_expression "(((int)puVar6 - 0x42U & 0xff) < 0x36)" (( "(") (binary_expression "((int)puVar6 - 0x42U & 0xff) < 0x36" (parenthesized_expression "((int)puVar6 - 0x42U & 0xff)" (( "(") (binary_expression "(int)puVar6 - 0x42U & 0xff" (binary_expression "(int)puVar6 - 0x42U" (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6")) (- "-") (number_literal "0x42U")) (& "&") (number_literal "0xff")) () ")")) (< "<") (number_literal "0x36")) () ")")) (compound_statement "{\n                    \n                    \n      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();\n      return uVar10;\n    }" ({ "{") (expression_statement "uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();" (assignment_expression "uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))()" (identifier "uVar10") (= "=") (call_expression "(*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))()" (parenthesized_expression "(*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))" (( "(") (pointer_expression "*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150))" (* "*") (cast_expression "(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150))" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150))" (( "(") (binary_expression "&_gp_1 + *(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)" (pointer_expression "&_gp_1" (& "&") (identifier "_gp_1")) (+ "+") (pointer_expression "*(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)" (* "*") (cast_expression "(int *)(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)" (( "(") (binary_expression "PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150" (binary_expression "PTR_UINT_00031148 +\n                                           ((int)puVar6 - 0x42U & 0xff) * 4" (identifier "PTR_UINT_00031148") (+ "+") (binary_expression "((int)puVar6 - 0x42U & 0xff) * 4" (parenthesized_expression "((int)puVar6 - 0x42U & 0xff)" (( "(") (binary_expression "(int)puVar6 - 0x42U & 0xff" (binary_expression "(int)puVar6 - 0x42U" (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6")) (- "-") (number_literal "0x42U")) (& "&") (number_literal "0xff")) () ")")) (* "*") (number_literal "4"))) (+ "+") (number_literal "0x150")) () ")"))))) () ")")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar10;" (return "return") (identifier "uVar10") (; ";")) (} "}"))) (expression_statement "*param_4 = local_28;" (assignment_expression "*param_4 = local_28" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "local_28")) (; ";")) (expression_statement "uVar10 = uVar10 | 2;" (assignment_expression "uVar10 = uVar10 | 2" (identifier "uVar10") (= "=") (binary_expression "uVar10 | 2" (identifier "uVar10") (| "|") (number_literal "2"))) (; ";")) (} "}")))) (labeled_statement "LAB_0001acd8:\n  if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return uVar10;\n  }" (statement_identifier "LAB_0001acd8") (: ":") (if_statement "if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {\n    return uVar10;\n  }" (if "if") (parenthesized_expression "(local_24 == *(uint **)PTR___stack_chk_guard_00031344)" (( "(") (binary_expression "local_24 == *(uint **)PTR___stack_chk_guard_00031344" (identifier "local_24") (== "==") (pointer_expression "*(uint **)PTR___stack_chk_guard_00031344" (* "*") (cast_expression "(uint **)PTR___stack_chk_guard_00031344" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_00031344")))) () ")")) (compound_statement "{\n    return uVar10;\n  }" ({ "{") (return_statement "return uVar10;" (return "return") (identifier "uVar10") (; ";")) (} "}")))) (expression_statement "(*(code *)PTR___stack_chk_fail_0003132c)();" (call_expression "(*(code *)PTR___stack_chk_fail_0003132c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0003132c)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0003132c" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0003132c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0003132c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar7 = param_3 - 1;" (assignment_expression "iVar7 = param_3 - 1" (identifier "iVar7") (= "=") (binary_expression "param_3 - 1" (identifier "param_3") (- "-") (number_literal "1"))) (; ";")) (if_statement "if (param_3 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "puVar6 = (undefined4 *)local_24[1];" (assignment_expression "puVar6 = (undefined4 *)local_24[1]" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)local_24[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "local_24[1]" (identifier "local_24") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "uVar5 = *local_24;" (assignment_expression "uVar5 = *local_24" (identifier "uVar5") (= "=") (pointer_expression "*local_24" (* "*") (identifier "local_24"))) (; ";")) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" (identifier "uVar10") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    bVar3 = false;\n    if (uVar5 == 0) {\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;\n    if (bVar3) {\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    uVar10 = uVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    bVar3 = false;\n    if (uVar5 == 0) {\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }\n    iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;\n    if (bVar3) {\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }\n    iVar7 = iVar7 + -1;\n    uVar10 = uVar10 | bVar3;\n    if (iVar7 == -1) {\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }\n  }" ({ "{") (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" (identifier "bVar3") (= "=") (false "false")) (; ";")) (if_statement "if (uVar5 == 0) {\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }\n    else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }" (if "if") (parenthesized_expression "(uVar5 == 0)" (( "(") (binary_expression "uVar5 == 0" (identifier "uVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar8 = puVar6;\n      uVar2 = (int)puVar9 >> 0x1f;\n      if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }\n    }" ({ "{") (expression_statement "puVar8 = puVar6;" (assignment_expression "puVar8 = puVar6" (identifier "puVar8") (= "=") (identifier "puVar6")) (; ";")) (expression_statement "uVar2 = (int)puVar9 >> 0x1f;" (assignment_expression "uVar2 = (int)puVar9 >> 0x1f" (identifier "uVar2") (= "=") (binary_expression "(int)puVar9 >> 0x1f" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (>> ">>") (number_literal "0x1f"))) (; ";")) (if_statement "if ((int)puVar9 < 0) {\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }" (if "if") (parenthesized_expression "((int)puVar9 < 0)" (( "(") (binary_expression "(int)puVar9 < 0" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;\n      }" ({ "{") (labeled_statement "LAB_0001b0b8:\n        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;" (statement_identifier "LAB_0001b0b8") (: ":") (if_statement "if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0) goto LAB_0001b134;" (if "if") (parenthesized_expression "((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0)" (( "(") (binary_expression "(int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20) != 0" (cast_expression "(int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20)" (( "(") (binary_expression "ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>\n                 0x20" (binary_expression "ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20)" (binary_expression "ZEXT48(puVar8) * (ulonglong)uVar2" (call_expression "ZEXT48(puVar8)" (identifier "ZEXT48") (argument_list "(puVar8)" (( "(") (identifier "puVar8") () ")"))) (* "*") (cast_expression "(ulonglong)uVar2" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar2"))) (+ "+") (parenthesized_expression "(ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20)" (( "(") (binary_expression "ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20" (binary_expression "ZEXT48(puVar6) * ZEXT48(puVar9)" (call_expression "ZEXT48(puVar6)" (identifier "ZEXT48") (argument_list "(puVar6)" (( "(") (identifier "puVar6") () ")"))) (* "*") (call_expression "ZEXT48(puVar9)" (identifier "ZEXT48") (argument_list "(puVar9)" (( "(") (identifier "puVar9") () ")")))) (>> ">>") (number_literal "0x20")) () ")"))) (>> ">>") (number_literal "0x20")) () ")"))) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001b134;" (goto "goto") (statement_identifier "LAB_0001b134") (; ";")))) (} "}"))) (} "}")) (else_clause "else {\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }" (else "else") (compound_statement "{\n      puVar8 = puVar9;\n      uVar2 = uVar5;\n      if (-1 < (int)puVar9) goto LAB_0001b0b8;\nLAB_0001b134:\n      bVar3 = true;\n    }" ({ "{") (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" (identifier "puVar8") (= "=") (identifier "puVar9")) (; ";")) (expression_statement "uVar2 = uVar5;" (assignment_expression "uVar2 = uVar5" (identifier "uVar2") (= "=") (identifier "uVar5")) (; ";")) (if_statement "if (-1 < (int)puVar9) goto LAB_0001b0b8;" (if "if") (parenthesized_expression "(-1 < (int)puVar9)" (( "(") (binary_expression "-1 < (int)puVar9" (number_literal "-1") (< "<") (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9"))) () ")")) (goto_statement "goto LAB_0001b0b8;" (goto "goto") (statement_identifier "LAB_0001b0b8") (; ";"))) (labeled_statement "LAB_0001b134:\n      bVar3 = true;" (statement_identifier "LAB_0001b134") (: ":") (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" (identifier "bVar3") (= "=") (true "true")) (; ";"))) (} "}")))) (expression_statement "iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;" (assignment_expression "iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6" (identifier "iVar12") (= "=") (binary_expression "((int)puVar9 >> 0x1f) * (int)puVar6" (parenthesized_expression "((int)puVar9 >> 0x1f)" (( "(") (binary_expression "(int)puVar9 >> 0x1f" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (>> ">>") (number_literal "0x1f")) () ")")) (* "*") (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6")))) (; ";")) (if_statement "if (bVar3) {\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }\n    else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }" (if "if") (parenthesized_expression "(bVar3)" (( "(") (identifier "bVar3") () ")")) (compound_statement "{\n      puVar6 = (undefined4 *)0xffffffff;\n      uVar5 = 0xffffffff;\n    }" ({ "{") (expression_statement "puVar6 = (undefined4 *)0xffffffff;" (assignment_expression "puVar6 = (undefined4 *)0xffffffff" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)0xffffffff" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffff"))) (; ";")) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" (identifier "uVar5") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else {\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }" (else "else") (compound_statement "{\n      uVar1 = ZEXT48(puVar6);\n      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));\n      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);\n    }" ({ "{") (expression_statement "uVar1 = ZEXT48(puVar6);" (assignment_expression "uVar1 = ZEXT48(puVar6)" (identifier "uVar1") (= "=") (call_expression "ZEXT48(puVar6)" (identifier "ZEXT48") (argument_list "(puVar6)" (( "(") (identifier "puVar6") () ")")))) (; ";")) (expression_statement "puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));" (assignment_expression "puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9))" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)(uVar1 * ZEXT48(puVar9))" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar1 * ZEXT48(puVar9))" (( "(") (binary_expression "uVar1 * ZEXT48(puVar9)" (identifier "uVar1") (* "*") (call_expression "ZEXT48(puVar9)" (identifier "ZEXT48") (argument_list "(puVar9)" (( "(") (identifier "puVar9") () ")")))) () ")")))) (; ";")) (expression_statement "uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);" (assignment_expression "uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20)" (identifier "uVar5") (= "=") (binary_expression "iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20)" (binary_expression "iVar12 + (int)puVar9 * uVar5" (identifier "iVar12") (+ "+") (binary_expression "(int)puVar9 * uVar5" (cast_expression "(int)puVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar9")) (* "*") (identifier "uVar5"))) (+ "+") (cast_expression "(int)(uVar1 * ZEXT48(puVar9) >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar1 * ZEXT48(puVar9) >> 0x20)" (( "(") (binary_expression "uVar1 * ZEXT48(puVar9) >> 0x20" (binary_expression "uVar1 * ZEXT48(puVar9)" (identifier "uVar1") (* "*") (call_expression "ZEXT48(puVar9)" (identifier "ZEXT48") (argument_list "(puVar9)" (( "(") (identifier "puVar9") () ")")))) (>> ">>") (number_literal "0x20")) () ")"))))) (; ";")) (} "}")))) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar10 = uVar10 | bVar3;" (assignment_expression "uVar10 = uVar10 | bVar3" (identifier "uVar10") (= "=") (binary_expression "uVar10 | bVar3" (identifier "uVar10") (| "|") (identifier "bVar3"))) (; ";")) (if_statement "if (iVar7 == -1) {\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }" (if "if") (parenthesized_expression "(iVar7 == -1)" (( "(") (binary_expression "iVar7 == -1" (identifier "iVar7") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      local_24[1] = (uint)puVar6;\n      *local_24 = uVar5;\n      return uVar10;\n    }" ({ "{") (expression_statement "local_24[1] = (uint)puVar6;" (assignment_expression "local_24[1] = (uint)puVar6" (subscript_expression "local_24[1]" (identifier "local_24") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(uint)puVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "puVar6"))) (; ";")) (expression_statement "*local_24 = uVar5;" (assignment_expression "*local_24 = uVar5" (pointer_expression "*local_24" (* "*") (identifier "local_24")) (= "=") (identifier "uVar5")) (; ";")) (return_statement "return uVar10;" (return "return") (identifier "uVar10") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

type_1 function_1(char *var_4,char **var_2,int var_11,long *val,char *var_5)

{
  type_2 var_14;
  type_3 uVar2;
  bool var_16;
  int *piVar4;
  type_3 var_12;
  char **ppcVar6;
  int var_7;
  char **ppcVar8;
  char **var_6;
  type_1 var_8;
  char *var_3;
  int var_15;
  char *t_ptr;
  long tmp;
  type_3 *var_10;
  
  var_10 = *(type_3 **)PTR___stack_chk_guard_00031344;
  if (0x24 < (type_3)var_11) {
    var_8 = (*(type_4 *)PTR___assert_fail_00031260)
                       (var_1 + 100,var_1 + 0x54,0x60,
                        var_1 + 0x228);
    return var_8;
  }
  if (var_2 == (char **)0x0) {
    var_2 = &t_ptr;
  }
  piVar4 = (int *)(*(type_4 *)PTR___errno_location_000312cc)();
  *piVar4 = 0;
  var_6 = var_2;
  tmp = (*(type_4 *)PTR_strtol_00031268)(var_4);
  var_3 = *var_2;
  if (var_3 == var_4) {
    var_8 = LONGINT_INVALID;
    if (var_5 == (char *)0x0) goto LAB_0001acd8;
    var_6 = (char **)(int)*var_4;
    if (var_6 == (char **)0x0) {
      var_8 = LONGINT_INVALID;
      goto LAB_0001acd8;
    }
    var_7 = (*(type_4 *)PTR_strchr_000312e8)(var_5);
    if (var_7 == 0) {
      var_8 = LONGINT_INVALID;
      goto LAB_0001acd8;
    }
    tmp = 1;
    ppcVar6 = (char **)(int)*var_3;
    var_8 = LONGINT_OK;
  }
  else {
    if (*piVar4 == 0) {
      var_8 = LONGINT_OK;
    }
    else {
      if (*piVar4 != 0x22) {
        var_8 = LONGINT_INVALID;
        goto LAB_0001acd8;
      }
      var_8 = LONGINT_OVERFLOW;
    }
    if (var_5 == (char *)0x0) {
      *val = tmp;
      goto LAB_0001acd8;
    }
    var_6 = (char **)(int)*var_3;
    ppcVar6 = var_6;
    if (var_6 == (char **)0x0) {
      *val = tmp;
      goto LAB_0001acd8;
    }
  }
  var_6 = ppcVar6;
  var_7 = (*(type_4 *)PTR_strchr_000312e8)(var_5);
  if (var_7 == 0) {
    *val = tmp;
    var_8 = var_8 | var_9;
  }
  else {
    if (((int)ppcVar6 - 0x45U & 0xff) < 0x30) {
                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */
                    /* WARNING: Treating indirect jump as call */
      var_8 = (*(type_4 *)(&_gp + *(int *)(var_1 +
                                         ((int)ppcVar6 - 0x45U & 0xff) * 4 + 0x90)))();
      return var_8;
    }
    var_6 = (char **)0x400;
    if (((int)ppcVar6 - 0x42U & 0xff) < 0x36) {
                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */
                    /* WARNING: Treating indirect jump as call */
      var_8 = (*(type_4 *)(&_gp + *(int *)(var_1 +
                                         ((int)ppcVar6 - 0x42U & 0xff) * 4 + 0x150)))();
      return var_8;
    }
    *val = tmp;
    var_8 = var_8 | var_9;
  }
LAB_0001acd8:
  if (var_10 == *(type_3 **)PTR___stack_chk_guard_00031344) {
    return var_8;
  }
  (*(type_4 *)PTR___stack_chk_fail_0003132c)();
  var_7 = var_11 + -1;
  if (var_11 == 0) {
    return LONGINT_OK;
  }
  ppcVar6 = (char **)var_10[1];
  var_12 = *var_10;
  var_8 = LONGINT_OK;
  do {
    var_16 = false;
    if (var_12 == 0) {
      ppcVar8 = ppcVar6;
      uVar2 = (int)var_6 >> 0x1f;
      if ((int)var_6 < 0) {
LAB_0001b0b8:
        if ((int)(var_13(ppcVar8) * (type_2)uVar2 + (var_13(ppcVar6) * var_13(var_6) >> 0x20)
                 >> 0x20) != 0) goto LAB_0001b134;
      }
    }
    else {
      ppcVar8 = var_6;
      uVar2 = var_12;
      if (-1 < (int)var_6) goto LAB_0001b0b8;
LAB_0001b134:
      var_16 = true;
    }
    var_15 = ((int)var_6 >> 0x1f) * (int)ppcVar6;
    if (var_16) {
      ppcVar6 = (char **)0xffffffff;
      var_12 = 0xffffffff;
    }
    else {
      var_14 = var_13(ppcVar6);
      ppcVar6 = (char **)(var_14 * var_13(var_6));
      var_12 = var_15 + (int)var_6 * var_12 + (int)(var_14 * var_13(var_6) >> 0x20);
    }
    var_7 = var_7 + -1;
    var_8 = var_8 | var_16;
    if (var_7 == -1) {
      var_10[1] = (type_3)ppcVar6;
      *var_10 = var_12;
      return var_8;
    }
  } while( true );
}


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

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

{
  ulonglong uVar1;
  uint uVar2;
  bool bVar3;
  int *piVar4;
  uint uVar5;
  undefined4 *puVar6;
  int iVar7;
  undefined4 *puVar8;
  undefined4 *puVar9;
  uint uVar10;
  char *pcVar11;
  int iVar12;
  undefined4 uStack_2c;
  undefined4 local_28;
  uint *local_24;
  
  local_24 = *(uint **)PTR___stack_chk_guard_00031344;
  if (0x24 < param_3) {
    uVar10 = (*(code *)PTR___assert_fail_00031260)
                       (PTR_UINT_00031148 + 100,PTR_UINT_00031148 + 0x54,0x60,
                        PTR_UINT_00031148 + 0x228);
    return uVar10;
  }
  if (param_2 == (undefined4 *)0x0) {
    param_2 = &uStack_2c;
  }
  piVar4 = (int *)(*(code *)PTR___errno_location_000312cc)();
  *piVar4 = 0;
  puVar9 = param_2;
  local_28 = (*(code *)PTR_strtol_00031268)(param_1);
  pcVar11 = (char *)*param_2;
  if (pcVar11 == param_1) {
    uVar10 = 4;
    if (param_5 == 0) goto LAB_0001acd8;
    puVar9 = (undefined4 *)(int)*param_1;
    if (puVar9 == (undefined4 *)0x0) {
      uVar10 = 4;
      goto LAB_0001acd8;
    }
    iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);
    if (iVar7 == 0) {
      uVar10 = 4;
      goto LAB_0001acd8;
    }
    local_28 = 1;
    puVar6 = (undefined4 *)(int)*pcVar11;
    uVar10 = 0;
  }
  else {
    if (*piVar4 == 0) {
      uVar10 = 0;
    }
    else {
      if (*piVar4 != 0x22) {
        uVar10 = 4;
        goto LAB_0001acd8;
      }
      uVar10 = 1;
    }
    if (param_5 == 0) {
      *param_4 = local_28;
      goto LAB_0001acd8;
    }
    puVar9 = (undefined4 *)(int)*pcVar11;
    puVar6 = puVar9;
    if (puVar9 == (undefined4 *)0x0) {
      *param_4 = local_28;
      goto LAB_0001acd8;
    }
  }
  puVar9 = puVar6;
  iVar7 = (*(code *)PTR_strchr_000312e8)(param_5);
  if (iVar7 == 0) {
    *param_4 = local_28;
    uVar10 = uVar10 | 2;
  }
  else {
    if (((int)puVar6 - 0x45U & 0xff) < 0x30) {
                    /* WARNING: Could not emulate address calculation at 0x0001aca4 */
                    /* WARNING: Treating indirect jump as call */
      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +
                                           ((int)puVar6 - 0x45U & 0xff) * 4 + 0x90)))();
      return uVar10;
    }
    puVar9 = (undefined4 *)0x400;
    if (((int)puVar6 - 0x42U & 0xff) < 0x36) {
                    /* WARNING: Could not emulate address calculation at 0x0001ada8 */
                    /* WARNING: Treating indirect jump as call */
      uVar10 = (*(code *)(&_gp_1 + *(int *)(PTR_UINT_00031148 +
                                           ((int)puVar6 - 0x42U & 0xff) * 4 + 0x150)))();
      return uVar10;
    }
    *param_4 = local_28;
    uVar10 = uVar10 | 2;
  }
LAB_0001acd8:
  if (local_24 == *(uint **)PTR___stack_chk_guard_00031344) {
    return uVar10;
  }
  (*(code *)PTR___stack_chk_fail_0003132c)();
  iVar7 = param_3 - 1;
  if (param_3 == 0) {
    return 0;
  }
  puVar6 = (undefined4 *)local_24[1];
  uVar5 = *local_24;
  uVar10 = 0;
  do {
    bVar3 = false;
    if (uVar5 == 0) {
      puVar8 = puVar6;
      uVar2 = (int)puVar9 >> 0x1f;
      if ((int)puVar9 < 0) {
LAB_0001b0b8:
        if ((int)(ZEXT48(puVar8) * (ulonglong)uVar2 + (ZEXT48(puVar6) * ZEXT48(puVar9) >> 0x20) >>
                 0x20) != 0) goto LAB_0001b134;
      }
    }
    else {
      puVar8 = puVar9;
      uVar2 = uVar5;
      if (-1 < (int)puVar9) goto LAB_0001b0b8;
LAB_0001b134:
      bVar3 = true;
    }
    iVar12 = ((int)puVar9 >> 0x1f) * (int)puVar6;
    if (bVar3) {
      puVar6 = (undefined4 *)0xffffffff;
      uVar5 = 0xffffffff;
    }
    else {
      uVar1 = ZEXT48(puVar6);
      puVar6 = (undefined4 *)(uVar1 * ZEXT48(puVar9));
      uVar5 = iVar12 + (int)puVar9 * uVar5 + (int)(uVar1 * ZEXT48(puVar9) >> 0x20);
    }
    iVar7 = iVar7 + -1;
    uVar10 = uVar10 | bVar3;
    if (iVar7 == -1) {
      local_24[1] = (uint)puVar6;
      *local_24 = uVar5;
      return uVar10;
    }
  } while( true );
}

