
int read_utmp(char *file,size_t *n_entries,STRUCT_UTMP **utmp_buf,int options)

{
  undefined1 auVar1 [16];
  undefined2 uVar2;
  __pid_t _Var3;
  int iVar4;
  int *piVar5;
  utmpx *puVar6;
  STRUCT_UTMP *pSVar7;
  long lVar8;
  ulong uVar9;
  undefined8 *puVar10;
  undefined8 *puVar11;
  size_t sVar12;
  STRUCT_UTMP *p;
  ulong uVar13;
  byte bVar14;
  
  bVar14 = 0;
  utmpxname(file);
  setutxent();
  sVar12 = 0;
  uVar13 = 0;
  p = (STRUCT_UTMP *)0x0;
LAB_001068ac:
  do {
    puVar6 = getutxent();
    if (puVar6 == (utmpx *)0x0) {
      endutxent();
      *n_entries = sVar12;
      *utmp_buf = p;
      return 0;
    }
    if ((puVar6->ut_user[0] != '\0') && (puVar6->ut_type == 7)) goto LAB_00106888;
  } while ((options & 2U) != 0);
  goto LAB_001068cd;
LAB_00106888:
  if (((options & 1U) == 0) ||
     (((puVar6->ut_pid < 1 || (iVar4 = kill(puVar6->ut_pid,0), -1 < iVar4)) ||
      (piVar5 = __errno_location(), *piVar5 != 3)))) {
LAB_001068cd:
    if (sVar12 == uVar13) {
      if (p == (STRUCT_UTMP *)0x0) {
        if (uVar13 == 0) {
          uVar13 = 1;
        }
        else {
          auVar1._8_8_ = 0;
          auVar1._0_8_ = uVar13;
          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {
                    /* WARNING: Subroutine does not return */
            xalloc_die();
          }
        }
      }
      else {
        if (0x38e38e38e38e37 < uVar13) {
                    /* WARNING: Subroutine does not return */
          xalloc_die();
        }
        uVar13 = uVar13 + 1 + (uVar13 >> 1);
      }
      p = (STRUCT_UTMP *)xrealloc(p,uVar13 * 0x180);
    }
    pSVar7 = p + sVar12;
    uVar2 = *(undefined2 *)&puVar6->field_0x2;
    _Var3 = puVar6->ut_pid;
    pSVar7->ut_type = puVar6->ut_type;
    *(undefined2 *)&pSVar7->field_0x2 = uVar2;
    pSVar7->ut_pid = _Var3;
    *(undefined8 *)(pSVar7->__glibc_reserved + 0xc) = *(undefined8 *)puVar6->__unused;
    puVar11 = (undefined8 *)((ulong)pSVar7->ut_line & 0xfffffffffffffff8);
    lVar8 = (long)pSVar7 - (long)puVar11;
    puVar10 = (undefined8 *)((long)puVar6 - lVar8);
    for (uVar9 = (ulong)((int)lVar8 + 0x180U >> 3); uVar9 != 0; uVar9 = uVar9 - 1) {
      *puVar11 = *puVar10;
      puVar10 = puVar10 + (ulong)bVar14 * -2 + 1;
      puVar11 = puVar11 + (ulong)bVar14 * -2 + 1;
    }
    sVar12 = sVar12 + 1;
  }
  goto LAB_001068ac;
}



undefined8 FUN_00106846(char *param_1,ulong *param_2,long *param_3,uint param_4)

{
  undefined1 auVar1 [16];
  int iVar2;
  int *piVar3;
  utmpx *puVar4;
  undefined8 *puVar5;
  long lVar6;
  ulong uVar7;
  undefined8 *puVar8;
  ulong uVar9;
  long lVar10;
  ulong uVar11;
  byte bVar12;
  
  bVar12 = 0;
  utmpxname(param_1);
  setutxent();
  uVar9 = 0;
  uVar11 = 0;
  lVar10 = 0;
LAB_001068ac:
  do {
    puVar4 = getutxent();
    if (puVar4 == (utmpx *)0x0) {
      endutxent();
      *param_2 = uVar9;
      *param_3 = lVar10;
      return 0;
    }
    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;
  } while ((param_4 & 2) != 0);
  goto LAB_001068cd;
LAB_00106888:
  if (((param_4 & 1) == 0) ||
     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||
      (piVar3 = __errno_location(), *piVar3 != 3)))) {
LAB_001068cd:
    if (uVar9 == uVar11) {
      if (lVar10 == 0) {
        if (uVar11 == 0) {
          uVar11 = 1;
        }
        else {
          auVar1._8_8_ = 0;
          auVar1._0_8_ = uVar11;
          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {
                    /* WARNING: Subroutine does not return */
            FUN_00106663();
          }
        }
      }
      else {
        if (0x38e38e38e38e37 < uVar11) {
                    /* WARNING: Subroutine does not return */
          FUN_00106663();
        }
        uVar11 = uVar11 + 1 + (uVar11 >> 1);
      }
      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);
    }
    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);
    *puVar5 = *(undefined8 *)puVar4;
    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;
    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);
    puVar8 = (undefined8 *)((long)puVar4 - lVar6);
    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);
    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {
      *puVar5 = *puVar8;
      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;
      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;
    }
    uVar9 = uVar9 + 1;
  }
  goto LAB_001068ac;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RSP],RSI
