
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int do_lockfile(char *filename)

{
  int iVar1;
  undefined4 uVar2;
  char *__path;
  char *__path_00;
  size_t sVar3;
  size_t sVar4;
  size_t sVar5;
  char *__filename;
  char *pcVar6;
  char *pcVar7;
  int iVar8;
  void *__ptr;
  ssize_t sVar9;
  char *pcVar10;
  char *pcVar11;
  size_t sVar12;
  size_t sVar13;
  size_t sVar14;
  size_t sVar15;
  int *piVar16;
  uint uVar17;
  size_t sVar18;
  int in_GS_OFFSET;
  stat fileinfo;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  __path = mallocstrcpy((char *)0x0,filename);
  __path_00 = mallocstrcpy((char *)0x0,filename);
  sVar3 = strlen(filename);
  sVar4 = strlen(locking_prefix);
  sVar5 = strlen(locking_suffix);
  sVar18 = sVar3 + 3 + sVar4 + sVar5;
  __filename = (char *)nmalloc(sVar18);
  pcVar10 = locking_suffix;
  pcVar6 = __xpg_basename(__path_00);
  pcVar11 = locking_prefix;
  pcVar7 = dirname(__path);
  __snprintf_chk(__filename,sVar18,1,0xffffffff,"%s/%s%s%s",pcVar7,pcVar11,pcVar6,pcVar10);
  iVar8 = __xstat64(3,__filename,(stat64 *)&fileinfo);
  if (iVar8 == -1) {
LAB_0001b1ea:
    iVar8 = write_lockfile(__filename,filename,false);
    free(__path);
    free(__path_00);
    if (0 < iVar8) goto LAB_0001b21d;
  }
  else {
    iVar8 = open64(__filename,0);
    if (iVar8 < 0) {
      piVar16 = __errno_location();
      pcVar10 = strerror(*piVar16);
      pcVar11 = (char *)dcgettext(0,"Error opening lock file %s: %s",5);
      statusline(MILD,pcVar11,__filename,pcVar10);
    }
    else {
      uVar17 = 0;
      __ptr = nmalloc(0x2000);
      do {
        sVar9 = read(iVar8,(void *)((int)__ptr + uVar17),0x2000 - uVar17);
        uVar17 = uVar17 + sVar9;
        if (sVar9 == 0) break;
      } while (uVar17 < 0x2000);
      close(iVar8);
      if (uVar17 < 0x30) {
        pcVar10 = (char *)dcgettext(0,"Error reading lock file %s: Not enough data read",5);
        statusline(MILD,pcVar10,__filename);
        free(__ptr);
      }
      else {
        strncpy(do_lockfile::lockprog,(char *)((int)__ptr + 2),10);
        uVar2 = *(undefined4 *)((int)__ptr + 0x18);
        strncpy(do_lockfile::lockuser,(char *)((int)__ptr + 0x1c),0x10);
        free(__ptr);
        pcVar10 = (char *)nmalloc(0xb);
        __sprintf_chk(pcVar10,1,0xffffffff,&DAT_0005b4d7,uVar2);
        as_an_at = false;
        pcVar11 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5
                                   );
        iVar8 = *(int *)PTR_COLS_0007af78;
        sVar18 = strlenpt(pcVar11);
        sVar12 = strlenpt(do_lockfile::lockuser);
        sVar13 = strlenpt(do_lockfile::lockprog);
        sVar14 = strlenpt(pcVar10);
        uVar17 = (((iVar8 + 7) - (sVar18 + sVar12)) - sVar13) - sVar14;
        if ((int)uVar17 < 4) {
          pcVar6 = mallocstrcpy((char *)0x0,"_");
        }
        else {
          sVar15 = strlenpt(filename);
          if (uVar17 < sVar15) {
            sVar15 = strlenpt(filename);
            pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +
                                             sVar15,uVar17,false);
            sVar3 = strlen(pcVar7);
            pcVar6 = (char *)nmalloc(sVar3 + 4);
            builtin_strncpy(pcVar6,"...",4);
            strcpy(pcVar6 + 3,pcVar7);
            free(pcVar7);
          }
          else {
            pcVar6 = display_string(filename,0,uVar17,false);
          }
        }
        sVar3 = strlen(pcVar11);
        sVar4 = strlen(pcVar6);
        pcVar7 = (char *)nmalloc(sVar3 + 0x1d + sVar4);
        __sprintf_chk(pcVar7,1,0xffffffff,pcVar11,pcVar6,do_lockfile::lockuser,do_lockfile::lockprog
                      ,pcVar10);
        free(pcVar6);
        free(pcVar10);
        iVar8 = do_yesno_prompt(false,pcVar7);
        free(pcVar7);
        if (0 < iVar8) goto LAB_0001b1ea;
        wipe_statusbar();
      }
    }
    free(__path);
    free(__path_00);
    iVar8 = -1;
  }
  free(__filename);
LAB_0001b21d:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar8;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int FUN_0001af20(char *param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  char *__path;
  char *__path_00;
  size_t sVar3;
  size_t sVar4;
  size_t sVar5;
  char *__filename;
  char *pcVar6;
  char *pcVar7;
  void *pvVar8;
  ssize_t sVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  int iVar13;
  void *__ptr;
  uint uVar14;
  int iVar15;
  char *__s;
  undefined4 uVar16;
  int *piVar17;
  uint uVar18;
  int iVar19;
  int in_GS_OFFSET;
  stat64 local_80;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1af29;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  __path = (char *)FUN_0003dbd0(0,param_1);
  __path_00 = (char *)FUN_0003dbd0(0,param_1);
  sVar3 = strlen(param_1);
  sVar4 = strlen(PTR_DAT_0007b0e4);
  sVar5 = strlen(PTR_DAT_0007b0e0);
  iVar19 = sVar3 + 3 + sVar4 + sVar5;
  __filename = (char *)FUN_0003da70(iVar19);
  puVar1 = PTR_DAT_0007b0e0;
  pcVar6 = __xpg_basename(__path_00);
  puVar2 = PTR_DAT_0007b0e4;
  pcVar7 = dirname(__path);
  __snprintf_chk(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1);
  iVar19 = __xstat64(3,__filename,&local_80);
  if (iVar19 == -1) {
LAB_0001b1ea:
    iVar19 = FUN_0001aac0(__filename,param_1,0);
    free(__path);
    free(__path_00);
    if (0 < iVar19) goto LAB_0001b21d;
  }
  else {
    iVar19 = open64(__filename,0);
    if (iVar19 < 0) {
      piVar17 = __errno_location();
      pcVar6 = strerror(*piVar17);
      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);
      FUN_00040b60(2,uVar16,__filename,pcVar6);
    }
    else {
      uVar18 = 0;
      pvVar8 = (void *)FUN_0003da70(0x2000);
      do {
        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);
        uVar18 = uVar18 + sVar9;
        if (sVar9 == 0) break;
      } while (uVar18 < 0x2000);
      close(iVar19);
      if (uVar18 < 0x30) {
        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);
        FUN_00040b60(2,uVar16,__filename);
        free(pvVar8);
      }
      else {
        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);
        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);
        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);
        free(pvVar8);
        pvVar8 = (void *)FUN_0003da70(0xb);
        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);
        DAT_0007b074 = 0;
        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)
        ;
        iVar19 = *(int *)PTR_COLS_0007af78;
        iVar10 = FUN_0003e0c0(pcVar6);
        iVar11 = FUN_0003e0c0(&DAT_0007b564);
        iVar12 = FUN_0003e0c0(&DAT_0007b578);
        iVar13 = FUN_0003e0c0(pvVar8);
        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;
        if ((int)uVar18 < 4) {
          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);
        }
        else {
          uVar14 = FUN_0003e0c0(param_1);
          if (uVar18 < uVar14) {
            iVar15 = FUN_0003e0c0(param_1);
            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +
                                                                 (iVar10 - (iVar19 + 7)) + iVar15,
                                       uVar18,0);
            sVar3 = strlen(__s);
            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);
            builtin_strncpy(pcVar7,"...",4);
            strcpy(pcVar7 + 3,__s);
            free(__s);
          }
          else {
            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);
          }
        }
        sVar3 = strlen(pcVar6);
        sVar4 = strlen(pcVar7);
        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);
        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);
        free(pcVar7);
        free(pvVar8);
        iVar19 = FUN_0002fb20(0,__ptr);
        free(__ptr);
        if (0 < iVar19) goto LAB_0001b1ea;
        FUN_0003fd80();
      }
    }
    free(__path);
    free(__path_00);
    iVar19 = -1;
  }
  free(__filename);
