
/* WARNING: Unknown calling convention */

tm * ltime(void)

{
  int *piVar1;
  int *piVar2;
  int *piVar3;
  tm *ptVar4;
  tm *ptVar5;
  tm *in_a0;
  int iVar6;
  int iVar7;
  uint *puVar8;
  int iVar9;
  undefined *puVar10;
  time_t t;
  uint *local_c;
  
  local_c = *(uint **)PTR___stack_chk_guard_00122654;
  (*(code *)PTR_time_001224a4)(&t);
  if (t == -1) {
    ptVar4 = (tm *)(*(code *)PTR___assert_fail_00121f78)
                             (PTR_E0_218__00121388 + 0x60a0,PTR_E0_218__00121388 + 0x6098,0xe,
                              PTR_E0_218__00121388 + 0x60c0);
    return ptVar4;
  }
  piVar1 = (int *)(*(code *)PTR_localtime_00121f90)(&t);
  piVar3 = piVar1;
  ptVar4 = in_a0;
  do {
    ptVar5 = ptVar4;
    piVar2 = piVar3;
    iVar9 = piVar2[1];
    iVar7 = piVar2[2];
    iVar6 = piVar2[3];
    ptVar5->tm_sec = *piVar2;
    ptVar5->tm_min = iVar9;
    ptVar5->tm_hour = iVar7;
    ptVar5->tm_mday = iVar6;
    piVar3 = piVar2 + 4;
    ptVar4 = (tm *)&ptVar5->tm_mon;
  } while (piVar3 != piVar1 + 8);
  puVar8 = (uint *)*piVar3;
  iVar7 = piVar2[5];
  iVar6 = piVar2[6];
  ptVar5->tm_mon = (int)puVar8;
  ptVar5->tm_year = iVar7;
  ptVar5->tm_wday = iVar6;
  if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {
    return in_a0;
  }
  puVar10 = PTR___stack_chk_fail_001222ec;
  (*(code *)PTR___stack_chk_fail_001222ec)();
  iVar6 = local_c[2] - *(int *)(*(int *)(puVar10 + 0x78458) + 0x2ea0);
  iVar7 = puVar8[2] - *(int *)(*(int *)(puVar10 + 0x78458) + 0x2ea0);
  if (iVar6 < iVar7) {
    return (tm *)0xffffffff;
  }
  if (iVar6 <= iVar7) {
    if (*local_c < *puVar8) {
      return (tm *)0xffffffff;
    }
    if (*local_c <= *puVar8) {
      if (puVar8[1] <= local_c[1]) {
        return (tm *)(uint)(puVar8[1] < local_c[1]);
      }
      return (tm *)0xffffffff;
    }
    return (tm *)&DAT_00000001;
  }
  return (tm *)&DAT_00000001;
}



undefined4 * ltime(undefined4 *param_1)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  int iVar5;
  undefined4 *puVar6;
  int iVar7;
  undefined4 uVar8;
  uint *puVar9;
  undefined4 uVar10;
  uint *puVar11;
  undefined4 uVar12;
  undefined *puVar13;
  int local_10;
  uint *local_c;
  
  local_c = *(uint **)PTR___stack_chk_guard_00122654;
  (*(code *)PTR_time_001224a4)(&local_10);
  if (local_10 == -1) {
    puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);
    puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);
    (*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);
  }
  else {
    puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);
    puVar4 = puVar2;
    puVar1 = param_1;
    do {
      puVar6 = puVar1;
      puVar3 = puVar4;
      uVar12 = puVar3[1];
      uVar10 = puVar3[2];
      uVar8 = puVar3[3];
      *puVar6 = *puVar3;
      puVar6[1] = uVar12;
      puVar6[2] = uVar10;
      puVar6[3] = uVar8;
      puVar4 = puVar3 + 4;
      puVar1 = puVar6 + 4;
    } while (puVar4 != puVar2 + 8);
    puVar11 = (uint *)*puVar4;
    uVar10 = puVar3[5];
    uVar8 = puVar3[6];
    puVar6[4] = puVar11;
    puVar6[5] = uVar10;
    puVar6[6] = uVar8;
    puVar9 = local_c;
    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {
      return param_1;
    }
  }
  puVar13 = PTR___stack_chk_fail_001222ec;
  (*(code *)PTR___stack_chk_fail_001222ec)();
  iVar5 = puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);
  iVar7 = puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);
  if (iVar5 < iVar7) {
    return (undefined4 *)0xffffffff;
  }
  if (iVar5 <= iVar7) {
    if (*puVar9 < *puVar11) {
      return (undefined4 *)0xffffffff;
    }
    if (*puVar9 <= *puVar11) {
      if (puVar11[1] <= puVar9[1]) {
        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);
      }
      return (undefined4 *)0xffffffff;
    }
    return (undefined4 *)0x1;
  }
  return (undefined4 *)0x1;
}


