
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void cookie_jar_save(cookie_jar *jar,char *file)

{
  long lVar1;
  void *pvVar2;
  void *__s;
  int iVar3;
  FILE *__s_00;
  char *pcVar4;
  int *piVar5;
  char *pcVar6;
  char *pcVar7;
  long in_FS_OFFSET;
  hash_table_iterator iter;
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  if (opt.debug) {
    debug_logprintf("Saving cookies to %s.\n");
  }
  cookies_now = time((time_t *)0x0);
  __s_00 = fopen64(file,"w");
  if (__s_00 == (FILE *)0x0) {
    piVar5 = __errno_location();
    pcVar4 = strerror(*piVar5);
    pcVar7 = quote(file);
    pcVar6 = (char *)dcgettext(0,"Cannot open cookies file %s: %s\n",5);
    logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);
  }
  else {
    fwrite("# HTTP cookie file.\n",1,0x14,__s_00);
    pcVar4 = datetime_str(cookies_now);
    __fprintf_chk(__s_00,1,"# Generated by Wget on %s.\n",pcVar4);
    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s_00);
    hash_table_iterate(jar->chains,&iter);
    while (iVar3 = hash_table_iter_next(&iter), __s = iter.key, pvVar2 = iter.value, iVar3 != 0) {
      for (; pvVar2 != (void *)0x0; pvVar2 = *(void **)((long)pvVar2 + 0x38)) {
        if ((((*(byte *)((long)pvVar2 + 0x18) & 8) != 0) || (opt.keep_session_cookies != false)) &&
           ((*(long *)((long)pvVar2 + 0x20) == 0 || (cookies_now <= *(long *)((long)pvVar2 + 0x20)))
           )) {
          if ((*(byte *)((long)pvVar2 + 0x18) & 4) == 0) {
            fputc(0x2e,__s_00);
          }
          fputs((char *)__s,__s_00);
          if (*(int *)((long)pvVar2 + 8) != -1) {
            __fprintf_chk(__s_00,1,&DAT_00156147);
          }
          pcVar4 = "FALSE";
          if ((*(byte *)((long)pvVar2 + 0x18) & 2) != 0) {
            pcVar4 = "TRUE";
          }
          pcVar7 = "TRUE";
          if ((*(byte *)((long)pvVar2 + 0x18) & 4) != 0) {
            pcVar7 = "FALSE";
          }
          __fprintf_chk((double)*(long *)((long)pvVar2 + 0x20),__s_00,1,&DAT_0014a63d,pcVar7,
                        *(undefined8 *)((long)pvVar2 + 0x10),pcVar4,
                        *(undefined8 *)((long)pvVar2 + 0x28),*(undefined8 *)((long)pvVar2 + 0x30));
          iVar3 = ferror(__s_00);
          if (iVar3 != 0) goto LAB_001114d3;
        }
      }
    }
LAB_001114d3:
    iVar3 = ferror(__s_00);
    if (iVar3 != 0) {
      piVar5 = __errno_location();
      pcVar4 = strerror(*piVar5);
      pcVar7 = quote(file);
      pcVar6 = (char *)dcgettext(0,"Error writing to %s: %s\n",5);
      logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);
    }
    iVar3 = fclose(__s_00);
    if (iVar3 < 0) {
      piVar5 = __errno_location();
      pcVar4 = strerror(*piVar5);
      pcVar7 = quote(file);
      pcVar6 = (char *)dcgettext(0,"Error closing %s: %s\n",5);
      logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);
    }
    if (opt.debug != false) {
      debug_logprintf("Done saving cookies.\n");
    }
  }
  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}



void FUN_00111343(undefined8 *param_1,char *param_2)

{
  long lVar1;
  int iVar2;
  FILE *__s;
  undefined8 uVar3;
  int *piVar4;
  char *pcVar5;
  undefined8 uVar6;
  char *pcVar7;
  char *pcVar8;
  long in_FS_OFFSET;
  char *local_68;
  long local_60;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  if (DAT_001774fb != '\0') {
    FUN_0012bddf("Saving cookies to %s.\n");
  }
  DAT_00170728 = time((time_t *)0x0);
  __s = fopen64(param_2,"w");
  if (__s == (FILE *)0x0) {
    piVar4 = __errno_location();
    pcVar5 = strerror(*piVar4);
    uVar3 = FUN_00149289(param_2);
    uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);
    FUN_0012bc55(1,uVar6,uVar3,pcVar5);
  }
  else {
    fwrite("# HTTP cookie file.\n",1,0x14,__s);
    uVar3 = FUN_0013a826(DAT_00170728);
    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);
    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);
    FUN_0011c415(*param_1,&local_68);
    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {
      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {
        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&
           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {
          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {
            fputc(0x2e,__s);
          }
          fputs(pcVar5,__s);
          if (*(int *)(lVar1 + 8) != -1) {
            __fprintf_chk(__s,1,&DAT_00156147);
          }
          pcVar8 = "FALSE";
          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {
            pcVar8 = "TRUE";
          }
          pcVar7 = "TRUE";
          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {
            pcVar7 = "FALSE";
          }
          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,
                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),
                        *(undefined8 *)(lVar1 + 0x30));
          iVar2 = ferror(__s);
          if (iVar2 != 0) goto LAB_001114d3;
        }
      }
    }
