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

int svstatus_get(void)

{
}



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

undefined4 FUN_0005140e(void)

{
  char cVar1;
  int iVar2;
  ssize_t sVar3;
  undefined4 uVar4;
  
  iVar2 = open64("supervise/ok",0x801);
  if (iVar2 != -1) {
    close(iVar2);
    iVar2 = open64("supervise/status",0x800);
    if (iVar2 == -1) {
      DAT_000d1300 = DAT_000d1300 + 1;
      FUN_00051177();
      return 0xffffffff;
    }
    sVar3 = read(iVar2,&DAT_000d1314,0x14);
    close(iVar2);
    if (sVar3 == -1) {
      DAT_000d1300 = DAT_000d1300 + 1;
      FUN_00051177();
      uVar4 = 0xffffffff;
    }
    else {
      uVar4 = 1;
      if (sVar3 != 0x14) {
        *DAT_000d16fc = 0;
        DAT_000d1300 = DAT_000d1300 + 1;
        FUN_00051177();
        return 0xffffffff;
      }
    }
    return uVar4;
  }
  if (*DAT_000d16fc == 0x13) {
    cVar1 = *DAT_000d12f8;
    *DAT_000d16fc = 0;
    if (cVar1 == 'x') {
      FUN_00051177();
      return 0;
    }
    DAT_000d1300 = DAT_000d1300 + 1;
    FUN_00051177();
    return 0;
  }
  DAT_000d1300 = DAT_000d1300 + 1;
  FUN_00051177();
  return 0xffffffff;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x14
CALL 0x00017640
ADD EBX,0x7f606
PUSH 0x801
LEA EAX,[EBX + 0xffff7f33]
PUSH EAX
CALL 0x00016170
MOV ESI,EAX
ADD ESP,0x10
INC EAX
JNZ 0x0005147c
MOV EDX,dword ptr [EBX + 0xcdc]
CMP dword ptr [EDX],0x13
LEA EAX,[EBX + 0x8d8]
JNZ 0x00051547
MOV ECX,dword ptr [EAX]
CMP byte ptr [ECX],0x78
MOV dword ptr [EDX],0x0
JNZ 0x00051565
LEA EDX,[EBX + 0xffff7f0a]
LEA EAX,[EBX + 0xffff7f1c]
CALL 0x00051177
XOR ESI,ESI
MOV EAX,ESI
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH ESI
CALL 0x000174d0
POP EDX
POP ECX
PUSH 0x800
LEA EAX,[EBX + 0xffff7f71]
PUSH EAX
CALL 0x00016170
MOV ESI,EAX
ADD ESP,0x10
CMP EAX,-0x1
JNZ 0x000514c6
LEA EAX,[EBX + 0x8d8]
INC dword ptr [EAX + 0x8]
LEA EDX,[EBX + 0xffff7f4a]
LEA EAX,[EBX + 0xffff7f40]
CALL 0x00051177
MOV EAX,ESI
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
PUSH EAX
PUSH 0x14
LEA EDI,[EBX + 0x8d8]
LEA EAX,[EDI + 0x1c]
PUSH EAX
PUSH ESI
CALL 0x000161a0
MOV EBP,EAX
MOV dword ptr [ESP],ESI
CALL 0x000174d0
ADD ESP,0x10
CMP EBP,-0x1
JNZ 0x0005150e
INC dword ptr [EDI + 0x8]
LEA EDX,[EBX + 0xffff7f66]
LEA EAX,[EBX + 0xffff7f40]
CALL 0x00051177
MOV ESI,0xffffffff
MOV EAX,ESI
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,0x1
CMP EBP,0x14
JZ 0x00051504
MOV EAX,dword ptr [EBX + 0xcdc]
MOV dword ptr [EAX],0x0
INC dword ptr [EDI + 0x8]
LEA EDX,[EBX + 0xfffe93d8]
LEA EAX,[EBX + 0xffff7f40]
CALL 0x00051177
MOV ESI,0xffffffff
MOV EAX,ESI
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
INC dword ptr [EAX + 0x8]
LEA EDX,[EBX + 0xffff7f28]
LEA EAX,[EBX + 0xffff7f40]
CALL 0x00051177
MOV EAX,ESI
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
INC dword ptr [EAX + 0x8]
LEA EDX,[EBX + 0xffff7f0a]
LEA EAX,[EBX + 0xffff7f21]
CALL 0x00051177
XOR ESI,ESI
MOV EAX,ESI
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0005140e(void)\n\n{\n  char cVar1;\n  int iVar2;\n  ssize_t sVar3;\n  undefined4 uVar4;\n  \n  iVar2 = open64("supervise/ok",0x801);\n  if (iVar2 != -1) {\n    close(iVar2);\n    iVar2 = open64("supervise/status",0x800);\n    if (iVar2 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }\n    sVar3 = read(iVar2,&DAT_000d1314,0x14);\n    close(iVar2);\n    if (sVar3 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }\n    else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }\n    return uVar4;\n  }\n  if (*DAT_000d16fc == 0x13) {\n    cVar1 = *DAT_000d12f8;\n    *DAT_000d16fc = 0;\n    if (cVar1 == 'x') {\n      FUN_00051177();\n      return 0;\n    }\n    DAT_000d1300 = DAT_000d1300 + 1;\n    FUN_00051177();\n    return 0;\n  }\n  DAT_000d1300 = DAT_000d1300 + 1;\n  FUN_00051177();\n  return 0xffffffff;\n}\n\n" comment (function_definition "undefined4 FUN_0005140e(void)\n\n{\n  char cVar1;\n  int iVar2;\n  ssize_t sVar3;\n  undefined4 uVar4;\n  \n  iVar2 = open64("supervise/ok",0x801);\n  if (iVar2 != -1) {\n    close(iVar2);\n    iVar2 = open64("supervise/status",0x800);\n    if (iVar2 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }\n    sVar3 = read(iVar2,&DAT_000d1314,0x14);\n    close(iVar2);\n    if (sVar3 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }\n    else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }\n    return uVar4;\n  }\n  if (*DAT_000d16fc == 0x13) {\n    cVar1 = *DAT_000d12f8;\n    *DAT_000d16fc = 0;\n    if (cVar1 == 'x') {\n      FUN_00051177();\n      return 0;\n    }\n    DAT_000d1300 = DAT_000d1300 + 1;\n    FUN_00051177();\n    return 0;\n  }\n  DAT_000d1300 = DAT_000d1300 + 1;\n  FUN_00051177();\n  return 0xffffffff;\n}" type_identifier (function_declarator "FUN_0005140e(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  ssize_t sVar3;\n  undefined4 uVar4;\n  \n  iVar2 = open64("supervise/ok",0x801);\n  if (iVar2 != -1) {\n    close(iVar2);\n    iVar2 = open64("supervise/status",0x800);\n    if (iVar2 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }\n    sVar3 = read(iVar2,&DAT_000d1314,0x14);\n    close(iVar2);\n    if (sVar3 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }\n    else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }\n    return uVar4;\n  }\n  if (*DAT_000d16fc == 0x13) {\n    cVar1 = *DAT_000d12f8;\n    *DAT_000d16fc = 0;\n    if (cVar1 == 'x') {\n      FUN_00051177();\n      return 0;\n    }\n    DAT_000d1300 = DAT_000d1300 + 1;\n    FUN_00051177();\n    return 0;\n  }\n  DAT_000d1300 = DAT_000d1300 + 1;\n  FUN_00051177();\n  return 0xffffffff;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ssize_t sVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "iVar2 = open64("supervise/ok",0x801);" (assignment_expression "iVar2 = open64("supervise/ok",0x801)" identifier = (call_expression "open64("supervise/ok",0x801)" identifier (argument_list "("supervise/ok",0x801)" ( (string_literal ""supervise/ok"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar2 != -1) {\n    close(iVar2);\n    iVar2 = open64("supervise/status",0x800);\n    if (iVar2 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }\n    sVar3 = read(iVar2,&DAT_000d1314,0x14);\n    close(iVar2);\n    if (sVar3 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }\n    else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }\n    return uVar4;\n  }" if (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) (compound_statement "{\n    close(iVar2);\n    iVar2 = open64("supervise/status",0x800);\n    if (iVar2 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }\n    sVar3 = read(iVar2,&DAT_000d1314,0x14);\n    close(iVar2);\n    if (sVar3 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }\n    else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }\n    return uVar4;\n  }" { (expression_statement "close(iVar2);" (call_expression "close(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "iVar2 = open64("supervise/status",0x800);" (assignment_expression "iVar2 = open64("supervise/status",0x800)" identifier = (call_expression "open64("supervise/status",0x800)" identifier (argument_list "("supervise/status",0x800)" ( (string_literal ""supervise/status"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar2 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }" { (expression_statement "DAT_000d1300 = DAT_000d1300 + 1;" (assignment_expression "DAT_000d1300 = DAT_000d1300 + 1" identifier = (binary_expression "DAT_000d1300 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00051177();" (call_expression "FUN_00051177()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "sVar3 = read(iVar2,&DAT_000d1314,0x14);" (assignment_expression "sVar3 = read(iVar2,&DAT_000d1314,0x14)" identifier = (call_expression "read(iVar2,&DAT_000d1314,0x14)" identifier (argument_list "(iVar2,&DAT_000d1314,0x14)" ( identifier , (pointer_expression "&DAT_000d1314" & identifier) , number_literal )))) ;) (expression_statement "close(iVar2);" (call_expression "close(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (if_statement "if (sVar3 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }\n    else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }" if (parenthesized_expression "(sVar3 == -1)" ( (binary_expression "sVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }" { (expression_statement "DAT_000d1300 = DAT_000d1300 + 1;" (assignment_expression "DAT_000d1300 = DAT_000d1300 + 1" identifier = (binary_expression "DAT_000d1300 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00051177();" (call_expression "FUN_00051177()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }" else (compound_statement "{\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }" { (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (if_statement "if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }" if (parenthesized_expression "(sVar3 != 0x14)" ( (binary_expression "sVar3 != 0x14" identifier != number_literal) )) (compound_statement "{\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }" { (expression_statement "*DAT_000d16fc = 0;" (assignment_expression "*DAT_000d16fc = 0" (pointer_expression "*DAT_000d16fc" * identifier) = number_literal) ;) (expression_statement "DAT_000d1300 = DAT_000d1300 + 1;" (assignment_expression "DAT_000d1300 = DAT_000d1300 + 1" identifier = (binary_expression "DAT_000d1300 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00051177();" (call_expression "FUN_00051177()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0xffffffff;" return number_literal ;) })) }))) (return_statement "return uVar4;" return identifier ;) })) (if_statement "if (*DAT_000d16fc == 0x13) {\n    cVar1 = *DAT_000d12f8;\n    *DAT_000d16fc = 0;\n    if (cVar1 == 'x') {\n      FUN_00051177();\n      return 0;\n    }\n    DAT_000d1300 = DAT_000d1300 + 1;\n    FUN_00051177();\n    return 0;\n  }" if (parenthesized_expression "(*DAT_000d16fc == 0x13)" ( (binary_expression "*DAT_000d16fc == 0x13" (pointer_expression "*DAT_000d16fc" * identifier) == number_literal) )) (compound_statement "{\n    cVar1 = *DAT_000d12f8;\n    *DAT_000d16fc = 0;\n    if (cVar1 == 'x') {\n      FUN_00051177();\n      return 0;\n    }\n    DAT_000d1300 = DAT_000d1300 + 1;\n    FUN_00051177();\n    return 0;\n  }" { (expression_statement "cVar1 = *DAT_000d12f8;" (assignment_expression "cVar1 = *DAT_000d12f8" identifier = (pointer_expression "*DAT_000d12f8" * identifier)) ;) (expression_statement "*DAT_000d16fc = 0;" (assignment_expression "*DAT_000d16fc = 0" (pointer_expression "*DAT_000d16fc" * identifier) = number_literal) ;) (if_statement "if (cVar1 == 'x') {\n      FUN_00051177();\n      return 0;\n    }" if (parenthesized_expression "(cVar1 == 'x')" ( (binary_expression "cVar1 == 'x'" identifier == (char_literal "'x'" ' character ')) )) (compound_statement "{\n      FUN_00051177();\n      return 0;\n    }" { (expression_statement "FUN_00051177();" (call_expression "FUN_00051177()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "DAT_000d1300 = DAT_000d1300 + 1;" (assignment_expression "DAT_000d1300 = DAT_000d1300 + 1" identifier = (binary_expression "DAT_000d1300 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00051177();" (call_expression "FUN_00051177()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "DAT_000d1300 = DAT_000d1300 + 1;" (assignment_expression "DAT_000d1300 = DAT_000d1300 + 1" identifier = (binary_expression "DAT_000d1300 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00051177();" (call_expression "FUN_00051177()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint svstatus_get(void)\n\n{\n}\n\n" comment comment (function_definition "int svstatus_get(void)\n\n{\n}" primitive_type (function_declarator "svstatus_get(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n}" { })))
(translation_unit "undefined4 FUN_0005140e(void)\n\n{\n  char cVar1;\n  int iVar2;\n  ssize_t sVar3;\n  undefined4 uVar4;\n  \n  iVar2 = open64("supervise/ok",0x801);\n  if (iVar2 != -1) {\n    close(iVar2);\n    iVar2 = open64("supervise/status",0x800);\n    if (iVar2 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }\n    sVar3 = read(iVar2,&DAT_000d1314,0x14);\n    close(iVar2);\n    if (sVar3 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }\n    else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }\n    return uVar4;\n  }\n  if (*DAT_000d16fc == 0x13) {\n    cVar1 = *DAT_000d12f8;\n    *DAT_000d16fc = 0;\n    if (cVar1 == 'x') {\n      FUN_00051177();\n      return 0;\n    }\n    DAT_000d1300 = DAT_000d1300 + 1;\n    FUN_00051177();\n    return 0;\n  }\n  DAT_000d1300 = DAT_000d1300 + 1;\n  FUN_00051177();\n  return 0xffffffff;\n}\n\n" (function_definition "undefined4 FUN_0005140e(void)\n\n{\n  char cVar1;\n  int iVar2;\n  ssize_t sVar3;\n  undefined4 uVar4;\n  \n  iVar2 = open64("supervise/ok",0x801);\n  if (iVar2 != -1) {\n    close(iVar2);\n    iVar2 = open64("supervise/status",0x800);\n    if (iVar2 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }\n    sVar3 = read(iVar2,&DAT_000d1314,0x14);\n    close(iVar2);\n    if (sVar3 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }\n    else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }\n    return uVar4;\n  }\n  if (*DAT_000d16fc == 0x13) {\n    cVar1 = *DAT_000d12f8;\n    *DAT_000d16fc = 0;\n    if (cVar1 == 'x') {\n      FUN_00051177();\n      return 0;\n    }\n    DAT_000d1300 = DAT_000d1300 + 1;\n    FUN_00051177();\n    return 0;\n  }\n  DAT_000d1300 = DAT_000d1300 + 1;\n  FUN_00051177();\n  return 0xffffffff;\n}" type_identifier (function_declarator "FUN_0005140e(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  ssize_t sVar3;\n  undefined4 uVar4;\n  \n  iVar2 = open64("supervise/ok",0x801);\n  if (iVar2 != -1) {\n    close(iVar2);\n    iVar2 = open64("supervise/status",0x800);\n    if (iVar2 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }\n    sVar3 = read(iVar2,&DAT_000d1314,0x14);\n    close(iVar2);\n    if (sVar3 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }\n    else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }\n    return uVar4;\n  }\n  if (*DAT_000d16fc == 0x13) {\n    cVar1 = *DAT_000d12f8;\n    *DAT_000d16fc = 0;\n    if (cVar1 == 'x') {\n      FUN_00051177();\n      return 0;\n    }\n    DAT_000d1300 = DAT_000d1300 + 1;\n    FUN_00051177();\n    return 0;\n  }\n  DAT_000d1300 = DAT_000d1300 + 1;\n  FUN_00051177();\n  return 0xffffffff;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ssize_t sVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "iVar2 = open64("supervise/ok",0x801);" (assignment_expression "iVar2 = open64("supervise/ok",0x801)" identifier = (call_expression "open64("supervise/ok",0x801)" identifier (argument_list "("supervise/ok",0x801)" ( (string_literal ""supervise/ok"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar2 != -1) {\n    close(iVar2);\n    iVar2 = open64("supervise/status",0x800);\n    if (iVar2 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }\n    sVar3 = read(iVar2,&DAT_000d1314,0x14);\n    close(iVar2);\n    if (sVar3 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }\n    else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }\n    return uVar4;\n  }" if (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) (compound_statement "{\n    close(iVar2);\n    iVar2 = open64("supervise/status",0x800);\n    if (iVar2 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }\n    sVar3 = read(iVar2,&DAT_000d1314,0x14);\n    close(iVar2);\n    if (sVar3 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }\n    else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }\n    return uVar4;\n  }" { (expression_statement "close(iVar2);" (call_expression "close(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "iVar2 = open64("supervise/status",0x800);" (assignment_expression "iVar2 = open64("supervise/status",0x800)" identifier = (call_expression "open64("supervise/status",0x800)" identifier (argument_list "("supervise/status",0x800)" ( (string_literal ""supervise/status"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar2 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }" { (expression_statement "DAT_000d1300 = DAT_000d1300 + 1;" (assignment_expression "DAT_000d1300 = DAT_000d1300 + 1" identifier = (binary_expression "DAT_000d1300 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00051177();" (call_expression "FUN_00051177()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "sVar3 = read(iVar2,&DAT_000d1314,0x14);" (assignment_expression "sVar3 = read(iVar2,&DAT_000d1314,0x14)" identifier = (call_expression "read(iVar2,&DAT_000d1314,0x14)" identifier (argument_list "(iVar2,&DAT_000d1314,0x14)" ( identifier , (pointer_expression "&DAT_000d1314" & identifier) , number_literal )))) ;) (expression_statement "close(iVar2);" (call_expression "close(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (if_statement "if (sVar3 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }\n    else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }" if (parenthesized_expression "(sVar3 == -1)" ( (binary_expression "sVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }" { (expression_statement "DAT_000d1300 = DAT_000d1300 + 1;" (assignment_expression "DAT_000d1300 = DAT_000d1300 + 1" identifier = (binary_expression "DAT_000d1300 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00051177();" (call_expression "FUN_00051177()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }" else (compound_statement "{\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }" { (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (if_statement "if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }" if (parenthesized_expression "(sVar3 != 0x14)" ( (binary_expression "sVar3 != 0x14" identifier != number_literal) )) (compound_statement "{\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }" { (expression_statement "*DAT_000d16fc = 0;" (assignment_expression "*DAT_000d16fc = 0" (pointer_expression "*DAT_000d16fc" * identifier) = number_literal) ;) (expression_statement "DAT_000d1300 = DAT_000d1300 + 1;" (assignment_expression "DAT_000d1300 = DAT_000d1300 + 1" identifier = (binary_expression "DAT_000d1300 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00051177();" (call_expression "FUN_00051177()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0xffffffff;" return number_literal ;) })) }))) (return_statement "return uVar4;" return identifier ;) })) (if_statement "if (*DAT_000d16fc == 0x13) {\n    cVar1 = *DAT_000d12f8;\n    *DAT_000d16fc = 0;\n    if (cVar1 == 'x') {\n      FUN_00051177();\n      return 0;\n    }\n    DAT_000d1300 = DAT_000d1300 + 1;\n    FUN_00051177();\n    return 0;\n  }" if (parenthesized_expression "(*DAT_000d16fc == 0x13)" ( (binary_expression "*DAT_000d16fc == 0x13" (pointer_expression "*DAT_000d16fc" * identifier) == number_literal) )) (compound_statement "{\n    cVar1 = *DAT_000d12f8;\n    *DAT_000d16fc = 0;\n    if (cVar1 == 'x') {\n      FUN_00051177();\n      return 0;\n    }\n    DAT_000d1300 = DAT_000d1300 + 1;\n    FUN_00051177();\n    return 0;\n  }" { (expression_statement "cVar1 = *DAT_000d12f8;" (assignment_expression "cVar1 = *DAT_000d12f8" identifier = (pointer_expression "*DAT_000d12f8" * identifier)) ;) (expression_statement "*DAT_000d16fc = 0;" (assignment_expression "*DAT_000d16fc = 0" (pointer_expression "*DAT_000d16fc" * identifier) = number_literal) ;) (if_statement "if (cVar1 == 'x') {\n      FUN_00051177();\n      return 0;\n    }" if (parenthesized_expression "(cVar1 == 'x')" ( (binary_expression "cVar1 == 'x'" identifier == (char_literal "'x'" ' character ')) )) (compound_statement "{\n      FUN_00051177();\n      return 0;\n    }" { (expression_statement "FUN_00051177();" (call_expression "FUN_00051177()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "DAT_000d1300 = DAT_000d1300 + 1;" (assignment_expression "DAT_000d1300 = DAT_000d1300 + 1" identifier = (binary_expression "DAT_000d1300 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00051177();" (call_expression "FUN_00051177()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "DAT_000d1300 = DAT_000d1300 + 1;" (assignment_expression "DAT_000d1300 = DAT_000d1300 + 1" identifier = (binary_expression "DAT_000d1300 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00051177();" (call_expression "FUN_00051177()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return LIT ;) })) }))) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0005140e(void)\n\n{\n  char cVar1;\n  int iVar2;\n  ssize_t sVar3;\n  undefined4 uVar4;\n  \n  iVar2 = open64("supervise/ok",0x801);\n  if (iVar2 != -1) {\n    close(iVar2);\n    iVar2 = open64("supervise/status",0x800);\n    if (iVar2 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }\n    sVar3 = read(iVar2,&DAT_000d1314,0x14);\n    close(iVar2);\n    if (sVar3 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }\n    else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }\n    return uVar4;\n  }\n  if (*DAT_000d16fc == 0x13) {\n    cVar1 = *DAT_000d12f8;\n    *DAT_000d16fc = 0;\n    if (cVar1 == 'x') {\n      FUN_00051177();\n      return 0;\n    }\n    DAT_000d1300 = DAT_000d1300 + 1;\n    FUN_00051177();\n    return 0;\n  }\n  DAT_000d1300 = DAT_000d1300 + 1;\n  FUN_00051177();\n  return 0xffffffff;\n}" (type_identifier "undefined4") (function_declarator "FUN_0005140e(void)" (identifier "FUN_0005140e") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  ssize_t sVar3;\n  undefined4 uVar4;\n  \n  iVar2 = open64("supervise/ok",0x801);\n  if (iVar2 != -1) {\n    close(iVar2);\n    iVar2 = open64("supervise/status",0x800);\n    if (iVar2 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }\n    sVar3 = read(iVar2,&DAT_000d1314,0x14);\n    close(iVar2);\n    if (sVar3 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }\n    else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }\n    return uVar4;\n  }\n  if (*DAT_000d16fc == 0x13) {\n    cVar1 = *DAT_000d12f8;\n    *DAT_000d16fc = 0;\n    if (cVar1 == 'x') {\n      FUN_00051177();\n      return 0;\n    }\n    DAT_000d1300 = DAT_000d1300 + 1;\n    FUN_00051177();\n    return 0;\n  }\n  DAT_000d1300 = DAT_000d1300 + 1;\n  FUN_00051177();\n  return 0xffffffff;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "ssize_t sVar3;" (primitive_type "ssize_t") (identifier "sVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "iVar2 = open64("supervise/ok",0x801);" (assignment_expression "iVar2 = open64("supervise/ok",0x801)" (identifier "iVar2") (= "=") (call_expression "open64("supervise/ok",0x801)" (identifier "open64") (argument_list "("supervise/ok",0x801)" (( "(") (string_literal ""supervise/ok"" (" """) (string_content "supervise/ok") (" """)) (, ",") (number_literal "0x801") () ")")))) (; ";")) (if_statement "if (iVar2 != -1) {\n    close(iVar2);\n    iVar2 = open64("supervise/status",0x800);\n    if (iVar2 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }\n    sVar3 = read(iVar2,&DAT_000d1314,0x14);\n    close(iVar2);\n    if (sVar3 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }\n    else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }\n    return uVar4;\n  }" (if "if") (parenthesized_expression "(iVar2 != -1)" (( "(") (binary_expression "iVar2 != -1" (identifier "iVar2") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n    close(iVar2);\n    iVar2 = open64("supervise/status",0x800);\n    if (iVar2 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }\n    sVar3 = read(iVar2,&DAT_000d1314,0x14);\n    close(iVar2);\n    if (sVar3 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }\n    else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }\n    return uVar4;\n  }" ({ "{") (expression_statement "close(iVar2);" (call_expression "close(iVar2)" (identifier "close") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "iVar2 = open64("supervise/status",0x800);" (assignment_expression "iVar2 = open64("supervise/status",0x800)" (identifier "iVar2") (= "=") (call_expression "open64("supervise/status",0x800)" (identifier "open64") (argument_list "("supervise/status",0x800)" (( "(") (string_literal ""supervise/status"" (" """) (string_content "supervise/status") (" """)) (, ",") (number_literal "0x800") () ")")))) (; ";")) (if_statement "if (iVar2 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      return 0xffffffff;\n    }" ({ "{") (expression_statement "DAT_000d1300 = DAT_000d1300 + 1;" (assignment_expression "DAT_000d1300 = DAT_000d1300 + 1" (identifier "DAT_000d1300") (= "=") (binary_expression "DAT_000d1300 + 1" (identifier "DAT_000d1300") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00051177();" (call_expression "FUN_00051177()" (identifier "FUN_00051177") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (expression_statement "sVar3 = read(iVar2,&DAT_000d1314,0x14);" (assignment_expression "sVar3 = read(iVar2,&DAT_000d1314,0x14)" (identifier "sVar3") (= "=") (call_expression "read(iVar2,&DAT_000d1314,0x14)" (identifier "read") (argument_list "(iVar2,&DAT_000d1314,0x14)" (( "(") (identifier "iVar2") (, ",") (pointer_expression "&DAT_000d1314" (& "&") (identifier "DAT_000d1314")) (, ",") (number_literal "0x14") () ")")))) (; ";")) (expression_statement "close(iVar2);" (call_expression "close(iVar2)" (identifier "close") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (if_statement "if (sVar3 == -1) {\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }\n    else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }" (if "if") (parenthesized_expression "(sVar3 == -1)" (( "(") (binary_expression "sVar3 == -1" (identifier "sVar3") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      DAT_000d1300 = DAT_000d1300 + 1;\n      FUN_00051177();\n      uVar4 = 0xffffffff;\n    }" ({ "{") (expression_statement "DAT_000d1300 = DAT_000d1300 + 1;" (assignment_expression "DAT_000d1300 = DAT_000d1300 + 1" (identifier "DAT_000d1300") (= "=") (binary_expression "DAT_000d1300 + 1" (identifier "DAT_000d1300") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00051177();" (call_expression "FUN_00051177()" (identifier "FUN_00051177") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" (identifier "uVar4") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else {\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }" (else "else") (compound_statement "{\n      uVar4 = 1;\n      if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }\n    }" ({ "{") (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (if_statement "if (sVar3 != 0x14) {\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }" (if "if") (parenthesized_expression "(sVar3 != 0x14)" (( "(") (binary_expression "sVar3 != 0x14" (identifier "sVar3") (!= "!=") (number_literal "0x14")) () ")")) (compound_statement "{\n        *DAT_000d16fc = 0;\n        DAT_000d1300 = DAT_000d1300 + 1;\n        FUN_00051177();\n        return 0xffffffff;\n      }" ({ "{") (expression_statement "*DAT_000d16fc = 0;" (assignment_expression "*DAT_000d16fc = 0" (pointer_expression "*DAT_000d16fc" (* "*") (identifier "DAT_000d16fc")) (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_000d1300 = DAT_000d1300 + 1;" (assignment_expression "DAT_000d1300 = DAT_000d1300 + 1" (identifier "DAT_000d1300") (= "=") (binary_expression "DAT_000d1300 + 1" (identifier "DAT_000d1300") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00051177();" (call_expression "FUN_00051177()" (identifier "FUN_00051177") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (} "}")))) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}"))) (if_statement "if (*DAT_000d16fc == 0x13) {\n    cVar1 = *DAT_000d12f8;\n    *DAT_000d16fc = 0;\n    if (cVar1 == 'x') {\n      FUN_00051177();\n      return 0;\n    }\n    DAT_000d1300 = DAT_000d1300 + 1;\n    FUN_00051177();\n    return 0;\n  }" (if "if") (parenthesized_expression "(*DAT_000d16fc == 0x13)" (( "(") (binary_expression "*DAT_000d16fc == 0x13" (pointer_expression "*DAT_000d16fc" (* "*") (identifier "DAT_000d16fc")) (== "==") (number_literal "0x13")) () ")")) (compound_statement "{\n    cVar1 = *DAT_000d12f8;\n    *DAT_000d16fc = 0;\n    if (cVar1 == 'x') {\n      FUN_00051177();\n      return 0;\n    }\n    DAT_000d1300 = DAT_000d1300 + 1;\n    FUN_00051177();\n    return 0;\n  }" ({ "{") (expression_statement "cVar1 = *DAT_000d12f8;" (assignment_expression "cVar1 = *DAT_000d12f8" (identifier "cVar1") (= "=") (pointer_expression "*DAT_000d12f8" (* "*") (identifier "DAT_000d12f8"))) (; ";")) (expression_statement "*DAT_000d16fc = 0;" (assignment_expression "*DAT_000d16fc = 0" (pointer_expression "*DAT_000d16fc" (* "*") (identifier "DAT_000d16fc")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (cVar1 == 'x') {\n      FUN_00051177();\n      return 0;\n    }" (if "if") (parenthesized_expression "(cVar1 == 'x')" (( "(") (binary_expression "cVar1 == 'x'" (identifier "cVar1") (== "==") (char_literal "'x'" (' "'") (character "x") (' "'"))) () ")")) (compound_statement "{\n      FUN_00051177();\n      return 0;\n    }" ({ "{") (expression_statement "FUN_00051177();" (call_expression "FUN_00051177()" (identifier "FUN_00051177") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "DAT_000d1300 = DAT_000d1300 + 1;" (assignment_expression "DAT_000d1300 = DAT_000d1300 + 1" (identifier "DAT_000d1300") (= "=") (binary_expression "DAT_000d1300 + 1" (identifier "DAT_000d1300") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00051177();" (call_expression "FUN_00051177()" (identifier "FUN_00051177") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "DAT_000d1300 = DAT_000d1300 + 1;" (assignment_expression "DAT_000d1300 = DAT_000d1300 + 1" (identifier "DAT_000d1300") (= "=") (binary_expression "DAT_000d1300 + 1" (identifier "DAT_000d1300") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00051177();" (call_expression "FUN_00051177()" (identifier "FUN_00051177") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}")))

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

int function_1(void)

{
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement (number_literal))))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement (number_literal)))))

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

undefined4 MASKED(void)

{
  char cVar1;
  int iVar2;
  ssize_t sVar3;
  undefined4 uVar4;
  
  iVar2 = open64("supervise/ok",0x801);
  if (iVar2 != -1) {
    close(iVar2);
    iVar2 = open64("supervise/status",0x800);
    if (iVar2 == -1) {
      DAT_000d1300 = DAT_000d1300 + 1;
      FUN_00051177();
      return 0xffffffff;
    }
    sVar3 = read(iVar2,&DAT_000d1314,0x14);
    close(iVar2);
    if (sVar3 == -1) {
      DAT_000d1300 = DAT_000d1300 + 1;
      FUN_00051177();
      uVar4 = 0xffffffff;
    }
    else {
      uVar4 = 1;
      if (sVar3 != 0x14) {
        *DAT_000d16fc = 0;
        DAT_000d1300 = DAT_000d1300 + 1;
        FUN_00051177();
        return 0xffffffff;
      }
    }
    return uVar4;
  }
  if (*DAT_000d16fc == 0x13) {
    cVar1 = *DAT_000d12f8;
    *DAT_000d16fc = 0;
    if (cVar1 == 'x') {
      FUN_00051177();
      return 0;
    }
    DAT_000d1300 = DAT_000d1300 + 1;
    FUN_00051177();
    return 0;
  }
  DAT_000d1300 = DAT_000d1300 + 1;
  FUN_00051177();
  return 0xffffffff;
}