MOV qword ptr [RSP + 0x8],RDX
MOV R12D,ECX
CALL 0x00102030
CALL 0x00102230
MOV R13D,0x0
MOV R15D,0x0
MOV R14D,0x0
MOV EBP,R12D
AND EBP,0x2
AND R12D,0x1
JMP 0x001068ac
TEST R12D,R12D
JZ 0x001068cd
MOV EDI,dword ptr [RBX + 0x4]
TEST EDI,EDI
JLE 0x001068cd
MOV ESI,0x0
CALL 0x00102250
TEST EAX,EAX
JNS 0x001068cd
CALL 0x00102080
CMP dword ptr [RAX],0x3
JNZ 0x001068cd
CALL 0x00102320
MOV RBX,RAX
TEST RAX,RAX
JZ 0x00106982
CMP byte ptr [RBX + 0x2c],0x0
JZ 0x001068c9
CMP word ptr [RBX],0x7
JZ 0x00106888
TEST EBP,EBP
JNZ 0x001068ac
CMP R13,R15
JZ 0x00106916
LEA RAX,[R13 + R13*0x2]
SHL RAX,0x7
ADD RAX,R14
MOV RDX,qword ptr [RBX]
MOV qword ptr [RAX],RDX
MOV RDX,qword ptr [RBX + 0x178]
MOV qword ptr [RAX + 0x178],RDX
LEA RDI,[RAX + 0x8]
AND RDI,-0x8
SUB RAX,RDI
MOV RSI,RBX
SUB RSI,RAX
ADD EAX,0x180
SHR EAX,0x3
MOV ECX,EAX
MOVSQ.REP RDI,RSI
ADD R13,0x1
JMP 0x001068ac
TEST R14,R14
JZ 0x0010694a
MOV RAX,0x38e38e38e38e37
CMP R15,RAX
JA 0x00106975
MOV RAX,R15
SHR RAX,0x1
LEA R15,[R15 + RAX*0x1 + 0x1]
LEA RSI,[R15 + R15*0x2]
SHL RSI,0x7
MOV RDI,R14
CALL 0x0010647c
MOV R14,RAX
JMP 0x001068d2
TEST R15,R15
JZ 0x0010697a
MOV EDX,0x180
MOV RAX,RDX
MUL R15
SETO DL
MOVZX EDX,DL
TEST RAX,RAX
MOV EAX,0x1
CMOVS RDX,RAX
TEST DL,DL
JZ 0x00106935
CALL 0x00106663
CALL 0x00106663
MOV R15D,0x1
JMP 0x00106935
CALL 0x00102100
MOV RAX,qword ptr [RSP]
MOV qword ptr [RAX],R13
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX],R14
MOV EAX,0x0
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "undefined8 FUN_00106846(char *param_1,ulong *param_2,long *param_3,uint param_4)\n\n{\n  undefined1 auVar1 [16];\n  int iVar2;\n  int *piVar3;\n  utmpx *puVar4;\n  undefined8 *puVar5;\n  long lVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  ulong uVar9;\n  long lVar10;\n  ulong uVar11;\n  byte bVar12;\n  \n  bVar12 = 0;\n  utmpxname(param_1);\n  setutxent();\n  uVar9 = 0;\n  uVar11 = 0;\n  lVar10 = 0;\nLAB_001068ac:\n  do {\n    puVar4 = getutxent();\n    if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }\n    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;\n  } while ((param_4 & 2) != 0);\n  goto LAB_001068cd;\nLAB_00106888:\n  if (((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))) {\nLAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }\n    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);\n    *puVar5 = *(undefined8 *)puVar4;\n    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;\n    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)puVar4 - lVar6);\n    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }\n    uVar9 = uVar9 + 1;\n  }\n  goto LAB_001068ac;\n}\n\n" (function_definition "undefined8 FUN_00106846(char *param_1,ulong *param_2,long *param_3,uint param_4)\n\n{\n  undefined1 auVar1 [16];\n  int iVar2;\n  int *piVar3;\n  utmpx *puVar4;\n  undefined8 *puVar5;\n  long lVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  ulong uVar9;\n  long lVar10;\n  ulong uVar11;\n  byte bVar12;\n  \n  bVar12 = 0;\n  utmpxname(param_1);\n  setutxent();\n  uVar9 = 0;\n  uVar11 = 0;\n  lVar10 = 0;\nLAB_001068ac:\n  do {\n    puVar4 = getutxent();\n    if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }\n    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;\n  } while ((param_4 & 2) != 0);\n  goto LAB_001068cd;\nLAB_00106888:\n  if (((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))) {\nLAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }\n    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);\n    *puVar5 = *(undefined8 *)puVar4;\n    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;\n    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)puVar4 - lVar6);\n    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }\n    uVar9 = uVar9 + 1;\n  }\n  goto LAB_001068ac;\n}" type_identifier (function_declarator "FUN_00106846(char *param_1,ulong *param_2,long *param_3,uint param_4)" identifier (parameter_list "(char *param_1,ulong *param_2,long *param_3,uint param_4)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long *param_3" (sized_type_specifier "long" long) (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined1 auVar1 [16];\n  int iVar2;\n  int *piVar3;\n  utmpx *puVar4;\n  undefined8 *puVar5;\n  long lVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  ulong uVar9;\n  long lVar10;\n  ulong uVar11;\n  byte bVar12;\n  \n  bVar12 = 0;\n  utmpxname(param_1);\n  setutxent();\n  uVar9 = 0;\n  uVar11 = 0;\n  lVar10 = 0;\nLAB_001068ac:\n  do {\n    puVar4 = getutxent();\n    if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }\n    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;\n  } while ((param_4 & 2) != 0);\n  goto LAB_001068cd;\nLAB_00106888:\n  if (((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))) {\nLAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }\n    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);\n    *puVar5 = *(undefined8 *)puVar4;\n    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;\n    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)puVar4 - lVar6);\n    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }\n    uVar9 = uVar9 + 1;\n  }\n  goto LAB_001068ac;\n}" { (declaration "undefined1 auVar1 [16];" type_identifier (array_declarator "auVar1 [16]" identifier [ number_literal ]) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "utmpx *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "undefined8 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar11;" type_identifier identifier ;) (declaration "byte bVar12;" type_identifier identifier ;) (expression_statement "bVar12 = 0;" (assignment_expression "bVar12 = 0" identifier = number_literal) ;) (expression_statement "utmpxname(param_1);" (call_expression "utmpxname(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "setutxent();" (call_expression "setutxent()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "lVar10 = 0;" (assignment_expression "lVar10 = 0" identifier = number_literal) ;) (labeled_statement "LAB_001068ac:\n  do {\n    puVar4 = getutxent();\n    if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }\n    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;\n  } while ((param_4 & 2) != 0);" statement_identifier : (do_statement "do {\n    puVar4 = getutxent();\n    if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }\n    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;\n  } while ((param_4 & 2) != 0);" do (compound_statement "{\n    puVar4 = getutxent();\n    if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }\n    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;\n  }" { (expression_statement "puVar4 = getutxent();" (assignment_expression "puVar4 = getutxent()" identifier = (call_expression "getutxent()" identifier (argument_list "()" ( )))) ;) (if_statement "if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }" if (parenthesized_expression "(puVar4 == (utmpx *)0x0)" ( (binary_expression "puVar4 == (utmpx *)0x0" identifier == (cast_expression "(utmpx *)0x0" ( (type_descriptor "utmpx *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }" { (expression_statement "endutxent();" (call_expression "endutxent()" identifier (argument_list "()" ( ))) ;) (expression_statement "*param_2 = uVar9;" (assignment_expression "*param_2 = uVar9" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*param_3 = lVar10;" (assignment_expression "*param_3 = lVar10" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;" if (parenthesized_expression "((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7))" ( (binary_expression "(puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)" (parenthesized_expression "(puVar4->ut_user[0] != '\0')" ( (binary_expression "puVar4->ut_user[0] != '\0'" (subscript_expression "puVar4->ut_user[0]" (field_expression "puVar4->ut_user" identifier -> field_identifier) [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(puVar4->ut_type == 7)" ( (binary_expression "puVar4->ut_type == 7" (field_expression "puVar4->ut_type" identifier -> field_identifier) == number_literal) ))) )) (goto_statement "goto LAB_00106888;" goto statement_identifier ;)) }) while (parenthesized_expression "((param_4 & 2) != 0)" ( (binary_expression "(param_4 & 2) != 0" (parenthesized_expression "(param_4 & 2)" ( (binary_expression "param_4 & 2" identifier & number_literal) )) != number_literal) )) ;)) (goto_statement "goto LAB_001068cd;" goto statement_identifier ;) (labeled_statement "LAB_00106888:\n  if (((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))) {\nLAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }\n    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);\n    *puVar5 = *(undefined8 *)puVar4;\n    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;\n    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)puVar4 - lVar6);\n    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }\n    uVar9 = uVar9 + 1;\n  }" statement_identifier : (if_statement "if (((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))) {\nLAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }\n    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);\n    *puVar5 = *(undefined8 *)puVar4;\n    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;\n    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)puVar4 - lVar6);\n    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }\n    uVar9 = uVar9 + 1;\n  }" if (parenthesized_expression "(((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3))))" ( (binary_expression "((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))" (parenthesized_expression "((param_4 & 1) == 0)" ( (binary_expression "(param_4 & 1) == 0" (parenthesized_expression "(param_4 & 1)" ( (binary_expression "param_4 & 1" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))" ( (parenthesized_expression "((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3))" ( (binary_expression "(puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)" (parenthesized_expression "(puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2))" ( (binary_expression "puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)" (binary_expression "puVar4->ut_pid < 1" (field_expression "puVar4->ut_pid" identifier -> field_identifier) < number_literal) || (parenthesized_expression "(iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)" ( (comma_expression "iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2" (assignment_expression "iVar2 = kill(puVar4->ut_pid,0)" identifier = (call_expression "kill(puVar4->ut_pid,0)" identifier (argument_list "(puVar4->ut_pid,0)" ( (field_expression "puVar4->ut_pid" identifier -> field_identifier) , number_literal )))) , (binary_expression "-1 < iVar2" number_literal < identifier)) ))) )) || (parenthesized_expression "(piVar3 = __errno_location(), *piVar3 != 3)" ( (comma_expression "piVar3 = __errno_location(), *piVar3 != 3" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) , (binary_expression "*piVar3 != 3" (pointer_expression "*piVar3" * identifier) != number_literal)) ))) )) ))) )) (compound_statement "{\nLAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }\n    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);\n    *puVar5 = *(undefined8 *)puVar4;\n    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;\n    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)puVar4 - lVar6);\n    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }\n    uVar9 = uVar9 + 1;\n  }" { (labeled_statement "LAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }" statement_identifier : (if_statement "if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }" if (parenthesized_expression "(uVar9 == uVar11)" ( (binary_expression "uVar9 == uVar11" identifier == identifier) )) (compound_statement "{\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }" { (if_statement "if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }" if (parenthesized_expression "(lVar10 == 0)" ( (binary_expression "lVar10 == 0" identifier == number_literal) )) (compound_statement "{\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00106663();\n          }\n        }\n      }" { (if_statement "if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00106663();\n          }\n        }" if (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar11 = 1;\n        }" { (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00106663();\n          }\n        }" else (compound_statement "{\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00106663();\n          }\n        }" { (expression_statement "auVar1._8_8_ = 0;" (assignment_expression "auVar1._8_8_ = 0" (field_expression "auVar1._8_8_" identifier . field_identifier) = number_literal) ;) (expression_statement "auVar1._0_8_ = uVar11;" (assignment_expression "auVar1._0_8_ = uVar11" (field_expression "auVar1._0_8_" identifier . field_identifier) = identifier) ;) (if_statement "if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00106663();\n          }" if (parenthesized_expression "(SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0)" ( (binary_expression "SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0" (binary_expression "SUB168(ZEXT816(0x180) * auVar1,0) < 0" (call_expression "SUB168(ZEXT816(0x180) * auVar1,0)" identifier (argument_list "(ZEXT816(0x180) * auVar1,0)" ( (binary_expression "ZEXT816(0x180) * auVar1" (call_expression "ZEXT816(0x180)" identifier (argument_list "(0x180)" ( number_literal ))) * identifier) , number_literal ))) < number_literal) || (binary_expression "SUB168(ZEXT816(0x180) * auVar1,8) != 0" (call_expression "SUB168(ZEXT816(0x180) * auVar1,8)" identifier (argument_list "(ZEXT816(0x180) * auVar1,8)" ( (binary_expression "ZEXT816(0x180) * auVar1" (call_expression "ZEXT816(0x180)" identifier (argument_list "(0x180)" ( number_literal ))) * identifier) , number_literal ))) != number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n            FUN_00106663();\n          }" { comment (expression_statement "FUN_00106663();" (call_expression "FUN_00106663()" identifier (argument_list "()" ( ))) ;) })) }))) }) (else_clause "else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }" else (compound_statement "{\n        if (0x38e38e38e38e37 < uVar11) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }" { (if_statement "if (0x38e38e38e38e37 < uVar11) {\n                    /* WARNING: Subroutine does not return */\n          FUN_00106663();\n        }" if (parenthesized_expression "(0x38e38e38e38e37 < uVar11)" ( (binary_expression "0x38e38e38e38e37 < uVar11" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          FUN_00106663();\n        }" { comment (expression_statement "FUN_00106663();" (call_expression "FUN_00106663()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "uVar11 = uVar11 + 1 + (uVar11 >> 1);" (assignment_expression "uVar11 = uVar11 + 1 + (uVar11 >> 1)" identifier = (binary_expression "uVar11 + 1 + (uVar11 >> 1)" (binary_expression "uVar11 + 1" identifier + number_literal) + (parenthesized_expression "(uVar11 >> 1)" ( (binary_expression "uVar11 >> 1" identifier >> number_literal) )))) ;) }))) (expression_statement "lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);" (assignment_expression "lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180)" identifier = (call_expression "FUN_0010647c(lVar10,uVar11 * 0x180)" identifier (argument_list "(lVar10,uVar11 * 0x180)" ( identifier , (binary_expression "uVar11 * 0x180" identifier * number_literal) )))) ;) }))) (expression_statement "puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);" (assignment_expression "puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10)" identifier = (cast_expression "(undefined8 *)(uVar9 * 0x180 + lVar10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar9 * 0x180 + lVar10)" ( (binary_expression "uVar9 * 0x180 + lVar10" (binary_expression "uVar9 * 0x180" identifier * number_literal) + identifier) )))) ;) (expression_statement "*puVar5 = *(undefined8 *)puVar4;" (assignment_expression "*puVar5 = *(undefined8 *)puVar4" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*(undefined8 *)puVar4" * (cast_expression "(undefined8 *)puVar4" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar5[0x2f] = *(undefined8 *)puVar4->__unused;" (assignment_expression "puVar5[0x2f] = *(undefined8 *)puVar4->__unused" (subscript_expression "puVar5[0x2f]" identifier [ number_literal ]) = (pointer_expression "*(undefined8 *)puVar4->__unused" * (cast_expression "(undefined8 *)puVar4->__unused" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "puVar4->__unused" identifier -> field_identifier)))) ;) (expression_statement "lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);" (assignment_expression "lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" identifier = (binary_expression "(long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" (cast_expression "(long)puVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(puVar5 + 1) & 0xfffffffffffffff8" (call_expression "(ulong)(puVar5 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) ))) & number_literal) ))))) ;) (expression_statement "puVar8 = (undefined8 *)((long)puVar4 - lVar6);" (assignment_expression "puVar8 = (undefined8 *)((long)puVar4 - lVar6)" identifier = (cast_expression "(undefined8 *)((long)puVar4 - lVar6)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar4 - lVar6)" ( (binary_expression "(long)puVar4 - lVar6" (cast_expression "(long)puVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier) )))) ;) (expression_statement "puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);" (assignment_expression "puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" identifier = (cast_expression "(undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(puVar5 + 1) & 0xfffffffffffffff8" (call_expression "(ulong)(puVar5 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }" for ( (assignment_expression "uVar7 = (ulong)((int)lVar6 + 0x180U >> 3)" identifier = (call_expression "(ulong)((int)lVar6 + 0x180U >> 3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((int)lVar6 + 0x180U >> 3)" ( (binary_expression "(int)lVar6 + 0x180U >> 3" (binary_expression "(int)lVar6 + 0x180U" (cast_expression "(int)lVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) >> number_literal) )))) ; (binary_expression "uVar7 != 0" identifier != number_literal) ; (assignment_expression "uVar7 = uVar7 - 1" identifier = (binary_expression "uVar7 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }" { (expression_statement "*puVar5 = *puVar8;" (assignment_expression "*puVar5 = *puVar8" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;" (assignment_expression "puVar8 = puVar8 + (ulong)bVar12 * -2 + 1" identifier = (binary_expression "puVar8 + (ulong)bVar12 * -2 + 1" (binary_expression "puVar8 + (ulong)bVar12 * -2" identifier + (binary_expression "(ulong)bVar12 * -2" (cast_expression "(ulong)bVar12" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (ulong)bVar12 * -2 + 1" identifier = (binary_expression "puVar5 + (ulong)bVar12 * -2 + 1" (binary_expression "puVar5 + (ulong)bVar12 * -2" identifier + (binary_expression "(ulong)bVar12 * -2" (cast_expression "(ulong)bVar12" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) }))) (goto_statement "goto LAB_001068ac;" goto statement_identifier ;) })))
(translation_unit "int read_utmp(char *file,size_t *n_entries,STRUCT_UTMP **utmp_buf,int options)\n\n{\n  undefined1 auVar1 [16];\n  undefined2 uVar2;\n  __pid_t _Var3;\n  int iVar4;\n  int *piVar5;\n  utmpx *puVar6;\n  STRUCT_UTMP *pSVar7;\n  long lVar8;\n  ulong uVar9;\n  undefined8 *puVar10;\n  undefined8 *puVar11;\n  size_t sVar12;\n  STRUCT_UTMP *p;\n  ulong uVar13;\n  byte bVar14;\n  \n  bVar14 = 0;\n  utmpxname(file);\n  setutxent();\n  sVar12 = 0;\n  uVar13 = 0;\n  p = (STRUCT_UTMP *)0x0;\nLAB_001068ac:\n  do {\n    puVar6 = getutxent();\n    if (puVar6 == (utmpx *)0x0) {\n      endutxent();\n      *n_entries = sVar12;\n      *utmp_buf = p;\n      return 0;\n    }\n    if ((puVar6->ut_user[0] != '\0') && (puVar6->ut_type == 7)) goto LAB_00106888;\n  } while ((options & 2U) != 0);\n  goto LAB_001068cd;\nLAB_00106888:\n  if (((options & 1U) == 0) ||\n     (((puVar6->ut_pid < 1 || (iVar4 = kill(puVar6->ut_pid,0), -1 < iVar4)) ||\n      (piVar5 = __errno_location(), *piVar5 != 3)))) {\nLAB_001068cd:\n    if (sVar12 == uVar13) {\n      if (p == (STRUCT_UTMP *)0x0) {\n        if (uVar13 == 0) {\n          uVar13 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar13;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar13) {\n                    /* WARNING: Subroutine does not return */\n          xalloc_die();\n        }\n        uVar13 = uVar13 + 1 + (uVar13 >> 1);\n      }\n      p = (STRUCT_UTMP *)xrealloc(p,uVar13 * 0x180);\n    }\n    pSVar7 = p + sVar12;\n    uVar2 = *(undefined2 *)&puVar6->field_0x2;\n    _Var3 = puVar6->ut_pid;\n    pSVar7->ut_type = puVar6->ut_type;\n    *(undefined2 *)&pSVar7->field_0x2 = uVar2;\n    pSVar7->ut_pid = _Var3;\n    *(undefined8 *)(pSVar7->__glibc_reserved + 0xc) = *(undefined8 *)puVar6->__unused;\n    puVar11 = (undefined8 *)((ulong)pSVar7->ut_line & 0xfffffffffffffff8);\n    lVar8 = (long)pSVar7 - (long)puVar11;\n    puVar10 = (undefined8 *)((long)puVar6 - lVar8);\n    for (uVar9 = (ulong)((int)lVar8 + 0x180U >> 3); uVar9 != 0; uVar9 = uVar9 - 1) {\n      *puVar11 = *puVar10;\n      puVar10 = puVar10 + (ulong)bVar14 * -2 + 1;\n      puVar11 = puVar11 + (ulong)bVar14 * -2 + 1;\n    }\n    sVar12 = sVar12 + 1;\n  }\n  goto LAB_001068ac;\n}\n\n" (function_definition "int read_utmp(char *file,size_t *n_entries,STRUCT_UTMP **utmp_buf,int options)\n\n{\n  undefined1 auVar1 [16];\n  undefined2 uVar2;\n  __pid_t _Var3;\n  int iVar4;\n  int *piVar5;\n  utmpx *puVar6;\n  STRUCT_UTMP *pSVar7;\n  long lVar8;\n  ulong uVar9;\n  undefined8 *puVar10;\n  undefined8 *puVar11;\n  size_t sVar12;\n  STRUCT_UTMP *p;\n  ulong uVar13;\n  byte bVar14;\n  \n  bVar14 = 0;\n  utmpxname(file);\n  setutxent();\n  sVar12 = 0;\n  uVar13 = 0;\n  p = (STRUCT_UTMP *)0x0;\nLAB_001068ac:\n  do {\n    puVar6 = getutxent();\n    if (puVar6 == (utmpx *)0x0) {\n      endutxent();\n      *n_entries = sVar12;\n      *utmp_buf = p;\n      return 0;\n    }\n    if ((puVar6->ut_user[0] != '\0') && (puVar6->ut_type == 7)) goto LAB_00106888;\n  } while ((options & 2U) != 0);\n  goto LAB_001068cd;\nLAB_00106888:\n  if (((options & 1U) == 0) ||\n     (((puVar6->ut_pid < 1 || (iVar4 = kill(puVar6->ut_pid,0), -1 < iVar4)) ||\n      (piVar5 = __errno_location(), *piVar5 != 3)))) {\nLAB_001068cd:\n    if (sVar12 == uVar13) {\n      if (p == (STRUCT_UTMP *)0x0) {\n        if (uVar13 == 0) {\n          uVar13 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar13;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar13) {\n                    /* WARNING: Subroutine does not return */\n          xalloc_die();\n        }\n        uVar13 = uVar13 + 1 + (uVar13 >> 1);\n      }\n      p = (STRUCT_UTMP *)xrealloc(p,uVar13 * 0x180);\n    }\n    pSVar7 = p + sVar12;\n    uVar2 = *(undefined2 *)&puVar6->field_0x2;\n    _Var3 = puVar6->ut_pid;\n    pSVar7->ut_type = puVar6->ut_type;\n    *(undefined2 *)&pSVar7->field_0x2 = uVar2;\n    pSVar7->ut_pid = _Var3;\n    *(undefined8 *)(pSVar7->__glibc_reserved + 0xc) = *(undefined8 *)puVar6->__unused;\n    puVar11 = (undefined8 *)((ulong)pSVar7->ut_line & 0xfffffffffffffff8);\n    lVar8 = (long)pSVar7 - (long)puVar11;\n    puVar10 = (undefined8 *)((long)puVar6 - lVar8);\n    for (uVar9 = (ulong)((int)lVar8 + 0x180U >> 3); uVar9 != 0; uVar9 = uVar9 - 1) {\n      *puVar11 = *puVar10;\n      puVar10 = puVar10 + (ulong)bVar14 * -2 + 1;\n      puVar11 = puVar11 + (ulong)bVar14 * -2 + 1;\n    }\n    sVar12 = sVar12 + 1;\n  }\n  goto LAB_001068ac;\n}" primitive_type (function_declarator "read_utmp(char *file,size_t *n_entries,STRUCT_UTMP **utmp_buf,int options)" identifier (parameter_list "(char *file,size_t *n_entries,STRUCT_UTMP **utmp_buf,int options)" ( (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) , (parameter_declaration "size_t *n_entries" primitive_type (pointer_declarator "*n_entries" * identifier)) , (parameter_declaration "STRUCT_UTMP **utmp_buf" type_identifier (pointer_declarator "**utmp_buf" * (pointer_declarator "*utmp_buf" * identifier))) , (parameter_declaration "int options" primitive_type identifier) ))) (compound_statement "{\n  undefined1 auVar1 [16];\n  undefined2 uVar2;\n  __pid_t _Var3;\n  int iVar4;\n  int *piVar5;\n  utmpx *puVar6;\n  STRUCT_UTMP *pSVar7;\n  long lVar8;\n  ulong uVar9;\n  undefined8 *puVar10;\n  undefined8 *puVar11;\n  size_t sVar12;\n  STRUCT_UTMP *p;\n  ulong uVar13;\n  byte bVar14;\n  \n  bVar14 = 0;\n  utmpxname(file);\n  setutxent();\n  sVar12 = 0;\n  uVar13 = 0;\n  p = (STRUCT_UTMP *)0x0;\nLAB_001068ac:\n  do {\n    puVar6 = getutxent();\n    if (puVar6 == (utmpx *)0x0) {\n      endutxent();\n      *n_entries = sVar12;\n      *utmp_buf = p;\n      return 0;\n    }\n    if ((puVar6->ut_user[0] != '\0') && (puVar6->ut_type == 7)) goto LAB_00106888;\n  } while ((options & 2U) != 0);\n  goto LAB_001068cd;\nLAB_00106888:\n  if (((options & 1U) == 0) ||\n     (((puVar6->ut_pid < 1 || (iVar4 = kill(puVar6->ut_pid,0), -1 < iVar4)) ||\n      (piVar5 = __errno_location(), *piVar5 != 3)))) {\nLAB_001068cd:\n    if (sVar12 == uVar13) {\n      if (p == (STRUCT_UTMP *)0x0) {\n        if (uVar13 == 0) {\n          uVar13 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar13;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar13) {\n                    /* WARNING: Subroutine does not return */\n          xalloc_die();\n        }\n        uVar13 = uVar13 + 1 + (uVar13 >> 1);\n      }\n      p = (STRUCT_UTMP *)xrealloc(p,uVar13 * 0x180);\n    }\n    pSVar7 = p + sVar12;\n    uVar2 = *(undefined2 *)&puVar6->field_0x2;\n    _Var3 = puVar6->ut_pid;\n    pSVar7->ut_type = puVar6->ut_type;\n    *(undefined2 *)&pSVar7->field_0x2 = uVar2;\n    pSVar7->ut_pid = _Var3;\n    *(undefined8 *)(pSVar7->__glibc_reserved + 0xc) = *(undefined8 *)puVar6->__unused;\n    puVar11 = (undefined8 *)((ulong)pSVar7->ut_line & 0xfffffffffffffff8);\n    lVar8 = (long)pSVar7 - (long)puVar11;\n    puVar10 = (undefined8 *)((long)puVar6 - lVar8);\n    for (uVar9 = (ulong)((int)lVar8 + 0x180U >> 3); uVar9 != 0; uVar9 = uVar9 - 1) {\n      *puVar11 = *puVar10;\n      puVar10 = puVar10 + (ulong)bVar14 * -2 + 1;\n      puVar11 = puVar11 + (ulong)bVar14 * -2 + 1;\n    }\n    sVar12 = sVar12 + 1;\n  }\n  goto LAB_001068ac;\n}" { (declaration "undefined1 auVar1 [16];" type_identifier (array_declarator "auVar1 [16]" identifier [ number_literal ]) ;) (declaration "undefined2 uVar2;" type_identifier identifier ;) (declaration "__pid_t _Var3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "utmpx *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "STRUCT_UTMP *pSVar7;" type_identifier (pointer_declarator "*pSVar7" * identifier) ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "undefined8 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined8 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "size_t sVar12;" primitive_type identifier ;) (declaration "STRUCT_UTMP *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "ulong uVar13;" type_identifier identifier ;) (declaration "byte bVar14;" type_identifier identifier ;) (expression_statement "bVar14 = 0;" (assignment_expression "bVar14 = 0" identifier = number_literal) ;) (expression_statement "utmpxname(file);" (call_expression "utmpxname(file)" identifier (argument_list "(file)" ( identifier ))) ;) (expression_statement "setutxent();" (call_expression "setutxent()" identifier (argument_list "()" ( ))) ;) (expression_statement "sVar12 = 0;" (assignment_expression "sVar12 = 0" identifier = number_literal) ;) (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" identifier = number_literal) ;) (expression_statement "p = (STRUCT_UTMP *)0x0;" (assignment_expression "p = (STRUCT_UTMP *)0x0" identifier = (cast_expression "(STRUCT_UTMP *)0x0" ( (type_descriptor "STRUCT_UTMP *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_001068ac:\n  do {\n    puVar6 = getutxent();\n    if (puVar6 == (utmpx *)0x0) {\n      endutxent();\n      *n_entries = sVar12;\n      *utmp_buf = p;\n      return 0;\n    }\n    if ((puVar6->ut_user[0] != '\0') && (puVar6->ut_type == 7)) goto LAB_00106888;\n  } while ((options & 2U) != 0);" statement_identifier : (do_statement "do {\n    puVar6 = getutxent();\n    if (puVar6 == (utmpx *)0x0) {\n      endutxent();\n      *n_entries = sVar12;\n      *utmp_buf = p;\n      return 0;\n    }\n    if ((puVar6->ut_user[0] != '\0') && (puVar6->ut_type == 7)) goto LAB_00106888;\n  } while ((options & 2U) != 0);" do (compound_statement "{\n    puVar6 = getutxent();\n    if (puVar6 == (utmpx *)0x0) {\n      endutxent();\n      *n_entries = sVar12;\n      *utmp_buf = p;\n      return 0;\n    }\n    if ((puVar6->ut_user[0] != '\0') && (puVar6->ut_type == 7)) goto LAB_00106888;\n  }" { (expression_statement "puVar6 = getutxent();" (assignment_expression "puVar6 = getutxent()" identifier = (call_expression "getutxent()" identifier (argument_list "()" ( )))) ;) (if_statement "if (puVar6 == (utmpx *)0x0) {\n      endutxent();\n      *n_entries = sVar12;\n      *utmp_buf = p;\n      return 0;\n    }" if (parenthesized_expression "(puVar6 == (utmpx *)0x0)" ( (binary_expression "puVar6 == (utmpx *)0x0" identifier == (cast_expression "(utmpx *)0x0" ( (type_descriptor "utmpx *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      endutxent();\n      *n_entries = sVar12;\n      *utmp_buf = p;\n      return 0;\n    }" { (expression_statement "endutxent();" (call_expression "endutxent()" identifier (argument_list "()" ( ))) ;) (expression_statement "*n_entries = sVar12;" (assignment_expression "*n_entries = sVar12" (pointer_expression "*n_entries" * identifier) = identifier) ;) (expression_statement "*utmp_buf = p;" (assignment_expression "*utmp_buf = p" (pointer_expression "*utmp_buf" * identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((puVar6->ut_user[0] != '\0') && (puVar6->ut_type == 7)) goto LAB_00106888;" if (parenthesized_expression "((puVar6->ut_user[0] != '\0') && (puVar6->ut_type == 7))" ( (binary_expression "(puVar6->ut_user[0] != '\0') && (puVar6->ut_type == 7)" (parenthesized_expression "(puVar6->ut_user[0] != '\0')" ( (binary_expression "puVar6->ut_user[0] != '\0'" (subscript_expression "puVar6->ut_user[0]" (field_expression "puVar6->ut_user" identifier -> field_identifier) [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(puVar6->ut_type == 7)" ( (binary_expression "puVar6->ut_type == 7" (field_expression "puVar6->ut_type" identifier -> field_identifier) == number_literal) ))) )) (goto_statement "goto LAB_00106888;" goto statement_identifier ;)) }) while (parenthesized_expression "((options & 2U) != 0)" ( (binary_expression "(options & 2U) != 0" (parenthesized_expression "(options & 2U)" ( (binary_expression "options & 2U" identifier & number_literal) )) != number_literal) )) ;)) (goto_statement "goto LAB_001068cd;" goto statement_identifier ;) (labeled_statement "LAB_00106888:\n  if (((options & 1U) == 0) ||\n     (((puVar6->ut_pid < 1 || (iVar4 = kill(puVar6->ut_pid,0), -1 < iVar4)) ||\n      (piVar5 = __errno_location(), *piVar5 != 3)))) {\nLAB_001068cd:\n    if (sVar12 == uVar13) {\n      if (p == (STRUCT_UTMP *)0x0) {\n        if (uVar13 == 0) {\n          uVar13 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar13;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar13) {\n                    /* WARNING: Subroutine does not return */\n          xalloc_die();\n        }\n        uVar13 = uVar13 + 1 + (uVar13 >> 1);\n      }\n      p = (STRUCT_UTMP *)xrealloc(p,uVar13 * 0x180);\n    }\n    pSVar7 = p + sVar12;\n    uVar2 = *(undefined2 *)&puVar6->field_0x2;\n    _Var3 = puVar6->ut_pid;\n    pSVar7->ut_type = puVar6->ut_type;\n    *(undefined2 *)&pSVar7->field_0x2 = uVar2;\n    pSVar7->ut_pid = _Var3;\n    *(undefined8 *)(pSVar7->__glibc_reserved + 0xc) = *(undefined8 *)puVar6->__unused;\n    puVar11 = (undefined8 *)((ulong)pSVar7->ut_line & 0xfffffffffffffff8);\n    lVar8 = (long)pSVar7 - (long)puVar11;\n    puVar10 = (undefined8 *)((long)puVar6 - lVar8);\n    for (uVar9 = (ulong)((int)lVar8 + 0x180U >> 3); uVar9 != 0; uVar9 = uVar9 - 1) {\n      *puVar11 = *puVar10;\n      puVar10 = puVar10 + (ulong)bVar14 * -2 + 1;\n      puVar11 = puVar11 + (ulong)bVar14 * -2 + 1;\n    }\n    sVar12 = sVar12 + 1;\n  }" statement_identifier : (if_statement "if (((options & 1U) == 0) ||\n     (((puVar6->ut_pid < 1 || (iVar4 = kill(puVar6->ut_pid,0), -1 < iVar4)) ||\n      (piVar5 = __errno_location(), *piVar5 != 3)))) {\nLAB_001068cd:\n    if (sVar12 == uVar13) {\n      if (p == (STRUCT_UTMP *)0x0) {\n        if (uVar13 == 0) {\n          uVar13 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar13;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar13) {\n                    /* WARNING: Subroutine does not return */\n          xalloc_die();\n        }\n        uVar13 = uVar13 + 1 + (uVar13 >> 1);\n      }\n      p = (STRUCT_UTMP *)xrealloc(p,uVar13 * 0x180);\n    }\n    pSVar7 = p + sVar12;\n    uVar2 = *(undefined2 *)&puVar6->field_0x2;\n    _Var3 = puVar6->ut_pid;\n    pSVar7->ut_type = puVar6->ut_type;\n    *(undefined2 *)&pSVar7->field_0x2 = uVar2;\n    pSVar7->ut_pid = _Var3;\n    *(undefined8 *)(pSVar7->__glibc_reserved + 0xc) = *(undefined8 *)puVar6->__unused;\n    puVar11 = (undefined8 *)((ulong)pSVar7->ut_line & 0xfffffffffffffff8);\n    lVar8 = (long)pSVar7 - (long)puVar11;\n    puVar10 = (undefined8 *)((long)puVar6 - lVar8);\n    for (uVar9 = (ulong)((int)lVar8 + 0x180U >> 3); uVar9 != 0; uVar9 = uVar9 - 1) {\n      *puVar11 = *puVar10;\n      puVar10 = puVar10 + (ulong)bVar14 * -2 + 1;\n      puVar11 = puVar11 + (ulong)bVar14 * -2 + 1;\n    }\n    sVar12 = sVar12 + 1;\n  }" if (parenthesized_expression "(((options & 1U) == 0) ||\n     (((puVar6->ut_pid < 1 || (iVar4 = kill(puVar6->ut_pid,0), -1 < iVar4)) ||\n      (piVar5 = __errno_location(), *piVar5 != 3))))" ( (binary_expression "((options & 1U) == 0) ||\n     (((puVar6->ut_pid < 1 || (iVar4 = kill(puVar6->ut_pid,0), -1 < iVar4)) ||\n      (piVar5 = __errno_location(), *piVar5 != 3)))" (parenthesized_expression "((options & 1U) == 0)" ( (binary_expression "(options & 1U) == 0" (parenthesized_expression "(options & 1U)" ( (binary_expression "options & 1U" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(((puVar6->ut_pid < 1 || (iVar4 = kill(puVar6->ut_pid,0), -1 < iVar4)) ||\n      (piVar5 = __errno_location(), *piVar5 != 3)))" ( (parenthesized_expression "((puVar6->ut_pid < 1 || (iVar4 = kill(puVar6->ut_pid,0), -1 < iVar4)) ||\n      (piVar5 = __errno_location(), *piVar5 != 3))" ( (binary_expression "(puVar6->ut_pid < 1 || (iVar4 = kill(puVar6->ut_pid,0), -1 < iVar4)) ||\n      (piVar5 = __errno_location(), *piVar5 != 3)" (parenthesized_expression "(puVar6->ut_pid < 1 || (iVar4 = kill(puVar6->ut_pid,0), -1 < iVar4))" ( (binary_expression "puVar6->ut_pid < 1 || (iVar4 = kill(puVar6->ut_pid,0), -1 < iVar4)" (binary_expression "puVar6->ut_pid < 1" (field_expression "puVar6->ut_pid" identifier -> field_identifier) < number_literal) || (parenthesized_expression "(iVar4 = kill(puVar6->ut_pid,0), -1 < iVar4)" ( (comma_expression "iVar4 = kill(puVar6->ut_pid,0), -1 < iVar4" (assignment_expression "iVar4 = kill(puVar6->ut_pid,0)" identifier = (call_expression "kill(puVar6->ut_pid,0)" identifier (argument_list "(puVar6->ut_pid,0)" ( (field_expression "puVar6->ut_pid" identifier -> field_identifier) , number_literal )))) , (binary_expression "-1 < iVar4" number_literal < identifier)) ))) )) || (parenthesized_expression "(piVar5 = __errno_location(), *piVar5 != 3)" ( (comma_expression "piVar5 = __errno_location(), *piVar5 != 3" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) , (binary_expression "*piVar5 != 3" (pointer_expression "*piVar5" * identifier) != number_literal)) ))) )) ))) )) (compound_statement "{\nLAB_001068cd:\n    if (sVar12 == uVar13) {\n      if (p == (STRUCT_UTMP *)0x0) {\n        if (uVar13 == 0) {\n          uVar13 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar13;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar13) {\n                    /* WARNING: Subroutine does not return */\n          xalloc_die();\n        }\n        uVar13 = uVar13 + 1 + (uVar13 >> 1);\n      }\n      p = (STRUCT_UTMP *)xrealloc(p,uVar13 * 0x180);\n    }\n    pSVar7 = p + sVar12;\n    uVar2 = *(undefined2 *)&puVar6->field_0x2;\n    _Var3 = puVar6->ut_pid;\n    pSVar7->ut_type = puVar6->ut_type;\n    *(undefined2 *)&pSVar7->field_0x2 = uVar2;\n    pSVar7->ut_pid = _Var3;\n    *(undefined8 *)(pSVar7->__glibc_reserved + 0xc) = *(undefined8 *)puVar6->__unused;\n    puVar11 = (undefined8 *)((ulong)pSVar7->ut_line & 0xfffffffffffffff8);\n    lVar8 = (long)pSVar7 - (long)puVar11;\n    puVar10 = (undefined8 *)((long)puVar6 - lVar8);\n    for (uVar9 = (ulong)((int)lVar8 + 0x180U >> 3); uVar9 != 0; uVar9 = uVar9 - 1) {\n      *puVar11 = *puVar10;\n      puVar10 = puVar10 + (ulong)bVar14 * -2 + 1;\n      puVar11 = puVar11 + (ulong)bVar14 * -2 + 1;\n    }\n    sVar12 = sVar12 + 1;\n  }" { (labeled_statement "LAB_001068cd:\n    if (sVar12 == uVar13) {\n      if (p == (STRUCT_UTMP *)0x0) {\n        if (uVar13 == 0) {\n          uVar13 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar13;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar13) {\n                    /* WARNING: Subroutine does not return */\n          xalloc_die();\n        }\n        uVar13 = uVar13 + 1 + (uVar13 >> 1);\n      }\n      p = (STRUCT_UTMP *)xrealloc(p,uVar13 * 0x180);\n    }" statement_identifier : (if_statement "if (sVar12 == uVar13) {\n      if (p == (STRUCT_UTMP *)0x0) {\n        if (uVar13 == 0) {\n          uVar13 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar13;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar13) {\n                    /* WARNING: Subroutine does not return */\n          xalloc_die();\n        }\n        uVar13 = uVar13 + 1 + (uVar13 >> 1);\n      }\n      p = (STRUCT_UTMP *)xrealloc(p,uVar13 * 0x180);\n    }" if (parenthesized_expression "(sVar12 == uVar13)" ( (binary_expression "sVar12 == uVar13" identifier == identifier) )) (compound_statement "{\n      if (p == (STRUCT_UTMP *)0x0) {\n        if (uVar13 == 0) {\n          uVar13 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar13;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar13) {\n                    /* WARNING: Subroutine does not return */\n          xalloc_die();\n        }\n        uVar13 = uVar13 + 1 + (uVar13 >> 1);\n      }\n      p = (STRUCT_UTMP *)xrealloc(p,uVar13 * 0x180);\n    }" { (if_statement "if (p == (STRUCT_UTMP *)0x0) {\n        if (uVar13 == 0) {\n          uVar13 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar13;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar13) {\n                    /* WARNING: Subroutine does not return */\n          xalloc_die();\n        }\n        uVar13 = uVar13 + 1 + (uVar13 >> 1);\n      }" if (parenthesized_expression "(p == (STRUCT_UTMP *)0x0)" ( (binary_expression "p == (STRUCT_UTMP *)0x0" identifier == (cast_expression "(STRUCT_UTMP *)0x0" ( (type_descriptor "STRUCT_UTMP *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (uVar13 == 0) {\n          uVar13 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar13;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n        }\n      }" { (if_statement "if (uVar13 == 0) {\n          uVar13 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar13;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n        }" if (parenthesized_expression "(uVar13 == 0)" ( (binary_expression "uVar13 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar13 = 1;\n        }" { (expression_statement "uVar13 = 1;" (assignment_expression "uVar13 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar13;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n        }" else (compound_statement "{\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar13;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }\n        }" { (expression_statement "auVar1._8_8_ = 0;" (assignment_expression "auVar1._8_8_ = 0" (field_expression "auVar1._8_8_" identifier . field_identifier) = number_literal) ;) (expression_statement "auVar1._0_8_ = uVar13;" (assignment_expression "auVar1._0_8_ = uVar13" (field_expression "auVar1._0_8_" identifier . field_identifier) = identifier) ;) (if_statement "if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }" if (parenthesized_expression "(SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0)" ( (binary_expression "SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0" (binary_expression "SUB168(ZEXT816(0x180) * auVar1,0) < 0" (call_expression "SUB168(ZEXT816(0x180) * auVar1,0)" identifier (argument_list "(ZEXT816(0x180) * auVar1,0)" ( (binary_expression "ZEXT816(0x180) * auVar1" (call_expression "ZEXT816(0x180)" identifier (argument_list "(0x180)" ( number_literal ))) * identifier) , number_literal ))) < number_literal) || (binary_expression "SUB168(ZEXT816(0x180) * auVar1,8) != 0" (call_expression "SUB168(ZEXT816(0x180) * auVar1,8)" identifier (argument_list "(ZEXT816(0x180) * auVar1,8)" ( (binary_expression "ZEXT816(0x180) * auVar1" (call_expression "ZEXT816(0x180)" identifier (argument_list "(0x180)" ( number_literal ))) * identifier) , number_literal ))) != number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n            xalloc_die();\n          }" { comment (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) })) }))) }) (else_clause "else {\n        if (0x38e38e38e38e37 < uVar13) {\n                    /* WARNING: Subroutine does not return */\n          xalloc_die();\n        }\n        uVar13 = uVar13 + 1 + (uVar13 >> 1);\n      }" else (compound_statement "{\n        if (0x38e38e38e38e37 < uVar13) {\n                    /* WARNING: Subroutine does not return */\n          xalloc_die();\n        }\n        uVar13 = uVar13 + 1 + (uVar13 >> 1);\n      }" { (if_statement "if (0x38e38e38e38e37 < uVar13) {\n                    /* WARNING: Subroutine does not return */\n          xalloc_die();\n        }" if (parenthesized_expression "(0x38e38e38e38e37 < uVar13)" ( (binary_expression "0x38e38e38e38e37 < uVar13" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          xalloc_die();\n        }" { comment (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "uVar13 = uVar13 + 1 + (uVar13 >> 1);" (assignment_expression "uVar13 = uVar13 + 1 + (uVar13 >> 1)" identifier = (binary_expression "uVar13 + 1 + (uVar13 >> 1)" (binary_expression "uVar13 + 1" identifier + number_literal) + (parenthesized_expression "(uVar13 >> 1)" ( (binary_expression "uVar13 >> 1" identifier >> number_literal) )))) ;) }))) (expression_statement "p = (STRUCT_UTMP *)xrealloc(p,uVar13 * 0x180);" (assignment_expression "p = (STRUCT_UTMP *)xrealloc(p,uVar13 * 0x180)" identifier = (cast_expression "(STRUCT_UTMP *)xrealloc(p,uVar13 * 0x180)" ( (type_descriptor "STRUCT_UTMP *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(p,uVar13 * 0x180)" identifier (argument_list "(p,uVar13 * 0x180)" ( identifier , (binary_expression "uVar13 * 0x180" identifier * number_literal) ))))) ;) }))) (expression_statement "pSVar7 = p + sVar12;" (assignment_expression "pSVar7 = p + sVar12" identifier = (binary_expression "p + sVar12" identifier + identifier)) ;) (expression_statement "uVar2 = *(undefined2 *)&puVar6->field_0x2;" (assignment_expression "uVar2 = *(undefined2 *)&puVar6->field_0x2" identifier = (pointer_expression "*(undefined2 *)&puVar6->field_0x2" * (cast_expression "(undefined2 *)&puVar6->field_0x2" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&puVar6->field_0x2" & (field_expression "puVar6->field_0x2" identifier -> field_identifier))))) ;) (expression_statement "_Var3 = puVar6->ut_pid;" (assignment_expression "_Var3 = puVar6->ut_pid" identifier = (field_expression "puVar6->ut_pid" identifier -> field_identifier)) ;) (expression_statement "pSVar7->ut_type = puVar6->ut_type;" (assignment_expression "pSVar7->ut_type = puVar6->ut_type" (field_expression "pSVar7->ut_type" identifier -> field_identifier) = (field_expression "puVar6->ut_type" identifier -> field_identifier)) ;) (expression_statement "*(undefined2 *)&pSVar7->field_0x2 = uVar2;" (assignment_expression "*(undefined2 *)&pSVar7->field_0x2 = uVar2" (pointer_expression "*(undefined2 *)&pSVar7->field_0x2" * (cast_expression "(undefined2 *)&pSVar7->field_0x2" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pSVar7->field_0x2" & (field_expression "pSVar7->field_0x2" identifier -> field_identifier)))) = identifier) ;) (expression_statement "pSVar7->ut_pid = _Var3;" (assignment_expression "pSVar7->ut_pid = _Var3" (field_expression "pSVar7->ut_pid" identifier -> field_identifier) = identifier) ;) (expression_statement "*(undefined8 *)(pSVar7->__glibc_reserved + 0xc) = *(undefined8 *)puVar6->__unused;" (assignment_expression "*(undefined8 *)(pSVar7->__glibc_reserved + 0xc) = *(undefined8 *)puVar6->__unused" (pointer_expression "*(undefined8 *)(pSVar7->__glibc_reserved + 0xc)" * (cast_expression "(undefined8 *)(pSVar7->__glibc_reserved + 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pSVar7->__glibc_reserved + 0xc)" ( (binary_expression "pSVar7->__glibc_reserved + 0xc" (field_expression "pSVar7->__glibc_reserved" identifier -> field_identifier) + number_literal) )))) = (pointer_expression "*(undefined8 *)puVar6->__unused" * (cast_expression "(undefined8 *)puVar6->__unused" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "puVar6->__unused" identifier -> field_identifier)))) ;) (expression_statement "puVar11 = (undefined8 *)((ulong)pSVar7->ut_line & 0xfffffffffffffff8);" (assignment_expression "puVar11 = (undefined8 *)((ulong)pSVar7->ut_line & 0xfffffffffffffff8)" identifier = (cast_expression "(undefined8 *)((ulong)pSVar7->ut_line & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)pSVar7->ut_line & 0xfffffffffffffff8)" ( (binary_expression "(ulong)pSVar7->ut_line & 0xfffffffffffffff8" (cast_expression "(ulong)pSVar7->ut_line" ( (type_descriptor "ulong" type_identifier) ) (field_expression "pSVar7->ut_line" identifier -> field_identifier)) & number_literal) )))) ;) (expression_statement "lVar8 = (long)pSVar7 - (long)puVar11;" (assignment_expression "lVar8 = (long)pSVar7 - (long)puVar11" identifier = (binary_expression "(long)pSVar7 - (long)puVar11" (cast_expression "(long)pSVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)puVar11" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "puVar10 = (undefined8 *)((long)puVar6 - lVar8);" (assignment_expression "puVar10 = (undefined8 *)((long)puVar6 - lVar8)" identifier = (cast_expression "(undefined8 *)((long)puVar6 - lVar8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar6 - lVar8)" ( (binary_expression "(long)puVar6 - lVar8" (cast_expression "(long)puVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier) )))) ;) (for_statement "for (uVar9 = (ulong)((int)lVar8 + 0x180U >> 3); uVar9 != 0; uVar9 = uVar9 - 1) {\n      *puVar11 = *puVar10;\n      puVar10 = puVar10 + (ulong)bVar14 * -2 + 1;\n      puVar11 = puVar11 + (ulong)bVar14 * -2 + 1;\n    }" for ( (assignment_expression "uVar9 = (ulong)((int)lVar8 + 0x180U >> 3)" identifier = (call_expression "(ulong)((int)lVar8 + 0x180U >> 3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((int)lVar8 + 0x180U >> 3)" ( (binary_expression "(int)lVar8 + 0x180U >> 3" (binary_expression "(int)lVar8 + 0x180U" (cast_expression "(int)lVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) >> number_literal) )))) ; (binary_expression "uVar9 != 0" identifier != number_literal) ; (assignment_expression "uVar9 = uVar9 - 1" identifier = (binary_expression "uVar9 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar11 = *puVar10;\n      puVar10 = puVar10 + (ulong)bVar14 * -2 + 1;\n      puVar11 = puVar11 + (ulong)bVar14 * -2 + 1;\n    }" { (expression_statement "*puVar11 = *puVar10;" (assignment_expression "*puVar11 = *puVar10" (pointer_expression "*puVar11" * identifier) = (pointer_expression "*puVar10" * identifier)) ;) (expression_statement "puVar10 = puVar10 + (ulong)bVar14 * -2 + 1;" (assignment_expression "puVar10 = puVar10 + (ulong)bVar14 * -2 + 1" identifier = (binary_expression "puVar10 + (ulong)bVar14 * -2 + 1" (binary_expression "puVar10 + (ulong)bVar14 * -2" identifier + (binary_expression "(ulong)bVar14 * -2" (cast_expression "(ulong)bVar14" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar11 = puVar11 + (ulong)bVar14 * -2 + 1;" (assignment_expression "puVar11 = puVar11 + (ulong)bVar14 * -2 + 1" identifier = (binary_expression "puVar11 + (ulong)bVar14 * -2 + 1" (binary_expression "puVar11 + (ulong)bVar14 * -2" identifier + (binary_expression "(ulong)bVar14 * -2" (cast_expression "(ulong)bVar14" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "sVar12 = sVar12 + 1;" (assignment_expression "sVar12 = sVar12 + 1" identifier = (binary_expression "sVar12 + 1" identifier + number_literal)) ;) }))) (goto_statement "goto LAB_001068ac;" goto statement_identifier ;) })))
(translation_unit "undefined8 FUN_00106846(char *param_1,ulong *param_2,long *param_3,uint param_4)\n\n{\n  undefined1 auVar1 [16];\n  int iVar2;\n  int *piVar3;\n  utmpx *puVar4;\n  undefined8 *puVar5;\n  long lVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  ulong uVar9;\n  long lVar10;\n  ulong uVar11;\n  byte bVar12;\n  \n  bVar12 = 0;\n  utmpxname(param_1);\n  setutxent();\n  uVar9 = 0;\n  uVar11 = 0;\n  lVar10 = 0;\nLAB_001068ac:\n  do {\n    puVar4 = getutxent();\n    if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }\n    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;\n  } while ((param_4 & 2) != 0);\n  goto LAB_001068cd;\nLAB_00106888:\n  if (((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))) {\nLAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }\n    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);\n    *puVar5 = *(undefined8 *)puVar4;\n    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;\n    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)puVar4 - lVar6);\n    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }\n    uVar9 = uVar9 + 1;\n  }\n  goto LAB_001068ac;\n}\n\n" (function_definition "undefined8 FUN_00106846(char *param_1,ulong *param_2,long *param_3,uint param_4)\n\n{\n  undefined1 auVar1 [16];\n  int iVar2;\n  int *piVar3;\n  utmpx *puVar4;\n  undefined8 *puVar5;\n  long lVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  ulong uVar9;\n  long lVar10;\n  ulong uVar11;\n  byte bVar12;\n  \n  bVar12 = 0;\n  utmpxname(param_1);\n  setutxent();\n  uVar9 = 0;\n  uVar11 = 0;\n  lVar10 = 0;\nLAB_001068ac:\n  do {\n    puVar4 = getutxent();\n    if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }\n    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;\n  } while ((param_4 & 2) != 0);\n  goto LAB_001068cd;\nLAB_00106888:\n  if (((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))) {\nLAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }\n    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);\n    *puVar5 = *(undefined8 *)puVar4;\n    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;\n    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)puVar4 - lVar6);\n    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }\n    uVar9 = uVar9 + 1;\n  }\n  goto LAB_001068ac;\n}" type_identifier (function_declarator "FUN_00106846(char *param_1,ulong *param_2,long *param_3,uint param_4)" identifier (parameter_list "(char *param_1,ulong *param_2,long *param_3,uint param_4)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long *param_3" (sized_type_specifier "long" long) (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined1 auVar1 [16];\n  int iVar2;\n  int *piVar3;\n  utmpx *puVar4;\n  undefined8 *puVar5;\n  long lVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  ulong uVar9;\n  long lVar10;\n  ulong uVar11;\n  byte bVar12;\n  \n  bVar12 = 0;\n  utmpxname(param_1);\n  setutxent();\n  uVar9 = 0;\n  uVar11 = 0;\n  lVar10 = 0;\nLAB_001068ac:\n  do {\n    puVar4 = getutxent();\n    if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }\n    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;\n  } while ((param_4 & 2) != 0);\n  goto LAB_001068cd;\nLAB_00106888:\n  if (((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))) {\nLAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }\n    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);\n    *puVar5 = *(undefined8 *)puVar4;\n    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;\n    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)puVar4 - lVar6);\n    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }\n    uVar9 = uVar9 + 1;\n  }\n  goto LAB_001068ac;\n}" { (declaration "undefined1 auVar1 [16];" type_identifier (array_declarator "auVar1 [16]" identifier [ number_literal ]) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "utmpx *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined8 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "undefined8 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar11;" type_identifier identifier ;) (declaration "byte bVar12;" type_identifier identifier ;) (expression_statement "bVar12 = 0;" (assignment_expression "bVar12 = 0" identifier = number_literal) ;) (expression_statement "utmpxname(param_1);" (call_expression "utmpxname(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "setutxent();" (call_expression "setutxent()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) (expression_statement "lVar10 = 0;" (assignment_expression "lVar10 = 0" identifier = number_literal) ;) (labeled_statement "LAB_001068ac:\n  do {\n    puVar4 = getutxent();\n    if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }\n    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;\n  } while ((param_4 & 2) != 0);" statement_identifier : (do_statement "do {\n    puVar4 = getutxent();\n    if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }\n    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;\n  } while ((param_4 & 2) != 0);" do (compound_statement "{\n    puVar4 = getutxent();\n    if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }\n    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;\n  }" { (expression_statement "puVar4 = getutxent();" (assignment_expression "puVar4 = getutxent()" identifier = (call_expression "getutxent()" identifier (argument_list "()" ( )))) ;) (if_statement "if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }" if (parenthesized_expression "(puVar4 == (utmpx *)0x0)" ( (binary_expression "puVar4 == (utmpx *)0x0" identifier == (cast_expression "(utmpx *)0x0" ( (type_descriptor "utmpx *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }" { (expression_statement "endutxent();" (call_expression "endutxent()" identifier (argument_list "()" ( ))) ;) (expression_statement "*param_2 = uVar9;" (assignment_expression "*param_2 = uVar9" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*param_3 = lVar10;" (assignment_expression "*param_3 = lVar10" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;" if (parenthesized_expression "((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7))" ( (binary_expression "(puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)" (parenthesized_expression "(puVar4->ut_user[0] != '\0')" ( (binary_expression "puVar4->ut_user[0] != '\0'" (subscript_expression "puVar4->ut_user[0]" (field_expression "puVar4->ut_user" identifier -> field_identifier) [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(puVar4->ut_type == 7)" ( (binary_expression "puVar4->ut_type == 7" (field_expression "puVar4->ut_type" identifier -> field_identifier) == number_literal) ))) )) (goto_statement "goto LAB_00106888;" goto statement_identifier ;)) }) while (parenthesized_expression "((param_4 & 2) != 0)" ( (binary_expression "(param_4 & 2) != 0" (parenthesized_expression "(param_4 & 2)" ( (binary_expression "param_4 & 2" identifier & number_literal) )) != number_literal) )) ;)) (goto_statement "goto LAB_001068cd;" goto statement_identifier ;) (labeled_statement "LAB_00106888:\n  if (((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))) {\nLAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }\n    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);\n    *puVar5 = *(undefined8 *)puVar4;\n    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;\n    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)puVar4 - lVar6);\n    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }\n    uVar9 = uVar9 + 1;\n  }" statement_identifier : (if_statement "if (((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))) {\nLAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }\n    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);\n    *puVar5 = *(undefined8 *)puVar4;\n    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;\n    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)puVar4 - lVar6);\n    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }\n    uVar9 = uVar9 + 1;\n  }" if (parenthesized_expression "(((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3))))" ( (binary_expression "((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))" (parenthesized_expression "((param_4 & 1) == 0)" ( (binary_expression "(param_4 & 1) == 0" (parenthesized_expression "(param_4 & 1)" ( (binary_expression "param_4 & 1" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))" ( (parenthesized_expression "((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3))" ( (binary_expression "(puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)" (parenthesized_expression "(puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2))" ( (binary_expression "puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)" (binary_expression "puVar4->ut_pid < 1" (field_expression "puVar4->ut_pid" identifier -> field_identifier) < number_literal) || (parenthesized_expression "(iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)" ( (comma_expression "iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2" (assignment_expression "iVar2 = kill(puVar4->ut_pid,0)" identifier = (call_expression "kill(puVar4->ut_pid,0)" identifier (argument_list "(puVar4->ut_pid,0)" ( (field_expression "puVar4->ut_pid" identifier -> field_identifier) , number_literal )))) , (binary_expression "-1 < iVar2" number_literal < identifier)) ))) )) || (parenthesized_expression "(piVar3 = __errno_location(), *piVar3 != 3)" ( (comma_expression "piVar3 = __errno_location(), *piVar3 != 3" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) , (binary_expression "*piVar3 != 3" (pointer_expression "*piVar3" * identifier) != number_literal)) ))) )) ))) )) (compound_statement "{\nLAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }\n    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);\n    *puVar5 = *(undefined8 *)puVar4;\n    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;\n    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)puVar4 - lVar6);\n    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }\n    uVar9 = uVar9 + 1;\n  }" { (labeled_statement "LAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }" statement_identifier : (if_statement "if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }" if (parenthesized_expression "(uVar9 == uVar11)" ( (binary_expression "uVar9 == uVar11" identifier == identifier) )) (compound_statement "{\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }" { (if_statement "if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }" if (parenthesized_expression "(lVar10 == 0)" ( (binary_expression "lVar10 == 0" identifier == number_literal) )) (compound_statement "{\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }" { (if_statement "if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }" if (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar11 = 1;\n        }" { (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }" else (compound_statement "{\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }" { (expression_statement "auVar1._8_8_ = 0;" (assignment_expression "auVar1._8_8_ = 0" (field_expression "auVar1._8_8_" identifier . field_identifier) = number_literal) ;) (expression_statement "auVar1._0_8_ = uVar11;" (assignment_expression "auVar1._0_8_ = uVar11" (field_expression "auVar1._0_8_" identifier . field_identifier) = identifier) ;) (if_statement "if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }" if (parenthesized_expression "(SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0)" ( (binary_expression "SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0" (binary_expression "SUB168(ZEXT816(0x180) * auVar1,0) < 0" (call_expression "SUB168(ZEXT816(0x180) * auVar1,0)" identifier (argument_list "(ZEXT816(0x180) * auVar1,0)" ( (binary_expression "ZEXT816(0x180) * auVar1" (call_expression "ZEXT816(0x180)" identifier (argument_list "(0x180)" ( number_literal ))) * identifier) , number_literal ))) < number_literal) || (binary_expression "SUB168(ZEXT816(0x180) * auVar1,8) != 0" (call_expression "SUB168(ZEXT816(0x180) * auVar1,8)" identifier (argument_list "(ZEXT816(0x180) * auVar1,8)" ( (binary_expression "ZEXT816(0x180) * auVar1" (call_expression "ZEXT816(0x180)" identifier (argument_list "(0x180)" ( number_literal ))) * identifier) , number_literal ))) != number_literal)) )) (compound_statement "{\n                    \n            FUN_00106663();\n          }" { (expression_statement "FUN_00106663();" (call_expression "FUN_00106663()" identifier (argument_list "()" ( ))) ;) })) }))) }) (else_clause "else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }" else (compound_statement "{\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }" { (if_statement "if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }" if (parenthesized_expression "(0x38e38e38e38e37 < uVar11)" ( (binary_expression "0x38e38e38e38e37 < uVar11" number_literal < identifier) )) (compound_statement "{\n                    \n          FUN_00106663();\n        }" { (expression_statement "FUN_00106663();" (call_expression "FUN_00106663()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "uVar11 = uVar11 + 1 + (uVar11 >> 1);" (assignment_expression "uVar11 = uVar11 + 1 + (uVar11 >> 1)" identifier = (binary_expression "uVar11 + 1 + (uVar11 >> 1)" (binary_expression "uVar11 + 1" identifier + number_literal) + (parenthesized_expression "(uVar11 >> 1)" ( (binary_expression "uVar11 >> 1" identifier >> number_literal) )))) ;) }))) (expression_statement "lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);" (assignment_expression "lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180)" identifier = (call_expression "FUN_0010647c(lVar10,uVar11 * 0x180)" identifier (argument_list "(lVar10,uVar11 * 0x180)" ( identifier , (binary_expression "uVar11 * 0x180" identifier * number_literal) )))) ;) }))) (expression_statement "puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);" (assignment_expression "puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10)" identifier = (cast_expression "(undefined8 *)(uVar9 * 0x180 + lVar10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar9 * 0x180 + lVar10)" ( (binary_expression "uVar9 * 0x180 + lVar10" (binary_expression "uVar9 * 0x180" identifier * number_literal) + identifier) )))) ;) (expression_statement "*puVar5 = *(undefined8 *)puVar4;" (assignment_expression "*puVar5 = *(undefined8 *)puVar4" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*(undefined8 *)puVar4" * (cast_expression "(undefined8 *)puVar4" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar5[0x2f] = *(undefined8 *)puVar4->__unused;" (assignment_expression "puVar5[0x2f] = *(undefined8 *)puVar4->__unused" (subscript_expression "puVar5[0x2f]" identifier [ number_literal ]) = (pointer_expression "*(undefined8 *)puVar4->__unused" * (cast_expression "(undefined8 *)puVar4->__unused" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "puVar4->__unused" identifier -> field_identifier)))) ;) (expression_statement "lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);" (assignment_expression "lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" identifier = (binary_expression "(long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" (cast_expression "(long)puVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(puVar5 + 1) & 0xfffffffffffffff8" (call_expression "(ulong)(puVar5 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) ))) & number_literal) ))))) ;) (expression_statement "puVar8 = (undefined8 *)((long)puVar4 - lVar6);" (assignment_expression "puVar8 = (undefined8 *)((long)puVar4 - lVar6)" identifier = (cast_expression "(undefined8 *)((long)puVar4 - lVar6)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar4 - lVar6)" ( (binary_expression "(long)puVar4 - lVar6" (cast_expression "(long)puVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier) )))) ;) (expression_statement "puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);" (assignment_expression "puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" identifier = (cast_expression "(undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(puVar5 + 1) & 0xfffffffffffffff8" (call_expression "(ulong)(puVar5 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }" for ( (assignment_expression "uVar7 = (ulong)((int)lVar6 + 0x180U >> 3)" identifier = (call_expression "(ulong)((int)lVar6 + 0x180U >> 3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((int)lVar6 + 0x180U >> 3)" ( (binary_expression "(int)lVar6 + 0x180U >> 3" (binary_expression "(int)lVar6 + 0x180U" (cast_expression "(int)lVar6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) >> number_literal) )))) ; (binary_expression "uVar7 != 0" identifier != number_literal) ; (assignment_expression "uVar7 = uVar7 - 1" identifier = (binary_expression "uVar7 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }" { (expression_statement "*puVar5 = *puVar8;" (assignment_expression "*puVar5 = *puVar8" (pointer_expression "*puVar5" * identifier) = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;" (assignment_expression "puVar8 = puVar8 + (ulong)bVar12 * -2 + 1" identifier = (binary_expression "puVar8 + (ulong)bVar12 * -2 + 1" (binary_expression "puVar8 + (ulong)bVar12 * -2" identifier + (binary_expression "(ulong)bVar12 * -2" (cast_expression "(ulong)bVar12" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (ulong)bVar12 * -2 + 1" identifier = (binary_expression "puVar5 + (ulong)bVar12 * -2 + 1" (binary_expression "puVar5 + (ulong)bVar12 * -2" identifier + (binary_expression "(ulong)bVar12 * -2" (cast_expression "(ulong)bVar12" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) }))) (goto_statement "goto LAB_001068ac;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 ( ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression (field_expression IDENT -> field_identifier) [ LIT ]) != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (field_expression IDENT -> field_identifier) == LIT) ))) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) ;)) (goto_statement goto statement_identifier ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (field_expression IDENT -> field_identifier) < LIT) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (field_expression IDENT -> field_identifier) , LIT )))) , (binary_expression LIT < IDENT)) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression (pointer_expression * IDENT) != LIT)) ))) )) ))) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (call_expression IDENT (argument_list ( (binary_expression (call_expression IDENT (argument_list ( LIT ))) * IDENT) , LIT ))) < LIT) || (binary_expression (call_expression IDENT (argument_list ( (binary_expression (call_expression IDENT (argument_list ( LIT ))) * IDENT) , LIT ))) != LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) }))) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT * LIT) )))) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) + IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (field_expression IDENT -> field_identifier)))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) >> LIT) )))) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * 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 = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (goto_statement goto statement_identifier ;) })))
(function_definition "undefined8 FUN_00106846(char *param_1,ulong *param_2,long *param_3,uint param_4)\n\n{\n  undefined1 auVar1 [16];\n  int iVar2;\n  int *piVar3;\n  utmpx *puVar4;\n  undefined8 *puVar5;\n  long lVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  ulong uVar9;\n  long lVar10;\n  ulong uVar11;\n  byte bVar12;\n  \n  bVar12 = 0;\n  utmpxname(param_1);\n  setutxent();\n  uVar9 = 0;\n  uVar11 = 0;\n  lVar10 = 0;\nLAB_001068ac:\n  do {\n    puVar4 = getutxent();\n    if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }\n    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;\n  } while ((param_4 & 2) != 0);\n  goto LAB_001068cd;\nLAB_00106888:\n  if (((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))) {\nLAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }\n    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);\n    *puVar5 = *(undefined8 *)puVar4;\n    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;\n    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)puVar4 - lVar6);\n    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }\n    uVar9 = uVar9 + 1;\n  }\n  goto LAB_001068ac;\n}" (type_identifier "undefined8") (function_declarator "FUN_00106846(char *param_1,ulong *param_2,long *param_3,uint param_4)" (identifier "FUN_00106846") (parameter_list "(char *param_1,ulong *param_2,long *param_3,uint param_4)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "ulong *param_2" (type_identifier "ulong") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "long *param_3" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined1 auVar1 [16];\n  int iVar2;\n  int *piVar3;\n  utmpx *puVar4;\n  undefined8 *puVar5;\n  long lVar6;\n  ulong uVar7;\n  undefined8 *puVar8;\n  ulong uVar9;\n  long lVar10;\n  ulong uVar11;\n  byte bVar12;\n  \n  bVar12 = 0;\n  utmpxname(param_1);\n  setutxent();\n  uVar9 = 0;\n  uVar11 = 0;\n  lVar10 = 0;\nLAB_001068ac:\n  do {\n    puVar4 = getutxent();\n    if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }\n    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;\n  } while ((param_4 & 2) != 0);\n  goto LAB_001068cd;\nLAB_00106888:\n  if (((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))) {\nLAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }\n    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);\n    *puVar5 = *(undefined8 *)puVar4;\n    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;\n    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)puVar4 - lVar6);\n    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }\n    uVar9 = uVar9 + 1;\n  }\n  goto LAB_001068ac;\n}" ({ "{") (declaration "undefined1 auVar1 [16];" (type_identifier "undefined1") (array_declarator "auVar1 [16]" (identifier "auVar1") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "utmpx *puVar4;" (type_identifier "utmpx") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined8 *puVar5;" (type_identifier "undefined8") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "long lVar6;" (sized_type_specifier "long" (long "long")) (identifier "lVar6") (; ";")) (declaration "ulong uVar7;" (type_identifier "ulong") (identifier "uVar7") (; ";")) (declaration "undefined8 *puVar8;" (type_identifier "undefined8") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "ulong uVar9;" (type_identifier "ulong") (identifier "uVar9") (; ";")) (declaration "long lVar10;" (sized_type_specifier "long" (long "long")) (identifier "lVar10") (; ";")) (declaration "ulong uVar11;" (type_identifier "ulong") (identifier "uVar11") (; ";")) (declaration "byte bVar12;" (type_identifier "byte") (identifier "bVar12") (; ";")) (expression_statement "bVar12 = 0;" (assignment_expression "bVar12 = 0" (identifier "bVar12") (= "=") (number_literal "0")) (; ";")) (expression_statement "utmpxname(param_1);" (call_expression "utmpxname(param_1)" (identifier "utmpxname") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "setutxent();" (call_expression "setutxent()" (identifier "setutxent") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" (identifier "uVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar10 = 0;" (assignment_expression "lVar10 = 0" (identifier "lVar10") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_001068ac:\n  do {\n    puVar4 = getutxent();\n    if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }\n    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;\n  } while ((param_4 & 2) != 0);" (statement_identifier "LAB_001068ac") (: ":") (do_statement "do {\n    puVar4 = getutxent();\n    if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }\n    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;\n  } while ((param_4 & 2) != 0);" (do "do") (compound_statement "{\n    puVar4 = getutxent();\n    if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }\n    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;\n  }" ({ "{") (expression_statement "puVar4 = getutxent();" (assignment_expression "puVar4 = getutxent()" (identifier "puVar4") (= "=") (call_expression "getutxent()" (identifier "getutxent") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (puVar4 == (utmpx *)0x0) {\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }" (if "if") (parenthesized_expression "(puVar4 == (utmpx *)0x0)" (( "(") (binary_expression "puVar4 == (utmpx *)0x0" (identifier "puVar4") (== "==") (cast_expression "(utmpx *)0x0" (( "(") (type_descriptor "utmpx *" (type_identifier "utmpx") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      endutxent();\n      *param_2 = uVar9;\n      *param_3 = lVar10;\n      return 0;\n    }" ({ "{") (expression_statement "endutxent();" (call_expression "endutxent()" (identifier "endutxent") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*param_2 = uVar9;" (assignment_expression "*param_2 = uVar9" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar9")) (; ";")) (expression_statement "*param_3 = lVar10;" (assignment_expression "*param_3 = lVar10" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "lVar10")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;" (if "if") (parenthesized_expression "((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7))" (( "(") (binary_expression "(puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)" (parenthesized_expression "(puVar4->ut_user[0] != '\0')" (( "(") (binary_expression "puVar4->ut_user[0] != '\0'" (subscript_expression "puVar4->ut_user[0]" (field_expression "puVar4->ut_user" (identifier "puVar4") (-> "->") (field_identifier "ut_user")) ([ "[") (number_literal "0") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(puVar4->ut_type == 7)" (( "(") (binary_expression "puVar4->ut_type == 7" (field_expression "puVar4->ut_type" (identifier "puVar4") (-> "->") (field_identifier "ut_type")) (== "==") (number_literal "7")) () ")"))) () ")")) (goto_statement "goto LAB_00106888;" (goto "goto") (statement_identifier "LAB_00106888") (; ";"))) (} "}")) (while "while") (parenthesized_expression "((param_4 & 2) != 0)" (( "(") (binary_expression "(param_4 & 2) != 0" (parenthesized_expression "(param_4 & 2)" (( "(") (binary_expression "param_4 & 2" (identifier "param_4") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (; ";"))) (goto_statement "goto LAB_001068cd;" (goto "goto") (statement_identifier "LAB_001068cd") (; ";")) (labeled_statement "LAB_00106888:\n  if (((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))) {\nLAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }\n    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);\n    *puVar5 = *(undefined8 *)puVar4;\n    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;\n    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)puVar4 - lVar6);\n    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }\n    uVar9 = uVar9 + 1;\n  }" (statement_identifier "LAB_00106888") (: ":") (if_statement "if (((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))) {\nLAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }\n    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);\n    *puVar5 = *(undefined8 *)puVar4;\n    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;\n    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)puVar4 - lVar6);\n    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }\n    uVar9 = uVar9 + 1;\n  }" (if "if") (parenthesized_expression "(((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3))))" (( "(") (binary_expression "((param_4 & 1) == 0) ||\n     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))" (parenthesized_expression "((param_4 & 1) == 0)" (( "(") (binary_expression "(param_4 & 1) == 0" (parenthesized_expression "(param_4 & 1)" (( "(") (binary_expression "param_4 & 1" (identifier "param_4") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)))" (( "(") (parenthesized_expression "((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3))" (( "(") (binary_expression "(puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||\n      (piVar3 = __errno_location(), *piVar3 != 3)" (parenthesized_expression "(puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2))" (( "(") (binary_expression "puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)" (binary_expression "puVar4->ut_pid < 1" (field_expression "puVar4->ut_pid" (identifier "puVar4") (-> "->") (field_identifier "ut_pid")) (< "<") (number_literal "1")) (|| "||") (parenthesized_expression "(iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)" (( "(") (comma_expression "iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2" (assignment_expression "iVar2 = kill(puVar4->ut_pid,0)" (identifier "iVar2") (= "=") (call_expression "kill(puVar4->ut_pid,0)" (identifier "kill") (argument_list "(puVar4->ut_pid,0)" (( "(") (field_expression "puVar4->ut_pid" (identifier "puVar4") (-> "->") (field_identifier "ut_pid")) (, ",") (number_literal "0") () ")")))) (, ",") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(piVar3 = __errno_location(), *piVar3 != 3)" (( "(") (comma_expression "piVar3 = __errno_location(), *piVar3 != 3" (assignment_expression "piVar3 = __errno_location()" (identifier "piVar3") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "*piVar3 != 3" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (number_literal "3"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\nLAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }\n    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);\n    *puVar5 = *(undefined8 *)puVar4;\n    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;\n    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)puVar4 - lVar6);\n    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);\n    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }\n    uVar9 = uVar9 + 1;\n  }" ({ "{") (labeled_statement "LAB_001068cd:\n    if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }" (statement_identifier "LAB_001068cd") (: ":") (if_statement "if (uVar9 == uVar11) {\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }" (if "if") (parenthesized_expression "(uVar9 == uVar11)" (( "(") (binary_expression "uVar9 == uVar11" (identifier "uVar9") (== "==") (identifier "uVar11")) () ")")) (compound_statement "{\n      if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }\n      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);\n    }" ({ "{") (if_statement "if (lVar10 == 0) {\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }\n      else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }" (if "if") (parenthesized_expression "(lVar10 == 0)" (( "(") (binary_expression "lVar10 == 0" (identifier "lVar10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }\n      }" ({ "{") (if_statement "if (uVar11 == 0) {\n          uVar11 = 1;\n        }\n        else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }" (if "if") (parenthesized_expression "(uVar11 == 0)" (( "(") (binary_expression "uVar11 == 0" (identifier "uVar11") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          uVar11 = 1;\n        }" ({ "{") (expression_statement "uVar11 = 1;" (assignment_expression "uVar11 = 1" (identifier "uVar11") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }" (else "else") (compound_statement "{\n          auVar1._8_8_ = 0;\n          auVar1._0_8_ = uVar11;\n          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }\n        }" ({ "{") (expression_statement "auVar1._8_8_ = 0;" (assignment_expression "auVar1._8_8_ = 0" (field_expression "auVar1._8_8_" (identifier "auVar1") (. ".") (field_identifier "_8_8_")) (= "=") (number_literal "0")) (; ";")) (expression_statement "auVar1._0_8_ = uVar11;" (assignment_expression "auVar1._0_8_ = uVar11" (field_expression "auVar1._0_8_" (identifier "auVar1") (. ".") (field_identifier "_0_8_")) (= "=") (identifier "uVar11")) (; ";")) (if_statement "if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {\n                    \n            FUN_00106663();\n          }" (if "if") (parenthesized_expression "(SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0)" (( "(") (binary_expression "SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0" (binary_expression "SUB168(ZEXT816(0x180) * auVar1,0) < 0" (call_expression "SUB168(ZEXT816(0x180) * auVar1,0)" (identifier "SUB168") (argument_list "(ZEXT816(0x180) * auVar1,0)" (( "(") (binary_expression "ZEXT816(0x180) * auVar1" (call_expression "ZEXT816(0x180)" (identifier "ZEXT816") (argument_list "(0x180)" (( "(") (number_literal "0x180") () ")"))) (* "*") (identifier "auVar1")) (, ",") (number_literal "0") () ")"))) (< "<") (number_literal "0")) (|| "||") (binary_expression "SUB168(ZEXT816(0x180) * auVar1,8) != 0" (call_expression "SUB168(ZEXT816(0x180) * auVar1,8)" (identifier "SUB168") (argument_list "(ZEXT816(0x180) * auVar1,8)" (( "(") (binary_expression "ZEXT816(0x180) * auVar1" (call_expression "ZEXT816(0x180)" (identifier "ZEXT816") (argument_list "(0x180)" (( "(") (number_literal "0x180") () ")"))) (* "*") (identifier "auVar1")) (, ",") (number_literal "8") () ")"))) (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n                    \n            FUN_00106663();\n          }" ({ "{") (expression_statement "FUN_00106663();" (call_expression "FUN_00106663()" (identifier "FUN_00106663") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}")))) (} "}")) (else_clause "else {\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }" (else "else") (compound_statement "{\n        if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }\n        uVar11 = uVar11 + 1 + (uVar11 >> 1);\n      }" ({ "{") (if_statement "if (0x38e38e38e38e37 < uVar11) {\n                    \n          FUN_00106663();\n        }" (if "if") (parenthesized_expression "(0x38e38e38e38e37 < uVar11)" (( "(") (binary_expression "0x38e38e38e38e37 < uVar11" (number_literal "0x38e38e38e38e37") (< "<") (identifier "uVar11")) () ")")) (compound_statement "{\n                    \n          FUN_00106663();\n        }" ({ "{") (expression_statement "FUN_00106663();" (call_expression "FUN_00106663()" (identifier "FUN_00106663") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar11 = uVar11 + 1 + (uVar11 >> 1);" (assignment_expression "uVar11 = uVar11 + 1 + (uVar11 >> 1)" (identifier "uVar11") (= "=") (binary_expression "uVar11 + 1 + (uVar11 >> 1)" (binary_expression "uVar11 + 1" (identifier "uVar11") (+ "+") (number_literal "1")) (+ "+") (parenthesized_expression "(uVar11 >> 1)" (( "(") (binary_expression "uVar11 >> 1" (identifier "uVar11") (>> ">>") (number_literal "1")) () ")")))) (; ";")) (} "}")))) (expression_statement "lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);" (assignment_expression "lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180)" (identifier "lVar10") (= "=") (call_expression "FUN_0010647c(lVar10,uVar11 * 0x180)" (identifier "FUN_0010647c") (argument_list "(lVar10,uVar11 * 0x180)" (( "(") (identifier "lVar10") (, ",") (binary_expression "uVar11 * 0x180" (identifier "uVar11") (* "*") (number_literal "0x180")) () ")")))) (; ";")) (} "}")))) (expression_statement "puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);" (assignment_expression "puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10)" (identifier "puVar5") (= "=") (cast_expression "(undefined8 *)(uVar9 * 0x180 + lVar10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar9 * 0x180 + lVar10)" (( "(") (binary_expression "uVar9 * 0x180 + lVar10" (binary_expression "uVar9 * 0x180" (identifier "uVar9") (* "*") (number_literal "0x180")) (+ "+") (identifier "lVar10")) () ")")))) (; ";")) (expression_statement "*puVar5 = *(undefined8 *)puVar4;" (assignment_expression "*puVar5 = *(undefined8 *)puVar4" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (pointer_expression "*(undefined8 *)puVar4" (* "*") (cast_expression "(undefined8 *)puVar4" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4")))) (; ";")) (expression_statement "puVar5[0x2f] = *(undefined8 *)puVar4->__unused;" (assignment_expression "puVar5[0x2f] = *(undefined8 *)puVar4->__unused" (subscript_expression "puVar5[0x2f]" (identifier "puVar5") ([ "[") (number_literal "0x2f") (] "]")) (= "=") (pointer_expression "*(undefined8 *)puVar4->__unused" (* "*") (cast_expression "(undefined8 *)puVar4->__unused" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "puVar4->__unused" (identifier "puVar4") (-> "->") (field_identifier "__unused"))))) (; ";")) (expression_statement "lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);" (assignment_expression "lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" (identifier "lVar6") (= "=") (binary_expression "(long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" (cast_expression "(long)puVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar5")) (- "-") (cast_expression "(long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" (( "(") (binary_expression "(ulong)(puVar5 + 1) & 0xfffffffffffffff8" (call_expression "(ulong)(puVar5 + 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(puVar5 + 1)" (( "(") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffffffffff8")) () ")"))))) (; ";")) (expression_statement "puVar8 = (undefined8 *)((long)puVar4 - lVar6);" (assignment_expression "puVar8 = (undefined8 *)((long)puVar4 - lVar6)" (identifier "puVar8") (= "=") (cast_expression "(undefined8 *)((long)puVar4 - lVar6)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar4 - lVar6)" (( "(") (binary_expression "(long)puVar4 - lVar6" (cast_expression "(long)puVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar4")) (- "-") (identifier "lVar6")) () ")")))) (; ";")) (expression_statement "puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);" (assignment_expression "puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" (identifier "puVar5") (= "=") (cast_expression "(undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((ulong)(puVar5 + 1) & 0xfffffffffffffff8)" (( "(") (binary_expression "(ulong)(puVar5 + 1) & 0xfffffffffffffff8" (call_expression "(ulong)(puVar5 + 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(puVar5 + 1)" (( "(") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffffffffff8")) () ")")))) (; ";")) (for_statement "for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }" (for "for") (( "(") (assignment_expression "uVar7 = (ulong)((int)lVar6 + 0x180U >> 3)" (identifier "uVar7") (= "=") (call_expression "(ulong)((int)lVar6 + 0x180U >> 3)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "((int)lVar6 + 0x180U >> 3)" (( "(") (binary_expression "(int)lVar6 + 0x180U >> 3" (binary_expression "(int)lVar6 + 0x180U" (cast_expression "(int)lVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar6")) (+ "+") (number_literal "0x180U")) (>> ">>") (number_literal "3")) () ")")))) (; ";") (binary_expression "uVar7 != 0" (identifier "uVar7") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar7 = uVar7 - 1" (identifier "uVar7") (= "=") (binary_expression "uVar7 - 1" (identifier "uVar7") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n      *puVar5 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;\n      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;\n    }" ({ "{") (expression_statement "*puVar5 = *puVar8;" (assignment_expression "*puVar5 = *puVar8" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (pointer_expression "*puVar8" (* "*") (identifier "puVar8"))) (; ";")) (expression_statement "puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;" (assignment_expression "puVar8 = puVar8 + (ulong)bVar12 * -2 + 1" (identifier "puVar8") (= "=") (binary_expression "puVar8 + (ulong)bVar12 * -2 + 1" (binary_expression "puVar8 + (ulong)bVar12 * -2" (identifier "puVar8") (+ "+") (binary_expression "(ulong)bVar12 * -2" (cast_expression "(ulong)bVar12" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar12")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (ulong)bVar12 * -2 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + (ulong)bVar12 * -2 + 1" (binary_expression "puVar5 + (ulong)bVar12 * -2" (identifier "puVar5") (+ "+") (binary_expression "(ulong)bVar12 * -2" (cast_expression "(ulong)bVar12" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar12")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" (identifier "uVar9") (= "=") (binary_expression "uVar9 + 1" (identifier "uVar9") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (goto_statement "goto LAB_001068ac;" (goto "goto") (statement_identifier "LAB_001068ac") (; ";")) (} "}")))

int function_1(char *file,size_t *n_entries,type_1 **utmp_buf,int var_6)

{
  type_2 var_15 [16];
  type_3 uVar2;
  type_4 _Var3;
  int var_8;
  int *piVar5;
  type_5 *var_4;
  type_1 *pSVar7;
  long var_18;
  type_6 var_19;
  type_7 *var_20;
  type_7 *var_21;
  size_t var_10;
  type_1 *var_12;
  type_6 var_11;
  type_8 bVar14;
  
  bVar14 = 0;
  var_1(file);
  var_2();
  var_10 = 0;
  var_11 = 0;
  var_12 = (type_1 *)0x0;
LAB_001068ac:
  do {
    var_4 = var_3();
    if (var_4 == (type_5 *)0x0) {
      var_5();
      *n_entries = var_10;
      *utmp_buf = var_12;
      return 0;
    }
    if ((var_4->ut_user[0] != '\0') && (var_4->ut_type == 7)) goto LAB_00106888;
  } while ((var_6 & 2U) != 0);
  goto LAB_001068cd;
LAB_00106888:
  if (((var_6 & 1U) == 0) ||
     (((var_4->ut_pid < 1 || (var_8 = var_7(var_4->ut_pid,0), -1 < var_8)) ||
      (piVar5 = var_9(), *piVar5 != 3)))) {
LAB_001068cd:
    if (var_10 == var_11) {
      if (var_12 == (type_1 *)0x0) {
        if (var_11 == 0) {
          var_11 = 1;
        }
        else {
          var_15._8_8_ = 0;
          var_15._0_8_ = var_11;
          if (var_13(var_14(0x180) * var_15,0) < 0 || var_13(var_14(0x180) * var_15,8) != 0) {
                    /* WARNING: Subroutine does not return */
            var_16();
          }
        }
      }
      else {
        if (0x38e38e38e38e37 < var_11) {
                    /* WARNING: Subroutine does not return */
          var_16();
        }
        var_11 = var_11 + 1 + (var_11 >> 1);
      }
      var_12 = (type_1 *)var_17(var_12,var_11 * 0x180);
    }
    pSVar7 = var_12 + var_10;
    uVar2 = *(type_3 *)&var_4->field_0x2;
    _Var3 = var_4->ut_pid;
    pSVar7->ut_type = var_4->ut_type;
    *(type_3 *)&pSVar7->field_0x2 = uVar2;
    pSVar7->ut_pid = _Var3;
    *(type_7 *)(pSVar7->__glibc_reserved + 0xc) = *(type_7 *)var_4->__unused;
    var_21 = (type_7 *)((type_6)pSVar7->ut_line & 0xfffffffffffffff8);
    var_18 = (long)pSVar7 - (long)var_21;
    var_20 = (type_7 *)((long)var_4 - var_18);
    for (var_19 = (type_6)((int)var_18 + 0x180U >> 3); var_19 != 0; var_19 = var_19 - 1) {
      *var_21 = *var_20;
      var_20 = var_20 + (type_6)bVar14 * -2 + 1;
      var_21 = var_21 + (type_6)bVar14 * -2 + 1;
    }
    var_10 = var_10 + 1;
  }
  goto LAB_001068ac;
}


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

undefined8 MASKED(char *param_1,ulong *param_2,long *param_3,uint param_4)

{
  undefined1 auVar1 [16];
  int iVar2;
  int *piVar3;
  utmpx *puVar4;
  undefined8 *puVar5;
  long lVar6;
  ulong uVar7;
  undefined8 *puVar8;
  ulong uVar9;
  long lVar10;
  ulong uVar11;
  byte bVar12;
  
  bVar12 = 0;
  utmpxname(param_1);
  setutxent();
  uVar9 = 0;
  uVar11 = 0;
  lVar10 = 0;
LAB_001068ac:
  do {
    puVar4 = getutxent();
    if (puVar4 == (utmpx *)0x0) {
      endutxent();
      *param_2 = uVar9;
      *param_3 = lVar10;
      return 0;
    }
    if ((puVar4->ut_user[0] != '\0') && (puVar4->ut_type == 7)) goto LAB_00106888;
  } while ((param_4 & 2) != 0);
  goto LAB_001068cd;
LAB_00106888:
  if (((param_4 & 1) == 0) ||
     (((puVar4->ut_pid < 1 || (iVar2 = kill(puVar4->ut_pid,0), -1 < iVar2)) ||
      (piVar3 = __errno_location(), *piVar3 != 3)))) {
LAB_001068cd:
    if (uVar9 == uVar11) {
      if (lVar10 == 0) {
        if (uVar11 == 0) {
          uVar11 = 1;
        }
        else {
          auVar1._8_8_ = 0;
          auVar1._0_8_ = uVar11;
          if (SUB168(ZEXT816(0x180) * auVar1,0) < 0 || SUB168(ZEXT816(0x180) * auVar1,8) != 0) {
                    /* WARNING: Subroutine does not return */
            FUN_00106663();
          }
        }
      }
      else {
        if (0x38e38e38e38e37 < uVar11) {
                    /* WARNING: Subroutine does not return */
          FUN_00106663();
        }
        uVar11 = uVar11 + 1 + (uVar11 >> 1);
      }
      lVar10 = FUN_0010647c(lVar10,uVar11 * 0x180);
    }
    puVar5 = (undefined8 *)(uVar9 * 0x180 + lVar10);
    *puVar5 = *(undefined8 *)puVar4;
    puVar5[0x2f] = *(undefined8 *)puVar4->__unused;
    lVar6 = (long)puVar5 - (long)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);
    puVar8 = (undefined8 *)((long)puVar4 - lVar6);
    puVar5 = (undefined8 *)((ulong)(puVar5 + 1) & 0xfffffffffffffff8);
    for (uVar7 = (ulong)((int)lVar6 + 0x180U >> 3); uVar7 != 0; uVar7 = uVar7 - 1) {
      *puVar5 = *puVar8;
      puVar8 = puVar8 + (ulong)bVar12 * -2 + 1;
      puVar5 = puVar5 + (ulong)bVar12 * -2 + 1;
    }
    uVar9 = uVar9 + 1;
  }
  goto LAB_001068ac;
}

