
int getDigits(char *zDate,char *zFormat,...)

{
  byte bVar1;
  byte bVar2;
  bool bVar3;
  char *pcVar4;
  undefined *puVar5;
  int iVar6;
  int iVar7;
  int *piVar8;
  undefined4 in_a2;
  char cVar9;
  undefined4 in_a3;
  int iVar10;
  byte *pbVar11;
  undefined4 *puVar12;
  int iVar13;
  undefined *puVar14;
  undefined4 local_res8 [2];
  va_list ap;
  
  puVar5 = PTR___stack_chk_guard_000f5568;
  puVar14 = PTR_yy_shift_ofst_376__000f52d4;
  local_res8[0] = in_a2;
  bVar3 = false;
  local_res8[1] = in_a3;
  iVar6 = 0;
  iVar7 = *(int *)PTR___stack_chk_guard_000f5568;
  cVar9 = *zFormat;
  iVar13 = (int)(char)(zFormat[1] + -0x30);
  puVar12 = local_res8;
  if (cVar9 == '0') goto LAB_000265d4;
  while( true ) {
    bVar1 = *zDate;
    iVar10 = 0;
    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;
    pbVar11 = (byte *)zDate + (byte)(cVar9 - 0x31) + 1;
    while( true ) {
      zDate = (char *)((byte *)zDate + 1);
      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;
      if ((byte *)zDate == pbVar11) break;
      bVar1 = *zDate;
      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;
    }
    if ((iVar10 < iVar13) ||
       ((int)(uint)*(ushort *)(puVar14 + (zFormat[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;
    bVar1 = zFormat[3];
    pcVar4 = zFormat;
    while( true ) {
      if (bVar1 == 0) {
        ap = local_res8;
        if (bVar3) {
          ap = puVar12;
        }
        iVar6 = iVar6 + 1;
                    /* WARNING: Load size is inaccurate */
        **ap = iVar10;
        goto LAB_00026600;
      }
      bVar2 = *zDate;
      zDate = (char *)((byte *)zDate + 1);
      if (bVar2 != bVar1) goto LAB_00026600;
      piVar8 = (int *)*puVar12;
      zFormat = pcVar4 + 4;
      iVar6 = iVar6 + 1;
      puVar12 = puVar12 + 1;
      *piVar8 = iVar10;
      bVar3 = true;
      cVar9 = *zFormat;
      iVar13 = (int)(char)(pcVar4[5] + -0x30);
      if (cVar9 != '0') break;
LAB_000265d4:
      if (0 < iVar13) goto LAB_00026600;
      bVar1 = zFormat[3];
      iVar10 = 0;
      pcVar4 = zFormat;
    }
  }
LAB_00026600:
  if (iVar7 != *(int *)puVar5) {
    puVar14 = PTR___stack_chk_fail_000f5540;
    (*(code *)PTR___stack_chk_fail_000f5540)();
                    /* WARNING: Could not recover jumptable at 0x0002663c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);
    return iVar6;
  }
  return iVar6;
}



int FUN_00026490(byte *param_1,char *param_2,undefined4 param_3,undefined4 param_4)

{
  byte bVar1;
  byte bVar2;
  bool bVar3;
  char *pcVar4;
  undefined *puVar5;
  int iVar6;
  int iVar7;
  int *piVar8;
  char cVar9;
  int iVar10;
  byte *pbVar11;
  undefined4 *puVar12;
  int iVar13;
  undefined *puVar14;
  undefined4 local_res8 [2];
  undefined4 *local_10;
  
  puVar5 = PTR___stack_chk_guard_000f5568;
  puVar14 = PTR_DAT_000f52d4;
  local_res8[0] = param_3;
  bVar3 = false;
  local_res8[1] = param_4;
  iVar6 = 0;
  iVar7 = *(int *)PTR___stack_chk_guard_000f5568;
  cVar9 = *param_2;
  iVar13 = (int)(char)(param_2[1] + -0x30);
  puVar12 = local_res8;
  if (cVar9 == '0') goto LAB_000265d4;
  while( true ) {
    bVar1 = *param_1;
    iVar10 = 0;
    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;
    pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;
    while( true ) {
      param_1 = param_1 + 1;
      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;
      if (param_1 == pbVar11) break;
      bVar1 = *param_1;
      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;
    }
    if ((iVar10 < iVar13) ||
       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;
    bVar1 = param_2[3];
    pcVar4 = param_2;
    while( true ) {
      if (bVar1 == 0) {
        local_10 = local_res8;
        if (bVar3) {
          local_10 = puVar12;
        }
        iVar6 = iVar6 + 1;
        *(int *)*local_10 = iVar10;
        goto LAB_00026600;
      }
      bVar2 = *param_1;
      param_1 = param_1 + 1;
      if (bVar2 != bVar1) goto LAB_00026600;
      piVar8 = (int *)*puVar12;
      param_2 = pcVar4 + 4;
      iVar6 = iVar6 + 1;
      puVar12 = puVar12 + 1;
      *piVar8 = iVar10;
      bVar3 = true;
      cVar9 = *param_2;
      iVar13 = (int)(char)(pcVar4[5] + -0x30);
      if (cVar9 != '0') break;
LAB_000265d4:
      if (0 < iVar13) goto LAB_00026600;
      bVar1 = param_2[3];
      iVar10 = 0;
      pcVar4 = param_2;
    }
  }
LAB_00026600:
  if (iVar7 != *(int *)puVar5) {
    puVar14 = PTR___stack_chk_fail_000f5540;
    (*(code *)PTR___stack_chk_fail_000f5540)();
                    /* WARNING: Could not recover jumptable at 0x0002663c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);
    return iVar6;
  }
  return iVar6;
}


lui gp,0xd
addiu gp,gp,0x6e10
addu gp,gp,t9
addiu sp,sp,-0x28
lw t3,-0x7d38(gp)
lw t2,-0x7fcc(gp)
li t4,0x30
lw t6,-0x7fcc(gp)
addiu t7,sp,0x30
sw a2,0x30(sp)
or t5,zero,zero
sw a3,0x34(sp)
or v0,zero,zero
lw v1,0x0(t3)
addiu t2,t2,0x24ac
lbu a2,0x0(a1)
addiu t6,t6,-0x1a5c
sw gp,0x10(sp)
sw v1,0x1c(sp)
lbu v1,0x1(a1)
addiu t1,a2,-0x31
sw ra,0x24(sp)
sw t7,0x18(sp)
andi t1,t1,0xff
addiu v1,v1,-0x30
beq a2,t4,0x000265d4
_seb t8,v1
lb t0,0x0(a0)
andi v1,t0,0xff
addu v1,t2,v1
lbu v1,0x0(v1)
andi v1,v1,0x4
beq v1,zero,0x00026600
_or a3,zero,zero
addiu t1,t1,0x1
b 0x00026540
_addu t1,a0,t1
lb t0,0x0(a0)
andi a2,t0,0xff
addu a2,t2,a2
lbu a2,0x0(a2)
andi a2,a2,0x4
beq a2,zero,0x00026600
_nop
sll v1,a3,0x2
addiu a0,a0,0x1
addu v1,v1,a3
sll v1,v1,0x1
addu v1,v1,t0
bne a0,t1,0x00026524
_addiu a3,v1,-0x30
slt v1,a3,t8
bne v1,zero,0x00026600
_nop
lb v1,0x2(a1)
addiu v1,v1,-0x61
sll v1,v1,0x1
addu v1,v1,t6
lhu v1,0x0(v1)
slt v1,v1,a3
bne v1,zero,0x00026600
_nop
lb v1,0x3(a1)
beq v1,zero,0x000265e8
_nop
lb a2,0x0(a0)
bne a2,v1,0x00026600
_addiu a0,a0,0x1
lw v1,0x0(t7)
addiu a1,a1,0x4
addiu v0,v0,0x1
addiu t7,t7,0x4
sw a3,0x0(v1)
li t5,0x1
lbu a2,0x0(a1)
lbu v1,0x1(a1)
addiu t1,a2,-0x31
addiu v1,v1,-0x30
andi t1,t1,0xff
bne a2,t4,0x000264fc
_seb t8,v1
bgtz t8,0x00026600
_nop
lb v1,0x3(a1)
bne v1,zero,0x00026594
_or a3,zero,zero
bne t5,zero,0x00026618
_nop
lw v1,0x18(sp)
addiu v0,v0,0x1
lw v1,0x0(v1)
sw a3,0x0(v1)
lw a0,0x1c(sp)
lw v1,0x0(t3)
bne a0,v1,0x00026620
_lw ra,0x24(sp)
jr ra
_addiu sp,sp,0x28
b 0x000265f0
_sw t7,0x18(sp)
lw t9,-0x7d60(gp)
jalr t9
_nop
(translation_unit "int FUN_00026490(byte *param_1,char *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  byte bVar2;\n  bool bVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  int *piVar8;\n  char cVar9;\n  int iVar10;\n  byte *pbVar11;\n  undefined4 *puVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 local_res8 [2];\n  undefined4 *local_10;\n  \n  puVar5 = PTR___stack_chk_guard_000f5568;\n  puVar14 = PTR_DAT_000f52d4;\n  local_res8[0] = param_3;\n  bVar3 = false;\n  local_res8[1] = param_4;\n  iVar6 = 0;\n  iVar7 = *(int *)PTR___stack_chk_guard_000f5568;\n  cVar9 = *param_2;\n  iVar13 = (int)(char)(param_2[1] + -0x30);\n  puVar12 = local_res8;\n  if (cVar9 == '0') goto LAB_000265d4;\n  while( true ) {\n    bVar1 = *param_1;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = param_2[3];\n    pcVar4 = param_2;\n    while( true ) {\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }\n  }\nLAB_00026600:\n  if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    /* WARNING: Could not recover jumptable at 0x0002663c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }\n  return iVar6;\n}\n\n" (function_definition "int FUN_00026490(byte *param_1,char *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  byte bVar2;\n  bool bVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  int *piVar8;\n  char cVar9;\n  int iVar10;\n  byte *pbVar11;\n  undefined4 *puVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 local_res8 [2];\n  undefined4 *local_10;\n  \n  puVar5 = PTR___stack_chk_guard_000f5568;\n  puVar14 = PTR_DAT_000f52d4;\n  local_res8[0] = param_3;\n  bVar3 = false;\n  local_res8[1] = param_4;\n  iVar6 = 0;\n  iVar7 = *(int *)PTR___stack_chk_guard_000f5568;\n  cVar9 = *param_2;\n  iVar13 = (int)(char)(param_2[1] + -0x30);\n  puVar12 = local_res8;\n  if (cVar9 == '0') goto LAB_000265d4;\n  while( true ) {\n    bVar1 = *param_1;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = param_2[3];\n    pcVar4 = param_2;\n    while( true ) {\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }\n  }\nLAB_00026600:\n  if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    /* WARNING: Could not recover jumptable at 0x0002663c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }\n  return iVar6;\n}" primitive_type (function_declarator "FUN_00026490(byte *param_1,char *param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(byte *param_1,char *param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  bool bVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  int *piVar8;\n  char cVar9;\n  int iVar10;\n  byte *pbVar11;\n  undefined4 *puVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 local_res8 [2];\n  undefined4 *local_10;\n  \n  puVar5 = PTR___stack_chk_guard_000f5568;\n  puVar14 = PTR_DAT_000f52d4;\n  local_res8[0] = param_3;\n  bVar3 = false;\n  local_res8[1] = param_4;\n  iVar6 = 0;\n  iVar7 = *(int *)PTR___stack_chk_guard_000f5568;\n  cVar9 = *param_2;\n  iVar13 = (int)(char)(param_2[1] + -0x30);\n  puVar12 = local_res8;\n  if (cVar9 == '0') goto LAB_000265d4;\n  while( true ) {\n    bVar1 = *param_1;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = param_2[3];\n    pcVar4 = param_2;\n    while( true ) {\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }\n  }\nLAB_00026600:\n  if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    /* WARNING: Could not recover jumptable at 0x0002663c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }\n  return iVar6;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "char cVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "byte *pbVar11;" type_identifier (pointer_declarator "*pbVar11" * identifier) ;) (declaration "undefined4 *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "undefined *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "undefined4 local_res8 [2];" type_identifier (array_declarator "local_res8 [2]" identifier [ number_literal ]) ;) (declaration "undefined4 *local_10;" type_identifier (pointer_declarator "*local_10" * identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000f5568" identifier = identifier) ;) (expression_statement "puVar14 = PTR_DAT_000f52d4;" (assignment_expression "puVar14 = PTR_DAT_000f52d4" identifier = identifier) ;) (expression_statement "local_res8[0] = param_3;" (assignment_expression "local_res8[0] = param_3" (subscript_expression "local_res8[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) (expression_statement "local_res8[1] = param_4;" (assignment_expression "local_res8[1] = param_4" (subscript_expression "local_res8[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar7 = *(int *)PTR___stack_chk_guard_000f5568;" (assignment_expression "iVar7 = *(int *)PTR___stack_chk_guard_000f5568" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000f5568" * (cast_expression "(int *)PTR___stack_chk_guard_000f5568" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "cVar9 = *param_2;" (assignment_expression "cVar9 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar13 = (int)(char)(param_2[1] + -0x30);" (assignment_expression "iVar13 = (int)(char)(param_2[1] + -0x30)" identifier = (cast_expression "(int)(char)(param_2[1] + -0x30)" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)(param_2[1] + -0x30)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_2[1] + -0x30)" ( (binary_expression "param_2[1] + -0x30" (subscript_expression "param_2[1]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "puVar12 = local_res8;" (assignment_expression "puVar12 = local_res8" identifier = identifier) ;) (if_statement "if (cVar9 == '0') goto LAB_000265d4;" if (parenthesized_expression "(cVar9 == '0')" ( (binary_expression "cVar9 == '0'" identifier == (char_literal "'0'" ' character ')) )) (goto_statement "goto LAB_000265d4;" goto statement_identifier ;)) (while_statement "while( true ) {\n    bVar1 = *param_1;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = param_2[3];\n    pcVar4 = param_2;\n    while( true ) {\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    bVar1 = *param_1;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = param_2[3];\n    pcVar4 = param_2;\n    while( true ) {\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }\n  }" { (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (if_statement "if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;" if (parenthesized_expression "((puVar14[bVar1 + 0x24ac] & 4) == 0)" ( (binary_expression "(puVar14[bVar1 + 0x24ac] & 4) == 0" (parenthesized_expression "(puVar14[bVar1 + 0x24ac] & 4)" ( (binary_expression "puVar14[bVar1 + 0x24ac] & 4" (subscript_expression "puVar14[bVar1 + 0x24ac]" identifier [ (binary_expression "bVar1 + 0x24ac" identifier + number_literal) ]) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;" (assignment_expression "pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1" identifier = (binary_expression "param_1 + (byte)(cVar9 - 0x31) + 1" (binary_expression "param_1 + (byte)(cVar9 - 0x31)" identifier + (call_expression "(byte)(cVar9 - 0x31)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar9 - 0x31)" ( (binary_expression "cVar9 - 0x31" identifier - number_literal) )))) + number_literal)) ;) (while_statement "while( true ) {\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;" (assignment_expression "iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30" identifier = (binary_expression "iVar10 * 10 + (int)(char)bVar1 + -0x30" (binary_expression "iVar10 * 10 + (int)(char)bVar1" (binary_expression "iVar10 * 10" identifier * number_literal) + (cast_expression "(int)(char)bVar1" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier))) + number_literal)) ;) (if_statement "if (param_1 == pbVar11) break;" if (parenthesized_expression "(param_1 == pbVar11)" ( (binary_expression "param_1 == pbVar11" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;" if (parenthesized_expression "((puVar14[bVar1 + 0x24ac] & 4) == 0)" ( (binary_expression "(puVar14[bVar1 + 0x24ac] & 4) == 0" (parenthesized_expression "(puVar14[bVar1 + 0x24ac] & 4)" ( (binary_expression "puVar14[bVar1 + 0x24ac] & 4" (subscript_expression "puVar14[bVar1 + 0x24ac]" identifier [ (binary_expression "bVar1 + 0x24ac" identifier + number_literal) ]) & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00026600;" goto statement_identifier ;)) })) (if_statement "if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;" if (parenthesized_expression "((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10))" ( (binary_expression "(iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)" (parenthesized_expression "(iVar10 < iVar13)" ( (binary_expression "iVar10 < iVar13" identifier < identifier) )) || (parenthesized_expression "((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)" ( (binary_expression "(int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10" (binary_expression "(int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c)" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c)" ( (binary_expression "puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c" (binary_expression "puVar14 + (param_2[2] + -0x61) * 2" identifier + (binary_expression "(param_2[2] + -0x61) * 2" (parenthesized_expression "(param_2[2] + -0x61)" ( (binary_expression "param_2[2] + -0x61" (subscript_expression "param_2[2]" identifier [ number_literal ]) + number_literal) )) * number_literal)) + number_literal) )))) < identifier) ))) )) (break_statement "break;" break ;)) (expression_statement "bVar1 = param_2[3];" (assignment_expression "bVar1 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "pcVar4 = param_2;" (assignment_expression "pcVar4 = param_2" identifier = identifier) ;) (while_statement "while( true ) {\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }" { (if_statement "if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }" { (expression_statement "local_10 = local_res8;" (assignment_expression "local_10 = local_res8" identifier = identifier) ;) (if_statement "if (bVar3) {\n          local_10 = puVar12;\n        }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n          local_10 = puVar12;\n        }" { (expression_statement "local_10 = puVar12;" (assignment_expression "local_10 = puVar12" identifier = identifier) ;) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)*local_10 = iVar10;" (assignment_expression "*(int *)*local_10 = iVar10" (pointer_expression "*(int *)*local_10" * (cast_expression "(int *)*local_10" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_10" * identifier))) = identifier) ;) (goto_statement "goto LAB_00026600;" goto statement_identifier ;) })) (expression_statement "bVar2 = *param_1;" (assignment_expression "bVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (bVar2 != bVar1) goto LAB_00026600;" if (parenthesized_expression "(bVar2 != bVar1)" ( (binary_expression "bVar2 != bVar1" identifier != identifier) )) (goto_statement "goto LAB_00026600;" goto statement_identifier ;)) (expression_statement "piVar8 = (int *)*puVar12;" (assignment_expression "piVar8 = (int *)*puVar12" identifier = (cast_expression "(int *)*puVar12" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar12" * identifier))) ;) (expression_statement "param_2 = pcVar4 + 4;" (assignment_expression "param_2 = pcVar4 + 4" identifier = (binary_expression "pcVar4 + 4" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "puVar12 = puVar12 + 1;" (assignment_expression "puVar12 = puVar12 + 1" identifier = (binary_expression "puVar12 + 1" identifier + number_literal)) ;) (expression_statement "*piVar8 = iVar10;" (assignment_expression "*piVar8 = iVar10" (pointer_expression "*piVar8" * identifier) = identifier) ;) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) (expression_statement "cVar9 = *param_2;" (assignment_expression "cVar9 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar13 = (int)(char)(pcVar4[5] + -0x30);" (assignment_expression "iVar13 = (int)(char)(pcVar4[5] + -0x30)" identifier = (cast_expression "(int)(char)(pcVar4[5] + -0x30)" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)(pcVar4[5] + -0x30)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(pcVar4[5] + -0x30)" ( (binary_expression "pcVar4[5] + -0x30" (subscript_expression "pcVar4[5]" identifier [ number_literal ]) + number_literal) ))))) ;) (if_statement "if (cVar9 != '0') break;" if (parenthesized_expression "(cVar9 != '0')" ( (binary_expression "cVar9 != '0'" identifier != (char_literal "'0'" ' character ')) )) (break_statement "break;" break ;)) (labeled_statement "LAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;" statement_identifier : (if_statement "if (0 < iVar13) goto LAB_00026600;" if (parenthesized_expression "(0 < iVar13)" ( (binary_expression "0 < iVar13" number_literal < identifier) )) (goto_statement "goto LAB_00026600;" goto statement_identifier ;))) (expression_statement "bVar1 = param_2[3];" (assignment_expression "bVar1 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "pcVar4 = param_2;" (assignment_expression "pcVar4 = param_2" identifier = identifier) ;) })) })) (labeled_statement "LAB_00026600:\n  if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    /* WARNING: Could not recover jumptable at 0x0002663c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }" statement_identifier : (if_statement "if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    /* WARNING: Could not recover jumptable at 0x0002663c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }" if (parenthesized_expression "(iVar7 != *(int *)puVar5)" ( (binary_expression "iVar7 != *(int *)puVar5" identifier != (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    /* WARNING: Could not recover jumptable at 0x0002663c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }" { (expression_statement "puVar14 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar14 = PTR___stack_chk_fail_000f5540" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" * (cast_expression "(code *)PTR___stack_chk_fail_000f5540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) comment comment (expression_statement "iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);" (assignment_expression "iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e)" identifier = (call_expression "(**(code **)(puVar14 + 0xcef0c))(0x1e)" (parenthesized_expression "(**(code **)(puVar14 + 0xcef0c))" ( (pointer_expression "**(code **)(puVar14 + 0xcef0c)" * (pointer_expression "*(code **)(puVar14 + 0xcef0c)" * (cast_expression "(code **)(puVar14 + 0xcef0c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0xcef0c)" ( (binary_expression "puVar14 + 0xcef0c" identifier + number_literal) ))))) )) (argument_list "(0x1e)" ( number_literal )))) ;) (return_statement "return iVar6;" return identifier ;) }))) (return_statement "return iVar6;" return identifier ;) })))
(translation_unit "int getDigits(char *zDate,char *zFormat,...)\n\n{\n  byte bVar1;\n  byte bVar2;\n  bool bVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  int *piVar8;\n  undefined4 in_a2;\n  char cVar9;\n  undefined4 in_a3;\n  int iVar10;\n  byte *pbVar11;\n  undefined4 *puVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 local_res8 [2];\n  va_list ap;\n  \n  puVar5 = PTR___stack_chk_guard_000f5568;\n  puVar14 = PTR_yy_shift_ofst_376__000f52d4;\n  local_res8[0] = in_a2;\n  bVar3 = false;\n  local_res8[1] = in_a3;\n  iVar6 = 0;\n  iVar7 = *(int *)PTR___stack_chk_guard_000f5568;\n  cVar9 = *zFormat;\n  iVar13 = (int)(char)(zFormat[1] + -0x30);\n  puVar12 = local_res8;\n  if (cVar9 == '0') goto LAB_000265d4;\n  while( true ) {\n    bVar1 = *zDate;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = (byte *)zDate + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      zDate = (char *)((byte *)zDate + 1);\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if ((byte *)zDate == pbVar11) break;\n      bVar1 = *zDate;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (zFormat[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = zFormat[3];\n    pcVar4 = zFormat;\n    while( true ) {\n      if (bVar1 == 0) {\n        ap = local_res8;\n        if (bVar3) {\n          ap = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n                    /* WARNING: Load size is inaccurate */\n        **ap = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *zDate;\n      zDate = (char *)((byte *)zDate + 1);\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      zFormat = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *zFormat;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = zFormat[3];\n      iVar10 = 0;\n      pcVar4 = zFormat;\n    }\n  }\nLAB_00026600:\n  if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    /* WARNING: Could not recover jumptable at 0x0002663c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }\n  return iVar6;\n}\n\n" (function_definition "int getDigits(char *zDate,char *zFormat,...)\n\n{\n  byte bVar1;\n  byte bVar2;\n  bool bVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  int *piVar8;\n  undefined4 in_a2;\n  char cVar9;\n  undefined4 in_a3;\n  int iVar10;\n  byte *pbVar11;\n  undefined4 *puVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 local_res8 [2];\n  va_list ap;\n  \n  puVar5 = PTR___stack_chk_guard_000f5568;\n  puVar14 = PTR_yy_shift_ofst_376__000f52d4;\n  local_res8[0] = in_a2;\n  bVar3 = false;\n  local_res8[1] = in_a3;\n  iVar6 = 0;\n  iVar7 = *(int *)PTR___stack_chk_guard_000f5568;\n  cVar9 = *zFormat;\n  iVar13 = (int)(char)(zFormat[1] + -0x30);\n  puVar12 = local_res8;\n  if (cVar9 == '0') goto LAB_000265d4;\n  while( true ) {\n    bVar1 = *zDate;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = (byte *)zDate + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      zDate = (char *)((byte *)zDate + 1);\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if ((byte *)zDate == pbVar11) break;\n      bVar1 = *zDate;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (zFormat[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = zFormat[3];\n    pcVar4 = zFormat;\n    while( true ) {\n      if (bVar1 == 0) {\n        ap = local_res8;\n        if (bVar3) {\n          ap = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n                    /* WARNING: Load size is inaccurate */\n        **ap = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *zDate;\n      zDate = (char *)((byte *)zDate + 1);\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      zFormat = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *zFormat;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = zFormat[3];\n      iVar10 = 0;\n      pcVar4 = zFormat;\n    }\n  }\nLAB_00026600:\n  if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    /* WARNING: Could not recover jumptable at 0x0002663c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }\n  return iVar6;\n}" primitive_type (function_declarator "getDigits(char *zDate,char *zFormat,...)" identifier (parameter_list "(char *zDate,char *zFormat,...)" ( (parameter_declaration "char *zDate" primitive_type (pointer_declarator "*zDate" * identifier)) , (parameter_declaration "char *zFormat" primitive_type (pointer_declarator "*zFormat" * identifier)) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  bool bVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  int *piVar8;\n  undefined4 in_a2;\n  char cVar9;\n  undefined4 in_a3;\n  int iVar10;\n  byte *pbVar11;\n  undefined4 *puVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 local_res8 [2];\n  va_list ap;\n  \n  puVar5 = PTR___stack_chk_guard_000f5568;\n  puVar14 = PTR_yy_shift_ofst_376__000f52d4;\n  local_res8[0] = in_a2;\n  bVar3 = false;\n  local_res8[1] = in_a3;\n  iVar6 = 0;\n  iVar7 = *(int *)PTR___stack_chk_guard_000f5568;\n  cVar9 = *zFormat;\n  iVar13 = (int)(char)(zFormat[1] + -0x30);\n  puVar12 = local_res8;\n  if (cVar9 == '0') goto LAB_000265d4;\n  while( true ) {\n    bVar1 = *zDate;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = (byte *)zDate + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      zDate = (char *)((byte *)zDate + 1);\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if ((byte *)zDate == pbVar11) break;\n      bVar1 = *zDate;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (zFormat[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = zFormat[3];\n    pcVar4 = zFormat;\n    while( true ) {\n      if (bVar1 == 0) {\n        ap = local_res8;\n        if (bVar3) {\n          ap = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n                    /* WARNING: Load size is inaccurate */\n        **ap = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *zDate;\n      zDate = (char *)((byte *)zDate + 1);\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      zFormat = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *zFormat;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = zFormat[3];\n      iVar10 = 0;\n      pcVar4 = zFormat;\n    }\n  }\nLAB_00026600:\n  if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    /* WARNING: Could not recover jumptable at 0x0002663c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }\n  return iVar6;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "undefined4 in_a2;" type_identifier identifier ;) (declaration "char cVar9;" primitive_type identifier ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "byte *pbVar11;" type_identifier (pointer_declarator "*pbVar11" * identifier) ;) (declaration "undefined4 *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "undefined *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "undefined4 local_res8 [2];" type_identifier (array_declarator "local_res8 [2]" identifier [ number_literal ]) ;) (declaration "va_list ap;" type_identifier identifier ;) (expression_statement "puVar5 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000f5568" identifier = identifier) ;) (expression_statement "puVar14 = PTR_yy_shift_ofst_376__000f52d4;" (assignment_expression "puVar14 = PTR_yy_shift_ofst_376__000f52d4" identifier = identifier) ;) (expression_statement "local_res8[0] = in_a2;" (assignment_expression "local_res8[0] = in_a2" (subscript_expression "local_res8[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) (expression_statement "local_res8[1] = in_a3;" (assignment_expression "local_res8[1] = in_a3" (subscript_expression "local_res8[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar7 = *(int *)PTR___stack_chk_guard_000f5568;" (assignment_expression "iVar7 = *(int *)PTR___stack_chk_guard_000f5568" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000f5568" * (cast_expression "(int *)PTR___stack_chk_guard_000f5568" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "cVar9 = *zFormat;" (assignment_expression "cVar9 = *zFormat" identifier = (pointer_expression "*zFormat" * identifier)) ;) (expression_statement "iVar13 = (int)(char)(zFormat[1] + -0x30);" (assignment_expression "iVar13 = (int)(char)(zFormat[1] + -0x30)" identifier = (cast_expression "(int)(char)(zFormat[1] + -0x30)" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)(zFormat[1] + -0x30)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(zFormat[1] + -0x30)" ( (binary_expression "zFormat[1] + -0x30" (subscript_expression "zFormat[1]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "puVar12 = local_res8;" (assignment_expression "puVar12 = local_res8" identifier = identifier) ;) (if_statement "if (cVar9 == '0') goto LAB_000265d4;" if (parenthesized_expression "(cVar9 == '0')" ( (binary_expression "cVar9 == '0'" identifier == (char_literal "'0'" ' character ')) )) (goto_statement "goto LAB_000265d4;" goto statement_identifier ;)) (while_statement "while( true ) {\n    bVar1 = *zDate;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = (byte *)zDate + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      zDate = (char *)((byte *)zDate + 1);\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if ((byte *)zDate == pbVar11) break;\n      bVar1 = *zDate;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (zFormat[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = zFormat[3];\n    pcVar4 = zFormat;\n    while( true ) {\n      if (bVar1 == 0) {\n        ap = local_res8;\n        if (bVar3) {\n          ap = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n                    /* WARNING: Load size is inaccurate */\n        **ap = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *zDate;\n      zDate = (char *)((byte *)zDate + 1);\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      zFormat = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *zFormat;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = zFormat[3];\n      iVar10 = 0;\n      pcVar4 = zFormat;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    bVar1 = *zDate;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = (byte *)zDate + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      zDate = (char *)((byte *)zDate + 1);\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if ((byte *)zDate == pbVar11) break;\n      bVar1 = *zDate;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (zFormat[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = zFormat[3];\n    pcVar4 = zFormat;\n    while( true ) {\n      if (bVar1 == 0) {\n        ap = local_res8;\n        if (bVar3) {\n          ap = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n                    /* WARNING: Load size is inaccurate */\n        **ap = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *zDate;\n      zDate = (char *)((byte *)zDate + 1);\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      zFormat = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *zFormat;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = zFormat[3];\n      iVar10 = 0;\n      pcVar4 = zFormat;\n    }\n  }" { (expression_statement "bVar1 = *zDate;" (assignment_expression "bVar1 = *zDate" identifier = (pointer_expression "*zDate" * identifier)) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (if_statement "if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;" if (parenthesized_expression "((puVar14[bVar1 + 0x24ac] & 4) == 0)" ( (binary_expression "(puVar14[bVar1 + 0x24ac] & 4) == 0" (parenthesized_expression "(puVar14[bVar1 + 0x24ac] & 4)" ( (binary_expression "puVar14[bVar1 + 0x24ac] & 4" (subscript_expression "puVar14[bVar1 + 0x24ac]" identifier [ (binary_expression "bVar1 + 0x24ac" identifier + number_literal) ]) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pbVar11 = (byte *)zDate + (byte)(cVar9 - 0x31) + 1;" (assignment_expression "pbVar11 = (byte *)zDate + (byte)(cVar9 - 0x31) + 1" identifier = (binary_expression "(byte *)zDate + (byte)(cVar9 - 0x31) + 1" (binary_expression "(byte *)zDate + (byte)(cVar9 - 0x31)" (cast_expression "(byte *)zDate" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + (call_expression "(byte)(cVar9 - 0x31)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar9 - 0x31)" ( (binary_expression "cVar9 - 0x31" identifier - number_literal) )))) + number_literal)) ;) (while_statement "while( true ) {\n      zDate = (char *)((byte *)zDate + 1);\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if ((byte *)zDate == pbVar11) break;\n      bVar1 = *zDate;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      zDate = (char *)((byte *)zDate + 1);\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if ((byte *)zDate == pbVar11) break;\n      bVar1 = *zDate;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }" { (expression_statement "zDate = (char *)((byte *)zDate + 1);" (assignment_expression "zDate = (char *)((byte *)zDate + 1)" identifier = (cast_expression "(char *)((byte *)zDate + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((byte *)zDate + 1)" ( (binary_expression "(byte *)zDate + 1" (cast_expression "(byte *)zDate" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) ;) (expression_statement "iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;" (assignment_expression "iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30" identifier = (binary_expression "iVar10 * 10 + (int)(char)bVar1 + -0x30" (binary_expression "iVar10 * 10 + (int)(char)bVar1" (binary_expression "iVar10 * 10" identifier * number_literal) + (cast_expression "(int)(char)bVar1" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier))) + number_literal)) ;) (if_statement "if ((byte *)zDate == pbVar11) break;" if (parenthesized_expression "((byte *)zDate == pbVar11)" ( (binary_expression "(byte *)zDate == pbVar11" (cast_expression "(byte *)zDate" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == identifier) )) (break_statement "break;" break ;)) (expression_statement "bVar1 = *zDate;" (assignment_expression "bVar1 = *zDate" identifier = (pointer_expression "*zDate" * identifier)) ;) (if_statement "if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;" if (parenthesized_expression "((puVar14[bVar1 + 0x24ac] & 4) == 0)" ( (binary_expression "(puVar14[bVar1 + 0x24ac] & 4) == 0" (parenthesized_expression "(puVar14[bVar1 + 0x24ac] & 4)" ( (binary_expression "puVar14[bVar1 + 0x24ac] & 4" (subscript_expression "puVar14[bVar1 + 0x24ac]" identifier [ (binary_expression "bVar1 + 0x24ac" identifier + number_literal) ]) & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00026600;" goto statement_identifier ;)) })) (if_statement "if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (zFormat[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;" if (parenthesized_expression "((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (zFormat[2] + -0x61) * 2 + -0x1a5c) < iVar10))" ( (binary_expression "(iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (zFormat[2] + -0x61) * 2 + -0x1a5c) < iVar10)" (parenthesized_expression "(iVar10 < iVar13)" ( (binary_expression "iVar10 < iVar13" identifier < identifier) )) || (parenthesized_expression "((int)(uint)*(ushort *)(puVar14 + (zFormat[2] + -0x61) * 2 + -0x1a5c) < iVar10)" ( (binary_expression "(int)(uint)*(ushort *)(puVar14 + (zFormat[2] + -0x61) * 2 + -0x1a5c) < iVar10" (binary_expression "(int)(uint)*(ushort *)(puVar14 + (zFormat[2] + -0x61) * 2 + -0x1a5c)" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(ushort *)(puVar14 + (zFormat[2] + -0x61) * 2 + -0x1a5c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + (zFormat[2] + -0x61) * 2 + -0x1a5c)" ( (binary_expression "puVar14 + (zFormat[2] + -0x61) * 2 + -0x1a5c" (binary_expression "puVar14 + (zFormat[2] + -0x61) * 2" identifier + (binary_expression "(zFormat[2] + -0x61) * 2" (parenthesized_expression "(zFormat[2] + -0x61)" ( (binary_expression "zFormat[2] + -0x61" (subscript_expression "zFormat[2]" identifier [ number_literal ]) + number_literal) )) * number_literal)) + number_literal) )))) < identifier) ))) )) (break_statement "break;" break ;)) (expression_statement "bVar1 = zFormat[3];" (assignment_expression "bVar1 = zFormat[3]" identifier = (subscript_expression "zFormat[3]" identifier [ number_literal ])) ;) (expression_statement "pcVar4 = zFormat;" (assignment_expression "pcVar4 = zFormat" identifier = identifier) ;) (while_statement "while( true ) {\n      if (bVar1 == 0) {\n        ap = local_res8;\n        if (bVar3) {\n          ap = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n                    /* WARNING: Load size is inaccurate */\n        **ap = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *zDate;\n      zDate = (char *)((byte *)zDate + 1);\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      zFormat = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *zFormat;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = zFormat[3];\n      iVar10 = 0;\n      pcVar4 = zFormat;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (bVar1 == 0) {\n        ap = local_res8;\n        if (bVar3) {\n          ap = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n                    /* WARNING: Load size is inaccurate */\n        **ap = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *zDate;\n      zDate = (char *)((byte *)zDate + 1);\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      zFormat = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *zFormat;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = zFormat[3];\n      iVar10 = 0;\n      pcVar4 = zFormat;\n    }" { (if_statement "if (bVar1 == 0) {\n        ap = local_res8;\n        if (bVar3) {\n          ap = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n                    /* WARNING: Load size is inaccurate */\n        **ap = iVar10;\n        goto LAB_00026600;\n      }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        ap = local_res8;\n        if (bVar3) {\n          ap = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n                    /* WARNING: Load size is inaccurate */\n        **ap = iVar10;\n        goto LAB_00026600;\n      }" { (expression_statement "ap = local_res8;" (assignment_expression "ap = local_res8" identifier = identifier) ;) (if_statement "if (bVar3) {\n          ap = puVar12;\n        }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n          ap = puVar12;\n        }" { (expression_statement "ap = puVar12;" (assignment_expression "ap = puVar12" identifier = identifier) ;) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) comment (expression_statement "**ap = iVar10;" (assignment_expression "**ap = iVar10" (pointer_expression "**ap" * (pointer_expression "*ap" * identifier)) = identifier) ;) (goto_statement "goto LAB_00026600;" goto statement_identifier ;) })) (expression_statement "bVar2 = *zDate;" (assignment_expression "bVar2 = *zDate" identifier = (pointer_expression "*zDate" * identifier)) ;) (expression_statement "zDate = (char *)((byte *)zDate + 1);" (assignment_expression "zDate = (char *)((byte *)zDate + 1)" identifier = (cast_expression "(char *)((byte *)zDate + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((byte *)zDate + 1)" ( (binary_expression "(byte *)zDate + 1" (cast_expression "(byte *)zDate" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) ;) (if_statement "if (bVar2 != bVar1) goto LAB_00026600;" if (parenthesized_expression "(bVar2 != bVar1)" ( (binary_expression "bVar2 != bVar1" identifier != identifier) )) (goto_statement "goto LAB_00026600;" goto statement_identifier ;)) (expression_statement "piVar8 = (int *)*puVar12;" (assignment_expression "piVar8 = (int *)*puVar12" identifier = (cast_expression "(int *)*puVar12" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar12" * identifier))) ;) (expression_statement "zFormat = pcVar4 + 4;" (assignment_expression "zFormat = pcVar4 + 4" identifier = (binary_expression "pcVar4 + 4" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "puVar12 = puVar12 + 1;" (assignment_expression "puVar12 = puVar12 + 1" identifier = (binary_expression "puVar12 + 1" identifier + number_literal)) ;) (expression_statement "*piVar8 = iVar10;" (assignment_expression "*piVar8 = iVar10" (pointer_expression "*piVar8" * identifier) = identifier) ;) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) (expression_statement "cVar9 = *zFormat;" (assignment_expression "cVar9 = *zFormat" identifier = (pointer_expression "*zFormat" * identifier)) ;) (expression_statement "iVar13 = (int)(char)(pcVar4[5] + -0x30);" (assignment_expression "iVar13 = (int)(char)(pcVar4[5] + -0x30)" identifier = (cast_expression "(int)(char)(pcVar4[5] + -0x30)" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)(pcVar4[5] + -0x30)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(pcVar4[5] + -0x30)" ( (binary_expression "pcVar4[5] + -0x30" (subscript_expression "pcVar4[5]" identifier [ number_literal ]) + number_literal) ))))) ;) (if_statement "if (cVar9 != '0') break;" if (parenthesized_expression "(cVar9 != '0')" ( (binary_expression "cVar9 != '0'" identifier != (char_literal "'0'" ' character ')) )) (break_statement "break;" break ;)) (labeled_statement "LAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;" statement_identifier : (if_statement "if (0 < iVar13) goto LAB_00026600;" if (parenthesized_expression "(0 < iVar13)" ( (binary_expression "0 < iVar13" number_literal < identifier) )) (goto_statement "goto LAB_00026600;" goto statement_identifier ;))) (expression_statement "bVar1 = zFormat[3];" (assignment_expression "bVar1 = zFormat[3]" identifier = (subscript_expression "zFormat[3]" identifier [ number_literal ])) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "pcVar4 = zFormat;" (assignment_expression "pcVar4 = zFormat" identifier = identifier) ;) })) })) (labeled_statement "LAB_00026600:\n  if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    /* WARNING: Could not recover jumptable at 0x0002663c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }" statement_identifier : (if_statement "if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    /* WARNING: Could not recover jumptable at 0x0002663c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }" if (parenthesized_expression "(iVar7 != *(int *)puVar5)" ( (binary_expression "iVar7 != *(int *)puVar5" identifier != (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    /* WARNING: Could not recover jumptable at 0x0002663c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }" { (expression_statement "puVar14 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar14 = PTR___stack_chk_fail_000f5540" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" * (cast_expression "(code *)PTR___stack_chk_fail_000f5540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) comment comment (expression_statement "iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);" (assignment_expression "iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e)" identifier = (call_expression "(**(code **)(puVar14 + 0xcef0c))(0x1e)" (parenthesized_expression "(**(code **)(puVar14 + 0xcef0c))" ( (pointer_expression "**(code **)(puVar14 + 0xcef0c)" * (pointer_expression "*(code **)(puVar14 + 0xcef0c)" * (cast_expression "(code **)(puVar14 + 0xcef0c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0xcef0c)" ( (binary_expression "puVar14 + 0xcef0c" identifier + number_literal) ))))) )) (argument_list "(0x1e)" ( number_literal )))) ;) (return_statement "return iVar6;" return identifier ;) }))) (return_statement "return iVar6;" return identifier ;) })))
(translation_unit "int FUN_00026490(byte *param_1,char *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  byte bVar2;\n  bool bVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  int *piVar8;\n  char cVar9;\n  int iVar10;\n  byte *pbVar11;\n  undefined4 *puVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 local_res8 [2];\n  undefined4 *local_10;\n  \n  puVar5 = PTR___stack_chk_guard_000f5568;\n  puVar14 = PTR_DAT_000f52d4;\n  local_res8[0] = param_3;\n  bVar3 = false;\n  local_res8[1] = param_4;\n  iVar6 = 0;\n  iVar7 = *(int *)PTR___stack_chk_guard_000f5568;\n  cVar9 = *param_2;\n  iVar13 = (int)(char)(param_2[1] + -0x30);\n  puVar12 = local_res8;\n  if (cVar9 == '0') goto LAB_000265d4;\n  while( true ) {\n    bVar1 = *param_1;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = param_2[3];\n    pcVar4 = param_2;\n    while( true ) {\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }\n  }\nLAB_00026600:\n  if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    \n                    \n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }\n  return iVar6;\n}\n\n" (function_definition "int FUN_00026490(byte *param_1,char *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  byte bVar2;\n  bool bVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  int *piVar8;\n  char cVar9;\n  int iVar10;\n  byte *pbVar11;\n  undefined4 *puVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 local_res8 [2];\n  undefined4 *local_10;\n  \n  puVar5 = PTR___stack_chk_guard_000f5568;\n  puVar14 = PTR_DAT_000f52d4;\n  local_res8[0] = param_3;\n  bVar3 = false;\n  local_res8[1] = param_4;\n  iVar6 = 0;\n  iVar7 = *(int *)PTR___stack_chk_guard_000f5568;\n  cVar9 = *param_2;\n  iVar13 = (int)(char)(param_2[1] + -0x30);\n  puVar12 = local_res8;\n  if (cVar9 == '0') goto LAB_000265d4;\n  while( true ) {\n    bVar1 = *param_1;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = param_2[3];\n    pcVar4 = param_2;\n    while( true ) {\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }\n  }\nLAB_00026600:\n  if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    \n                    \n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }\n  return iVar6;\n}" primitive_type (function_declarator "FUN_00026490(byte *param_1,char *param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(byte *param_1,char *param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  bool bVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  int *piVar8;\n  char cVar9;\n  int iVar10;\n  byte *pbVar11;\n  undefined4 *puVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 local_res8 [2];\n  undefined4 *local_10;\n  \n  puVar5 = PTR___stack_chk_guard_000f5568;\n  puVar14 = PTR_DAT_000f52d4;\n  local_res8[0] = param_3;\n  bVar3 = false;\n  local_res8[1] = param_4;\n  iVar6 = 0;\n  iVar7 = *(int *)PTR___stack_chk_guard_000f5568;\n  cVar9 = *param_2;\n  iVar13 = (int)(char)(param_2[1] + -0x30);\n  puVar12 = local_res8;\n  if (cVar9 == '0') goto LAB_000265d4;\n  while( true ) {\n    bVar1 = *param_1;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = param_2[3];\n    pcVar4 = param_2;\n    while( true ) {\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }\n  }\nLAB_00026600:\n  if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    \n                    \n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }\n  return iVar6;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "char cVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "byte *pbVar11;" type_identifier (pointer_declarator "*pbVar11" * identifier) ;) (declaration "undefined4 *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "undefined *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "undefined4 local_res8 [2];" type_identifier (array_declarator "local_res8 [2]" identifier [ number_literal ]) ;) (declaration "undefined4 *local_10;" type_identifier (pointer_declarator "*local_10" * identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000f5568" identifier = identifier) ;) (expression_statement "puVar14 = PTR_DAT_000f52d4;" (assignment_expression "puVar14 = PTR_DAT_000f52d4" identifier = identifier) ;) (expression_statement "local_res8[0] = param_3;" (assignment_expression "local_res8[0] = param_3" (subscript_expression "local_res8[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) (expression_statement "local_res8[1] = param_4;" (assignment_expression "local_res8[1] = param_4" (subscript_expression "local_res8[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar7 = *(int *)PTR___stack_chk_guard_000f5568;" (assignment_expression "iVar7 = *(int *)PTR___stack_chk_guard_000f5568" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000f5568" * (cast_expression "(int *)PTR___stack_chk_guard_000f5568" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "cVar9 = *param_2;" (assignment_expression "cVar9 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar13 = (int)(char)(param_2[1] + -0x30);" (assignment_expression "iVar13 = (int)(char)(param_2[1] + -0x30)" identifier = (cast_expression "(int)(char)(param_2[1] + -0x30)" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)(param_2[1] + -0x30)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_2[1] + -0x30)" ( (binary_expression "param_2[1] + -0x30" (subscript_expression "param_2[1]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "puVar12 = local_res8;" (assignment_expression "puVar12 = local_res8" identifier = identifier) ;) (if_statement "if (cVar9 == '0') goto LAB_000265d4;" if (parenthesized_expression "(cVar9 == '0')" ( (binary_expression "cVar9 == '0'" identifier == (char_literal "'0'" ' character ')) )) (goto_statement "goto LAB_000265d4;" goto statement_identifier ;)) (while_statement "while( true ) {\n    bVar1 = *param_1;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = param_2[3];\n    pcVar4 = param_2;\n    while( true ) {\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    bVar1 = *param_1;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = param_2[3];\n    pcVar4 = param_2;\n    while( true ) {\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }\n  }" { (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (if_statement "if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;" if (parenthesized_expression "((puVar14[bVar1 + 0x24ac] & 4) == 0)" ( (binary_expression "(puVar14[bVar1 + 0x24ac] & 4) == 0" (parenthesized_expression "(puVar14[bVar1 + 0x24ac] & 4)" ( (binary_expression "puVar14[bVar1 + 0x24ac] & 4" (subscript_expression "puVar14[bVar1 + 0x24ac]" identifier [ (binary_expression "bVar1 + 0x24ac" identifier + number_literal) ]) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;" (assignment_expression "pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1" identifier = (binary_expression "param_1 + (byte)(cVar9 - 0x31) + 1" (binary_expression "param_1 + (byte)(cVar9 - 0x31)" identifier + (call_expression "(byte)(cVar9 - 0x31)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar9 - 0x31)" ( (binary_expression "cVar9 - 0x31" identifier - number_literal) )))) + number_literal)) ;) (while_statement "while( true ) {\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;" (assignment_expression "iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30" identifier = (binary_expression "iVar10 * 10 + (int)(char)bVar1 + -0x30" (binary_expression "iVar10 * 10 + (int)(char)bVar1" (binary_expression "iVar10 * 10" identifier * number_literal) + (cast_expression "(int)(char)bVar1" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier))) + number_literal)) ;) (if_statement "if (param_1 == pbVar11) break;" if (parenthesized_expression "(param_1 == pbVar11)" ( (binary_expression "param_1 == pbVar11" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;" if (parenthesized_expression "((puVar14[bVar1 + 0x24ac] & 4) == 0)" ( (binary_expression "(puVar14[bVar1 + 0x24ac] & 4) == 0" (parenthesized_expression "(puVar14[bVar1 + 0x24ac] & 4)" ( (binary_expression "puVar14[bVar1 + 0x24ac] & 4" (subscript_expression "puVar14[bVar1 + 0x24ac]" identifier [ (binary_expression "bVar1 + 0x24ac" identifier + number_literal) ]) & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00026600;" goto statement_identifier ;)) })) (if_statement "if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;" if (parenthesized_expression "((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10))" ( (binary_expression "(iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)" (parenthesized_expression "(iVar10 < iVar13)" ( (binary_expression "iVar10 < iVar13" identifier < identifier) )) || (parenthesized_expression "((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)" ( (binary_expression "(int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10" (binary_expression "(int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c)" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c)" ( (binary_expression "puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c" (binary_expression "puVar14 + (param_2[2] + -0x61) * 2" identifier + (binary_expression "(param_2[2] + -0x61) * 2" (parenthesized_expression "(param_2[2] + -0x61)" ( (binary_expression "param_2[2] + -0x61" (subscript_expression "param_2[2]" identifier [ number_literal ]) + number_literal) )) * number_literal)) + number_literal) )))) < identifier) ))) )) (break_statement "break;" break ;)) (expression_statement "bVar1 = param_2[3];" (assignment_expression "bVar1 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "pcVar4 = param_2;" (assignment_expression "pcVar4 = param_2" identifier = identifier) ;) (while_statement "while( true ) {\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }" { (if_statement "if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }" { (expression_statement "local_10 = local_res8;" (assignment_expression "local_10 = local_res8" identifier = identifier) ;) (if_statement "if (bVar3) {\n          local_10 = puVar12;\n        }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n          local_10 = puVar12;\n        }" { (expression_statement "local_10 = puVar12;" (assignment_expression "local_10 = puVar12" identifier = identifier) ;) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)*local_10 = iVar10;" (assignment_expression "*(int *)*local_10 = iVar10" (pointer_expression "*(int *)*local_10" * (cast_expression "(int *)*local_10" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_10" * identifier))) = identifier) ;) (goto_statement "goto LAB_00026600;" goto statement_identifier ;) })) (expression_statement "bVar2 = *param_1;" (assignment_expression "bVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (bVar2 != bVar1) goto LAB_00026600;" if (parenthesized_expression "(bVar2 != bVar1)" ( (binary_expression "bVar2 != bVar1" identifier != identifier) )) (goto_statement "goto LAB_00026600;" goto statement_identifier ;)) (expression_statement "piVar8 = (int *)*puVar12;" (assignment_expression "piVar8 = (int *)*puVar12" identifier = (cast_expression "(int *)*puVar12" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar12" * identifier))) ;) (expression_statement "param_2 = pcVar4 + 4;" (assignment_expression "param_2 = pcVar4 + 4" identifier = (binary_expression "pcVar4 + 4" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "puVar12 = puVar12 + 1;" (assignment_expression "puVar12 = puVar12 + 1" identifier = (binary_expression "puVar12 + 1" identifier + number_literal)) ;) (expression_statement "*piVar8 = iVar10;" (assignment_expression "*piVar8 = iVar10" (pointer_expression "*piVar8" * identifier) = identifier) ;) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) (expression_statement "cVar9 = *param_2;" (assignment_expression "cVar9 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar13 = (int)(char)(pcVar4[5] + -0x30);" (assignment_expression "iVar13 = (int)(char)(pcVar4[5] + -0x30)" identifier = (cast_expression "(int)(char)(pcVar4[5] + -0x30)" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)(pcVar4[5] + -0x30)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(pcVar4[5] + -0x30)" ( (binary_expression "pcVar4[5] + -0x30" (subscript_expression "pcVar4[5]" identifier [ number_literal ]) + number_literal) ))))) ;) (if_statement "if (cVar9 != '0') break;" if (parenthesized_expression "(cVar9 != '0')" ( (binary_expression "cVar9 != '0'" identifier != (char_literal "'0'" ' character ')) )) (break_statement "break;" break ;)) (labeled_statement "LAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;" statement_identifier : (if_statement "if (0 < iVar13) goto LAB_00026600;" if (parenthesized_expression "(0 < iVar13)" ( (binary_expression "0 < iVar13" number_literal < identifier) )) (goto_statement "goto LAB_00026600;" goto statement_identifier ;))) (expression_statement "bVar1 = param_2[3];" (assignment_expression "bVar1 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "pcVar4 = param_2;" (assignment_expression "pcVar4 = param_2" identifier = identifier) ;) })) })) (labeled_statement "LAB_00026600:\n  if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    \n                    \n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }" statement_identifier : (if_statement "if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    \n                    \n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }" if (parenthesized_expression "(iVar7 != *(int *)puVar5)" ( (binary_expression "iVar7 != *(int *)puVar5" identifier != (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    \n                    \n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }" { (expression_statement "puVar14 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar14 = PTR___stack_chk_fail_000f5540" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" * (cast_expression "(code *)PTR___stack_chk_fail_000f5540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);" (assignment_expression "iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e)" identifier = (call_expression "(**(code **)(puVar14 + 0xcef0c))(0x1e)" (parenthesized_expression "(**(code **)(puVar14 + 0xcef0c))" ( (pointer_expression "**(code **)(puVar14 + 0xcef0c)" * (pointer_expression "*(code **)(puVar14 + 0xcef0c)" * (cast_expression "(code **)(puVar14 + 0xcef0c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0xcef0c)" ( (binary_expression "puVar14 + 0xcef0c" identifier + number_literal) ))))) )) (argument_list "(0x1e)" ( number_literal )))) ;) (return_statement "return iVar6;" return identifier ;) }))) (return_statement "return iVar6;" return identifier ;) })))
(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 IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (goto_statement goto statement_identifier ;)) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) & LIT) )) == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) )))) + LIT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression IDENT * LIT) + (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) IDENT))) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) & LIT) )) == LIT) )) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) || (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( IDENT ))) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )) * LIT)) + LIT) )))) < IDENT) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (break_statement break ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT )))) ;) (return_statement return IDENT ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_00026490(byte *param_1,char *param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  byte bVar1;\n  byte bVar2;\n  bool bVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  int *piVar8;\n  char cVar9;\n  int iVar10;\n  byte *pbVar11;\n  undefined4 *puVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 local_res8 [2];\n  undefined4 *local_10;\n  \n  puVar5 = PTR___stack_chk_guard_000f5568;\n  puVar14 = PTR_DAT_000f52d4;\n  local_res8[0] = param_3;\n  bVar3 = false;\n  local_res8[1] = param_4;\n  iVar6 = 0;\n  iVar7 = *(int *)PTR___stack_chk_guard_000f5568;\n  cVar9 = *param_2;\n  iVar13 = (int)(char)(param_2[1] + -0x30);\n  puVar12 = local_res8;\n  if (cVar9 == '0') goto LAB_000265d4;\n  while( true ) {\n    bVar1 = *param_1;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = param_2[3];\n    pcVar4 = param_2;\n    while( true ) {\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }\n  }\nLAB_00026600:\n  if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    \n                    \n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }\n  return iVar6;\n}" (primitive_type "int") (function_declarator "FUN_00026490(byte *param_1,char *param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_00026490") (parameter_list "(byte *param_1,char *param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  bool bVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  int *piVar8;\n  char cVar9;\n  int iVar10;\n  byte *pbVar11;\n  undefined4 *puVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 local_res8 [2];\n  undefined4 *local_10;\n  \n  puVar5 = PTR___stack_chk_guard_000f5568;\n  puVar14 = PTR_DAT_000f52d4;\n  local_res8[0] = param_3;\n  bVar3 = false;\n  local_res8[1] = param_4;\n  iVar6 = 0;\n  iVar7 = *(int *)PTR___stack_chk_guard_000f5568;\n  cVar9 = *param_2;\n  iVar13 = (int)(char)(param_2[1] + -0x30);\n  puVar12 = local_res8;\n  if (cVar9 == '0') goto LAB_000265d4;\n  while( true ) {\n    bVar1 = *param_1;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = param_2[3];\n    pcVar4 = param_2;\n    while( true ) {\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }\n  }\nLAB_00026600:\n  if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    \n                    \n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }\n  return iVar6;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "bool bVar3;" (primitive_type "bool") (identifier "bVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int *piVar8;" (primitive_type "int") (pointer_declarator "*piVar8" (* "*") (identifier "piVar8")) (; ";")) (declaration "char cVar9;" (primitive_type "char") (identifier "cVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "byte *pbVar11;" (type_identifier "byte") (pointer_declarator "*pbVar11" (* "*") (identifier "pbVar11")) (; ";")) (declaration "undefined4 *puVar12;" (type_identifier "undefined4") (pointer_declarator "*puVar12" (* "*") (identifier "puVar12")) (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "undefined *puVar14;" (type_identifier "undefined") (pointer_declarator "*puVar14" (* "*") (identifier "puVar14")) (; ";")) (declaration "undefined4 local_res8 [2];" (type_identifier "undefined4") (array_declarator "local_res8 [2]" (identifier "local_res8") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "undefined4 *local_10;" (type_identifier "undefined4") (pointer_declarator "*local_10" (* "*") (identifier "local_10")) (; ";")) (expression_statement "puVar5 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar5 = PTR___stack_chk_guard_000f5568" (identifier "puVar5") (= "=") (identifier "PTR___stack_chk_guard_000f5568")) (; ";")) (expression_statement "puVar14 = PTR_DAT_000f52d4;" (assignment_expression "puVar14 = PTR_DAT_000f52d4" (identifier "puVar14") (= "=") (identifier "PTR_DAT_000f52d4")) (; ";")) (expression_statement "local_res8[0] = param_3;" (assignment_expression "local_res8[0] = param_3" (subscript_expression "local_res8[0]" (identifier "local_res8") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" (identifier "bVar3") (= "=") (false "false")) (; ";")) (expression_statement "local_res8[1] = param_4;" (assignment_expression "local_res8[1] = param_4" (subscript_expression "local_res8[1]" (identifier "local_res8") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar7 = *(int *)PTR___stack_chk_guard_000f5568;" (assignment_expression "iVar7 = *(int *)PTR___stack_chk_guard_000f5568" (identifier "iVar7") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000f5568" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000f5568" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000f5568")))) (; ";")) (expression_statement "cVar9 = *param_2;" (assignment_expression "cVar9 = *param_2" (identifier "cVar9") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "iVar13 = (int)(char)(param_2[1] + -0x30);" (assignment_expression "iVar13 = (int)(char)(param_2[1] + -0x30)" (identifier "iVar13") (= "=") (cast_expression "(int)(char)(param_2[1] + -0x30)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(char)(param_2[1] + -0x30)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(param_2[1] + -0x30)" (( "(") (binary_expression "param_2[1] + -0x30" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "-0x30")) () ")"))))) (; ";")) (expression_statement "puVar12 = local_res8;" (assignment_expression "puVar12 = local_res8" (identifier "puVar12") (= "=") (identifier "local_res8")) (; ";")) (if_statement "if (cVar9 == '0') goto LAB_000265d4;" (if "if") (parenthesized_expression "(cVar9 == '0')" (( "(") (binary_expression "cVar9 == '0'" (identifier "cVar9") (== "==") (char_literal "'0'" (' "'") (character "0") (' "'"))) () ")")) (goto_statement "goto LAB_000265d4;" (goto "goto") (statement_identifier "LAB_000265d4") (; ";"))) (while_statement "while( true ) {\n    bVar1 = *param_1;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = param_2[3];\n    pcVar4 = param_2;\n    while( true ) {\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    bVar1 = *param_1;\n    iVar10 = 0;\n    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;\n    pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;\n    while( true ) {\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }\n    if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;\n    bVar1 = param_2[3];\n    pcVar4 = param_2;\n    while( true ) {\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }\n  }" ({ "{") (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" (identifier "iVar10") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;" (if "if") (parenthesized_expression "((puVar14[bVar1 + 0x24ac] & 4) == 0)" (( "(") (binary_expression "(puVar14[bVar1 + 0x24ac] & 4) == 0" (parenthesized_expression "(puVar14[bVar1 + 0x24ac] & 4)" (( "(") (binary_expression "puVar14[bVar1 + 0x24ac] & 4" (subscript_expression "puVar14[bVar1 + 0x24ac]" (identifier "puVar14") ([ "[") (binary_expression "bVar1 + 0x24ac" (identifier "bVar1") (+ "+") (number_literal "0x24ac")) (] "]")) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;" (assignment_expression "pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1" (identifier "pbVar11") (= "=") (binary_expression "param_1 + (byte)(cVar9 - 0x31) + 1" (binary_expression "param_1 + (byte)(cVar9 - 0x31)" (identifier "param_1") (+ "+") (call_expression "(byte)(cVar9 - 0x31)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(cVar9 - 0x31)" (( "(") (binary_expression "cVar9 - 0x31" (identifier "cVar9") (- "-") (number_literal "0x31")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (while_statement "while( true ) {\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      param_1 = param_1 + 1;\n      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;\n      if (param_1 == pbVar11) break;\n      bVar1 = *param_1;\n      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;\n    }" ({ "{") (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;" (assignment_expression "iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30" (identifier "iVar10") (= "=") (binary_expression "iVar10 * 10 + (int)(char)bVar1 + -0x30" (binary_expression "iVar10 * 10 + (int)(char)bVar1" (binary_expression "iVar10 * 10" (identifier "iVar10") (* "*") (number_literal "10")) (+ "+") (cast_expression "(int)(char)bVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(char)bVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar1")))) (+ "+") (number_literal "-0x30"))) (; ";")) (if_statement "if (param_1 == pbVar11) break;" (if "if") (parenthesized_expression "(param_1 == pbVar11)" (( "(") (binary_expression "param_1 == pbVar11" (identifier "param_1") (== "==") (identifier "pbVar11")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;" (if "if") (parenthesized_expression "((puVar14[bVar1 + 0x24ac] & 4) == 0)" (( "(") (binary_expression "(puVar14[bVar1 + 0x24ac] & 4) == 0" (parenthesized_expression "(puVar14[bVar1 + 0x24ac] & 4)" (( "(") (binary_expression "puVar14[bVar1 + 0x24ac] & 4" (subscript_expression "puVar14[bVar1 + 0x24ac]" (identifier "puVar14") ([ "[") (binary_expression "bVar1 + 0x24ac" (identifier "bVar1") (+ "+") (number_literal "0x24ac")) (] "]")) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00026600;" (goto "goto") (statement_identifier "LAB_00026600") (; ";"))) (} "}"))) (if_statement "if ((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;" (if "if") (parenthesized_expression "((iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10))" (( "(") (binary_expression "(iVar10 < iVar13) ||\n       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)" (parenthesized_expression "(iVar10 < iVar13)" (( "(") (binary_expression "iVar10 < iVar13" (identifier "iVar10") (< "<") (identifier "iVar13")) () ")")) (|| "||") (parenthesized_expression "((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)" (( "(") (binary_expression "(int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10" (binary_expression "(int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c)" (cast_expression "(int)(uint)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (cast_expression "(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c)" (( "(") (binary_expression "puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c" (binary_expression "puVar14 + (param_2[2] + -0x61) * 2" (identifier "puVar14") (+ "+") (binary_expression "(param_2[2] + -0x61) * 2" (parenthesized_expression "(param_2[2] + -0x61)" (( "(") (binary_expression "param_2[2] + -0x61" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "-0x61")) () ")")) (* "*") (number_literal "2"))) (+ "+") (number_literal "-0x1a5c")) () ")")))) (< "<") (identifier "iVar10")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "bVar1 = param_2[3];" (assignment_expression "bVar1 = param_2[3]" (identifier "bVar1") (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "pcVar4 = param_2;" (assignment_expression "pcVar4 = param_2" (identifier "pcVar4") (= "=") (identifier "param_2")) (; ";")) (while_statement "while( true ) {\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }\n      bVar2 = *param_1;\n      param_1 = param_1 + 1;\n      if (bVar2 != bVar1) goto LAB_00026600;\n      piVar8 = (int *)*puVar12;\n      param_2 = pcVar4 + 4;\n      iVar6 = iVar6 + 1;\n      puVar12 = puVar12 + 1;\n      *piVar8 = iVar10;\n      bVar3 = true;\n      cVar9 = *param_2;\n      iVar13 = (int)(char)(pcVar4[5] + -0x30);\n      if (cVar9 != '0') break;\nLAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;\n      bVar1 = param_2[3];\n      iVar10 = 0;\n      pcVar4 = param_2;\n    }" ({ "{") (if_statement "if (bVar1 == 0) {\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }" (if "if") (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        local_10 = local_res8;\n        if (bVar3) {\n          local_10 = puVar12;\n        }\n        iVar6 = iVar6 + 1;\n        *(int *)*local_10 = iVar10;\n        goto LAB_00026600;\n      }" ({ "{") (expression_statement "local_10 = local_res8;" (assignment_expression "local_10 = local_res8" (identifier "local_10") (= "=") (identifier "local_res8")) (; ";")) (if_statement "if (bVar3) {\n          local_10 = puVar12;\n        }" (if "if") (parenthesized_expression "(bVar3)" (( "(") (identifier "bVar3") () ")")) (compound_statement "{\n          local_10 = puVar12;\n        }" ({ "{") (expression_statement "local_10 = puVar12;" (assignment_expression "local_10 = puVar12" (identifier "local_10") (= "=") (identifier "puVar12")) (; ";")) (} "}"))) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)*local_10 = iVar10;" (assignment_expression "*(int *)*local_10 = iVar10" (pointer_expression "*(int *)*local_10" (* "*") (cast_expression "(int *)*local_10" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*local_10" (* "*") (identifier "local_10")))) (= "=") (identifier "iVar10")) (; ";")) (goto_statement "goto LAB_00026600;" (goto "goto") (statement_identifier "LAB_00026600") (; ";")) (} "}"))) (expression_statement "bVar2 = *param_1;" (assignment_expression "bVar2 = *param_1" (identifier "bVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (bVar2 != bVar1) goto LAB_00026600;" (if "if") (parenthesized_expression "(bVar2 != bVar1)" (( "(") (binary_expression "bVar2 != bVar1" (identifier "bVar2") (!= "!=") (identifier "bVar1")) () ")")) (goto_statement "goto LAB_00026600;" (goto "goto") (statement_identifier "LAB_00026600") (; ";"))) (expression_statement "piVar8 = (int *)*puVar12;" (assignment_expression "piVar8 = (int *)*puVar12" (identifier "piVar8") (= "=") (cast_expression "(int *)*puVar12" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar12" (* "*") (identifier "puVar12")))) (; ";")) (expression_statement "param_2 = pcVar4 + 4;" (assignment_expression "param_2 = pcVar4 + 4" (identifier "param_2") (= "=") (binary_expression "pcVar4 + 4" (identifier "pcVar4") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar12 = puVar12 + 1;" (assignment_expression "puVar12 = puVar12 + 1" (identifier "puVar12") (= "=") (binary_expression "puVar12 + 1" (identifier "puVar12") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*piVar8 = iVar10;" (assignment_expression "*piVar8 = iVar10" (pointer_expression "*piVar8" (* "*") (identifier "piVar8")) (= "=") (identifier "iVar10")) (; ";")) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" (identifier "bVar3") (= "=") (true "true")) (; ";")) (expression_statement "cVar9 = *param_2;" (assignment_expression "cVar9 = *param_2" (identifier "cVar9") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "iVar13 = (int)(char)(pcVar4[5] + -0x30);" (assignment_expression "iVar13 = (int)(char)(pcVar4[5] + -0x30)" (identifier "iVar13") (= "=") (cast_expression "(int)(char)(pcVar4[5] + -0x30)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(char)(pcVar4[5] + -0x30)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(pcVar4[5] + -0x30)" (( "(") (binary_expression "pcVar4[5] + -0x30" (subscript_expression "pcVar4[5]" (identifier "pcVar4") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "-0x30")) () ")"))))) (; ";")) (if_statement "if (cVar9 != '0') break;" (if "if") (parenthesized_expression "(cVar9 != '0')" (( "(") (binary_expression "cVar9 != '0'" (identifier "cVar9") (!= "!=") (char_literal "'0'" (' "'") (character "0") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (labeled_statement "LAB_000265d4:\n      if (0 < iVar13) goto LAB_00026600;" (statement_identifier "LAB_000265d4") (: ":") (if_statement "if (0 < iVar13) goto LAB_00026600;" (if "if") (parenthesized_expression "(0 < iVar13)" (( "(") (binary_expression "0 < iVar13" (number_literal "0") (< "<") (identifier "iVar13")) () ")")) (goto_statement "goto LAB_00026600;" (goto "goto") (statement_identifier "LAB_00026600") (; ";")))) (expression_statement "bVar1 = param_2[3];" (assignment_expression "bVar1 = param_2[3]" (identifier "bVar1") (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" (identifier "iVar10") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar4 = param_2;" (assignment_expression "pcVar4 = param_2" (identifier "pcVar4") (= "=") (identifier "param_2")) (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_00026600:\n  if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    \n                    \n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }" (statement_identifier "LAB_00026600") (: ":") (if_statement "if (iVar7 != *(int *)puVar5) {\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    \n                    \n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }" (if "if") (parenthesized_expression "(iVar7 != *(int *)puVar5)" (( "(") (binary_expression "iVar7 != *(int *)puVar5" (identifier "iVar7") (!= "!=") (pointer_expression "*(int *)puVar5" (* "*") (cast_expression "(int *)puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5")))) () ")")) (compound_statement "{\n    puVar14 = PTR___stack_chk_fail_000f5540;\n    (*(code *)PTR___stack_chk_fail_000f5540)();\n                    \n                    \n    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);\n    return iVar6;\n  }" ({ "{") (expression_statement "puVar14 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar14 = PTR___stack_chk_fail_000f5540" (identifier "puVar14") (= "=") (identifier "PTR___stack_chk_fail_000f5540")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000f5540" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000f5540"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);" (assignment_expression "iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e)" (identifier "iVar6") (= "=") (call_expression "(**(code **)(puVar14 + 0xcef0c))(0x1e)" (parenthesized_expression "(**(code **)(puVar14 + 0xcef0c))" (( "(") (pointer_expression "**(code **)(puVar14 + 0xcef0c)" (* "*") (pointer_expression "*(code **)(puVar14 + 0xcef0c)" (* "*") (cast_expression "(code **)(puVar14 + 0xcef0c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0xcef0c)" (( "(") (binary_expression "puVar14 + 0xcef0c" (identifier "puVar14") (+ "+") (number_literal "0xcef0c")) () ")"))))) () ")")) (argument_list "(0x1e)" (( "(") (number_literal "0x1e") () ")")))) (; ";")) (return_statement "return iVar6;" (return "return") (identifier "iVar6") (; ";")) (} "}")))) (return_statement "return iVar6;" (return "return") (identifier "iVar6") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) 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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator 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: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (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)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (goto_statement label: (statement_identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (identifier))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))) right: (number_literal))))) right: (identifier))))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (true))) (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)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (break_statement)) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (number_literal))))) (return_statement (identifier))))) (return_statement (identifier)))))

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

{
  byte bVar1;
  byte bVar2;
  bool bVar3;
  char *pcVar4;
  undefined *puVar5;
  int iVar6;
  int iVar7;
  int *piVar8;
  char cVar9;
  int iVar10;
  byte *pbVar11;
  undefined4 *puVar12;
  int iVar13;
  undefined *puVar14;
  undefined4 local_res8 [2];
  undefined4 *local_10;
  
  puVar5 = PTR___stack_chk_guard_000f5568;
  puVar14 = PTR_DAT_000f52d4;
  local_res8[0] = param_3;
  bVar3 = false;
  local_res8[1] = param_4;
  iVar6 = 0;
  iVar7 = *(int *)PTR___stack_chk_guard_000f5568;
  cVar9 = *param_2;
  iVar13 = (int)(char)(param_2[1] + -0x30);
  puVar12 = local_res8;
  if (cVar9 == '0') goto LAB_000265d4;
  while( true ) {
    bVar1 = *param_1;
    iVar10 = 0;
    if ((puVar14[bVar1 + 0x24ac] & 4) == 0) break;
    pbVar11 = param_1 + (byte)(cVar9 - 0x31) + 1;
    while( true ) {
      param_1 = param_1 + 1;
      iVar10 = iVar10 * 10 + (int)(char)bVar1 + -0x30;
      if (param_1 == pbVar11) break;
      bVar1 = *param_1;
      if ((puVar14[bVar1 + 0x24ac] & 4) == 0) goto LAB_00026600;
    }
    if ((iVar10 < iVar13) ||
       ((int)(uint)*(ushort *)(puVar14 + (param_2[2] + -0x61) * 2 + -0x1a5c) < iVar10)) break;
    bVar1 = param_2[3];
    pcVar4 = param_2;
    while( true ) {
      if (bVar1 == 0) {
        local_10 = local_res8;
        if (bVar3) {
          local_10 = puVar12;
        }
        iVar6 = iVar6 + 1;
        *(int *)*local_10 = iVar10;
        goto LAB_00026600;
      }
      bVar2 = *param_1;
      param_1 = param_1 + 1;
      if (bVar2 != bVar1) goto LAB_00026600;
      piVar8 = (int *)*puVar12;
      param_2 = pcVar4 + 4;
      iVar6 = iVar6 + 1;
      puVar12 = puVar12 + 1;
      *piVar8 = iVar10;
      bVar3 = true;
      cVar9 = *param_2;
      iVar13 = (int)(char)(pcVar4[5] + -0x30);
      if (cVar9 != '0') break;
LAB_000265d4:
      if (0 < iVar13) goto LAB_00026600;
      bVar1 = param_2[3];
      iVar10 = 0;
      pcVar4 = param_2;
    }
  }
LAB_00026600:
  if (iVar7 != *(int *)puVar5) {
    puVar14 = PTR___stack_chk_fail_000f5540;
    (*(code *)PTR___stack_chk_fail_000f5540)();
                    /* WARNING: Could not recover jumptable at 0x0002663c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar6 = (**(code **)(puVar14 + 0xcef0c))(0x1e);
    return iVar6;
  }
  return iVar6;
}

