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

void switch_to_adjacent_buffer(_Bool to_next)

{
  openfilestruct *poVar1;
  char *msg;
  
  if ((openfile != openfile->next) || (inhelp)) {
    poVar1 = openfile->next;
    if (!to_next) {
      poVar1 = openfile->prev;
    }
    openfile = poVar1;
    if (((byte)flags[1] & 2) == 0) {
      openfile->firstcolumn = 0;
    }
    prepare_for_display();
    if (inhelp == false) {
      currmenu = 0xdaff;
      mention_name_and_linecount();
      return;
    }
  }
  else {
    msg = (char *)dcgettext(0,"No more open file buffers",5);
    statusbar(msg);
  }
  return;
}



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

void FUN_00019d60(char param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  if ((DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0')) {
    uVar2 = dcgettext(0,"No more open file buffers",5);
    FUN_000386b0(uVar2);
  }
  else {
    iVar1 = *(int *)(DAT_0006b640 + 0x5c);
    if (param_1 == '\0') {
      iVar1 = *(int *)(DAT_0006b640 + 0x60);
    }
    DAT_0006b640 = iVar1;
    if ((DAT_0006b668 & 2) == 0) {
      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;
    }
    FUN_00019ba0();
    if (DAT_0006b68c == '\0') {
      DAT_0006b064 = 0xdaff;
      FUN_00019c20();
      return;
    }
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014e20
ADD EBX,0x50e67
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x20]
LEA EBP,[EBX + 0xa70]
LEA ESI,[EBX + 0xabc]
MOV EDX,dword ptr [EBP]
MOV EAX,dword ptr [EDX + 0x5c]
CMP EDX,EAX
JZ 0x00019df0
MOV ECX,EDI
TEST CL,CL
JZ 0x00019dc0
LEA EDX,[EBX + 0xa94]
MOV dword ptr [EBP],EAX
TEST byte ptr [EDX + 0x4],0x2
JNZ 0x00019da8
MOV dword ptr [EAX + 0x18],0x0
CALL 0x00019ba0
CMP byte ptr [ESI],0x0
JZ 0x00019dd8
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EDX + 0x60]
LEA EDX,[EBX + 0xa94]
MOV dword ptr [EBP],EAX
TEST byte ptr [EDX + 0x4],0x2
JNZ 0x00019da8
JMP 0x00019da1
LEA EAX,[EBX + 0x494]
MOV dword ptr [EAX],0xdaff
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x00019c20
CMP byte ptr [ESI],0x0
JNZ 0x00019d8c
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe17e5]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000132e0
MOV dword ptr [ESP],EAX
CALL 0x000386b0
ADD ESP,0x10
JMP 0x00019db2
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00019d60(char param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if ((DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0')) {\n    uVar2 = dcgettext(0,"No more open file buffers",5);\n    FUN_000386b0(uVar2);\n  }\n  else {\n    iVar1 = *(int *)(DAT_0006b640 + 0x5c);\n    if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }\n    DAT_0006b640 = iVar1;\n    if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }\n    FUN_00019ba0();\n    if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00019d60(char param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if ((DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0')) {\n    uVar2 = dcgettext(0,"No more open file buffers",5);\n    FUN_000386b0(uVar2);\n  }\n  else {\n    iVar1 = *(int *)(DAT_0006b640 + 0x5c);\n    if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }\n    DAT_0006b640 = iVar1;\n    if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }\n    FUN_00019ba0();\n    if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00019d60(char param_1)" identifier (parameter_list "(char param_1)" ( (parameter_declaration "char param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if ((DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0')) {\n    uVar2 = dcgettext(0,"No more open file buffers",5);\n    FUN_000386b0(uVar2);\n  }\n  else {\n    iVar1 = *(int *)(DAT_0006b640 + 0x5c);\n    if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }\n    DAT_0006b640 = iVar1;\n    if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }\n    FUN_00019ba0();\n    if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if ((DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0')) {\n    uVar2 = dcgettext(0,"No more open file buffers",5);\n    FUN_000386b0(uVar2);\n  }\n  else {\n    iVar1 = *(int *)(DAT_0006b640 + 0x5c);\n    if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }\n    DAT_0006b640 = iVar1;\n    if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }\n    FUN_00019ba0();\n    if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }\n  }" if (parenthesized_expression "((DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0'))" ( (binary_expression "(DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0')" (parenthesized_expression "(DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c))" ( (binary_expression "DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)" identifier == (pointer_expression "*(int *)(DAT_0006b640 + 0x5c)" * (cast_expression "(int *)(DAT_0006b640 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x5c)" ( (binary_expression "DAT_0006b640 + 0x5c" identifier + number_literal) ))))) )) && (parenthesized_expression "(DAT_0006b68c == '\0')" ( (binary_expression "DAT_0006b68c == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    uVar2 = dcgettext(0,"No more open file buffers",5);\n    FUN_000386b0(uVar2);\n  }" { (expression_statement "uVar2 = dcgettext(0,"No more open file buffers",5);" (assignment_expression "uVar2 = dcgettext(0,"No more open file buffers",5)" identifier = (call_expression "dcgettext(0,"No more open file buffers",5)" identifier (argument_list "(0,"No more open file buffers",5)" ( number_literal , (string_literal ""No more open file buffers"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_000386b0(uVar2);" (call_expression "FUN_000386b0(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) }) (else_clause "else {\n    iVar1 = *(int *)(DAT_0006b640 + 0x5c);\n    if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }\n    DAT_0006b640 = iVar1;\n    if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }\n    FUN_00019ba0();\n    if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }\n  }" else (compound_statement "{\n    iVar1 = *(int *)(DAT_0006b640 + 0x5c);\n    if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }\n    DAT_0006b640 = iVar1;\n    if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }\n    FUN_00019ba0();\n    if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }\n  }" { (expression_statement "iVar1 = *(int *)(DAT_0006b640 + 0x5c);" (assignment_expression "iVar1 = *(int *)(DAT_0006b640 + 0x5c)" identifier = (pointer_expression "*(int *)(DAT_0006b640 + 0x5c)" * (cast_expression "(int *)(DAT_0006b640 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x5c)" ( (binary_expression "DAT_0006b640 + 0x5c" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }" if (parenthesized_expression "(param_1 == '\0')" ( (binary_expression "param_1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }" { (expression_statement "iVar1 = *(int *)(DAT_0006b640 + 0x60);" (assignment_expression "iVar1 = *(int *)(DAT_0006b640 + 0x60)" identifier = (pointer_expression "*(int *)(DAT_0006b640 + 0x60)" * (cast_expression "(int *)(DAT_0006b640 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x60)" ( (binary_expression "DAT_0006b640 + 0x60" identifier + number_literal) ))))) ;) })) (expression_statement "DAT_0006b640 = iVar1;" (assignment_expression "DAT_0006b640 = iVar1" identifier = identifier) ;) (if_statement "if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }" if (parenthesized_expression "((DAT_0006b668 & 2) == 0)" ( (binary_expression "(DAT_0006b668 & 2) == 0" (parenthesized_expression "(DAT_0006b668 & 2)" ( (binary_expression "DAT_0006b668 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }" { (expression_statement "*(undefined4 *)(DAT_0006b640 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(DAT_0006b640 + 0x18) = 0" (pointer_expression "*(undefined4 *)(DAT_0006b640 + 0x18)" * (cast_expression "(undefined4 *)(DAT_0006b640 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x18)" ( (binary_expression "DAT_0006b640 + 0x18" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "FUN_00019ba0();" (call_expression "FUN_00019ba0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }" if (parenthesized_expression "(DAT_0006b68c == '\0')" ( (binary_expression "DAT_0006b68c == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }" { (expression_statement "DAT_0006b064 = 0xdaff;" (assignment_expression "DAT_0006b064 = 0xdaff" identifier = number_literal) ;) (expression_statement "FUN_00019c20();" (call_expression "FUN_00019c20()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid switch_to_adjacent_buffer(_Bool to_next)\n\n{\n  openfilestruct *poVar1;\n  char *msg;\n  \n  if ((openfile != openfile->next) || (inhelp)) {\n    poVar1 = openfile->next;\n    if (!to_next) {\n      poVar1 = openfile->prev;\n    }\n    openfile = poVar1;\n    if (((byte)flags[1] & 2) == 0) {\n      openfile->firstcolumn = 0;\n    }\n    prepare_for_display();\n    if (inhelp == false) {\n      currmenu = 0xdaff;\n      mention_name_and_linecount();\n      return;\n    }\n  }\n  else {\n    msg = (char *)dcgettext(0,"No more open file buffers",5);\n    statusbar(msg);\n  }\n  return;\n}\n\n" comment comment (function_definition "void switch_to_adjacent_buffer(_Bool to_next)\n\n{\n  openfilestruct *poVar1;\n  char *msg;\n  \n  if ((openfile != openfile->next) || (inhelp)) {\n    poVar1 = openfile->next;\n    if (!to_next) {\n      poVar1 = openfile->prev;\n    }\n    openfile = poVar1;\n    if (((byte)flags[1] & 2) == 0) {\n      openfile->firstcolumn = 0;\n    }\n    prepare_for_display();\n    if (inhelp == false) {\n      currmenu = 0xdaff;\n      mention_name_and_linecount();\n      return;\n    }\n  }\n  else {\n    msg = (char *)dcgettext(0,"No more open file buffers",5);\n    statusbar(msg);\n  }\n  return;\n}" primitive_type (function_declarator "switch_to_adjacent_buffer(_Bool to_next)" identifier (parameter_list "(_Bool to_next)" ( (parameter_declaration "_Bool to_next" type_identifier identifier) ))) (compound_statement "{\n  openfilestruct *poVar1;\n  char *msg;\n  \n  if ((openfile != openfile->next) || (inhelp)) {\n    poVar1 = openfile->next;\n    if (!to_next) {\n      poVar1 = openfile->prev;\n    }\n    openfile = poVar1;\n    if (((byte)flags[1] & 2) == 0) {\n      openfile->firstcolumn = 0;\n    }\n    prepare_for_display();\n    if (inhelp == false) {\n      currmenu = 0xdaff;\n      mention_name_and_linecount();\n      return;\n    }\n  }\n  else {\n    msg = (char *)dcgettext(0,"No more open file buffers",5);\n    statusbar(msg);\n  }\n  return;\n}" { (declaration "openfilestruct *poVar1;" type_identifier (pointer_declarator "*poVar1" * identifier) ;) (declaration "char *msg;" primitive_type (pointer_declarator "*msg" * identifier) ;) (if_statement "if ((openfile != openfile->next) || (inhelp)) {\n    poVar1 = openfile->next;\n    if (!to_next) {\n      poVar1 = openfile->prev;\n    }\n    openfile = poVar1;\n    if (((byte)flags[1] & 2) == 0) {\n      openfile->firstcolumn = 0;\n    }\n    prepare_for_display();\n    if (inhelp == false) {\n      currmenu = 0xdaff;\n      mention_name_and_linecount();\n      return;\n    }\n  }\n  else {\n    msg = (char *)dcgettext(0,"No more open file buffers",5);\n    statusbar(msg);\n  }" if (parenthesized_expression "((openfile != openfile->next) || (inhelp))" ( (binary_expression "(openfile != openfile->next) || (inhelp)" (parenthesized_expression "(openfile != openfile->next)" ( (binary_expression "openfile != openfile->next" identifier != (field_expression "openfile->next" identifier -> field_identifier)) )) || (parenthesized_expression "(inhelp)" ( identifier ))) )) (compound_statement "{\n    poVar1 = openfile->next;\n    if (!to_next) {\n      poVar1 = openfile->prev;\n    }\n    openfile = poVar1;\n    if (((byte)flags[1] & 2) == 0) {\n      openfile->firstcolumn = 0;\n    }\n    prepare_for_display();\n    if (inhelp == false) {\n      currmenu = 0xdaff;\n      mention_name_and_linecount();\n      return;\n    }\n  }" { (expression_statement "poVar1 = openfile->next;" (assignment_expression "poVar1 = openfile->next" identifier = (field_expression "openfile->next" identifier -> field_identifier)) ;) (if_statement "if (!to_next) {\n      poVar1 = openfile->prev;\n    }" if (parenthesized_expression "(!to_next)" ( (unary_expression "!to_next" ! identifier) )) (compound_statement "{\n      poVar1 = openfile->prev;\n    }" { (expression_statement "poVar1 = openfile->prev;" (assignment_expression "poVar1 = openfile->prev" identifier = (field_expression "openfile->prev" identifier -> field_identifier)) ;) })) (expression_statement "openfile = poVar1;" (assignment_expression "openfile = poVar1" identifier = identifier) ;) (if_statement "if (((byte)flags[1] & 2) == 0) {\n      openfile->firstcolumn = 0;\n    }" if (parenthesized_expression "(((byte)flags[1] & 2) == 0)" ( (binary_expression "((byte)flags[1] & 2) == 0" (parenthesized_expression "((byte)flags[1] & 2)" ( (binary_expression "(byte)flags[1] & 2" (cast_expression "(byte)flags[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "flags[1]" identifier [ number_literal ])) & number_literal) )) == number_literal) )) (compound_statement "{\n      openfile->firstcolumn = 0;\n    }" { (expression_statement "openfile->firstcolumn = 0;" (assignment_expression "openfile->firstcolumn = 0" (field_expression "openfile->firstcolumn" identifier -> field_identifier) = number_literal) ;) })) (expression_statement "prepare_for_display();" (call_expression "prepare_for_display()" identifier (argument_list "()" ( ))) ;) (if_statement "if (inhelp == false) {\n      currmenu = 0xdaff;\n      mention_name_and_linecount();\n      return;\n    }" if (parenthesized_expression "(inhelp == false)" ( (binary_expression "inhelp == false" identifier == false) )) (compound_statement "{\n      currmenu = 0xdaff;\n      mention_name_and_linecount();\n      return;\n    }" { (expression_statement "currmenu = 0xdaff;" (assignment_expression "currmenu = 0xdaff" identifier = number_literal) ;) (expression_statement "mention_name_and_linecount();" (call_expression "mention_name_and_linecount()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    msg = (char *)dcgettext(0,"No more open file buffers",5);\n    statusbar(msg);\n  }" else (compound_statement "{\n    msg = (char *)dcgettext(0,"No more open file buffers",5);\n    statusbar(msg);\n  }" { (expression_statement "msg = (char *)dcgettext(0,"No more open file buffers",5);" (assignment_expression "msg = (char *)dcgettext(0,"No more open file buffers",5)" identifier = (cast_expression "(char *)dcgettext(0,"No more open file buffers",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"No more open file buffers",5)" identifier (argument_list "(0,"No more open file buffers",5)" ( number_literal , (string_literal ""No more open file buffers"" " string_content ") , number_literal ))))) ;) (expression_statement "statusbar(msg);" (call_expression "statusbar(msg)" identifier (argument_list "(msg)" ( identifier ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00019d60(char param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if ((DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0')) {\n    uVar2 = dcgettext(0,"No more open file buffers",5);\n    FUN_000386b0(uVar2);\n  }\n  else {\n    iVar1 = *(int *)(DAT_0006b640 + 0x5c);\n    if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }\n    DAT_0006b640 = iVar1;\n    if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }\n    FUN_00019ba0();\n    if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00019d60(char param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if ((DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0')) {\n    uVar2 = dcgettext(0,"No more open file buffers",5);\n    FUN_000386b0(uVar2);\n  }\n  else {\n    iVar1 = *(int *)(DAT_0006b640 + 0x5c);\n    if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }\n    DAT_0006b640 = iVar1;\n    if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }\n    FUN_00019ba0();\n    if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00019d60(char param_1)" identifier (parameter_list "(char param_1)" ( (parameter_declaration "char param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if ((DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0')) {\n    uVar2 = dcgettext(0,"No more open file buffers",5);\n    FUN_000386b0(uVar2);\n  }\n  else {\n    iVar1 = *(int *)(DAT_0006b640 + 0x5c);\n    if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }\n    DAT_0006b640 = iVar1;\n    if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }\n    FUN_00019ba0();\n    if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if ((DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0')) {\n    uVar2 = dcgettext(0,"No more open file buffers",5);\n    FUN_000386b0(uVar2);\n  }\n  else {\n    iVar1 = *(int *)(DAT_0006b640 + 0x5c);\n    if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }\n    DAT_0006b640 = iVar1;\n    if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }\n    FUN_00019ba0();\n    if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }\n  }" if (parenthesized_expression "((DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0'))" ( (binary_expression "(DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0')" (parenthesized_expression "(DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c))" ( (binary_expression "DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)" identifier == (pointer_expression "*(int *)(DAT_0006b640 + 0x5c)" * (cast_expression "(int *)(DAT_0006b640 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x5c)" ( (binary_expression "DAT_0006b640 + 0x5c" identifier + number_literal) ))))) )) && (parenthesized_expression "(DAT_0006b68c == '\0')" ( (binary_expression "DAT_0006b68c == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    uVar2 = dcgettext(0,"No more open file buffers",5);\n    FUN_000386b0(uVar2);\n  }" { (expression_statement "uVar2 = dcgettext(0,"No more open file buffers",5);" (assignment_expression "uVar2 = dcgettext(0,"No more open file buffers",5)" identifier = (call_expression "dcgettext(0,"No more open file buffers",5)" identifier (argument_list "(0,"No more open file buffers",5)" ( number_literal , (string_literal ""No more open file buffers"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_000386b0(uVar2);" (call_expression "FUN_000386b0(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) }) (else_clause "else {\n    iVar1 = *(int *)(DAT_0006b640 + 0x5c);\n    if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }\n    DAT_0006b640 = iVar1;\n    if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }\n    FUN_00019ba0();\n    if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }\n  }" else (compound_statement "{\n    iVar1 = *(int *)(DAT_0006b640 + 0x5c);\n    if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }\n    DAT_0006b640 = iVar1;\n    if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }\n    FUN_00019ba0();\n    if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }\n  }" { (expression_statement "iVar1 = *(int *)(DAT_0006b640 + 0x5c);" (assignment_expression "iVar1 = *(int *)(DAT_0006b640 + 0x5c)" identifier = (pointer_expression "*(int *)(DAT_0006b640 + 0x5c)" * (cast_expression "(int *)(DAT_0006b640 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x5c)" ( (binary_expression "DAT_0006b640 + 0x5c" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }" if (parenthesized_expression "(param_1 == '\0')" ( (binary_expression "param_1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }" { (expression_statement "iVar1 = *(int *)(DAT_0006b640 + 0x60);" (assignment_expression "iVar1 = *(int *)(DAT_0006b640 + 0x60)" identifier = (pointer_expression "*(int *)(DAT_0006b640 + 0x60)" * (cast_expression "(int *)(DAT_0006b640 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x60)" ( (binary_expression "DAT_0006b640 + 0x60" identifier + number_literal) ))))) ;) })) (expression_statement "DAT_0006b640 = iVar1;" (assignment_expression "DAT_0006b640 = iVar1" identifier = identifier) ;) (if_statement "if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }" if (parenthesized_expression "((DAT_0006b668 & 2) == 0)" ( (binary_expression "(DAT_0006b668 & 2) == 0" (parenthesized_expression "(DAT_0006b668 & 2)" ( (binary_expression "DAT_0006b668 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }" { (expression_statement "*(undefined4 *)(DAT_0006b640 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(DAT_0006b640 + 0x18) = 0" (pointer_expression "*(undefined4 *)(DAT_0006b640 + 0x18)" * (cast_expression "(undefined4 *)(DAT_0006b640 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x18)" ( (binary_expression "DAT_0006b640 + 0x18" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "FUN_00019ba0();" (call_expression "FUN_00019ba0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }" if (parenthesized_expression "(DAT_0006b68c == '\0')" ( (binary_expression "DAT_0006b68c == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }" { (expression_statement "DAT_0006b064 = 0xdaff;" (assignment_expression "DAT_0006b064 = 0xdaff" identifier = number_literal) ;) (expression_statement "FUN_00019c20();" (call_expression "FUN_00019c20()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) && (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) ))) )) (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 ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) }))) (return_statement return ;) })))
(function_definition "void FUN_00019d60(char param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if ((DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0')) {\n    uVar2 = dcgettext(0,"No more open file buffers",5);\n    FUN_000386b0(uVar2);\n  }\n  else {\n    iVar1 = *(int *)(DAT_0006b640 + 0x5c);\n    if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }\n    DAT_0006b640 = iVar1;\n    if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }\n    FUN_00019ba0();\n    if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00019d60(char param_1)" (identifier "FUN_00019d60") (parameter_list "(char param_1)" (( "(") (parameter_declaration "char param_1" (primitive_type "char") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if ((DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0')) {\n    uVar2 = dcgettext(0,"No more open file buffers",5);\n    FUN_000386b0(uVar2);\n  }\n  else {\n    iVar1 = *(int *)(DAT_0006b640 + 0x5c);\n    if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }\n    DAT_0006b640 = iVar1;\n    if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }\n    FUN_00019ba0();\n    if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if ((DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0')) {\n    uVar2 = dcgettext(0,"No more open file buffers",5);\n    FUN_000386b0(uVar2);\n  }\n  else {\n    iVar1 = *(int *)(DAT_0006b640 + 0x5c);\n    if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }\n    DAT_0006b640 = iVar1;\n    if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }\n    FUN_00019ba0();\n    if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }\n  }" (if "if") (parenthesized_expression "((DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0'))" (( "(") (binary_expression "(DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0')" (parenthesized_expression "(DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c))" (( "(") (binary_expression "DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)" (identifier "DAT_0006b640") (== "==") (pointer_expression "*(int *)(DAT_0006b640 + 0x5c)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x5c)" (( "(") (binary_expression "DAT_0006b640 + 0x5c" (identifier "DAT_0006b640") (+ "+") (number_literal "0x5c")) () ")"))))) () ")")) (&& "&&") (parenthesized_expression "(DAT_0006b68c == '\0')" (( "(") (binary_expression "DAT_0006b68c == '\0'" (identifier "DAT_0006b68c") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    uVar2 = dcgettext(0,"No more open file buffers",5);\n    FUN_000386b0(uVar2);\n  }" ({ "{") (expression_statement "uVar2 = dcgettext(0,"No more open file buffers",5);" (assignment_expression "uVar2 = dcgettext(0,"No more open file buffers",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"No more open file buffers",5)" (identifier "dcgettext") (argument_list "(0,"No more open file buffers",5)" (( "(") (number_literal "0") (, ",") (string_literal ""No more open file buffers"" (" """) (string_content "No more open file buffers") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_000386b0(uVar2);" (call_expression "FUN_000386b0(uVar2)" (identifier "FUN_000386b0") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = *(int *)(DAT_0006b640 + 0x5c);\n    if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }\n    DAT_0006b640 = iVar1;\n    if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }\n    FUN_00019ba0();\n    if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = *(int *)(DAT_0006b640 + 0x5c);\n    if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }\n    DAT_0006b640 = iVar1;\n    if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }\n    FUN_00019ba0();\n    if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(DAT_0006b640 + 0x5c);" (assignment_expression "iVar1 = *(int *)(DAT_0006b640 + 0x5c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(DAT_0006b640 + 0x5c)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x5c)" (( "(") (binary_expression "DAT_0006b640 + 0x5c" (identifier "DAT_0006b640") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (if_statement "if (param_1 == '\0') {\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }" (if "if") (parenthesized_expression "(param_1 == '\0')" (( "(") (binary_expression "param_1 == '\0'" (identifier "param_1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      iVar1 = *(int *)(DAT_0006b640 + 0x60);\n    }" ({ "{") (expression_statement "iVar1 = *(int *)(DAT_0006b640 + 0x60);" (assignment_expression "iVar1 = *(int *)(DAT_0006b640 + 0x60)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(DAT_0006b640 + 0x60)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x60)" (( "(") (binary_expression "DAT_0006b640 + 0x60" (identifier "DAT_0006b640") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (} "}"))) (expression_statement "DAT_0006b640 = iVar1;" (assignment_expression "DAT_0006b640 = iVar1" (identifier "DAT_0006b640") (= "=") (identifier "iVar1")) (; ";")) (if_statement "if ((DAT_0006b668 & 2) == 0) {\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }" (if "if") (parenthesized_expression "((DAT_0006b668 & 2) == 0)" (( "(") (binary_expression "(DAT_0006b668 & 2) == 0" (parenthesized_expression "(DAT_0006b668 & 2)" (( "(") (binary_expression "DAT_0006b668 & 2" (identifier "DAT_0006b668") (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;\n    }" ({ "{") (expression_statement "*(undefined4 *)(DAT_0006b640 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(DAT_0006b640 + 0x18) = 0" (pointer_expression "*(undefined4 *)(DAT_0006b640 + 0x18)" (* "*") (cast_expression "(undefined4 *)(DAT_0006b640 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x18)" (( "(") (binary_expression "DAT_0006b640 + 0x18" (identifier "DAT_0006b640") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "FUN_00019ba0();" (call_expression "FUN_00019ba0()" (identifier "FUN_00019ba0") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (DAT_0006b68c == '\0') {\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }" (if "if") (parenthesized_expression "(DAT_0006b68c == '\0')" (( "(") (binary_expression "DAT_0006b68c == '\0'" (identifier "DAT_0006b68c") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      DAT_0006b064 = 0xdaff;\n      FUN_00019c20();\n      return;\n    }" ({ "{") (expression_statement "DAT_0006b064 = 0xdaff;" (assignment_expression "DAT_0006b064 = 0xdaff" (identifier "DAT_0006b064") (= "=") (number_literal "0xdaff")) (; ";")) (expression_statement "FUN_00019c20();" (call_expression "FUN_00019c20()" (identifier "FUN_00019c20") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 to_next)

{
  type_2 *poVar1;
  char *msg;
  
  if ((var_1 != var_1->next) || (var_3)) {
    poVar1 = var_1->next;
    if (!to_next) {
      poVar1 = var_1->prev;
    }
    var_1 = poVar1;
    if (((type_3)flags[1] & 2) == 0) {
      var_1->firstcolumn = 0;
    }
    var_2();
    if (var_3 == false) {
      currmenu = 0xdaff;
      var_4();
      return;
    }
  }
  else {
    msg = (char *)var_5(0,"No more open file buffers",5);
    var_6(msg);
  }
  return;
}


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

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

void MASKED(char param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  if ((DAT_0006b640 == *(int *)(DAT_0006b640 + 0x5c)) && (DAT_0006b68c == '\0')) {
    uVar2 = dcgettext(0,"No more open file buffers",5);
    FUN_000386b0(uVar2);
  }
  else {
    iVar1 = *(int *)(DAT_0006b640 + 0x5c);
    if (param_1 == '\0') {
      iVar1 = *(int *)(DAT_0006b640 + 0x60);
    }
    DAT_0006b640 = iVar1;
    if ((DAT_0006b668 & 2) == 0) {
      *(undefined4 *)(DAT_0006b640 + 0x18) = 0;
    }
    FUN_00019ba0();
    if (DAT_0006b68c == '\0') {
      DAT_0006b064 = 0xdaff;
      FUN_00019c20();
      return;
    }
  }
  return;
}

