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

void bitset_stats_write(char *file_name)

{
  FILE *__stream;
  size_t sVar1;
  int iVar2;
  char *pcVar3;
  
  if (bitset_stats_info == (bitset_stats_info_struct *)0x0) {
    return;
  }
  if (file_name == (char *)0x0) {
    file_name = "bitset.dat";
  }
  __stream = fopen64(file_name,"w");
  if (__stream == (FILE *)0x0) {
    pcVar3 = "cannot open stats file for writing";
  }
  else {
    sVar1 = fwrite_unlocked(PTR_bitset_stats_info_data_00095f9c,0x374,1,__stream);
    if (sVar1 == 1) {
      iVar2 = fclose(__stream);
    }
    else {
      pcVar3 = (char *)dcgettext(0,"cannot write stats file",5);
      rpl_perror(pcVar3);
      iVar2 = fclose(__stream);
    }
    if (iVar2 == 0) {
      return;
    }
    pcVar3 = "cannot write stats file";
  }
  pcVar3 = (char *)dcgettext(0,pcVar3,5);
  rpl_perror(pcVar3);
  return;
}



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

void FUN_000514e0(char *param_1)

{
  FILE *__stream;
  size_t sVar1;
  int iVar2;
  char *pcVar3;
  undefined4 uVar4;
  
  if (DAT_00099f54 == 0) {
    return;
  }
  if (param_1 == (char *)0x0) {
    param_1 = "bitset.dat";
  }
  __stream = fopen64(param_1,"w");
  if (__stream == (FILE *)0x0) {
    pcVar3 = "cannot open stats file for writing";
  }
  else {
    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);
    if (sVar1 == 1) {
      iVar2 = fclose(__stream);
    }
    else {
      uVar4 = dcgettext(0,"cannot write stats file",5);
      FUN_00068d20(uVar4);
      iVar2 = fclose(__stream);
    }
    if (iVar2 == 0) {
      return;
    }
    pcVar3 = "cannot write stats file";
  }
  uVar4 = dcgettext(0,pcVar3,5);
  FUN_00068d20(uVar4);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00013d10