LAB_0001b21d:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar19;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005a8b0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015680
ADD EBX,0x5fca7
SUB ESP,0xb4
MOV EAX,dword ptr [ESP + 0xc8]
MOV dword ptr [ESP + 0x18],EAX
MOV EDI,EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xa4],EAX
XOR EAX,EAX
PUSH EDI
PUSH 0x0
CALL 0x0003dbd0
MOV dword ptr [ESP + 0x18],EAX
POP EAX
POP EDX
PUSH EDI
PUSH 0x0
CALL 0x0003dbd0
MOV dword ptr [ESP],EDI
MOV dword ptr [ESP + 0x1c],EAX
CALL 0x00013630
LEA EDI,[EBX + 0x514]
POP ECX
MOV dword ptr [ESP + 0x10],EAX
PUSH dword ptr [EDI]
CALL 0x00013630
LEA EBP,[EBX + 0x510]
POP ESI
MOV ESI,EAX
PUSH dword ptr [EBP]
CALL 0x00013630
MOV EDX,dword ptr [ESP + 0x14]
LEA ESI,[EDX + ESI*0x1 + 0x3]
ADD ESI,EAX
MOV dword ptr [ESP],ESI
CALL 0x0003da70
MOV EDX,dword ptr [EBP]
MOV dword ptr [ESP + 0x14],EAX
MOV dword ptr [ESP + 0x24],EDX
POP EBP
PUSH dword ptr [ESP + 0x18]
CALL 0x00013770
MOV EDI,dword ptr [EDI]
MOV EBP,EAX
POP EAX
PUSH dword ptr [ESP + 0x14]
CALL 0x00013590
MOV EDX,dword ptr [ESP + 0x24]
MOV dword ptr [ESP],EDX
PUSH EBP
PUSH EDI
PUSH EAX
LEA EAX,[EBX + 0xfffe08fd]
PUSH EAX
PUSH -0x1
PUSH 0x1
PUSH ESI
MOV ESI,dword ptr [ESP + 0x30]
PUSH ESI
CALL 0x000130d0
ADD ESP,0x2c
LEA EAX,[ESP + 0x40]
PUSH EAX
PUSH ESI
PUSH 0x3
CALL 0x00013a50
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x0001b1ea
SUB ESP,0x8
PUSH 0x0
PUSH ESI
CALL 0x00013130
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JS 0x0001b34d
SUB ESP,0xc
XOR EBP,EBP
PUSH 0x2000
CALL 0x0003da70
ADD ESP,0x10
MOV ESI,EAX
LEA ESI,[ESI]
NOP
MOV EAX,0x2000
SUB ESP,0x4
SUB EAX,EBP
PUSH EAX
LEA EAX,[ESI + EBP*0x1]
PUSH EAX
PUSH EDI
CALL 0x00013150
ADD ESP,0x10
ADD EBP,EAX
TEST EAX,EAX
JZ 0x0001b05e
CMP EBP,0x1fff
JBE 0x0001b038
SUB ESP,0xc
PUSH EDI
CALL 0x00013ab0
ADD ESP,0x10
CMP EBP,0x2f
JBE 0x0001b320
SUB ESP,0x4
LEA EAX,[ESI + 0x2]
PUSH 0xa
PUSH EAX
LEA EAX,[EBX + 0x9a8]
MOV dword ptr [ESP + 0x24],EAX
PUSH EAX
CALL 0x00013750
MOVZX EDI,byte ptr [ESI + 0x1b]
MOVZX EAX,byte ptr [ESI + 0x1a]
ADD ESP,0xc
LEA ECX,[EBX + 0x994]
SHL EDI,0x8
ADD EDI,EAX
MOVZX EAX,byte ptr [ESI + 0x19]
SHL EDI,0x8
ADD EDI,EAX
MOVZX EAX,byte ptr [ESI + 0x18]
PUSH 0x10
SHL EDI,0x8
ADD EDI,EAX
LEA EAX,[ESI + 0x1c]
PUSH EAX
MOV dword ptr [ESP + 0x20],ECX
PUSH ECX
CALL 0x00013750
MOV dword ptr [ESP],ESI
CALL 0x00013200
MOV dword ptr [ESP],0xb
CALL 0x0003da70
MOV dword ptr [ESP],EDI
MOV EBP,EAX
LEA EAX,[EBX + 0xfffe0907]
PUSH EAX
PUSH -0x1
PUSH 0x1
PUSH EBP
CALL 0x00013b30
LEA EAX,[EBX + 0x4a4]
ADD ESP,0x1c
MOV byte ptr [EAX],0x0
LEA EAX,[EBX + 0xfffe0d6c]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000132e0
MOV dword ptr [ESP + 0x2c],EAX
MOV EDX,EAX
MOV EAX,dword ptr [EBX + 0x3a8]
MOV ESI,dword ptr [EAX]
MOV dword ptr [ESP],EDX
CALL 0x0003e0c0
ADD ESI,0x7
MOV dword ptr [ESP + 0x30],EAX
MOV dword ptr [ESP + 0x38],ESI
POP ECX
PUSH dword ptr [ESP + 0x20]
CALL 0x0003e0c0
MOV EDI,EAX
POP EAX
PUSH dword ptr [ESP + 0x24]
CALL 0x0003e0c0
MOV ECX,dword ptr [ESP + 0x30]
MOV dword ptr [ESP],EBP
MOV dword ptr [ESP + 0x34],EAX
LEA EAX,[ECX + EDI*0x1]
SUB ESI,EAX
CALL 0x0003e0c0
SUB ESI,dword ptr [ESP + 0x34]
ADD ESP,0x10
SUB ESI,EAX
CMP ESI,0x3
JG 0x0001b240
SUB ESP,0x8
LEA EAX,[EBX + 0xfffe184f]
PUSH EAX
PUSH 0x0
CALL 0x0003dbd0
ADD ESP,0x10
MOV ESI,EAX
SUB ESP,0xc
PUSH dword ptr [ESP + 0x28]
CALL 0x00013630
MOV dword ptr [ESP],ESI
MOV EDI,EAX
CALL 0x00013630
LEA EAX,[EDI + EAX*0x1 + 0x1d]
MOV dword ptr [ESP],EAX
CALL 0x0003da70
PUSH EBP
PUSH dword ptr [ESP + 0x2c]
MOV EDI,EAX
PUSH dword ptr [ESP + 0x2c]
PUSH ESI
PUSH dword ptr [ESP + 0x3c]
PUSH -0x1
PUSH 0x1
PUSH EAX
CALL 0x00013b30
ADD ESP,0x24
PUSH ESI
CALL 0x00013200
MOV dword ptr [ESP],EBP
CALL 0x00013200
POP ECX
POP ESI
PUSH EDI
PUSH 0x0
CALL 0x0002fb20
MOV dword ptr [ESP],EDI
MOV ESI,EAX
CALL 0x00013200
ADD ESP,0x10
TEST ESI,ESI
JLE 0x0001b2c8
SUB ESP,0x4
PUSH 0x0
PUSH dword ptr [ESP + 0x18]
PUSH dword ptr [ESP + 0x10]
CALL 0x0001aac0
MOV ESI,EAX
POP EAX
PUSH dword ptr [ESP + 0x14]
CALL 0x00013200
POP EDX
PUSH dword ptr [ESP + 0x18]
CALL 0x00013200
ADD ESP,0x10
TEST ESI,ESI
JLE 0x0001b2f0
MOV ECX,dword ptr [ESP + 0x9c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x0001b386
ADD ESP,0xac
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x2c],EAX
SUB ESP,0xc
PUSH dword ptr [ESP + 0x1c]
CALL 0x0003e0c0
ADD ESP,0x10
CMP ESI,EAX
JNC 0x0001b308
SUB ESP,0xc
PUSH dword ptr [ESP + 0x1c]
CALL 0x0003e0c0
PUSH 0x0
PUSH ESI
MOV ECX,dword ptr [ESP + 0x38]
SUB ECX,dword ptr [ESP + 0x40]
MOV EDX,dword ptr [ESP + 0x44]
LEA ECX,[EDI + ECX*0x1 + 0x3]
MOV EDI,dword ptr [ESP + 0x3c]
ADD EDI,ECX
ADD EDX,EDI
ADD EDX,EAX
PUSH EDX
PUSH dword ptr [ESP + 0x2c]
CALL 0x0003fe90
ADD ESP,0x14
PUSH EAX
MOV EDI,EAX
CALL 0x00013630
ADD EAX,0x4
MOV dword ptr [ESP],EAX
CALL 0x0003da70
MOV ESI,EAX
MOV dword ptr [EAX],0x2e2e2e
POP EAX
LEA EAX,[ESI + 0x3]
POP EDX
PUSH EDI
PUSH EAX
CALL 0x000134b0
MOV dword ptr [ESP],EDI
CALL 0x00013200
ADD ESP,0x10
JMP 0x0001b17e
CALL 0x0003fd80
SUB ESP,0xc
PUSH dword ptr [ESP + 0x14]
MOV ESI,0xffffffff
CALL 0x00013200
POP EAX
PUSH dword ptr [ESP + 0x18]
CALL 0x00013200
ADD ESP,0x10
LEA ESI,[ESI]
NOP
SUB ESP,0xc
PUSH dword ptr [ESP + 0x10]
CALL 0x00013200
ADD ESP,0x10
JMP 0x0001b21d
PUSH 0x0
PUSH ESI
PUSH 0x0
PUSH dword ptr [ESP + 0x1c]
CALL 0x0003fe90
ADD ESP,0x10
MOV ESI,EAX
JMP 0x0001b17e
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe0d38]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000132e0
ADD ESP,0xc
PUSH dword ptr [ESP + 0x8]
PUSH EAX
PUSH 0x2
CALL 0x00040b60
MOV dword ptr [ESP],ESI
CALL 0x00013200
POP EAX
JMP 0x0001b2d0
CALL 0x00013710
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00013580
ADD ESP,0xc
MOV ESI,EAX
LEA EAX,[EBX + 0xfffe0d18]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000132e0
PUSH ESI
PUSH dword ptr [ESP + 0x18]
PUSH EAX
PUSH 0x2
CALL 0x00040b60
ADD ESP,0x14
JMP 0x0001b2d0
CALL 0x0005a8b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0001af20(char *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  char *__path;\n  char *__path_00;\n  size_t sVar3;\n  size_t sVar4;\n  size_t sVar5;\n  char *__filename;\n  char *pcVar6;\n  char *pcVar7;\n  void *pvVar8;\n  ssize_t sVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  void *__ptr;\n  uint uVar14;\n  int iVar15;\n  char *__s;\n  undefined4 uVar16;\n  int *piVar17;\n  uint uVar18;\n  int iVar19;\n  int in_GS_OFFSET;\n  stat64 local_80;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1af29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __path = (char *)FUN_0003dbd0(0,param_1);\n  __path_00 = (char *)FUN_0003dbd0(0,param_1);\n  sVar3 = strlen(param_1);\n  sVar4 = strlen(PTR_DAT_0007b0e4);\n  sVar5 = strlen(PTR_DAT_0007b0e0);\n  iVar19 = sVar3 + 3 + sVar4 + sVar5;\n  __filename = (char *)FUN_0003da70(iVar19);\n  puVar1 = PTR_DAT_0007b0e0;\n  pcVar6 = __xpg_basename(__path_00);\n  puVar2 = PTR_DAT_0007b0e4;\n  pcVar7 = dirname(__path);\n  __snprintf_chk(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1);\n  iVar19 = __xstat64(3,__filename,&local_80);\n  if (iVar19 == -1) {\nLAB_0001b1ea:\n    iVar19 = FUN_0001aac0(__filename,param_1,0);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar19) goto LAB_0001b21d;\n  }\n  else {\n    iVar19 = open64(__filename,0);\n    if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar19 = -1;\n  }\n  free(__filename);\nLAB_0001b21d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar19;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005a8b0();\n}\n\n" comment (function_definition "int FUN_0001af20(char *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  char *__path;\n  char *__path_00;\n  size_t sVar3;\n  size_t sVar4;\n  size_t sVar5;\n  char *__filename;\n  char *pcVar6;\n  char *pcVar7;\n  void *pvVar8;\n  ssize_t sVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  void *__ptr;\n  uint uVar14;\n  int iVar15;\n  char *__s;\n  undefined4 uVar16;\n  int *piVar17;\n  uint uVar18;\n  int iVar19;\n  int in_GS_OFFSET;\n  stat64 local_80;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1af29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __path = (char *)FUN_0003dbd0(0,param_1);\n  __path_00 = (char *)FUN_0003dbd0(0,param_1);\n  sVar3 = strlen(param_1);\n  sVar4 = strlen(PTR_DAT_0007b0e4);\n  sVar5 = strlen(PTR_DAT_0007b0e0);\n  iVar19 = sVar3 + 3 + sVar4 + sVar5;\n  __filename = (char *)FUN_0003da70(iVar19);\n  puVar1 = PTR_DAT_0007b0e0;\n  pcVar6 = __xpg_basename(__path_00);\n  puVar2 = PTR_DAT_0007b0e4;\n  pcVar7 = dirname(__path);\n  __snprintf_chk(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1);\n  iVar19 = __xstat64(3,__filename,&local_80);\n  if (iVar19 == -1) {\nLAB_0001b1ea:\n    iVar19 = FUN_0001aac0(__filename,param_1,0);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar19) goto LAB_0001b21d;\n  }\n  else {\n    iVar19 = open64(__filename,0);\n    if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar19 = -1;\n  }\n  free(__filename);\nLAB_0001b21d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar19;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005a8b0();\n}" primitive_type (function_declarator "FUN_0001af20(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  char *__path;\n  char *__path_00;\n  size_t sVar3;\n  size_t sVar4;\n  size_t sVar5;\n  char *__filename;\n  char *pcVar6;\n  char *pcVar7;\n  void *pvVar8;\n  ssize_t sVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  void *__ptr;\n  uint uVar14;\n  int iVar15;\n  char *__s;\n  undefined4 uVar16;\n  int *piVar17;\n  uint uVar18;\n  int iVar19;\n  int in_GS_OFFSET;\n  stat64 local_80;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1af29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __path = (char *)FUN_0003dbd0(0,param_1);\n  __path_00 = (char *)FUN_0003dbd0(0,param_1);\n  sVar3 = strlen(param_1);\n  sVar4 = strlen(PTR_DAT_0007b0e4);\n  sVar5 = strlen(PTR_DAT_0007b0e0);\n  iVar19 = sVar3 + 3 + sVar4 + sVar5;\n  __filename = (char *)FUN_0003da70(iVar19);\n  puVar1 = PTR_DAT_0007b0e0;\n  pcVar6 = __xpg_basename(__path_00);\n  puVar2 = PTR_DAT_0007b0e4;\n  pcVar7 = dirname(__path);\n  __snprintf_chk(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1);\n  iVar19 = __xstat64(3,__filename,&local_80);\n  if (iVar19 == -1) {\nLAB_0001b1ea:\n    iVar19 = FUN_0001aac0(__filename,param_1,0);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar19) goto LAB_0001b21d;\n  }\n  else {\n    iVar19 = open64(__filename,0);\n    if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar19 = -1;\n  }\n  free(__filename);\nLAB_0001b21d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar19;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005a8b0();\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *__path;" primitive_type (pointer_declarator "*__path" * identifier) ;) (declaration "char *__path_00;" primitive_type (pointer_declarator "*__path_00" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "char *__filename;" primitive_type (pointer_declarator "*__filename" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "void *pvVar8;" primitive_type (pointer_declarator "*pvVar8" * identifier) ;) (declaration "ssize_t sVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "int iVar15;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined4 uVar16;" type_identifier identifier ;) (declaration "int *piVar17;" primitive_type (pointer_declarator "*piVar17" * identifier) ;) (declaration "uint uVar18;" type_identifier identifier ;) (declaration "int iVar19;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "stat64 local_80;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1af29;" (assignment_expression "uStack_14 = 0x1af29" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "__path = (char *)FUN_0003dbd0(0,param_1);" (assignment_expression "__path = (char *)FUN_0003dbd0(0,param_1)" identifier = (cast_expression "(char *)FUN_0003dbd0(0,param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003dbd0(0,param_1)" identifier (argument_list "(0,param_1)" ( number_literal , identifier ))))) ;) (expression_statement "__path_00 = (char *)FUN_0003dbd0(0,param_1);" (assignment_expression "__path_00 = (char *)FUN_0003dbd0(0,param_1)" identifier = (cast_expression "(char *)FUN_0003dbd0(0,param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003dbd0(0,param_1)" identifier (argument_list "(0,param_1)" ( number_literal , identifier ))))) ;) (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "sVar4 = strlen(PTR_DAT_0007b0e4);" (assignment_expression "sVar4 = strlen(PTR_DAT_0007b0e4)" identifier = (call_expression "strlen(PTR_DAT_0007b0e4)" identifier (argument_list "(PTR_DAT_0007b0e4)" ( identifier )))) ;) (expression_statement "sVar5 = strlen(PTR_DAT_0007b0e0);" (assignment_expression "sVar5 = strlen(PTR_DAT_0007b0e0)" identifier = (call_expression "strlen(PTR_DAT_0007b0e0)" identifier (argument_list "(PTR_DAT_0007b0e0)" ( identifier )))) ;) (expression_statement "iVar19 = sVar3 + 3 + sVar4 + sVar5;" (assignment_expression "iVar19 = sVar3 + 3 + sVar4 + sVar5" identifier = (binary_expression "sVar3 + 3 + sVar4 + sVar5" (binary_expression "sVar3 + 3 + sVar4" (binary_expression "sVar3 + 3" identifier + number_literal) + identifier) + identifier)) ;) (expression_statement "__filename = (char *)FUN_0003da70(iVar19);" (assignment_expression "__filename = (char *)FUN_0003da70(iVar19)" identifier = (cast_expression "(char *)FUN_0003da70(iVar19)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003da70(iVar19)" identifier (argument_list "(iVar19)" ( identifier ))))) ;) (expression_statement "puVar1 = PTR_DAT_0007b0e0;" (assignment_expression "puVar1 = PTR_DAT_0007b0e0" identifier = identifier) ;) (expression_statement "pcVar6 = __xpg_basename(__path_00);" (assignment_expression "pcVar6 = __xpg_basename(__path_00)" identifier = (call_expression "__xpg_basename(__path_00)" identifier (argument_list "(__path_00)" ( identifier )))) ;) (expression_statement "puVar2 = PTR_DAT_0007b0e4;" (assignment_expression "puVar2 = PTR_DAT_0007b0e4" identifier = identifier) ;) (expression_statement "pcVar7 = dirname(__path);" (assignment_expression "pcVar7 = dirname(__path)" identifier = (call_expression "dirname(__path)" identifier (argument_list "(__path)" ( identifier )))) ;) (expression_statement "__snprintf_chk(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1);" (call_expression "__snprintf_chk(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1)" identifier (argument_list "(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1)" ( identifier , identifier , number_literal , number_literal , (string_literal ""%s/%s%s%s"" " string_content ") , identifier , identifier , identifier , identifier ))) ;) (expression_statement "iVar19 = __xstat64(3,__filename,&local_80);" (assignment_expression "iVar19 = __xstat64(3,__filename,&local_80)" identifier = (call_expression "__xstat64(3,__filename,&local_80)" identifier (argument_list "(3,__filename,&local_80)" ( number_literal , identifier , (pointer_expression "&local_80" & identifier) )))) ;) (if_statement "if (iVar19 == -1) {\nLAB_0001b1ea:\n    iVar19 = FUN_0001aac0(__filename,param_1,0);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar19) goto LAB_0001b21d;\n  }\n  else {\n    iVar19 = open64(__filename,0);\n    if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar19 = -1;\n  }" if (parenthesized_expression "(iVar19 == -1)" ( (binary_expression "iVar19 == -1" identifier == number_literal) )) (compound_statement "{\nLAB_0001b1ea:\n    iVar19 = FUN_0001aac0(__filename,param_1,0);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar19) goto LAB_0001b21d;\n  }" { (labeled_statement "LAB_0001b1ea:\n    iVar19 = FUN_0001aac0(__filename,param_1,0);" statement_identifier : (expression_statement "iVar19 = FUN_0001aac0(__filename,param_1,0);" (assignment_expression "iVar19 = FUN_0001aac0(__filename,param_1,0)" identifier = (call_expression "FUN_0001aac0(__filename,param_1,0)" identifier (argument_list "(__filename,param_1,0)" ( identifier , identifier , number_literal )))) ;)) (expression_statement "free(__path);" (call_expression "free(__path)" identifier (argument_list "(__path)" ( identifier ))) ;) (expression_statement "free(__path_00);" (call_expression "free(__path_00)" identifier (argument_list "(__path_00)" ( identifier ))) ;) (if_statement "if (0 < iVar19) goto LAB_0001b21d;" if (parenthesized_expression "(0 < iVar19)" ( (binary_expression "0 < iVar19" number_literal < identifier) )) (goto_statement "goto LAB_0001b21d;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar19 = open64(__filename,0);\n    if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar19 = -1;\n  }" else (compound_statement "{\n    iVar19 = open64(__filename,0);\n    if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar19 = -1;\n  }" { (expression_statement "iVar19 = open64(__filename,0);" (assignment_expression "iVar19 = open64(__filename,0)" identifier = (call_expression "open64(__filename,0)" identifier (argument_list "(__filename,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }" if (parenthesized_expression "(iVar19 < 0)" ( (binary_expression "iVar19 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }" { (expression_statement "piVar17 = __errno_location();" (assignment_expression "piVar17 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar6 = strerror(*piVar17);" (assignment_expression "pcVar6 = strerror(*piVar17)" identifier = (call_expression "strerror(*piVar17)" identifier (argument_list "(*piVar17)" ( (pointer_expression "*piVar17" * identifier) )))) ;) (expression_statement "uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);" (assignment_expression "uVar16 = dcgettext(0,"Error opening lock file %s: %s",5)" identifier = (call_expression "dcgettext(0,"Error opening lock file %s: %s",5)" identifier (argument_list "(0,"Error opening lock file %s: %s",5)" ( number_literal , (string_literal ""Error opening lock file %s: %s"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00040b60(2,uVar16,__filename,pcVar6);" (call_expression "FUN_00040b60(2,uVar16,__filename,pcVar6)" identifier (argument_list "(2,uVar16,__filename,pcVar6)" ( number_literal , identifier , identifier , identifier ))) ;) }) (else_clause "else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }" else (compound_statement "{\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }" { (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "pvVar8 = (void *)FUN_0003da70(0x2000);" (assignment_expression "pvVar8 = (void *)FUN_0003da70(0x2000)" identifier = (cast_expression "(void *)FUN_0003da70(0x2000)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003da70(0x2000)" identifier (argument_list "(0x2000)" ( number_literal ))))) ;) (do_statement "do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);" do (compound_statement "{\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      }" { (expression_statement "sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);" (assignment_expression "sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18)" identifier = (call_expression "read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18)" identifier (argument_list "(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18)" ( identifier , (cast_expression "(void *)((int)pvVar8 + uVar18)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar8 + uVar18)" ( (binary_expression "(int)pvVar8 + uVar18" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) , (binary_expression "0x2000 - uVar18" number_literal - identifier) )))) ;) (expression_statement "uVar18 = uVar18 + sVar9;" (assignment_expression "uVar18 = uVar18 + sVar9" identifier = (binary_expression "uVar18 + sVar9" identifier + identifier)) ;) (if_statement "if (sVar9 == 0) break;" if (parenthesized_expression "(sVar9 == 0)" ( (binary_expression "sVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "(uVar18 < 0x2000)" ( (binary_expression "uVar18 < 0x2000" identifier < number_literal) )) ;) (expression_statement "close(iVar19);" (call_expression "close(iVar19)" identifier (argument_list "(iVar19)" ( identifier ))) ;) (if_statement "if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }" if (parenthesized_expression "(uVar18 < 0x30)" ( (binary_expression "uVar18 < 0x30" identifier < number_literal) )) (compound_statement "{\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }" { (expression_statement "uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);" (assignment_expression "uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5)" identifier = (call_expression "dcgettext(0,"Error reading lock file %s: Not enough data read",5)" identifier (argument_list "(0,"Error reading lock file %s: Not enough data read",5)" ( number_literal , (string_literal ""Error reading lock file %s: Not enough data read"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00040b60(2,uVar16,__filename);" (call_expression "FUN_00040b60(2,uVar16,__filename)" identifier (argument_list "(2,uVar16,__filename)" ( number_literal , identifier , identifier ))) ;) (expression_statement "free(pvVar8);" (call_expression "free(pvVar8)" identifier (argument_list "(pvVar8)" ( identifier ))) ;) }) (else_clause "else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }" else (compound_statement "{\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }" { (expression_statement "strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);" (call_expression "strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10)" identifier (argument_list "(&DAT_0007b578,(char *)((int)pvVar8 + 2),10)" ( (pointer_expression "&DAT_0007b578" & identifier) , (cast_expression "(char *)((int)pvVar8 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar8 + 2)" ( (binary_expression "(int)pvVar8 + 2" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , number_literal ))) ;) (expression_statement "uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);" (assignment_expression "uVar16 = *(undefined4 *)((int)pvVar8 + 0x18)" identifier = (pointer_expression "*(undefined4 *)((int)pvVar8 + 0x18)" * (cast_expression "(undefined4 *)((int)pvVar8 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar8 + 0x18)" ( (binary_expression "(int)pvVar8 + 0x18" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);" (call_expression "strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10)" identifier (argument_list "(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10)" ( (pointer_expression "&DAT_0007b564" & identifier) , (cast_expression "(char *)((int)pvVar8 + 0x1c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar8 + 0x1c)" ( (binary_expression "(int)pvVar8 + 0x1c" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , number_literal ))) ;) (expression_statement "free(pvVar8);" (call_expression "free(pvVar8)" identifier (argument_list "(pvVar8)" ( identifier ))) ;) (expression_statement "pvVar8 = (void *)FUN_0003da70(0xb);" (assignment_expression "pvVar8 = (void *)FUN_0003da70(0xb)" identifier = (cast_expression "(void *)FUN_0003da70(0xb)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003da70(0xb)" identifier (argument_list "(0xb)" ( number_literal ))))) ;) (expression_statement "__sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);" (call_expression "__sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16)" identifier (argument_list "(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16)" ( identifier , number_literal , number_literal , (pointer_expression "&DAT_0005b4d7" & identifier) , identifier ))) ;) (expression_statement "DAT_0007b074 = 0;" (assignment_expression "DAT_0007b074 = 0" identifier = number_literal) ;) (expression_statement "pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;" (assignment_expression "pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)" identifier = (cast_expression "(char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)" identifier (argument_list "(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)" ( number_literal , (string_literal ""File %s is being edited (by %s with %s, PID %s); continue?"" " string_content ") , number_literal ))))) ;) (expression_statement "iVar19 = *(int *)PTR_COLS_0007af78;" (assignment_expression "iVar19 = *(int *)PTR_COLS_0007af78" identifier = (pointer_expression "*(int *)PTR_COLS_0007af78" * (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar10 = FUN_0003e0c0(pcVar6);" (assignment_expression "iVar10 = FUN_0003e0c0(pcVar6)" identifier = (call_expression "FUN_0003e0c0(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier )))) ;) (expression_statement "iVar11 = FUN_0003e0c0(&DAT_0007b564);" (assignment_expression "iVar11 = FUN_0003e0c0(&DAT_0007b564)" identifier = (call_expression "FUN_0003e0c0(&DAT_0007b564)" identifier (argument_list "(&DAT_0007b564)" ( (pointer_expression "&DAT_0007b564" & identifier) )))) ;) (expression_statement "iVar12 = FUN_0003e0c0(&DAT_0007b578);" (assignment_expression "iVar12 = FUN_0003e0c0(&DAT_0007b578)" identifier = (call_expression "FUN_0003e0c0(&DAT_0007b578)" identifier (argument_list "(&DAT_0007b578)" ( (pointer_expression "&DAT_0007b578" & identifier) )))) ;) (expression_statement "iVar13 = FUN_0003e0c0(pvVar8);" (assignment_expression "iVar13 = FUN_0003e0c0(pvVar8)" identifier = (call_expression "FUN_0003e0c0(pvVar8)" identifier (argument_list "(pvVar8)" ( identifier )))) ;) (expression_statement "uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;" (assignment_expression "uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13" identifier = (binary_expression "(((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13" (parenthesized_expression "(((iVar19 + 7) - (iVar10 + iVar11)) - iVar12)" ( (binary_expression "((iVar19 + 7) - (iVar10 + iVar11)) - iVar12" (parenthesized_expression "((iVar19 + 7) - (iVar10 + iVar11))" ( (binary_expression "(iVar19 + 7) - (iVar10 + iVar11)" (parenthesized_expression "(iVar19 + 7)" ( (binary_expression "iVar19 + 7" identifier + number_literal) )) - (parenthesized_expression "(iVar10 + iVar11)" ( (binary_expression "iVar10 + iVar11" identifier + identifier) ))) )) - identifier) )) - identifier)) ;) (if_statement "if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }" if (parenthesized_expression "((int)uVar18 < 4)" ( (binary_expression "(int)uVar18 < 4" (cast_expression "(int)uVar18" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }" { (expression_statement "pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);" (assignment_expression "pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f)" identifier = (cast_expression "(char *)FUN_0003dbd0(0,&DAT_0005c41f)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003dbd0(0,&DAT_0005c41f)" identifier (argument_list "(0,&DAT_0005c41f)" ( number_literal , (pointer_expression "&DAT_0005c41f" & identifier) ))))) ;) }) (else_clause "else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }" else (compound_statement "{\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }" { (expression_statement "uVar14 = FUN_0003e0c0(param_1);" (assignment_expression "uVar14 = FUN_0003e0c0(param_1)" identifier = (call_expression "FUN_0003e0c0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }" if (parenthesized_expression "(uVar18 < uVar14)" ( (binary_expression "uVar18 < uVar14" identifier < identifier) )) (compound_statement "{\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }" { (expression_statement "iVar15 = FUN_0003e0c0(param_1);" (assignment_expression "iVar15 = FUN_0003e0c0(param_1)" identifier = (call_expression "FUN_0003e0c0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "__s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);" (assignment_expression "__s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0)" identifier = (cast_expression "(char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0)" identifier (argument_list "(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0)" ( identifier , (binary_expression "iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15" (binary_expression "iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7))" (binary_expression "iVar13 + iVar12 + iVar11 + 3" (binary_expression "iVar13 + iVar12 + iVar11" (binary_expression "iVar13 + iVar12" identifier + identifier) + identifier) + number_literal) + (parenthesized_expression "(iVar10 - (iVar19 + 7))" ( (binary_expression "iVar10 - (iVar19 + 7)" identifier - (parenthesized_expression "(iVar19 + 7)" ( (binary_expression "iVar19 + 7" identifier + number_literal) ))) ))) + identifier) , identifier , number_literal ))))) ;) (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "pcVar7 = (char *)FUN_0003da70(sVar3 + 4);" (assignment_expression "pcVar7 = (char *)FUN_0003da70(sVar3 + 4)" identifier = (cast_expression "(char *)FUN_0003da70(sVar3 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003da70(sVar3 + 4)" identifier (argument_list "(sVar3 + 4)" ( (binary_expression "sVar3 + 4" identifier + number_literal) ))))) ;) (expression_statement "builtin_strncpy(pcVar7,"...",4);" (call_expression "builtin_strncpy(pcVar7,"...",4)" identifier (argument_list "(pcVar7,"...",4)" ( identifier , (string_literal ""..."" " string_content ") , number_literal ))) ;) (expression_statement "strcpy(pcVar7 + 3,__s);" (call_expression "strcpy(pcVar7 + 3,__s)" identifier (argument_list "(pcVar7 + 3,__s)" ( (binary_expression "pcVar7 + 3" identifier + number_literal) , identifier ))) ;) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) }) (else_clause "else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }" else (compound_statement "{\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }" { (expression_statement "pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);" (assignment_expression "pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0)" identifier = (cast_expression "(char *)FUN_0003fe90(param_1,0,uVar18,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003fe90(param_1,0,uVar18,0)" identifier (argument_list "(param_1,0,uVar18,0)" ( identifier , number_literal , identifier , number_literal ))))) ;) }))) }))) (expression_statement "sVar3 = strlen(pcVar6);" (assignment_expression "sVar3 = strlen(pcVar6)" identifier = (call_expression "strlen(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier )))) ;) (expression_statement "sVar4 = strlen(pcVar7);" (assignment_expression "sVar4 = strlen(pcVar7)" identifier = (call_expression "strlen(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;) (expression_statement "__ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);" (assignment_expression "__ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4)" identifier = (cast_expression "(void *)FUN_0003da70(sVar3 + 0x1d + sVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003da70(sVar3 + 0x1d + sVar4)" identifier (argument_list "(sVar3 + 0x1d + sVar4)" ( (binary_expression "sVar3 + 0x1d + sVar4" (binary_expression "sVar3 + 0x1d" identifier + number_literal) + identifier) ))))) ;) (expression_statement "__sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);" (call_expression "__sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8)" identifier (argument_list "(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8)" ( identifier , number_literal , number_literal , identifier , identifier , (pointer_expression "&DAT_0007b564" & identifier) , (pointer_expression "&DAT_0007b578" & identifier) , identifier ))) ;) (expression_statement "free(pcVar7);" (call_expression "free(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))) ;) (expression_statement "free(pvVar8);" (call_expression "free(pvVar8)" identifier (argument_list "(pvVar8)" ( identifier ))) ;) (expression_statement "iVar19 = FUN_0002fb20(0,__ptr);" (assignment_expression "iVar19 = FUN_0002fb20(0,__ptr)" identifier = (call_expression "FUN_0002fb20(0,__ptr)" identifier (argument_list "(0,__ptr)" ( number_literal , identifier )))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (if_statement "if (0 < iVar19) goto LAB_0001b1ea;" if (parenthesized_expression "(0 < iVar19)" ( (binary_expression "0 < iVar19" number_literal < identifier) )) (goto_statement "goto LAB_0001b1ea;" goto statement_identifier ;)) (expression_statement "FUN_0003fd80();" (call_expression "FUN_0003fd80()" identifier (argument_list "()" ( ))) ;) }))) }))) (expression_statement "free(__path);" (call_expression "free(__path)" identifier (argument_list "(__path)" ( identifier ))) ;) (expression_statement "free(__path_00);" (call_expression "free(__path_00)" identifier (argument_list "(__path_00)" ( identifier ))) ;) (expression_statement "iVar19 = -1;" (assignment_expression "iVar19 = -1" identifier = number_literal) ;) }))) (expression_statement "free(__filename);" (call_expression "free(__filename)" identifier (argument_list "(__filename)" ( identifier ))) ;) (labeled_statement "LAB_0001b21d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar19;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar19;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar19;\n  }" { (return_statement "return iVar19;" return identifier ;) }))) comment (expression_statement "FUN_0005a8b0();" (call_expression "FUN_0005a8b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint do_lockfile(char *filename)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char *__path;\n  char *__path_00;\n  size_t sVar3;\n  size_t sVar4;\n  size_t sVar5;\n  char *__filename;\n  char *pcVar6;\n  char *pcVar7;\n  int iVar8;\n  void *__ptr;\n  ssize_t sVar9;\n  char *pcVar10;\n  char *pcVar11;\n  size_t sVar12;\n  size_t sVar13;\n  size_t sVar14;\n  size_t sVar15;\n  int *piVar16;\n  uint uVar17;\n  size_t sVar18;\n  int in_GS_OFFSET;\n  stat fileinfo;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  __path = mallocstrcpy((char *)0x0,filename);\n  __path_00 = mallocstrcpy((char *)0x0,filename);\n  sVar3 = strlen(filename);\n  sVar4 = strlen(locking_prefix);\n  sVar5 = strlen(locking_suffix);\n  sVar18 = sVar3 + 3 + sVar4 + sVar5;\n  __filename = (char *)nmalloc(sVar18);\n  pcVar10 = locking_suffix;\n  pcVar6 = __xpg_basename(__path_00);\n  pcVar11 = locking_prefix;\n  pcVar7 = dirname(__path);\n  __snprintf_chk(__filename,sVar18,1,0xffffffff,"%s/%s%s%s",pcVar7,pcVar11,pcVar6,pcVar10);\n  iVar8 = __xstat64(3,__filename,(stat64 *)&fileinfo);\n  if (iVar8 == -1) {\nLAB_0001b1ea:\n    iVar8 = write_lockfile(__filename,filename,false);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar8) goto LAB_0001b21d;\n  }\n  else {\n    iVar8 = open64(__filename,0);\n    if (iVar8 < 0) {\n      piVar16 = __errno_location();\n      pcVar10 = strerror(*piVar16);\n      pcVar11 = (char *)dcgettext(0,"Error opening lock file %s: %s",5);\n      statusline(MILD,pcVar11,__filename,pcVar10);\n    }\n    else {\n      uVar17 = 0;\n      __ptr = nmalloc(0x2000);\n      do {\n        sVar9 = read(iVar8,(void *)((int)__ptr + uVar17),0x2000 - uVar17);\n        uVar17 = uVar17 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar17 < 0x2000);\n      close(iVar8);\n      if (uVar17 < 0x30) {\n        pcVar10 = (char *)dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        statusline(MILD,pcVar10,__filename);\n        free(__ptr);\n      }\n      else {\n        strncpy(do_lockfile::lockprog,(char *)((int)__ptr + 2),10);\n        uVar2 = *(undefined4 *)((int)__ptr + 0x18);\n        strncpy(do_lockfile::lockuser,(char *)((int)__ptr + 0x1c),0x10);\n        free(__ptr);\n        pcVar10 = (char *)nmalloc(0xb);\n        __sprintf_chk(pcVar10,1,0xffffffff,&DAT_0005b4d7,uVar2);\n        as_an_at = false;\n        pcVar11 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5\n                                   );\n        iVar8 = *(int *)PTR_COLS_0007af78;\n        sVar18 = strlenpt(pcVar11);\n        sVar12 = strlenpt(do_lockfile::lockuser);\n        sVar13 = strlenpt(do_lockfile::lockprog);\n        sVar14 = strlenpt(pcVar10);\n        uVar17 = (((iVar8 + 7) - (sVar18 + sVar12)) - sVar13) - sVar14;\n        if ((int)uVar17 < 4) {\n          pcVar6 = mallocstrcpy((char *)0x0,"_");\n        }\n        else {\n          sVar15 = strlenpt(filename);\n          if (uVar17 < sVar15) {\n            sVar15 = strlenpt(filename);\n            pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false);\n            sVar3 = strlen(pcVar7);\n            pcVar6 = (char *)nmalloc(sVar3 + 4);\n            builtin_strncpy(pcVar6,"...",4);\n            strcpy(pcVar6 + 3,pcVar7);\n            free(pcVar7);\n          }\n          else {\n            pcVar6 = display_string(filename,0,uVar17,false);\n          }\n        }\n        sVar3 = strlen(pcVar11);\n        sVar4 = strlen(pcVar6);\n        pcVar7 = (char *)nmalloc(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(pcVar7,1,0xffffffff,pcVar11,pcVar6,do_lockfile::lockuser,do_lockfile::lockprog\n                      ,pcVar10);\n        free(pcVar6);\n        free(pcVar10);\n        iVar8 = do_yesno_prompt(false,pcVar7);\n        free(pcVar7);\n        if (0 < iVar8) goto LAB_0001b1ea;\n        wipe_statusbar();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar8 = -1;\n  }\n  free(__filename);\nLAB_0001b21d:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar8;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int do_lockfile(char *filename)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char *__path;\n  char *__path_00;\n  size_t sVar3;\n  size_t sVar4;\n  size_t sVar5;\n  char *__filename;\n  char *pcVar6;\n  char *pcVar7;\n  int iVar8;\n  void *__ptr;\n  ssize_t sVar9;\n  char *pcVar10;\n  char *pcVar11;\n  size_t sVar12;\n  size_t sVar13;\n  size_t sVar14;\n  size_t sVar15;\n  int *piVar16;\n  uint uVar17;\n  size_t sVar18;\n  int in_GS_OFFSET;\n  stat fileinfo;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  __path = mallocstrcpy((char *)0x0,filename);\n  __path_00 = mallocstrcpy((char *)0x0,filename);\n  sVar3 = strlen(filename);\n  sVar4 = strlen(locking_prefix);\n  sVar5 = strlen(locking_suffix);\n  sVar18 = sVar3 + 3 + sVar4 + sVar5;\n  __filename = (char *)nmalloc(sVar18);\n  pcVar10 = locking_suffix;\n  pcVar6 = __xpg_basename(__path_00);\n  pcVar11 = locking_prefix;\n  pcVar7 = dirname(__path);\n  __snprintf_chk(__filename,sVar18,1,0xffffffff,"%s/%s%s%s",pcVar7,pcVar11,pcVar6,pcVar10);\n  iVar8 = __xstat64(3,__filename,(stat64 *)&fileinfo);\n  if (iVar8 == -1) {\nLAB_0001b1ea:\n    iVar8 = write_lockfile(__filename,filename,false);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar8) goto LAB_0001b21d;\n  }\n  else {\n    iVar8 = open64(__filename,0);\n    if (iVar8 < 0) {\n      piVar16 = __errno_location();\n      pcVar10 = strerror(*piVar16);\n      pcVar11 = (char *)dcgettext(0,"Error opening lock file %s: %s",5);\n      statusline(MILD,pcVar11,__filename,pcVar10);\n    }\n    else {\n      uVar17 = 0;\n      __ptr = nmalloc(0x2000);\n      do {\n        sVar9 = read(iVar8,(void *)((int)__ptr + uVar17),0x2000 - uVar17);\n        uVar17 = uVar17 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar17 < 0x2000);\n      close(iVar8);\n      if (uVar17 < 0x30) {\n        pcVar10 = (char *)dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        statusline(MILD,pcVar10,__filename);\n        free(__ptr);\n      }\n      else {\n        strncpy(do_lockfile::lockprog,(char *)((int)__ptr + 2),10);\n        uVar2 = *(undefined4 *)((int)__ptr + 0x18);\n        strncpy(do_lockfile::lockuser,(char *)((int)__ptr + 0x1c),0x10);\n        free(__ptr);\n        pcVar10 = (char *)nmalloc(0xb);\n        __sprintf_chk(pcVar10,1,0xffffffff,&DAT_0005b4d7,uVar2);\n        as_an_at = false;\n        pcVar11 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5\n                                   );\n        iVar8 = *(int *)PTR_COLS_0007af78;\n        sVar18 = strlenpt(pcVar11);\n        sVar12 = strlenpt(do_lockfile::lockuser);\n        sVar13 = strlenpt(do_lockfile::lockprog);\n        sVar14 = strlenpt(pcVar10);\n        uVar17 = (((iVar8 + 7) - (sVar18 + sVar12)) - sVar13) - sVar14;\n        if ((int)uVar17 < 4) {\n          pcVar6 = mallocstrcpy((char *)0x0,"_");\n        }\n        else {\n          sVar15 = strlenpt(filename);\n          if (uVar17 < sVar15) {\n            sVar15 = strlenpt(filename);\n            pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false);\n            sVar3 = strlen(pcVar7);\n            pcVar6 = (char *)nmalloc(sVar3 + 4);\n            builtin_strncpy(pcVar6,"...",4);\n            strcpy(pcVar6 + 3,pcVar7);\n            free(pcVar7);\n          }\n          else {\n            pcVar6 = display_string(filename,0,uVar17,false);\n          }\n        }\n        sVar3 = strlen(pcVar11);\n        sVar4 = strlen(pcVar6);\n        pcVar7 = (char *)nmalloc(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(pcVar7,1,0xffffffff,pcVar11,pcVar6,do_lockfile::lockuser,do_lockfile::lockprog\n                      ,pcVar10);\n        free(pcVar6);\n        free(pcVar10);\n        iVar8 = do_yesno_prompt(false,pcVar7);\n        free(pcVar7);\n        if (0 < iVar8) goto LAB_0001b1ea;\n        wipe_statusbar();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar8 = -1;\n  }\n  free(__filename);\nLAB_0001b21d:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar8;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "do_lockfile(char *filename)" identifier (parameter_list "(char *filename)" ( (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  char *__path;\n  char *__path_00;\n  size_t sVar3;\n  size_t sVar4;\n  size_t sVar5;\n  char *__filename;\n  char *pcVar6;\n  char *pcVar7;\n  int iVar8;\n  void *__ptr;\n  ssize_t sVar9;\n  char *pcVar10;\n  char *pcVar11;\n  size_t sVar12;\n  size_t sVar13;\n  size_t sVar14;\n  size_t sVar15;\n  int *piVar16;\n  uint uVar17;\n  size_t sVar18;\n  int in_GS_OFFSET;\n  stat fileinfo;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  __path = mallocstrcpy((char *)0x0,filename);\n  __path_00 = mallocstrcpy((char *)0x0,filename);\n  sVar3 = strlen(filename);\n  sVar4 = strlen(locking_prefix);\n  sVar5 = strlen(locking_suffix);\n  sVar18 = sVar3 + 3 + sVar4 + sVar5;\n  __filename = (char *)nmalloc(sVar18);\n  pcVar10 = locking_suffix;\n  pcVar6 = __xpg_basename(__path_00);\n  pcVar11 = locking_prefix;\n  pcVar7 = dirname(__path);\n  __snprintf_chk(__filename,sVar18,1,0xffffffff,"%s/%s%s%s",pcVar7,pcVar11,pcVar6,pcVar10);\n  iVar8 = __xstat64(3,__filename,(stat64 *)&fileinfo);\n  if (iVar8 == -1) {\nLAB_0001b1ea:\n    iVar8 = write_lockfile(__filename,filename,false);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar8) goto LAB_0001b21d;\n  }\n  else {\n    iVar8 = open64(__filename,0);\n    if (iVar8 < 0) {\n      piVar16 = __errno_location();\n      pcVar10 = strerror(*piVar16);\n      pcVar11 = (char *)dcgettext(0,"Error opening lock file %s: %s",5);\n      statusline(MILD,pcVar11,__filename,pcVar10);\n    }\n    else {\n      uVar17 = 0;\n      __ptr = nmalloc(0x2000);\n      do {\n        sVar9 = read(iVar8,(void *)((int)__ptr + uVar17),0x2000 - uVar17);\n        uVar17 = uVar17 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar17 < 0x2000);\n      close(iVar8);\n      if (uVar17 < 0x30) {\n        pcVar10 = (char *)dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        statusline(MILD,pcVar10,__filename);\n        free(__ptr);\n      }\n      else {\n        strncpy(do_lockfile::lockprog,(char *)((int)__ptr + 2),10);\n        uVar2 = *(undefined4 *)((int)__ptr + 0x18);\n        strncpy(do_lockfile::lockuser,(char *)((int)__ptr + 0x1c),0x10);\n        free(__ptr);\n        pcVar10 = (char *)nmalloc(0xb);\n        __sprintf_chk(pcVar10,1,0xffffffff,&DAT_0005b4d7,uVar2);\n        as_an_at = false;\n        pcVar11 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5\n                                   );\n        iVar8 = *(int *)PTR_COLS_0007af78;\n        sVar18 = strlenpt(pcVar11);\n        sVar12 = strlenpt(do_lockfile::lockuser);\n        sVar13 = strlenpt(do_lockfile::lockprog);\n        sVar14 = strlenpt(pcVar10);\n        uVar17 = (((iVar8 + 7) - (sVar18 + sVar12)) - sVar13) - sVar14;\n        if ((int)uVar17 < 4) {\n          pcVar6 = mallocstrcpy((char *)0x0,"_");\n        }\n        else {\n          sVar15 = strlenpt(filename);\n          if (uVar17 < sVar15) {\n            sVar15 = strlenpt(filename);\n            pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false);\n            sVar3 = strlen(pcVar7);\n            pcVar6 = (char *)nmalloc(sVar3 + 4);\n            builtin_strncpy(pcVar6,"...",4);\n            strcpy(pcVar6 + 3,pcVar7);\n            free(pcVar7);\n          }\n          else {\n            pcVar6 = display_string(filename,0,uVar17,false);\n          }\n        }\n        sVar3 = strlen(pcVar11);\n        sVar4 = strlen(pcVar6);\n        pcVar7 = (char *)nmalloc(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(pcVar7,1,0xffffffff,pcVar11,pcVar6,do_lockfile::lockuser,do_lockfile::lockprog\n                      ,pcVar10);\n        free(pcVar6);\n        free(pcVar10);\n        iVar8 = do_yesno_prompt(false,pcVar7);\n        free(pcVar7);\n        if (0 < iVar8) goto LAB_0001b1ea;\n        wipe_statusbar();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar8 = -1;\n  }\n  free(__filename);\nLAB_0001b21d:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar8;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char *__path;" primitive_type (pointer_declarator "*__path" * identifier) ;) (declaration "char *__path_00;" primitive_type (pointer_declarator "*__path_00" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "char *__filename;" primitive_type (pointer_declarator "*__filename" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "ssize_t sVar9;" primitive_type identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (declaration "size_t sVar12;" primitive_type identifier ;) (declaration "size_t sVar13;" primitive_type identifier ;) (declaration "size_t sVar14;" primitive_type identifier ;) (declaration "size_t sVar15;" primitive_type identifier ;) (declaration "int *piVar16;" primitive_type (pointer_declarator "*piVar16" * identifier) ;) (declaration "uint uVar17;" type_identifier identifier ;) (declaration "size_t sVar18;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "stat fileinfo;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "__path = mallocstrcpy((char *)0x0,filename);" (assignment_expression "__path = mallocstrcpy((char *)0x0,filename)" identifier = (call_expression "mallocstrcpy((char *)0x0,filename)" identifier (argument_list "((char *)0x0,filename)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier )))) ;) (expression_statement "__path_00 = mallocstrcpy((char *)0x0,filename);" (assignment_expression "__path_00 = mallocstrcpy((char *)0x0,filename)" identifier = (call_expression "mallocstrcpy((char *)0x0,filename)" identifier (argument_list "((char *)0x0,filename)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier )))) ;) (expression_statement "sVar3 = strlen(filename);" (assignment_expression "sVar3 = strlen(filename)" identifier = (call_expression "strlen(filename)" identifier (argument_list "(filename)" ( identifier )))) ;) (expression_statement "sVar4 = strlen(locking_prefix);" (assignment_expression "sVar4 = strlen(locking_prefix)" identifier = (call_expression "strlen(locking_prefix)" identifier (argument_list "(locking_prefix)" ( identifier )))) ;) (expression_statement "sVar5 = strlen(locking_suffix);" (assignment_expression "sVar5 = strlen(locking_suffix)" identifier = (call_expression "strlen(locking_suffix)" identifier (argument_list "(locking_suffix)" ( identifier )))) ;) (expression_statement "sVar18 = sVar3 + 3 + sVar4 + sVar5;" (assignment_expression "sVar18 = sVar3 + 3 + sVar4 + sVar5" identifier = (binary_expression "sVar3 + 3 + sVar4 + sVar5" (binary_expression "sVar3 + 3 + sVar4" (binary_expression "sVar3 + 3" identifier + number_literal) + identifier) + identifier)) ;) (expression_statement "__filename = (char *)nmalloc(sVar18);" (assignment_expression "__filename = (char *)nmalloc(sVar18)" identifier = (cast_expression "(char *)nmalloc(sVar18)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "nmalloc(sVar18)" identifier (argument_list "(sVar18)" ( identifier ))))) ;) (expression_statement "pcVar10 = locking_suffix;" (assignment_expression "pcVar10 = locking_suffix" identifier = identifier) ;) (expression_statement "pcVar6 = __xpg_basename(__path_00);" (assignment_expression "pcVar6 = __xpg_basename(__path_00)" identifier = (call_expression "__xpg_basename(__path_00)" identifier (argument_list "(__path_00)" ( identifier )))) ;) (expression_statement "pcVar11 = locking_prefix;" (assignment_expression "pcVar11 = locking_prefix" identifier = identifier) ;) (expression_statement "pcVar7 = dirname(__path);" (assignment_expression "pcVar7 = dirname(__path)" identifier = (call_expression "dirname(__path)" identifier (argument_list "(__path)" ( identifier )))) ;) (expression_statement "__snprintf_chk(__filename,sVar18,1,0xffffffff,"%s/%s%s%s",pcVar7,pcVar11,pcVar6,pcVar10);" (call_expression "__snprintf_chk(__filename,sVar18,1,0xffffffff,"%s/%s%s%s",pcVar7,pcVar11,pcVar6,pcVar10)" identifier (argument_list "(__filename,sVar18,1,0xffffffff,"%s/%s%s%s",pcVar7,pcVar11,pcVar6,pcVar10)" ( identifier , identifier , number_literal , number_literal , (string_literal ""%s/%s%s%s"" " string_content ") , identifier , identifier , identifier , identifier ))) ;) (expression_statement "iVar8 = __xstat64(3,__filename,(stat64 *)&fileinfo);" (assignment_expression "iVar8 = __xstat64(3,__filename,(stat64 *)&fileinfo)" identifier = (call_expression "__xstat64(3,__filename,(stat64 *)&fileinfo)" identifier (argument_list "(3,__filename,(stat64 *)&fileinfo)" ( number_literal , identifier , (cast_expression "(stat64 *)&fileinfo" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&fileinfo" & identifier)) )))) ;) (if_statement "if (iVar8 == -1) {\nLAB_0001b1ea:\n    iVar8 = write_lockfile(__filename,filename,false);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar8) goto LAB_0001b21d;\n  }\n  else {\n    iVar8 = open64(__filename,0);\n    if (iVar8 < 0) {\n      piVar16 = __errno_location();\n      pcVar10 = strerror(*piVar16);\n      pcVar11 = (char *)dcgettext(0,"Error opening lock file %s: %s",5);\n      statusline(MILD,pcVar11,__filename,pcVar10);\n    }\n    else {\n      uVar17 = 0;\n      __ptr = nmalloc(0x2000);\n      do {\n        sVar9 = read(iVar8,(void *)((int)__ptr + uVar17),0x2000 - uVar17);\n        uVar17 = uVar17 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar17 < 0x2000);\n      close(iVar8);\n      if (uVar17 < 0x30) {\n        pcVar10 = (char *)dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        statusline(MILD,pcVar10,__filename);\n        free(__ptr);\n      }\n      else {\n        strncpy(do_lockfile::lockprog,(char *)((int)__ptr + 2),10);\n        uVar2 = *(undefined4 *)((int)__ptr + 0x18);\n        strncpy(do_lockfile::lockuser,(char *)((int)__ptr + 0x1c),0x10);\n        free(__ptr);\n        pcVar10 = (char *)nmalloc(0xb);\n        __sprintf_chk(pcVar10,1,0xffffffff,&DAT_0005b4d7,uVar2);\n        as_an_at = false;\n        pcVar11 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5\n                                   );\n        iVar8 = *(int *)PTR_COLS_0007af78;\n        sVar18 = strlenpt(pcVar11);\n        sVar12 = strlenpt(do_lockfile::lockuser);\n        sVar13 = strlenpt(do_lockfile::lockprog);\n        sVar14 = strlenpt(pcVar10);\n        uVar17 = (((iVar8 + 7) - (sVar18 + sVar12)) - sVar13) - sVar14;\n        if ((int)uVar17 < 4) {\n          pcVar6 = mallocstrcpy((char *)0x0,"_");\n        }\n        else {\n          sVar15 = strlenpt(filename);\n          if (uVar17 < sVar15) {\n            sVar15 = strlenpt(filename);\n            pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false);\n            sVar3 = strlen(pcVar7);\n            pcVar6 = (char *)nmalloc(sVar3 + 4);\n            builtin_strncpy(pcVar6,"...",4);\n            strcpy(pcVar6 + 3,pcVar7);\n            free(pcVar7);\n          }\n          else {\n            pcVar6 = display_string(filename,0,uVar17,false);\n          }\n        }\n        sVar3 = strlen(pcVar11);\n        sVar4 = strlen(pcVar6);\n        pcVar7 = (char *)nmalloc(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(pcVar7,1,0xffffffff,pcVar11,pcVar6,do_lockfile::lockuser,do_lockfile::lockprog\n                      ,pcVar10);\n        free(pcVar6);\n        free(pcVar10);\n        iVar8 = do_yesno_prompt(false,pcVar7);\n        free(pcVar7);\n        if (0 < iVar8) goto LAB_0001b1ea;\n        wipe_statusbar();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar8 = -1;\n  }" if (parenthesized_expression "(iVar8 == -1)" ( (binary_expression "iVar8 == -1" identifier == number_literal) )) (compound_statement "{\nLAB_0001b1ea:\n    iVar8 = write_lockfile(__filename,filename,false);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar8) goto LAB_0001b21d;\n  }" { (labeled_statement "LAB_0001b1ea:\n    iVar8 = write_lockfile(__filename,filename,false);" statement_identifier : (expression_statement "iVar8 = write_lockfile(__filename,filename,false);" (assignment_expression "iVar8 = write_lockfile(__filename,filename,false)" identifier = (call_expression "write_lockfile(__filename,filename,false)" identifier (argument_list "(__filename,filename,false)" ( identifier , identifier , false )))) ;)) (expression_statement "free(__path);" (call_expression "free(__path)" identifier (argument_list "(__path)" ( identifier ))) ;) (expression_statement "free(__path_00);" (call_expression "free(__path_00)" identifier (argument_list "(__path_00)" ( identifier ))) ;) (if_statement "if (0 < iVar8) goto LAB_0001b21d;" if (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) )) (goto_statement "goto LAB_0001b21d;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar8 = open64(__filename,0);\n    if (iVar8 < 0) {\n      piVar16 = __errno_location();\n      pcVar10 = strerror(*piVar16);\n      pcVar11 = (char *)dcgettext(0,"Error opening lock file %s: %s",5);\n      statusline(MILD,pcVar11,__filename,pcVar10);\n    }\n    else {\n      uVar17 = 0;\n      __ptr = nmalloc(0x2000);\n      do {\n        sVar9 = read(iVar8,(void *)((int)__ptr + uVar17),0x2000 - uVar17);\n        uVar17 = uVar17 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar17 < 0x2000);\n      close(iVar8);\n      if (uVar17 < 0x30) {\n        pcVar10 = (char *)dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        statusline(MILD,pcVar10,__filename);\n        free(__ptr);\n      }\n      else {\n        strncpy(do_lockfile::lockprog,(char *)((int)__ptr + 2),10);\n        uVar2 = *(undefined4 *)((int)__ptr + 0x18);\n        strncpy(do_lockfile::lockuser,(char *)((int)__ptr + 0x1c),0x10);\n        free(__ptr);\n        pcVar10 = (char *)nmalloc(0xb);\n        __sprintf_chk(pcVar10,1,0xffffffff,&DAT_0005b4d7,uVar2);\n        as_an_at = false;\n        pcVar11 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5\n                                   );\n        iVar8 = *(int *)PTR_COLS_0007af78;\n        sVar18 = strlenpt(pcVar11);\n        sVar12 = strlenpt(do_lockfile::lockuser);\n        sVar13 = strlenpt(do_lockfile::lockprog);\n        sVar14 = strlenpt(pcVar10);\n        uVar17 = (((iVar8 + 7) - (sVar18 + sVar12)) - sVar13) - sVar14;\n        if ((int)uVar17 < 4) {\n          pcVar6 = mallocstrcpy((char *)0x0,"_");\n        }\n        else {\n          sVar15 = strlenpt(filename);\n          if (uVar17 < sVar15) {\n            sVar15 = strlenpt(filename);\n            pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false);\n            sVar3 = strlen(pcVar7);\n            pcVar6 = (char *)nmalloc(sVar3 + 4);\n            builtin_strncpy(pcVar6,"...",4);\n            strcpy(pcVar6 + 3,pcVar7);\n            free(pcVar7);\n          }\n          else {\n            pcVar6 = display_string(filename,0,uVar17,false);\n          }\n        }\n        sVar3 = strlen(pcVar11);\n        sVar4 = strlen(pcVar6);\n        pcVar7 = (char *)nmalloc(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(pcVar7,1,0xffffffff,pcVar11,pcVar6,do_lockfile::lockuser,do_lockfile::lockprog\n                      ,pcVar10);\n        free(pcVar6);\n        free(pcVar10);\n        iVar8 = do_yesno_prompt(false,pcVar7);\n        free(pcVar7);\n        if (0 < iVar8) goto LAB_0001b1ea;\n        wipe_statusbar();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar8 = -1;\n  }" else (compound_statement "{\n    iVar8 = open64(__filename,0);\n    if (iVar8 < 0) {\n      piVar16 = __errno_location();\n      pcVar10 = strerror(*piVar16);\n      pcVar11 = (char *)dcgettext(0,"Error opening lock file %s: %s",5);\n      statusline(MILD,pcVar11,__filename,pcVar10);\n    }\n    else {\n      uVar17 = 0;\n      __ptr = nmalloc(0x2000);\n      do {\n        sVar9 = read(iVar8,(void *)((int)__ptr + uVar17),0x2000 - uVar17);\n        uVar17 = uVar17 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar17 < 0x2000);\n      close(iVar8);\n      if (uVar17 < 0x30) {\n        pcVar10 = (char *)dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        statusline(MILD,pcVar10,__filename);\n        free(__ptr);\n      }\n      else {\n        strncpy(do_lockfile::lockprog,(char *)((int)__ptr + 2),10);\n        uVar2 = *(undefined4 *)((int)__ptr + 0x18);\n        strncpy(do_lockfile::lockuser,(char *)((int)__ptr + 0x1c),0x10);\n        free(__ptr);\n        pcVar10 = (char *)nmalloc(0xb);\n        __sprintf_chk(pcVar10,1,0xffffffff,&DAT_0005b4d7,uVar2);\n        as_an_at = false;\n        pcVar11 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5\n                                   );\n        iVar8 = *(int *)PTR_COLS_0007af78;\n        sVar18 = strlenpt(pcVar11);\n        sVar12 = strlenpt(do_lockfile::lockuser);\n        sVar13 = strlenpt(do_lockfile::lockprog);\n        sVar14 = strlenpt(pcVar10);\n        uVar17 = (((iVar8 + 7) - (sVar18 + sVar12)) - sVar13) - sVar14;\n        if ((int)uVar17 < 4) {\n          pcVar6 = mallocstrcpy((char *)0x0,"_");\n        }\n        else {\n          sVar15 = strlenpt(filename);\n          if (uVar17 < sVar15) {\n            sVar15 = strlenpt(filename);\n            pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false);\n            sVar3 = strlen(pcVar7);\n            pcVar6 = (char *)nmalloc(sVar3 + 4);\n            builtin_strncpy(pcVar6,"...",4);\n            strcpy(pcVar6 + 3,pcVar7);\n            free(pcVar7);\n          }\n          else {\n            pcVar6 = display_string(filename,0,uVar17,false);\n          }\n        }\n        sVar3 = strlen(pcVar11);\n        sVar4 = strlen(pcVar6);\n        pcVar7 = (char *)nmalloc(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(pcVar7,1,0xffffffff,pcVar11,pcVar6,do_lockfile::lockuser,do_lockfile::lockprog\n                      ,pcVar10);\n        free(pcVar6);\n        free(pcVar10);\n        iVar8 = do_yesno_prompt(false,pcVar7);\n        free(pcVar7);\n        if (0 < iVar8) goto LAB_0001b1ea;\n        wipe_statusbar();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar8 = -1;\n  }" { (expression_statement "iVar8 = open64(__filename,0);" (assignment_expression "iVar8 = open64(__filename,0)" identifier = (call_expression "open64(__filename,0)" identifier (argument_list "(__filename,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar8 < 0) {\n      piVar16 = __errno_location();\n      pcVar10 = strerror(*piVar16);\n      pcVar11 = (char *)dcgettext(0,"Error opening lock file %s: %s",5);\n      statusline(MILD,pcVar11,__filename,pcVar10);\n    }\n    else {\n      uVar17 = 0;\n      __ptr = nmalloc(0x2000);\n      do {\n        sVar9 = read(iVar8,(void *)((int)__ptr + uVar17),0x2000 - uVar17);\n        uVar17 = uVar17 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar17 < 0x2000);\n      close(iVar8);\n      if (uVar17 < 0x30) {\n        pcVar10 = (char *)dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        statusline(MILD,pcVar10,__filename);\n        free(__ptr);\n      }\n      else {\n        strncpy(do_lockfile::lockprog,(char *)((int)__ptr + 2),10);\n        uVar2 = *(undefined4 *)((int)__ptr + 0x18);\n        strncpy(do_lockfile::lockuser,(char *)((int)__ptr + 0x1c),0x10);\n        free(__ptr);\n        pcVar10 = (char *)nmalloc(0xb);\n        __sprintf_chk(pcVar10,1,0xffffffff,&DAT_0005b4d7,uVar2);\n        as_an_at = false;\n        pcVar11 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5\n                                   );\n        iVar8 = *(int *)PTR_COLS_0007af78;\n        sVar18 = strlenpt(pcVar11);\n        sVar12 = strlenpt(do_lockfile::lockuser);\n        sVar13 = strlenpt(do_lockfile::lockprog);\n        sVar14 = strlenpt(pcVar10);\n        uVar17 = (((iVar8 + 7) - (sVar18 + sVar12)) - sVar13) - sVar14;\n        if ((int)uVar17 < 4) {\n          pcVar6 = mallocstrcpy((char *)0x0,"_");\n        }\n        else {\n          sVar15 = strlenpt(filename);\n          if (uVar17 < sVar15) {\n            sVar15 = strlenpt(filename);\n            pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false);\n            sVar3 = strlen(pcVar7);\n            pcVar6 = (char *)nmalloc(sVar3 + 4);\n            builtin_strncpy(pcVar6,"...",4);\n            strcpy(pcVar6 + 3,pcVar7);\n            free(pcVar7);\n          }\n          else {\n            pcVar6 = display_string(filename,0,uVar17,false);\n          }\n        }\n        sVar3 = strlen(pcVar11);\n        sVar4 = strlen(pcVar6);\n        pcVar7 = (char *)nmalloc(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(pcVar7,1,0xffffffff,pcVar11,pcVar6,do_lockfile::lockuser,do_lockfile::lockprog\n                      ,pcVar10);\n        free(pcVar6);\n        free(pcVar10);\n        iVar8 = do_yesno_prompt(false,pcVar7);\n        free(pcVar7);\n        if (0 < iVar8) goto LAB_0001b1ea;\n        wipe_statusbar();\n      }\n    }" if (parenthesized_expression "(iVar8 < 0)" ( (binary_expression "iVar8 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar16 = __errno_location();\n      pcVar10 = strerror(*piVar16);\n      pcVar11 = (char *)dcgettext(0,"Error opening lock file %s: %s",5);\n      statusline(MILD,pcVar11,__filename,pcVar10);\n    }" { (expression_statement "piVar16 = __errno_location();" (assignment_expression "piVar16 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar10 = strerror(*piVar16);" (assignment_expression "pcVar10 = strerror(*piVar16)" identifier = (call_expression "strerror(*piVar16)" identifier (argument_list "(*piVar16)" ( (pointer_expression "*piVar16" * identifier) )))) ;) (expression_statement "pcVar11 = (char *)dcgettext(0,"Error opening lock file %s: %s",5);" (assignment_expression "pcVar11 = (char *)dcgettext(0,"Error opening lock file %s: %s",5)" identifier = (cast_expression "(char *)dcgettext(0,"Error opening lock file %s: %s",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Error opening lock file %s: %s",5)" identifier (argument_list "(0,"Error opening lock file %s: %s",5)" ( number_literal , (string_literal ""Error opening lock file %s: %s"" " string_content ") , number_literal ))))) ;) (expression_statement "statusline(MILD,pcVar11,__filename,pcVar10);" (call_expression "statusline(MILD,pcVar11,__filename,pcVar10)" identifier (argument_list "(MILD,pcVar11,__filename,pcVar10)" ( identifier , identifier , identifier , identifier ))) ;) }) (else_clause "else {\n      uVar17 = 0;\n      __ptr = nmalloc(0x2000);\n      do {\n        sVar9 = read(iVar8,(void *)((int)__ptr + uVar17),0x2000 - uVar17);\n        uVar17 = uVar17 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar17 < 0x2000);\n      close(iVar8);\n      if (uVar17 < 0x30) {\n        pcVar10 = (char *)dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        statusline(MILD,pcVar10,__filename);\n        free(__ptr);\n      }\n      else {\n        strncpy(do_lockfile::lockprog,(char *)((int)__ptr + 2),10);\n        uVar2 = *(undefined4 *)((int)__ptr + 0x18);\n        strncpy(do_lockfile::lockuser,(char *)((int)__ptr + 0x1c),0x10);\n        free(__ptr);\n        pcVar10 = (char *)nmalloc(0xb);\n        __sprintf_chk(pcVar10,1,0xffffffff,&DAT_0005b4d7,uVar2);\n        as_an_at = false;\n        pcVar11 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5\n                                   );\n        iVar8 = *(int *)PTR_COLS_0007af78;\n        sVar18 = strlenpt(pcVar11);\n        sVar12 = strlenpt(do_lockfile::lockuser);\n        sVar13 = strlenpt(do_lockfile::lockprog);\n        sVar14 = strlenpt(pcVar10);\n        uVar17 = (((iVar8 + 7) - (sVar18 + sVar12)) - sVar13) - sVar14;\n        if ((int)uVar17 < 4) {\n          pcVar6 = mallocstrcpy((char *)0x0,"_");\n        }\n        else {\n          sVar15 = strlenpt(filename);\n          if (uVar17 < sVar15) {\n            sVar15 = strlenpt(filename);\n            pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false);\n            sVar3 = strlen(pcVar7);\n            pcVar6 = (char *)nmalloc(sVar3 + 4);\n            builtin_strncpy(pcVar6,"...",4);\n            strcpy(pcVar6 + 3,pcVar7);\n            free(pcVar7);\n          }\n          else {\n            pcVar6 = display_string(filename,0,uVar17,false);\n          }\n        }\n        sVar3 = strlen(pcVar11);\n        sVar4 = strlen(pcVar6);\n        pcVar7 = (char *)nmalloc(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(pcVar7,1,0xffffffff,pcVar11,pcVar6,do_lockfile::lockuser,do_lockfile::lockprog\n                      ,pcVar10);\n        free(pcVar6);\n        free(pcVar10);\n        iVar8 = do_yesno_prompt(false,pcVar7);\n        free(pcVar7);\n        if (0 < iVar8) goto LAB_0001b1ea;\n        wipe_statusbar();\n      }\n    }" else (compound_statement "{\n      uVar17 = 0;\n      __ptr = nmalloc(0x2000);\n      do {\n        sVar9 = read(iVar8,(void *)((int)__ptr + uVar17),0x2000 - uVar17);\n        uVar17 = uVar17 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar17 < 0x2000);\n      close(iVar8);\n      if (uVar17 < 0x30) {\n        pcVar10 = (char *)dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        statusline(MILD,pcVar10,__filename);\n        free(__ptr);\n      }\n      else {\n        strncpy(do_lockfile::lockprog,(char *)((int)__ptr + 2),10);\n        uVar2 = *(undefined4 *)((int)__ptr + 0x18);\n        strncpy(do_lockfile::lockuser,(char *)((int)__ptr + 0x1c),0x10);\n        free(__ptr);\n        pcVar10 = (char *)nmalloc(0xb);\n        __sprintf_chk(pcVar10,1,0xffffffff,&DAT_0005b4d7,uVar2);\n        as_an_at = false;\n        pcVar11 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5\n                                   );\n        iVar8 = *(int *)PTR_COLS_0007af78;\n        sVar18 = strlenpt(pcVar11);\n        sVar12 = strlenpt(do_lockfile::lockuser);\n        sVar13 = strlenpt(do_lockfile::lockprog);\n        sVar14 = strlenpt(pcVar10);\n        uVar17 = (((iVar8 + 7) - (sVar18 + sVar12)) - sVar13) - sVar14;\n        if ((int)uVar17 < 4) {\n          pcVar6 = mallocstrcpy((char *)0x0,"_");\n        }\n        else {\n          sVar15 = strlenpt(filename);\n          if (uVar17 < sVar15) {\n            sVar15 = strlenpt(filename);\n            pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false);\n            sVar3 = strlen(pcVar7);\n            pcVar6 = (char *)nmalloc(sVar3 + 4);\n            builtin_strncpy(pcVar6,"...",4);\n            strcpy(pcVar6 + 3,pcVar7);\n            free(pcVar7);\n          }\n          else {\n            pcVar6 = display_string(filename,0,uVar17,false);\n          }\n        }\n        sVar3 = strlen(pcVar11);\n        sVar4 = strlen(pcVar6);\n        pcVar7 = (char *)nmalloc(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(pcVar7,1,0xffffffff,pcVar11,pcVar6,do_lockfile::lockuser,do_lockfile::lockprog\n                      ,pcVar10);\n        free(pcVar6);\n        free(pcVar10);\n        iVar8 = do_yesno_prompt(false,pcVar7);\n        free(pcVar7);\n        if (0 < iVar8) goto LAB_0001b1ea;\n        wipe_statusbar();\n      }\n    }" { (expression_statement "uVar17 = 0;" (assignment_expression "uVar17 = 0" identifier = number_literal) ;) (expression_statement "__ptr = nmalloc(0x2000);" (assignment_expression "__ptr = nmalloc(0x2000)" identifier = (call_expression "nmalloc(0x2000)" identifier (argument_list "(0x2000)" ( number_literal )))) ;) (do_statement "do {\n        sVar9 = read(iVar8,(void *)((int)__ptr + uVar17),0x2000 - uVar17);\n        uVar17 = uVar17 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar17 < 0x2000);" do (compound_statement "{\n        sVar9 = read(iVar8,(void *)((int)__ptr + uVar17),0x2000 - uVar17);\n        uVar17 = uVar17 + sVar9;\n        if (sVar9 == 0) break;\n      }" { (expression_statement "sVar9 = read(iVar8,(void *)((int)__ptr + uVar17),0x2000 - uVar17);" (assignment_expression "sVar9 = read(iVar8,(void *)((int)__ptr + uVar17),0x2000 - uVar17)" identifier = (call_expression "read(iVar8,(void *)((int)__ptr + uVar17),0x2000 - uVar17)" identifier (argument_list "(iVar8,(void *)((int)__ptr + uVar17),0x2000 - uVar17)" ( identifier , (cast_expression "(void *)((int)__ptr + uVar17)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + uVar17)" ( (binary_expression "(int)__ptr + uVar17" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) , (binary_expression "0x2000 - uVar17" number_literal - identifier) )))) ;) (expression_statement "uVar17 = uVar17 + sVar9;" (assignment_expression "uVar17 = uVar17 + sVar9" identifier = (binary_expression "uVar17 + sVar9" identifier + identifier)) ;) (if_statement "if (sVar9 == 0) break;" if (parenthesized_expression "(sVar9 == 0)" ( (binary_expression "sVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "(uVar17 < 0x2000)" ( (binary_expression "uVar17 < 0x2000" identifier < number_literal) )) ;) (expression_statement "close(iVar8);" (call_expression "close(iVar8)" identifier (argument_list "(iVar8)" ( identifier ))) ;) (if_statement "if (uVar17 < 0x30) {\n        pcVar10 = (char *)dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        statusline(MILD,pcVar10,__filename);\n        free(__ptr);\n      }\n      else {\n        strncpy(do_lockfile::lockprog,(char *)((int)__ptr + 2),10);\n        uVar2 = *(undefined4 *)((int)__ptr + 0x18);\n        strncpy(do_lockfile::lockuser,(char *)((int)__ptr + 0x1c),0x10);\n        free(__ptr);\n        pcVar10 = (char *)nmalloc(0xb);\n        __sprintf_chk(pcVar10,1,0xffffffff,&DAT_0005b4d7,uVar2);\n        as_an_at = false;\n        pcVar11 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5\n                                   );\n        iVar8 = *(int *)PTR_COLS_0007af78;\n        sVar18 = strlenpt(pcVar11);\n        sVar12 = strlenpt(do_lockfile::lockuser);\n        sVar13 = strlenpt(do_lockfile::lockprog);\n        sVar14 = strlenpt(pcVar10);\n        uVar17 = (((iVar8 + 7) - (sVar18 + sVar12)) - sVar13) - sVar14;\n        if ((int)uVar17 < 4) {\n          pcVar6 = mallocstrcpy((char *)0x0,"_");\n        }\n        else {\n          sVar15 = strlenpt(filename);\n          if (uVar17 < sVar15) {\n            sVar15 = strlenpt(filename);\n            pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false);\n            sVar3 = strlen(pcVar7);\n            pcVar6 = (char *)nmalloc(sVar3 + 4);\n            builtin_strncpy(pcVar6,"...",4);\n            strcpy(pcVar6 + 3,pcVar7);\n            free(pcVar7);\n          }\n          else {\n            pcVar6 = display_string(filename,0,uVar17,false);\n          }\n        }\n        sVar3 = strlen(pcVar11);\n        sVar4 = strlen(pcVar6);\n        pcVar7 = (char *)nmalloc(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(pcVar7,1,0xffffffff,pcVar11,pcVar6,do_lockfile::lockuser,do_lockfile::lockprog\n                      ,pcVar10);\n        free(pcVar6);\n        free(pcVar10);\n        iVar8 = do_yesno_prompt(false,pcVar7);\n        free(pcVar7);\n        if (0 < iVar8) goto LAB_0001b1ea;\n        wipe_statusbar();\n      }" if (parenthesized_expression "(uVar17 < 0x30)" ( (binary_expression "uVar17 < 0x30" identifier < number_literal) )) (compound_statement "{\n        pcVar10 = (char *)dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        statusline(MILD,pcVar10,__filename);\n        free(__ptr);\n      }" { (expression_statement "pcVar10 = (char *)dcgettext(0,"Error reading lock file %s: Not enough data read",5);" (assignment_expression "pcVar10 = (char *)dcgettext(0,"Error reading lock file %s: Not enough data read",5)" identifier = (cast_expression "(char *)dcgettext(0,"Error reading lock file %s: Not enough data read",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Error reading lock file %s: Not enough data read",5)" identifier (argument_list "(0,"Error reading lock file %s: Not enough data read",5)" ( number_literal , (string_literal ""Error reading lock file %s: Not enough data read"" " string_content ") , number_literal ))))) ;) (expression_statement "statusline(MILD,pcVar10,__filename);" (call_expression "statusline(MILD,pcVar10,__filename)" identifier (argument_list "(MILD,pcVar10,__filename)" ( identifier , identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }) (else_clause "else {\n        strncpy(do_lockfile::lockprog,(char *)((int)__ptr + 2),10);\n        uVar2 = *(undefined4 *)((int)__ptr + 0x18);\n        strncpy(do_lockfile::lockuser,(char *)((int)__ptr + 0x1c),0x10);\n        free(__ptr);\n        pcVar10 = (char *)nmalloc(0xb);\n        __sprintf_chk(pcVar10,1,0xffffffff,&DAT_0005b4d7,uVar2);\n        as_an_at = false;\n        pcVar11 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5\n                                   );\n        iVar8 = *(int *)PTR_COLS_0007af78;\n        sVar18 = strlenpt(pcVar11);\n        sVar12 = strlenpt(do_lockfile::lockuser);\n        sVar13 = strlenpt(do_lockfile::lockprog);\n        sVar14 = strlenpt(pcVar10);\n        uVar17 = (((iVar8 + 7) - (sVar18 + sVar12)) - sVar13) - sVar14;\n        if ((int)uVar17 < 4) {\n          pcVar6 = mallocstrcpy((char *)0x0,"_");\n        }\n        else {\n          sVar15 = strlenpt(filename);\n          if (uVar17 < sVar15) {\n            sVar15 = strlenpt(filename);\n            pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false);\n            sVar3 = strlen(pcVar7);\n            pcVar6 = (char *)nmalloc(sVar3 + 4);\n            builtin_strncpy(pcVar6,"...",4);\n            strcpy(pcVar6 + 3,pcVar7);\n            free(pcVar7);\n          }\n          else {\n            pcVar6 = display_string(filename,0,uVar17,false);\n          }\n        }\n        sVar3 = strlen(pcVar11);\n        sVar4 = strlen(pcVar6);\n        pcVar7 = (char *)nmalloc(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(pcVar7,1,0xffffffff,pcVar11,pcVar6,do_lockfile::lockuser,do_lockfile::lockprog\n                      ,pcVar10);\n        free(pcVar6);\n        free(pcVar10);\n        iVar8 = do_yesno_prompt(false,pcVar7);\n        free(pcVar7);\n        if (0 < iVar8) goto LAB_0001b1ea;\n        wipe_statusbar();\n      }" else (compound_statement "{\n        strncpy(do_lockfile::lockprog,(char *)((int)__ptr + 2),10);\n        uVar2 = *(undefined4 *)((int)__ptr + 0x18);\n        strncpy(do_lockfile::lockuser,(char *)((int)__ptr + 0x1c),0x10);\n        free(__ptr);\n        pcVar10 = (char *)nmalloc(0xb);\n        __sprintf_chk(pcVar10,1,0xffffffff,&DAT_0005b4d7,uVar2);\n        as_an_at = false;\n        pcVar11 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5\n                                   );\n        iVar8 = *(int *)PTR_COLS_0007af78;\n        sVar18 = strlenpt(pcVar11);\n        sVar12 = strlenpt(do_lockfile::lockuser);\n        sVar13 = strlenpt(do_lockfile::lockprog);\n        sVar14 = strlenpt(pcVar10);\n        uVar17 = (((iVar8 + 7) - (sVar18 + sVar12)) - sVar13) - sVar14;\n        if ((int)uVar17 < 4) {\n          pcVar6 = mallocstrcpy((char *)0x0,"_");\n        }\n        else {\n          sVar15 = strlenpt(filename);\n          if (uVar17 < sVar15) {\n            sVar15 = strlenpt(filename);\n            pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false);\n            sVar3 = strlen(pcVar7);\n            pcVar6 = (char *)nmalloc(sVar3 + 4);\n            builtin_strncpy(pcVar6,"...",4);\n            strcpy(pcVar6 + 3,pcVar7);\n            free(pcVar7);\n          }\n          else {\n            pcVar6 = display_string(filename,0,uVar17,false);\n          }\n        }\n        sVar3 = strlen(pcVar11);\n        sVar4 = strlen(pcVar6);\n        pcVar7 = (char *)nmalloc(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(pcVar7,1,0xffffffff,pcVar11,pcVar6,do_lockfile::lockuser,do_lockfile::lockprog\n                      ,pcVar10);\n        free(pcVar6);\n        free(pcVar10);\n        iVar8 = do_yesno_prompt(false,pcVar7);\n        free(pcVar7);\n        if (0 < iVar8) goto LAB_0001b1ea;\n        wipe_statusbar();\n      }" { (labeled_statement "strncpy(do_lockfile::lockprog,(char *)((int)__ptr + 2),10);" statement_identifier (ERROR "(do_lockfile:" ( (type_descriptor "do_lockfile" type_identifier) :) : (expression_statement "lockprog,(char *)((int)__ptr + 2),10);" (comma_expression "lockprog,(char *)((int)__ptr + 2),10" identifier , (comma_expression "(char *)((int)__ptr + 2),10" (cast_expression "(char *)((int)__ptr + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 2)" ( (binary_expression "(int)__ptr + 2" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , number_literal)) (ERROR ")" )) ;)) (expression_statement "uVar2 = *(undefined4 *)((int)__ptr + 0x18);" (assignment_expression "uVar2 = *(undefined4 *)((int)__ptr + 0x18)" identifier = (pointer_expression "*(undefined4 *)((int)__ptr + 0x18)" * (cast_expression "(undefined4 *)((int)__ptr + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 0x18)" ( (binary_expression "(int)__ptr + 0x18" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (labeled_statement "strncpy(do_lockfile::lockuser,(char *)((int)__ptr + 0x1c),0x10);" statement_identifier (ERROR "(do_lockfile:" ( (type_descriptor "do_lockfile" type_identifier) :) : (expression_statement "lockuser,(char *)((int)__ptr + 0x1c),0x10);" (comma_expression "lockuser,(char *)((int)__ptr + 0x1c),0x10" identifier , (comma_expression "(char *)((int)__ptr + 0x1c),0x10" (cast_expression "(char *)((int)__ptr + 0x1c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 0x1c)" ( (binary_expression "(int)__ptr + 0x1c" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , number_literal)) (ERROR ")" )) ;)) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "pcVar10 = (char *)nmalloc(0xb);" (assignment_expression "pcVar10 = (char *)nmalloc(0xb)" identifier = (cast_expression "(char *)nmalloc(0xb)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "nmalloc(0xb)" identifier (argument_list "(0xb)" ( number_literal ))))) ;) (expression_statement "__sprintf_chk(pcVar10,1,0xffffffff,&DAT_0005b4d7,uVar2);" (call_expression "__sprintf_chk(pcVar10,1,0xffffffff,&DAT_0005b4d7,uVar2)" identifier (argument_list "(pcVar10,1,0xffffffff,&DAT_0005b4d7,uVar2)" ( identifier , number_literal , number_literal , (pointer_expression "&DAT_0005b4d7" & identifier) , identifier ))) ;) (expression_statement "as_an_at = false;" (assignment_expression "as_an_at = false" identifier = false) ;) (expression_statement "pcVar11 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5\n                                   );" (assignment_expression "pcVar11 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5\n                                   )" identifier = (cast_expression "(char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5\n                                   )" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5\n                                   )" identifier (argument_list "(0,"File %s is being edited (by %s with %s, PID %s); continue?",5\n                                   )" ( number_literal , (string_literal ""File %s is being edited (by %s with %s, PID %s); continue?"" " string_content ") , number_literal ))))) ;) (expression_statement "iVar8 = *(int *)PTR_COLS_0007af78;" (assignment_expression "iVar8 = *(int *)PTR_COLS_0007af78" identifier = (pointer_expression "*(int *)PTR_COLS_0007af78" * (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "sVar18 = strlenpt(pcVar11);" (assignment_expression "sVar18 = strlenpt(pcVar11)" identifier = (call_expression "strlenpt(pcVar11)" identifier (argument_list "(pcVar11)" ( identifier )))) ;) (expression_statement "sVar12 = strlenpt(do_lockfile::lockuser);" (assignment_expression "sVar12 = strlenpt(do_lockfile::lockuser)" identifier = (call_expression "strlenpt(do_lockfile::lockuser)" identifier (argument_list "(do_lockfile::lockuser)" ( identifier (ERROR "::lockuser" : : identifier) )))) ;) (expression_statement "sVar13 = strlenpt(do_lockfile::lockprog);" (assignment_expression "sVar13 = strlenpt(do_lockfile::lockprog)" identifier = (call_expression "strlenpt(do_lockfile::lockprog)" identifier (argument_list "(do_lockfile::lockprog)" ( identifier (ERROR "::lockprog" : : identifier) )))) ;) (expression_statement "sVar14 = strlenpt(pcVar10);" (assignment_expression "sVar14 = strlenpt(pcVar10)" identifier = (call_expression "strlenpt(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier )))) ;) (expression_statement "uVar17 = (((iVar8 + 7) - (sVar18 + sVar12)) - sVar13) - sVar14;" (assignment_expression "uVar17 = (((iVar8 + 7) - (sVar18 + sVar12)) - sVar13) - sVar14" identifier = (binary_expression "(((iVar8 + 7) - (sVar18 + sVar12)) - sVar13) - sVar14" (parenthesized_expression "(((iVar8 + 7) - (sVar18 + sVar12)) - sVar13)" ( (binary_expression "((iVar8 + 7) - (sVar18 + sVar12)) - sVar13" (parenthesized_expression "((iVar8 + 7) - (sVar18 + sVar12))" ( (binary_expression "(iVar8 + 7) - (sVar18 + sVar12)" (parenthesized_expression "(iVar8 + 7)" ( (binary_expression "iVar8 + 7" identifier + number_literal) )) - (parenthesized_expression "(sVar18 + sVar12)" ( (binary_expression "sVar18 + sVar12" identifier + identifier) ))) )) - identifier) )) - identifier)) ;) (if_statement "if ((int)uVar17 < 4) {\n          pcVar6 = mallocstrcpy((char *)0x0,"_");\n        }\n        else {\n          sVar15 = strlenpt(filename);\n          if (uVar17 < sVar15) {\n            sVar15 = strlenpt(filename);\n            pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false);\n            sVar3 = strlen(pcVar7);\n            pcVar6 = (char *)nmalloc(sVar3 + 4);\n            builtin_strncpy(pcVar6,"...",4);\n            strcpy(pcVar6 + 3,pcVar7);\n            free(pcVar7);\n          }\n          else {\n            pcVar6 = display_string(filename,0,uVar17,false);\n          }\n        }" if (parenthesized_expression "((int)uVar17 < 4)" ( (binary_expression "(int)uVar17 < 4" (cast_expression "(int)uVar17" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          pcVar6 = mallocstrcpy((char *)0x0,"_");\n        }" { (expression_statement "pcVar6 = mallocstrcpy((char *)0x0,"_");" (assignment_expression "pcVar6 = mallocstrcpy((char *)0x0,"_")" identifier = (call_expression "mallocstrcpy((char *)0x0,"_")" identifier (argument_list "((char *)0x0,"_")" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (string_literal ""_"" " string_content ") )))) ;) }) (else_clause "else {\n          sVar15 = strlenpt(filename);\n          if (uVar17 < sVar15) {\n            sVar15 = strlenpt(filename);\n            pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false);\n            sVar3 = strlen(pcVar7);\n            pcVar6 = (char *)nmalloc(sVar3 + 4);\n            builtin_strncpy(pcVar6,"...",4);\n            strcpy(pcVar6 + 3,pcVar7);\n            free(pcVar7);\n          }\n          else {\n            pcVar6 = display_string(filename,0,uVar17,false);\n          }\n        }" else (compound_statement "{\n          sVar15 = strlenpt(filename);\n          if (uVar17 < sVar15) {\n            sVar15 = strlenpt(filename);\n            pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false);\n            sVar3 = strlen(pcVar7);\n            pcVar6 = (char *)nmalloc(sVar3 + 4);\n            builtin_strncpy(pcVar6,"...",4);\n            strcpy(pcVar6 + 3,pcVar7);\n            free(pcVar7);\n          }\n          else {\n            pcVar6 = display_string(filename,0,uVar17,false);\n          }\n        }" { (expression_statement "sVar15 = strlenpt(filename);" (assignment_expression "sVar15 = strlenpt(filename)" identifier = (call_expression "strlenpt(filename)" identifier (argument_list "(filename)" ( identifier )))) ;) (if_statement "if (uVar17 < sVar15) {\n            sVar15 = strlenpt(filename);\n            pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false);\n            sVar3 = strlen(pcVar7);\n            pcVar6 = (char *)nmalloc(sVar3 + 4);\n            builtin_strncpy(pcVar6,"...",4);\n            strcpy(pcVar6 + 3,pcVar7);\n            free(pcVar7);\n          }\n          else {\n            pcVar6 = display_string(filename,0,uVar17,false);\n          }" if (parenthesized_expression "(uVar17 < sVar15)" ( (binary_expression "uVar17 < sVar15" identifier < identifier) )) (compound_statement "{\n            sVar15 = strlenpt(filename);\n            pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false);\n            sVar3 = strlen(pcVar7);\n            pcVar6 = (char *)nmalloc(sVar3 + 4);\n            builtin_strncpy(pcVar6,"...",4);\n            strcpy(pcVar6 + 3,pcVar7);\n            free(pcVar7);\n          }" { (expression_statement "sVar15 = strlenpt(filename);" (assignment_expression "sVar15 = strlenpt(filename)" identifier = (call_expression "strlenpt(filename)" identifier (argument_list "(filename)" ( identifier )))) ;) (expression_statement "pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false);" (assignment_expression "pcVar7 = display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false)" identifier = (call_expression "display_string(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false)" identifier (argument_list "(filename,sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15,uVar17,false)" ( identifier , (binary_expression "sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7)) +\n                                             sVar15" (binary_expression "sVar14 + sVar13 + sVar12 + 3 + (sVar18 - (iVar8 + 7))" (binary_expression "sVar14 + sVar13 + sVar12 + 3" (binary_expression "sVar14 + sVar13 + sVar12" (binary_expression "sVar14 + sVar13" identifier + identifier) + identifier) + number_literal) + (parenthesized_expression "(sVar18 - (iVar8 + 7))" ( (binary_expression "sVar18 - (iVar8 + 7)" identifier - (parenthesized_expression "(iVar8 + 7)" ( (binary_expression "iVar8 + 7" identifier + number_literal) ))) ))) + identifier) , identifier , false )))) ;) (expression_statement "sVar3 = strlen(pcVar7);" (assignment_expression "sVar3 = strlen(pcVar7)" identifier = (call_expression "strlen(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;) (expression_statement "pcVar6 = (char *)nmalloc(sVar3 + 4);" (assignment_expression "pcVar6 = (char *)nmalloc(sVar3 + 4)" identifier = (cast_expression "(char *)nmalloc(sVar3 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "nmalloc(sVar3 + 4)" identifier (argument_list "(sVar3 + 4)" ( (binary_expression "sVar3 + 4" identifier + number_literal) ))))) ;) (expression_statement "builtin_strncpy(pcVar6,"...",4);" (call_expression "builtin_strncpy(pcVar6,"...",4)" identifier (argument_list "(pcVar6,"...",4)" ( identifier , (string_literal ""..."" " string_content ") , number_literal ))) ;) (expression_statement "strcpy(pcVar6 + 3,pcVar7);" (call_expression "strcpy(pcVar6 + 3,pcVar7)" identifier (argument_list "(pcVar6 + 3,pcVar7)" ( (binary_expression "pcVar6 + 3" identifier + number_literal) , identifier ))) ;) (expression_statement "free(pcVar7);" (call_expression "free(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))) ;) }) (else_clause "else {\n            pcVar6 = display_string(filename,0,uVar17,false);\n          }" else (compound_statement "{\n            pcVar6 = display_string(filename,0,uVar17,false);\n          }" { (expression_statement "pcVar6 = display_string(filename,0,uVar17,false);" (assignment_expression "pcVar6 = display_string(filename,0,uVar17,false)" identifier = (call_expression "display_string(filename,0,uVar17,false)" identifier (argument_list "(filename,0,uVar17,false)" ( identifier , number_literal , identifier , false )))) ;) }))) }))) (expression_statement "sVar3 = strlen(pcVar11);" (assignment_expression "sVar3 = strlen(pcVar11)" identifier = (call_expression "strlen(pcVar11)" identifier (argument_list "(pcVar11)" ( identifier )))) ;) (expression_statement "sVar4 = strlen(pcVar6);" (assignment_expression "sVar4 = strlen(pcVar6)" identifier = (call_expression "strlen(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier )))) ;) (expression_statement "pcVar7 = (char *)nmalloc(sVar3 + 0x1d + sVar4);" (assignment_expression "pcVar7 = (char *)nmalloc(sVar3 + 0x1d + sVar4)" identifier = (cast_expression "(char *)nmalloc(sVar3 + 0x1d + sVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "nmalloc(sVar3 + 0x1d + sVar4)" identifier (argument_list "(sVar3 + 0x1d + sVar4)" ( (binary_expression "sVar3 + 0x1d + sVar4" (binary_expression "sVar3 + 0x1d" identifier + number_literal) + identifier) ))))) ;) (expression_statement "__sprintf_chk(pcVar7,1,0xffffffff,pcVar11,pcVar6,do_lockfile::lockuser,do_lockfile::lockprog\n                      ,pcVar10);" (call_expression "__sprintf_chk(pcVar7,1,0xffffffff,pcVar11,pcVar6,do_lockfile::lockuser,do_lockfile::lockprog\n                      ,pcVar10)" identifier (argument_list "(pcVar7,1,0xffffffff,pcVar11,pcVar6,do_lockfile::lockuser,do_lockfile::lockprog\n                      ,pcVar10)" ( identifier , number_literal , number_literal , identifier , identifier , identifier (ERROR "::lockuser" : : identifier) , identifier (ERROR "::lockprog" : : identifier) , identifier ))) ;) (expression_statement "free(pcVar6);" (call_expression "free(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier ))) ;) (expression_statement "free(pcVar10);" (call_expression "free(pcVar10)" identifier (argument_list "(pcVar10)" ( identifier ))) ;) (expression_statement "iVar8 = do_yesno_prompt(false,pcVar7);" (assignment_expression "iVar8 = do_yesno_prompt(false,pcVar7)" identifier = (call_expression "do_yesno_prompt(false,pcVar7)" identifier (argument_list "(false,pcVar7)" ( false , identifier )))) ;) (expression_statement "free(pcVar7);" (call_expression "free(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))) ;) (if_statement "if (0 < iVar8) goto LAB_0001b1ea;" if (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) )) (goto_statement "goto LAB_0001b1ea;" goto statement_identifier ;)) (expression_statement "wipe_statusbar();" (call_expression "wipe_statusbar()" identifier (argument_list "()" ( ))) ;) }))) }))) (expression_statement "free(__path);" (call_expression "free(__path)" identifier (argument_list "(__path)" ( identifier ))) ;) (expression_statement "free(__path_00);" (call_expression "free(__path_00)" identifier (argument_list "(__path_00)" ( identifier ))) ;) (expression_statement "iVar8 = -1;" (assignment_expression "iVar8 = -1" identifier = number_literal) ;) }))) (expression_statement "free(__filename);" (call_expression "free(__filename)" identifier (argument_list "(__filename)" ( identifier ))) ;) (labeled_statement "LAB_0001b21d:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar8;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar8;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar8;\n  }" { (return_statement "return iVar8;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_0001af20(char *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  char *__path;\n  char *__path_00;\n  size_t sVar3;\n  size_t sVar4;\n  size_t sVar5;\n  char *__filename;\n  char *pcVar6;\n  char *pcVar7;\n  void *pvVar8;\n  ssize_t sVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  void *__ptr;\n  uint uVar14;\n  int iVar15;\n  char *__s;\n  undefined4 uVar16;\n  int *piVar17;\n  uint uVar18;\n  int iVar19;\n  int in_GS_OFFSET;\n  stat64 local_80;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1af29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __path = (char *)FUN_0003dbd0(0,param_1);\n  __path_00 = (char *)FUN_0003dbd0(0,param_1);\n  sVar3 = strlen(param_1);\n  sVar4 = strlen(PTR_DAT_0007b0e4);\n  sVar5 = strlen(PTR_DAT_0007b0e0);\n  iVar19 = sVar3 + 3 + sVar4 + sVar5;\n  __filename = (char *)FUN_0003da70(iVar19);\n  puVar1 = PTR_DAT_0007b0e0;\n  pcVar6 = __xpg_basename(__path_00);\n  puVar2 = PTR_DAT_0007b0e4;\n  pcVar7 = dirname(__path);\n  __snprintf_chk(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1);\n  iVar19 = __xstat64(3,__filename,&local_80);\n  if (iVar19 == -1) {\nLAB_0001b1ea:\n    iVar19 = FUN_0001aac0(__filename,param_1,0);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar19) goto LAB_0001b21d;\n  }\n  else {\n    iVar19 = open64(__filename,0);\n    if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar19 = -1;\n  }\n  free(__filename);\nLAB_0001b21d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar19;\n  }\n                    \n  FUN_0005a8b0();\n}\n\n" (function_definition "int FUN_0001af20(char *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  char *__path;\n  char *__path_00;\n  size_t sVar3;\n  size_t sVar4;\n  size_t sVar5;\n  char *__filename;\n  char *pcVar6;\n  char *pcVar7;\n  void *pvVar8;\n  ssize_t sVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  void *__ptr;\n  uint uVar14;\n  int iVar15;\n  char *__s;\n  undefined4 uVar16;\n  int *piVar17;\n  uint uVar18;\n  int iVar19;\n  int in_GS_OFFSET;\n  stat64 local_80;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1af29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __path = (char *)FUN_0003dbd0(0,param_1);\n  __path_00 = (char *)FUN_0003dbd0(0,param_1);\n  sVar3 = strlen(param_1);\n  sVar4 = strlen(PTR_DAT_0007b0e4);\n  sVar5 = strlen(PTR_DAT_0007b0e0);\n  iVar19 = sVar3 + 3 + sVar4 + sVar5;\n  __filename = (char *)FUN_0003da70(iVar19);\n  puVar1 = PTR_DAT_0007b0e0;\n  pcVar6 = __xpg_basename(__path_00);\n  puVar2 = PTR_DAT_0007b0e4;\n  pcVar7 = dirname(__path);\n  __snprintf_chk(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1);\n  iVar19 = __xstat64(3,__filename,&local_80);\n  if (iVar19 == -1) {\nLAB_0001b1ea:\n    iVar19 = FUN_0001aac0(__filename,param_1,0);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar19) goto LAB_0001b21d;\n  }\n  else {\n    iVar19 = open64(__filename,0);\n    if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar19 = -1;\n  }\n  free(__filename);\nLAB_0001b21d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar19;\n  }\n                    \n  FUN_0005a8b0();\n}" primitive_type (function_declarator "FUN_0001af20(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  char *__path;\n  char *__path_00;\n  size_t sVar3;\n  size_t sVar4;\n  size_t sVar5;\n  char *__filename;\n  char *pcVar6;\n  char *pcVar7;\n  void *pvVar8;\n  ssize_t sVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  void *__ptr;\n  uint uVar14;\n  int iVar15;\n  char *__s;\n  undefined4 uVar16;\n  int *piVar17;\n  uint uVar18;\n  int iVar19;\n  int in_GS_OFFSET;\n  stat64 local_80;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1af29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __path = (char *)FUN_0003dbd0(0,param_1);\n  __path_00 = (char *)FUN_0003dbd0(0,param_1);\n  sVar3 = strlen(param_1);\n  sVar4 = strlen(PTR_DAT_0007b0e4);\n  sVar5 = strlen(PTR_DAT_0007b0e0);\n  iVar19 = sVar3 + 3 + sVar4 + sVar5;\n  __filename = (char *)FUN_0003da70(iVar19);\n  puVar1 = PTR_DAT_0007b0e0;\n  pcVar6 = __xpg_basename(__path_00);\n  puVar2 = PTR_DAT_0007b0e4;\n  pcVar7 = dirname(__path);\n  __snprintf_chk(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1);\n  iVar19 = __xstat64(3,__filename,&local_80);\n  if (iVar19 == -1) {\nLAB_0001b1ea:\n    iVar19 = FUN_0001aac0(__filename,param_1,0);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar19) goto LAB_0001b21d;\n  }\n  else {\n    iVar19 = open64(__filename,0);\n    if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar19 = -1;\n  }\n  free(__filename);\nLAB_0001b21d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar19;\n  }\n                    \n  FUN_0005a8b0();\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *__path;" primitive_type (pointer_declarator "*__path" * identifier) ;) (declaration "char *__path_00;" primitive_type (pointer_declarator "*__path_00" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "char *__filename;" primitive_type (pointer_declarator "*__filename" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "void *pvVar8;" primitive_type (pointer_declarator "*pvVar8" * identifier) ;) (declaration "ssize_t sVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "int iVar15;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined4 uVar16;" type_identifier identifier ;) (declaration "int *piVar17;" primitive_type (pointer_declarator "*piVar17" * identifier) ;) (declaration "uint uVar18;" type_identifier identifier ;) (declaration "int iVar19;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "stat64 local_80;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1af29;" (assignment_expression "uStack_14 = 0x1af29" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "__path = (char *)FUN_0003dbd0(0,param_1);" (assignment_expression "__path = (char *)FUN_0003dbd0(0,param_1)" identifier = (cast_expression "(char *)FUN_0003dbd0(0,param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003dbd0(0,param_1)" identifier (argument_list "(0,param_1)" ( number_literal , identifier ))))) ;) (expression_statement "__path_00 = (char *)FUN_0003dbd0(0,param_1);" (assignment_expression "__path_00 = (char *)FUN_0003dbd0(0,param_1)" identifier = (cast_expression "(char *)FUN_0003dbd0(0,param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003dbd0(0,param_1)" identifier (argument_list "(0,param_1)" ( number_literal , identifier ))))) ;) (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "sVar4 = strlen(PTR_DAT_0007b0e4);" (assignment_expression "sVar4 = strlen(PTR_DAT_0007b0e4)" identifier = (call_expression "strlen(PTR_DAT_0007b0e4)" identifier (argument_list "(PTR_DAT_0007b0e4)" ( identifier )))) ;) (expression_statement "sVar5 = strlen(PTR_DAT_0007b0e0);" (assignment_expression "sVar5 = strlen(PTR_DAT_0007b0e0)" identifier = (call_expression "strlen(PTR_DAT_0007b0e0)" identifier (argument_list "(PTR_DAT_0007b0e0)" ( identifier )))) ;) (expression_statement "iVar19 = sVar3 + 3 + sVar4 + sVar5;" (assignment_expression "iVar19 = sVar3 + 3 + sVar4 + sVar5" identifier = (binary_expression "sVar3 + 3 + sVar4 + sVar5" (binary_expression "sVar3 + 3 + sVar4" (binary_expression "sVar3 + 3" identifier + number_literal) + identifier) + identifier)) ;) (expression_statement "__filename = (char *)FUN_0003da70(iVar19);" (assignment_expression "__filename = (char *)FUN_0003da70(iVar19)" identifier = (cast_expression "(char *)FUN_0003da70(iVar19)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003da70(iVar19)" identifier (argument_list "(iVar19)" ( identifier ))))) ;) (expression_statement "puVar1 = PTR_DAT_0007b0e0;" (assignment_expression "puVar1 = PTR_DAT_0007b0e0" identifier = identifier) ;) (expression_statement "pcVar6 = __xpg_basename(__path_00);" (assignment_expression "pcVar6 = __xpg_basename(__path_00)" identifier = (call_expression "__xpg_basename(__path_00)" identifier (argument_list "(__path_00)" ( identifier )))) ;) (expression_statement "puVar2 = PTR_DAT_0007b0e4;" (assignment_expression "puVar2 = PTR_DAT_0007b0e4" identifier = identifier) ;) (expression_statement "pcVar7 = dirname(__path);" (assignment_expression "pcVar7 = dirname(__path)" identifier = (call_expression "dirname(__path)" identifier (argument_list "(__path)" ( identifier )))) ;) (expression_statement "__snprintf_chk(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1);" (call_expression "__snprintf_chk(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1)" identifier (argument_list "(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1)" ( identifier , identifier , number_literal , number_literal , (string_literal ""%s/%s%s%s"" " string_content ") , identifier , identifier , identifier , identifier ))) ;) (expression_statement "iVar19 = __xstat64(3,__filename,&local_80);" (assignment_expression "iVar19 = __xstat64(3,__filename,&local_80)" identifier = (call_expression "__xstat64(3,__filename,&local_80)" identifier (argument_list "(3,__filename,&local_80)" ( number_literal , identifier , (pointer_expression "&local_80" & identifier) )))) ;) (if_statement "if (iVar19 == -1) {\nLAB_0001b1ea:\n    iVar19 = FUN_0001aac0(__filename,param_1,0);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar19) goto LAB_0001b21d;\n  }\n  else {\n    iVar19 = open64(__filename,0);\n    if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar19 = -1;\n  }" if (parenthesized_expression "(iVar19 == -1)" ( (binary_expression "iVar19 == -1" identifier == number_literal) )) (compound_statement "{\nLAB_0001b1ea:\n    iVar19 = FUN_0001aac0(__filename,param_1,0);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar19) goto LAB_0001b21d;\n  }" { (labeled_statement "LAB_0001b1ea:\n    iVar19 = FUN_0001aac0(__filename,param_1,0);" statement_identifier : (expression_statement "iVar19 = FUN_0001aac0(__filename,param_1,0);" (assignment_expression "iVar19 = FUN_0001aac0(__filename,param_1,0)" identifier = (call_expression "FUN_0001aac0(__filename,param_1,0)" identifier (argument_list "(__filename,param_1,0)" ( identifier , identifier , number_literal )))) ;)) (expression_statement "free(__path);" (call_expression "free(__path)" identifier (argument_list "(__path)" ( identifier ))) ;) (expression_statement "free(__path_00);" (call_expression "free(__path_00)" identifier (argument_list "(__path_00)" ( identifier ))) ;) (if_statement "if (0 < iVar19) goto LAB_0001b21d;" if (parenthesized_expression "(0 < iVar19)" ( (binary_expression "0 < iVar19" number_literal < identifier) )) (goto_statement "goto LAB_0001b21d;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar19 = open64(__filename,0);\n    if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar19 = -1;\n  }" else (compound_statement "{\n    iVar19 = open64(__filename,0);\n    if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar19 = -1;\n  }" { (expression_statement "iVar19 = open64(__filename,0);" (assignment_expression "iVar19 = open64(__filename,0)" identifier = (call_expression "open64(__filename,0)" identifier (argument_list "(__filename,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }" if (parenthesized_expression "(iVar19 < 0)" ( (binary_expression "iVar19 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }" { (expression_statement "piVar17 = __errno_location();" (assignment_expression "piVar17 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar6 = strerror(*piVar17);" (assignment_expression "pcVar6 = strerror(*piVar17)" identifier = (call_expression "strerror(*piVar17)" identifier (argument_list "(*piVar17)" ( (pointer_expression "*piVar17" * identifier) )))) ;) (expression_statement "uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);" (assignment_expression "uVar16 = dcgettext(0,"Error opening lock file %s: %s",5)" identifier = (call_expression "dcgettext(0,"Error opening lock file %s: %s",5)" identifier (argument_list "(0,"Error opening lock file %s: %s",5)" ( number_literal , (string_literal ""Error opening lock file %s: %s"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00040b60(2,uVar16,__filename,pcVar6);" (call_expression "FUN_00040b60(2,uVar16,__filename,pcVar6)" identifier (argument_list "(2,uVar16,__filename,pcVar6)" ( number_literal , identifier , identifier , identifier ))) ;) }) (else_clause "else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }" else (compound_statement "{\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }" { (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "pvVar8 = (void *)FUN_0003da70(0x2000);" (assignment_expression "pvVar8 = (void *)FUN_0003da70(0x2000)" identifier = (cast_expression "(void *)FUN_0003da70(0x2000)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003da70(0x2000)" identifier (argument_list "(0x2000)" ( number_literal ))))) ;) (do_statement "do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);" do (compound_statement "{\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      }" { (expression_statement "sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);" (assignment_expression "sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18)" identifier = (call_expression "read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18)" identifier (argument_list "(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18)" ( identifier , (cast_expression "(void *)((int)pvVar8 + uVar18)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar8 + uVar18)" ( (binary_expression "(int)pvVar8 + uVar18" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) , (binary_expression "0x2000 - uVar18" number_literal - identifier) )))) ;) (expression_statement "uVar18 = uVar18 + sVar9;" (assignment_expression "uVar18 = uVar18 + sVar9" identifier = (binary_expression "uVar18 + sVar9" identifier + identifier)) ;) (if_statement "if (sVar9 == 0) break;" if (parenthesized_expression "(sVar9 == 0)" ( (binary_expression "sVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "(uVar18 < 0x2000)" ( (binary_expression "uVar18 < 0x2000" identifier < number_literal) )) ;) (expression_statement "close(iVar19);" (call_expression "close(iVar19)" identifier (argument_list "(iVar19)" ( identifier ))) ;) (if_statement "if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }" if (parenthesized_expression "(uVar18 < 0x30)" ( (binary_expression "uVar18 < 0x30" identifier < number_literal) )) (compound_statement "{\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }" { (expression_statement "uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);" (assignment_expression "uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5)" identifier = (call_expression "dcgettext(0,"Error reading lock file %s: Not enough data read",5)" identifier (argument_list "(0,"Error reading lock file %s: Not enough data read",5)" ( number_literal , (string_literal ""Error reading lock file %s: Not enough data read"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00040b60(2,uVar16,__filename);" (call_expression "FUN_00040b60(2,uVar16,__filename)" identifier (argument_list "(2,uVar16,__filename)" ( number_literal , identifier , identifier ))) ;) (expression_statement "free(pvVar8);" (call_expression "free(pvVar8)" identifier (argument_list "(pvVar8)" ( identifier ))) ;) }) (else_clause "else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }" else (compound_statement "{\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }" { (expression_statement "strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);" (call_expression "strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10)" identifier (argument_list "(&DAT_0007b578,(char *)((int)pvVar8 + 2),10)" ( (pointer_expression "&DAT_0007b578" & identifier) , (cast_expression "(char *)((int)pvVar8 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar8 + 2)" ( (binary_expression "(int)pvVar8 + 2" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , number_literal ))) ;) (expression_statement "uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);" (assignment_expression "uVar16 = *(undefined4 *)((int)pvVar8 + 0x18)" identifier = (pointer_expression "*(undefined4 *)((int)pvVar8 + 0x18)" * (cast_expression "(undefined4 *)((int)pvVar8 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar8 + 0x18)" ( (binary_expression "(int)pvVar8 + 0x18" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);" (call_expression "strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10)" identifier (argument_list "(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10)" ( (pointer_expression "&DAT_0007b564" & identifier) , (cast_expression "(char *)((int)pvVar8 + 0x1c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar8 + 0x1c)" ( (binary_expression "(int)pvVar8 + 0x1c" (cast_expression "(int)pvVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , number_literal ))) ;) (expression_statement "free(pvVar8);" (call_expression "free(pvVar8)" identifier (argument_list "(pvVar8)" ( identifier ))) ;) (expression_statement "pvVar8 = (void *)FUN_0003da70(0xb);" (assignment_expression "pvVar8 = (void *)FUN_0003da70(0xb)" identifier = (cast_expression "(void *)FUN_0003da70(0xb)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003da70(0xb)" identifier (argument_list "(0xb)" ( number_literal ))))) ;) (expression_statement "__sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);" (call_expression "__sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16)" identifier (argument_list "(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16)" ( identifier , number_literal , number_literal , (pointer_expression "&DAT_0005b4d7" & identifier) , identifier ))) ;) (expression_statement "DAT_0007b074 = 0;" (assignment_expression "DAT_0007b074 = 0" identifier = number_literal) ;) (expression_statement "pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;" (assignment_expression "pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)" identifier = (cast_expression "(char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)" identifier (argument_list "(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)" ( number_literal , (string_literal ""File %s is being edited (by %s with %s, PID %s); continue?"" " string_content ") , number_literal ))))) ;) (expression_statement "iVar19 = *(int *)PTR_COLS_0007af78;" (assignment_expression "iVar19 = *(int *)PTR_COLS_0007af78" identifier = (pointer_expression "*(int *)PTR_COLS_0007af78" * (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar10 = FUN_0003e0c0(pcVar6);" (assignment_expression "iVar10 = FUN_0003e0c0(pcVar6)" identifier = (call_expression "FUN_0003e0c0(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier )))) ;) (expression_statement "iVar11 = FUN_0003e0c0(&DAT_0007b564);" (assignment_expression "iVar11 = FUN_0003e0c0(&DAT_0007b564)" identifier = (call_expression "FUN_0003e0c0(&DAT_0007b564)" identifier (argument_list "(&DAT_0007b564)" ( (pointer_expression "&DAT_0007b564" & identifier) )))) ;) (expression_statement "iVar12 = FUN_0003e0c0(&DAT_0007b578);" (assignment_expression "iVar12 = FUN_0003e0c0(&DAT_0007b578)" identifier = (call_expression "FUN_0003e0c0(&DAT_0007b578)" identifier (argument_list "(&DAT_0007b578)" ( (pointer_expression "&DAT_0007b578" & identifier) )))) ;) (expression_statement "iVar13 = FUN_0003e0c0(pvVar8);" (assignment_expression "iVar13 = FUN_0003e0c0(pvVar8)" identifier = (call_expression "FUN_0003e0c0(pvVar8)" identifier (argument_list "(pvVar8)" ( identifier )))) ;) (expression_statement "uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;" (assignment_expression "uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13" identifier = (binary_expression "(((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13" (parenthesized_expression "(((iVar19 + 7) - (iVar10 + iVar11)) - iVar12)" ( (binary_expression "((iVar19 + 7) - (iVar10 + iVar11)) - iVar12" (parenthesized_expression "((iVar19 + 7) - (iVar10 + iVar11))" ( (binary_expression "(iVar19 + 7) - (iVar10 + iVar11)" (parenthesized_expression "(iVar19 + 7)" ( (binary_expression "iVar19 + 7" identifier + number_literal) )) - (parenthesized_expression "(iVar10 + iVar11)" ( (binary_expression "iVar10 + iVar11" identifier + identifier) ))) )) - identifier) )) - identifier)) ;) (if_statement "if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }" if (parenthesized_expression "((int)uVar18 < 4)" ( (binary_expression "(int)uVar18 < 4" (cast_expression "(int)uVar18" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }" { (expression_statement "pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);" (assignment_expression "pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f)" identifier = (cast_expression "(char *)FUN_0003dbd0(0,&DAT_0005c41f)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003dbd0(0,&DAT_0005c41f)" identifier (argument_list "(0,&DAT_0005c41f)" ( number_literal , (pointer_expression "&DAT_0005c41f" & identifier) ))))) ;) }) (else_clause "else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }" else (compound_statement "{\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }" { (expression_statement "uVar14 = FUN_0003e0c0(param_1);" (assignment_expression "uVar14 = FUN_0003e0c0(param_1)" identifier = (call_expression "FUN_0003e0c0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }" if (parenthesized_expression "(uVar18 < uVar14)" ( (binary_expression "uVar18 < uVar14" identifier < identifier) )) (compound_statement "{\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }" { (expression_statement "iVar15 = FUN_0003e0c0(param_1);" (assignment_expression "iVar15 = FUN_0003e0c0(param_1)" identifier = (call_expression "FUN_0003e0c0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "__s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);" (assignment_expression "__s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0)" identifier = (cast_expression "(char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0)" identifier (argument_list "(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0)" ( identifier , (binary_expression "iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15" (binary_expression "iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7))" (binary_expression "iVar13 + iVar12 + iVar11 + 3" (binary_expression "iVar13 + iVar12 + iVar11" (binary_expression "iVar13 + iVar12" identifier + identifier) + identifier) + number_literal) + (parenthesized_expression "(iVar10 - (iVar19 + 7))" ( (binary_expression "iVar10 - (iVar19 + 7)" identifier - (parenthesized_expression "(iVar19 + 7)" ( (binary_expression "iVar19 + 7" identifier + number_literal) ))) ))) + identifier) , identifier , number_literal ))))) ;) (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "pcVar7 = (char *)FUN_0003da70(sVar3 + 4);" (assignment_expression "pcVar7 = (char *)FUN_0003da70(sVar3 + 4)" identifier = (cast_expression "(char *)FUN_0003da70(sVar3 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003da70(sVar3 + 4)" identifier (argument_list "(sVar3 + 4)" ( (binary_expression "sVar3 + 4" identifier + number_literal) ))))) ;) (expression_statement "builtin_strncpy(pcVar7,"...",4);" (call_expression "builtin_strncpy(pcVar7,"...",4)" identifier (argument_list "(pcVar7,"...",4)" ( identifier , (string_literal ""..."" " string_content ") , number_literal ))) ;) (expression_statement "strcpy(pcVar7 + 3,__s);" (call_expression "strcpy(pcVar7 + 3,__s)" identifier (argument_list "(pcVar7 + 3,__s)" ( (binary_expression "pcVar7 + 3" identifier + number_literal) , identifier ))) ;) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) }) (else_clause "else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }" else (compound_statement "{\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }" { (expression_statement "pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);" (assignment_expression "pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0)" identifier = (cast_expression "(char *)FUN_0003fe90(param_1,0,uVar18,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003fe90(param_1,0,uVar18,0)" identifier (argument_list "(param_1,0,uVar18,0)" ( identifier , number_literal , identifier , number_literal ))))) ;) }))) }))) (expression_statement "sVar3 = strlen(pcVar6);" (assignment_expression "sVar3 = strlen(pcVar6)" identifier = (call_expression "strlen(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier )))) ;) (expression_statement "sVar4 = strlen(pcVar7);" (assignment_expression "sVar4 = strlen(pcVar7)" identifier = (call_expression "strlen(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;) (expression_statement "__ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);" (assignment_expression "__ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4)" identifier = (cast_expression "(void *)FUN_0003da70(sVar3 + 0x1d + sVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003da70(sVar3 + 0x1d + sVar4)" identifier (argument_list "(sVar3 + 0x1d + sVar4)" ( (binary_expression "sVar3 + 0x1d + sVar4" (binary_expression "sVar3 + 0x1d" identifier + number_literal) + identifier) ))))) ;) (expression_statement "__sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);" (call_expression "__sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8)" identifier (argument_list "(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8)" ( identifier , number_literal , number_literal , identifier , identifier , (pointer_expression "&DAT_0007b564" & identifier) , (pointer_expression "&DAT_0007b578" & identifier) , identifier ))) ;) (expression_statement "free(pcVar7);" (call_expression "free(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))) ;) (expression_statement "free(pvVar8);" (call_expression "free(pvVar8)" identifier (argument_list "(pvVar8)" ( identifier ))) ;) (expression_statement "iVar19 = FUN_0002fb20(0,__ptr);" (assignment_expression "iVar19 = FUN_0002fb20(0,__ptr)" identifier = (call_expression "FUN_0002fb20(0,__ptr)" identifier (argument_list "(0,__ptr)" ( number_literal , identifier )))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (if_statement "if (0 < iVar19) goto LAB_0001b1ea;" if (parenthesized_expression "(0 < iVar19)" ( (binary_expression "0 < iVar19" number_literal < identifier) )) (goto_statement "goto LAB_0001b1ea;" goto statement_identifier ;)) (expression_statement "FUN_0003fd80();" (call_expression "FUN_0003fd80()" identifier (argument_list "()" ( ))) ;) }))) }))) (expression_statement "free(__path);" (call_expression "free(__path)" identifier (argument_list "(__path)" ( identifier ))) ;) (expression_statement "free(__path_00);" (call_expression "free(__path_00)" identifier (argument_list "(__path_00)" ( identifier ))) ;) (expression_statement "iVar19 = -1;" (assignment_expression "iVar19 = -1" identifier = number_literal) ;) }))) (expression_statement "free(__filename);" (call_expression "free(__filename)" identifier (argument_list "(__filename)" ( identifier ))) ;) (labeled_statement "LAB_0001b21d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar19;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar19;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar19;\n  }" { (return_statement "return iVar19;" return identifier ;) }))) (expression_statement "FUN_0005a8b0();" (call_expression "FUN_0005a8b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression IDENT + LIT) + IDENT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , (string_literal " string_content ") , IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (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 ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) ))) , (binary_expression LIT - IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) }) while (parenthesized_expression ( (binary_expression IDENT < LIT) )) ;) (expression_statement (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 ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (pointer_expression & IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (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 = (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) - (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) )) - IDENT) )) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression IDENT + IDENT) + IDENT) + LIT) + (parenthesized_expression ( (binary_expression IDENT - (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ))) + IDENT) , IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , LIT ))))) ;) }))) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , IDENT , IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int FUN_0001af20(char *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  char *__path;\n  char *__path_00;\n  size_t sVar3;\n  size_t sVar4;\n  size_t sVar5;\n  char *__filename;\n  char *pcVar6;\n  char *pcVar7;\n  void *pvVar8;\n  ssize_t sVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  void *__ptr;\n  uint uVar14;\n  int iVar15;\n  char *__s;\n  undefined4 uVar16;\n  int *piVar17;\n  uint uVar18;\n  int iVar19;\n  int in_GS_OFFSET;\n  stat64 local_80;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1af29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __path = (char *)FUN_0003dbd0(0,param_1);\n  __path_00 = (char *)FUN_0003dbd0(0,param_1);\n  sVar3 = strlen(param_1);\n  sVar4 = strlen(PTR_DAT_0007b0e4);\n  sVar5 = strlen(PTR_DAT_0007b0e0);\n  iVar19 = sVar3 + 3 + sVar4 + sVar5;\n  __filename = (char *)FUN_0003da70(iVar19);\n  puVar1 = PTR_DAT_0007b0e0;\n  pcVar6 = __xpg_basename(__path_00);\n  puVar2 = PTR_DAT_0007b0e4;\n  pcVar7 = dirname(__path);\n  __snprintf_chk(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1);\n  iVar19 = __xstat64(3,__filename,&local_80);\n  if (iVar19 == -1) {\nLAB_0001b1ea:\n    iVar19 = FUN_0001aac0(__filename,param_1,0);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar19) goto LAB_0001b21d;\n  }\n  else {\n    iVar19 = open64(__filename,0);\n    if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar19 = -1;\n  }\n  free(__filename);\nLAB_0001b21d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar19;\n  }\n                    \n  FUN_0005a8b0();\n}" (primitive_type "int") (function_declarator "FUN_0001af20(char *param_1)" (identifier "FUN_0001af20") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  char *__path;\n  char *__path_00;\n  size_t sVar3;\n  size_t sVar4;\n  size_t sVar5;\n  char *__filename;\n  char *pcVar6;\n  char *pcVar7;\n  void *pvVar8;\n  ssize_t sVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  int iVar13;\n  void *__ptr;\n  uint uVar14;\n  int iVar15;\n  char *__s;\n  undefined4 uVar16;\n  int *piVar17;\n  uint uVar18;\n  int iVar19;\n  int in_GS_OFFSET;\n  stat64 local_80;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1af29;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __path = (char *)FUN_0003dbd0(0,param_1);\n  __path_00 = (char *)FUN_0003dbd0(0,param_1);\n  sVar3 = strlen(param_1);\n  sVar4 = strlen(PTR_DAT_0007b0e4);\n  sVar5 = strlen(PTR_DAT_0007b0e0);\n  iVar19 = sVar3 + 3 + sVar4 + sVar5;\n  __filename = (char *)FUN_0003da70(iVar19);\n  puVar1 = PTR_DAT_0007b0e0;\n  pcVar6 = __xpg_basename(__path_00);\n  puVar2 = PTR_DAT_0007b0e4;\n  pcVar7 = dirname(__path);\n  __snprintf_chk(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1);\n  iVar19 = __xstat64(3,__filename,&local_80);\n  if (iVar19 == -1) {\nLAB_0001b1ea:\n    iVar19 = FUN_0001aac0(__filename,param_1,0);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar19) goto LAB_0001b21d;\n  }\n  else {\n    iVar19 = open64(__filename,0);\n    if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar19 = -1;\n  }\n  free(__filename);\nLAB_0001b21d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar19;\n  }\n                    \n  FUN_0005a8b0();\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "char *__path;" (primitive_type "char") (pointer_declarator "*__path" (* "*") (identifier "__path")) (; ";")) (declaration "char *__path_00;" (primitive_type "char") (pointer_declarator "*__path_00" (* "*") (identifier "__path_00")) (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "size_t sVar4;" (primitive_type "size_t") (identifier "sVar4") (; ";")) (declaration "size_t sVar5;" (primitive_type "size_t") (identifier "sVar5") (; ";")) (declaration "char *__filename;" (primitive_type "char") (pointer_declarator "*__filename" (* "*") (identifier "__filename")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "void *pvVar8;" (primitive_type "void") (pointer_declarator "*pvVar8" (* "*") (identifier "pvVar8")) (; ";")) (declaration "ssize_t sVar9;" (primitive_type "ssize_t") (identifier "sVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "uint uVar14;" (type_identifier "uint") (identifier "uVar14") (; ";")) (declaration "int iVar15;" (primitive_type "int") (identifier "iVar15") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "undefined4 uVar16;" (type_identifier "undefined4") (identifier "uVar16") (; ";")) (declaration "int *piVar17;" (primitive_type "int") (pointer_declarator "*piVar17" (* "*") (identifier "piVar17")) (; ";")) (declaration "uint uVar18;" (type_identifier "uint") (identifier "uVar18") (; ";")) (declaration "int iVar19;" (primitive_type "int") (identifier "iVar19") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "stat64 local_80;" (type_identifier "stat64") (identifier "local_80") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1af29;" (assignment_expression "uStack_14 = 0x1af29" (identifier "uStack_14") (= "=") (number_literal "0x1af29")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "__path = (char *)FUN_0003dbd0(0,param_1);" (assignment_expression "__path = (char *)FUN_0003dbd0(0,param_1)" (identifier "__path") (= "=") (cast_expression "(char *)FUN_0003dbd0(0,param_1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003dbd0(0,param_1)" (identifier "FUN_0003dbd0") (argument_list "(0,param_1)" (( "(") (number_literal "0") (, ",") (identifier "param_1") () ")"))))) (; ";")) (expression_statement "__path_00 = (char *)FUN_0003dbd0(0,param_1);" (assignment_expression "__path_00 = (char *)FUN_0003dbd0(0,param_1)" (identifier "__path_00") (= "=") (cast_expression "(char *)FUN_0003dbd0(0,param_1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003dbd0(0,param_1)" (identifier "FUN_0003dbd0") (argument_list "(0,param_1)" (( "(") (number_literal "0") (, ",") (identifier "param_1") () ")"))))) (; ";")) (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" (identifier "sVar3") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "sVar4 = strlen(PTR_DAT_0007b0e4);" (assignment_expression "sVar4 = strlen(PTR_DAT_0007b0e4)" (identifier "sVar4") (= "=") (call_expression "strlen(PTR_DAT_0007b0e4)" (identifier "strlen") (argument_list "(PTR_DAT_0007b0e4)" (( "(") (identifier "PTR_DAT_0007b0e4") () ")")))) (; ";")) (expression_statement "sVar5 = strlen(PTR_DAT_0007b0e0);" (assignment_expression "sVar5 = strlen(PTR_DAT_0007b0e0)" (identifier "sVar5") (= "=") (call_expression "strlen(PTR_DAT_0007b0e0)" (identifier "strlen") (argument_list "(PTR_DAT_0007b0e0)" (( "(") (identifier "PTR_DAT_0007b0e0") () ")")))) (; ";")) (expression_statement "iVar19 = sVar3 + 3 + sVar4 + sVar5;" (assignment_expression "iVar19 = sVar3 + 3 + sVar4 + sVar5" (identifier "iVar19") (= "=") (binary_expression "sVar3 + 3 + sVar4 + sVar5" (binary_expression "sVar3 + 3 + sVar4" (binary_expression "sVar3 + 3" (identifier "sVar3") (+ "+") (number_literal "3")) (+ "+") (identifier "sVar4")) (+ "+") (identifier "sVar5"))) (; ";")) (expression_statement "__filename = (char *)FUN_0003da70(iVar19);" (assignment_expression "__filename = (char *)FUN_0003da70(iVar19)" (identifier "__filename") (= "=") (cast_expression "(char *)FUN_0003da70(iVar19)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003da70(iVar19)" (identifier "FUN_0003da70") (argument_list "(iVar19)" (( "(") (identifier "iVar19") () ")"))))) (; ";")) (expression_statement "puVar1 = PTR_DAT_0007b0e0;" (assignment_expression "puVar1 = PTR_DAT_0007b0e0" (identifier "puVar1") (= "=") (identifier "PTR_DAT_0007b0e0")) (; ";")) (expression_statement "pcVar6 = __xpg_basename(__path_00);" (assignment_expression "pcVar6 = __xpg_basename(__path_00)" (identifier "pcVar6") (= "=") (call_expression "__xpg_basename(__path_00)" (identifier "__xpg_basename") (argument_list "(__path_00)" (( "(") (identifier "__path_00") () ")")))) (; ";")) (expression_statement "puVar2 = PTR_DAT_0007b0e4;" (assignment_expression "puVar2 = PTR_DAT_0007b0e4" (identifier "puVar2") (= "=") (identifier "PTR_DAT_0007b0e4")) (; ";")) (expression_statement "pcVar7 = dirname(__path);" (assignment_expression "pcVar7 = dirname(__path)" (identifier "pcVar7") (= "=") (call_expression "dirname(__path)" (identifier "dirname") (argument_list "(__path)" (( "(") (identifier "__path") () ")")))) (; ";")) (expression_statement "__snprintf_chk(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1);" (call_expression "__snprintf_chk(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1)" (identifier "__snprintf_chk") (argument_list "(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1)" (( "(") (identifier "__filename") (, ",") (identifier "iVar19") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (string_literal ""%s/%s%s%s"" (" """) (string_content "%s/%s%s%s") (" """)) (, ",") (identifier "pcVar7") (, ",") (identifier "puVar2") (, ",") (identifier "pcVar6") (, ",") (identifier "puVar1") () ")"))) (; ";")) (expression_statement "iVar19 = __xstat64(3,__filename,&local_80);" (assignment_expression "iVar19 = __xstat64(3,__filename,&local_80)" (identifier "iVar19") (= "=") (call_expression "__xstat64(3,__filename,&local_80)" (identifier "__xstat64") (argument_list "(3,__filename,&local_80)" (( "(") (number_literal "3") (, ",") (identifier "__filename") (, ",") (pointer_expression "&local_80" (& "&") (identifier "local_80")) () ")")))) (; ";")) (if_statement "if (iVar19 == -1) {\nLAB_0001b1ea:\n    iVar19 = FUN_0001aac0(__filename,param_1,0);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar19) goto LAB_0001b21d;\n  }\n  else {\n    iVar19 = open64(__filename,0);\n    if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar19 = -1;\n  }" (if "if") (parenthesized_expression "(iVar19 == -1)" (( "(") (binary_expression "iVar19 == -1" (identifier "iVar19") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\nLAB_0001b1ea:\n    iVar19 = FUN_0001aac0(__filename,param_1,0);\n    free(__path);\n    free(__path_00);\n    if (0 < iVar19) goto LAB_0001b21d;\n  }" ({ "{") (labeled_statement "LAB_0001b1ea:\n    iVar19 = FUN_0001aac0(__filename,param_1,0);" (statement_identifier "LAB_0001b1ea") (: ":") (expression_statement "iVar19 = FUN_0001aac0(__filename,param_1,0);" (assignment_expression "iVar19 = FUN_0001aac0(__filename,param_1,0)" (identifier "iVar19") (= "=") (call_expression "FUN_0001aac0(__filename,param_1,0)" (identifier "FUN_0001aac0") (argument_list "(__filename,param_1,0)" (( "(") (identifier "__filename") (, ",") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";"))) (expression_statement "free(__path);" (call_expression "free(__path)" (identifier "free") (argument_list "(__path)" (( "(") (identifier "__path") () ")"))) (; ";")) (expression_statement "free(__path_00);" (call_expression "free(__path_00)" (identifier "free") (argument_list "(__path_00)" (( "(") (identifier "__path_00") () ")"))) (; ";")) (if_statement "if (0 < iVar19) goto LAB_0001b21d;" (if "if") (parenthesized_expression "(0 < iVar19)" (( "(") (binary_expression "0 < iVar19" (number_literal "0") (< "<") (identifier "iVar19")) () ")")) (goto_statement "goto LAB_0001b21d;" (goto "goto") (statement_identifier "LAB_0001b21d") (; ";"))) (} "}")) (else_clause "else {\n    iVar19 = open64(__filename,0);\n    if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar19 = -1;\n  }" (else "else") (compound_statement "{\n    iVar19 = open64(__filename,0);\n    if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }\n    free(__path);\n    free(__path_00);\n    iVar19 = -1;\n  }" ({ "{") (expression_statement "iVar19 = open64(__filename,0);" (assignment_expression "iVar19 = open64(__filename,0)" (identifier "iVar19") (= "=") (call_expression "open64(__filename,0)" (identifier "open64") (argument_list "(__filename,0)" (( "(") (identifier "__filename") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar19 < 0) {\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }\n    else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }" (if "if") (parenthesized_expression "(iVar19 < 0)" (( "(") (binary_expression "iVar19 < 0" (identifier "iVar19") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      piVar17 = __errno_location();\n      pcVar6 = strerror(*piVar17);\n      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);\n      FUN_00040b60(2,uVar16,__filename,pcVar6);\n    }" ({ "{") (expression_statement "piVar17 = __errno_location();" (assignment_expression "piVar17 = __errno_location()" (identifier "piVar17") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar6 = strerror(*piVar17);" (assignment_expression "pcVar6 = strerror(*piVar17)" (identifier "pcVar6") (= "=") (call_expression "strerror(*piVar17)" (identifier "strerror") (argument_list "(*piVar17)" (( "(") (pointer_expression "*piVar17" (* "*") (identifier "piVar17")) () ")")))) (; ";")) (expression_statement "uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);" (assignment_expression "uVar16 = dcgettext(0,"Error opening lock file %s: %s",5)" (identifier "uVar16") (= "=") (call_expression "dcgettext(0,"Error opening lock file %s: %s",5)" (identifier "dcgettext") (argument_list "(0,"Error opening lock file %s: %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Error opening lock file %s: %s"" (" """) (string_content "Error opening lock file %s: %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00040b60(2,uVar16,__filename,pcVar6);" (call_expression "FUN_00040b60(2,uVar16,__filename,pcVar6)" (identifier "FUN_00040b60") (argument_list "(2,uVar16,__filename,pcVar6)" (( "(") (number_literal "2") (, ",") (identifier "uVar16") (, ",") (identifier "__filename") (, ",") (identifier "pcVar6") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }" (else "else") (compound_statement "{\n      uVar18 = 0;\n      pvVar8 = (void *)FUN_0003da70(0x2000);\n      do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);\n      close(iVar19);\n      if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }\n    }" ({ "{") (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" (identifier "uVar18") (= "=") (number_literal "0")) (; ";")) (expression_statement "pvVar8 = (void *)FUN_0003da70(0x2000);" (assignment_expression "pvVar8 = (void *)FUN_0003da70(0x2000)" (identifier "pvVar8") (= "=") (cast_expression "(void *)FUN_0003da70(0x2000)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003da70(0x2000)" (identifier "FUN_0003da70") (argument_list "(0x2000)" (( "(") (number_literal "0x2000") () ")"))))) (; ";")) (do_statement "do {\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      } while (uVar18 < 0x2000);" (do "do") (compound_statement "{\n        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);\n        uVar18 = uVar18 + sVar9;\n        if (sVar9 == 0) break;\n      }" ({ "{") (expression_statement "sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);" (assignment_expression "sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18)" (identifier "sVar9") (= "=") (call_expression "read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18)" (identifier "read") (argument_list "(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18)" (( "(") (identifier "iVar19") (, ",") (cast_expression "(void *)((int)pvVar8 + uVar18)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar8 + uVar18)" (( "(") (binary_expression "(int)pvVar8 + uVar18" (cast_expression "(int)pvVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar8")) (+ "+") (identifier "uVar18")) () ")"))) (, ",") (binary_expression "0x2000 - uVar18" (number_literal "0x2000") (- "-") (identifier "uVar18")) () ")")))) (; ";")) (expression_statement "uVar18 = uVar18 + sVar9;" (assignment_expression "uVar18 = uVar18 + sVar9" (identifier "uVar18") (= "=") (binary_expression "uVar18 + sVar9" (identifier "uVar18") (+ "+") (identifier "sVar9"))) (; ";")) (if_statement "if (sVar9 == 0) break;" (if "if") (parenthesized_expression "(sVar9 == 0)" (( "(") (binary_expression "sVar9 == 0" (identifier "sVar9") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(uVar18 < 0x2000)" (( "(") (binary_expression "uVar18 < 0x2000" (identifier "uVar18") (< "<") (number_literal "0x2000")) () ")")) (; ";")) (expression_statement "close(iVar19);" (call_expression "close(iVar19)" (identifier "close") (argument_list "(iVar19)" (( "(") (identifier "iVar19") () ")"))) (; ";")) (if_statement "if (uVar18 < 0x30) {\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }\n      else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }" (if "if") (parenthesized_expression "(uVar18 < 0x30)" (( "(") (binary_expression "uVar18 < 0x30" (identifier "uVar18") (< "<") (number_literal "0x30")) () ")")) (compound_statement "{\n        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);\n        FUN_00040b60(2,uVar16,__filename);\n        free(pvVar8);\n      }" ({ "{") (expression_statement "uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);" (assignment_expression "uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5)" (identifier "uVar16") (= "=") (call_expression "dcgettext(0,"Error reading lock file %s: Not enough data read",5)" (identifier "dcgettext") (argument_list "(0,"Error reading lock file %s: Not enough data read",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Error reading lock file %s: Not enough data read"" (" """) (string_content "Error reading lock file %s: Not enough data read") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00040b60(2,uVar16,__filename);" (call_expression "FUN_00040b60(2,uVar16,__filename)" (identifier "FUN_00040b60") (argument_list "(2,uVar16,__filename)" (( "(") (number_literal "2") (, ",") (identifier "uVar16") (, ",") (identifier "__filename") () ")"))) (; ";")) (expression_statement "free(pvVar8);" (call_expression "free(pvVar8)" (identifier "free") (argument_list "(pvVar8)" (( "(") (identifier "pvVar8") () ")"))) (; ";")) (} "}")) (else_clause "else {\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }" (else "else") (compound_statement "{\n        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);\n        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);\n        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);\n        free(pvVar8);\n        pvVar8 = (void *)FUN_0003da70(0xb);\n        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);\n        DAT_0007b074 = 0;\n        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;\n        iVar19 = *(int *)PTR_COLS_0007af78;\n        iVar10 = FUN_0003e0c0(pcVar6);\n        iVar11 = FUN_0003e0c0(&DAT_0007b564);\n        iVar12 = FUN_0003e0c0(&DAT_0007b578);\n        iVar13 = FUN_0003e0c0(pvVar8);\n        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;\n        if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }\n        sVar3 = strlen(pcVar6);\n        sVar4 = strlen(pcVar7);\n        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);\n        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);\n        free(pcVar7);\n        free(pvVar8);\n        iVar19 = FUN_0002fb20(0,__ptr);\n        free(__ptr);\n        if (0 < iVar19) goto LAB_0001b1ea;\n        FUN_0003fd80();\n      }" ({ "{") (expression_statement "strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);" (call_expression "strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10)" (identifier "strncpy") (argument_list "(&DAT_0007b578,(char *)((int)pvVar8 + 2),10)" (( "(") (pointer_expression "&DAT_0007b578" (& "&") (identifier "DAT_0007b578")) (, ",") (cast_expression "(char *)((int)pvVar8 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar8 + 2)" (( "(") (binary_expression "(int)pvVar8 + 2" (cast_expression "(int)pvVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar8")) (+ "+") (number_literal "2")) () ")"))) (, ",") (number_literal "10") () ")"))) (; ";")) (expression_statement "uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);" (assignment_expression "uVar16 = *(undefined4 *)((int)pvVar8 + 0x18)" (identifier "uVar16") (= "=") (pointer_expression "*(undefined4 *)((int)pvVar8 + 0x18)" (* "*") (cast_expression "(undefined4 *)((int)pvVar8 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar8 + 0x18)" (( "(") (binary_expression "(int)pvVar8 + 0x18" (cast_expression "(int)pvVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar8")) (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);" (call_expression "strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10)" (identifier "strncpy") (argument_list "(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10)" (( "(") (pointer_expression "&DAT_0007b564" (& "&") (identifier "DAT_0007b564")) (, ",") (cast_expression "(char *)((int)pvVar8 + 0x1c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar8 + 0x1c)" (( "(") (binary_expression "(int)pvVar8 + 0x1c" (cast_expression "(int)pvVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar8")) (+ "+") (number_literal "0x1c")) () ")"))) (, ",") (number_literal "0x10") () ")"))) (; ";")) (expression_statement "free(pvVar8);" (call_expression "free(pvVar8)" (identifier "free") (argument_list "(pvVar8)" (( "(") (identifier "pvVar8") () ")"))) (; ";")) (expression_statement "pvVar8 = (void *)FUN_0003da70(0xb);" (assignment_expression "pvVar8 = (void *)FUN_0003da70(0xb)" (identifier "pvVar8") (= "=") (cast_expression "(void *)FUN_0003da70(0xb)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003da70(0xb)" (identifier "FUN_0003da70") (argument_list "(0xb)" (( "(") (number_literal "0xb") () ")"))))) (; ";")) (expression_statement "__sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);" (call_expression "__sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16)" (identifier "__sprintf_chk") (argument_list "(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16)" (( "(") (identifier "pvVar8") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (pointer_expression "&DAT_0005b4d7" (& "&") (identifier "DAT_0005b4d7")) (, ",") (identifier "uVar16") () ")"))) (; ";")) (expression_statement "DAT_0007b074 = 0;" (assignment_expression "DAT_0007b074 = 0" (identifier "DAT_0007b074") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)\n        ;" (assignment_expression "pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)" (identifier "pcVar6") (= "=") (cast_expression "(char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)" (identifier "dcgettext") (argument_list "(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)" (( "(") (number_literal "0") (, ",") (string_literal ""File %s is being edited (by %s with %s, PID %s); continue?"" (" """) (string_content "File %s is being edited (by %s with %s, PID %s); continue?") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";")) (expression_statement "iVar19 = *(int *)PTR_COLS_0007af78;" (assignment_expression "iVar19 = *(int *)PTR_COLS_0007af78" (identifier "iVar19") (= "=") (pointer_expression "*(int *)PTR_COLS_0007af78" (* "*") (cast_expression "(int *)PTR_COLS_0007af78" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_COLS_0007af78")))) (; ";")) (expression_statement "iVar10 = FUN_0003e0c0(pcVar6);" (assignment_expression "iVar10 = FUN_0003e0c0(pcVar6)" (identifier "iVar10") (= "=") (call_expression "FUN_0003e0c0(pcVar6)" (identifier "FUN_0003e0c0") (argument_list "(pcVar6)" (( "(") (identifier "pcVar6") () ")")))) (; ";")) (expression_statement "iVar11 = FUN_0003e0c0(&DAT_0007b564);" (assignment_expression "iVar11 = FUN_0003e0c0(&DAT_0007b564)" (identifier "iVar11") (= "=") (call_expression "FUN_0003e0c0(&DAT_0007b564)" (identifier "FUN_0003e0c0") (argument_list "(&DAT_0007b564)" (( "(") (pointer_expression "&DAT_0007b564" (& "&") (identifier "DAT_0007b564")) () ")")))) (; ";")) (expression_statement "iVar12 = FUN_0003e0c0(&DAT_0007b578);" (assignment_expression "iVar12 = FUN_0003e0c0(&DAT_0007b578)" (identifier "iVar12") (= "=") (call_expression "FUN_0003e0c0(&DAT_0007b578)" (identifier "FUN_0003e0c0") (argument_list "(&DAT_0007b578)" (( "(") (pointer_expression "&DAT_0007b578" (& "&") (identifier "DAT_0007b578")) () ")")))) (; ";")) (expression_statement "iVar13 = FUN_0003e0c0(pvVar8);" (assignment_expression "iVar13 = FUN_0003e0c0(pvVar8)" (identifier "iVar13") (= "=") (call_expression "FUN_0003e0c0(pvVar8)" (identifier "FUN_0003e0c0") (argument_list "(pvVar8)" (( "(") (identifier "pvVar8") () ")")))) (; ";")) (expression_statement "uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;" (assignment_expression "uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13" (identifier "uVar18") (= "=") (binary_expression "(((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13" (parenthesized_expression "(((iVar19 + 7) - (iVar10 + iVar11)) - iVar12)" (( "(") (binary_expression "((iVar19 + 7) - (iVar10 + iVar11)) - iVar12" (parenthesized_expression "((iVar19 + 7) - (iVar10 + iVar11))" (( "(") (binary_expression "(iVar19 + 7) - (iVar10 + iVar11)" (parenthesized_expression "(iVar19 + 7)" (( "(") (binary_expression "iVar19 + 7" (identifier "iVar19") (+ "+") (number_literal "7")) () ")")) (- "-") (parenthesized_expression "(iVar10 + iVar11)" (( "(") (binary_expression "iVar10 + iVar11" (identifier "iVar10") (+ "+") (identifier "iVar11")) () ")"))) () ")")) (- "-") (identifier "iVar12")) () ")")) (- "-") (identifier "iVar13"))) (; ";")) (if_statement "if ((int)uVar18 < 4) {\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }\n        else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }" (if "if") (parenthesized_expression "((int)uVar18 < 4)" (( "(") (binary_expression "(int)uVar18 < 4" (cast_expression "(int)uVar18" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar18")) (< "<") (number_literal "4")) () ")")) (compound_statement "{\n          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);\n        }" ({ "{") (expression_statement "pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);" (assignment_expression "pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f)" (identifier "pcVar7") (= "=") (cast_expression "(char *)FUN_0003dbd0(0,&DAT_0005c41f)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003dbd0(0,&DAT_0005c41f)" (identifier "FUN_0003dbd0") (argument_list "(0,&DAT_0005c41f)" (( "(") (number_literal "0") (, ",") (pointer_expression "&DAT_0005c41f" (& "&") (identifier "DAT_0005c41f")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }" (else "else") (compound_statement "{\n          uVar14 = FUN_0003e0c0(param_1);\n          if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }\n        }" ({ "{") (expression_statement "uVar14 = FUN_0003e0c0(param_1);" (assignment_expression "uVar14 = FUN_0003e0c0(param_1)" (identifier "uVar14") (= "=") (call_expression "FUN_0003e0c0(param_1)" (identifier "FUN_0003e0c0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (uVar18 < uVar14) {\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }\n          else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }" (if "if") (parenthesized_expression "(uVar18 < uVar14)" (( "(") (binary_expression "uVar18 < uVar14" (identifier "uVar18") (< "<") (identifier "uVar14")) () ")")) (compound_statement "{\n            iVar15 = FUN_0003e0c0(param_1);\n            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);\n            sVar3 = strlen(__s);\n            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);\n            builtin_strncpy(pcVar7,"...",4);\n            strcpy(pcVar7 + 3,__s);\n            free(__s);\n          }" ({ "{") (expression_statement "iVar15 = FUN_0003e0c0(param_1);" (assignment_expression "iVar15 = FUN_0003e0c0(param_1)" (identifier "iVar15") (= "=") (call_expression "FUN_0003e0c0(param_1)" (identifier "FUN_0003e0c0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "__s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0);" (assignment_expression "__s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0)" (identifier "__s") (= "=") (cast_expression "(char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0)" (identifier "FUN_0003fe90") (argument_list "(param_1,iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15,\n                                       uVar18,0)" (( "(") (identifier "param_1") (, ",") (binary_expression "iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7)) + iVar15" (binary_expression "iVar13 + iVar12 + iVar11 + 3 +\n                                                                 (iVar10 - (iVar19 + 7))" (binary_expression "iVar13 + iVar12 + iVar11 + 3" (binary_expression "iVar13 + iVar12 + iVar11" (binary_expression "iVar13 + iVar12" (identifier "iVar13") (+ "+") (identifier "iVar12")) (+ "+") (identifier "iVar11")) (+ "+") (number_literal "3")) (+ "+") (parenthesized_expression "(iVar10 - (iVar19 + 7))" (( "(") (binary_expression "iVar10 - (iVar19 + 7)" (identifier "iVar10") (- "-") (parenthesized_expression "(iVar19 + 7)" (( "(") (binary_expression "iVar19 + 7" (identifier "iVar19") (+ "+") (number_literal "7")) () ")"))) () ")"))) (+ "+") (identifier "iVar15")) (, ",") (identifier "uVar18") (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" (identifier "sVar3") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "pcVar7 = (char *)FUN_0003da70(sVar3 + 4);" (assignment_expression "pcVar7 = (char *)FUN_0003da70(sVar3 + 4)" (identifier "pcVar7") (= "=") (cast_expression "(char *)FUN_0003da70(sVar3 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003da70(sVar3 + 4)" (identifier "FUN_0003da70") (argument_list "(sVar3 + 4)" (( "(") (binary_expression "sVar3 + 4" (identifier "sVar3") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "builtin_strncpy(pcVar7,"...",4);" (call_expression "builtin_strncpy(pcVar7,"...",4)" (identifier "builtin_strncpy") (argument_list "(pcVar7,"...",4)" (( "(") (identifier "pcVar7") (, ",") (string_literal ""..."" (" """) (string_content "...") (" """)) (, ",") (number_literal "4") () ")"))) (; ";")) (expression_statement "strcpy(pcVar7 + 3,__s);" (call_expression "strcpy(pcVar7 + 3,__s)" (identifier "strcpy") (argument_list "(pcVar7 + 3,__s)" (( "(") (binary_expression "pcVar7 + 3" (identifier "pcVar7") (+ "+") (number_literal "3")) (, ",") (identifier "__s") () ")"))) (; ";")) (expression_statement "free(__s);" (call_expression "free(__s)" (identifier "free") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (} "}")) (else_clause "else {\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }" (else "else") (compound_statement "{\n            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);\n          }" ({ "{") (expression_statement "pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);" (assignment_expression "pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0)" (identifier "pcVar7") (= "=") (cast_expression "(char *)FUN_0003fe90(param_1,0,uVar18,0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003fe90(param_1,0,uVar18,0)" (identifier "FUN_0003fe90") (argument_list "(param_1,0,uVar18,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (identifier "uVar18") (, ",") (number_literal "0") () ")"))))) (; ";")) (} "}")))) (} "}")))) (expression_statement "sVar3 = strlen(pcVar6);" (assignment_expression "sVar3 = strlen(pcVar6)" (identifier "sVar3") (= "=") (call_expression "strlen(pcVar6)" (identifier "strlen") (argument_list "(pcVar6)" (( "(") (identifier "pcVar6") () ")")))) (; ";")) (expression_statement "sVar4 = strlen(pcVar7);" (assignment_expression "sVar4 = strlen(pcVar7)" (identifier "sVar4") (= "=") (call_expression "strlen(pcVar7)" (identifier "strlen") (argument_list "(pcVar7)" (( "(") (identifier "pcVar7") () ")")))) (; ";")) (expression_statement "__ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);" (assignment_expression "__ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4)" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_0003da70(sVar3 + 0x1d + sVar4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003da70(sVar3 + 0x1d + sVar4)" (identifier "FUN_0003da70") (argument_list "(sVar3 + 0x1d + sVar4)" (( "(") (binary_expression "sVar3 + 0x1d + sVar4" (binary_expression "sVar3 + 0x1d" (identifier "sVar3") (+ "+") (number_literal "0x1d")) (+ "+") (identifier "sVar4")) () ")"))))) (; ";")) (expression_statement "__sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);" (call_expression "__sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8)" (identifier "__sprintf_chk") (argument_list "(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8)" (( "(") (identifier "__ptr") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (identifier "pcVar6") (, ",") (identifier "pcVar7") (, ",") (pointer_expression "&DAT_0007b564" (& "&") (identifier "DAT_0007b564")) (, ",") (pointer_expression "&DAT_0007b578" (& "&") (identifier "DAT_0007b578")) (, ",") (identifier "pvVar8") () ")"))) (; ";")) (expression_statement "free(pcVar7);" (call_expression "free(pcVar7)" (identifier "free") (argument_list "(pcVar7)" (( "(") (identifier "pcVar7") () ")"))) (; ";")) (expression_statement "free(pvVar8);" (call_expression "free(pvVar8)" (identifier "free") (argument_list "(pvVar8)" (( "(") (identifier "pvVar8") () ")"))) (; ";")) (expression_statement "iVar19 = FUN_0002fb20(0,__ptr);" (assignment_expression "iVar19 = FUN_0002fb20(0,__ptr)" (identifier "iVar19") (= "=") (call_expression "FUN_0002fb20(0,__ptr)" (identifier "FUN_0002fb20") (argument_list "(0,__ptr)" (( "(") (number_literal "0") (, ",") (identifier "__ptr") () ")")))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (if_statement "if (0 < iVar19) goto LAB_0001b1ea;" (if "if") (parenthesized_expression "(0 < iVar19)" (( "(") (binary_expression "0 < iVar19" (number_literal "0") (< "<") (identifier "iVar19")) () ")")) (goto_statement "goto LAB_0001b1ea;" (goto "goto") (statement_identifier "LAB_0001b1ea") (; ";"))) (expression_statement "FUN_0003fd80();" (call_expression "FUN_0003fd80()" (identifier "FUN_0003fd80") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (} "}")))) (expression_statement "free(__path);" (call_expression "free(__path)" (identifier "free") (argument_list "(__path)" (( "(") (identifier "__path") () ")"))) (; ";")) (expression_statement "free(__path_00);" (call_expression "free(__path_00)" (identifier "free") (argument_list "(__path_00)" (( "(") (identifier "__path_00") () ")"))) (; ";")) (expression_statement "iVar19 = -1;" (assignment_expression "iVar19 = -1" (identifier "iVar19") (= "=") (number_literal "-1")) (; ";")) (} "}")))) (expression_statement "free(__filename);" (call_expression "free(__filename)" (identifier "free") (argument_list "(__filename)" (( "(") (identifier "__filename") () ")"))) (; ";")) (labeled_statement "LAB_0001b21d:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar19;\n  }" (statement_identifier "LAB_0001b21d") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar19;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return iVar19;\n  }" ({ "{") (return_statement "return iVar19;" (return "return") (identifier "iVar19") (; ";")) (} "}")))) (expression_statement "FUN_0005a8b0();" (call_expression "FUN_0005a8b0()" (identifier "FUN_0005a8b0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int function_1(char *filename)

{
  int var_37;
  type_1 uVar2;
  char *__path;
  char *__path_00;
  size_t var_4;
  size_t var_5;
  size_t var_6;
  char *__filename;
  char *var_34;
  char *pcVar7;
  int var_12;
  void *__ptr;
  ssize_t var_22;
  char *pcVar10;
  char *pcVar11;
  size_t var_27;
  size_t var_28;
  size_t var_29;
  size_t var_30;
  int *piVar16;
  type_2 var_21;
  size_t var_26;
  int var_1;
  type_3 fileinfo;
  
  var_37 = *(int *)(var_1 + 0x14);
  __path = var_2((char *)0x0,filename);
  __path_00 = var_2((char *)0x0,filename);
  var_4 = var_3(filename);
  var_5 = var_3(locking_prefix);
  var_6 = var_3(locking_suffix);
  var_26 = var_4 + 3 + var_5 + var_6;
  __filename = (char *)var_7(var_26);
  pcVar10 = locking_suffix;
  var_34 = var_8(__path_00);
  pcVar11 = locking_prefix;
  pcVar7 = var_9(__path);
  var_10(__filename,var_26,1,0xffffffff,"%s/%s%s%s",pcVar7,pcVar11,var_34,pcVar10);
  var_12 = var_11(3,__filename,(type_4 *)&fileinfo);
  if (var_12 == -1) {
LAB_0001b1ea:
    var_12 = var_13(__filename,filename,false);
    var_14(__path);
    var_14(__path_00);
    if (0 < var_12) goto LAB_0001b21d;
  }
  else {
    var_12 = var_15(__filename,0);
    if (var_12 < 0) {
      piVar16 = var_16();
      pcVar10 = var_17(*piVar16);
      pcVar11 = (char *)var_18(0,"Error opening lock file %s: %s",5);
      var_19(MILD,pcVar11,__filename,pcVar10);
    }
    else {
      var_21 = 0;
      __ptr = var_7(0x2000);
      do {
        var_22 = var_20(var_12,(void *)((int)__ptr + var_21),0x2000 - var_21);
        var_21 = var_21 + var_22;
        if (var_22 == 0) break;
      } while (var_21 < 0x2000);
      var_23(var_12);
      if (var_21 < 0x30) {
        pcVar10 = (char *)var_18(0,"Error reading lock file %s: Not enough data read",5);
        var_19(MILD,pcVar10,__filename);
        var_14(__ptr);
      }
      else {
        strncpy(function_1::lockprog,(char *)((int)__ptr + 2),10);
        uVar2 = *(type_1 *)((int)__ptr + 0x18);
        strncpy(function_1::lockuser,(char *)((int)__ptr + 0x1c),0x10);
        var_14(__ptr);
        pcVar10 = (char *)var_7(0xb);
        var_24(pcVar10,1,0xffffffff,&DAT_0005b4d7,uVar2);
        as_an_at = false;
        pcVar11 = (char *)var_18(0,"File %s is being edited (by %s with %s, PID %s); continue?",5
                                   );
        var_12 = *(int *)PTR_COLS_0007af78;
        var_26 = var_25(pcVar11);
        var_27 = var_25(function_1::lockuser);
        var_28 = var_25(function_1::lockprog);
        var_29 = var_25(pcVar10);
        var_21 = (((var_12 + 7) - (var_26 + var_27)) - var_28) - var_29;
        if ((int)var_21 < 4) {
          var_34 = var_2((char *)0x0,"_");
        }
        else {
          var_30 = var_25(filename);
          if (var_21 < var_30) {
            var_30 = var_25(filename);
            pcVar7 = var_31(filename,var_29 + var_28 + var_27 + 3 + (var_26 - (var_12 + 7)) +
                                             var_30,var_21,false);
            var_4 = var_3(pcVar7);
            var_34 = (char *)var_7(var_4 + 4);
            var_32(var_34,"...",4);
            var_33(var_34 + 3,pcVar7);
            var_14(pcVar7);
          }
          else {
            var_34 = var_31(filename,0,var_21,false);
          }
        }
        var_4 = var_3(pcVar11);
        var_5 = var_3(var_34);
        pcVar7 = (char *)var_7(var_4 + 0x1d + var_5);
        var_24(pcVar7,1,0xffffffff,pcVar11,var_34,function_1::lockuser,function_1::lockprog
                      ,pcVar10);
        var_14(var_34);
        var_14(pcVar10);
        var_12 = var_35(false,pcVar7);
        var_14(pcVar7);
        if (0 < var_12) goto LAB_0001b1ea;
        var_36();
      }
    }
    var_14(__path);
    var_14(__path_00);
    var_12 = -1;
  }
  var_14(__filename);
LAB_0001b21d:
  if (var_37 == *(int *)(var_1 + 0x14)) {
    return var_12;
  }
                    /* WARNING: Subroutine does not return */
  var_38();
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int MASKED(char *param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  char *__path;
  char *__path_00;
  size_t sVar3;
  size_t sVar4;
  size_t sVar5;
  char *__filename;
  char *pcVar6;
  char *pcVar7;
  void *pvVar8;
  ssize_t sVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  int iVar13;
  void *__ptr;
  uint uVar14;
  int iVar15;
  char *__s;
  undefined4 uVar16;
  int *piVar17;
  uint uVar18;
  int iVar19;
  int in_GS_OFFSET;
  stat64 local_80;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1af29;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  __path = (char *)FUN_0003dbd0(0,param_1);
  __path_00 = (char *)FUN_0003dbd0(0,param_1);
  sVar3 = strlen(param_1);
  sVar4 = strlen(PTR_DAT_0007b0e4);
  sVar5 = strlen(PTR_DAT_0007b0e0);
  iVar19 = sVar3 + 3 + sVar4 + sVar5;
  __filename = (char *)FUN_0003da70(iVar19);
  puVar1 = PTR_DAT_0007b0e0;
  pcVar6 = __xpg_basename(__path_00);
  puVar2 = PTR_DAT_0007b0e4;
  pcVar7 = dirname(__path);
  __snprintf_chk(__filename,iVar19,1,0xffffffff,"%s/%s%s%s",pcVar7,puVar2,pcVar6,puVar1);
  iVar19 = __xstat64(3,__filename,&local_80);
  if (iVar19 == -1) {
LAB_0001b1ea:
    iVar19 = FUN_0001aac0(__filename,param_1,0);
    free(__path);
    free(__path_00);
    if (0 < iVar19) goto LAB_0001b21d;
  }
  else {
    iVar19 = open64(__filename,0);
    if (iVar19 < 0) {
      piVar17 = __errno_location();
      pcVar6 = strerror(*piVar17);
      uVar16 = dcgettext(0,"Error opening lock file %s: %s",5);
      FUN_00040b60(2,uVar16,__filename,pcVar6);
    }
    else {
      uVar18 = 0;
      pvVar8 = (void *)FUN_0003da70(0x2000);
      do {
        sVar9 = read(iVar19,(void *)((int)pvVar8 + uVar18),0x2000 - uVar18);
        uVar18 = uVar18 + sVar9;
        if (sVar9 == 0) break;
      } while (uVar18 < 0x2000);
      close(iVar19);
      if (uVar18 < 0x30) {
        uVar16 = dcgettext(0,"Error reading lock file %s: Not enough data read",5);
        FUN_00040b60(2,uVar16,__filename);
        free(pvVar8);
      }
      else {
        strncpy(&DAT_0007b578,(char *)((int)pvVar8 + 2),10);
        uVar16 = *(undefined4 *)((int)pvVar8 + 0x18);
        strncpy(&DAT_0007b564,(char *)((int)pvVar8 + 0x1c),0x10);
        free(pvVar8);
        pvVar8 = (void *)FUN_0003da70(0xb);
        __sprintf_chk(pvVar8,1,0xffffffff,&DAT_0005b4d7,uVar16);
        DAT_0007b074 = 0;
        pcVar6 = (char *)dcgettext(0,"File %s is being edited (by %s with %s, PID %s); continue?",5)
        ;
        iVar19 = *(int *)PTR_COLS_0007af78;
        iVar10 = FUN_0003e0c0(pcVar6);
        iVar11 = FUN_0003e0c0(&DAT_0007b564);
        iVar12 = FUN_0003e0c0(&DAT_0007b578);
        iVar13 = FUN_0003e0c0(pvVar8);
        uVar18 = (((iVar19 + 7) - (iVar10 + iVar11)) - iVar12) - iVar13;
        if ((int)uVar18 < 4) {
          pcVar7 = (char *)FUN_0003dbd0(0,&DAT_0005c41f);
        }
        else {
          uVar14 = FUN_0003e0c0(param_1);
          if (uVar18 < uVar14) {
            iVar15 = FUN_0003e0c0(param_1);
            __s = (char *)FUN_0003fe90(param_1,iVar13 + iVar12 + iVar11 + 3 +
                                                                 (iVar10 - (iVar19 + 7)) + iVar15,
                                       uVar18,0);
            sVar3 = strlen(__s);
            pcVar7 = (char *)FUN_0003da70(sVar3 + 4);
            builtin_strncpy(pcVar7,"...",4);
            strcpy(pcVar7 + 3,__s);
            free(__s);
          }
          else {
            pcVar7 = (char *)FUN_0003fe90(param_1,0,uVar18,0);
          }
        }
        sVar3 = strlen(pcVar6);
        sVar4 = strlen(pcVar7);
        __ptr = (void *)FUN_0003da70(sVar3 + 0x1d + sVar4);
        __sprintf_chk(__ptr,1,0xffffffff,pcVar6,pcVar7,&DAT_0007b564,&DAT_0007b578,pvVar8);
        free(pcVar7);
        free(pvVar8);
        iVar19 = FUN_0002fb20(0,__ptr);
        free(__ptr);
        if (0 < iVar19) goto LAB_0001b1ea;
        FUN_0003fd80();
      }
    }
    free(__path);
    free(__path_00);
    iVar19 = -1;
  }
  free(__filename);
LAB_0001b21d:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar19;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005a8b0();
}

