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

int logread_main(int argc,char **argv)

{
}



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

void FUN_00066d4c(undefined4 param_1,undefined4 param_2)

{
  uint uVar1;
  size_t __maxlen;
  undefined *puVar2;
  int iVar3;
  size_t sVar4;
  int iVar5;
  undefined4 extraout_ECX;
  undefined4 extraout_ECX_00;
  undefined4 extraout_ECX_01;
  undefined1 *puVar6;
  uint *__string;
  undefined4 *puVar7;
  uint uVar8;
  byte bVar9;
  undefined4 uVar10;
  undefined4 uVar11;
  undefined4 uVar12;
  uint local_34;
  
  bVar9 = 0;
  local_34 = FUN_000b23d7(param_2,&DAT_000d43d5);
  puVar6 = &DAT_000c5664;
  puVar7 = &DAT_000dc2f8;
  for (iVar5 = 0x12; iVar5 != 0; iVar5 = iVar5 + -1) {
    *(undefined1 *)puVar7 = *puVar6;
    puVar6 = puVar6 + (uint)bVar9 * -2 + 1;
    puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);
  }
  iVar5 = shmget(0x414e4547,0,0);
  if (iVar5 == -1) {
                    /* WARNING: Subroutine does not return */
    FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);
  }
  uVar10 = 0x1000;
  DAT_000dc30c = (uint *)shmat(iVar5,(void *)0x0,0x1000);
  if (DAT_000dc30c == (uint *)0x0) {
                    /* WARNING: Subroutine does not return */
    FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);
  }
  uVar11 = 0;
  uVar10 = 0;
  iVar5 = semget(0x414e4547,0,0);
  if (iVar5 == -1) {
                    /* WARNING: Subroutine does not return */
    FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);
  }
  FUN_0001b5d4();
  puVar2 = PTR_stdout_000dbfb4;
  uVar8 = DAT_000dc30c[1];
  uVar10 = extraout_ECX;
LAB_00066e30:
  do {
    uVar12 = 2;
    uVar11 = 0xdc2fe;
    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);
    if (iVar3 == -1) {
                    /* WARNING: Subroutine does not return */
      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);
    }
    uVar1 = *DAT_000dc30c;
    __maxlen = DAT_000dc30c[1];
    __string = DAT_000dc30c + 2;
    if ((local_34 & 1) == 0) {
      local_34 = (int)local_34 >> 1;
      sVar4 = strlen((char *)((int)__string + uVar8));
      uVar8 = uVar8 + sVar4;
      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {
        uVar8 = uVar8 + 1;
        if (uVar8 < uVar1) goto LAB_00066ef6;
        uVar8 = 0;
        goto LAB_00066ef6;
      }
    }
    else {
      if (uVar8 == __maxlen) {
        FUN_00066d09();
        FUN_0001a70d();
        sleep(1);
        uVar10 = extraout_ECX_01;
        goto LAB_00066e30;
      }
      do {
        while( true ) {
          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);
          sVar4 = strlen((char *)((int)__string + uVar8));
          uVar8 = sVar4 + 1 + uVar8;
          if (uVar8 < uVar1) break;
          uVar8 = 0;
          if (__maxlen == 0) goto LAB_00066ea6;
        }
LAB_00066ef6:
      } while (__maxlen != uVar8);
    }