ADD EBX,0x44b19
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x10]
LEA EDX,[EBX + 0x3f54]
MOV EDX,dword ptr [EDX]
TEST EDX,EDX
JZ 0x0005154f
TEST EAX,EAX
LEA EDX,[EBX + 0xfffe1480]
CMOVZ EAX,EDX
SUB ESP,0x8
LEA EDX,[EBX + 0xfffd9e69]
PUSH EDX
PUSH EAX
CALL 0x00013220
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x00051590
PUSH EAX
PUSH 0x1
PUSH 0x374
PUSH dword ptr [EBX + 0xffffff9c]
CALL 0x00013450
ADD ESP,0x10
CMP EAX,0x1
JNZ 0x00051558
SUB ESP,0xc
PUSH ESI
CALL 0x00013130
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000515b8
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe14b7]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00013170
MOV dword ptr [ESP],EAX
CALL 0x00068d20
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
CALL 0x00013130
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0005154f
JMP 0x000515b8
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe156c]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00013170
MOV dword ptr [ESP],EAX
CALL 0x00068d20
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe14b7]
PUSH 0x5
JMP 0x0005159b
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000514e0(char *param_1)\n\n{\n  FILE *__stream;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  if (DAT_00099f54 == 0) {\n    return;\n  }\n  if (param_1 == (char *)0x0) {\n    param_1 = "bitset.dat";\n  }\n  __stream = fopen64(param_1,"w");\n  if (__stream == (FILE *)0x0) {\n    pcVar3 = "cannot open stats file for writing";\n  }\n  else {\n    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }\n  uVar4 = dcgettext(0,pcVar3,5);\n  FUN_00068d20(uVar4);\n  return;\n}\n\n" comment (function_definition "void FUN_000514e0(char *param_1)\n\n{\n  FILE *__stream;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  if (DAT_00099f54 == 0) {\n    return;\n  }\n  if (param_1 == (char *)0x0) {\n    param_1 = "bitset.dat";\n  }\n  __stream = fopen64(param_1,"w");\n  if (__stream == (FILE *)0x0) {\n    pcVar3 = "cannot open stats file for writing";\n  }\n  else {\n    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }\n  uVar4 = dcgettext(0,pcVar3,5);\n  FUN_00068d20(uVar4);\n  return;\n}" primitive_type (function_declarator "FUN_000514e0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  FILE *__stream;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  if (DAT_00099f54 == 0) {\n    return;\n  }\n  if (param_1 == (char *)0x0) {\n    param_1 = "bitset.dat";\n  }\n  __stream = fopen64(param_1,"w");\n  if (__stream == (FILE *)0x0) {\n    pcVar3 = "cannot open stats file for writing";\n  }\n  else {\n    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }\n  uVar4 = dcgettext(0,pcVar3,5);\n  FUN_00068d20(uVar4);\n  return;\n}" { (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if (DAT_00099f54 == 0) {\n    return;\n  }" if (parenthesized_expression "(DAT_00099f54 == 0)" ( (binary_expression "DAT_00099f54 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (param_1 == (char *)0x0) {\n    param_1 = "bitset.dat";\n  }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_1 = "bitset.dat";\n  }" { (expression_statement "param_1 = "bitset.dat";" (assignment_expression "param_1 = "bitset.dat"" identifier = (string_literal ""bitset.dat"" " string_content ")) ;) })) (expression_statement "__stream = fopen64(param_1,"w");" (assignment_expression "__stream = fopen64(param_1,"w")" identifier = (call_expression "fopen64(param_1,"w")" identifier (argument_list "(param_1,"w")" ( identifier , (string_literal ""w"" " string_content ") )))) ;) (if_statement "if (__stream == (FILE *)0x0) {\n    pcVar3 = "cannot open stats file for writing";\n  }\n  else {\n    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }" if (parenthesized_expression "(__stream == (FILE *)0x0)" ( (binary_expression "__stream == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar3 = "cannot open stats file for writing";\n  }" { (expression_statement "pcVar3 = "cannot open stats file for writing";" (assignment_expression "pcVar3 = "cannot open stats file for writing"" identifier = (string_literal ""cannot open stats file for writing"" " string_content ")) ;) }) (else_clause "else {\n    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }" else (compound_statement "{\n    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }" { (expression_statement "sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);" (assignment_expression "sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream)" identifier = (call_expression "fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream)" identifier (argument_list "(PTR_DAT_00095f9c,0x374,1,__stream)" ( identifier , number_literal , number_literal , identifier )))) ;) (if_statement "if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }" if (parenthesized_expression "(sVar1 == 1)" ( (binary_expression "sVar1 == 1" identifier == number_literal) )) (compound_statement "{\n      iVar2 = fclose(__stream);\n    }" { (expression_statement "iVar2 = fclose(__stream);" (assignment_expression "iVar2 = fclose(__stream)" identifier = (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier )))) ;) }) (else_clause "else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }" else (compound_statement "{\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }" { (expression_statement "uVar4 = dcgettext(0,"cannot write stats file",5);" (assignment_expression "uVar4 = dcgettext(0,"cannot write stats file",5)" identifier = (call_expression "dcgettext(0,"cannot write stats file",5)" identifier (argument_list "(0,"cannot write stats file",5)" ( number_literal , (string_literal ""cannot write stats file"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00068d20(uVar4);" (call_expression "FUN_00068d20(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "iVar2 = fclose(__stream);" (assignment_expression "iVar2 = fclose(__stream)" identifier = (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier )))) ;) }))) (if_statement "if (iVar2 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "pcVar3 = "cannot write stats file";" (assignment_expression "pcVar3 = "cannot write stats file"" identifier = (string_literal ""cannot write stats file"" " string_content ")) ;) }))) (expression_statement "uVar4 = dcgettext(0,pcVar3,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar3,5)" identifier = (call_expression "dcgettext(0,pcVar3,5)" identifier (argument_list "(0,pcVar3,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "FUN_00068d20(uVar4);" (call_expression "FUN_00068d20(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid bitset_stats_write(char *file_name)\n\n{\n  FILE *__stream;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if (bitset_stats_info == (bitset_stats_info_struct *)0x0) {\n    return;\n  }\n  if (file_name == (char *)0x0) {\n    file_name = "bitset.dat";\n  }\n  __stream = fopen64(file_name,"w");\n  if (__stream == (FILE *)0x0) {\n    pcVar3 = "cannot open stats file for writing";\n  }\n  else {\n    sVar1 = fwrite_unlocked(PTR_bitset_stats_info_data_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      pcVar3 = (char *)dcgettext(0,"cannot write stats file",5);\n      rpl_perror(pcVar3);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }\n  pcVar3 = (char *)dcgettext(0,pcVar3,5);\n  rpl_perror(pcVar3);\n  return;\n}\n\n" comment (function_definition "void bitset_stats_write(char *file_name)\n\n{\n  FILE *__stream;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if (bitset_stats_info == (bitset_stats_info_struct *)0x0) {\n    return;\n  }\n  if (file_name == (char *)0x0) {\n    file_name = "bitset.dat";\n  }\n  __stream = fopen64(file_name,"w");\n  if (__stream == (FILE *)0x0) {\n    pcVar3 = "cannot open stats file for writing";\n  }\n  else {\n    sVar1 = fwrite_unlocked(PTR_bitset_stats_info_data_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      pcVar3 = (char *)dcgettext(0,"cannot write stats file",5);\n      rpl_perror(pcVar3);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }\n  pcVar3 = (char *)dcgettext(0,pcVar3,5);\n  rpl_perror(pcVar3);\n  return;\n}" primitive_type (function_declarator "bitset_stats_write(char *file_name)" identifier (parameter_list "(char *file_name)" ( (parameter_declaration "char *file_name" primitive_type (pointer_declarator "*file_name" * identifier)) ))) (compound_statement "{\n  FILE *__stream;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if (bitset_stats_info == (bitset_stats_info_struct *)0x0) {\n    return;\n  }\n  if (file_name == (char *)0x0) {\n    file_name = "bitset.dat";\n  }\n  __stream = fopen64(file_name,"w");\n  if (__stream == (FILE *)0x0) {\n    pcVar3 = "cannot open stats file for writing";\n  }\n  else {\n    sVar1 = fwrite_unlocked(PTR_bitset_stats_info_data_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      pcVar3 = (char *)dcgettext(0,"cannot write stats file",5);\n      rpl_perror(pcVar3);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }\n  pcVar3 = (char *)dcgettext(0,pcVar3,5);\n  rpl_perror(pcVar3);\n  return;\n}" { (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (bitset_stats_info == (bitset_stats_info_struct *)0x0) {\n    return;\n  }" if (parenthesized_expression "(bitset_stats_info == (bitset_stats_info_struct *)0x0)" ( (binary_expression "bitset_stats_info == (bitset_stats_info_struct *)0x0" identifier == (cast_expression "(bitset_stats_info_struct *)0x0" ( (type_descriptor "bitset_stats_info_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (file_name == (char *)0x0) {\n    file_name = "bitset.dat";\n  }" if (parenthesized_expression "(file_name == (char *)0x0)" ( (binary_expression "file_name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    file_name = "bitset.dat";\n  }" { (expression_statement "file_name = "bitset.dat";" (assignment_expression "file_name = "bitset.dat"" identifier = (string_literal ""bitset.dat"" " string_content ")) ;) })) (expression_statement "__stream = fopen64(file_name,"w");" (assignment_expression "__stream = fopen64(file_name,"w")" identifier = (call_expression "fopen64(file_name,"w")" identifier (argument_list "(file_name,"w")" ( identifier , (string_literal ""w"" " string_content ") )))) ;) (if_statement "if (__stream == (FILE *)0x0) {\n    pcVar3 = "cannot open stats file for writing";\n  }\n  else {\n    sVar1 = fwrite_unlocked(PTR_bitset_stats_info_data_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      pcVar3 = (char *)dcgettext(0,"cannot write stats file",5);\n      rpl_perror(pcVar3);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }" if (parenthesized_expression "(__stream == (FILE *)0x0)" ( (binary_expression "__stream == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar3 = "cannot open stats file for writing";\n  }" { (expression_statement "pcVar3 = "cannot open stats file for writing";" (assignment_expression "pcVar3 = "cannot open stats file for writing"" identifier = (string_literal ""cannot open stats file for writing"" " string_content ")) ;) }) (else_clause "else {\n    sVar1 = fwrite_unlocked(PTR_bitset_stats_info_data_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      pcVar3 = (char *)dcgettext(0,"cannot write stats file",5);\n      rpl_perror(pcVar3);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }" else (compound_statement "{\n    sVar1 = fwrite_unlocked(PTR_bitset_stats_info_data_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      pcVar3 = (char *)dcgettext(0,"cannot write stats file",5);\n      rpl_perror(pcVar3);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }" { (expression_statement "sVar1 = fwrite_unlocked(PTR_bitset_stats_info_data_00095f9c,0x374,1,__stream);" (assignment_expression "sVar1 = fwrite_unlocked(PTR_bitset_stats_info_data_00095f9c,0x374,1,__stream)" identifier = (call_expression "fwrite_unlocked(PTR_bitset_stats_info_data_00095f9c,0x374,1,__stream)" identifier (argument_list "(PTR_bitset_stats_info_data_00095f9c,0x374,1,__stream)" ( identifier , number_literal , number_literal , identifier )))) ;) (if_statement "if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      pcVar3 = (char *)dcgettext(0,"cannot write stats file",5);\n      rpl_perror(pcVar3);\n      iVar2 = fclose(__stream);\n    }" if (parenthesized_expression "(sVar1 == 1)" ( (binary_expression "sVar1 == 1" identifier == number_literal) )) (compound_statement "{\n      iVar2 = fclose(__stream);\n    }" { (expression_statement "iVar2 = fclose(__stream);" (assignment_expression "iVar2 = fclose(__stream)" identifier = (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier )))) ;) }) (else_clause "else {\n      pcVar3 = (char *)dcgettext(0,"cannot write stats file",5);\n      rpl_perror(pcVar3);\n      iVar2 = fclose(__stream);\n    }" else (compound_statement "{\n      pcVar3 = (char *)dcgettext(0,"cannot write stats file",5);\n      rpl_perror(pcVar3);\n      iVar2 = fclose(__stream);\n    }" { (expression_statement "pcVar3 = (char *)dcgettext(0,"cannot write stats file",5);" (assignment_expression "pcVar3 = (char *)dcgettext(0,"cannot write stats file",5)" identifier = (cast_expression "(char *)dcgettext(0,"cannot write stats file",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"cannot write stats file",5)" identifier (argument_list "(0,"cannot write stats file",5)" ( number_literal , (string_literal ""cannot write stats file"" " string_content ") , number_literal ))))) ;) (expression_statement "rpl_perror(pcVar3);" (call_expression "rpl_perror(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (expression_statement "iVar2 = fclose(__stream);" (assignment_expression "iVar2 = fclose(__stream)" identifier = (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier )))) ;) }))) (if_statement "if (iVar2 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "pcVar3 = "cannot write stats file";" (assignment_expression "pcVar3 = "cannot write stats file"" identifier = (string_literal ""cannot write stats file"" " string_content ")) ;) }))) (expression_statement "pcVar3 = (char *)dcgettext(0,pcVar3,5);" (assignment_expression "pcVar3 = (char *)dcgettext(0,pcVar3,5)" identifier = (cast_expression "(char *)dcgettext(0,pcVar3,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,pcVar3,5)" identifier (argument_list "(0,pcVar3,5)" ( number_literal , identifier , number_literal ))))) ;) (expression_statement "rpl_perror(pcVar3);" (call_expression "rpl_perror(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000514e0(char *param_1)\n\n{\n  FILE *__stream;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  if (DAT_00099f54 == 0) {\n    return;\n  }\n  if (param_1 == (char *)0x0) {\n    param_1 = "bitset.dat";\n  }\n  __stream = fopen64(param_1,"w");\n  if (__stream == (FILE *)0x0) {\n    pcVar3 = "cannot open stats file for writing";\n  }\n  else {\n    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }\n  uVar4 = dcgettext(0,pcVar3,5);\n  FUN_00068d20(uVar4);\n  return;\n}\n\n" (function_definition "void FUN_000514e0(char *param_1)\n\n{\n  FILE *__stream;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  if (DAT_00099f54 == 0) {\n    return;\n  }\n  if (param_1 == (char *)0x0) {\n    param_1 = "bitset.dat";\n  }\n  __stream = fopen64(param_1,"w");\n  if (__stream == (FILE *)0x0) {\n    pcVar3 = "cannot open stats file for writing";\n  }\n  else {\n    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }\n  uVar4 = dcgettext(0,pcVar3,5);\n  FUN_00068d20(uVar4);\n  return;\n}" primitive_type (function_declarator "FUN_000514e0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  FILE *__stream;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  if (DAT_00099f54 == 0) {\n    return;\n  }\n  if (param_1 == (char *)0x0) {\n    param_1 = "bitset.dat";\n  }\n  __stream = fopen64(param_1,"w");\n  if (__stream == (FILE *)0x0) {\n    pcVar3 = "cannot open stats file for writing";\n  }\n  else {\n    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }\n  uVar4 = dcgettext(0,pcVar3,5);\n  FUN_00068d20(uVar4);\n  return;\n}" { (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if (DAT_00099f54 == 0) {\n    return;\n  }" if (parenthesized_expression "(DAT_00099f54 == 0)" ( (binary_expression "DAT_00099f54 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (param_1 == (char *)0x0) {\n    param_1 = "bitset.dat";\n  }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_1 = "bitset.dat";\n  }" { (expression_statement "param_1 = "bitset.dat";" (assignment_expression "param_1 = "bitset.dat"" identifier = (string_literal ""bitset.dat"" " string_content ")) ;) })) (expression_statement "__stream = fopen64(param_1,"w");" (assignment_expression "__stream = fopen64(param_1,"w")" identifier = (call_expression "fopen64(param_1,"w")" identifier (argument_list "(param_1,"w")" ( identifier , (string_literal ""w"" " string_content ") )))) ;) (if_statement "if (__stream == (FILE *)0x0) {\n    pcVar3 = "cannot open stats file for writing";\n  }\n  else {\n    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }" if (parenthesized_expression "(__stream == (FILE *)0x0)" ( (binary_expression "__stream == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar3 = "cannot open stats file for writing";\n  }" { (expression_statement "pcVar3 = "cannot open stats file for writing";" (assignment_expression "pcVar3 = "cannot open stats file for writing"" identifier = (string_literal ""cannot open stats file for writing"" " string_content ")) ;) }) (else_clause "else {\n    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }" else (compound_statement "{\n    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }" { (expression_statement "sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);" (assignment_expression "sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream)" identifier = (call_expression "fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream)" identifier (argument_list "(PTR_DAT_00095f9c,0x374,1,__stream)" ( identifier , number_literal , number_literal , identifier )))) ;) (if_statement "if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }" if (parenthesized_expression "(sVar1 == 1)" ( (binary_expression "sVar1 == 1" identifier == number_literal) )) (compound_statement "{\n      iVar2 = fclose(__stream);\n    }" { (expression_statement "iVar2 = fclose(__stream);" (assignment_expression "iVar2 = fclose(__stream)" identifier = (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier )))) ;) }) (else_clause "else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }" else (compound_statement "{\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }" { (expression_statement "uVar4 = dcgettext(0,"cannot write stats file",5);" (assignment_expression "uVar4 = dcgettext(0,"cannot write stats file",5)" identifier = (call_expression "dcgettext(0,"cannot write stats file",5)" identifier (argument_list "(0,"cannot write stats file",5)" ( number_literal , (string_literal ""cannot write stats file"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00068d20(uVar4);" (call_expression "FUN_00068d20(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "iVar2 = fclose(__stream);" (assignment_expression "iVar2 = fclose(__stream)" identifier = (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier )))) ;) }))) (if_statement "if (iVar2 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "pcVar3 = "cannot write stats file";" (assignment_expression "pcVar3 = "cannot write stats file"" identifier = (string_literal ""cannot write stats file"" " string_content ")) ;) }))) (expression_statement "uVar4 = dcgettext(0,pcVar3,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar3,5)" identifier = (call_expression "dcgettext(0,pcVar3,5)" identifier (argument_list "(0,pcVar3,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "FUN_00068d20(uVar4);" (call_expression "FUN_00068d20(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000514e0(char *param_1)\n\n{\n  FILE *__stream;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  if (DAT_00099f54 == 0) {\n    return;\n  }\n  if (param_1 == (char *)0x0) {\n    param_1 = "bitset.dat";\n  }\n  __stream = fopen64(param_1,"w");\n  if (__stream == (FILE *)0x0) {\n    pcVar3 = "cannot open stats file for writing";\n  }\n  else {\n    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }\n  uVar4 = dcgettext(0,pcVar3,5);\n  FUN_00068d20(uVar4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000514e0(char *param_1)" (identifier "FUN_000514e0") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  FILE *__stream;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  if (DAT_00099f54 == 0) {\n    return;\n  }\n  if (param_1 == (char *)0x0) {\n    param_1 = "bitset.dat";\n  }\n  __stream = fopen64(param_1,"w");\n  if (__stream == (FILE *)0x0) {\n    pcVar3 = "cannot open stats file for writing";\n  }\n  else {\n    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }\n  uVar4 = dcgettext(0,pcVar3,5);\n  FUN_00068d20(uVar4);\n  return;\n}" ({ "{") (declaration "FILE *__stream;" (type_identifier "FILE") (pointer_declarator "*__stream" (* "*") (identifier "__stream")) (; ";")) (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (if_statement "if (DAT_00099f54 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_00099f54 == 0)" (( "(") (binary_expression "DAT_00099f54 == 0" (identifier "DAT_00099f54") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (param_1 == (char *)0x0) {\n    param_1 = "bitset.dat";\n  }" (if "if") (parenthesized_expression "(param_1 == (char *)0x0)" (( "(") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    param_1 = "bitset.dat";\n  }" ({ "{") (expression_statement "param_1 = "bitset.dat";" (assignment_expression "param_1 = "bitset.dat"" (identifier "param_1") (= "=") (string_literal ""bitset.dat"" (" """) (string_content "bitset.dat") (" """))) (; ";")) (} "}"))) (expression_statement "__stream = fopen64(param_1,"w");" (assignment_expression "__stream = fopen64(param_1,"w")" (identifier "__stream") (= "=") (call_expression "fopen64(param_1,"w")" (identifier "fopen64") (argument_list "(param_1,"w")" (( "(") (identifier "param_1") (, ",") (string_literal ""w"" (" """) (string_content "w") (" """)) () ")")))) (; ";")) (if_statement "if (__stream == (FILE *)0x0) {\n    pcVar3 = "cannot open stats file for writing";\n  }\n  else {\n    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }" (if "if") (parenthesized_expression "(__stream == (FILE *)0x0)" (( "(") (binary_expression "__stream == (FILE *)0x0" (identifier "__stream") (== "==") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pcVar3 = "cannot open stats file for writing";\n  }" ({ "{") (expression_statement "pcVar3 = "cannot open stats file for writing";" (assignment_expression "pcVar3 = "cannot open stats file for writing"" (identifier "pcVar3") (= "=") (string_literal ""cannot open stats file for writing"" (" """) (string_content "cannot open stats file for writing") (" """))) (; ";")) (} "}")) (else_clause "else {\n    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }" (else "else") (compound_statement "{\n    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);\n    if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }\n    if (iVar2 == 0) {\n      return;\n    }\n    pcVar3 = "cannot write stats file";\n  }" ({ "{") (expression_statement "sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);" (assignment_expression "sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream)" (identifier "sVar1") (= "=") (call_expression "fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream)" (identifier "fwrite_unlocked") (argument_list "(PTR_DAT_00095f9c,0x374,1,__stream)" (( "(") (identifier "PTR_DAT_00095f9c") (, ",") (number_literal "0x374") (, ",") (number_literal "1") (, ",") (identifier "__stream") () ")")))) (; ";")) (if_statement "if (sVar1 == 1) {\n      iVar2 = fclose(__stream);\n    }\n    else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }" (if "if") (parenthesized_expression "(sVar1 == 1)" (( "(") (binary_expression "sVar1 == 1" (identifier "sVar1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      iVar2 = fclose(__stream);\n    }" ({ "{") (expression_statement "iVar2 = fclose(__stream);" (assignment_expression "iVar2 = fclose(__stream)" (identifier "iVar2") (= "=") (call_expression "fclose(__stream)" (identifier "fclose") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }" (else "else") (compound_statement "{\n      uVar4 = dcgettext(0,"cannot write stats file",5);\n      FUN_00068d20(uVar4);\n      iVar2 = fclose(__stream);\n    }" ({ "{") (expression_statement "uVar4 = dcgettext(0,"cannot write stats file",5);" (assignment_expression "uVar4 = dcgettext(0,"cannot write stats file",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"cannot write stats file",5)" (identifier "dcgettext") (argument_list "(0,"cannot write stats file",5)" (( "(") (number_literal "0") (, ",") (string_literal ""cannot write stats file"" (" """) (string_content "cannot write stats file") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00068d20(uVar4);" (call_expression "FUN_00068d20(uVar4)" (identifier "FUN_00068d20") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "iVar2 = fclose(__stream);" (assignment_expression "iVar2 = fclose(__stream)" (identifier "iVar2") (= "=") (call_expression "fclose(__stream)" (identifier "fclose") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar2 == 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar3 = "cannot write stats file";" (assignment_expression "pcVar3 = "cannot write stats file"" (identifier "pcVar3") (= "=") (string_literal ""cannot write stats file"" (" """) (string_content "cannot write stats file") (" """))) (; ";")) (} "}")))) (expression_statement "uVar4 = dcgettext(0,pcVar3,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar3,5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,pcVar3,5)" (identifier "dcgettext") (argument_list "(0,pcVar3,5)" (( "(") (number_literal "0") (, ",") (identifier "pcVar3") (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00068d20(uVar4);" (call_expression "FUN_00068d20(uVar4)" (identifier "FUN_00068d20") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(char *var_2)

{
  type_1 *var_4;
  size_t var_6;
  int var_10;
  char *pcVar3;
  
  if (var_1 == (type_2 *)0x0) {
    return;
  }
  if (var_2 == (char *)0x0) {
    var_2 = "bitset.dat";
  }
  var_4 = var_3(var_2,"w");
  if (var_4 == (type_1 *)0x0) {
    pcVar3 = "cannot open stats file for writing";
  }
  else {
    var_6 = var_5(PTR_bitset_stats_info_data_00095f9c,0x374,1,var_4);
    if (var_6 == 1) {
      var_10 = var_7(var_4);
    }
    else {
      pcVar3 = (char *)var_8(0,"cannot write stats file",5);
      var_9(pcVar3);
      var_10 = var_7(var_4);
    }
    if (var_10 == 0) {
      return;
    }
    pcVar3 = "cannot write stats file";
  }
  pcVar3 = (char *)var_8(0,pcVar3,5);
  var_9(pcVar3);
  return;
}


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

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

void MASKED(char *param_1)

{
  FILE *__stream;
  size_t sVar1;
  int iVar2;
  char *pcVar3;
  undefined4 uVar4;
  
  if (DAT_00099f54 == 0) {
    return;
  }
  if (param_1 == (char *)0x0) {
    param_1 = "bitset.dat";
  }
  __stream = fopen64(param_1,"w");
  if (__stream == (FILE *)0x0) {
    pcVar3 = "cannot open stats file for writing";
  }
  else {
    sVar1 = fwrite_unlocked(PTR_DAT_00095f9c,0x374,1,__stream);
    if (sVar1 == 1) {
      iVar2 = fclose(__stream);
    }
    else {
      uVar4 = dcgettext(0,"cannot write stats file",5);
      FUN_00068d20(uVar4);
      iVar2 = fclose(__stream);
    }
    if (iVar2 == 0) {
      return;
    }
    pcVar3 = "cannot write stats file";
  }
  uVar4 = dcgettext(0,pcVar3,5);
  FUN_00068d20(uVar4);
  return;
}