lui gp,0x8
addiu gp,gp,0x540
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s0,0x20(sp)
sw gp,0x10(sp)
or s0,a0,zero
lw v0,-0x6c5c(gp)
lw v0,0x0(v0)
sw v0,0x1c(sp)
addiu a0,sp,0x18
lw t9,-0x6e0c(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw v1,0x18(sp)
li v0,-0x1
beq v1,v0,0x000a8e40
_addiu a0,sp,0x18
lw t9,-0x7320(gp)
jalr t9
_nop
lw gp,0x10(sp)
or v1,s0,zero
addiu t0,v0,0x20
lw a3,0x0(v0)
lw a2,0x4(v0)
lw a1,0x8(v0)
lw a0,0xc(v0)
sw a3,0x0(v1)
sw a2,0x4(v1)
sw a1,0x8(v1)
sw a0,0xc(v1)
addiu v0,v0,0x10
bne v0,t0,0x000a8dd8
_addiu v1,v1,0x10
lw a1,0x0(v0)
lw a0,0x4(v0)
lw v0,0x8(v0)
sw a1,0x0(v1)
sw a0,0x4(v1)
sw v0,0x8(v1)
or v0,s0,zero
lw a0,0x1c(sp)
lw v1,-0x6c5c(gp)
lw v1,0x0(v1)
bne a0,v1,0x000a8e68
_lw ra,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw a3,-0x7f28(gp)
addiu a3,a3,0x60c0
li a2,0xe
lw a1,-0x7f28(gp)
addiu a1,a1,0x6098
lw a0,-0x7f28(gp)
addiu a0,a0,0x60a0
lw t9,-0x7338(gp)
jalr t9
_nop
lw t9,-0x6fc4(gp)
jalr t9
_nop
nop
nop
nop
lui gp,0x8
addiu gp,gp,0x430
addu gp,gp,t9
lw v0,-0x7fd8(gp)
lw a2,0x2ea0(v0)
lw v0,0x8(a0)
subu v0,v0,a2
lw v1,0x8(a1)
subu v1,v1,a2
slt a2,v0,v1
bne a2,zero,0x000a8ef8
_nop
slt v0,v1,v0
bne v0,zero,0x000a8f00
_nop
lw v0,0x0(a0)
lw v1,0x0(a1)
sltu a2,v0,v1
bne a2,zero,0x000a8f08
_nop
sltu v0,v1,v0
bne v0,zero,0x000a8f10
_nop
lw v0,0x4(a0)
lw v1,0x4(a1)
sltu a0,v0,v1
bne a0,zero,0x000a8f18
_nop
jr ra
_sltu v0,v1,v0
jr ra
_li v0,-0x1
jr ra
_li v0,0x1
jr ra
_li v0,-0x1
jr ra
_li v0,0x1
jr ra
_li v0,-0x1
(translation_unit "undefined4 * ltime(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  uint *puVar9;\n  undefined4 uVar10;\n  uint *puVar11;\n  undefined4 uVar12;\n  undefined *puVar13;\n  int local_10;\n  uint *local_c;\n  \n  local_c = *(uint **)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_time_001224a4)(&local_10);\n  if (local_10 == -1) {\n    puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);\n    puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);\n    (*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);\n  }\n  else {\n    puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);\n    puVar4 = puVar2;\n    puVar1 = param_1;\n    do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);\n    puVar11 = (uint *)*puVar4;\n    uVar10 = puVar3[5];\n    uVar8 = puVar3[6];\n    puVar6[4] = puVar11;\n    puVar6[5] = uVar10;\n    puVar6[6] = uVar8;\n    puVar9 = local_c;\n    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }\n  }\n  puVar13 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar5 = puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);\n  iVar7 = puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);\n  if (iVar5 < iVar7) {\n    return (undefined4 *)0xffffffff;\n  }\n  if (iVar5 <= iVar7) {\n    if (*puVar9 < *puVar11) {\n      return (undefined4 *)0xffffffff;\n    }\n    if (*puVar9 <= *puVar11) {\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }\n    return (undefined4 *)0x1;\n  }\n  return (undefined4 *)0x1;\n}\n\n" (function_definition "undefined4 * ltime(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  uint *puVar9;\n  undefined4 uVar10;\n  uint *puVar11;\n  undefined4 uVar12;\n  undefined *puVar13;\n  int local_10;\n  uint *local_c;\n  \n  local_c = *(uint **)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_time_001224a4)(&local_10);\n  if (local_10 == -1) {\n    puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);\n    puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);\n    (*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);\n  }\n  else {\n    puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);\n    puVar4 = puVar2;\n    puVar1 = param_1;\n    do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);\n    puVar11 = (uint *)*puVar4;\n    uVar10 = puVar3[5];\n    uVar8 = puVar3[6];\n    puVar6[4] = puVar11;\n    puVar6[5] = uVar10;\n    puVar6[6] = uVar8;\n    puVar9 = local_c;\n    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }\n  }\n  puVar13 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar5 = puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);\n  iVar7 = puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);\n  if (iVar5 < iVar7) {\n    return (undefined4 *)0xffffffff;\n  }\n  if (iVar5 <= iVar7) {\n    if (*puVar9 < *puVar11) {\n      return (undefined4 *)0xffffffff;\n    }\n    if (*puVar9 <= *puVar11) {\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }\n    return (undefined4 *)0x1;\n  }\n  return (undefined4 *)0x1;\n}" type_identifier (pointer_declarator "* ltime(undefined4 *param_1)" * (function_declarator "ltime(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  uint *puVar9;\n  undefined4 uVar10;\n  uint *puVar11;\n  undefined4 uVar12;\n  undefined *puVar13;\n  int local_10;\n  uint *local_c;\n  \n  local_c = *(uint **)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_time_001224a4)(&local_10);\n  if (local_10 == -1) {\n    puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);\n    puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);\n    (*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);\n  }\n  else {\n    puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);\n    puVar4 = puVar2;\n    puVar1 = param_1;\n    do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);\n    puVar11 = (uint *)*puVar4;\n    uVar10 = puVar3[5];\n    uVar8 = puVar3[6];\n    puVar6[4] = puVar11;\n    puVar6[5] = uVar10;\n    puVar6[6] = uVar8;\n    puVar9 = local_c;\n    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }\n  }\n  puVar13 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar5 = puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);\n  iVar7 = puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);\n  if (iVar5 < iVar7) {\n    return (undefined4 *)0xffffffff;\n  }\n  if (iVar5 <= iVar7) {\n    if (*puVar9 < *puVar11) {\n      return (undefined4 *)0xffffffff;\n    }\n    if (*puVar9 <= *puVar11) {\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }\n    return (undefined4 *)0x1;\n  }\n  return (undefined4 *)0x1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "uint *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "uint *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "undefined4 uVar12;" type_identifier identifier ;) (declaration "undefined *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "uint *local_c;" type_identifier (pointer_declarator "*local_c" * identifier) ;) (expression_statement "local_c = *(uint **)PTR___stack_chk_guard_00122654;" (assignment_expression "local_c = *(uint **)PTR___stack_chk_guard_00122654" identifier = (pointer_expression "*(uint **)PTR___stack_chk_guard_00122654" * (cast_expression "(uint **)PTR___stack_chk_guard_00122654" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "(*(code *)PTR_time_001224a4)(&local_10);" (call_expression "(*(code *)PTR_time_001224a4)(&local_10)" (parenthesized_expression "(*(code *)PTR_time_001224a4)" ( (pointer_expression "*(code *)PTR_time_001224a4" * (cast_expression "(code *)PTR_time_001224a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_10)" ( (pointer_expression "&local_10" & identifier) ))) ;) (if_statement "if (local_10 == -1) {\n    puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);\n    puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);\n    (*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);\n  }\n  else {\n    puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);\n    puVar4 = puVar2;\n    puVar1 = param_1;\n    do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);\n    puVar11 = (uint *)*puVar4;\n    uVar10 = puVar3[5];\n    uVar8 = puVar3[6];\n    puVar6[4] = puVar11;\n    puVar6[5] = uVar10;\n    puVar6[6] = uVar8;\n    puVar9 = local_c;\n    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }\n  }" if (parenthesized_expression "(local_10 == -1)" ( (binary_expression "local_10 == -1" identifier == number_literal) )) (compound_statement "{\n    puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);\n    puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);\n    (*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);\n  }" { (expression_statement "puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);" (assignment_expression "puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098)" identifier = (cast_expression "(uint *)(PTR_DAT_00121388 + 0x6098)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00121388 + 0x6098)" ( (binary_expression "PTR_DAT_00121388 + 0x6098" identifier + number_literal) )))) ;) (expression_statement "puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);" (assignment_expression "puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0)" identifier = (cast_expression "(uint *)(PTR_DAT_00121388 + 0x60a0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00121388 + 0x60a0)" ( (binary_expression "PTR_DAT_00121388 + 0x60a0" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);" (call_expression "(*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0)" (parenthesized_expression "(*(code *)PTR___assert_fail_00121f78)" ( (pointer_expression "*(code *)PTR___assert_fail_00121f78" * (cast_expression "(code *)PTR___assert_fail_00121f78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0)" ( identifier , identifier , number_literal , (binary_expression "PTR_DAT_00121388 + 0x60c0" identifier + number_literal) ))) ;) }) (else_clause "else {\n    puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);\n    puVar4 = puVar2;\n    puVar1 = param_1;\n    do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);\n    puVar11 = (uint *)*puVar4;\n    uVar10 = puVar3[5];\n    uVar8 = puVar3[6];\n    puVar6[4] = puVar11;\n    puVar6[5] = uVar10;\n    puVar6[6] = uVar8;\n    puVar9 = local_c;\n    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }\n  }" else (compound_statement "{\n    puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);\n    puVar4 = puVar2;\n    puVar1 = param_1;\n    do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);\n    puVar11 = (uint *)*puVar4;\n    uVar10 = puVar3[5];\n    uVar8 = puVar3[6];\n    puVar6[4] = puVar11;\n    puVar6[5] = uVar10;\n    puVar6[6] = uVar8;\n    puVar9 = local_c;\n    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }\n  }" { (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_localtime_00121f90)(&local_10)" (parenthesized_expression "(*(code *)PTR_localtime_00121f90)" ( (pointer_expression "*(code *)PTR_localtime_00121f90" * (cast_expression "(code *)PTR_localtime_00121f90" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_10)" ( (pointer_expression "&local_10" & identifier) ))))) ;) (expression_statement "puVar4 = puVar2;" (assignment_expression "puVar4 = puVar2" identifier = identifier) ;) (expression_statement "puVar1 = param_1;" (assignment_expression "puVar1 = param_1" identifier = identifier) ;) (do_statement "do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);" do (compound_statement "{\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    }" { (expression_statement "puVar6 = puVar1;" (assignment_expression "puVar6 = puVar1" identifier = identifier) ;) (expression_statement "puVar3 = puVar4;" (assignment_expression "puVar3 = puVar4" identifier = identifier) ;) (expression_statement "uVar12 = puVar3[1];" (assignment_expression "uVar12 = puVar3[1]" identifier = (subscript_expression "puVar3[1]" identifier [ number_literal ])) ;) (expression_statement "uVar10 = puVar3[2];" (assignment_expression "uVar10 = puVar3[2]" identifier = (subscript_expression "puVar3[2]" identifier [ number_literal ])) ;) (expression_statement "uVar8 = puVar3[3];" (assignment_expression "uVar8 = puVar3[3]" identifier = (subscript_expression "puVar3[3]" identifier [ number_literal ])) ;) (expression_statement "*puVar6 = *puVar3;" (assignment_expression "*puVar6 = *puVar3" (pointer_expression "*puVar6" * identifier) = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar6[1] = uVar12;" (assignment_expression "puVar6[1] = uVar12" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[2] = uVar10;" (assignment_expression "puVar6[2] = uVar10" (subscript_expression "puVar6[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[3] = uVar8;" (assignment_expression "puVar6[3] = uVar8" (subscript_expression "puVar6[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4 = puVar3 + 4;" (assignment_expression "puVar4 = puVar3 + 4" identifier = (binary_expression "puVar3 + 4" identifier + number_literal)) ;) (expression_statement "puVar1 = puVar6 + 4;" (assignment_expression "puVar1 = puVar6 + 4" identifier = (binary_expression "puVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar4 != puVar2 + 8)" ( (binary_expression "puVar4 != puVar2 + 8" identifier != (binary_expression "puVar2 + 8" identifier + number_literal)) )) ;) (expression_statement "puVar11 = (uint *)*puVar4;" (assignment_expression "puVar11 = (uint *)*puVar4" identifier = (cast_expression "(uint *)*puVar4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "uVar10 = puVar3[5];" (assignment_expression "uVar10 = puVar3[5]" identifier = (subscript_expression "puVar3[5]" identifier [ number_literal ])) ;) (expression_statement "uVar8 = puVar3[6];" (assignment_expression "uVar8 = puVar3[6]" identifier = (subscript_expression "puVar3[6]" identifier [ number_literal ])) ;) (expression_statement "puVar6[4] = puVar11;" (assignment_expression "puVar6[4] = puVar11" (subscript_expression "puVar6[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[5] = uVar10;" (assignment_expression "puVar6[5] = uVar10" (subscript_expression "puVar6[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[6] = uVar8;" (assignment_expression "puVar6[6] = uVar8" (subscript_expression "puVar6[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar9 = local_c;" (assignment_expression "puVar9 = local_c" identifier = identifier) ;) (if_statement "if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }" if (parenthesized_expression "(local_c == *(uint **)PTR___stack_chk_guard_00122654)" ( (binary_expression "local_c == *(uint **)PTR___stack_chk_guard_00122654" identifier == (pointer_expression "*(uint **)PTR___stack_chk_guard_00122654" * (cast_expression "(uint **)PTR___stack_chk_guard_00122654" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) }))) (expression_statement "puVar13 = PTR___stack_chk_fail_001222ec;" (assignment_expression "puVar13 = PTR___stack_chk_fail_001222ec" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_001222ec)();" (call_expression "(*(code *)PTR___stack_chk_fail_001222ec)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001222ec)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001222ec" * (cast_expression "(code *)PTR___stack_chk_fail_001222ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar5 = puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);" (assignment_expression "iVar5 = puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" identifier = (binary_expression "puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" (subscript_expression "puVar9[2]" identifier [ number_literal ]) - (pointer_expression "*(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" * (cast_expression "(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar13 + 0x78458) + 0x2ea0)" ( (binary_expression "*(int *)(puVar13 + 0x78458) + 0x2ea0" (pointer_expression "*(int *)(puVar13 + 0x78458)" * (cast_expression "(int *)(puVar13 + 0x78458)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar13 + 0x78458)" ( (binary_expression "puVar13 + 0x78458" identifier + number_literal) )))) + number_literal) )))))) ;) (expression_statement "iVar7 = puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);" (assignment_expression "iVar7 = puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" identifier = (binary_expression "puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" (subscript_expression "puVar11[2]" identifier [ number_literal ]) - (pointer_expression "*(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" * (cast_expression "(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar13 + 0x78458) + 0x2ea0)" ( (binary_expression "*(int *)(puVar13 + 0x78458) + 0x2ea0" (pointer_expression "*(int *)(puVar13 + 0x78458)" * (cast_expression "(int *)(puVar13 + 0x78458)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar13 + 0x78458)" ( (binary_expression "puVar13 + 0x78458" identifier + number_literal) )))) + number_literal) )))))) ;) (if_statement "if (iVar5 < iVar7) {\n    return (undefined4 *)0xffffffff;\n  }" if (parenthesized_expression "(iVar5 < iVar7)" ( (binary_expression "iVar5 < iVar7" identifier < identifier) )) (compound_statement "{\n    return (undefined4 *)0xffffffff;\n  }" { (return_statement "return (undefined4 *)0xffffffff;" return (cast_expression "(undefined4 *)0xffffffff" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (iVar5 <= iVar7) {\n    if (*puVar9 < *puVar11) {\n      return (undefined4 *)0xffffffff;\n    }\n    if (*puVar9 <= *puVar11) {\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }\n    return (undefined4 *)0x1;\n  }" if (parenthesized_expression "(iVar5 <= iVar7)" ( (binary_expression "iVar5 <= iVar7" identifier <= identifier) )) (compound_statement "{\n    if (*puVar9 < *puVar11) {\n      return (undefined4 *)0xffffffff;\n    }\n    if (*puVar9 <= *puVar11) {\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }\n    return (undefined4 *)0x1;\n  }" { (if_statement "if (*puVar9 < *puVar11) {\n      return (undefined4 *)0xffffffff;\n    }" if (parenthesized_expression "(*puVar9 < *puVar11)" ( (binary_expression "*puVar9 < *puVar11" (pointer_expression "*puVar9" * identifier) < (pointer_expression "*puVar11" * identifier)) )) (compound_statement "{\n      return (undefined4 *)0xffffffff;\n    }" { (return_statement "return (undefined4 *)0xffffffff;" return (cast_expression "(undefined4 *)0xffffffff" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (*puVar9 <= *puVar11) {\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }" if (parenthesized_expression "(*puVar9 <= *puVar11)" ( (binary_expression "*puVar9 <= *puVar11" (pointer_expression "*puVar9" * identifier) <= (pointer_expression "*puVar11" * identifier)) )) (compound_statement "{\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }" { (if_statement "if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }" if (parenthesized_expression "(puVar11[1] <= puVar9[1])" ( (binary_expression "puVar11[1] <= puVar9[1]" (subscript_expression "puVar11[1]" identifier [ number_literal ]) <= (subscript_expression "puVar9[1]" identifier [ number_literal ])) )) (compound_statement "{\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }" { (return_statement "return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);" return (cast_expression "(undefined4 *)(uint)(puVar11[1] < puVar9[1])" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)(puVar11[1] < puVar9[1])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar11[1] < puVar9[1])" ( (binary_expression "puVar11[1] < puVar9[1]" (subscript_expression "puVar11[1]" identifier [ number_literal ]) < (subscript_expression "puVar9[1]" identifier [ number_literal ])) )))) ;) })) (return_statement "return (undefined4 *)0xffffffff;" return (cast_expression "(undefined4 *)0xffffffff" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (return_statement "return (undefined4 *)0x1;" return (cast_expression "(undefined4 *)0x1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (return_statement "return (undefined4 *)0x1;" return (cast_expression "(undefined4 *)0x1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\ntm * ltime(void)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  tm *ptVar4;\n  tm *ptVar5;\n  tm *in_a0;\n  int iVar6;\n  int iVar7;\n  uint *puVar8;\n  int iVar9;\n  undefined *puVar10;\n  time_t t;\n  uint *local_c;\n  \n  local_c = *(uint **)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_time_001224a4)(&t);\n  if (t == -1) {\n    ptVar4 = (tm *)(*(code *)PTR___assert_fail_00121f78)\n                             (PTR_E0_218__00121388 + 0x60a0,PTR_E0_218__00121388 + 0x6098,0xe,\n                              PTR_E0_218__00121388 + 0x60c0);\n    return ptVar4;\n  }\n  piVar1 = (int *)(*(code *)PTR_localtime_00121f90)(&t);\n  piVar3 = piVar1;\n  ptVar4 = in_a0;\n  do {\n    ptVar5 = ptVar4;\n    piVar2 = piVar3;\n    iVar9 = piVar2[1];\n    iVar7 = piVar2[2];\n    iVar6 = piVar2[3];\n    ptVar5->tm_sec = *piVar2;\n    ptVar5->tm_min = iVar9;\n    ptVar5->tm_hour = iVar7;\n    ptVar5->tm_mday = iVar6;\n    piVar3 = piVar2 + 4;\n    ptVar4 = (tm *)&ptVar5->tm_mon;\n  } while (piVar3 != piVar1 + 8);\n  puVar8 = (uint *)*piVar3;\n  iVar7 = piVar2[5];\n  iVar6 = piVar2[6];\n  ptVar5->tm_mon = (int)puVar8;\n  ptVar5->tm_year = iVar7;\n  ptVar5->tm_wday = iVar6;\n  if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n    return in_a0;\n  }\n  puVar10 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar6 = local_c[2] - *(int *)(*(int *)(puVar10 + 0x78458) + 0x2ea0);\n  iVar7 = puVar8[2] - *(int *)(*(int *)(puVar10 + 0x78458) + 0x2ea0);\n  if (iVar6 < iVar7) {\n    return (tm *)0xffffffff;\n  }\n  if (iVar6 <= iVar7) {\n    if (*local_c < *puVar8) {\n      return (tm *)0xffffffff;\n    }\n    if (*local_c <= *puVar8) {\n      if (puVar8[1] <= local_c[1]) {\n        return (tm *)(uint)(puVar8[1] < local_c[1]);\n      }\n      return (tm *)0xffffffff;\n    }\n    return (tm *)&DAT_00000001;\n  }\n  return (tm *)&DAT_00000001;\n}\n\n" comment (function_definition "tm * ltime(void)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  tm *ptVar4;\n  tm *ptVar5;\n  tm *in_a0;\n  int iVar6;\n  int iVar7;\n  uint *puVar8;\n  int iVar9;\n  undefined *puVar10;\n  time_t t;\n  uint *local_c;\n  \n  local_c = *(uint **)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_time_001224a4)(&t);\n  if (t == -1) {\n    ptVar4 = (tm *)(*(code *)PTR___assert_fail_00121f78)\n                             (PTR_E0_218__00121388 + 0x60a0,PTR_E0_218__00121388 + 0x6098,0xe,\n                              PTR_E0_218__00121388 + 0x60c0);\n    return ptVar4;\n  }\n  piVar1 = (int *)(*(code *)PTR_localtime_00121f90)(&t);\n  piVar3 = piVar1;\n  ptVar4 = in_a0;\n  do {\n    ptVar5 = ptVar4;\n    piVar2 = piVar3;\n    iVar9 = piVar2[1];\n    iVar7 = piVar2[2];\n    iVar6 = piVar2[3];\n    ptVar5->tm_sec = *piVar2;\n    ptVar5->tm_min = iVar9;\n    ptVar5->tm_hour = iVar7;\n    ptVar5->tm_mday = iVar6;\n    piVar3 = piVar2 + 4;\n    ptVar4 = (tm *)&ptVar5->tm_mon;\n  } while (piVar3 != piVar1 + 8);\n  puVar8 = (uint *)*piVar3;\n  iVar7 = piVar2[5];\n  iVar6 = piVar2[6];\n  ptVar5->tm_mon = (int)puVar8;\n  ptVar5->tm_year = iVar7;\n  ptVar5->tm_wday = iVar6;\n  if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n    return in_a0;\n  }\n  puVar10 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar6 = local_c[2] - *(int *)(*(int *)(puVar10 + 0x78458) + 0x2ea0);\n  iVar7 = puVar8[2] - *(int *)(*(int *)(puVar10 + 0x78458) + 0x2ea0);\n  if (iVar6 < iVar7) {\n    return (tm *)0xffffffff;\n  }\n  if (iVar6 <= iVar7) {\n    if (*local_c < *puVar8) {\n      return (tm *)0xffffffff;\n    }\n    if (*local_c <= *puVar8) {\n      if (puVar8[1] <= local_c[1]) {\n        return (tm *)(uint)(puVar8[1] < local_c[1]);\n      }\n      return (tm *)0xffffffff;\n    }\n    return (tm *)&DAT_00000001;\n  }\n  return (tm *)&DAT_00000001;\n}" type_identifier (pointer_declarator "* ltime(void)" * (function_declarator "ltime(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  tm *ptVar4;\n  tm *ptVar5;\n  tm *in_a0;\n  int iVar6;\n  int iVar7;\n  uint *puVar8;\n  int iVar9;\n  undefined *puVar10;\n  time_t t;\n  uint *local_c;\n  \n  local_c = *(uint **)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_time_001224a4)(&t);\n  if (t == -1) {\n    ptVar4 = (tm *)(*(code *)PTR___assert_fail_00121f78)\n                             (PTR_E0_218__00121388 + 0x60a0,PTR_E0_218__00121388 + 0x6098,0xe,\n                              PTR_E0_218__00121388 + 0x60c0);\n    return ptVar4;\n  }\n  piVar1 = (int *)(*(code *)PTR_localtime_00121f90)(&t);\n  piVar3 = piVar1;\n  ptVar4 = in_a0;\n  do {\n    ptVar5 = ptVar4;\n    piVar2 = piVar3;\n    iVar9 = piVar2[1];\n    iVar7 = piVar2[2];\n    iVar6 = piVar2[3];\n    ptVar5->tm_sec = *piVar2;\n    ptVar5->tm_min = iVar9;\n    ptVar5->tm_hour = iVar7;\n    ptVar5->tm_mday = iVar6;\n    piVar3 = piVar2 + 4;\n    ptVar4 = (tm *)&ptVar5->tm_mon;\n  } while (piVar3 != piVar1 + 8);\n  puVar8 = (uint *)*piVar3;\n  iVar7 = piVar2[5];\n  iVar6 = piVar2[6];\n  ptVar5->tm_mon = (int)puVar8;\n  ptVar5->tm_year = iVar7;\n  ptVar5->tm_wday = iVar6;\n  if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n    return in_a0;\n  }\n  puVar10 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar6 = local_c[2] - *(int *)(*(int *)(puVar10 + 0x78458) + 0x2ea0);\n  iVar7 = puVar8[2] - *(int *)(*(int *)(puVar10 + 0x78458) + 0x2ea0);\n  if (iVar6 < iVar7) {\n    return (tm *)0xffffffff;\n  }\n  if (iVar6 <= iVar7) {\n    if (*local_c < *puVar8) {\n      return (tm *)0xffffffff;\n    }\n    if (*local_c <= *puVar8) {\n      if (puVar8[1] <= local_c[1]) {\n        return (tm *)(uint)(puVar8[1] < local_c[1]);\n      }\n      return (tm *)0xffffffff;\n    }\n    return (tm *)&DAT_00000001;\n  }\n  return (tm *)&DAT_00000001;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "tm *ptVar4;" type_identifier (pointer_declarator "*ptVar4" * identifier) ;) (declaration "tm *ptVar5;" type_identifier (pointer_declarator "*ptVar5" * identifier) ;) (declaration "tm *in_a0;" type_identifier (pointer_declarator "*in_a0" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "time_t t;" type_identifier identifier ;) (declaration "uint *local_c;" type_identifier (pointer_declarator "*local_c" * identifier) ;) (expression_statement "local_c = *(uint **)PTR___stack_chk_guard_00122654;" (assignment_expression "local_c = *(uint **)PTR___stack_chk_guard_00122654" identifier = (pointer_expression "*(uint **)PTR___stack_chk_guard_00122654" * (cast_expression "(uint **)PTR___stack_chk_guard_00122654" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "(*(code *)PTR_time_001224a4)(&t);" (call_expression "(*(code *)PTR_time_001224a4)(&t)" (parenthesized_expression "(*(code *)PTR_time_001224a4)" ( (pointer_expression "*(code *)PTR_time_001224a4" * (cast_expression "(code *)PTR_time_001224a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&t)" ( (pointer_expression "&t" & identifier) ))) ;) (if_statement "if (t == -1) {\n    ptVar4 = (tm *)(*(code *)PTR___assert_fail_00121f78)\n                             (PTR_E0_218__00121388 + 0x60a0,PTR_E0_218__00121388 + 0x6098,0xe,\n                              PTR_E0_218__00121388 + 0x60c0);\n    return ptVar4;\n  }" if (parenthesized_expression "(t == -1)" ( (binary_expression "t == -1" identifier == number_literal) )) (compound_statement "{\n    ptVar4 = (tm *)(*(code *)PTR___assert_fail_00121f78)\n                             (PTR_E0_218__00121388 + 0x60a0,PTR_E0_218__00121388 + 0x6098,0xe,\n                              PTR_E0_218__00121388 + 0x60c0);\n    return ptVar4;\n  }" { (expression_statement "ptVar4 = (tm *)(*(code *)PTR___assert_fail_00121f78)\n                             (PTR_E0_218__00121388 + 0x60a0,PTR_E0_218__00121388 + 0x6098,0xe,\n                              PTR_E0_218__00121388 + 0x60c0);" (assignment_expression "ptVar4 = (tm *)(*(code *)PTR___assert_fail_00121f78)\n                             (PTR_E0_218__00121388 + 0x60a0,PTR_E0_218__00121388 + 0x6098,0xe,\n                              PTR_E0_218__00121388 + 0x60c0)" identifier = (cast_expression "(tm *)(*(code *)PTR___assert_fail_00121f78)\n                             (PTR_E0_218__00121388 + 0x60a0,PTR_E0_218__00121388 + 0x6098,0xe,\n                              PTR_E0_218__00121388 + 0x60c0)" ( (type_descriptor "tm *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_00121f78)\n                             (PTR_E0_218__00121388 + 0x60a0,PTR_E0_218__00121388 + 0x6098,0xe,\n                              PTR_E0_218__00121388 + 0x60c0)" (parenthesized_expression "(*(code *)PTR___assert_fail_00121f78)" ( (pointer_expression "*(code *)PTR___assert_fail_00121f78" * (cast_expression "(code *)PTR___assert_fail_00121f78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_E0_218__00121388 + 0x60a0,PTR_E0_218__00121388 + 0x6098,0xe,\n                              PTR_E0_218__00121388 + 0x60c0)" ( (binary_expression "PTR_E0_218__00121388 + 0x60a0" identifier + number_literal) , (binary_expression "PTR_E0_218__00121388 + 0x6098" identifier + number_literal) , number_literal , (binary_expression "PTR_E0_218__00121388 + 0x60c0" identifier + number_literal) ))))) ;) (return_statement "return ptVar4;" return identifier ;) })) (expression_statement "piVar1 = (int *)(*(code *)PTR_localtime_00121f90)(&t);" (assignment_expression "piVar1 = (int *)(*(code *)PTR_localtime_00121f90)(&t)" identifier = (cast_expression "(int *)(*(code *)PTR_localtime_00121f90)(&t)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_localtime_00121f90)(&t)" (parenthesized_expression "(*(code *)PTR_localtime_00121f90)" ( (pointer_expression "*(code *)PTR_localtime_00121f90" * (cast_expression "(code *)PTR_localtime_00121f90" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&t)" ( (pointer_expression "&t" & identifier) ))))) ;) (expression_statement "piVar3 = piVar1;" (assignment_expression "piVar3 = piVar1" identifier = identifier) ;) (expression_statement "ptVar4 = in_a0;" (assignment_expression "ptVar4 = in_a0" identifier = identifier) ;) (do_statement "do {\n    ptVar5 = ptVar4;\n    piVar2 = piVar3;\n    iVar9 = piVar2[1];\n    iVar7 = piVar2[2];\n    iVar6 = piVar2[3];\n    ptVar5->tm_sec = *piVar2;\n    ptVar5->tm_min = iVar9;\n    ptVar5->tm_hour = iVar7;\n    ptVar5->tm_mday = iVar6;\n    piVar3 = piVar2 + 4;\n    ptVar4 = (tm *)&ptVar5->tm_mon;\n  } while (piVar3 != piVar1 + 8);" do (compound_statement "{\n    ptVar5 = ptVar4;\n    piVar2 = piVar3;\n    iVar9 = piVar2[1];\n    iVar7 = piVar2[2];\n    iVar6 = piVar2[3];\n    ptVar5->tm_sec = *piVar2;\n    ptVar5->tm_min = iVar9;\n    ptVar5->tm_hour = iVar7;\n    ptVar5->tm_mday = iVar6;\n    piVar3 = piVar2 + 4;\n    ptVar4 = (tm *)&ptVar5->tm_mon;\n  }" { (expression_statement "ptVar5 = ptVar4;" (assignment_expression "ptVar5 = ptVar4" identifier = identifier) ;) (expression_statement "piVar2 = piVar3;" (assignment_expression "piVar2 = piVar3" identifier = identifier) ;) (expression_statement "iVar9 = piVar2[1];" (assignment_expression "iVar9 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "iVar7 = piVar2[2];" (assignment_expression "iVar7 = piVar2[2]" identifier = (subscript_expression "piVar2[2]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = piVar2[3];" (assignment_expression "iVar6 = piVar2[3]" identifier = (subscript_expression "piVar2[3]" identifier [ number_literal ])) ;) (expression_statement "ptVar5->tm_sec = *piVar2;" (assignment_expression "ptVar5->tm_sec = *piVar2" (field_expression "ptVar5->tm_sec" identifier -> field_identifier) = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "ptVar5->tm_min = iVar9;" (assignment_expression "ptVar5->tm_min = iVar9" (field_expression "ptVar5->tm_min" identifier -> field_identifier) = identifier) ;) (expression_statement "ptVar5->tm_hour = iVar7;" (assignment_expression "ptVar5->tm_hour = iVar7" (field_expression "ptVar5->tm_hour" identifier -> field_identifier) = identifier) ;) (expression_statement "ptVar5->tm_mday = iVar6;" (assignment_expression "ptVar5->tm_mday = iVar6" (field_expression "ptVar5->tm_mday" identifier -> field_identifier) = identifier) ;) (expression_statement "piVar3 = piVar2 + 4;" (assignment_expression "piVar3 = piVar2 + 4" identifier = (binary_expression "piVar2 + 4" identifier + number_literal)) ;) (expression_statement "ptVar4 = (tm *)&ptVar5->tm_mon;" (assignment_expression "ptVar4 = (tm *)&ptVar5->tm_mon" identifier = (cast_expression "(tm *)&ptVar5->tm_mon" ( (type_descriptor "tm *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ptVar5->tm_mon" & (field_expression "ptVar5->tm_mon" identifier -> field_identifier)))) ;) }) while (parenthesized_expression "(piVar3 != piVar1 + 8)" ( (binary_expression "piVar3 != piVar1 + 8" identifier != (binary_expression "piVar1 + 8" identifier + number_literal)) )) ;) (expression_statement "puVar8 = (uint *)*piVar3;" (assignment_expression "puVar8 = (uint *)*piVar3" identifier = (cast_expression "(uint *)*piVar3" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) (expression_statement "iVar7 = piVar2[5];" (assignment_expression "iVar7 = piVar2[5]" identifier = (subscript_expression "piVar2[5]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = piVar2[6];" (assignment_expression "iVar6 = piVar2[6]" identifier = (subscript_expression "piVar2[6]" identifier [ number_literal ])) ;) (expression_statement "ptVar5->tm_mon = (int)puVar8;" (assignment_expression "ptVar5->tm_mon = (int)puVar8" (field_expression "ptVar5->tm_mon" identifier -> field_identifier) = (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "ptVar5->tm_year = iVar7;" (assignment_expression "ptVar5->tm_year = iVar7" (field_expression "ptVar5->tm_year" identifier -> field_identifier) = identifier) ;) (expression_statement "ptVar5->tm_wday = iVar6;" (assignment_expression "ptVar5->tm_wday = iVar6" (field_expression "ptVar5->tm_wday" identifier -> field_identifier) = identifier) ;) (if_statement "if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n    return in_a0;\n  }" if (parenthesized_expression "(local_c == *(uint **)PTR___stack_chk_guard_00122654)" ( (binary_expression "local_c == *(uint **)PTR___stack_chk_guard_00122654" identifier == (pointer_expression "*(uint **)PTR___stack_chk_guard_00122654" * (cast_expression "(uint **)PTR___stack_chk_guard_00122654" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return in_a0;\n  }" { (return_statement "return in_a0;" return identifier ;) })) (expression_statement "puVar10 = PTR___stack_chk_fail_001222ec;" (assignment_expression "puVar10 = PTR___stack_chk_fail_001222ec" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_001222ec)();" (call_expression "(*(code *)PTR___stack_chk_fail_001222ec)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001222ec)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001222ec" * (cast_expression "(code *)PTR___stack_chk_fail_001222ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar6 = local_c[2] - *(int *)(*(int *)(puVar10 + 0x78458) + 0x2ea0);" (assignment_expression "iVar6 = local_c[2] - *(int *)(*(int *)(puVar10 + 0x78458) + 0x2ea0)" identifier = (binary_expression "local_c[2] - *(int *)(*(int *)(puVar10 + 0x78458) + 0x2ea0)" (subscript_expression "local_c[2]" identifier [ number_literal ]) - (pointer_expression "*(int *)(*(int *)(puVar10 + 0x78458) + 0x2ea0)" * (cast_expression "(int *)(*(int *)(puVar10 + 0x78458) + 0x2ea0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar10 + 0x78458) + 0x2ea0)" ( (binary_expression "*(int *)(puVar10 + 0x78458) + 0x2ea0" (pointer_expression "*(int *)(puVar10 + 0x78458)" * (cast_expression "(int *)(puVar10 + 0x78458)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x78458)" ( (binary_expression "puVar10 + 0x78458" identifier + number_literal) )))) + number_literal) )))))) ;) (expression_statement "iVar7 = puVar8[2] - *(int *)(*(int *)(puVar10 + 0x78458) + 0x2ea0);" (assignment_expression "iVar7 = puVar8[2] - *(int *)(*(int *)(puVar10 + 0x78458) + 0x2ea0)" identifier = (binary_expression "puVar8[2] - *(int *)(*(int *)(puVar10 + 0x78458) + 0x2ea0)" (subscript_expression "puVar8[2]" identifier [ number_literal ]) - (pointer_expression "*(int *)(*(int *)(puVar10 + 0x78458) + 0x2ea0)" * (cast_expression "(int *)(*(int *)(puVar10 + 0x78458) + 0x2ea0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar10 + 0x78458) + 0x2ea0)" ( (binary_expression "*(int *)(puVar10 + 0x78458) + 0x2ea0" (pointer_expression "*(int *)(puVar10 + 0x78458)" * (cast_expression "(int *)(puVar10 + 0x78458)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0x78458)" ( (binary_expression "puVar10 + 0x78458" identifier + number_literal) )))) + number_literal) )))))) ;) (if_statement "if (iVar6 < iVar7) {\n    return (tm *)0xffffffff;\n  }" if (parenthesized_expression "(iVar6 < iVar7)" ( (binary_expression "iVar6 < iVar7" identifier < identifier) )) (compound_statement "{\n    return (tm *)0xffffffff;\n  }" { (return_statement "return (tm *)0xffffffff;" return (cast_expression "(tm *)0xffffffff" ( (type_descriptor "tm *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (iVar6 <= iVar7) {\n    if (*local_c < *puVar8) {\n      return (tm *)0xffffffff;\n    }\n    if (*local_c <= *puVar8) {\n      if (puVar8[1] <= local_c[1]) {\n        return (tm *)(uint)(puVar8[1] < local_c[1]);\n      }\n      return (tm *)0xffffffff;\n    }\n    return (tm *)&DAT_00000001;\n  }" if (parenthesized_expression "(iVar6 <= iVar7)" ( (binary_expression "iVar6 <= iVar7" identifier <= identifier) )) (compound_statement "{\n    if (*local_c < *puVar8) {\n      return (tm *)0xffffffff;\n    }\n    if (*local_c <= *puVar8) {\n      if (puVar8[1] <= local_c[1]) {\n        return (tm *)(uint)(puVar8[1] < local_c[1]);\n      }\n      return (tm *)0xffffffff;\n    }\n    return (tm *)&DAT_00000001;\n  }" { (if_statement "if (*local_c < *puVar8) {\n      return (tm *)0xffffffff;\n    }" if (parenthesized_expression "(*local_c < *puVar8)" ( (binary_expression "*local_c < *puVar8" (pointer_expression "*local_c" * identifier) < (pointer_expression "*puVar8" * identifier)) )) (compound_statement "{\n      return (tm *)0xffffffff;\n    }" { (return_statement "return (tm *)0xffffffff;" return (cast_expression "(tm *)0xffffffff" ( (type_descriptor "tm *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (*local_c <= *puVar8) {\n      if (puVar8[1] <= local_c[1]) {\n        return (tm *)(uint)(puVar8[1] < local_c[1]);\n      }\n      return (tm *)0xffffffff;\n    }" if (parenthesized_expression "(*local_c <= *puVar8)" ( (binary_expression "*local_c <= *puVar8" (pointer_expression "*local_c" * identifier) <= (pointer_expression "*puVar8" * identifier)) )) (compound_statement "{\n      if (puVar8[1] <= local_c[1]) {\n        return (tm *)(uint)(puVar8[1] < local_c[1]);\n      }\n      return (tm *)0xffffffff;\n    }" { (if_statement "if (puVar8[1] <= local_c[1]) {\n        return (tm *)(uint)(puVar8[1] < local_c[1]);\n      }" if (parenthesized_expression "(puVar8[1] <= local_c[1])" ( (binary_expression "puVar8[1] <= local_c[1]" (subscript_expression "puVar8[1]" identifier [ number_literal ]) <= (subscript_expression "local_c[1]" identifier [ number_literal ])) )) (compound_statement "{\n        return (tm *)(uint)(puVar8[1] < local_c[1]);\n      }" { (return_statement "return (tm *)(uint)(puVar8[1] < local_c[1]);" return (cast_expression "(tm *)(uint)(puVar8[1] < local_c[1])" ( (type_descriptor "tm *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)(puVar8[1] < local_c[1])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar8[1] < local_c[1])" ( (binary_expression "puVar8[1] < local_c[1]" (subscript_expression "puVar8[1]" identifier [ number_literal ]) < (subscript_expression "local_c[1]" identifier [ number_literal ])) )))) ;) })) (return_statement "return (tm *)0xffffffff;" return (cast_expression "(tm *)0xffffffff" ( (type_descriptor "tm *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (return_statement "return (tm *)&DAT_00000001;" return (cast_expression "(tm *)&DAT_00000001" ( (type_descriptor "tm *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00000001" & identifier)) ;) })) (return_statement "return (tm *)&DAT_00000001;" return (cast_expression "(tm *)&DAT_00000001" ( (type_descriptor "tm *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00000001" & identifier)) ;) })))
(translation_unit "undefined4 * ltime(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  uint *puVar9;\n  undefined4 uVar10;\n  uint *puVar11;\n  undefined4 uVar12;\n  undefined *puVar13;\n  int local_10;\n  uint *local_c;\n  \n  local_c = *(uint **)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_time_001224a4)(&local_10);\n  if (local_10 == -1) {\n    puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);\n    puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);\n    (*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);\n  }\n  else {\n    puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);\n    puVar4 = puVar2;\n    puVar1 = param_1;\n    do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);\n    puVar11 = (uint *)*puVar4;\n    uVar10 = puVar3[5];\n    uVar8 = puVar3[6];\n    puVar6[4] = puVar11;\n    puVar6[5] = uVar10;\n    puVar6[6] = uVar8;\n    puVar9 = local_c;\n    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }\n  }\n  puVar13 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar5 = puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);\n  iVar7 = puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);\n  if (iVar5 < iVar7) {\n    return (undefined4 *)0xffffffff;\n  }\n  if (iVar5 <= iVar7) {\n    if (*puVar9 < *puVar11) {\n      return (undefined4 *)0xffffffff;\n    }\n    if (*puVar9 <= *puVar11) {\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }\n    return (undefined4 *)0x1;\n  }\n  return (undefined4 *)0x1;\n}\n\n" (function_definition "undefined4 * ltime(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  uint *puVar9;\n  undefined4 uVar10;\n  uint *puVar11;\n  undefined4 uVar12;\n  undefined *puVar13;\n  int local_10;\n  uint *local_c;\n  \n  local_c = *(uint **)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_time_001224a4)(&local_10);\n  if (local_10 == -1) {\n    puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);\n    puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);\n    (*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);\n  }\n  else {\n    puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);\n    puVar4 = puVar2;\n    puVar1 = param_1;\n    do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);\n    puVar11 = (uint *)*puVar4;\n    uVar10 = puVar3[5];\n    uVar8 = puVar3[6];\n    puVar6[4] = puVar11;\n    puVar6[5] = uVar10;\n    puVar6[6] = uVar8;\n    puVar9 = local_c;\n    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }\n  }\n  puVar13 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar5 = puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);\n  iVar7 = puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);\n  if (iVar5 < iVar7) {\n    return (undefined4 *)0xffffffff;\n  }\n  if (iVar5 <= iVar7) {\n    if (*puVar9 < *puVar11) {\n      return (undefined4 *)0xffffffff;\n    }\n    if (*puVar9 <= *puVar11) {\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }\n    return (undefined4 *)0x1;\n  }\n  return (undefined4 *)0x1;\n}" type_identifier (pointer_declarator "* ltime(undefined4 *param_1)" * (function_declarator "ltime(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  uint *puVar9;\n  undefined4 uVar10;\n  uint *puVar11;\n  undefined4 uVar12;\n  undefined *puVar13;\n  int local_10;\n  uint *local_c;\n  \n  local_c = *(uint **)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_time_001224a4)(&local_10);\n  if (local_10 == -1) {\n    puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);\n    puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);\n    (*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);\n  }\n  else {\n    puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);\n    puVar4 = puVar2;\n    puVar1 = param_1;\n    do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);\n    puVar11 = (uint *)*puVar4;\n    uVar10 = puVar3[5];\n    uVar8 = puVar3[6];\n    puVar6[4] = puVar11;\n    puVar6[5] = uVar10;\n    puVar6[6] = uVar8;\n    puVar9 = local_c;\n    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }\n  }\n  puVar13 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar5 = puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);\n  iVar7 = puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);\n  if (iVar5 < iVar7) {\n    return (undefined4 *)0xffffffff;\n  }\n  if (iVar5 <= iVar7) {\n    if (*puVar9 < *puVar11) {\n      return (undefined4 *)0xffffffff;\n    }\n    if (*puVar9 <= *puVar11) {\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }\n    return (undefined4 *)0x1;\n  }\n  return (undefined4 *)0x1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "uint *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "uint *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "undefined4 uVar12;" type_identifier identifier ;) (declaration "undefined *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "uint *local_c;" type_identifier (pointer_declarator "*local_c" * identifier) ;) (expression_statement "local_c = *(uint **)PTR___stack_chk_guard_00122654;" (assignment_expression "local_c = *(uint **)PTR___stack_chk_guard_00122654" identifier = (pointer_expression "*(uint **)PTR___stack_chk_guard_00122654" * (cast_expression "(uint **)PTR___stack_chk_guard_00122654" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "(*(code *)PTR_time_001224a4)(&local_10);" (call_expression "(*(code *)PTR_time_001224a4)(&local_10)" (parenthesized_expression "(*(code *)PTR_time_001224a4)" ( (pointer_expression "*(code *)PTR_time_001224a4" * (cast_expression "(code *)PTR_time_001224a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_10)" ( (pointer_expression "&local_10" & identifier) ))) ;) (if_statement "if (local_10 == -1) {\n    puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);\n    puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);\n    (*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);\n  }\n  else {\n    puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);\n    puVar4 = puVar2;\n    puVar1 = param_1;\n    do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);\n    puVar11 = (uint *)*puVar4;\n    uVar10 = puVar3[5];\n    uVar8 = puVar3[6];\n    puVar6[4] = puVar11;\n    puVar6[5] = uVar10;\n    puVar6[6] = uVar8;\n    puVar9 = local_c;\n    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }\n  }" if (parenthesized_expression "(local_10 == -1)" ( (binary_expression "local_10 == -1" identifier == number_literal) )) (compound_statement "{\n    puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);\n    puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);\n    (*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);\n  }" { (expression_statement "puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);" (assignment_expression "puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098)" identifier = (cast_expression "(uint *)(PTR_DAT_00121388 + 0x6098)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00121388 + 0x6098)" ( (binary_expression "PTR_DAT_00121388 + 0x6098" identifier + number_literal) )))) ;) (expression_statement "puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);" (assignment_expression "puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0)" identifier = (cast_expression "(uint *)(PTR_DAT_00121388 + 0x60a0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00121388 + 0x60a0)" ( (binary_expression "PTR_DAT_00121388 + 0x60a0" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);" (call_expression "(*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0)" (parenthesized_expression "(*(code *)PTR___assert_fail_00121f78)" ( (pointer_expression "*(code *)PTR___assert_fail_00121f78" * (cast_expression "(code *)PTR___assert_fail_00121f78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0)" ( identifier , identifier , number_literal , (binary_expression "PTR_DAT_00121388 + 0x60c0" identifier + number_literal) ))) ;) }) (else_clause "else {\n    puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);\n    puVar4 = puVar2;\n    puVar1 = param_1;\n    do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);\n    puVar11 = (uint *)*puVar4;\n    uVar10 = puVar3[5];\n    uVar8 = puVar3[6];\n    puVar6[4] = puVar11;\n    puVar6[5] = uVar10;\n    puVar6[6] = uVar8;\n    puVar9 = local_c;\n    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }\n  }" else (compound_statement "{\n    puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);\n    puVar4 = puVar2;\n    puVar1 = param_1;\n    do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);\n    puVar11 = (uint *)*puVar4;\n    uVar10 = puVar3[5];\n    uVar8 = puVar3[6];\n    puVar6[4] = puVar11;\n    puVar6[5] = uVar10;\n    puVar6[6] = uVar8;\n    puVar9 = local_c;\n    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }\n  }" { (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_localtime_00121f90)(&local_10)" (parenthesized_expression "(*(code *)PTR_localtime_00121f90)" ( (pointer_expression "*(code *)PTR_localtime_00121f90" * (cast_expression "(code *)PTR_localtime_00121f90" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_10)" ( (pointer_expression "&local_10" & identifier) ))))) ;) (expression_statement "puVar4 = puVar2;" (assignment_expression "puVar4 = puVar2" identifier = identifier) ;) (expression_statement "puVar1 = param_1;" (assignment_expression "puVar1 = param_1" identifier = identifier) ;) (do_statement "do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);" do (compound_statement "{\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    }" { (expression_statement "puVar6 = puVar1;" (assignment_expression "puVar6 = puVar1" identifier = identifier) ;) (expression_statement "puVar3 = puVar4;" (assignment_expression "puVar3 = puVar4" identifier = identifier) ;) (expression_statement "uVar12 = puVar3[1];" (assignment_expression "uVar12 = puVar3[1]" identifier = (subscript_expression "puVar3[1]" identifier [ number_literal ])) ;) (expression_statement "uVar10 = puVar3[2];" (assignment_expression "uVar10 = puVar3[2]" identifier = (subscript_expression "puVar3[2]" identifier [ number_literal ])) ;) (expression_statement "uVar8 = puVar3[3];" (assignment_expression "uVar8 = puVar3[3]" identifier = (subscript_expression "puVar3[3]" identifier [ number_literal ])) ;) (expression_statement "*puVar6 = *puVar3;" (assignment_expression "*puVar6 = *puVar3" (pointer_expression "*puVar6" * identifier) = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "puVar6[1] = uVar12;" (assignment_expression "puVar6[1] = uVar12" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[2] = uVar10;" (assignment_expression "puVar6[2] = uVar10" (subscript_expression "puVar6[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[3] = uVar8;" (assignment_expression "puVar6[3] = uVar8" (subscript_expression "puVar6[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar4 = puVar3 + 4;" (assignment_expression "puVar4 = puVar3 + 4" identifier = (binary_expression "puVar3 + 4" identifier + number_literal)) ;) (expression_statement "puVar1 = puVar6 + 4;" (assignment_expression "puVar1 = puVar6 + 4" identifier = (binary_expression "puVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar4 != puVar2 + 8)" ( (binary_expression "puVar4 != puVar2 + 8" identifier != (binary_expression "puVar2 + 8" identifier + number_literal)) )) ;) (expression_statement "puVar11 = (uint *)*puVar4;" (assignment_expression "puVar11 = (uint *)*puVar4" identifier = (cast_expression "(uint *)*puVar4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "uVar10 = puVar3[5];" (assignment_expression "uVar10 = puVar3[5]" identifier = (subscript_expression "puVar3[5]" identifier [ number_literal ])) ;) (expression_statement "uVar8 = puVar3[6];" (assignment_expression "uVar8 = puVar3[6]" identifier = (subscript_expression "puVar3[6]" identifier [ number_literal ])) ;) (expression_statement "puVar6[4] = puVar11;" (assignment_expression "puVar6[4] = puVar11" (subscript_expression "puVar6[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[5] = uVar10;" (assignment_expression "puVar6[5] = uVar10" (subscript_expression "puVar6[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[6] = uVar8;" (assignment_expression "puVar6[6] = uVar8" (subscript_expression "puVar6[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar9 = local_c;" (assignment_expression "puVar9 = local_c" identifier = identifier) ;) (if_statement "if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }" if (parenthesized_expression "(local_c == *(uint **)PTR___stack_chk_guard_00122654)" ( (binary_expression "local_c == *(uint **)PTR___stack_chk_guard_00122654" identifier == (pointer_expression "*(uint **)PTR___stack_chk_guard_00122654" * (cast_expression "(uint **)PTR___stack_chk_guard_00122654" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) }))) (expression_statement "puVar13 = PTR___stack_chk_fail_001222ec;" (assignment_expression "puVar13 = PTR___stack_chk_fail_001222ec" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_001222ec)();" (call_expression "(*(code *)PTR___stack_chk_fail_001222ec)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001222ec)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001222ec" * (cast_expression "(code *)PTR___stack_chk_fail_001222ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar5 = puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);" (assignment_expression "iVar5 = puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" identifier = (binary_expression "puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" (subscript_expression "puVar9[2]" identifier [ number_literal ]) - (pointer_expression "*(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" * (cast_expression "(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar13 + 0x78458) + 0x2ea0)" ( (binary_expression "*(int *)(puVar13 + 0x78458) + 0x2ea0" (pointer_expression "*(int *)(puVar13 + 0x78458)" * (cast_expression "(int *)(puVar13 + 0x78458)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar13 + 0x78458)" ( (binary_expression "puVar13 + 0x78458" identifier + number_literal) )))) + number_literal) )))))) ;) (expression_statement "iVar7 = puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);" (assignment_expression "iVar7 = puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" identifier = (binary_expression "puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" (subscript_expression "puVar11[2]" identifier [ number_literal ]) - (pointer_expression "*(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" * (cast_expression "(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar13 + 0x78458) + 0x2ea0)" ( (binary_expression "*(int *)(puVar13 + 0x78458) + 0x2ea0" (pointer_expression "*(int *)(puVar13 + 0x78458)" * (cast_expression "(int *)(puVar13 + 0x78458)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar13 + 0x78458)" ( (binary_expression "puVar13 + 0x78458" identifier + number_literal) )))) + number_literal) )))))) ;) (if_statement "if (iVar5 < iVar7) {\n    return (undefined4 *)0xffffffff;\n  }" if (parenthesized_expression "(iVar5 < iVar7)" ( (binary_expression "iVar5 < iVar7" identifier < identifier) )) (compound_statement "{\n    return (undefined4 *)0xffffffff;\n  }" { (return_statement "return (undefined4 *)0xffffffff;" return (cast_expression "(undefined4 *)0xffffffff" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (iVar5 <= iVar7) {\n    if (*puVar9 < *puVar11) {\n      return (undefined4 *)0xffffffff;\n    }\n    if (*puVar9 <= *puVar11) {\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }\n    return (undefined4 *)0x1;\n  }" if (parenthesized_expression "(iVar5 <= iVar7)" ( (binary_expression "iVar5 <= iVar7" identifier <= identifier) )) (compound_statement "{\n    if (*puVar9 < *puVar11) {\n      return (undefined4 *)0xffffffff;\n    }\n    if (*puVar9 <= *puVar11) {\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }\n    return (undefined4 *)0x1;\n  }" { (if_statement "if (*puVar9 < *puVar11) {\n      return (undefined4 *)0xffffffff;\n    }" if (parenthesized_expression "(*puVar9 < *puVar11)" ( (binary_expression "*puVar9 < *puVar11" (pointer_expression "*puVar9" * identifier) < (pointer_expression "*puVar11" * identifier)) )) (compound_statement "{\n      return (undefined4 *)0xffffffff;\n    }" { (return_statement "return (undefined4 *)0xffffffff;" return (cast_expression "(undefined4 *)0xffffffff" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (*puVar9 <= *puVar11) {\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }" if (parenthesized_expression "(*puVar9 <= *puVar11)" ( (binary_expression "*puVar9 <= *puVar11" (pointer_expression "*puVar9" * identifier) <= (pointer_expression "*puVar11" * identifier)) )) (compound_statement "{\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }" { (if_statement "if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }" if (parenthesized_expression "(puVar11[1] <= puVar9[1])" ( (binary_expression "puVar11[1] <= puVar9[1]" (subscript_expression "puVar11[1]" identifier [ number_literal ]) <= (subscript_expression "puVar9[1]" identifier [ number_literal ])) )) (compound_statement "{\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }" { (return_statement "return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);" return (cast_expression "(undefined4 *)(uint)(puVar11[1] < puVar9[1])" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)(puVar11[1] < puVar9[1])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar11[1] < puVar9[1])" ( (binary_expression "puVar11[1] < puVar9[1]" (subscript_expression "puVar11[1]" identifier [ number_literal ]) < (subscript_expression "puVar9[1]" identifier [ number_literal ])) )))) ;) })) (return_statement "return (undefined4 *)0xffffffff;" return (cast_expression "(undefined4 *)0xffffffff" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (return_statement "return (undefined4 *)0x1;" return (cast_expression "(undefined4 *)0x1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (return_statement "return (undefined4 *)0x1;" return (cast_expression "(undefined4 *)0x1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT , (binary_expression IDENT + LIT) ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression & IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + LIT)) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) }))) (expression_statement (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 = (binary_expression (subscript_expression IDENT [ LIT ]) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT)) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= (pointer_expression * IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) <= (subscript_expression IDENT [ LIT ])) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) < (subscript_expression IDENT [ LIT ])) )))) ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "undefined4 * ltime(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  uint *puVar9;\n  undefined4 uVar10;\n  uint *puVar11;\n  undefined4 uVar12;\n  undefined *puVar13;\n  int local_10;\n  uint *local_c;\n  \n  local_c = *(uint **)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_time_001224a4)(&local_10);\n  if (local_10 == -1) {\n    puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);\n    puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);\n    (*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);\n  }\n  else {\n    puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);\n    puVar4 = puVar2;\n    puVar1 = param_1;\n    do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);\n    puVar11 = (uint *)*puVar4;\n    uVar10 = puVar3[5];\n    uVar8 = puVar3[6];\n    puVar6[4] = puVar11;\n    puVar6[5] = uVar10;\n    puVar6[6] = uVar8;\n    puVar9 = local_c;\n    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }\n  }\n  puVar13 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar5 = puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);\n  iVar7 = puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);\n  if (iVar5 < iVar7) {\n    return (undefined4 *)0xffffffff;\n  }\n  if (iVar5 <= iVar7) {\n    if (*puVar9 < *puVar11) {\n      return (undefined4 *)0xffffffff;\n    }\n    if (*puVar9 <= *puVar11) {\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }\n    return (undefined4 *)0x1;\n  }\n  return (undefined4 *)0x1;\n}" (type_identifier "undefined4") (pointer_declarator "* ltime(undefined4 *param_1)" (* "*") (function_declarator "ltime(undefined4 *param_1)" (identifier "ltime") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined4 uVar8;\n  uint *puVar9;\n  undefined4 uVar10;\n  uint *puVar11;\n  undefined4 uVar12;\n  undefined *puVar13;\n  int local_10;\n  uint *local_c;\n  \n  local_c = *(uint **)PTR___stack_chk_guard_00122654;\n  (*(code *)PTR_time_001224a4)(&local_10);\n  if (local_10 == -1) {\n    puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);\n    puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);\n    (*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);\n  }\n  else {\n    puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);\n    puVar4 = puVar2;\n    puVar1 = param_1;\n    do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);\n    puVar11 = (uint *)*puVar4;\n    uVar10 = puVar3[5];\n    uVar8 = puVar3[6];\n    puVar6[4] = puVar11;\n    puVar6[5] = uVar10;\n    puVar6[6] = uVar8;\n    puVar9 = local_c;\n    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }\n  }\n  puVar13 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar5 = puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);\n  iVar7 = puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);\n  if (iVar5 < iVar7) {\n    return (undefined4 *)0xffffffff;\n  }\n  if (iVar5 <= iVar7) {\n    if (*puVar9 < *puVar11) {\n      return (undefined4 *)0xffffffff;\n    }\n    if (*puVar9 <= *puVar11) {\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }\n    return (undefined4 *)0x1;\n  }\n  return (undefined4 *)0x1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "uint *puVar9;" (type_identifier "uint") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "undefined4 uVar10;" (type_identifier "undefined4") (identifier "uVar10") (; ";")) (declaration "uint *puVar11;" (type_identifier "uint") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "undefined4 uVar12;" (type_identifier "undefined4") (identifier "uVar12") (; ";")) (declaration "undefined *puVar13;" (type_identifier "undefined") (pointer_declarator "*puVar13" (* "*") (identifier "puVar13")) (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (declaration "uint *local_c;" (type_identifier "uint") (pointer_declarator "*local_c" (* "*") (identifier "local_c")) (; ";")) (expression_statement "local_c = *(uint **)PTR___stack_chk_guard_00122654;" (assignment_expression "local_c = *(uint **)PTR___stack_chk_guard_00122654" (identifier "local_c") (= "=") (pointer_expression "*(uint **)PTR___stack_chk_guard_00122654" (* "*") (cast_expression "(uint **)PTR___stack_chk_guard_00122654" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_00122654")))) (; ";")) (expression_statement "(*(code *)PTR_time_001224a4)(&local_10);" (call_expression "(*(code *)PTR_time_001224a4)(&local_10)" (parenthesized_expression "(*(code *)PTR_time_001224a4)" (( "(") (pointer_expression "*(code *)PTR_time_001224a4" (* "*") (cast_expression "(code *)PTR_time_001224a4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_time_001224a4"))) () ")")) (argument_list "(&local_10)" (( "(") (pointer_expression "&local_10" (& "&") (identifier "local_10")) () ")"))) (; ";")) (if_statement "if (local_10 == -1) {\n    puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);\n    puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);\n    (*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);\n  }\n  else {\n    puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);\n    puVar4 = puVar2;\n    puVar1 = param_1;\n    do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);\n    puVar11 = (uint *)*puVar4;\n    uVar10 = puVar3[5];\n    uVar8 = puVar3[6];\n    puVar6[4] = puVar11;\n    puVar6[5] = uVar10;\n    puVar6[6] = uVar8;\n    puVar9 = local_c;\n    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }\n  }" (if "if") (parenthesized_expression "(local_10 == -1)" (( "(") (binary_expression "local_10 == -1" (identifier "local_10") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);\n    puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);\n    (*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);\n  }" ({ "{") (expression_statement "puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);" (assignment_expression "puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098)" (identifier "puVar11") (= "=") (cast_expression "(uint *)(PTR_DAT_00121388 + 0x6098)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00121388 + 0x6098)" (( "(") (binary_expression "PTR_DAT_00121388 + 0x6098" (identifier "PTR_DAT_00121388") (+ "+") (number_literal "0x6098")) () ")")))) (; ";")) (expression_statement "puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);" (assignment_expression "puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0)" (identifier "puVar9") (= "=") (cast_expression "(uint *)(PTR_DAT_00121388 + 0x60a0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00121388 + 0x60a0)" (( "(") (binary_expression "PTR_DAT_00121388 + 0x60a0" (identifier "PTR_DAT_00121388") (+ "+") (number_literal "0x60a0")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);" (call_expression "(*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0)" (parenthesized_expression "(*(code *)PTR___assert_fail_00121f78)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_00121f78" (* "*") (cast_expression "(code *)PTR___assert_fail_00121f78" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_00121f78"))) () ")")) (argument_list "(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0)" (( "(") (identifier "puVar9") (, ",") (identifier "puVar11") (, ",") (number_literal "0xe") (, ",") (binary_expression "PTR_DAT_00121388 + 0x60c0" (identifier "PTR_DAT_00121388") (+ "+") (number_literal "0x60c0")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);\n    puVar4 = puVar2;\n    puVar1 = param_1;\n    do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);\n    puVar11 = (uint *)*puVar4;\n    uVar10 = puVar3[5];\n    uVar8 = puVar3[6];\n    puVar6[4] = puVar11;\n    puVar6[5] = uVar10;\n    puVar6[6] = uVar8;\n    puVar9 = local_c;\n    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }\n  }" (else "else") (compound_statement "{\n    puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);\n    puVar4 = puVar2;\n    puVar1 = param_1;\n    do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);\n    puVar11 = (uint *)*puVar4;\n    uVar10 = puVar3[5];\n    uVar8 = puVar3[6];\n    puVar6[4] = puVar11;\n    puVar6[5] = uVar10;\n    puVar6[6] = uVar8;\n    puVar9 = local_c;\n    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }\n  }" ({ "{") (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_localtime_00121f90)(&local_10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_localtime_00121f90)(&local_10)" (parenthesized_expression "(*(code *)PTR_localtime_00121f90)" (( "(") (pointer_expression "*(code *)PTR_localtime_00121f90" (* "*") (cast_expression "(code *)PTR_localtime_00121f90" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_localtime_00121f90"))) () ")")) (argument_list "(&local_10)" (( "(") (pointer_expression "&local_10" (& "&") (identifier "local_10")) () ")"))))) (; ";")) (expression_statement "puVar4 = puVar2;" (assignment_expression "puVar4 = puVar2" (identifier "puVar4") (= "=") (identifier "puVar2")) (; ";")) (expression_statement "puVar1 = param_1;" (assignment_expression "puVar1 = param_1" (identifier "puVar1") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    } while (puVar4 != puVar2 + 8);" (do "do") (compound_statement "{\n      puVar6 = puVar1;\n      puVar3 = puVar4;\n      uVar12 = puVar3[1];\n      uVar10 = puVar3[2];\n      uVar8 = puVar3[3];\n      *puVar6 = *puVar3;\n      puVar6[1] = uVar12;\n      puVar6[2] = uVar10;\n      puVar6[3] = uVar8;\n      puVar4 = puVar3 + 4;\n      puVar1 = puVar6 + 4;\n    }" ({ "{") (expression_statement "puVar6 = puVar1;" (assignment_expression "puVar6 = puVar1" (identifier "puVar6") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "puVar3 = puVar4;" (assignment_expression "puVar3 = puVar4" (identifier "puVar3") (= "=") (identifier "puVar4")) (; ";")) (expression_statement "uVar12 = puVar3[1];" (assignment_expression "uVar12 = puVar3[1]" (identifier "uVar12") (= "=") (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar10 = puVar3[2];" (assignment_expression "uVar10 = puVar3[2]" (identifier "uVar10") (= "=") (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar8 = puVar3[3];" (assignment_expression "uVar8 = puVar3[3]" (identifier "uVar8") (= "=") (subscript_expression "puVar3[3]" (identifier "puVar3") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*puVar6 = *puVar3;" (assignment_expression "*puVar6 = *puVar3" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (expression_statement "puVar6[1] = uVar12;" (assignment_expression "puVar6[1] = uVar12" (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar12")) (; ";")) (expression_statement "puVar6[2] = uVar10;" (assignment_expression "puVar6[2] = uVar10" (subscript_expression "puVar6[2]" (identifier "puVar6") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "puVar6[3] = uVar8;" (assignment_expression "puVar6[3] = uVar8" (subscript_expression "puVar6[3]" (identifier "puVar6") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar8")) (; ";")) (expression_statement "puVar4 = puVar3 + 4;" (assignment_expression "puVar4 = puVar3 + 4" (identifier "puVar4") (= "=") (binary_expression "puVar3 + 4" (identifier "puVar3") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "puVar1 = puVar6 + 4;" (assignment_expression "puVar1 = puVar6 + 4" (identifier "puVar1") (= "=") (binary_expression "puVar6 + 4" (identifier "puVar6") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar4 != puVar2 + 8)" (( "(") (binary_expression "puVar4 != puVar2 + 8" (identifier "puVar4") (!= "!=") (binary_expression "puVar2 + 8" (identifier "puVar2") (+ "+") (number_literal "8"))) () ")")) (; ";")) (expression_statement "puVar11 = (uint *)*puVar4;" (assignment_expression "puVar11 = (uint *)*puVar4" (identifier "puVar11") (= "=") (cast_expression "(uint *)*puVar4" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")))) (; ";")) (expression_statement "uVar10 = puVar3[5];" (assignment_expression "uVar10 = puVar3[5]" (identifier "uVar10") (= "=") (subscript_expression "puVar3[5]" (identifier "puVar3") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "uVar8 = puVar3[6];" (assignment_expression "uVar8 = puVar3[6]" (identifier "uVar8") (= "=") (subscript_expression "puVar3[6]" (identifier "puVar3") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "puVar6[4] = puVar11;" (assignment_expression "puVar6[4] = puVar11" (subscript_expression "puVar6[4]" (identifier "puVar6") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "puVar11")) (; ";")) (expression_statement "puVar6[5] = uVar10;" (assignment_expression "puVar6[5] = uVar10" (subscript_expression "puVar6[5]" (identifier "puVar6") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "puVar6[6] = uVar8;" (assignment_expression "puVar6[6] = uVar8" (subscript_expression "puVar6[6]" (identifier "puVar6") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "uVar8")) (; ";")) (expression_statement "puVar9 = local_c;" (assignment_expression "puVar9 = local_c" (identifier "puVar9") (= "=") (identifier "local_c")) (; ";")) (if_statement "if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {\n      return param_1;\n    }" (if "if") (parenthesized_expression "(local_c == *(uint **)PTR___stack_chk_guard_00122654)" (( "(") (binary_expression "local_c == *(uint **)PTR___stack_chk_guard_00122654" (identifier "local_c") (== "==") (pointer_expression "*(uint **)PTR___stack_chk_guard_00122654" (* "*") (cast_expression "(uint **)PTR___stack_chk_guard_00122654" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_00122654")))) () ")")) (compound_statement "{\n      return param_1;\n    }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}")))) (expression_statement "puVar13 = PTR___stack_chk_fail_001222ec;" (assignment_expression "puVar13 = PTR___stack_chk_fail_001222ec" (identifier "puVar13") (= "=") (identifier "PTR___stack_chk_fail_001222ec")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_001222ec)();" (call_expression "(*(code *)PTR___stack_chk_fail_001222ec)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001222ec)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_001222ec" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_001222ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_001222ec"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar5 = puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);" (assignment_expression "iVar5 = puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" (identifier "iVar5") (= "=") (binary_expression "puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" (subscript_expression "puVar9[2]" (identifier "puVar9") ([ "[") (number_literal "2") (] "]")) (- "-") (pointer_expression "*(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" (* "*") (cast_expression "(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar13 + 0x78458) + 0x2ea0)" (( "(") (binary_expression "*(int *)(puVar13 + 0x78458) + 0x2ea0" (pointer_expression "*(int *)(puVar13 + 0x78458)" (* "*") (cast_expression "(int *)(puVar13 + 0x78458)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar13 + 0x78458)" (( "(") (binary_expression "puVar13 + 0x78458" (identifier "puVar13") (+ "+") (number_literal "0x78458")) () ")")))) (+ "+") (number_literal "0x2ea0")) () ")")))))) (; ";")) (expression_statement "iVar7 = puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);" (assignment_expression "iVar7 = puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" (identifier "iVar7") (= "=") (binary_expression "puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" (subscript_expression "puVar11[2]" (identifier "puVar11") ([ "[") (number_literal "2") (] "]")) (- "-") (pointer_expression "*(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" (* "*") (cast_expression "(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar13 + 0x78458) + 0x2ea0)" (( "(") (binary_expression "*(int *)(puVar13 + 0x78458) + 0x2ea0" (pointer_expression "*(int *)(puVar13 + 0x78458)" (* "*") (cast_expression "(int *)(puVar13 + 0x78458)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar13 + 0x78458)" (( "(") (binary_expression "puVar13 + 0x78458" (identifier "puVar13") (+ "+") (number_literal "0x78458")) () ")")))) (+ "+") (number_literal "0x2ea0")) () ")")))))) (; ";")) (if_statement "if (iVar5 < iVar7) {\n    return (undefined4 *)0xffffffff;\n  }" (if "if") (parenthesized_expression "(iVar5 < iVar7)" (( "(") (binary_expression "iVar5 < iVar7" (identifier "iVar5") (< "<") (identifier "iVar7")) () ")")) (compound_statement "{\n    return (undefined4 *)0xffffffff;\n  }" ({ "{") (return_statement "return (undefined4 *)0xffffffff;" (return "return") (cast_expression "(undefined4 *)0xffffffff" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffff")) (; ";")) (} "}"))) (if_statement "if (iVar5 <= iVar7) {\n    if (*puVar9 < *puVar11) {\n      return (undefined4 *)0xffffffff;\n    }\n    if (*puVar9 <= *puVar11) {\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }\n    return (undefined4 *)0x1;\n  }" (if "if") (parenthesized_expression "(iVar5 <= iVar7)" (( "(") (binary_expression "iVar5 <= iVar7" (identifier "iVar5") (<= "<=") (identifier "iVar7")) () ")")) (compound_statement "{\n    if (*puVar9 < *puVar11) {\n      return (undefined4 *)0xffffffff;\n    }\n    if (*puVar9 <= *puVar11) {\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }\n    return (undefined4 *)0x1;\n  }" ({ "{") (if_statement "if (*puVar9 < *puVar11) {\n      return (undefined4 *)0xffffffff;\n    }" (if "if") (parenthesized_expression "(*puVar9 < *puVar11)" (( "(") (binary_expression "*puVar9 < *puVar11" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (< "<") (pointer_expression "*puVar11" (* "*") (identifier "puVar11"))) () ")")) (compound_statement "{\n      return (undefined4 *)0xffffffff;\n    }" ({ "{") (return_statement "return (undefined4 *)0xffffffff;" (return "return") (cast_expression "(undefined4 *)0xffffffff" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffff")) (; ";")) (} "}"))) (if_statement "if (*puVar9 <= *puVar11) {\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }" (if "if") (parenthesized_expression "(*puVar9 <= *puVar11)" (( "(") (binary_expression "*puVar9 <= *puVar11" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (<= "<=") (pointer_expression "*puVar11" (* "*") (identifier "puVar11"))) () ")")) (compound_statement "{\n      if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }\n      return (undefined4 *)0xffffffff;\n    }" ({ "{") (if_statement "if (puVar11[1] <= puVar9[1]) {\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }" (if "if") (parenthesized_expression "(puVar11[1] <= puVar9[1])" (( "(") (binary_expression "puVar11[1] <= puVar9[1]" (subscript_expression "puVar11[1]" (identifier "puVar11") ([ "[") (number_literal "1") (] "]")) (<= "<=") (subscript_expression "puVar9[1]" (identifier "puVar9") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\n        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);\n      }" ({ "{") (return_statement "return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);" (return "return") (cast_expression "(undefined4 *)(uint)(puVar11[1] < puVar9[1])" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(uint)(puVar11[1] < puVar9[1])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar11[1] < puVar9[1])" (( "(") (binary_expression "puVar11[1] < puVar9[1]" (subscript_expression "puVar11[1]" (identifier "puVar11") ([ "[") (number_literal "1") (] "]")) (< "<") (subscript_expression "puVar9[1]" (identifier "puVar9") ([ "[") (number_literal "1") (] "]"))) () ")")))) (; ";")) (} "}"))) (return_statement "return (undefined4 *)0xffffffff;" (return "return") (cast_expression "(undefined4 *)0xffffffff" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffff")) (; ";")) (} "}"))) (return_statement "return (undefined4 *)0x1;" (return "return") (cast_expression "(undefined4 *)0x1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1")) (; ";")) (} "}"))) (return_statement "return (undefined4 *)0x1;" (return "return") (cast_expression "(undefined4 *)0x1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1")) (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 * function_1(void)

{
  int *var_5;
  int *var_3;
  int *var_4;
  type_1 *ptVar4;
  type_1 *ptVar5;
  type_1 *in_a0;
  int var_8;
  int var_9;
  type_2 *puVar8;
  int iVar9;
  type_3 *var_7;
  type_4 var_1;
  type_2 *var_6;
  
  var_6 = *(type_2 **)PTR___stack_chk_guard_00122654;
  (*(type_5 *)PTR_time_001224a4)(&var_1);
  if (var_1 == -1) {
    ptVar4 = (type_1 *)(*(type_5 *)PTR___assert_fail_00121f78)
                             (var_2 + 0x60a0,var_2 + 0x6098,0xe,
                              var_2 + 0x60c0);
    return ptVar4;
  }
  var_5 = (int *)(*(type_5 *)PTR_localtime_00121f90)(&var_1);
  var_4 = var_5;
  ptVar4 = in_a0;
  do {
    ptVar5 = ptVar4;
    var_3 = var_4;
    iVar9 = var_3[1];
    var_9 = var_3[2];
    var_8 = var_3[3];
    ptVar5->tm_sec = *var_3;
    ptVar5->tm_min = iVar9;
    ptVar5->tm_hour = var_9;
    ptVar5->tm_mday = var_8;
    var_4 = var_3 + 4;
    ptVar4 = (type_1 *)&ptVar5->tm_mon;
  } while (var_4 != var_5 + 8);
  puVar8 = (type_2 *)*var_4;
  var_9 = var_3[5];
  var_8 = var_3[6];
  ptVar5->tm_mon = (int)puVar8;
  ptVar5->tm_year = var_9;
  ptVar5->tm_wday = var_8;
  if (var_6 == *(type_2 **)PTR___stack_chk_guard_00122654) {
    return in_a0;
  }
  var_7 = PTR___stack_chk_fail_001222ec;
  (*(type_5 *)PTR___stack_chk_fail_001222ec)();
  var_8 = var_6[2] - *(int *)(*(int *)(var_7 + 0x78458) + 0x2ea0);
  var_9 = puVar8[2] - *(int *)(*(int *)(var_7 + 0x78458) + 0x2ea0);
  if (var_8 < var_9) {
    return (type_1 *)0xffffffff;
  }
  if (var_8 <= var_9) {
    if (*var_6 < *puVar8) {
      return (type_1 *)0xffffffff;
    }
    if (*var_6 <= *puVar8) {
      if (puVar8[1] <= var_6[1]) {
        return (type_1 *)(type_2)(puVar8[1] < var_6[1]);
      }
      return (type_1 *)0xffffffff;
    }
    return (type_1 *)&DAT_00000001;
  }
  return (type_1 *)&DAT_00000001;
}


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

undefined4 * MASKED(undefined4 *param_1)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  int iVar5;
  undefined4 *puVar6;
  int iVar7;
  undefined4 uVar8;
  uint *puVar9;
  undefined4 uVar10;
  uint *puVar11;
  undefined4 uVar12;
  undefined *puVar13;
  int local_10;
  uint *local_c;
  
  local_c = *(uint **)PTR___stack_chk_guard_00122654;
  (*(code *)PTR_time_001224a4)(&local_10);
  if (local_10 == -1) {
    puVar11 = (uint *)(PTR_DAT_00121388 + 0x6098);
    puVar9 = (uint *)(PTR_DAT_00121388 + 0x60a0);
    (*(code *)PTR___assert_fail_00121f78)(puVar9,puVar11,0xe,PTR_DAT_00121388 + 0x60c0);
  }
  else {
    puVar2 = (undefined4 *)(*(code *)PTR_locaMASKED_00121f90)(&local_10);
    puVar4 = puVar2;
    puVar1 = param_1;
    do {
      puVar6 = puVar1;
      puVar3 = puVar4;
      uVar12 = puVar3[1];
      uVar10 = puVar3[2];
      uVar8 = puVar3[3];
      *puVar6 = *puVar3;
      puVar6[1] = uVar12;
      puVar6[2] = uVar10;
      puVar6[3] = uVar8;
      puVar4 = puVar3 + 4;
      puVar1 = puVar6 + 4;
    } while (puVar4 != puVar2 + 8);
    puVar11 = (uint *)*puVar4;
    uVar10 = puVar3[5];
    uVar8 = puVar3[6];
    puVar6[4] = puVar11;
    puVar6[5] = uVar10;
    puVar6[6] = uVar8;
    puVar9 = local_c;
    if (local_c == *(uint **)PTR___stack_chk_guard_00122654) {
      return param_1;
    }
  }
  puVar13 = PTR___stack_chk_fail_001222ec;
  (*(code *)PTR___stack_chk_fail_001222ec)();
  iVar5 = puVar9[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);
  iVar7 = puVar11[2] - *(int *)(*(int *)(puVar13 + 0x78458) + 0x2ea0);
  if (iVar5 < iVar7) {
    return (undefined4 *)0xffffffff;
  }
  if (iVar5 <= iVar7) {
    if (*puVar9 < *puVar11) {
      return (undefined4 *)0xffffffff;
    }
    if (*puVar9 <= *puVar11) {
      if (puVar11[1] <= puVar9[1]) {
        return (undefined4 *)(uint)(puVar11[1] < puVar9[1]);
      }
      return (undefined4 *)0xffffffff;
    }
    return (undefined4 *)0x1;
  }
  return (undefined4 *)0x1;
}