LAB_00066ea6:
    FUN_00066d09();
    FUN_0001a70d();
    uVar10 = extraout_ECX_00;
    if (local_34 == 0) {
                    /* WARNING: Subroutine does not return */
      FUN_000b124b();
    }
  } while( true );
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x34
CALL 0x00017650
ADD EBX,0x74cc8
LEA EAX,[EBX + 0xffff89b5]
PUSH EAX
PUSH dword ptr [ESP + 0x50]
CALL 0x000b23d7
MOV dword ptr [ESP + 0x14],EAX
LEA EBP,[EBX + 0x8d8]
LEA ESI,[EBX + 0xfffe9c44]
MOV ECX,0x12
MOV EDI,EBP
MOVSB.REP ES:EDI,ESI
ADD ESP,0xc
PUSH 0x0
PUSH 0x0
PUSH 0x414e4547
CALL 0x00016310
ADD ESP,0x10
CMP EAX,-0x1
JNZ 0x00066db6
SUB ESP,0x8
LEA EAX,[EBX + 0xffff89b8]
PUSH EAX
LEA EAX,[EBX + 0xffff89bd]
PUSH EAX
CALL 0x00018fc9
PUSH EDI
PUSH 0x1000
PUSH 0x0
PUSH EAX
CALL 0x000165b0
MOV dword ptr [EBP + 0x14],EAX
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00066de4
SUB ESP,0x8
LEA EAX,[EBX + 0xffff89d5]
PUSH EAX
LEA EAX,[EBX + 0xffff89bd]
PUSH EAX
CALL 0x00018fc9
PUSH ESI
PUSH 0x0
PUSH 0x0
PUSH 0x414e4547
CALL 0x00016d60
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
INC EAX
JZ 0x00066f3a
MOV EAX,dword ptr [ESP + 0x4]
MOV dword ptr [ESP + 0x8],EAX
LEA EDX,[EBX + 0xfff8b320]
MOV EAX,0x700f44e
CALL 0x0001b5d4
MOV EAX,dword ptr [EBP + 0x14]
MOV EDI,dword ptr [EAX + 0x4]
LEA EAX,[EBP + 0x6]
MOV dword ptr [ESP + 0x14],EAX
MOV EAX,dword ptr [EBX + 0x594]
MOV dword ptr [ESP + 0x18],EAX
PUSH ECX
PUSH 0x2
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x18]
CALL 0x000166c0
ADD ESP,0x10
INC EAX
JNZ 0x00066e55
SUB ESP,0xc
LEA EAX,[EBX + 0xffff89dc]
PUSH EAX
CALL 0x00018fc9
MOV ESI,dword ptr [EBP + 0x14]
MOV EAX,dword ptr [ESI]
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [ESI + 0x4]
MOV dword ptr [ESP + 0x4],EAX
ADD ESI,0x8
MOV ECX,dword ptr [ESP + 0x8]
TEST CL,0x1
JNZ 0x00066ec7
SAR ECX,0x1
MOV dword ptr [ESP + 0x8],ECX
SUB ESP,0xc
LEA EAX,[ESI + EDI*0x1]
PUSH EAX
CALL 0x00016b40
ADD ESP,0x10
ADD EDI,EAX
CMP dword ptr [ESP + 0x10],EDI
JA 0x00066eed
SUB ESP,0x8
PUSH dword ptr [ESP + 0xc]
PUSH ESI
CALL 0x00016f70
ADD ESP,0x10
MOV EDI,EAX
CMP dword ptr [ESP + 0x4],EAX
JNZ 0x00066eed
MOV EAX,dword ptr [ESP + 0xc]
CALL 0x00066d09
CALL 0x0001a70d
MOV EAX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JNZ 0x00066e30
XOR EAX,EAX
CALL 0x000b124b
CMP EDI,dword ptr [ESP + 0x4]
JNZ 0x00066efc
MOV EAX,dword ptr [ESP + 0xc]
CALL 0x00066d09
CALL 0x0001a70d
SUB ESP,0xc
PUSH 0x1
CALL 0x000163c0
ADD ESP,0x10
JMP 0x00066e30
INC EDI
CMP dword ptr [ESP + 0x10],EDI
JA 0x00066ef6
XOR EDI,EDI
CMP dword ptr [ESP + 0x4],EDI
JZ 0x00066ea6
LEA EDX,[ESI + EDI*0x1]
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x20]
PUSH dword ptr [EAX]
PUSH EDX
MOV dword ptr [ESP + 0x2c],EDX
CALL 0x00016a50
MOV EDX,dword ptr [ESP + 0x2c]
MOV dword ptr [ESP],EDX
CALL 0x00016b40
ADD ESP,0x10
LEA EDI,[EAX + EDI*0x1 + 0x1]
CMP dword ptr [ESP + 0x10],EDI
JA 0x00066ef6
XOR EDI,EDI
MOV EDX,dword ptr [ESP + 0x4]
TEST EDX,EDX
JNZ 0x00066efc
JMP 0x00066ea6
SUB ESP,0xc
LEA EAX,[EBX + 0xfffe9c10]
PUSH EAX
CALL 0x00018fc9
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00066d4c(undefined4 param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  size_t __maxlen;\n  undefined *puVar2;\n  int iVar3;\n  size_t sVar4;\n  int iVar5;\n  undefined4 extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined4 extraout_ECX_01;\n  undefined1 *puVar6;\n  uint *__string;\n  undefined4 *puVar7;\n  uint uVar8;\n  byte bVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined4 uVar12;\n  uint local_34;\n  \n  bVar9 = 0;\n  local_34 = FUN_000b23d7(param_2,&DAT_000d43d5);\n  puVar6 = &DAT_000c5664;\n  puVar7 = &DAT_000dc2f8;\n  for (iVar5 = 0x12; iVar5 != 0; iVar5 = iVar5 + -1) {\n    *(undefined1 *)puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar9 * -2 + 1;\n    puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);\n  }\n  iVar5 = shmget(0x414e4547,0,0);\n  if (iVar5 == -1) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);\n  }\n  uVar10 = 0x1000;\n  DAT_000dc30c = (uint *)shmat(iVar5,(void *)0x0,0x1000);\n  if (DAT_000dc30c == (uint *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);\n  }\n  uVar11 = 0;\n  uVar10 = 0;\n  iVar5 = semget(0x414e4547,0,0);\n  if (iVar5 == -1) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);\n  }\n  FUN_0001b5d4();\n  puVar2 = PTR_stdout_000dbfb4;\n  uVar8 = DAT_000dc30c[1];\n  uVar10 = extraout_ECX;\nLAB_00066e30:\n  do {\n    uVar12 = 2;\n    uVar11 = 0xdc2fe;\n    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);\n    if (iVar3 == -1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }\n    uVar1 = *DAT_000dc30c;\n    __maxlen = DAT_000dc30c[1];\n    __string = DAT_000dc30c + 2;\n    if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }\nLAB_00066ea6:\n    FUN_00066d09();\n    FUN_0001a70d();\n    uVar10 = extraout_ECX_00;\n    if (local_34 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000b124b();\n    }\n  } while( true );\n}\n\n" comment (function_definition "void FUN_00066d4c(undefined4 param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  size_t __maxlen;\n  undefined *puVar2;\n  int iVar3;\n  size_t sVar4;\n  int iVar5;\n  undefined4 extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined4 extraout_ECX_01;\n  undefined1 *puVar6;\n  uint *__string;\n  undefined4 *puVar7;\n  uint uVar8;\n  byte bVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined4 uVar12;\n  uint local_34;\n  \n  bVar9 = 0;\n  local_34 = FUN_000b23d7(param_2,&DAT_000d43d5);\n  puVar6 = &DAT_000c5664;\n  puVar7 = &DAT_000dc2f8;\n  for (iVar5 = 0x12; iVar5 != 0; iVar5 = iVar5 + -1) {\n    *(undefined1 *)puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar9 * -2 + 1;\n    puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);\n  }\n  iVar5 = shmget(0x414e4547,0,0);\n  if (iVar5 == -1) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);\n  }\n  uVar10 = 0x1000;\n  DAT_000dc30c = (uint *)shmat(iVar5,(void *)0x0,0x1000);\n  if (DAT_000dc30c == (uint *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);\n  }\n  uVar11 = 0;\n  uVar10 = 0;\n  iVar5 = semget(0x414e4547,0,0);\n  if (iVar5 == -1) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);\n  }\n  FUN_0001b5d4();\n  puVar2 = PTR_stdout_000dbfb4;\n  uVar8 = DAT_000dc30c[1];\n  uVar10 = extraout_ECX;\nLAB_00066e30:\n  do {\n    uVar12 = 2;\n    uVar11 = 0xdc2fe;\n    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);\n    if (iVar3 == -1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }\n    uVar1 = *DAT_000dc30c;\n    __maxlen = DAT_000dc30c[1];\n    __string = DAT_000dc30c + 2;\n    if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }\nLAB_00066ea6:\n    FUN_00066d09();\n    FUN_0001a70d();\n    uVar10 = extraout_ECX_00;\n    if (local_34 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000b124b();\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_00066d4c(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  size_t __maxlen;\n  undefined *puVar2;\n  int iVar3;\n  size_t sVar4;\n  int iVar5;\n  undefined4 extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined4 extraout_ECX_01;\n  undefined1 *puVar6;\n  uint *__string;\n  undefined4 *puVar7;\n  uint uVar8;\n  byte bVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined4 uVar12;\n  uint local_34;\n  \n  bVar9 = 0;\n  local_34 = FUN_000b23d7(param_2,&DAT_000d43d5);\n  puVar6 = &DAT_000c5664;\n  puVar7 = &DAT_000dc2f8;\n  for (iVar5 = 0x12; iVar5 != 0; iVar5 = iVar5 + -1) {\n    *(undefined1 *)puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar9 * -2 + 1;\n    puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);\n  }\n  iVar5 = shmget(0x414e4547,0,0);\n  if (iVar5 == -1) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);\n  }\n  uVar10 = 0x1000;\n  DAT_000dc30c = (uint *)shmat(iVar5,(void *)0x0,0x1000);\n  if (DAT_000dc30c == (uint *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);\n  }\n  uVar11 = 0;\n  uVar10 = 0;\n  iVar5 = semget(0x414e4547,0,0);\n  if (iVar5 == -1) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);\n  }\n  FUN_0001b5d4();\n  puVar2 = PTR_stdout_000dbfb4;\n  uVar8 = DAT_000dc30c[1];\n  uVar10 = extraout_ECX;\nLAB_00066e30:\n  do {\n    uVar12 = 2;\n    uVar11 = 0xdc2fe;\n    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);\n    if (iVar3 == -1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }\n    uVar1 = *DAT_000dc30c;\n    __maxlen = DAT_000dc30c[1];\n    __string = DAT_000dc30c + 2;\n    if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }\nLAB_00066ea6:\n    FUN_00066d09();\n    FUN_0001a70d();\n    uVar10 = extraout_ECX_00;\n    if (local_34 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000b124b();\n    }\n  } while( true );\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "size_t __maxlen;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 extraout_ECX;" type_identifier identifier ;) (declaration "undefined4 extraout_ECX_00;" type_identifier identifier ;) (declaration "undefined4 extraout_ECX_01;" type_identifier identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint *__string;" type_identifier (pointer_declarator "*__string" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "undefined4 uVar11;" type_identifier identifier ;) (declaration "undefined4 uVar12;" type_identifier identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "local_34 = FUN_000b23d7(param_2,&DAT_000d43d5);" (assignment_expression "local_34 = FUN_000b23d7(param_2,&DAT_000d43d5)" identifier = (call_expression "FUN_000b23d7(param_2,&DAT_000d43d5)" identifier (argument_list "(param_2,&DAT_000d43d5)" ( identifier , (pointer_expression "&DAT_000d43d5" & identifier) )))) ;) (expression_statement "puVar6 = &DAT_000c5664;" (assignment_expression "puVar6 = &DAT_000c5664" identifier = (pointer_expression "&DAT_000c5664" & identifier)) ;) (expression_statement "puVar7 = &DAT_000dc2f8;" (assignment_expression "puVar7 = &DAT_000dc2f8" identifier = (pointer_expression "&DAT_000dc2f8" & identifier)) ;) (for_statement "for (iVar5 = 0x12; iVar5 != 0; iVar5 = iVar5 + -1) {\n    *(undefined1 *)puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar9 * -2 + 1;\n    puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);\n  }" for ( (assignment_expression "iVar5 = 0x12" identifier = number_literal) ; (binary_expression "iVar5 != 0" identifier != number_literal) ; (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ) (compound_statement "{\n    *(undefined1 *)puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar9 * -2 + 1;\n    puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);\n  }" { (expression_statement "*(undefined1 *)puVar7 = *puVar6;" (assignment_expression "*(undefined1 *)puVar7 = *puVar6" (pointer_expression "*(undefined1 *)puVar7" * (cast_expression "(undefined1 *)puVar7" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar6 = puVar6 + (uint)bVar9 * -2 + 1;" (assignment_expression "puVar6 = puVar6 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "puVar6 + (uint)bVar9 * -2 + 1" (binary_expression "puVar6 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);" (assignment_expression "puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1)" identifier = (cast_expression "(undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar7 + (uint)bVar9 * -2 + 1)" ( (binary_expression "(int)puVar7 + (uint)bVar9 * -2 + 1" (binary_expression "(int)puVar7 + (uint)bVar9 * -2" (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "iVar5 = shmget(0x414e4547,0,0);" (assignment_expression "iVar5 = shmget(0x414e4547,0,0)" identifier = (call_expression "shmget(0x414e4547,0,0)" identifier (argument_list "(0x414e4547,0,0)" ( number_literal , number_literal , number_literal )))) ;) (if_statement "if (iVar5 == -1) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);\n  }" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);\n  }" { comment (expression_statement "FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);" (call_expression "FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8)" identifier (argument_list "("can\'t %s syslogd buffer",&DAT_000d43d8)" ( (string_literal ""can\'t %s syslogd buffer"" " string_content escape_sequence string_content ") , (pointer_expression "&DAT_000d43d8" & identifier) ))) ;) })) (expression_statement "uVar10 = 0x1000;" (assignment_expression "uVar10 = 0x1000" identifier = number_literal) ;) (expression_statement "DAT_000dc30c = (uint *)shmat(iVar5,(void *)0x0,0x1000);" (assignment_expression "DAT_000dc30c = (uint *)shmat(iVar5,(void *)0x0,0x1000)" identifier = (cast_expression "(uint *)shmat(iVar5,(void *)0x0,0x1000)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "shmat(iVar5,(void *)0x0,0x1000)" identifier (argument_list "(iVar5,(void *)0x0,0x1000)" ( identifier , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal ))))) ;) (if_statement "if (DAT_000dc30c == (uint *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);\n  }" if (parenthesized_expression "(DAT_000dc30c == (uint *)0x0)" ( (binary_expression "DAT_000dc30c == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);\n  }" { comment (expression_statement "FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);" (call_expression "FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7)" identifier (argument_list "("can\'t %s syslogd buffer","access",uVar10,puVar7)" ( (string_literal ""can\'t %s syslogd buffer"" " string_content escape_sequence string_content ") , (string_literal ""access"" " string_content ") , identifier , identifier ))) ;) })) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = semget(0x414e4547,0,0);" (assignment_expression "iVar5 = semget(0x414e4547,0,0)" identifier = (call_expression "semget(0x414e4547,0,0)" identifier (argument_list "(0x414e4547,0,0)" ( number_literal , number_literal , number_literal )))) ;) (if_statement "if (iVar5 == -1) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);\n  }" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);\n  }" { comment (expression_statement "FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);" (call_expression "FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6)" identifier (argument_list "("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6)" ( (string_literal ""can\'t get access to semaphores for syslogd buffer"" " string_content escape_sequence string_content ") , identifier , identifier , identifier ))) ;) })) (expression_statement "FUN_0001b5d4();" (call_expression "FUN_0001b5d4()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar2 = PTR_stdout_000dbfb4;" (assignment_expression "puVar2 = PTR_stdout_000dbfb4" identifier = identifier) ;) (expression_statement "uVar8 = DAT_000dc30c[1];" (assignment_expression "uVar8 = DAT_000dc30c[1]" identifier = (subscript_expression "DAT_000dc30c[1]" identifier [ number_literal ])) ;) (expression_statement "uVar10 = extraout_ECX;" (assignment_expression "uVar10 = extraout_ECX" identifier = identifier) ;) (labeled_statement "LAB_00066e30:\n  do {\n    uVar12 = 2;\n    uVar11 = 0xdc2fe;\n    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);\n    if (iVar3 == -1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }\n    uVar1 = *DAT_000dc30c;\n    __maxlen = DAT_000dc30c[1];\n    __string = DAT_000dc30c + 2;\n    if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }\nLAB_00066ea6:\n    FUN_00066d09();\n    FUN_0001a70d();\n    uVar10 = extraout_ECX_00;\n    if (local_34 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000b124b();\n    }\n  } while( true );" statement_identifier : (do_statement "do {\n    uVar12 = 2;\n    uVar11 = 0xdc2fe;\n    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);\n    if (iVar3 == -1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }\n    uVar1 = *DAT_000dc30c;\n    __maxlen = DAT_000dc30c[1];\n    __string = DAT_000dc30c + 2;\n    if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }\nLAB_00066ea6:\n    FUN_00066d09();\n    FUN_0001a70d();\n    uVar10 = extraout_ECX_00;\n    if (local_34 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000b124b();\n    }\n  } while( true );" do (compound_statement "{\n    uVar12 = 2;\n    uVar11 = 0xdc2fe;\n    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);\n    if (iVar3 == -1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }\n    uVar1 = *DAT_000dc30c;\n    __maxlen = DAT_000dc30c[1];\n    __string = DAT_000dc30c + 2;\n    if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }\nLAB_00066ea6:\n    FUN_00066d09();\n    FUN_0001a70d();\n    uVar10 = extraout_ECX_00;\n    if (local_34 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000b124b();\n    }\n  }" { (expression_statement "uVar12 = 2;" (assignment_expression "uVar12 = 2" identifier = number_literal) ;) (expression_statement "uVar11 = 0xdc2fe;" (assignment_expression "uVar11 = 0xdc2fe" identifier = number_literal) ;) (expression_statement "iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);" (assignment_expression "iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2)" identifier = (call_expression "semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2)" identifier (argument_list "(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2)" ( identifier , (cast_expression "(sembuf *)((int)&DAT_000dc2fc + 2)" ( (type_descriptor "sembuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&DAT_000dc2fc + 2)" ( (binary_expression "(int)&DAT_000dc2fc + 2" (cast_expression "(int)&DAT_000dc2fc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&DAT_000dc2fc" & identifier)) + number_literal) ))) , number_literal )))) ;) (if_statement "if (iVar3 == -1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }" { comment (expression_statement "FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);" (call_expression "FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10)" identifier (argument_list "("semop[SMrdn]",uVar11,uVar12,uVar10)" ( (string_literal ""semop[SMrdn]"" " string_content ") , identifier , identifier , identifier ))) ;) })) (expression_statement "uVar1 = *DAT_000dc30c;" (assignment_expression "uVar1 = *DAT_000dc30c" identifier = (pointer_expression "*DAT_000dc30c" * identifier)) ;) (expression_statement "__maxlen = DAT_000dc30c[1];" (assignment_expression "__maxlen = DAT_000dc30c[1]" identifier = (subscript_expression "DAT_000dc30c[1]" identifier [ number_literal ])) ;) (expression_statement "__string = DAT_000dc30c + 2;" (assignment_expression "__string = DAT_000dc30c + 2" identifier = (binary_expression "DAT_000dc30c + 2" identifier + number_literal)) ;) (if_statement "if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }" if (parenthesized_expression "((local_34 & 1) == 0)" ( (binary_expression "(local_34 & 1) == 0" (parenthesized_expression "(local_34 & 1)" ( (binary_expression "local_34 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }" { (expression_statement "local_34 = (int)local_34 >> 1;" (assignment_expression "local_34 = (int)local_34 >> 1" identifier = (binary_expression "(int)local_34 >> 1" (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (expression_statement "sVar4 = strlen((char *)((int)__string + uVar8));" (assignment_expression "sVar4 = strlen((char *)((int)__string + uVar8))" identifier = (call_expression "strlen((char *)((int)__string + uVar8))" identifier (argument_list "((char *)((int)__string + uVar8))" ( (cast_expression "(char *)((int)__string + uVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__string + uVar8)" ( (binary_expression "(int)__string + uVar8" (cast_expression "(int)__string" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) )))) ;) (expression_statement "uVar8 = uVar8 + sVar4;" (assignment_expression "uVar8 = uVar8 + sVar4" identifier = (binary_expression "uVar8 + sVar4" identifier + identifier)) ;) (if_statement "if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }" if (parenthesized_expression "((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8))" ( (binary_expression "(uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)" (parenthesized_expression "(uVar8 < uVar1)" ( (binary_expression "uVar8 < uVar1" identifier < identifier) )) || (parenthesized_expression "(uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)" ( (comma_expression "uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8" (assignment_expression "uVar8 = strnlen((char *)__string,__maxlen)" identifier = (call_expression "strnlen((char *)__string,__maxlen)" identifier (argument_list "((char *)__string,__maxlen)" ( (cast_expression "(char *)__string" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) , (binary_expression "__maxlen != uVar8" identifier != identifier)) ))) )) (compound_statement "{\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }" { (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (if_statement "if (uVar8 < uVar1) goto LAB_00066ef6;" if (parenthesized_expression "(uVar8 < uVar1)" ( (binary_expression "uVar8 < uVar1" identifier < identifier) )) (goto_statement "goto LAB_00066ef6;" goto statement_identifier ;)) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00066ef6;" goto statement_identifier ;) })) }) (else_clause "else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }" else (compound_statement "{\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }" { (if_statement "if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }" if (parenthesized_expression "(uVar8 == __maxlen)" ( (binary_expression "uVar8 == __maxlen" identifier == identifier) )) (compound_statement "{\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }" { (expression_statement "FUN_00066d09();" (call_expression "FUN_00066d09()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0001a70d();" (call_expression "FUN_0001a70d()" identifier (argument_list "()" ( ))) ;) (expression_statement "sleep(1);" (call_expression "sleep(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (expression_statement "uVar10 = extraout_ECX_01;" (assignment_expression "uVar10 = extraout_ECX_01" identifier = identifier) ;) (goto_statement "goto LAB_00066e30;" goto statement_identifier ;) })) (do_statement "do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);" do (compound_statement "{\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      }" { (while_statement "while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }" { (expression_statement "fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);" (call_expression "fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2)" identifier (argument_list "((char *)((int)__string + uVar8),*(FILE **)puVar2)" ( (cast_expression "(char *)((int)__string + uVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__string + uVar8)" ( (binary_expression "(int)__string + uVar8" (cast_expression "(int)__string" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) , (pointer_expression "*(FILE **)puVar2" * (cast_expression "(FILE **)puVar2" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "sVar4 = strlen((char *)((int)__string + uVar8));" (assignment_expression "sVar4 = strlen((char *)((int)__string + uVar8))" identifier = (call_expression "strlen((char *)((int)__string + uVar8))" identifier (argument_list "((char *)((int)__string + uVar8))" ( (cast_expression "(char *)((int)__string + uVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__string + uVar8)" ( (binary_expression "(int)__string + uVar8" (cast_expression "(int)__string" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) )))) ;) (expression_statement "uVar8 = sVar4 + 1 + uVar8;" (assignment_expression "uVar8 = sVar4 + 1 + uVar8" identifier = (binary_expression "sVar4 + 1 + uVar8" (binary_expression "sVar4 + 1" identifier + number_literal) + identifier)) ;) (if_statement "if (uVar8 < uVar1) break;" if (parenthesized_expression "(uVar8 < uVar1)" ( (binary_expression "uVar8 < uVar1" identifier < identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (if_statement "if (__maxlen == 0) goto LAB_00066ea6;" if (parenthesized_expression "(__maxlen == 0)" ( (binary_expression "__maxlen == 0" identifier == number_literal) )) (goto_statement "goto LAB_00066ea6;" goto statement_identifier ;)) })) (labeled_statement "LAB_00066ef6:" statement_identifier : (expression_statement "" ;)) }) while (parenthesized_expression "(__maxlen != uVar8)" ( (binary_expression "__maxlen != uVar8" identifier != identifier) )) ;) }))) (labeled_statement "LAB_00066ea6:\n    FUN_00066d09();" statement_identifier : (expression_statement "FUN_00066d09();" (call_expression "FUN_00066d09()" identifier (argument_list "()" ( ))) ;)) (expression_statement "FUN_0001a70d();" (call_expression "FUN_0001a70d()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar10 = extraout_ECX_00;" (assignment_expression "uVar10 = extraout_ECX_00" identifier = identifier) ;) (if_statement "if (local_34 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000b124b();\n    }" if (parenthesized_expression "(local_34 == 0)" ( (binary_expression "local_34 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_000b124b();\n    }" { comment (expression_statement "FUN_000b124b();" (call_expression "FUN_000b124b()" identifier (argument_list "()" ( ))) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;)) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint logread_main(int argc,char **argv)\n\n{\n}\n\n" comment comment (function_definition "int logread_main(int argc,char **argv)\n\n{\n}" primitive_type (function_declarator "logread_main(int argc,char **argv)" identifier (parameter_list "(int argc,char **argv)" ( (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n}" { })))
(translation_unit "void FUN_00066d4c(undefined4 param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  size_t __maxlen;\n  undefined *puVar2;\n  int iVar3;\n  size_t sVar4;\n  int iVar5;\n  undefined4 extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined4 extraout_ECX_01;\n  undefined1 *puVar6;\n  uint *__string;\n  undefined4 *puVar7;\n  uint uVar8;\n  byte bVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined4 uVar12;\n  uint local_34;\n  \n  bVar9 = 0;\n  local_34 = FUN_000b23d7(param_2,&DAT_000d43d5);\n  puVar6 = &DAT_000c5664;\n  puVar7 = &DAT_000dc2f8;\n  for (iVar5 = 0x12; iVar5 != 0; iVar5 = iVar5 + -1) {\n    *(undefined1 *)puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar9 * -2 + 1;\n    puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);\n  }\n  iVar5 = shmget(0x414e4547,0,0);\n  if (iVar5 == -1) {\n                    \n    FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);\n  }\n  uVar10 = 0x1000;\n  DAT_000dc30c = (uint *)shmat(iVar5,(void *)0x0,0x1000);\n  if (DAT_000dc30c == (uint *)0x0) {\n                    \n    FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);\n  }\n  uVar11 = 0;\n  uVar10 = 0;\n  iVar5 = semget(0x414e4547,0,0);\n  if (iVar5 == -1) {\n                    \n    FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);\n  }\n  FUN_0001b5d4();\n  puVar2 = PTR_stdout_000dbfb4;\n  uVar8 = DAT_000dc30c[1];\n  uVar10 = extraout_ECX;\nLAB_00066e30:\n  do {\n    uVar12 = 2;\n    uVar11 = 0xdc2fe;\n    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);\n    if (iVar3 == -1) {\n                    \n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }\n    uVar1 = *DAT_000dc30c;\n    __maxlen = DAT_000dc30c[1];\n    __string = DAT_000dc30c + 2;\n    if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }\nLAB_00066ea6:\n    FUN_00066d09();\n    FUN_0001a70d();\n    uVar10 = extraout_ECX_00;\n    if (local_34 == 0) {\n                    \n      FUN_000b124b();\n    }\n  } while( true );\n}\n\n" (function_definition "void FUN_00066d4c(undefined4 param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  size_t __maxlen;\n  undefined *puVar2;\n  int iVar3;\n  size_t sVar4;\n  int iVar5;\n  undefined4 extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined4 extraout_ECX_01;\n  undefined1 *puVar6;\n  uint *__string;\n  undefined4 *puVar7;\n  uint uVar8;\n  byte bVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined4 uVar12;\n  uint local_34;\n  \n  bVar9 = 0;\n  local_34 = FUN_000b23d7(param_2,&DAT_000d43d5);\n  puVar6 = &DAT_000c5664;\n  puVar7 = &DAT_000dc2f8;\n  for (iVar5 = 0x12; iVar5 != 0; iVar5 = iVar5 + -1) {\n    *(undefined1 *)puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar9 * -2 + 1;\n    puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);\n  }\n  iVar5 = shmget(0x414e4547,0,0);\n  if (iVar5 == -1) {\n                    \n    FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);\n  }\n  uVar10 = 0x1000;\n  DAT_000dc30c = (uint *)shmat(iVar5,(void *)0x0,0x1000);\n  if (DAT_000dc30c == (uint *)0x0) {\n                    \n    FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);\n  }\n  uVar11 = 0;\n  uVar10 = 0;\n  iVar5 = semget(0x414e4547,0,0);\n  if (iVar5 == -1) {\n                    \n    FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);\n  }\n  FUN_0001b5d4();\n  puVar2 = PTR_stdout_000dbfb4;\n  uVar8 = DAT_000dc30c[1];\n  uVar10 = extraout_ECX;\nLAB_00066e30:\n  do {\n    uVar12 = 2;\n    uVar11 = 0xdc2fe;\n    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);\n    if (iVar3 == -1) {\n                    \n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }\n    uVar1 = *DAT_000dc30c;\n    __maxlen = DAT_000dc30c[1];\n    __string = DAT_000dc30c + 2;\n    if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }\nLAB_00066ea6:\n    FUN_00066d09();\n    FUN_0001a70d();\n    uVar10 = extraout_ECX_00;\n    if (local_34 == 0) {\n                    \n      FUN_000b124b();\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_00066d4c(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  size_t __maxlen;\n  undefined *puVar2;\n  int iVar3;\n  size_t sVar4;\n  int iVar5;\n  undefined4 extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined4 extraout_ECX_01;\n  undefined1 *puVar6;\n  uint *__string;\n  undefined4 *puVar7;\n  uint uVar8;\n  byte bVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined4 uVar12;\n  uint local_34;\n  \n  bVar9 = 0;\n  local_34 = FUN_000b23d7(param_2,&DAT_000d43d5);\n  puVar6 = &DAT_000c5664;\n  puVar7 = &DAT_000dc2f8;\n  for (iVar5 = 0x12; iVar5 != 0; iVar5 = iVar5 + -1) {\n    *(undefined1 *)puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar9 * -2 + 1;\n    puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);\n  }\n  iVar5 = shmget(0x414e4547,0,0);\n  if (iVar5 == -1) {\n                    \n    FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);\n  }\n  uVar10 = 0x1000;\n  DAT_000dc30c = (uint *)shmat(iVar5,(void *)0x0,0x1000);\n  if (DAT_000dc30c == (uint *)0x0) {\n                    \n    FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);\n  }\n  uVar11 = 0;\n  uVar10 = 0;\n  iVar5 = semget(0x414e4547,0,0);\n  if (iVar5 == -1) {\n                    \n    FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);\n  }\n  FUN_0001b5d4();\n  puVar2 = PTR_stdout_000dbfb4;\n  uVar8 = DAT_000dc30c[1];\n  uVar10 = extraout_ECX;\nLAB_00066e30:\n  do {\n    uVar12 = 2;\n    uVar11 = 0xdc2fe;\n    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);\n    if (iVar3 == -1) {\n                    \n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }\n    uVar1 = *DAT_000dc30c;\n    __maxlen = DAT_000dc30c[1];\n    __string = DAT_000dc30c + 2;\n    if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }\nLAB_00066ea6:\n    FUN_00066d09();\n    FUN_0001a70d();\n    uVar10 = extraout_ECX_00;\n    if (local_34 == 0) {\n                    \n      FUN_000b124b();\n    }\n  } while( true );\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "size_t __maxlen;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 extraout_ECX;" type_identifier identifier ;) (declaration "undefined4 extraout_ECX_00;" type_identifier identifier ;) (declaration "undefined4 extraout_ECX_01;" type_identifier identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint *__string;" type_identifier (pointer_declarator "*__string" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "undefined4 uVar11;" type_identifier identifier ;) (declaration "undefined4 uVar12;" type_identifier identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "local_34 = FUN_000b23d7(param_2,&DAT_000d43d5);" (assignment_expression "local_34 = FUN_000b23d7(param_2,&DAT_000d43d5)" identifier = (call_expression "FUN_000b23d7(param_2,&DAT_000d43d5)" identifier (argument_list "(param_2,&DAT_000d43d5)" ( identifier , (pointer_expression "&DAT_000d43d5" & identifier) )))) ;) (expression_statement "puVar6 = &DAT_000c5664;" (assignment_expression "puVar6 = &DAT_000c5664" identifier = (pointer_expression "&DAT_000c5664" & identifier)) ;) (expression_statement "puVar7 = &DAT_000dc2f8;" (assignment_expression "puVar7 = &DAT_000dc2f8" identifier = (pointer_expression "&DAT_000dc2f8" & identifier)) ;) (for_statement "for (iVar5 = 0x12; iVar5 != 0; iVar5 = iVar5 + -1) {\n    *(undefined1 *)puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar9 * -2 + 1;\n    puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);\n  }" for ( (assignment_expression "iVar5 = 0x12" identifier = number_literal) ; (binary_expression "iVar5 != 0" identifier != number_literal) ; (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ) (compound_statement "{\n    *(undefined1 *)puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar9 * -2 + 1;\n    puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);\n  }" { (expression_statement "*(undefined1 *)puVar7 = *puVar6;" (assignment_expression "*(undefined1 *)puVar7 = *puVar6" (pointer_expression "*(undefined1 *)puVar7" * (cast_expression "(undefined1 *)puVar7" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar6 = puVar6 + (uint)bVar9 * -2 + 1;" (assignment_expression "puVar6 = puVar6 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "puVar6 + (uint)bVar9 * -2 + 1" (binary_expression "puVar6 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);" (assignment_expression "puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1)" identifier = (cast_expression "(undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar7 + (uint)bVar9 * -2 + 1)" ( (binary_expression "(int)puVar7 + (uint)bVar9 * -2 + 1" (binary_expression "(int)puVar7 + (uint)bVar9 * -2" (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal) )))) ;) })) (expression_statement "iVar5 = shmget(0x414e4547,0,0);" (assignment_expression "iVar5 = shmget(0x414e4547,0,0)" identifier = (call_expression "shmget(0x414e4547,0,0)" identifier (argument_list "(0x414e4547,0,0)" ( number_literal , number_literal , number_literal )))) ;) (if_statement "if (iVar5 == -1) {\n                    \n    FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);\n  }" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (compound_statement "{\n                    \n    FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);\n  }" { (expression_statement "FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);" (call_expression "FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8)" identifier (argument_list "("can\'t %s syslogd buffer",&DAT_000d43d8)" ( (string_literal ""can\'t %s syslogd buffer"" " string_content escape_sequence string_content ") , (pointer_expression "&DAT_000d43d8" & identifier) ))) ;) })) (expression_statement "uVar10 = 0x1000;" (assignment_expression "uVar10 = 0x1000" identifier = number_literal) ;) (expression_statement "DAT_000dc30c = (uint *)shmat(iVar5,(void *)0x0,0x1000);" (assignment_expression "DAT_000dc30c = (uint *)shmat(iVar5,(void *)0x0,0x1000)" identifier = (cast_expression "(uint *)shmat(iVar5,(void *)0x0,0x1000)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "shmat(iVar5,(void *)0x0,0x1000)" identifier (argument_list "(iVar5,(void *)0x0,0x1000)" ( identifier , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal ))))) ;) (if_statement "if (DAT_000dc30c == (uint *)0x0) {\n                    \n    FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);\n  }" if (parenthesized_expression "(DAT_000dc30c == (uint *)0x0)" ( (binary_expression "DAT_000dc30c == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);\n  }" { (expression_statement "FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);" (call_expression "FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7)" identifier (argument_list "("can\'t %s syslogd buffer","access",uVar10,puVar7)" ( (string_literal ""can\'t %s syslogd buffer"" " string_content escape_sequence string_content ") , (string_literal ""access"" " string_content ") , identifier , identifier ))) ;) })) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = semget(0x414e4547,0,0);" (assignment_expression "iVar5 = semget(0x414e4547,0,0)" identifier = (call_expression "semget(0x414e4547,0,0)" identifier (argument_list "(0x414e4547,0,0)" ( number_literal , number_literal , number_literal )))) ;) (if_statement "if (iVar5 == -1) {\n                    \n    FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);\n  }" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (compound_statement "{\n                    \n    FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);\n  }" { (expression_statement "FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);" (call_expression "FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6)" identifier (argument_list "("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6)" ( (string_literal ""can\'t get access to semaphores for syslogd buffer"" " string_content escape_sequence string_content ") , identifier , identifier , identifier ))) ;) })) (expression_statement "FUN_0001b5d4();" (call_expression "FUN_0001b5d4()" identifier (argument_list "()" ( ))) ;) (expression_statement "puVar2 = PTR_stdout_000dbfb4;" (assignment_expression "puVar2 = PTR_stdout_000dbfb4" identifier = identifier) ;) (expression_statement "uVar8 = DAT_000dc30c[1];" (assignment_expression "uVar8 = DAT_000dc30c[1]" identifier = (subscript_expression "DAT_000dc30c[1]" identifier [ number_literal ])) ;) (expression_statement "uVar10 = extraout_ECX;" (assignment_expression "uVar10 = extraout_ECX" identifier = identifier) ;) (labeled_statement "LAB_00066e30:\n  do {\n    uVar12 = 2;\n    uVar11 = 0xdc2fe;\n    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);\n    if (iVar3 == -1) {\n                    \n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }\n    uVar1 = *DAT_000dc30c;\n    __maxlen = DAT_000dc30c[1];\n    __string = DAT_000dc30c + 2;\n    if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }\nLAB_00066ea6:\n    FUN_00066d09();\n    FUN_0001a70d();\n    uVar10 = extraout_ECX_00;\n    if (local_34 == 0) {\n                    \n      FUN_000b124b();\n    }\n  } while( true );" statement_identifier : (do_statement "do {\n    uVar12 = 2;\n    uVar11 = 0xdc2fe;\n    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);\n    if (iVar3 == -1) {\n                    \n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }\n    uVar1 = *DAT_000dc30c;\n    __maxlen = DAT_000dc30c[1];\n    __string = DAT_000dc30c + 2;\n    if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }\nLAB_00066ea6:\n    FUN_00066d09();\n    FUN_0001a70d();\n    uVar10 = extraout_ECX_00;\n    if (local_34 == 0) {\n                    \n      FUN_000b124b();\n    }\n  } while( true );" do (compound_statement "{\n    uVar12 = 2;\n    uVar11 = 0xdc2fe;\n    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);\n    if (iVar3 == -1) {\n                    \n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }\n    uVar1 = *DAT_000dc30c;\n    __maxlen = DAT_000dc30c[1];\n    __string = DAT_000dc30c + 2;\n    if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }\nLAB_00066ea6:\n    FUN_00066d09();\n    FUN_0001a70d();\n    uVar10 = extraout_ECX_00;\n    if (local_34 == 0) {\n                    \n      FUN_000b124b();\n    }\n  }" { (expression_statement "uVar12 = 2;" (assignment_expression "uVar12 = 2" identifier = number_literal) ;) (expression_statement "uVar11 = 0xdc2fe;" (assignment_expression "uVar11 = 0xdc2fe" identifier = number_literal) ;) (expression_statement "iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);" (assignment_expression "iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2)" identifier = (call_expression "semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2)" identifier (argument_list "(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2)" ( identifier , (cast_expression "(sembuf *)((int)&DAT_000dc2fc + 2)" ( (type_descriptor "sembuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&DAT_000dc2fc + 2)" ( (binary_expression "(int)&DAT_000dc2fc + 2" (cast_expression "(int)&DAT_000dc2fc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&DAT_000dc2fc" & identifier)) + number_literal) ))) , number_literal )))) ;) (if_statement "if (iVar3 == -1) {\n                    \n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n                    \n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }" { (expression_statement "FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);" (call_expression "FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10)" identifier (argument_list "("semop[SMrdn]",uVar11,uVar12,uVar10)" ( (string_literal ""semop[SMrdn]"" " string_content ") , identifier , identifier , identifier ))) ;) })) (expression_statement "uVar1 = *DAT_000dc30c;" (assignment_expression "uVar1 = *DAT_000dc30c" identifier = (pointer_expression "*DAT_000dc30c" * identifier)) ;) (expression_statement "__maxlen = DAT_000dc30c[1];" (assignment_expression "__maxlen = DAT_000dc30c[1]" identifier = (subscript_expression "DAT_000dc30c[1]" identifier [ number_literal ])) ;) (expression_statement "__string = DAT_000dc30c + 2;" (assignment_expression "__string = DAT_000dc30c + 2" identifier = (binary_expression "DAT_000dc30c + 2" identifier + number_literal)) ;) (if_statement "if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }" if (parenthesized_expression "((local_34 & 1) == 0)" ( (binary_expression "(local_34 & 1) == 0" (parenthesized_expression "(local_34 & 1)" ( (binary_expression "local_34 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }" { (expression_statement "local_34 = (int)local_34 >> 1;" (assignment_expression "local_34 = (int)local_34 >> 1" identifier = (binary_expression "(int)local_34 >> 1" (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (expression_statement "sVar4 = strlen((char *)((int)__string + uVar8));" (assignment_expression "sVar4 = strlen((char *)((int)__string + uVar8))" identifier = (call_expression "strlen((char *)((int)__string + uVar8))" identifier (argument_list "((char *)((int)__string + uVar8))" ( (cast_expression "(char *)((int)__string + uVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__string + uVar8)" ( (binary_expression "(int)__string + uVar8" (cast_expression "(int)__string" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) )))) ;) (expression_statement "uVar8 = uVar8 + sVar4;" (assignment_expression "uVar8 = uVar8 + sVar4" identifier = (binary_expression "uVar8 + sVar4" identifier + identifier)) ;) (if_statement "if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }" if (parenthesized_expression "((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8))" ( (binary_expression "(uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)" (parenthesized_expression "(uVar8 < uVar1)" ( (binary_expression "uVar8 < uVar1" identifier < identifier) )) || (parenthesized_expression "(uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)" ( (comma_expression "uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8" (assignment_expression "uVar8 = strnlen((char *)__string,__maxlen)" identifier = (call_expression "strnlen((char *)__string,__maxlen)" identifier (argument_list "((char *)__string,__maxlen)" ( (cast_expression "(char *)__string" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) , (binary_expression "__maxlen != uVar8" identifier != identifier)) ))) )) (compound_statement "{\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }" { (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (if_statement "if (uVar8 < uVar1) goto LAB_00066ef6;" if (parenthesized_expression "(uVar8 < uVar1)" ( (binary_expression "uVar8 < uVar1" identifier < identifier) )) (goto_statement "goto LAB_00066ef6;" goto statement_identifier ;)) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00066ef6;" goto statement_identifier ;) })) }) (else_clause "else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }" else (compound_statement "{\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }" { (if_statement "if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }" if (parenthesized_expression "(uVar8 == __maxlen)" ( (binary_expression "uVar8 == __maxlen" identifier == identifier) )) (compound_statement "{\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }" { (expression_statement "FUN_00066d09();" (call_expression "FUN_00066d09()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0001a70d();" (call_expression "FUN_0001a70d()" identifier (argument_list "()" ( ))) ;) (expression_statement "sleep(1);" (call_expression "sleep(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (expression_statement "uVar10 = extraout_ECX_01;" (assignment_expression "uVar10 = extraout_ECX_01" identifier = identifier) ;) (goto_statement "goto LAB_00066e30;" goto statement_identifier ;) })) (do_statement "do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);" do (compound_statement "{\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      }" { (while_statement "while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }" { (expression_statement "fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);" (call_expression "fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2)" identifier (argument_list "((char *)((int)__string + uVar8),*(FILE **)puVar2)" ( (cast_expression "(char *)((int)__string + uVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__string + uVar8)" ( (binary_expression "(int)__string + uVar8" (cast_expression "(int)__string" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) , (pointer_expression "*(FILE **)puVar2" * (cast_expression "(FILE **)puVar2" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "sVar4 = strlen((char *)((int)__string + uVar8));" (assignment_expression "sVar4 = strlen((char *)((int)__string + uVar8))" identifier = (call_expression "strlen((char *)((int)__string + uVar8))" identifier (argument_list "((char *)((int)__string + uVar8))" ( (cast_expression "(char *)((int)__string + uVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__string + uVar8)" ( (binary_expression "(int)__string + uVar8" (cast_expression "(int)__string" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) )))) ;) (expression_statement "uVar8 = sVar4 + 1 + uVar8;" (assignment_expression "uVar8 = sVar4 + 1 + uVar8" identifier = (binary_expression "sVar4 + 1 + uVar8" (binary_expression "sVar4 + 1" identifier + number_literal) + identifier)) ;) (if_statement "if (uVar8 < uVar1) break;" if (parenthesized_expression "(uVar8 < uVar1)" ( (binary_expression "uVar8 < uVar1" identifier < identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (if_statement "if (__maxlen == 0) goto LAB_00066ea6;" if (parenthesized_expression "(__maxlen == 0)" ( (binary_expression "__maxlen == 0" identifier == number_literal) )) (goto_statement "goto LAB_00066ea6;" goto statement_identifier ;)) })) (labeled_statement "LAB_00066ef6:" statement_identifier : (expression_statement "" ;)) }) while (parenthesized_expression "(__maxlen != uVar8)" ( (binary_expression "__maxlen != uVar8" identifier != identifier) )) ;) }))) (labeled_statement "LAB_00066ea6:\n    FUN_00066d09();" statement_identifier : (expression_statement "FUN_00066d09();" (call_expression "FUN_00066d09()" identifier (argument_list "()" ( ))) ;)) (expression_statement "FUN_0001a70d();" (call_expression "FUN_0001a70d()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar10 = extraout_ECX_00;" (assignment_expression "uVar10 = extraout_ECX_00" identifier = identifier) ;) (if_statement "if (local_34 == 0) {\n                    \n      FUN_000b124b();\n    }" if (parenthesized_expression "(local_34 == 0)" ( (binary_expression "local_34 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n      FUN_000b124b();\n    }" { (expression_statement "FUN_000b124b();" (call_expression "FUN_000b124b()" identifier (argument_list "()" ( ))) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;)) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE 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 ;) (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 IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content ") , (pointer_expression & 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 ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content ") , (string_literal " string_content ") , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content ") , IDENT , IDENT , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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) ) (pointer_expression & IDENT)) + LIT) ))) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) ))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , IDENT )))) , (binary_expression IDENT != IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) ))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) ))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (labeled_statement statement_identifier : (expression_statement ;)) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) }))) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) }) while (parenthesized_expression ( BOOL )) ;)) })))
(function_definition "void FUN_00066d4c(undefined4 param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  size_t __maxlen;\n  undefined *puVar2;\n  int iVar3;\n  size_t sVar4;\n  int iVar5;\n  undefined4 extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined4 extraout_ECX_01;\n  undefined1 *puVar6;\n  uint *__string;\n  undefined4 *puVar7;\n  uint uVar8;\n  byte bVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined4 uVar12;\n  uint local_34;\n  \n  bVar9 = 0;\n  local_34 = FUN_000b23d7(param_2,&DAT_000d43d5);\n  puVar6 = &DAT_000c5664;\n  puVar7 = &DAT_000dc2f8;\n  for (iVar5 = 0x12; iVar5 != 0; iVar5 = iVar5 + -1) {\n    *(undefined1 *)puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar9 * -2 + 1;\n    puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);\n  }\n  iVar5 = shmget(0x414e4547,0,0);\n  if (iVar5 == -1) {\n                    \n    FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);\n  }\n  uVar10 = 0x1000;\n  DAT_000dc30c = (uint *)shmat(iVar5,(void *)0x0,0x1000);\n  if (DAT_000dc30c == (uint *)0x0) {\n                    \n    FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);\n  }\n  uVar11 = 0;\n  uVar10 = 0;\n  iVar5 = semget(0x414e4547,0,0);\n  if (iVar5 == -1) {\n                    \n    FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);\n  }\n  FUN_0001b5d4();\n  puVar2 = PTR_stdout_000dbfb4;\n  uVar8 = DAT_000dc30c[1];\n  uVar10 = extraout_ECX;\nLAB_00066e30:\n  do {\n    uVar12 = 2;\n    uVar11 = 0xdc2fe;\n    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);\n    if (iVar3 == -1) {\n                    \n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }\n    uVar1 = *DAT_000dc30c;\n    __maxlen = DAT_000dc30c[1];\n    __string = DAT_000dc30c + 2;\n    if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }\nLAB_00066ea6:\n    FUN_00066d09();\n    FUN_0001a70d();\n    uVar10 = extraout_ECX_00;\n    if (local_34 == 0) {\n                    \n      FUN_000b124b();\n    }\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_00066d4c(undefined4 param_1,undefined4 param_2)" (identifier "FUN_00066d4c") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  size_t __maxlen;\n  undefined *puVar2;\n  int iVar3;\n  size_t sVar4;\n  int iVar5;\n  undefined4 extraout_ECX;\n  undefined4 extraout_ECX_00;\n  undefined4 extraout_ECX_01;\n  undefined1 *puVar6;\n  uint *__string;\n  undefined4 *puVar7;\n  uint uVar8;\n  byte bVar9;\n  undefined4 uVar10;\n  undefined4 uVar11;\n  undefined4 uVar12;\n  uint local_34;\n  \n  bVar9 = 0;\n  local_34 = FUN_000b23d7(param_2,&DAT_000d43d5);\n  puVar6 = &DAT_000c5664;\n  puVar7 = &DAT_000dc2f8;\n  for (iVar5 = 0x12; iVar5 != 0; iVar5 = iVar5 + -1) {\n    *(undefined1 *)puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar9 * -2 + 1;\n    puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);\n  }\n  iVar5 = shmget(0x414e4547,0,0);\n  if (iVar5 == -1) {\n                    \n    FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);\n  }\n  uVar10 = 0x1000;\n  DAT_000dc30c = (uint *)shmat(iVar5,(void *)0x0,0x1000);\n  if (DAT_000dc30c == (uint *)0x0) {\n                    \n    FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);\n  }\n  uVar11 = 0;\n  uVar10 = 0;\n  iVar5 = semget(0x414e4547,0,0);\n  if (iVar5 == -1) {\n                    \n    FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);\n  }\n  FUN_0001b5d4();\n  puVar2 = PTR_stdout_000dbfb4;\n  uVar8 = DAT_000dc30c[1];\n  uVar10 = extraout_ECX;\nLAB_00066e30:\n  do {\n    uVar12 = 2;\n    uVar11 = 0xdc2fe;\n    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);\n    if (iVar3 == -1) {\n                    \n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }\n    uVar1 = *DAT_000dc30c;\n    __maxlen = DAT_000dc30c[1];\n    __string = DAT_000dc30c + 2;\n    if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }\nLAB_00066ea6:\n    FUN_00066d09();\n    FUN_0001a70d();\n    uVar10 = extraout_ECX_00;\n    if (local_34 == 0) {\n                    \n      FUN_000b124b();\n    }\n  } while( true );\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "size_t __maxlen;" (primitive_type "size_t") (identifier "__maxlen") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "size_t sVar4;" (primitive_type "size_t") (identifier "sVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 extraout_ECX;" (type_identifier "undefined4") (identifier "extraout_ECX") (; ";")) (declaration "undefined4 extraout_ECX_00;" (type_identifier "undefined4") (identifier "extraout_ECX_00") (; ";")) (declaration "undefined4 extraout_ECX_01;" (type_identifier "undefined4") (identifier "extraout_ECX_01") (; ";")) (declaration "undefined1 *puVar6;" (type_identifier "undefined1") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "uint *__string;" (type_identifier "uint") (pointer_declarator "*__string" (* "*") (identifier "__string")) (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "byte bVar9;" (type_identifier "byte") (identifier "bVar9") (; ";")) (declaration "undefined4 uVar10;" (type_identifier "undefined4") (identifier "uVar10") (; ";")) (declaration "undefined4 uVar11;" (type_identifier "undefined4") (identifier "uVar11") (; ";")) (declaration "undefined4 uVar12;" (type_identifier "undefined4") (identifier "uVar12") (; ";")) (declaration "uint local_34;" (type_identifier "uint") (identifier "local_34") (; ";")) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" (identifier "bVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_34 = FUN_000b23d7(param_2,&DAT_000d43d5);" (assignment_expression "local_34 = FUN_000b23d7(param_2,&DAT_000d43d5)" (identifier "local_34") (= "=") (call_expression "FUN_000b23d7(param_2,&DAT_000d43d5)" (identifier "FUN_000b23d7") (argument_list "(param_2,&DAT_000d43d5)" (( "(") (identifier "param_2") (, ",") (pointer_expression "&DAT_000d43d5" (& "&") (identifier "DAT_000d43d5")) () ")")))) (; ";")) (expression_statement "puVar6 = &DAT_000c5664;" (assignment_expression "puVar6 = &DAT_000c5664" (identifier "puVar6") (= "=") (pointer_expression "&DAT_000c5664" (& "&") (identifier "DAT_000c5664"))) (; ";")) (expression_statement "puVar7 = &DAT_000dc2f8;" (assignment_expression "puVar7 = &DAT_000dc2f8" (identifier "puVar7") (= "=") (pointer_expression "&DAT_000dc2f8" (& "&") (identifier "DAT_000dc2f8"))) (; ";")) (for_statement "for (iVar5 = 0x12; iVar5 != 0; iVar5 = iVar5 + -1) {\n    *(undefined1 *)puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar9 * -2 + 1;\n    puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);\n  }" (for "for") (( "(") (assignment_expression "iVar5 = 0x12" (identifier "iVar5") (= "=") (number_literal "0x12")) (; ";") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar5 = iVar5 + -1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *(undefined1 *)puVar7 = *puVar6;\n    puVar6 = puVar6 + (uint)bVar9 * -2 + 1;\n    puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);\n  }" ({ "{") (expression_statement "*(undefined1 *)puVar7 = *puVar6;" (assignment_expression "*(undefined1 *)puVar7 = *puVar6" (pointer_expression "*(undefined1 *)puVar7" (* "*") (cast_expression "(undefined1 *)puVar7" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar7"))) (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "puVar6 = puVar6 + (uint)bVar9 * -2 + 1;" (assignment_expression "puVar6 = puVar6 + (uint)bVar9 * -2 + 1" (identifier "puVar6") (= "=") (binary_expression "puVar6 + (uint)bVar9 * -2 + 1" (binary_expression "puVar6 + (uint)bVar9 * -2" (identifier "puVar6") (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);" (assignment_expression "puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1)" (identifier "puVar7") (= "=") (cast_expression "(undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar7 + (uint)bVar9 * -2 + 1)" (( "(") (binary_expression "(int)puVar7 + (uint)bVar9 * -2 + 1" (binary_expression "(int)puVar7 + (uint)bVar9 * -2" (cast_expression "(int)puVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar7")) (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar5 = shmget(0x414e4547,0,0);" (assignment_expression "iVar5 = shmget(0x414e4547,0,0)" (identifier "iVar5") (= "=") (call_expression "shmget(0x414e4547,0,0)" (identifier "shmget") (argument_list "(0x414e4547,0,0)" (( "(") (number_literal "0x414e4547") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar5 == -1) {\n                    \n    FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);\n  }" (if "if") (parenthesized_expression "(iVar5 == -1)" (( "(") (binary_expression "iVar5 == -1" (identifier "iVar5") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n                    \n    FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);\n  }" ({ "{") (expression_statement "FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);" (call_expression "FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8)" (identifier "FUN_00018fc9") (argument_list "("can\'t %s syslogd buffer",&DAT_000d43d8)" (( "(") (string_literal ""can\'t %s syslogd buffer"" (" """) (string_content "can") (escape_sequence "\'") (string_content "t %s syslogd buffer") (" """)) (, ",") (pointer_expression "&DAT_000d43d8" (& "&") (identifier "DAT_000d43d8")) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar10 = 0x1000;" (assignment_expression "uVar10 = 0x1000" (identifier "uVar10") (= "=") (number_literal "0x1000")) (; ";")) (expression_statement "DAT_000dc30c = (uint *)shmat(iVar5,(void *)0x0,0x1000);" (assignment_expression "DAT_000dc30c = (uint *)shmat(iVar5,(void *)0x0,0x1000)" (identifier "DAT_000dc30c") (= "=") (cast_expression "(uint *)shmat(iVar5,(void *)0x0,0x1000)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "shmat(iVar5,(void *)0x0,0x1000)" (identifier "shmat") (argument_list "(iVar5,(void *)0x0,0x1000)" (( "(") (identifier "iVar5") (, ",") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (, ",") (number_literal "0x1000") () ")"))))) (; ";")) (if_statement "if (DAT_000dc30c == (uint *)0x0) {\n                    \n    FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);\n  }" (if "if") (parenthesized_expression "(DAT_000dc30c == (uint *)0x0)" (( "(") (binary_expression "DAT_000dc30c == (uint *)0x0" (identifier "DAT_000dc30c") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);\n  }" ({ "{") (expression_statement "FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);" (call_expression "FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7)" (identifier "FUN_00018fc9") (argument_list "("can\'t %s syslogd buffer","access",uVar10,puVar7)" (( "(") (string_literal ""can\'t %s syslogd buffer"" (" """) (string_content "can") (escape_sequence "\'") (string_content "t %s syslogd buffer") (" """)) (, ",") (string_literal ""access"" (" """) (string_content "access") (" """)) (, ",") (identifier "uVar10") (, ",") (identifier "puVar7") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" (identifier "uVar10") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = semget(0x414e4547,0,0);" (assignment_expression "iVar5 = semget(0x414e4547,0,0)" (identifier "iVar5") (= "=") (call_expression "semget(0x414e4547,0,0)" (identifier "semget") (argument_list "(0x414e4547,0,0)" (( "(") (number_literal "0x414e4547") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar5 == -1) {\n                    \n    FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);\n  }" (if "if") (parenthesized_expression "(iVar5 == -1)" (( "(") (binary_expression "iVar5 == -1" (identifier "iVar5") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n                    \n    FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);\n  }" ({ "{") (expression_statement "FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);" (call_expression "FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6)" (identifier "FUN_00018fc9") (argument_list "("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6)" (( "(") (string_literal ""can\'t get access to semaphores for syslogd buffer"" (" """) (string_content "can") (escape_sequence "\'") (string_content "t get access to semaphores for syslogd buffer") (" """)) (, ",") (identifier "uVar10") (, ",") (identifier "uVar11") (, ",") (identifier "puVar6") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0001b5d4();" (call_expression "FUN_0001b5d4()" (identifier "FUN_0001b5d4") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar2 = PTR_stdout_000dbfb4;" (assignment_expression "puVar2 = PTR_stdout_000dbfb4" (identifier "puVar2") (= "=") (identifier "PTR_stdout_000dbfb4")) (; ";")) (expression_statement "uVar8 = DAT_000dc30c[1];" (assignment_expression "uVar8 = DAT_000dc30c[1]" (identifier "uVar8") (= "=") (subscript_expression "DAT_000dc30c[1]" (identifier "DAT_000dc30c") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar10 = extraout_ECX;" (assignment_expression "uVar10 = extraout_ECX" (identifier "uVar10") (= "=") (identifier "extraout_ECX")) (; ";")) (labeled_statement "LAB_00066e30:\n  do {\n    uVar12 = 2;\n    uVar11 = 0xdc2fe;\n    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);\n    if (iVar3 == -1) {\n                    \n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }\n    uVar1 = *DAT_000dc30c;\n    __maxlen = DAT_000dc30c[1];\n    __string = DAT_000dc30c + 2;\n    if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }\nLAB_00066ea6:\n    FUN_00066d09();\n    FUN_0001a70d();\n    uVar10 = extraout_ECX_00;\n    if (local_34 == 0) {\n                    \n      FUN_000b124b();\n    }\n  } while( true );" (statement_identifier "LAB_00066e30") (: ":") (do_statement "do {\n    uVar12 = 2;\n    uVar11 = 0xdc2fe;\n    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);\n    if (iVar3 == -1) {\n                    \n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }\n    uVar1 = *DAT_000dc30c;\n    __maxlen = DAT_000dc30c[1];\n    __string = DAT_000dc30c + 2;\n    if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }\nLAB_00066ea6:\n    FUN_00066d09();\n    FUN_0001a70d();\n    uVar10 = extraout_ECX_00;\n    if (local_34 == 0) {\n                    \n      FUN_000b124b();\n    }\n  } while( true );" (do "do") (compound_statement "{\n    uVar12 = 2;\n    uVar11 = 0xdc2fe;\n    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);\n    if (iVar3 == -1) {\n                    \n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }\n    uVar1 = *DAT_000dc30c;\n    __maxlen = DAT_000dc30c[1];\n    __string = DAT_000dc30c + 2;\n    if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }\nLAB_00066ea6:\n    FUN_00066d09();\n    FUN_0001a70d();\n    uVar10 = extraout_ECX_00;\n    if (local_34 == 0) {\n                    \n      FUN_000b124b();\n    }\n  }" ({ "{") (expression_statement "uVar12 = 2;" (assignment_expression "uVar12 = 2" (identifier "uVar12") (= "=") (number_literal "2")) (; ";")) (expression_statement "uVar11 = 0xdc2fe;" (assignment_expression "uVar11 = 0xdc2fe" (identifier "uVar11") (= "=") (number_literal "0xdc2fe")) (; ";")) (expression_statement "iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);" (assignment_expression "iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2)" (identifier "iVar3") (= "=") (call_expression "semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2)" (identifier "semop") (argument_list "(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2)" (( "(") (identifier "iVar5") (, ",") (cast_expression "(sembuf *)((int)&DAT_000dc2fc + 2)" (( "(") (type_descriptor "sembuf *" (type_identifier "sembuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&DAT_000dc2fc + 2)" (( "(") (binary_expression "(int)&DAT_000dc2fc + 2" (cast_expression "(int)&DAT_000dc2fc" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&DAT_000dc2fc" (& "&") (identifier "DAT_000dc2fc"))) (+ "+") (number_literal "2")) () ")"))) (, ",") (number_literal "2") () ")")))) (; ";")) (if_statement "if (iVar3 == -1) {\n                    \n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }" (if "if") (parenthesized_expression "(iVar3 == -1)" (( "(") (binary_expression "iVar3 == -1" (identifier "iVar3") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n                    \n      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);\n    }" ({ "{") (expression_statement "FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);" (call_expression "FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10)" (identifier "FUN_00018fc9") (argument_list "("semop[SMrdn]",uVar11,uVar12,uVar10)" (( "(") (string_literal ""semop[SMrdn]"" (" """) (string_content "semop[SMrdn]") (" """)) (, ",") (identifier "uVar11") (, ",") (identifier "uVar12") (, ",") (identifier "uVar10") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar1 = *DAT_000dc30c;" (assignment_expression "uVar1 = *DAT_000dc30c" (identifier "uVar1") (= "=") (pointer_expression "*DAT_000dc30c" (* "*") (identifier "DAT_000dc30c"))) (; ";")) (expression_statement "__maxlen = DAT_000dc30c[1];" (assignment_expression "__maxlen = DAT_000dc30c[1]" (identifier "__maxlen") (= "=") (subscript_expression "DAT_000dc30c[1]" (identifier "DAT_000dc30c") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "__string = DAT_000dc30c + 2;" (assignment_expression "__string = DAT_000dc30c + 2" (identifier "__string") (= "=") (binary_expression "DAT_000dc30c + 2" (identifier "DAT_000dc30c") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if ((local_34 & 1) == 0) {\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }\n    else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }" (if "if") (parenthesized_expression "((local_34 & 1) == 0)" (( "(") (binary_expression "(local_34 & 1) == 0" (parenthesized_expression "(local_34 & 1)" (( "(") (binary_expression "local_34 & 1" (identifier "local_34") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      local_34 = (int)local_34 >> 1;\n      sVar4 = strlen((char *)((int)__string + uVar8));\n      uVar8 = uVar8 + sVar4;\n      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }\n    }" ({ "{") (expression_statement "local_34 = (int)local_34 >> 1;" (assignment_expression "local_34 = (int)local_34 >> 1" (identifier "local_34") (= "=") (binary_expression "(int)local_34 >> 1" (cast_expression "(int)local_34" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_34")) (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "sVar4 = strlen((char *)((int)__string + uVar8));" (assignment_expression "sVar4 = strlen((char *)((int)__string + uVar8))" (identifier "sVar4") (= "=") (call_expression "strlen((char *)((int)__string + uVar8))" (identifier "strlen") (argument_list "((char *)((int)__string + uVar8))" (( "(") (cast_expression "(char *)((int)__string + uVar8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__string + uVar8)" (( "(") (binary_expression "(int)__string + uVar8" (cast_expression "(int)__string" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__string")) (+ "+") (identifier "uVar8")) () ")"))) () ")")))) (; ";")) (expression_statement "uVar8 = uVar8 + sVar4;" (assignment_expression "uVar8 = uVar8 + sVar4" (identifier "uVar8") (= "=") (binary_expression "uVar8 + sVar4" (identifier "uVar8") (+ "+") (identifier "sVar4"))) (; ";")) (if_statement "if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }" (if "if") (parenthesized_expression "((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8))" (( "(") (binary_expression "(uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)" (parenthesized_expression "(uVar8 < uVar1)" (( "(") (binary_expression "uVar8 < uVar1" (identifier "uVar8") (< "<") (identifier "uVar1")) () ")")) (|| "||") (parenthesized_expression "(uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)" (( "(") (comma_expression "uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8" (assignment_expression "uVar8 = strnlen((char *)__string,__maxlen)" (identifier "uVar8") (= "=") (call_expression "strnlen((char *)__string,__maxlen)" (identifier "strnlen") (argument_list "((char *)__string,__maxlen)" (( "(") (cast_expression "(char *)__string" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "__string")) (, ",") (identifier "__maxlen") () ")")))) (, ",") (binary_expression "__maxlen != uVar8" (identifier "__maxlen") (!= "!=") (identifier "uVar8"))) () ")"))) () ")")) (compound_statement "{\n        uVar8 = uVar8 + 1;\n        if (uVar8 < uVar1) goto LAB_00066ef6;\n        uVar8 = 0;\n        goto LAB_00066ef6;\n      }" ({ "{") (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" (identifier "uVar8") (= "=") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar8 < uVar1) goto LAB_00066ef6;" (if "if") (parenthesized_expression "(uVar8 < uVar1)" (( "(") (binary_expression "uVar8 < uVar1" (identifier "uVar8") (< "<") (identifier "uVar1")) () ")")) (goto_statement "goto LAB_00066ef6;" (goto "goto") (statement_identifier "LAB_00066ef6") (; ";"))) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00066ef6;" (goto "goto") (statement_identifier "LAB_00066ef6") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }" (else "else") (compound_statement "{\n      if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }\n      do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);\n    }" ({ "{") (if_statement "if (uVar8 == __maxlen) {\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }" (if "if") (parenthesized_expression "(uVar8 == __maxlen)" (( "(") (binary_expression "uVar8 == __maxlen" (identifier "uVar8") (== "==") (identifier "__maxlen")) () ")")) (compound_statement "{\n        FUN_00066d09();\n        FUN_0001a70d();\n        sleep(1);\n        uVar10 = extraout_ECX_01;\n        goto LAB_00066e30;\n      }" ({ "{") (expression_statement "FUN_00066d09();" (call_expression "FUN_00066d09()" (identifier "FUN_00066d09") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0001a70d();" (call_expression "FUN_0001a70d()" (identifier "FUN_0001a70d") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "sleep(1);" (call_expression "sleep(1)" (identifier "sleep") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (expression_statement "uVar10 = extraout_ECX_01;" (assignment_expression "uVar10 = extraout_ECX_01" (identifier "uVar10") (= "=") (identifier "extraout_ECX_01")) (; ";")) (goto_statement "goto LAB_00066e30;" (goto "goto") (statement_identifier "LAB_00066e30") (; ";")) (} "}"))) (do_statement "do {\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      } while (__maxlen != uVar8);" (do "do") (compound_statement "{\n        while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }\nLAB_00066ef6:\n      }" ({ "{") (while_statement "while( true ) {\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);\n          sVar4 = strlen((char *)((int)__string + uVar8));\n          uVar8 = sVar4 + 1 + uVar8;\n          if (uVar8 < uVar1) break;\n          uVar8 = 0;\n          if (__maxlen == 0) goto LAB_00066ea6;\n        }" ({ "{") (expression_statement "fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);" (call_expression "fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2)" (identifier "fputs_unlocked") (argument_list "((char *)((int)__string + uVar8),*(FILE **)puVar2)" (( "(") (cast_expression "(char *)((int)__string + uVar8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__string + uVar8)" (( "(") (binary_expression "(int)__string + uVar8" (cast_expression "(int)__string" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__string")) (+ "+") (identifier "uVar8")) () ")"))) (, ",") (pointer_expression "*(FILE **)puVar2" (* "*") (cast_expression "(FILE **)puVar2" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar2"))) () ")"))) (; ";")) (expression_statement "sVar4 = strlen((char *)((int)__string + uVar8));" (assignment_expression "sVar4 = strlen((char *)((int)__string + uVar8))" (identifier "sVar4") (= "=") (call_expression "strlen((char *)((int)__string + uVar8))" (identifier "strlen") (argument_list "((char *)((int)__string + uVar8))" (( "(") (cast_expression "(char *)((int)__string + uVar8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__string + uVar8)" (( "(") (binary_expression "(int)__string + uVar8" (cast_expression "(int)__string" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__string")) (+ "+") (identifier "uVar8")) () ")"))) () ")")))) (; ";")) (expression_statement "uVar8 = sVar4 + 1 + uVar8;" (assignment_expression "uVar8 = sVar4 + 1 + uVar8" (identifier "uVar8") (= "=") (binary_expression "sVar4 + 1 + uVar8" (binary_expression "sVar4 + 1" (identifier "sVar4") (+ "+") (number_literal "1")) (+ "+") (identifier "uVar8"))) (; ";")) (if_statement "if (uVar8 < uVar1) break;" (if "if") (parenthesized_expression "(uVar8 < uVar1)" (( "(") (binary_expression "uVar8 < uVar1" (identifier "uVar8") (< "<") (identifier "uVar1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (if_statement "if (__maxlen == 0) goto LAB_00066ea6;" (if "if") (parenthesized_expression "(__maxlen == 0)" (( "(") (binary_expression "__maxlen == 0" (identifier "__maxlen") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00066ea6;" (goto "goto") (statement_identifier "LAB_00066ea6") (; ";"))) (} "}"))) (labeled_statement "LAB_00066ef6:" (statement_identifier "LAB_00066ef6") (: ":") (expression_statement "" (; ""))) (} "}")) (while "while") (parenthesized_expression "(__maxlen != uVar8)" (( "(") (binary_expression "__maxlen != uVar8" (identifier "__maxlen") (!= "!=") (identifier "uVar8")) () ")")) (; ";")) (} "}")))) (labeled_statement "LAB_00066ea6:\n    FUN_00066d09();" (statement_identifier "LAB_00066ea6") (: ":") (expression_statement "FUN_00066d09();" (call_expression "FUN_00066d09()" (identifier "FUN_00066d09") (argument_list "()" (( "(") () ")"))) (; ";"))) (expression_statement "FUN_0001a70d();" (call_expression "FUN_0001a70d()" (identifier "FUN_0001a70d") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar10 = extraout_ECX_00;" (assignment_expression "uVar10 = extraout_ECX_00" (identifier "uVar10") (= "=") (identifier "extraout_ECX_00")) (; ";")) (if_statement "if (local_34 == 0) {\n                    \n      FUN_000b124b();\n    }" (if "if") (parenthesized_expression "(local_34 == 0)" (( "(") (binary_expression "local_34 == 0" (identifier "local_34") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      FUN_000b124b();\n    }" ({ "{") (expression_statement "FUN_000b124b();" (call_expression "FUN_000b124b()" (identifier "FUN_000b124b") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";"))) (} "}")))

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

int function_1(int argc,char **argv)

{
}


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

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

void MASKED(undefined4 param_1,undefined4 param_2)

{
  uint uVar1;
  size_t __maxlen;
  undefined *puVar2;
  int iVar3;
  size_t sVar4;
  int iVar5;
  undefined4 extraout_ECX;
  undefined4 extraout_ECX_00;
  undefined4 extraout_ECX_01;
  undefined1 *puVar6;
  uint *__string;
  undefined4 *puVar7;
  uint uVar8;
  byte bVar9;
  undefined4 uVar10;
  undefined4 uVar11;
  undefined4 uVar12;
  uint local_34;
  
  bVar9 = 0;
  local_34 = FUN_000b23d7(param_2,&DAT_000d43d5);
  puVar6 = &DAT_000c5664;
  puVar7 = &DAT_000dc2f8;
  for (iVar5 = 0x12; iVar5 != 0; iVar5 = iVar5 + -1) {
    *(undefined1 *)puVar7 = *puVar6;
    puVar6 = puVar6 + (uint)bVar9 * -2 + 1;
    puVar7 = (undefined4 *)((int)puVar7 + (uint)bVar9 * -2 + 1);
  }
  iVar5 = shmget(0x414e4547,0,0);
  if (iVar5 == -1) {
                    /* WARNING: Subroutine does not return */
    FUN_00018fc9("can\'t %s syslogd buffer",&DAT_000d43d8);
  }
  uVar10 = 0x1000;
  DAT_000dc30c = (uint *)shmat(iVar5,(void *)0x0,0x1000);
  if (DAT_000dc30c == (uint *)0x0) {
                    /* WARNING: Subroutine does not return */
    FUN_00018fc9("can\'t %s syslogd buffer","access",uVar10,puVar7);
  }
  uVar11 = 0;
  uVar10 = 0;
  iVar5 = semget(0x414e4547,0,0);
  if (iVar5 == -1) {
                    /* WARNING: Subroutine does not return */
    FUN_00018fc9("can\'t get access to semaphores for syslogd buffer",uVar10,uVar11,puVar6);
  }
  FUN_0001b5d4();
  puVar2 = PTR_stdout_000dbfb4;
  uVar8 = DAT_000dc30c[1];
  uVar10 = extraout_ECX;
LAB_00066e30:
  do {
    uVar12 = 2;
    uVar11 = 0xdc2fe;
    iVar3 = semop(iVar5,(sembuf *)((int)&DAT_000dc2fc + 2),2);
    if (iVar3 == -1) {
                    /* WARNING: Subroutine does not return */
      FUN_00018fc9("semop[SMrdn]",uVar11,uVar12,uVar10);
    }
    uVar1 = *DAT_000dc30c;
    __maxlen = DAT_000dc30c[1];
    __string = DAT_000dc30c + 2;
    if ((local_34 & 1) == 0) {
      local_34 = (int)local_34 >> 1;
      sVar4 = strlen((char *)((int)__string + uVar8));
      uVar8 = uVar8 + sVar4;
      if ((uVar8 < uVar1) || (uVar8 = strnlen((char *)__string,__maxlen), __maxlen != uVar8)) {
        uVar8 = uVar8 + 1;
        if (uVar8 < uVar1) goto LAB_00066ef6;
        uVar8 = 0;
        goto LAB_00066ef6;
      }
    }
    else {
      if (uVar8 == __maxlen) {
        FUN_00066d09();
        FUN_0001a70d();
        sleep(1);
        uVar10 = extraout_ECX_01;
        goto LAB_00066e30;
      }
      do {
        while( true ) {
          fputs_unlocked((char *)((int)__string + uVar8),*(FILE **)puVar2);
          sVar4 = strlen((char *)((int)__string + uVar8));
          uVar8 = sVar4 + 1 + uVar8;
          if (uVar8 < uVar1) break;
          uVar8 = 0;
          if (__maxlen == 0) goto LAB_00066ea6;
        }
LAB_00066ef6:
      } while (__maxlen != uVar8);
    }
LAB_00066ea6:
    FUN_00066d09();
    FUN_0001a70d();
    uVar10 = extraout_ECX_00;
    if (local_34 == 0) {
                    /* WARNING: Subroutine does not return */
      FUN_000b124b();
    }
  } while( true );
}