LAB_001114d3:
    iVar2 = ferror(__s);
    if (iVar2 != 0) {
      piVar4 = __errno_location();
      pcVar5 = strerror(*piVar4);
      uVar3 = FUN_00149289(param_2);
      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);
      FUN_0012bc55(1,uVar6,uVar3,pcVar5);
    }
    iVar2 = fclose(__s);
    if (iVar2 < 0) {
      piVar4 = __errno_location();
      pcVar5 = strerror(*piVar4);
      uVar3 = FUN_00149289(param_2);
      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);
      FUN_0012bc55(1,uVar6,uVar3,pcVar5);
    }
    if (DAT_001774fb != '\0') {
      FUN_0012bddf("Done saving cookies.\n");
    }
  }
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x48
MOV RBX,RDI
MOV qword ptr [RSP + 0x8],RSI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x38],RAX
XOR EAX,EAX
CMP byte ptr [0x001774fb],0x0
JNZ 0x00111446
MOV EDI,0x0
CALL 0x0010ce50
MOV qword ptr [0x00170728],RAX
LEA RSI,[0x15cf3f]
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x0010cc30
MOV RBP,RAX
TEST RAX,RAX
JZ 0x00111457
MOV RCX,RAX
MOV EDX,0x14
MOV ESI,0x1
LEA RDI,[0x14a5f1]
CALL 0x0010cc80
MOV RDI,qword ptr [0x00170728]
CALL 0x0013a826
MOV RCX,RAX
LEA RDX,[0x14a606]
MOV ESI,0x1
MOV RDI,RBP
MOV EAX,0x0
CALL 0x0010c220
MOV RCX,RBP
MOV EDX,0x1a
MOV ESI,0x1
LEA RDI,[0x14a622]
CALL 0x0010cc80
LEA RSI,[RSP + 0x10]
MOV RDI,qword ptr [RBX]
CALL 0x0011c415
LEA R13,[0x14a5cf]
LEA R12,[0x14a5d4]
LEA RDI,[RSP + 0x10]
CALL 0x0011c42d
TEST EAX,EAX
JZ 0x001114d3
MOV R14,qword ptr [RSP + 0x10]
MOV RBX,qword ptr [RSP + 0x18]
TEST RBX,RBX
JZ 0x00111419
LEA R15,[0x1772c0]
JMP 0x00111658
LEA RDI,[0x14a5da]
CALL 0x0012bddf
JMP 0x00111376
CALL 0x0010c9b0
MOV EDI,dword ptr [RAX]
CALL 0x0010c790
MOV RBP,RAX
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00149289
MOV RBX,RAX
MOV EDX,0x5
LEA RSI,[0x14a848]
MOV EDI,0x0
CALL 0x0010c9f0
MOV RCX,RBP
MOV RDX,RBX
MOV RSI,RAX
MOV EDI,0x1
MOV EAX,0x0
CALL 0x0012bc55
JMP 0x001114f8
MOV RSI,RBP
MOV EDI,0x2e
CALL 0x0010c530
JMP 0x001115d7
LEA RDX,[0x156147]
MOV ESI,0x1
MOV RDI,RBP
MOV EAX,0x0
CALL 0x0010c220
JMP 0x001115ee
MOV RDI,RBP
CALL 0x0010c5a0
TEST EAX,EAX
JNZ 0x0011151b
MOV RDI,RBP
CALL 0x0010cb20
TEST EAX,EAX
JS 0x0011156a
CMP byte ptr [0x001774fb],0x0
JNZ 0x001115b9
MOV RAX,qword ptr [RSP + 0x38]
XOR RAX,qword ptr FS:[0x28]
JNZ 0x00111685
ADD RSP,0x48
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
CALL 0x0010c9b0
MOV EDI,dword ptr [RAX]
CALL 0x0010c790
MOV R12,RAX
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00149289
MOV RBX,RAX
MOV EDX,0x5
LEA RSI,[0x14a653]
MOV EDI,0x0
CALL 0x0010c9f0
MOV RCX,R12
MOV RDX,RBX
MOV RSI,RAX
MOV EDI,0x1
MOV EAX,0x0
CALL 0x0012bc55
JMP 0x001114df
CALL 0x0010c9b0
MOV EDI,dword ptr [RAX]
CALL 0x0010c790
MOV RBP,RAX
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00149289
MOV RBX,RAX
MOV EDX,0x5
LEA RSI,[0x14a66c]
MOV EDI,0x0
CALL 0x0010c9f0
MOV RCX,RBP
MOV RDX,RBX
MOV RSI,RAX
MOV EDI,0x1
MOV EAX,0x0
CALL 0x0012bc55
JMP 0x001114eb
LEA RDI,[0x14a682]
MOV EAX,0x0
CALL 0x0012bddf
JMP 0x001114f8
TEST AL,0x4
JZ 0x001114a3
MOV RSI,RBP
MOV RDI,R14
CALL 0x0010c7e0
MOV ECX,dword ptr [RBX + 0x8]
CMP ECX,-0x1
JNZ 0x001114b5
MOV RDX,qword ptr [RBX + 0x28]
PXOR XMM0,XMM0
CVTSI2SD XMM0,qword ptr [RBX + 0x20]
MOVZX EAX,byte ptr [RBX + 0x18]
MOV ECX,EAX
AND ECX,0x2
MOV R9,R12
CMOVNZ R9,R13
MOV R8,qword ptr [RBX + 0x10]
AND EAX,0x4
MOV RCX,R13
CMOVNZ RCX,R12
PUSH qword ptr [RBX + 0x30]
PUSH RDX
LEA RDX,[0x14a63d]
MOV ESI,0x1
MOV RDI,RBP
MOV EAX,0x1
CALL 0x0010c220
MOV RDI,RBP
CALL 0x0010c5a0
ADD RSP,0x10
TEST EAX,EAX
JNZ 0x001114d3
MOV RBX,qword ptr [RBX + 0x38]
TEST RBX,RBX
JZ 0x00111419
MOVZX EAX,byte ptr [RBX + 0x18]
TEST AL,0x8
JNZ 0x0011166a
CMP byte ptr [R15 + 0x301],0x0
JZ 0x0011164b
MOV RDX,qword ptr [RBX + 0x20]
TEST RDX,RDX
JZ 0x001115cf
CMP RDX,qword ptr [0x00170728]
JL 0x0011164b
JMP 0x001115cf
CALL 0x0010ca20
(translation_unit "void FUN_00111343(undefined8 *param_1,char *param_2)\n\n{\n  long lVar1;\n  int iVar2;\n  FILE *__s;\n  undefined8 uVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined8 uVar6;\n  char *pcVar7;\n  char *pcVar8;\n  long in_FS_OFFSET;\n  char *local_68;\n  long local_60;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (DAT_001774fb != '\0') {\n    FUN_0012bddf("Saving cookies to %s.\n");\n  }\n  DAT_00170728 = time((time_t *)0x0);\n  __s = fopen64(param_2,"w");\n  if (__s == (FILE *)0x0) {\n    piVar4 = __errno_location();\n    pcVar5 = strerror(*piVar4);\n    uVar3 = FUN_00149289(param_2);\n    uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n  }\n  else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s);\n    uVar3 = FUN_0013a826(DAT_00170728);\n    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);\n    FUN_0011c415(*param_1,&local_68);\n    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar2 = ferror(__s);\n    if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    iVar2 = fclose(__s);\n    if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}\n\n" (function_definition "void FUN_00111343(undefined8 *param_1,char *param_2)\n\n{\n  long lVar1;\n  int iVar2;\n  FILE *__s;\n  undefined8 uVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined8 uVar6;\n  char *pcVar7;\n  char *pcVar8;\n  long in_FS_OFFSET;\n  char *local_68;\n  long local_60;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (DAT_001774fb != '\0') {\n    FUN_0012bddf("Saving cookies to %s.\n");\n  }\n  DAT_00170728 = time((time_t *)0x0);\n  __s = fopen64(param_2,"w");\n  if (__s == (FILE *)0x0) {\n    piVar4 = __errno_location();\n    pcVar5 = strerror(*piVar4);\n    uVar3 = FUN_00149289(param_2);\n    uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n  }\n  else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s);\n    uVar3 = FUN_0013a826(DAT_00170728);\n    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);\n    FUN_0011c415(*param_1,&local_68);\n    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar2 = ferror(__s);\n    if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    iVar2 = fclose(__s);\n    if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00111343(undefined8 *param_1,char *param_2)" identifier (parameter_list "(undefined8 *param_1,char *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  FILE *__s;\n  undefined8 uVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined8 uVar6;\n  char *pcVar7;\n  char *pcVar8;\n  long in_FS_OFFSET;\n  char *local_68;\n  long local_60;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (DAT_001774fb != '\0') {\n    FUN_0012bddf("Saving cookies to %s.\n");\n  }\n  DAT_00170728 = time((time_t *)0x0);\n  __s = fopen64(param_2,"w");\n  if (__s == (FILE *)0x0) {\n    piVar4 = __errno_location();\n    pcVar5 = strerror(*piVar4);\n    uVar3 = FUN_00149289(param_2);\n    uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n  }\n  else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s);\n    uVar3 = FUN_0013a826(DAT_00170728);\n    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);\n    FUN_0011c415(*param_1,&local_68);\n    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar2 = ferror(__s);\n    if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    iVar2 = fclose(__s);\n    if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "FILE *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "char *local_68;" primitive_type (pointer_declarator "*local_68" * identifier) ;) (declaration "long local_60;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (DAT_001774fb != '\0') {\n    FUN_0012bddf("Saving cookies to %s.\n");\n  }" if (parenthesized_expression "(DAT_001774fb != '\0')" ( (binary_expression "DAT_001774fb != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0012bddf("Saving cookies to %s.\n");\n  }" { (expression_statement "FUN_0012bddf("Saving cookies to %s.\n");" (call_expression "FUN_0012bddf("Saving cookies to %s.\n")" identifier (argument_list "("Saving cookies to %s.\n")" ( (string_literal ""Saving cookies to %s.\n"" " string_content escape_sequence ") ))) ;) })) (expression_statement "DAT_00170728 = time((time_t *)0x0);" (assignment_expression "DAT_00170728 = time((time_t *)0x0)" identifier = (call_expression "time((time_t *)0x0)" identifier (argument_list "((time_t *)0x0)" ( (cast_expression "(time_t *)0x0" ( (type_descriptor "time_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "__s = fopen64(param_2,"w");" (assignment_expression "__s = fopen64(param_2,"w")" identifier = (call_expression "fopen64(param_2,"w")" identifier (argument_list "(param_2,"w")" ( identifier , (string_literal ""w"" " string_content ") )))) ;) (if_statement "if (__s == (FILE *)0x0) {\n    piVar4 = __errno_location();\n    pcVar5 = strerror(*piVar4);\n    uVar3 = FUN_00149289(param_2);\n    uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n  }\n  else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s);\n    uVar3 = FUN_0013a826(DAT_00170728);\n    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);\n    FUN_0011c415(*param_1,&local_68);\n    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar2 = ferror(__s);\n    if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    iVar2 = fclose(__s);\n    if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }\n  }" if (parenthesized_expression "(__s == (FILE *)0x0)" ( (binary_expression "__s == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar4 = __errno_location();\n    pcVar5 = strerror(*piVar4);\n    uVar3 = FUN_00149289(param_2);\n    uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n  }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "uVar3 = FUN_00149289(param_2);" (assignment_expression "uVar3 = FUN_00149289(param_2)" identifier = (call_expression "FUN_00149289(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);" (assignment_expression "uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5)" identifier = (call_expression "dcgettext(0,"Cannot open cookies file %s: %s\n",5)" identifier (argument_list "(0,"Cannot open cookies file %s: %s\n",5)" ( number_literal , (string_literal ""Cannot open cookies file %s: %s\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_0012bc55(1,uVar6,uVar3,pcVar5);" (call_expression "FUN_0012bc55(1,uVar6,uVar3,pcVar5)" identifier (argument_list "(1,uVar6,uVar3,pcVar5)" ( number_literal , identifier , identifier , identifier ))) ;) }) (else_clause "else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s);\n    uVar3 = FUN_0013a826(DAT_00170728);\n    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);\n    FUN_0011c415(*param_1,&local_68);\n    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar2 = ferror(__s);\n    if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    iVar2 = fclose(__s);\n    if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }\n  }" else (compound_statement "{\n    fwrite("# HTTP cookie file.\n",1,0x14,__s);\n    uVar3 = FUN_0013a826(DAT_00170728);\n    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);\n    FUN_0011c415(*param_1,&local_68);\n    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar2 = ferror(__s);\n    if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    iVar2 = fclose(__s);\n    if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }\n  }" { (expression_statement "fwrite("# HTTP cookie file.\n",1,0x14,__s);" (call_expression "fwrite("# HTTP cookie file.\n",1,0x14,__s)" identifier (argument_list "("# HTTP cookie file.\n",1,0x14,__s)" ( (string_literal ""# HTTP cookie file.\n"" " string_content escape_sequence ") , number_literal , number_literal , identifier ))) ;) (expression_statement "uVar3 = FUN_0013a826(DAT_00170728);" (assignment_expression "uVar3 = FUN_0013a826(DAT_00170728)" identifier = (call_expression "FUN_0013a826(DAT_00170728)" identifier (argument_list "(DAT_00170728)" ( identifier )))) ;) (expression_statement "__fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);" (call_expression "__fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3)" identifier (argument_list "(__s,1,"# Generated by Wget on %s.\n",uVar3)" ( identifier , number_literal , (string_literal ""# Generated by Wget on %s.\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);" (call_expression "fwrite("# Edit at your own risk.\n\n",1,0x1a,__s)" identifier (argument_list "("# Edit at your own risk.\n\n",1,0x1a,__s)" ( (string_literal ""# Edit at your own risk.\n\n"" " string_content escape_sequence escape_sequence ") , number_literal , number_literal , identifier ))) ;) (expression_statement "FUN_0011c415(*param_1,&local_68);" (call_expression "FUN_0011c415(*param_1,&local_68)" identifier (argument_list "(*param_1,&local_68)" ( (pointer_expression "*param_1" * identifier) , (pointer_expression "&local_68" & identifier) ))) ;) (while_statement "while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }" while (parenthesized_expression "(iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0)" ( (comma_expression "iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0" (assignment_expression "iVar2 = FUN_0011c42d(&local_68)" identifier = (call_expression "FUN_0011c42d(&local_68)" identifier (argument_list "(&local_68)" ( (pointer_expression "&local_68" & identifier) )))) , (comma_expression "pcVar5 = local_68, lVar1 = local_60, iVar2 != 0" (assignment_expression "pcVar5 = local_68" identifier = identifier) , (comma_expression "lVar1 = local_60, iVar2 != 0" (assignment_expression "lVar1 = local_60" identifier = identifier) , (binary_expression "iVar2 != 0" identifier != number_literal)))) )) (compound_statement "{\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }" { (for_statement "for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }" for ( ; (binary_expression "lVar1 != 0" identifier != number_literal) ; (assignment_expression "lVar1 = *(long *)(lVar1 + 0x38)" identifier = (pointer_expression "*(long *)(lVar1 + 0x38)" * (cast_expression "(long *)(lVar1 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x38)" ( (binary_expression "lVar1 + 0x38" identifier + number_literal) ))))) ) (compound_statement "{\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }" { (if_statement "if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }" if (parenthesized_expression "((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20)))))" ( (binary_expression "(((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))" (parenthesized_expression "(((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0'))" ( (binary_expression "((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')" (parenthesized_expression "((*(byte *)(lVar1 + 0x18) & 8) != 0)" ( (binary_expression "(*(byte *)(lVar1 + 0x18) & 8) != 0" (parenthesized_expression "(*(byte *)(lVar1 + 0x18) & 8)" ( (binary_expression "*(byte *)(lVar1 + 0x18) & 8" (pointer_expression "*(byte *)(lVar1 + 0x18)" * (cast_expression "(byte *)(lVar1 + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x18)" ( (binary_expression "lVar1 + 0x18" identifier + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(DAT_001775c1 != '\0')" ( (binary_expression "DAT_001775c1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))" ( (parenthesized_expression "(*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20)))" ( (binary_expression "*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))" (binary_expression "*(long *)(lVar1 + 0x20) == 0" (pointer_expression "*(long *)(lVar1 + 0x20)" * (cast_expression "(long *)(lVar1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) == number_literal) || (parenthesized_expression "(DAT_00170728 <= *(long *)(lVar1 + 0x20))" ( (binary_expression "DAT_00170728 <= *(long *)(lVar1 + 0x20)" identifier <= (pointer_expression "*(long *)(lVar1 + 0x20)" * (cast_expression "(long *)(lVar1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) ))))) ))) )) ))) )) (compound_statement "{\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }" { (if_statement "if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }" if (parenthesized_expression "((*(byte *)(lVar1 + 0x18) & 4) == 0)" ( (binary_expression "(*(byte *)(lVar1 + 0x18) & 4) == 0" (parenthesized_expression "(*(byte *)(lVar1 + 0x18) & 4)" ( (binary_expression "*(byte *)(lVar1 + 0x18) & 4" (pointer_expression "*(byte *)(lVar1 + 0x18)" * (cast_expression "(byte *)(lVar1 + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x18)" ( (binary_expression "lVar1 + 0x18" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n            fputc(0x2e,__s);\n          }" { (expression_statement "fputc(0x2e,__s);" (call_expression "fputc(0x2e,__s)" identifier (argument_list "(0x2e,__s)" ( number_literal , identifier ))) ;) })) (expression_statement "fputs(pcVar5,__s);" (call_expression "fputs(pcVar5,__s)" identifier (argument_list "(pcVar5,__s)" ( identifier , identifier ))) ;) (if_statement "if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }" if (parenthesized_expression "(*(int *)(lVar1 + 8) != -1)" ( (binary_expression "*(int *)(lVar1 + 8) != -1" (pointer_expression "*(int *)(lVar1 + 8)" * (cast_expression "(int *)(lVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }" { (expression_statement "__fprintf_chk(__s,1,&DAT_00156147);" (call_expression "__fprintf_chk(__s,1,&DAT_00156147)" identifier (argument_list "(__s,1,&DAT_00156147)" ( identifier , number_literal , (pointer_expression "&DAT_00156147" & identifier) ))) ;) })) (expression_statement "pcVar8 = "FALSE";" (assignment_expression "pcVar8 = "FALSE"" identifier = (string_literal ""FALSE"" " string_content ")) ;) (if_statement "if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }" if (parenthesized_expression "((*(byte *)(lVar1 + 0x18) & 2) != 0)" ( (binary_expression "(*(byte *)(lVar1 + 0x18) & 2) != 0" (parenthesized_expression "(*(byte *)(lVar1 + 0x18) & 2)" ( (binary_expression "*(byte *)(lVar1 + 0x18) & 2" (pointer_expression "*(byte *)(lVar1 + 0x18)" * (cast_expression "(byte *)(lVar1 + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x18)" ( (binary_expression "lVar1 + 0x18" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n            pcVar8 = "TRUE";\n          }" { (expression_statement "pcVar8 = "TRUE";" (assignment_expression "pcVar8 = "TRUE"" identifier = (string_literal ""TRUE"" " string_content ")) ;) })) (expression_statement "pcVar7 = "TRUE";" (assignment_expression "pcVar7 = "TRUE"" identifier = (string_literal ""TRUE"" " string_content ")) ;) (if_statement "if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }" if (parenthesized_expression "((*(byte *)(lVar1 + 0x18) & 4) != 0)" ( (binary_expression "(*(byte *)(lVar1 + 0x18) & 4) != 0" (parenthesized_expression "(*(byte *)(lVar1 + 0x18) & 4)" ( (binary_expression "*(byte *)(lVar1 + 0x18) & 4" (pointer_expression "*(byte *)(lVar1 + 0x18)" * (cast_expression "(byte *)(lVar1 + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x18)" ( (binary_expression "lVar1 + 0x18" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n            pcVar7 = "FALSE";\n          }" { (expression_statement "pcVar7 = "FALSE";" (assignment_expression "pcVar7 = "FALSE"" identifier = (string_literal ""FALSE"" " string_content ")) ;) })) (expression_statement "__fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));" (call_expression "__fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30))" identifier (argument_list "((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30))" ( (cast_expression "(double)*(long *)(lVar1 + 0x20)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(long *)(lVar1 + 0x20)" * (cast_expression "(long *)(lVar1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) ))))) , identifier , number_literal , (pointer_expression "&DAT_0014a63d" & identifier) , identifier , (pointer_expression "*(undefined8 *)(lVar1 + 0x10)" * (cast_expression "(undefined8 *)(lVar1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) , identifier , (pointer_expression "*(undefined8 *)(lVar1 + 0x28)" * (cast_expression "(undefined8 *)(lVar1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x28)" ( (binary_expression "lVar1 + 0x28" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(lVar1 + 0x30)" * (cast_expression "(undefined8 *)(lVar1 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x30)" ( (binary_expression "lVar1 + 0x30" identifier + number_literal) )))) ))) ;) (expression_statement "iVar2 = ferror(__s);" (assignment_expression "iVar2 = ferror(__s)" identifier = (call_expression "ferror(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) goto LAB_001114d3;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001114d3;" goto statement_identifier ;)) })) })) })) (labeled_statement "LAB_001114d3:\n    iVar2 = ferror(__s);" statement_identifier : (expression_statement "iVar2 = ferror(__s);" (assignment_expression "iVar2 = ferror(__s)" identifier = (call_expression "ferror(__s)" identifier (argument_list "(__s)" ( identifier )))) ;)) (if_statement "if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "uVar3 = FUN_00149289(param_2);" (assignment_expression "uVar3 = FUN_00149289(param_2)" identifier = (call_expression "FUN_00149289(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);" (assignment_expression "uVar6 = dcgettext(0,"Error writing to %s: %s\n",5)" identifier = (call_expression "dcgettext(0,"Error writing to %s: %s\n",5)" identifier (argument_list "(0,"Error writing to %s: %s\n",5)" ( number_literal , (string_literal ""Error writing to %s: %s\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_0012bc55(1,uVar6,uVar3,pcVar5);" (call_expression "FUN_0012bc55(1,uVar6,uVar3,pcVar5)" identifier (argument_list "(1,uVar6,uVar3,pcVar5)" ( number_literal , identifier , identifier , identifier ))) ;) })) (expression_statement "iVar2 = fclose(__s);" (assignment_expression "iVar2 = fclose(__s)" identifier = (call_expression "fclose(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (if_statement "if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "uVar3 = FUN_00149289(param_2);" (assignment_expression "uVar3 = FUN_00149289(param_2)" identifier = (call_expression "FUN_00149289(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar6 = dcgettext(0,"Error closing %s: %s\n",5);" (assignment_expression "uVar6 = dcgettext(0,"Error closing %s: %s\n",5)" identifier = (call_expression "dcgettext(0,"Error closing %s: %s\n",5)" identifier (argument_list "(0,"Error closing %s: %s\n",5)" ( number_literal , (string_literal ""Error closing %s: %s\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_0012bc55(1,uVar6,uVar3,pcVar5);" (call_expression "FUN_0012bc55(1,uVar6,uVar3,pcVar5)" identifier (argument_list "(1,uVar6,uVar3,pcVar5)" ( number_literal , identifier , identifier , identifier ))) ;) })) (if_statement "if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }" if (parenthesized_expression "(DAT_001774fb != '\0')" ( (binary_expression "DAT_001774fb != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_0012bddf("Done saving cookies.\n");\n    }" { (expression_statement "FUN_0012bddf("Done saving cookies.\n");" (call_expression "FUN_0012bddf("Done saving cookies.\n")" identifier (argument_list "("Done saving cookies.\n")" ( (string_literal ""Done saving cookies.\n"" " string_content escape_sequence ") ))) ;) })) }))) (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid cookie_jar_save(cookie_jar *jar,char *file)\n\n{\n  long lVar1;\n  void *pvVar2;\n  void *__s;\n  int iVar3;\n  FILE *__s_00;\n  char *pcVar4;\n  int *piVar5;\n  char *pcVar6;\n  char *pcVar7;\n  long in_FS_OFFSET;\n  hash_table_iterator iter;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (opt.debug) {\n    debug_logprintf("Saving cookies to %s.\n");\n  }\n  cookies_now = time((time_t *)0x0);\n  __s_00 = fopen64(file,"w");\n  if (__s_00 == (FILE *)0x0) {\n    piVar5 = __errno_location();\n    pcVar4 = strerror(*piVar5);\n    pcVar7 = quote(file);\n    pcVar6 = (char *)dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n  }\n  else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s_00);\n    pcVar4 = datetime_str(cookies_now);\n    __fprintf_chk(__s_00,1,"# Generated by Wget on %s.\n",pcVar4);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s_00);\n    hash_table_iterate(jar->chains,&iter);\n    while (iVar3 = hash_table_iter_next(&iter), __s = iter.key, pvVar2 = iter.value, iVar3 != 0) {\n      for (; pvVar2 != (void *)0x0; pvVar2 = *(void **)((long)pvVar2 + 0x38)) {\n        if ((((*(byte *)((long)pvVar2 + 0x18) & 8) != 0) || (opt.keep_session_cookies != false)) &&\n           ((*(long *)((long)pvVar2 + 0x20) == 0 || (cookies_now <= *(long *)((long)pvVar2 + 0x20)))\n           )) {\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s_00);\n          }\n          fputs((char *)__s,__s_00);\n          if (*(int *)((long)pvVar2 + 8) != -1) {\n            __fprintf_chk(__s_00,1,&DAT_00156147);\n          }\n          pcVar4 = "FALSE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 2) != 0) {\n            pcVar4 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)((long)pvVar2 + 0x20),__s_00,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)((long)pvVar2 + 0x10),pcVar4,\n                        *(undefined8 *)((long)pvVar2 + 0x28),*(undefined8 *)((long)pvVar2 + 0x30));\n          iVar3 = ferror(__s_00);\n          if (iVar3 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar3 = ferror(__s_00);\n    if (iVar3 != 0) {\n      piVar5 = __errno_location();\n      pcVar4 = strerror(*piVar5);\n      pcVar7 = quote(file);\n      pcVar6 = (char *)dcgettext(0,"Error writing to %s: %s\n",5);\n      logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n    }\n    iVar3 = fclose(__s_00);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      pcVar4 = strerror(*piVar5);\n      pcVar7 = quote(file);\n      pcVar6 = (char *)dcgettext(0,"Error closing %s: %s\n",5);\n      logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n    }\n    if (opt.debug != false) {\n      debug_logprintf("Done saving cookies.\n");\n    }\n  }\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}\n\n" comment (function_definition "void cookie_jar_save(cookie_jar *jar,char *file)\n\n{\n  long lVar1;\n  void *pvVar2;\n  void *__s;\n  int iVar3;\n  FILE *__s_00;\n  char *pcVar4;\n  int *piVar5;\n  char *pcVar6;\n  char *pcVar7;\n  long in_FS_OFFSET;\n  hash_table_iterator iter;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (opt.debug) {\n    debug_logprintf("Saving cookies to %s.\n");\n  }\n  cookies_now = time((time_t *)0x0);\n  __s_00 = fopen64(file,"w");\n  if (__s_00 == (FILE *)0x0) {\n    piVar5 = __errno_location();\n    pcVar4 = strerror(*piVar5);\n    pcVar7 = quote(file);\n    pcVar6 = (char *)dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n  }\n  else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s_00);\n    pcVar4 = datetime_str(cookies_now);\n    __fprintf_chk(__s_00,1,"# Generated by Wget on %s.\n",pcVar4);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s_00);\n    hash_table_iterate(jar->chains,&iter);\n    while (iVar3 = hash_table_iter_next(&iter), __s = iter.key, pvVar2 = iter.value, iVar3 != 0) {\n      for (; pvVar2 != (void *)0x0; pvVar2 = *(void **)((long)pvVar2 + 0x38)) {\n        if ((((*(byte *)((long)pvVar2 + 0x18) & 8) != 0) || (opt.keep_session_cookies != false)) &&\n           ((*(long *)((long)pvVar2 + 0x20) == 0 || (cookies_now <= *(long *)((long)pvVar2 + 0x20)))\n           )) {\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s_00);\n          }\n          fputs((char *)__s,__s_00);\n          if (*(int *)((long)pvVar2 + 8) != -1) {\n            __fprintf_chk(__s_00,1,&DAT_00156147);\n          }\n          pcVar4 = "FALSE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 2) != 0) {\n            pcVar4 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)((long)pvVar2 + 0x20),__s_00,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)((long)pvVar2 + 0x10),pcVar4,\n                        *(undefined8 *)((long)pvVar2 + 0x28),*(undefined8 *)((long)pvVar2 + 0x30));\n          iVar3 = ferror(__s_00);\n          if (iVar3 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar3 = ferror(__s_00);\n    if (iVar3 != 0) {\n      piVar5 = __errno_location();\n      pcVar4 = strerror(*piVar5);\n      pcVar7 = quote(file);\n      pcVar6 = (char *)dcgettext(0,"Error writing to %s: %s\n",5);\n      logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n    }\n    iVar3 = fclose(__s_00);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      pcVar4 = strerror(*piVar5);\n      pcVar7 = quote(file);\n      pcVar6 = (char *)dcgettext(0,"Error closing %s: %s\n",5);\n      logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n    }\n    if (opt.debug != false) {\n      debug_logprintf("Done saving cookies.\n");\n    }\n  }\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "cookie_jar_save(cookie_jar *jar,char *file)" identifier (parameter_list "(cookie_jar *jar,char *file)" ( (parameter_declaration "cookie_jar *jar" type_identifier (pointer_declarator "*jar" * identifier)) , (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  void *pvVar2;\n  void *__s;\n  int iVar3;\n  FILE *__s_00;\n  char *pcVar4;\n  int *piVar5;\n  char *pcVar6;\n  char *pcVar7;\n  long in_FS_OFFSET;\n  hash_table_iterator iter;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (opt.debug) {\n    debug_logprintf("Saving cookies to %s.\n");\n  }\n  cookies_now = time((time_t *)0x0);\n  __s_00 = fopen64(file,"w");\n  if (__s_00 == (FILE *)0x0) {\n    piVar5 = __errno_location();\n    pcVar4 = strerror(*piVar5);\n    pcVar7 = quote(file);\n    pcVar6 = (char *)dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n  }\n  else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s_00);\n    pcVar4 = datetime_str(cookies_now);\n    __fprintf_chk(__s_00,1,"# Generated by Wget on %s.\n",pcVar4);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s_00);\n    hash_table_iterate(jar->chains,&iter);\n    while (iVar3 = hash_table_iter_next(&iter), __s = iter.key, pvVar2 = iter.value, iVar3 != 0) {\n      for (; pvVar2 != (void *)0x0; pvVar2 = *(void **)((long)pvVar2 + 0x38)) {\n        if ((((*(byte *)((long)pvVar2 + 0x18) & 8) != 0) || (opt.keep_session_cookies != false)) &&\n           ((*(long *)((long)pvVar2 + 0x20) == 0 || (cookies_now <= *(long *)((long)pvVar2 + 0x20)))\n           )) {\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s_00);\n          }\n          fputs((char *)__s,__s_00);\n          if (*(int *)((long)pvVar2 + 8) != -1) {\n            __fprintf_chk(__s_00,1,&DAT_00156147);\n          }\n          pcVar4 = "FALSE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 2) != 0) {\n            pcVar4 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)((long)pvVar2 + 0x20),__s_00,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)((long)pvVar2 + 0x10),pcVar4,\n                        *(undefined8 *)((long)pvVar2 + 0x28),*(undefined8 *)((long)pvVar2 + 0x30));\n          iVar3 = ferror(__s_00);\n          if (iVar3 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar3 = ferror(__s_00);\n    if (iVar3 != 0) {\n      piVar5 = __errno_location();\n      pcVar4 = strerror(*piVar5);\n      pcVar7 = quote(file);\n      pcVar6 = (char *)dcgettext(0,"Error writing to %s: %s\n",5);\n      logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n    }\n    iVar3 = fclose(__s_00);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      pcVar4 = strerror(*piVar5);\n      pcVar7 = quote(file);\n      pcVar6 = (char *)dcgettext(0,"Error closing %s: %s\n",5);\n      logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n    }\n    if (opt.debug != false) {\n      debug_logprintf("Done saving cookies.\n");\n    }\n  }\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "FILE *__s_00;" type_identifier (pointer_declarator "*__s_00" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "hash_table_iterator iter;" type_identifier identifier ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (opt.debug) {\n    debug_logprintf("Saving cookies to %s.\n");\n  }" if (parenthesized_expression "(opt.debug)" ( (field_expression "opt.debug" identifier . field_identifier) )) (compound_statement "{\n    debug_logprintf("Saving cookies to %s.\n");\n  }" { (expression_statement "debug_logprintf("Saving cookies to %s.\n");" (call_expression "debug_logprintf("Saving cookies to %s.\n")" identifier (argument_list "("Saving cookies to %s.\n")" ( (string_literal ""Saving cookies to %s.\n"" " string_content escape_sequence ") ))) ;) })) (expression_statement "cookies_now = time((time_t *)0x0);" (assignment_expression "cookies_now = time((time_t *)0x0)" identifier = (call_expression "time((time_t *)0x0)" identifier (argument_list "((time_t *)0x0)" ( (cast_expression "(time_t *)0x0" ( (type_descriptor "time_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "__s_00 = fopen64(file,"w");" (assignment_expression "__s_00 = fopen64(file,"w")" identifier = (call_expression "fopen64(file,"w")" identifier (argument_list "(file,"w")" ( identifier , (string_literal ""w"" " string_content ") )))) ;) (if_statement "if (__s_00 == (FILE *)0x0) {\n    piVar5 = __errno_location();\n    pcVar4 = strerror(*piVar5);\n    pcVar7 = quote(file);\n    pcVar6 = (char *)dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n  }\n  else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s_00);\n    pcVar4 = datetime_str(cookies_now);\n    __fprintf_chk(__s_00,1,"# Generated by Wget on %s.\n",pcVar4);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s_00);\n    hash_table_iterate(jar->chains,&iter);\n    while (iVar3 = hash_table_iter_next(&iter), __s = iter.key, pvVar2 = iter.value, iVar3 != 0) {\n      for (; pvVar2 != (void *)0x0; pvVar2 = *(void **)((long)pvVar2 + 0x38)) {\n        if ((((*(byte *)((long)pvVar2 + 0x18) & 8) != 0) || (opt.keep_session_cookies != false)) &&\n           ((*(long *)((long)pvVar2 + 0x20) == 0 || (cookies_now <= *(long *)((long)pvVar2 + 0x20)))\n           )) {\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s_00);\n          }\n          fputs((char *)__s,__s_00);\n          if (*(int *)((long)pvVar2 + 8) != -1) {\n            __fprintf_chk(__s_00,1,&DAT_00156147);\n          }\n          pcVar4 = "FALSE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 2) != 0) {\n            pcVar4 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)((long)pvVar2 + 0x20),__s_00,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)((long)pvVar2 + 0x10),pcVar4,\n                        *(undefined8 *)((long)pvVar2 + 0x28),*(undefined8 *)((long)pvVar2 + 0x30));\n          iVar3 = ferror(__s_00);\n          if (iVar3 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar3 = ferror(__s_00);\n    if (iVar3 != 0) {\n      piVar5 = __errno_location();\n      pcVar4 = strerror(*piVar5);\n      pcVar7 = quote(file);\n      pcVar6 = (char *)dcgettext(0,"Error writing to %s: %s\n",5);\n      logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n    }\n    iVar3 = fclose(__s_00);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      pcVar4 = strerror(*piVar5);\n      pcVar7 = quote(file);\n      pcVar6 = (char *)dcgettext(0,"Error closing %s: %s\n",5);\n      logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n    }\n    if (opt.debug != false) {\n      debug_logprintf("Done saving cookies.\n");\n    }\n  }" if (parenthesized_expression "(__s_00 == (FILE *)0x0)" ( (binary_expression "__s_00 == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar5 = __errno_location();\n    pcVar4 = strerror(*piVar5);\n    pcVar7 = quote(file);\n    pcVar6 = (char *)dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n  }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar4 = strerror(*piVar5);" (assignment_expression "pcVar4 = strerror(*piVar5)" identifier = (call_expression "strerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "pcVar7 = quote(file);" (assignment_expression "pcVar7 = quote(file)" identifier = (call_expression "quote(file)" identifier (argument_list "(file)" ( identifier )))) ;) (expression_statement "pcVar6 = (char *)dcgettext(0,"Cannot open cookies file %s: %s\n",5);" (assignment_expression "pcVar6 = (char *)dcgettext(0,"Cannot open cookies file %s: %s\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Cannot open cookies file %s: %s\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Cannot open cookies file %s: %s\n",5)" identifier (argument_list "(0,"Cannot open cookies file %s: %s\n",5)" ( number_literal , (string_literal ""Cannot open cookies file %s: %s\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);" (call_expression "logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4)" identifier (argument_list "(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4)" ( identifier , identifier , identifier , identifier ))) ;) }) (else_clause "else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s_00);\n    pcVar4 = datetime_str(cookies_now);\n    __fprintf_chk(__s_00,1,"# Generated by Wget on %s.\n",pcVar4);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s_00);\n    hash_table_iterate(jar->chains,&iter);\n    while (iVar3 = hash_table_iter_next(&iter), __s = iter.key, pvVar2 = iter.value, iVar3 != 0) {\n      for (; pvVar2 != (void *)0x0; pvVar2 = *(void **)((long)pvVar2 + 0x38)) {\n        if ((((*(byte *)((long)pvVar2 + 0x18) & 8) != 0) || (opt.keep_session_cookies != false)) &&\n           ((*(long *)((long)pvVar2 + 0x20) == 0 || (cookies_now <= *(long *)((long)pvVar2 + 0x20)))\n           )) {\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s_00);\n          }\n          fputs((char *)__s,__s_00);\n          if (*(int *)((long)pvVar2 + 8) != -1) {\n            __fprintf_chk(__s_00,1,&DAT_00156147);\n          }\n          pcVar4 = "FALSE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 2) != 0) {\n            pcVar4 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)((long)pvVar2 + 0x20),__s_00,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)((long)pvVar2 + 0x10),pcVar4,\n                        *(undefined8 *)((long)pvVar2 + 0x28),*(undefined8 *)((long)pvVar2 + 0x30));\n          iVar3 = ferror(__s_00);\n          if (iVar3 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar3 = ferror(__s_00);\n    if (iVar3 != 0) {\n      piVar5 = __errno_location();\n      pcVar4 = strerror(*piVar5);\n      pcVar7 = quote(file);\n      pcVar6 = (char *)dcgettext(0,"Error writing to %s: %s\n",5);\n      logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n    }\n    iVar3 = fclose(__s_00);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      pcVar4 = strerror(*piVar5);\n      pcVar7 = quote(file);\n      pcVar6 = (char *)dcgettext(0,"Error closing %s: %s\n",5);\n      logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n    }\n    if (opt.debug != false) {\n      debug_logprintf("Done saving cookies.\n");\n    }\n  }" else (compound_statement "{\n    fwrite("# HTTP cookie file.\n",1,0x14,__s_00);\n    pcVar4 = datetime_str(cookies_now);\n    __fprintf_chk(__s_00,1,"# Generated by Wget on %s.\n",pcVar4);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s_00);\n    hash_table_iterate(jar->chains,&iter);\n    while (iVar3 = hash_table_iter_next(&iter), __s = iter.key, pvVar2 = iter.value, iVar3 != 0) {\n      for (; pvVar2 != (void *)0x0; pvVar2 = *(void **)((long)pvVar2 + 0x38)) {\n        if ((((*(byte *)((long)pvVar2 + 0x18) & 8) != 0) || (opt.keep_session_cookies != false)) &&\n           ((*(long *)((long)pvVar2 + 0x20) == 0 || (cookies_now <= *(long *)((long)pvVar2 + 0x20)))\n           )) {\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s_00);\n          }\n          fputs((char *)__s,__s_00);\n          if (*(int *)((long)pvVar2 + 8) != -1) {\n            __fprintf_chk(__s_00,1,&DAT_00156147);\n          }\n          pcVar4 = "FALSE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 2) != 0) {\n            pcVar4 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)((long)pvVar2 + 0x20),__s_00,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)((long)pvVar2 + 0x10),pcVar4,\n                        *(undefined8 *)((long)pvVar2 + 0x28),*(undefined8 *)((long)pvVar2 + 0x30));\n          iVar3 = ferror(__s_00);\n          if (iVar3 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar3 = ferror(__s_00);\n    if (iVar3 != 0) {\n      piVar5 = __errno_location();\n      pcVar4 = strerror(*piVar5);\n      pcVar7 = quote(file);\n      pcVar6 = (char *)dcgettext(0,"Error writing to %s: %s\n",5);\n      logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n    }\n    iVar3 = fclose(__s_00);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      pcVar4 = strerror(*piVar5);\n      pcVar7 = quote(file);\n      pcVar6 = (char *)dcgettext(0,"Error closing %s: %s\n",5);\n      logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n    }\n    if (opt.debug != false) {\n      debug_logprintf("Done saving cookies.\n");\n    }\n  }" { (expression_statement "fwrite("# HTTP cookie file.\n",1,0x14,__s_00);" (call_expression "fwrite("# HTTP cookie file.\n",1,0x14,__s_00)" identifier (argument_list "("# HTTP cookie file.\n",1,0x14,__s_00)" ( (string_literal ""# HTTP cookie file.\n"" " string_content escape_sequence ") , number_literal , number_literal , identifier ))) ;) (expression_statement "pcVar4 = datetime_str(cookies_now);" (assignment_expression "pcVar4 = datetime_str(cookies_now)" identifier = (call_expression "datetime_str(cookies_now)" identifier (argument_list "(cookies_now)" ( identifier )))) ;) (expression_statement "__fprintf_chk(__s_00,1,"# Generated by Wget on %s.\n",pcVar4);" (call_expression "__fprintf_chk(__s_00,1,"# Generated by Wget on %s.\n",pcVar4)" identifier (argument_list "(__s_00,1,"# Generated by Wget on %s.\n",pcVar4)" ( identifier , number_literal , (string_literal ""# Generated by Wget on %s.\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "fwrite("# Edit at your own risk.\n\n",1,0x1a,__s_00);" (call_expression "fwrite("# Edit at your own risk.\n\n",1,0x1a,__s_00)" identifier (argument_list "("# Edit at your own risk.\n\n",1,0x1a,__s_00)" ( (string_literal ""# Edit at your own risk.\n\n"" " string_content escape_sequence escape_sequence ") , number_literal , number_literal , identifier ))) ;) (expression_statement "hash_table_iterate(jar->chains,&iter);" (call_expression "hash_table_iterate(jar->chains,&iter)" identifier (argument_list "(jar->chains,&iter)" ( (field_expression "jar->chains" identifier -> field_identifier) , (pointer_expression "&iter" & identifier) ))) ;) (while_statement "while (iVar3 = hash_table_iter_next(&iter), __s = iter.key, pvVar2 = iter.value, iVar3 != 0) {\n      for (; pvVar2 != (void *)0x0; pvVar2 = *(void **)((long)pvVar2 + 0x38)) {\n        if ((((*(byte *)((long)pvVar2 + 0x18) & 8) != 0) || (opt.keep_session_cookies != false)) &&\n           ((*(long *)((long)pvVar2 + 0x20) == 0 || (cookies_now <= *(long *)((long)pvVar2 + 0x20)))\n           )) {\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s_00);\n          }\n          fputs((char *)__s,__s_00);\n          if (*(int *)((long)pvVar2 + 8) != -1) {\n            __fprintf_chk(__s_00,1,&DAT_00156147);\n          }\n          pcVar4 = "FALSE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 2) != 0) {\n            pcVar4 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)((long)pvVar2 + 0x20),__s_00,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)((long)pvVar2 + 0x10),pcVar4,\n                        *(undefined8 *)((long)pvVar2 + 0x28),*(undefined8 *)((long)pvVar2 + 0x30));\n          iVar3 = ferror(__s_00);\n          if (iVar3 != 0) goto LAB_001114d3;\n        }\n      }\n    }" while (parenthesized_expression "(iVar3 = hash_table_iter_next(&iter), __s = iter.key, pvVar2 = iter.value, iVar3 != 0)" ( (comma_expression "iVar3 = hash_table_iter_next(&iter), __s = iter.key, pvVar2 = iter.value, iVar3 != 0" (assignment_expression "iVar3 = hash_table_iter_next(&iter)" identifier = (call_expression "hash_table_iter_next(&iter)" identifier (argument_list "(&iter)" ( (pointer_expression "&iter" & identifier) )))) , (comma_expression "__s = iter.key, pvVar2 = iter.value, iVar3 != 0" (assignment_expression "__s = iter.key" identifier = (field_expression "iter.key" identifier . field_identifier)) , (comma_expression "pvVar2 = iter.value, iVar3 != 0" (assignment_expression "pvVar2 = iter.value" identifier = (field_expression "iter.value" identifier . field_identifier)) , (binary_expression "iVar3 != 0" identifier != number_literal)))) )) (compound_statement "{\n      for (; pvVar2 != (void *)0x0; pvVar2 = *(void **)((long)pvVar2 + 0x38)) {\n        if ((((*(byte *)((long)pvVar2 + 0x18) & 8) != 0) || (opt.keep_session_cookies != false)) &&\n           ((*(long *)((long)pvVar2 + 0x20) == 0 || (cookies_now <= *(long *)((long)pvVar2 + 0x20)))\n           )) {\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s_00);\n          }\n          fputs((char *)__s,__s_00);\n          if (*(int *)((long)pvVar2 + 8) != -1) {\n            __fprintf_chk(__s_00,1,&DAT_00156147);\n          }\n          pcVar4 = "FALSE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 2) != 0) {\n            pcVar4 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)((long)pvVar2 + 0x20),__s_00,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)((long)pvVar2 + 0x10),pcVar4,\n                        *(undefined8 *)((long)pvVar2 + 0x28),*(undefined8 *)((long)pvVar2 + 0x30));\n          iVar3 = ferror(__s_00);\n          if (iVar3 != 0) goto LAB_001114d3;\n        }\n      }\n    }" { (for_statement "for (; pvVar2 != (void *)0x0; pvVar2 = *(void **)((long)pvVar2 + 0x38)) {\n        if ((((*(byte *)((long)pvVar2 + 0x18) & 8) != 0) || (opt.keep_session_cookies != false)) &&\n           ((*(long *)((long)pvVar2 + 0x20) == 0 || (cookies_now <= *(long *)((long)pvVar2 + 0x20)))\n           )) {\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s_00);\n          }\n          fputs((char *)__s,__s_00);\n          if (*(int *)((long)pvVar2 + 8) != -1) {\n            __fprintf_chk(__s_00,1,&DAT_00156147);\n          }\n          pcVar4 = "FALSE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 2) != 0) {\n            pcVar4 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)((long)pvVar2 + 0x20),__s_00,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)((long)pvVar2 + 0x10),pcVar4,\n                        *(undefined8 *)((long)pvVar2 + 0x28),*(undefined8 *)((long)pvVar2 + 0x30));\n          iVar3 = ferror(__s_00);\n          if (iVar3 != 0) goto LAB_001114d3;\n        }\n      }" for ( ; (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "pvVar2 = *(void **)((long)pvVar2 + 0x38)" identifier = (pointer_expression "*(void **)((long)pvVar2 + 0x38)" * (cast_expression "(void **)((long)pvVar2 + 0x38)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)pvVar2 + 0x38)" ( (binary_expression "(long)pvVar2 + 0x38" (cast_expression "(long)pvVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ) (compound_statement "{\n        if ((((*(byte *)((long)pvVar2 + 0x18) & 8) != 0) || (opt.keep_session_cookies != false)) &&\n           ((*(long *)((long)pvVar2 + 0x20) == 0 || (cookies_now <= *(long *)((long)pvVar2 + 0x20)))\n           )) {\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s_00);\n          }\n          fputs((char *)__s,__s_00);\n          if (*(int *)((long)pvVar2 + 8) != -1) {\n            __fprintf_chk(__s_00,1,&DAT_00156147);\n          }\n          pcVar4 = "FALSE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 2) != 0) {\n            pcVar4 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)((long)pvVar2 + 0x20),__s_00,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)((long)pvVar2 + 0x10),pcVar4,\n                        *(undefined8 *)((long)pvVar2 + 0x28),*(undefined8 *)((long)pvVar2 + 0x30));\n          iVar3 = ferror(__s_00);\n          if (iVar3 != 0) goto LAB_001114d3;\n        }\n      }" { (if_statement "if ((((*(byte *)((long)pvVar2 + 0x18) & 8) != 0) || (opt.keep_session_cookies != false)) &&\n           ((*(long *)((long)pvVar2 + 0x20) == 0 || (cookies_now <= *(long *)((long)pvVar2 + 0x20)))\n           )) {\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s_00);\n          }\n          fputs((char *)__s,__s_00);\n          if (*(int *)((long)pvVar2 + 8) != -1) {\n            __fprintf_chk(__s_00,1,&DAT_00156147);\n          }\n          pcVar4 = "FALSE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 2) != 0) {\n            pcVar4 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)((long)pvVar2 + 0x20),__s_00,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)((long)pvVar2 + 0x10),pcVar4,\n                        *(undefined8 *)((long)pvVar2 + 0x28),*(undefined8 *)((long)pvVar2 + 0x30));\n          iVar3 = ferror(__s_00);\n          if (iVar3 != 0) goto LAB_001114d3;\n        }" if (parenthesized_expression "((((*(byte *)((long)pvVar2 + 0x18) & 8) != 0) || (opt.keep_session_cookies != false)) &&\n           ((*(long *)((long)pvVar2 + 0x20) == 0 || (cookies_now <= *(long *)((long)pvVar2 + 0x20)))\n           ))" ( (binary_expression "(((*(byte *)((long)pvVar2 + 0x18) & 8) != 0) || (opt.keep_session_cookies != false)) &&\n           ((*(long *)((long)pvVar2 + 0x20) == 0 || (cookies_now <= *(long *)((long)pvVar2 + 0x20)))\n           )" (parenthesized_expression "(((*(byte *)((long)pvVar2 + 0x18) & 8) != 0) || (opt.keep_session_cookies != false))" ( (binary_expression "((*(byte *)((long)pvVar2 + 0x18) & 8) != 0) || (opt.keep_session_cookies != false)" (parenthesized_expression "((*(byte *)((long)pvVar2 + 0x18) & 8) != 0)" ( (binary_expression "(*(byte *)((long)pvVar2 + 0x18) & 8) != 0" (parenthesized_expression "(*(byte *)((long)pvVar2 + 0x18) & 8)" ( (binary_expression "*(byte *)((long)pvVar2 + 0x18) & 8" (pointer_expression "*(byte *)((long)pvVar2 + 0x18)" * (cast_expression "(byte *)((long)pvVar2 + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar2 + 0x18)" ( (binary_expression "(long)pvVar2 + 0x18" (cast_expression "(long)pvVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(opt.keep_session_cookies != false)" ( (binary_expression "opt.keep_session_cookies != false" (field_expression "opt.keep_session_cookies" identifier . field_identifier) != false) ))) )) && (parenthesized_expression "((*(long *)((long)pvVar2 + 0x20) == 0 || (cookies_now <= *(long *)((long)pvVar2 + 0x20)))\n           )" ( (parenthesized_expression "(*(long *)((long)pvVar2 + 0x20) == 0 || (cookies_now <= *(long *)((long)pvVar2 + 0x20)))" ( (binary_expression "*(long *)((long)pvVar2 + 0x20) == 0 || (cookies_now <= *(long *)((long)pvVar2 + 0x20))" (binary_expression "*(long *)((long)pvVar2 + 0x20) == 0" (pointer_expression "*(long *)((long)pvVar2 + 0x20)" * (cast_expression "(long *)((long)pvVar2 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar2 + 0x20)" ( (binary_expression "(long)pvVar2 + 0x20" (cast_expression "(long)pvVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) || (parenthesized_expression "(cookies_now <= *(long *)((long)pvVar2 + 0x20))" ( (binary_expression "cookies_now <= *(long *)((long)pvVar2 + 0x20)" identifier <= (pointer_expression "*(long *)((long)pvVar2 + 0x20)" * (cast_expression "(long *)((long)pvVar2 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar2 + 0x20)" ( (binary_expression "(long)pvVar2 + 0x20" (cast_expression "(long)pvVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) )) ))) )) (compound_statement "{\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s_00);\n          }\n          fputs((char *)__s,__s_00);\n          if (*(int *)((long)pvVar2 + 8) != -1) {\n            __fprintf_chk(__s_00,1,&DAT_00156147);\n          }\n          pcVar4 = "FALSE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 2) != 0) {\n            pcVar4 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)((long)pvVar2 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)((long)pvVar2 + 0x20),__s_00,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)((long)pvVar2 + 0x10),pcVar4,\n                        *(undefined8 *)((long)pvVar2 + 0x28),*(undefined8 *)((long)pvVar2 + 0x30));\n          iVar3 = ferror(__s_00);\n          if (iVar3 != 0) goto LAB_001114d3;\n        }" { (if_statement "if ((*(byte *)((long)pvVar2 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s_00);\n          }" if (parenthesized_expression "((*(byte *)((long)pvVar2 + 0x18) & 4) == 0)" ( (binary_expression "(*(byte *)((long)pvVar2 + 0x18) & 4) == 0" (parenthesized_expression "(*(byte *)((long)pvVar2 + 0x18) & 4)" ( (binary_expression "*(byte *)((long)pvVar2 + 0x18) & 4" (pointer_expression "*(byte *)((long)pvVar2 + 0x18)" * (cast_expression "(byte *)((long)pvVar2 + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar2 + 0x18)" ( (binary_expression "(long)pvVar2 + 0x18" (cast_expression "(long)pvVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n            fputc(0x2e,__s_00);\n          }" { (expression_statement "fputc(0x2e,__s_00);" (call_expression "fputc(0x2e,__s_00)" identifier (argument_list "(0x2e,__s_00)" ( number_literal , identifier ))) ;) })) (expression_statement "fputs((char *)__s,__s_00);" (call_expression "fputs((char *)__s,__s_00)" identifier (argument_list "((char *)__s,__s_00)" ( (cast_expression "(char *)__s" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (if_statement "if (*(int *)((long)pvVar2 + 8) != -1) {\n            __fprintf_chk(__s_00,1,&DAT_00156147);\n          }" if (parenthesized_expression "(*(int *)((long)pvVar2 + 8) != -1)" ( (binary_expression "*(int *)((long)pvVar2 + 8) != -1" (pointer_expression "*(int *)((long)pvVar2 + 8)" * (cast_expression "(int *)((long)pvVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar2 + 8)" ( (binary_expression "(long)pvVar2 + 8" (cast_expression "(long)pvVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n            __fprintf_chk(__s_00,1,&DAT_00156147);\n          }" { (expression_statement "__fprintf_chk(__s_00,1,&DAT_00156147);" (call_expression "__fprintf_chk(__s_00,1,&DAT_00156147)" identifier (argument_list "(__s_00,1,&DAT_00156147)" ( identifier , number_literal , (pointer_expression "&DAT_00156147" & identifier) ))) ;) })) (expression_statement "pcVar4 = "FALSE";" (assignment_expression "pcVar4 = "FALSE"" identifier = (string_literal ""FALSE"" " string_content ")) ;) (if_statement "if ((*(byte *)((long)pvVar2 + 0x18) & 2) != 0) {\n            pcVar4 = "TRUE";\n          }" if (parenthesized_expression "((*(byte *)((long)pvVar2 + 0x18) & 2) != 0)" ( (binary_expression "(*(byte *)((long)pvVar2 + 0x18) & 2) != 0" (parenthesized_expression "(*(byte *)((long)pvVar2 + 0x18) & 2)" ( (binary_expression "*(byte *)((long)pvVar2 + 0x18) & 2" (pointer_expression "*(byte *)((long)pvVar2 + 0x18)" * (cast_expression "(byte *)((long)pvVar2 + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar2 + 0x18)" ( (binary_expression "(long)pvVar2 + 0x18" (cast_expression "(long)pvVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n            pcVar4 = "TRUE";\n          }" { (expression_statement "pcVar4 = "TRUE";" (assignment_expression "pcVar4 = "TRUE"" identifier = (string_literal ""TRUE"" " string_content ")) ;) })) (expression_statement "pcVar7 = "TRUE";" (assignment_expression "pcVar7 = "TRUE"" identifier = (string_literal ""TRUE"" " string_content ")) ;) (if_statement "if ((*(byte *)((long)pvVar2 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }" if (parenthesized_expression "((*(byte *)((long)pvVar2 + 0x18) & 4) != 0)" ( (binary_expression "(*(byte *)((long)pvVar2 + 0x18) & 4) != 0" (parenthesized_expression "(*(byte *)((long)pvVar2 + 0x18) & 4)" ( (binary_expression "*(byte *)((long)pvVar2 + 0x18) & 4" (pointer_expression "*(byte *)((long)pvVar2 + 0x18)" * (cast_expression "(byte *)((long)pvVar2 + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar2 + 0x18)" ( (binary_expression "(long)pvVar2 + 0x18" (cast_expression "(long)pvVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n            pcVar7 = "FALSE";\n          }" { (expression_statement "pcVar7 = "FALSE";" (assignment_expression "pcVar7 = "FALSE"" identifier = (string_literal ""FALSE"" " string_content ")) ;) })) (expression_statement "__fprintf_chk((double)*(long *)((long)pvVar2 + 0x20),__s_00,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)((long)pvVar2 + 0x10),pcVar4,\n                        *(undefined8 *)((long)pvVar2 + 0x28),*(undefined8 *)((long)pvVar2 + 0x30));" (call_expression "__fprintf_chk((double)*(long *)((long)pvVar2 + 0x20),__s_00,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)((long)pvVar2 + 0x10),pcVar4,\n                        *(undefined8 *)((long)pvVar2 + 0x28),*(undefined8 *)((long)pvVar2 + 0x30))" identifier (argument_list "((double)*(long *)((long)pvVar2 + 0x20),__s_00,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)((long)pvVar2 + 0x10),pcVar4,\n                        *(undefined8 *)((long)pvVar2 + 0x28),*(undefined8 *)((long)pvVar2 + 0x30))" ( (cast_expression "(double)*(long *)((long)pvVar2 + 0x20)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(long *)((long)pvVar2 + 0x20)" * (cast_expression "(long *)((long)pvVar2 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar2 + 0x20)" ( (binary_expression "(long)pvVar2 + 0x20" (cast_expression "(long)pvVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) , identifier , number_literal , (pointer_expression "&DAT_0014a63d" & identifier) , identifier , (pointer_expression "*(undefined8 *)((long)pvVar2 + 0x10)" * (cast_expression "(undefined8 *)((long)pvVar2 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar2 + 0x10)" ( (binary_expression "(long)pvVar2 + 0x10" (cast_expression "(long)pvVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) , identifier , (pointer_expression "*(undefined8 *)((long)pvVar2 + 0x28)" * (cast_expression "(undefined8 *)((long)pvVar2 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar2 + 0x28)" ( (binary_expression "(long)pvVar2 + 0x28" (cast_expression "(long)pvVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) , (pointer_expression "*(undefined8 *)((long)pvVar2 + 0x30)" * (cast_expression "(undefined8 *)((long)pvVar2 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar2 + 0x30)" ( (binary_expression "(long)pvVar2 + 0x30" (cast_expression "(long)pvVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ))) ;) (expression_statement "iVar3 = ferror(__s_00);" (assignment_expression "iVar3 = ferror(__s_00)" identifier = (call_expression "ferror(__s_00)" identifier (argument_list "(__s_00)" ( identifier )))) ;) (if_statement "if (iVar3 != 0) goto LAB_001114d3;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001114d3;" goto statement_identifier ;)) })) })) })) (labeled_statement "LAB_001114d3:\n    iVar3 = ferror(__s_00);" statement_identifier : (expression_statement "iVar3 = ferror(__s_00);" (assignment_expression "iVar3 = ferror(__s_00)" identifier = (call_expression "ferror(__s_00)" identifier (argument_list "(__s_00)" ( identifier )))) ;)) (if_statement "if (iVar3 != 0) {\n      piVar5 = __errno_location();\n      pcVar4 = strerror(*piVar5);\n      pcVar7 = quote(file);\n      pcVar6 = (char *)dcgettext(0,"Error writing to %s: %s\n",5);\n      logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar5 = __errno_location();\n      pcVar4 = strerror(*piVar5);\n      pcVar7 = quote(file);\n      pcVar6 = (char *)dcgettext(0,"Error writing to %s: %s\n",5);\n      logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n    }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar4 = strerror(*piVar5);" (assignment_expression "pcVar4 = strerror(*piVar5)" identifier = (call_expression "strerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "pcVar7 = quote(file);" (assignment_expression "pcVar7 = quote(file)" identifier = (call_expression "quote(file)" identifier (argument_list "(file)" ( identifier )))) ;) (expression_statement "pcVar6 = (char *)dcgettext(0,"Error writing to %s: %s\n",5);" (assignment_expression "pcVar6 = (char *)dcgettext(0,"Error writing to %s: %s\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Error writing to %s: %s\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Error writing to %s: %s\n",5)" identifier (argument_list "(0,"Error writing to %s: %s\n",5)" ( number_literal , (string_literal ""Error writing to %s: %s\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);" (call_expression "logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4)" identifier (argument_list "(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4)" ( identifier , identifier , identifier , identifier ))) ;) })) (expression_statement "iVar3 = fclose(__s_00);" (assignment_expression "iVar3 = fclose(__s_00)" identifier = (call_expression "fclose(__s_00)" identifier (argument_list "(__s_00)" ( identifier )))) ;) (if_statement "if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      pcVar4 = strerror(*piVar5);\n      pcVar7 = quote(file);\n      pcVar6 = (char *)dcgettext(0,"Error closing %s: %s\n",5);\n      logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n    }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar5 = __errno_location();\n      pcVar4 = strerror(*piVar5);\n      pcVar7 = quote(file);\n      pcVar6 = (char *)dcgettext(0,"Error closing %s: %s\n",5);\n      logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);\n    }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar4 = strerror(*piVar5);" (assignment_expression "pcVar4 = strerror(*piVar5)" identifier = (call_expression "strerror(*piVar5)" identifier (argument_list "(*piVar5)" ( (pointer_expression "*piVar5" * identifier) )))) ;) (expression_statement "pcVar7 = quote(file);" (assignment_expression "pcVar7 = quote(file)" identifier = (call_expression "quote(file)" identifier (argument_list "(file)" ( identifier )))) ;) (expression_statement "pcVar6 = (char *)dcgettext(0,"Error closing %s: %s\n",5);" (assignment_expression "pcVar6 = (char *)dcgettext(0,"Error closing %s: %s\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Error closing %s: %s\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Error closing %s: %s\n",5)" identifier (argument_list "(0,"Error closing %s: %s\n",5)" ( number_literal , (string_literal ""Error closing %s: %s\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);" (call_expression "logprintf(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4)" identifier (argument_list "(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4)" ( identifier , identifier , identifier , identifier ))) ;) })) (if_statement "if (opt.debug != false) {\n      debug_logprintf("Done saving cookies.\n");\n    }" if (parenthesized_expression "(opt.debug != false)" ( (binary_expression "opt.debug != false" (field_expression "opt.debug" identifier . field_identifier) != false) )) (compound_statement "{\n      debug_logprintf("Done saving cookies.\n");\n    }" { (expression_statement "debug_logprintf("Done saving cookies.\n");" (call_expression "debug_logprintf("Done saving cookies.\n")" identifier (argument_list "("Done saving cookies.\n")" ( (string_literal ""Done saving cookies.\n"" " string_content escape_sequence ") ))) ;) })) }))) (if_statement "if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(lVar1 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00111343(undefined8 *param_1,char *param_2)\n\n{\n  long lVar1;\n  int iVar2;\n  FILE *__s;\n  undefined8 uVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined8 uVar6;\n  char *pcVar7;\n  char *pcVar8;\n  long in_FS_OFFSET;\n  char *local_68;\n  long local_60;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (DAT_001774fb != '\0') {\n    FUN_0012bddf("Saving cookies to %s.\n");\n  }\n  DAT_00170728 = time((time_t *)0x0);\n  __s = fopen64(param_2,"w");\n  if (__s == (FILE *)0x0) {\n    piVar4 = __errno_location();\n    pcVar5 = strerror(*piVar4);\n    uVar3 = FUN_00149289(param_2);\n    uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n  }\n  else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s);\n    uVar3 = FUN_0013a826(DAT_00170728);\n    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);\n    FUN_0011c415(*param_1,&local_68);\n    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar2 = ferror(__s);\n    if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    iVar2 = fclose(__s);\n    if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}\n\n" (function_definition "void FUN_00111343(undefined8 *param_1,char *param_2)\n\n{\n  long lVar1;\n  int iVar2;\n  FILE *__s;\n  undefined8 uVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined8 uVar6;\n  char *pcVar7;\n  char *pcVar8;\n  long in_FS_OFFSET;\n  char *local_68;\n  long local_60;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (DAT_001774fb != '\0') {\n    FUN_0012bddf("Saving cookies to %s.\n");\n  }\n  DAT_00170728 = time((time_t *)0x0);\n  __s = fopen64(param_2,"w");\n  if (__s == (FILE *)0x0) {\n    piVar4 = __errno_location();\n    pcVar5 = strerror(*piVar4);\n    uVar3 = FUN_00149289(param_2);\n    uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n  }\n  else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s);\n    uVar3 = FUN_0013a826(DAT_00170728);\n    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);\n    FUN_0011c415(*param_1,&local_68);\n    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar2 = ferror(__s);\n    if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    iVar2 = fclose(__s);\n    if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00111343(undefined8 *param_1,char *param_2)" identifier (parameter_list "(undefined8 *param_1,char *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  FILE *__s;\n  undefined8 uVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined8 uVar6;\n  char *pcVar7;\n  char *pcVar8;\n  long in_FS_OFFSET;\n  char *local_68;\n  long local_60;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (DAT_001774fb != '\0') {\n    FUN_0012bddf("Saving cookies to %s.\n");\n  }\n  DAT_00170728 = time((time_t *)0x0);\n  __s = fopen64(param_2,"w");\n  if (__s == (FILE *)0x0) {\n    piVar4 = __errno_location();\n    pcVar5 = strerror(*piVar4);\n    uVar3 = FUN_00149289(param_2);\n    uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n  }\n  else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s);\n    uVar3 = FUN_0013a826(DAT_00170728);\n    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);\n    FUN_0011c415(*param_1,&local_68);\n    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar2 = ferror(__s);\n    if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    iVar2 = fclose(__s);\n    if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "FILE *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "char *local_68;" primitive_type (pointer_declarator "*local_68" * identifier) ;) (declaration "long local_60;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (DAT_001774fb != '\0') {\n    FUN_0012bddf("Saving cookies to %s.\n");\n  }" if (parenthesized_expression "(DAT_001774fb != '\0')" ( (binary_expression "DAT_001774fb != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0012bddf("Saving cookies to %s.\n");\n  }" { (expression_statement "FUN_0012bddf("Saving cookies to %s.\n");" (call_expression "FUN_0012bddf("Saving cookies to %s.\n")" identifier (argument_list "("Saving cookies to %s.\n")" ( (string_literal ""Saving cookies to %s.\n"" " string_content escape_sequence ") ))) ;) })) (expression_statement "DAT_00170728 = time((time_t *)0x0);" (assignment_expression "DAT_00170728 = time((time_t *)0x0)" identifier = (call_expression "time((time_t *)0x0)" identifier (argument_list "((time_t *)0x0)" ( (cast_expression "(time_t *)0x0" ( (type_descriptor "time_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "__s = fopen64(param_2,"w");" (assignment_expression "__s = fopen64(param_2,"w")" identifier = (call_expression "fopen64(param_2,"w")" identifier (argument_list "(param_2,"w")" ( identifier , (string_literal ""w"" " string_content ") )))) ;) (if_statement "if (__s == (FILE *)0x0) {\n    piVar4 = __errno_location();\n    pcVar5 = strerror(*piVar4);\n    uVar3 = FUN_00149289(param_2);\n    uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n  }\n  else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s);\n    uVar3 = FUN_0013a826(DAT_00170728);\n    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);\n    FUN_0011c415(*param_1,&local_68);\n    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar2 = ferror(__s);\n    if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    iVar2 = fclose(__s);\n    if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }\n  }" if (parenthesized_expression "(__s == (FILE *)0x0)" ( (binary_expression "__s == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar4 = __errno_location();\n    pcVar5 = strerror(*piVar4);\n    uVar3 = FUN_00149289(param_2);\n    uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n  }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "uVar3 = FUN_00149289(param_2);" (assignment_expression "uVar3 = FUN_00149289(param_2)" identifier = (call_expression "FUN_00149289(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);" (assignment_expression "uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5)" identifier = (call_expression "dcgettext(0,"Cannot open cookies file %s: %s\n",5)" identifier (argument_list "(0,"Cannot open cookies file %s: %s\n",5)" ( number_literal , (string_literal ""Cannot open cookies file %s: %s\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_0012bc55(1,uVar6,uVar3,pcVar5);" (call_expression "FUN_0012bc55(1,uVar6,uVar3,pcVar5)" identifier (argument_list "(1,uVar6,uVar3,pcVar5)" ( number_literal , identifier , identifier , identifier ))) ;) }) (else_clause "else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s);\n    uVar3 = FUN_0013a826(DAT_00170728);\n    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);\n    FUN_0011c415(*param_1,&local_68);\n    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar2 = ferror(__s);\n    if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    iVar2 = fclose(__s);\n    if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }\n  }" else (compound_statement "{\n    fwrite("# HTTP cookie file.\n",1,0x14,__s);\n    uVar3 = FUN_0013a826(DAT_00170728);\n    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);\n    FUN_0011c415(*param_1,&local_68);\n    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar2 = ferror(__s);\n    if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    iVar2 = fclose(__s);\n    if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }\n  }" { (expression_statement "fwrite("# HTTP cookie file.\n",1,0x14,__s);" (call_expression "fwrite("# HTTP cookie file.\n",1,0x14,__s)" identifier (argument_list "("# HTTP cookie file.\n",1,0x14,__s)" ( (string_literal ""# HTTP cookie file.\n"" " string_content escape_sequence ") , number_literal , number_literal , identifier ))) ;) (expression_statement "uVar3 = FUN_0013a826(DAT_00170728);" (assignment_expression "uVar3 = FUN_0013a826(DAT_00170728)" identifier = (call_expression "FUN_0013a826(DAT_00170728)" identifier (argument_list "(DAT_00170728)" ( identifier )))) ;) (expression_statement "__fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);" (call_expression "__fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3)" identifier (argument_list "(__s,1,"# Generated by Wget on %s.\n",uVar3)" ( identifier , number_literal , (string_literal ""# Generated by Wget on %s.\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);" (call_expression "fwrite("# Edit at your own risk.\n\n",1,0x1a,__s)" identifier (argument_list "("# Edit at your own risk.\n\n",1,0x1a,__s)" ( (string_literal ""# Edit at your own risk.\n\n"" " string_content escape_sequence escape_sequence ") , number_literal , number_literal , identifier ))) ;) (expression_statement "FUN_0011c415(*param_1,&local_68);" (call_expression "FUN_0011c415(*param_1,&local_68)" identifier (argument_list "(*param_1,&local_68)" ( (pointer_expression "*param_1" * identifier) , (pointer_expression "&local_68" & identifier) ))) ;) (while_statement "while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }" while (parenthesized_expression "(iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0)" ( (comma_expression "iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0" (assignment_expression "iVar2 = FUN_0011c42d(&local_68)" identifier = (call_expression "FUN_0011c42d(&local_68)" identifier (argument_list "(&local_68)" ( (pointer_expression "&local_68" & identifier) )))) , (comma_expression "pcVar5 = local_68, lVar1 = local_60, iVar2 != 0" (assignment_expression "pcVar5 = local_68" identifier = identifier) , (comma_expression "lVar1 = local_60, iVar2 != 0" (assignment_expression "lVar1 = local_60" identifier = identifier) , (binary_expression "iVar2 != 0" identifier != number_literal)))) )) (compound_statement "{\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }" { (for_statement "for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }" for ( ; (binary_expression "lVar1 != 0" identifier != number_literal) ; (assignment_expression "lVar1 = *(long *)(lVar1 + 0x38)" identifier = (pointer_expression "*(long *)(lVar1 + 0x38)" * (cast_expression "(long *)(lVar1 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x38)" ( (binary_expression "lVar1 + 0x38" identifier + number_literal) ))))) ) (compound_statement "{\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }" { (if_statement "if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }" if (parenthesized_expression "((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20)))))" ( (binary_expression "(((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))" (parenthesized_expression "(((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0'))" ( (binary_expression "((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')" (parenthesized_expression "((*(byte *)(lVar1 + 0x18) & 8) != 0)" ( (binary_expression "(*(byte *)(lVar1 + 0x18) & 8) != 0" (parenthesized_expression "(*(byte *)(lVar1 + 0x18) & 8)" ( (binary_expression "*(byte *)(lVar1 + 0x18) & 8" (pointer_expression "*(byte *)(lVar1 + 0x18)" * (cast_expression "(byte *)(lVar1 + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x18)" ( (binary_expression "lVar1 + 0x18" identifier + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(DAT_001775c1 != '\0')" ( (binary_expression "DAT_001775c1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))" ( (parenthesized_expression "(*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20)))" ( (binary_expression "*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))" (binary_expression "*(long *)(lVar1 + 0x20) == 0" (pointer_expression "*(long *)(lVar1 + 0x20)" * (cast_expression "(long *)(lVar1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) == number_literal) || (parenthesized_expression "(DAT_00170728 <= *(long *)(lVar1 + 0x20))" ( (binary_expression "DAT_00170728 <= *(long *)(lVar1 + 0x20)" identifier <= (pointer_expression "*(long *)(lVar1 + 0x20)" * (cast_expression "(long *)(lVar1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) ))))) ))) )) ))) )) (compound_statement "{\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }" { (if_statement "if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }" if (parenthesized_expression "((*(byte *)(lVar1 + 0x18) & 4) == 0)" ( (binary_expression "(*(byte *)(lVar1 + 0x18) & 4) == 0" (parenthesized_expression "(*(byte *)(lVar1 + 0x18) & 4)" ( (binary_expression "*(byte *)(lVar1 + 0x18) & 4" (pointer_expression "*(byte *)(lVar1 + 0x18)" * (cast_expression "(byte *)(lVar1 + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x18)" ( (binary_expression "lVar1 + 0x18" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n            fputc(0x2e,__s);\n          }" { (expression_statement "fputc(0x2e,__s);" (call_expression "fputc(0x2e,__s)" identifier (argument_list "(0x2e,__s)" ( number_literal , identifier ))) ;) })) (expression_statement "fputs(pcVar5,__s);" (call_expression "fputs(pcVar5,__s)" identifier (argument_list "(pcVar5,__s)" ( identifier , identifier ))) ;) (if_statement "if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }" if (parenthesized_expression "(*(int *)(lVar1 + 8) != -1)" ( (binary_expression "*(int *)(lVar1 + 8) != -1" (pointer_expression "*(int *)(lVar1 + 8)" * (cast_expression "(int *)(lVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }" { (expression_statement "__fprintf_chk(__s,1,&DAT_00156147);" (call_expression "__fprintf_chk(__s,1,&DAT_00156147)" identifier (argument_list "(__s,1,&DAT_00156147)" ( identifier , number_literal , (pointer_expression "&DAT_00156147" & identifier) ))) ;) })) (expression_statement "pcVar8 = "FALSE";" (assignment_expression "pcVar8 = "FALSE"" identifier = (string_literal ""FALSE"" " string_content ")) ;) (if_statement "if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }" if (parenthesized_expression "((*(byte *)(lVar1 + 0x18) & 2) != 0)" ( (binary_expression "(*(byte *)(lVar1 + 0x18) & 2) != 0" (parenthesized_expression "(*(byte *)(lVar1 + 0x18) & 2)" ( (binary_expression "*(byte *)(lVar1 + 0x18) & 2" (pointer_expression "*(byte *)(lVar1 + 0x18)" * (cast_expression "(byte *)(lVar1 + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x18)" ( (binary_expression "lVar1 + 0x18" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n            pcVar8 = "TRUE";\n          }" { (expression_statement "pcVar8 = "TRUE";" (assignment_expression "pcVar8 = "TRUE"" identifier = (string_literal ""TRUE"" " string_content ")) ;) })) (expression_statement "pcVar7 = "TRUE";" (assignment_expression "pcVar7 = "TRUE"" identifier = (string_literal ""TRUE"" " string_content ")) ;) (if_statement "if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }" if (parenthesized_expression "((*(byte *)(lVar1 + 0x18) & 4) != 0)" ( (binary_expression "(*(byte *)(lVar1 + 0x18) & 4) != 0" (parenthesized_expression "(*(byte *)(lVar1 + 0x18) & 4)" ( (binary_expression "*(byte *)(lVar1 + 0x18) & 4" (pointer_expression "*(byte *)(lVar1 + 0x18)" * (cast_expression "(byte *)(lVar1 + 0x18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x18)" ( (binary_expression "lVar1 + 0x18" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n            pcVar7 = "FALSE";\n          }" { (expression_statement "pcVar7 = "FALSE";" (assignment_expression "pcVar7 = "FALSE"" identifier = (string_literal ""FALSE"" " string_content ")) ;) })) (expression_statement "__fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));" (call_expression "__fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30))" identifier (argument_list "((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30))" ( (cast_expression "(double)*(long *)(lVar1 + 0x20)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(long *)(lVar1 + 0x20)" * (cast_expression "(long *)(lVar1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) ))))) , identifier , number_literal , (pointer_expression "&DAT_0014a63d" & identifier) , identifier , (pointer_expression "*(undefined8 *)(lVar1 + 0x10)" * (cast_expression "(undefined8 *)(lVar1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) , identifier , (pointer_expression "*(undefined8 *)(lVar1 + 0x28)" * (cast_expression "(undefined8 *)(lVar1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x28)" ( (binary_expression "lVar1 + 0x28" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(lVar1 + 0x30)" * (cast_expression "(undefined8 *)(lVar1 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x30)" ( (binary_expression "lVar1 + 0x30" identifier + number_literal) )))) ))) ;) (expression_statement "iVar2 = ferror(__s);" (assignment_expression "iVar2 = ferror(__s)" identifier = (call_expression "ferror(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) goto LAB_001114d3;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001114d3;" goto statement_identifier ;)) })) })) })) (labeled_statement "LAB_001114d3:\n    iVar2 = ferror(__s);" statement_identifier : (expression_statement "iVar2 = ferror(__s);" (assignment_expression "iVar2 = ferror(__s)" identifier = (call_expression "ferror(__s)" identifier (argument_list "(__s)" ( identifier )))) ;)) (if_statement "if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "uVar3 = FUN_00149289(param_2);" (assignment_expression "uVar3 = FUN_00149289(param_2)" identifier = (call_expression "FUN_00149289(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);" (assignment_expression "uVar6 = dcgettext(0,"Error writing to %s: %s\n",5)" identifier = (call_expression "dcgettext(0,"Error writing to %s: %s\n",5)" identifier (argument_list "(0,"Error writing to %s: %s\n",5)" ( number_literal , (string_literal ""Error writing to %s: %s\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_0012bc55(1,uVar6,uVar3,pcVar5);" (call_expression "FUN_0012bc55(1,uVar6,uVar3,pcVar5)" identifier (argument_list "(1,uVar6,uVar3,pcVar5)" ( number_literal , identifier , identifier , identifier ))) ;) })) (expression_statement "iVar2 = fclose(__s);" (assignment_expression "iVar2 = fclose(__s)" identifier = (call_expression "fclose(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (if_statement "if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "uVar3 = FUN_00149289(param_2);" (assignment_expression "uVar3 = FUN_00149289(param_2)" identifier = (call_expression "FUN_00149289(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "uVar6 = dcgettext(0,"Error closing %s: %s\n",5);" (assignment_expression "uVar6 = dcgettext(0,"Error closing %s: %s\n",5)" identifier = (call_expression "dcgettext(0,"Error closing %s: %s\n",5)" identifier (argument_list "(0,"Error closing %s: %s\n",5)" ( number_literal , (string_literal ""Error closing %s: %s\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_0012bc55(1,uVar6,uVar3,pcVar5);" (call_expression "FUN_0012bc55(1,uVar6,uVar3,pcVar5)" identifier (argument_list "(1,uVar6,uVar3,pcVar5)" ( number_literal , identifier , identifier , identifier ))) ;) })) (if_statement "if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }" if (parenthesized_expression "(DAT_001774fb != '\0')" ( (binary_expression "DAT_001774fb != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_0012bddf("Done saving cookies.\n");\n    }" { (expression_statement "FUN_0012bddf("Done saving cookies.\n");" (call_expression "FUN_0012bddf("Done saving cookies.\n")" identifier (argument_list "("Done saving cookies.\n")" ( (string_literal ""Done saving cookies.\n"" " string_content escape_sequence ") ))) ;) })) }))) (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , LIT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (string_literal " string_content escape_sequence ") , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence escape_sequence ") , LIT , LIT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (pointer_expression & IDENT) ))) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) , (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != LIT)))) )) (compound_statement { (for_statement for ( ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) || (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) || (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) ))) ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , IDENT , LIT , (pointer_expression & IDENT) , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) })) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT , IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") ))) ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00111343(undefined8 *param_1,char *param_2)\n\n{\n  long lVar1;\n  int iVar2;\n  FILE *__s;\n  undefined8 uVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined8 uVar6;\n  char *pcVar7;\n  char *pcVar8;\n  long in_FS_OFFSET;\n  char *local_68;\n  long local_60;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (DAT_001774fb != '\0') {\n    FUN_0012bddf("Saving cookies to %s.\n");\n  }\n  DAT_00170728 = time((time_t *)0x0);\n  __s = fopen64(param_2,"w");\n  if (__s == (FILE *)0x0) {\n    piVar4 = __errno_location();\n    pcVar5 = strerror(*piVar4);\n    uVar3 = FUN_00149289(param_2);\n    uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n  }\n  else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s);\n    uVar3 = FUN_0013a826(DAT_00170728);\n    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);\n    FUN_0011c415(*param_1,&local_68);\n    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar2 = ferror(__s);\n    if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    iVar2 = fclose(__s);\n    if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00111343(undefined8 *param_1,char *param_2)" (identifier "FUN_00111343") (parameter_list "(undefined8 *param_1,char *param_2)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  FILE *__s;\n  undefined8 uVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined8 uVar6;\n  char *pcVar7;\n  char *pcVar8;\n  long in_FS_OFFSET;\n  char *local_68;\n  long local_60;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (DAT_001774fb != '\0') {\n    FUN_0012bddf("Saving cookies to %s.\n");\n  }\n  DAT_00170728 = time((time_t *)0x0);\n  __s = fopen64(param_2,"w");\n  if (__s == (FILE *)0x0) {\n    piVar4 = __errno_location();\n    pcVar5 = strerror(*piVar4);\n    uVar3 = FUN_00149289(param_2);\n    uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n  }\n  else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s);\n    uVar3 = FUN_0013a826(DAT_00170728);\n    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);\n    FUN_0011c415(*param_1,&local_68);\n    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar2 = ferror(__s);\n    if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    iVar2 = fclose(__s);\n    if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "FILE *__s;" (type_identifier "FILE") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "undefined8 uVar6;" (type_identifier "undefined8") (identifier "uVar6") (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "char *local_68;" (primitive_type "char") (pointer_declarator "*local_68" (* "*") (identifier "local_68")) (; ";")) (declaration "long local_60;" (sized_type_specifier "long" (long "long")) (identifier "local_60") (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (DAT_001774fb != '\0') {\n    FUN_0012bddf("Saving cookies to %s.\n");\n  }" (if "if") (parenthesized_expression "(DAT_001774fb != '\0')" (( "(") (binary_expression "DAT_001774fb != '\0'" (identifier "DAT_001774fb") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_0012bddf("Saving cookies to %s.\n");\n  }" ({ "{") (expression_statement "FUN_0012bddf("Saving cookies to %s.\n");" (call_expression "FUN_0012bddf("Saving cookies to %s.\n")" (identifier "FUN_0012bddf") (argument_list "("Saving cookies to %s.\n")" (( "(") (string_literal ""Saving cookies to %s.\n"" (" """) (string_content "Saving cookies to %s.") (escape_sequence "\n") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "DAT_00170728 = time((time_t *)0x0);" (assignment_expression "DAT_00170728 = time((time_t *)0x0)" (identifier "DAT_00170728") (= "=") (call_expression "time((time_t *)0x0)" (identifier "time") (argument_list "((time_t *)0x0)" (( "(") (cast_expression "(time_t *)0x0" (( "(") (type_descriptor "time_t *" (type_identifier "time_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) () ")")))) (; ";")) (expression_statement "__s = fopen64(param_2,"w");" (assignment_expression "__s = fopen64(param_2,"w")" (identifier "__s") (= "=") (call_expression "fopen64(param_2,"w")" (identifier "fopen64") (argument_list "(param_2,"w")" (( "(") (identifier "param_2") (, ",") (string_literal ""w"" (" """) (string_content "w") (" """)) () ")")))) (; ";")) (if_statement "if (__s == (FILE *)0x0) {\n    piVar4 = __errno_location();\n    pcVar5 = strerror(*piVar4);\n    uVar3 = FUN_00149289(param_2);\n    uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n  }\n  else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s);\n    uVar3 = FUN_0013a826(DAT_00170728);\n    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);\n    FUN_0011c415(*param_1,&local_68);\n    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar2 = ferror(__s);\n    if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    iVar2 = fclose(__s);\n    if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }\n  }" (if "if") (parenthesized_expression "(__s == (FILE *)0x0)" (( "(") (binary_expression "__s == (FILE *)0x0" (identifier "__s") (== "==") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    piVar4 = __errno_location();\n    pcVar5 = strerror(*piVar4);\n    uVar3 = FUN_00149289(param_2);\n    uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);\n    FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n  }" ({ "{") (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" (identifier "pcVar5") (= "=") (call_expression "strerror(*piVar4)" (identifier "strerror") (argument_list "(*piVar4)" (( "(") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) () ")")))) (; ";")) (expression_statement "uVar3 = FUN_00149289(param_2);" (assignment_expression "uVar3 = FUN_00149289(param_2)" (identifier "uVar3") (= "=") (call_expression "FUN_00149289(param_2)" (identifier "FUN_00149289") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);" (assignment_expression "uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5)" (identifier "uVar6") (= "=") (call_expression "dcgettext(0,"Cannot open cookies file %s: %s\n",5)" (identifier "dcgettext") (argument_list "(0,"Cannot open cookies file %s: %s\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Cannot open cookies file %s: %s\n"" (" """) (string_content "Cannot open cookies file %s: %s") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0012bc55(1,uVar6,uVar3,pcVar5);" (call_expression "FUN_0012bc55(1,uVar6,uVar3,pcVar5)" (identifier "FUN_0012bc55") (argument_list "(1,uVar6,uVar3,pcVar5)" (( "(") (number_literal "1") (, ",") (identifier "uVar6") (, ",") (identifier "uVar3") (, ",") (identifier "pcVar5") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    fwrite("# HTTP cookie file.\n",1,0x14,__s);\n    uVar3 = FUN_0013a826(DAT_00170728);\n    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);\n    FUN_0011c415(*param_1,&local_68);\n    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar2 = ferror(__s);\n    if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    iVar2 = fclose(__s);\n    if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }\n  }" (else "else") (compound_statement "{\n    fwrite("# HTTP cookie file.\n",1,0x14,__s);\n    uVar3 = FUN_0013a826(DAT_00170728);\n    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);\n    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);\n    FUN_0011c415(*param_1,&local_68);\n    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }\nLAB_001114d3:\n    iVar2 = ferror(__s);\n    if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    iVar2 = fclose(__s);\n    if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }\n    if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }\n  }" ({ "{") (expression_statement "fwrite("# HTTP cookie file.\n",1,0x14,__s);" (call_expression "fwrite("# HTTP cookie file.\n",1,0x14,__s)" (identifier "fwrite") (argument_list "("# HTTP cookie file.\n",1,0x14,__s)" (( "(") (string_literal ""# HTTP cookie file.\n"" (" """) (string_content "# HTTP cookie file.") (escape_sequence "\n") (" """)) (, ",") (number_literal "1") (, ",") (number_literal "0x14") (, ",") (identifier "__s") () ")"))) (; ";")) (expression_statement "uVar3 = FUN_0013a826(DAT_00170728);" (assignment_expression "uVar3 = FUN_0013a826(DAT_00170728)" (identifier "uVar3") (= "=") (call_expression "FUN_0013a826(DAT_00170728)" (identifier "FUN_0013a826") (argument_list "(DAT_00170728)" (( "(") (identifier "DAT_00170728") () ")")))) (; ";")) (expression_statement "__fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);" (call_expression "__fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3)" (identifier "__fprintf_chk") (argument_list "(__s,1,"# Generated by Wget on %s.\n",uVar3)" (( "(") (identifier "__s") (, ",") (number_literal "1") (, ",") (string_literal ""# Generated by Wget on %s.\n"" (" """) (string_content "# Generated by Wget on %s.") (escape_sequence "\n") (" """)) (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);" (call_expression "fwrite("# Edit at your own risk.\n\n",1,0x1a,__s)" (identifier "fwrite") (argument_list "("# Edit at your own risk.\n\n",1,0x1a,__s)" (( "(") (string_literal ""# Edit at your own risk.\n\n"" (" """) (string_content "# Edit at your own risk.") (escape_sequence "\n") (escape_sequence "\n") (" """)) (, ",") (number_literal "1") (, ",") (number_literal "0x1a") (, ",") (identifier "__s") () ")"))) (; ";")) (expression_statement "FUN_0011c415(*param_1,&local_68);" (call_expression "FUN_0011c415(*param_1,&local_68)" (identifier "FUN_0011c415") (argument_list "(*param_1,&local_68)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (pointer_expression "&local_68" (& "&") (identifier "local_68")) () ")"))) (; ";")) (while_statement "while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }" (while "while") (parenthesized_expression "(iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0)" (( "(") (comma_expression "iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0" (assignment_expression "iVar2 = FUN_0011c42d(&local_68)" (identifier "iVar2") (= "=") (call_expression "FUN_0011c42d(&local_68)" (identifier "FUN_0011c42d") (argument_list "(&local_68)" (( "(") (pointer_expression "&local_68" (& "&") (identifier "local_68")) () ")")))) (, ",") (comma_expression "pcVar5 = local_68, lVar1 = local_60, iVar2 != 0" (assignment_expression "pcVar5 = local_68" (identifier "pcVar5") (= "=") (identifier "local_68")) (, ",") (comma_expression "lVar1 = local_60, iVar2 != 0" (assignment_expression "lVar1 = local_60" (identifier "lVar1") (= "=") (identifier "local_60")) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))))) () ")")) (compound_statement "{\n      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }\n    }" ({ "{") (for_statement "for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }" (for "for") (( "(") (; ";") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "lVar1 = *(long *)(lVar1 + 0x38)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(lVar1 + 0x38)" (* "*") (cast_expression "(long *)(lVar1 + 0x38)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x38)" (( "(") (binary_expression "lVar1 + 0x38" (identifier "lVar1") (+ "+") (number_literal "0x38")) () ")"))))) () ")") (compound_statement "{\n        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }\n      }" ({ "{") (if_statement "if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }" (if "if") (parenthesized_expression "((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20)))))" (( "(") (binary_expression "(((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&\n           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))" (parenthesized_expression "(((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0'))" (( "(") (binary_expression "((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')" (parenthesized_expression "((*(byte *)(lVar1 + 0x18) & 8) != 0)" (( "(") (binary_expression "(*(byte *)(lVar1 + 0x18) & 8) != 0" (parenthesized_expression "(*(byte *)(lVar1 + 0x18) & 8)" (( "(") (binary_expression "*(byte *)(lVar1 + 0x18) & 8" (pointer_expression "*(byte *)(lVar1 + 0x18)" (* "*") (cast_expression "(byte *)(lVar1 + 0x18)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x18)" (( "(") (binary_expression "lVar1 + 0x18" (identifier "lVar1") (+ "+") (number_literal "0x18")) () ")")))) (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(DAT_001775c1 != '\0')" (( "(") (binary_expression "DAT_001775c1 != '\0'" (identifier "DAT_001775c1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))" (( "(") (parenthesized_expression "(*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20)))" (( "(") (binary_expression "*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))" (binary_expression "*(long *)(lVar1 + 0x20) == 0" (pointer_expression "*(long *)(lVar1 + 0x20)" (* "*") (cast_expression "(long *)(lVar1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x20)" (( "(") (binary_expression "lVar1 + 0x20" (identifier "lVar1") (+ "+") (number_literal "0x20")) () ")")))) (== "==") (number_literal "0")) (|| "||") (parenthesized_expression "(DAT_00170728 <= *(long *)(lVar1 + 0x20))" (( "(") (binary_expression "DAT_00170728 <= *(long *)(lVar1 + 0x20)" (identifier "DAT_00170728") (<= "<=") (pointer_expression "*(long *)(lVar1 + 0x20)" (* "*") (cast_expression "(long *)(lVar1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x20)" (( "(") (binary_expression "lVar1 + 0x20" (identifier "lVar1") (+ "+") (number_literal "0x20")) () ")"))))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }\n          fputs(pcVar5,__s);\n          if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }\n          pcVar8 = "FALSE";\n          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }\n          pcVar7 = "TRUE";\n          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }\n          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));\n          iVar2 = ferror(__s);\n          if (iVar2 != 0) goto LAB_001114d3;\n        }" ({ "{") (if_statement "if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {\n            fputc(0x2e,__s);\n          }" (if "if") (parenthesized_expression "((*(byte *)(lVar1 + 0x18) & 4) == 0)" (( "(") (binary_expression "(*(byte *)(lVar1 + 0x18) & 4) == 0" (parenthesized_expression "(*(byte *)(lVar1 + 0x18) & 4)" (( "(") (binary_expression "*(byte *)(lVar1 + 0x18) & 4" (pointer_expression "*(byte *)(lVar1 + 0x18)" (* "*") (cast_expression "(byte *)(lVar1 + 0x18)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x18)" (( "(") (binary_expression "lVar1 + 0x18" (identifier "lVar1") (+ "+") (number_literal "0x18")) () ")")))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            fputc(0x2e,__s);\n          }" ({ "{") (expression_statement "fputc(0x2e,__s);" (call_expression "fputc(0x2e,__s)" (identifier "fputc") (argument_list "(0x2e,__s)" (( "(") (number_literal "0x2e") (, ",") (identifier "__s") () ")"))) (; ";")) (} "}"))) (expression_statement "fputs(pcVar5,__s);" (call_expression "fputs(pcVar5,__s)" (identifier "fputs") (argument_list "(pcVar5,__s)" (( "(") (identifier "pcVar5") (, ",") (identifier "__s") () ")"))) (; ";")) (if_statement "if (*(int *)(lVar1 + 8) != -1) {\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }" (if "if") (parenthesized_expression "(*(int *)(lVar1 + 8) != -1)" (( "(") (binary_expression "*(int *)(lVar1 + 8) != -1" (pointer_expression "*(int *)(lVar1 + 8)" (* "*") (cast_expression "(int *)(lVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 8)" (( "(") (binary_expression "lVar1 + 8" (identifier "lVar1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n            __fprintf_chk(__s,1,&DAT_00156147);\n          }" ({ "{") (expression_statement "__fprintf_chk(__s,1,&DAT_00156147);" (call_expression "__fprintf_chk(__s,1,&DAT_00156147)" (identifier "__fprintf_chk") (argument_list "(__s,1,&DAT_00156147)" (( "(") (identifier "__s") (, ",") (number_literal "1") (, ",") (pointer_expression "&DAT_00156147" (& "&") (identifier "DAT_00156147")) () ")"))) (; ";")) (} "}"))) (expression_statement "pcVar8 = "FALSE";" (assignment_expression "pcVar8 = "FALSE"" (identifier "pcVar8") (= "=") (string_literal ""FALSE"" (" """) (string_content "FALSE") (" """))) (; ";")) (if_statement "if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {\n            pcVar8 = "TRUE";\n          }" (if "if") (parenthesized_expression "((*(byte *)(lVar1 + 0x18) & 2) != 0)" (( "(") (binary_expression "(*(byte *)(lVar1 + 0x18) & 2) != 0" (parenthesized_expression "(*(byte *)(lVar1 + 0x18) & 2)" (( "(") (binary_expression "*(byte *)(lVar1 + 0x18) & 2" (pointer_expression "*(byte *)(lVar1 + 0x18)" (* "*") (cast_expression "(byte *)(lVar1 + 0x18)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x18)" (( "(") (binary_expression "lVar1 + 0x18" (identifier "lVar1") (+ "+") (number_literal "0x18")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            pcVar8 = "TRUE";\n          }" ({ "{") (expression_statement "pcVar8 = "TRUE";" (assignment_expression "pcVar8 = "TRUE"" (identifier "pcVar8") (= "=") (string_literal ""TRUE"" (" """) (string_content "TRUE") (" """))) (; ";")) (} "}"))) (expression_statement "pcVar7 = "TRUE";" (assignment_expression "pcVar7 = "TRUE"" (identifier "pcVar7") (= "=") (string_literal ""TRUE"" (" """) (string_content "TRUE") (" """))) (; ";")) (if_statement "if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {\n            pcVar7 = "FALSE";\n          }" (if "if") (parenthesized_expression "((*(byte *)(lVar1 + 0x18) & 4) != 0)" (( "(") (binary_expression "(*(byte *)(lVar1 + 0x18) & 4) != 0" (parenthesized_expression "(*(byte *)(lVar1 + 0x18) & 4)" (( "(") (binary_expression "*(byte *)(lVar1 + 0x18) & 4" (pointer_expression "*(byte *)(lVar1 + 0x18)" (* "*") (cast_expression "(byte *)(lVar1 + 0x18)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x18)" (( "(") (binary_expression "lVar1 + 0x18" (identifier "lVar1") (+ "+") (number_literal "0x18")) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            pcVar7 = "FALSE";\n          }" ({ "{") (expression_statement "pcVar7 = "FALSE";" (assignment_expression "pcVar7 = "FALSE"" (identifier "pcVar7") (= "=") (string_literal ""FALSE"" (" """) (string_content "FALSE") (" """))) (; ";")) (} "}"))) (expression_statement "__fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30));" (call_expression "__fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30))" (identifier "__fprintf_chk") (argument_list "((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,\n                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),\n                        *(undefined8 *)(lVar1 + 0x30))" (( "(") (cast_expression "(double)*(long *)(lVar1 + 0x20)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(long *)(lVar1 + 0x20)" (* "*") (cast_expression "(long *)(lVar1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x20)" (( "(") (binary_expression "lVar1 + 0x20" (identifier "lVar1") (+ "+") (number_literal "0x20")) () ")"))))) (, ",") (identifier "__s") (, ",") (number_literal "1") (, ",") (pointer_expression "&DAT_0014a63d" (& "&") (identifier "DAT_0014a63d")) (, ",") (identifier "pcVar7") (, ",") (pointer_expression "*(undefined8 *)(lVar1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (identifier "pcVar8") (, ",") (pointer_expression "*(undefined8 *)(lVar1 + 0x28)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x28)" (( "(") (binary_expression "lVar1 + 0x28" (identifier "lVar1") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(lVar1 + 0x30)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 0x30)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x30)" (( "(") (binary_expression "lVar1 + 0x30" (identifier "lVar1") (+ "+") (number_literal "0x30")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar2 = ferror(__s);" (assignment_expression "iVar2 = ferror(__s)" (identifier "iVar2") (= "=") (call_expression "ferror(__s)" (identifier "ferror") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_001114d3;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_001114d3;" (goto "goto") (statement_identifier "LAB_001114d3") (; ";"))) (} "}"))) (} "}"))) (} "}"))) (labeled_statement "LAB_001114d3:\n    iVar2 = ferror(__s);" (statement_identifier "LAB_001114d3") (: ":") (expression_statement "iVar2 = ferror(__s);" (assignment_expression "iVar2 = ferror(__s)" (identifier "iVar2") (= "=") (call_expression "ferror(__s)" (identifier "ferror") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";"))) (if_statement "if (iVar2 != 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }" ({ "{") (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" (identifier "pcVar5") (= "=") (call_expression "strerror(*piVar4)" (identifier "strerror") (argument_list "(*piVar4)" (( "(") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) () ")")))) (; ";")) (expression_statement "uVar3 = FUN_00149289(param_2);" (assignment_expression "uVar3 = FUN_00149289(param_2)" (identifier "uVar3") (= "=") (call_expression "FUN_00149289(param_2)" (identifier "FUN_00149289") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);" (assignment_expression "uVar6 = dcgettext(0,"Error writing to %s: %s\n",5)" (identifier "uVar6") (= "=") (call_expression "dcgettext(0,"Error writing to %s: %s\n",5)" (identifier "dcgettext") (argument_list "(0,"Error writing to %s: %s\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Error writing to %s: %s\n"" (" """) (string_content "Error writing to %s: %s") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0012bc55(1,uVar6,uVar3,pcVar5);" (call_expression "FUN_0012bc55(1,uVar6,uVar3,pcVar5)" (identifier "FUN_0012bc55") (argument_list "(1,uVar6,uVar3,pcVar5)" (( "(") (number_literal "1") (, ",") (identifier "uVar6") (, ",") (identifier "uVar3") (, ",") (identifier "pcVar5") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = fclose(__s);" (assignment_expression "iVar2 = fclose(__s)" (identifier "iVar2") (= "=") (call_expression "fclose(__s)" (identifier "fclose") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (if_statement "if (iVar2 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar3 = FUN_00149289(param_2);\n      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);\n      FUN_0012bc55(1,uVar6,uVar3,pcVar5);\n    }" ({ "{") (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" (identifier "pcVar5") (= "=") (call_expression "strerror(*piVar4)" (identifier "strerror") (argument_list "(*piVar4)" (( "(") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) () ")")))) (; ";")) (expression_statement "uVar3 = FUN_00149289(param_2);" (assignment_expression "uVar3 = FUN_00149289(param_2)" (identifier "uVar3") (= "=") (call_expression "FUN_00149289(param_2)" (identifier "FUN_00149289") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "uVar6 = dcgettext(0,"Error closing %s: %s\n",5);" (assignment_expression "uVar6 = dcgettext(0,"Error closing %s: %s\n",5)" (identifier "uVar6") (= "=") (call_expression "dcgettext(0,"Error closing %s: %s\n",5)" (identifier "dcgettext") (argument_list "(0,"Error closing %s: %s\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Error closing %s: %s\n"" (" """) (string_content "Error closing %s: %s") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0012bc55(1,uVar6,uVar3,pcVar5);" (call_expression "FUN_0012bc55(1,uVar6,uVar3,pcVar5)" (identifier "FUN_0012bc55") (argument_list "(1,uVar6,uVar3,pcVar5)" (( "(") (number_literal "1") (, ",") (identifier "uVar6") (, ",") (identifier "uVar3") (, ",") (identifier "pcVar5") () ")"))) (; ";")) (} "}"))) (if_statement "if (DAT_001774fb != '\0') {\n      FUN_0012bddf("Done saving cookies.\n");\n    }" (if "if") (parenthesized_expression "(DAT_001774fb != '\0')" (( "(") (binary_expression "DAT_001774fb != '\0'" (identifier "DAT_001774fb") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      FUN_0012bddf("Done saving cookies.\n");\n    }" ({ "{") (expression_statement "FUN_0012bddf("Done saving cookies.\n");" (call_expression "FUN_0012bddf("Done saving cookies.\n")" (identifier "FUN_0012bddf") (argument_list "("Done saving cookies.\n")" (( "(") (string_literal ""Done saving cookies.\n"" (" """) (string_content "Done saving cookies.") (escape_sequence "\n") (" """)) () ")"))) (; ";")) (} "}"))) (} "}")))) (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (!= "!=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 *jar,char *file)

{
  long var_23;
  void *var_17;
  void *__s;
  int var_16;
  type_2 *var_5;
  char *pcVar4;
  int *piVar5;
  char *pcVar6;
  char *pcVar7;
  long var_1;
  type_3 iter;
  
  var_23 = *(long *)(var_1 + 0x28);
  if (opt.debug) {
    var_2("Saving cookies to %s.\n");
  }
  var_18 = var_3((type_4 *)0x0);
  var_5 = var_4(file,"w");
  if (var_5 == (type_2 *)0x0) {
    piVar5 = var_6();
    pcVar4 = var_7(*piVar5);
    pcVar7 = var_8(file);
    pcVar6 = (char *)var_9(0,"Cannot open cookies file %s: %s\n",5);
    var_10(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);
  }
  else {
    var_11("# HTTP cookie file.\n",1,0x14,var_5);
    pcVar4 = var_12(var_18);
    var_13(var_5,1,"# Generated by Wget on %s.\n",pcVar4);
    var_11("# Edit at your own risk.\n\n",1,0x1a,var_5);
    var_14(jar->chains,&iter);
    while (var_16 = var_15(&iter), __s = iter.key, var_17 = iter.value, var_16 != 0) {
      for (; var_17 != (void *)0x0; var_17 = *(void **)((long)var_17 + 0x38)) {
        if ((((*(type_5 *)((long)var_17 + 0x18) & 8) != 0) || (opt.keep_session_cookies != false)) &&
           ((*(long *)((long)var_17 + 0x20) == 0 || (var_18 <= *(long *)((long)var_17 + 0x20)))
           )) {
          if ((*(type_5 *)((long)var_17 + 0x18) & 4) == 0) {
            var_19(0x2e,var_5);
          }
          var_20((char *)__s,var_5);
          if (*(int *)((long)var_17 + 8) != -1) {
            var_13(var_5,1,&DAT_00156147);
          }
          pcVar4 = "FALSE";
          if ((*(type_5 *)((long)var_17 + 0x18) & 2) != 0) {
            pcVar4 = "TRUE";
          }
          pcVar7 = "TRUE";
          if ((*(type_5 *)((long)var_17 + 0x18) & 4) != 0) {
            pcVar7 = "FALSE";
          }
          var_13((double)*(long *)((long)var_17 + 0x20),var_5,1,&DAT_0014a63d,pcVar7,
                        *(type_6 *)((long)var_17 + 0x10),pcVar4,
                        *(type_6 *)((long)var_17 + 0x28),*(type_6 *)((long)var_17 + 0x30));
          var_16 = var_21(var_5);
          if (var_16 != 0) goto LAB_001114d3;
        }
      }
    }
LAB_001114d3:
    var_16 = var_21(var_5);
    if (var_16 != 0) {
      piVar5 = var_6();
      pcVar4 = var_7(*piVar5);
      pcVar7 = var_8(file);
      pcVar6 = (char *)var_9(0,"Error writing to %s: %s\n",5);
      var_10(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);
    }
    var_16 = var_22(var_5);
    if (var_16 < 0) {
      piVar5 = var_6();
      pcVar4 = var_7(*piVar5);
      pcVar7 = var_8(file);
      pcVar6 = (char *)var_9(0,"Error closing %s: %s\n",5);
      var_10(LOG_NOTQUIET,pcVar6,pcVar7,pcVar4);
    }
    if (opt.debug != false) {
      var_2("Done saving cookies.\n");
    }
  }
  if (var_23 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_24();
  }
  return;
}


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

void MASKED(undefined8 *param_1,char *param_2)

{
  long lVar1;
  int iVar2;
  FILE *__s;
  undefined8 uVar3;
  int *piVar4;
  char *pcVar5;
  undefined8 uVar6;
  char *pcVar7;
  char *pcVar8;
  long in_FS_OFFSET;
  char *local_68;
  long local_60;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  if (DAT_001774fb != '\0') {
    FUN_0012bddf("Saving cookies to %s.\n");
  }
  DAT_00170728 = time((time_t *)0x0);
  __s = fopen64(param_2,"w");
  if (__s == (FILE *)0x0) {
    piVar4 = __errno_location();
    pcVar5 = strerror(*piVar4);
    uVar3 = FUN_00149289(param_2);
    uVar6 = dcgettext(0,"Cannot open cookies file %s: %s\n",5);
    FUN_0012bc55(1,uVar6,uVar3,pcVar5);
  }
  else {
    fwrite("# HTTP cookie file.\n",1,0x14,__s);
    uVar3 = FUN_0013a826(DAT_00170728);
    __fprintf_chk(__s,1,"# Generated by Wget on %s.\n",uVar3);
    fwrite("# Edit at your own risk.\n\n",1,0x1a,__s);
    FUN_0011c415(*param_1,&local_68);
    while (iVar2 = FUN_0011c42d(&local_68), pcVar5 = local_68, lVar1 = local_60, iVar2 != 0) {
      for (; lVar1 != 0; lVar1 = *(long *)(lVar1 + 0x38)) {
        if ((((*(byte *)(lVar1 + 0x18) & 8) != 0) || (DAT_001775c1 != '\0')) &&
           ((*(long *)(lVar1 + 0x20) == 0 || (DAT_00170728 <= *(long *)(lVar1 + 0x20))))) {
          if ((*(byte *)(lVar1 + 0x18) & 4) == 0) {
            fputc(0x2e,__s);
          }
          fputs(pcVar5,__s);
          if (*(int *)(lVar1 + 8) != -1) {
            __fprintf_chk(__s,1,&DAT_00156147);
          }
          pcVar8 = "FALSE";
          if ((*(byte *)(lVar1 + 0x18) & 2) != 0) {
            pcVar8 = "TRUE";
          }
          pcVar7 = "TRUE";
          if ((*(byte *)(lVar1 + 0x18) & 4) != 0) {
            pcVar7 = "FALSE";
          }
          __fprintf_chk((double)*(long *)(lVar1 + 0x20),__s,1,&DAT_0014a63d,pcVar7,
                        *(undefined8 *)(lVar1 + 0x10),pcVar8,*(undefined8 *)(lVar1 + 0x28),
                        *(undefined8 *)(lVar1 + 0x30));
          iVar2 = ferror(__s);
          if (iVar2 != 0) goto LAB_001114d3;
        }
      }
    }
LAB_001114d3:
    iVar2 = ferror(__s);
    if (iVar2 != 0) {
      piVar4 = __errno_location();
      pcVar5 = strerror(*piVar4);
      uVar3 = FUN_00149289(param_2);
      uVar6 = dcgettext(0,"Error writing to %s: %s\n",5);
      FUN_0012bc55(1,uVar6,uVar3,pcVar5);
    }
    iVar2 = fclose(__s);
    if (iVar2 < 0) {
      piVar4 = __errno_location();
      pcVar5 = strerror(*piVar4);
      uVar3 = FUN_00149289(param_2);
      uVar6 = dcgettext(0,"Error closing %s: %s\n",5);
      FUN_0012bc55(1,uVar6,uVar3,pcVar5);
    }
    if (DAT_001774fb != '\0') {
      FUN_0012bddf("Done saving cookies.\n");
    }
  }
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}

