
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void switch_to_prev_buffer(void)

{
  _Bool _Var1;
  openfilestruct *poVar2;
  char *msg;
  
  _Var1 = inhelp;
  if (openfile == openfile->next) {
    if (!inhelp) {
      msg = (char *)dcgettext(0,"No more open file buffers",5);
      statusbar(msg);
      return;
    }
    poVar2 = openfile->prev;
    openfile = poVar2;
    if (((byte)flags[1] & 2) != 0) goto LAB_0001b738;
LAB_0001b79d:
    openfile = poVar2;
    poVar2->firstcolumn = 0;
  }
  else {
    poVar2 = openfile->prev;
    openfile = poVar2;
    if (((byte)flags[1] & 2) == 0) goto LAB_0001b79d;
  }
  if (!_Var1) {
    titlebar((char *)0x0);
    poVar2 = openfile;
  }
LAB_0001b738:
  if (((poVar2->syntax != (syntaxtype *)0x0) && (0 < poVar2->syntax->nmultis)) &&
     (poVar2->fileage->multidata == (short *)0x0)) {
    precalc_multicolorinfo();
  }
  have_palette = false;
  refresh_needed = true;
  if (inhelp != false) {
    have_palette = false;
    refresh_needed = true;
    return;
  }
  currmenu = 0xdaff;
  mention_name_and_linecount();
  return;
}



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

void FUN_0001b6f0(void)

{
  char cVar1;
  int iVar2;
  undefined4 uVar3;
  
  cVar1 = DAT_0007b68c;
  if (DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c)) {
    if (DAT_0007b68c == '\0') {
      uVar3 = dcgettext(0,"No more open file buffers",5);
      FUN_00041580(uVar3);
      return;
    }
    iVar2 = *(int *)(DAT_0007b640 + 0x60);
    DAT_0007b640 = iVar2;
    if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;
LAB_0001b79d:
    DAT_0007b640 = iVar2;
    *(undefined4 *)(iVar2 + 0x18) = 0;
  }
  else {
    iVar2 = *(int *)(DAT_0007b640 + 0x60);
    DAT_0007b640 = iVar2;
    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;
  }
  if (cVar1 == '\0') {
    FUN_00040500(0);
    iVar2 = DAT_0007b640;
  }
LAB_0001b738:
  if (((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&
     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)) {
    FUN_00019870();
  }
  DAT_0007b605 = 0;
  DAT_0007b604 = 1;
  if (DAT_0007b68c != '\0') {
    DAT_0007b605 = 0;
    DAT_0007b604 = 1;
    return;
  }
  DAT_0007b064 = 0xdaff;
  FUN_0001b490();
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015680
ADD EBX,0x5f4d8
LEA ESI,[EBX + 0xa70]
LEA EDI,[EBX + 0xabc]
MOV EAX,dword ptr [ESI]
MOVZX EDX,byte ptr [EDI]
CMP EAX,dword ptr [EAX + 0x5c]
JZ 0x0001b788
MOV EAX,dword ptr [EAX + 0x60]
LEA ECX,[EBX + 0xa94]
MOV dword ptr [ESI],EAX
TEST byte ptr [ECX + 0x4],0x2
JZ 0x0001b79d
TEST DL,DL
JNZ 0x0001b738
SUB ESP,0xc
PUSH 0x0
CALL 0x00040500
MOV EAX,dword ptr [ESI]
ADD ESP,0x10
MOV EDX,dword ptr [EAX + 0x54]
TEST EDX,EDX
JZ 0x0001b750
MOV EDX,dword ptr [EDX + 0x1c]
TEST EDX,EDX
JLE 0x0001b750
MOV EAX,dword ptr [EAX + 0x4]
MOV EAX,dword ptr [EAX + 0x10]
TEST EAX,EAX
JZ 0x0001b7b0
LEA EAX,[EBX + 0xa35]
CMP byte ptr [EDI],0x0
MOV byte ptr [EAX],0x0
LEA EAX,[EBX + 0xa34]
MOV byte ptr [EAX],0x1
JZ 0x0001b770
POP EBX
POP ESI
POP EDI
RET
LEA EAX,[EBX + 0x494]
MOV dword ptr [EAX],0xdaff
POP EBX
POP ESI
POP EDI
JMP 0x0001b490
TEST DL,DL
JZ 0x0001b7c0
MOV EAX,dword ptr [EAX + 0x60]
LEA ECX,[EBX + 0xa94]
MOV dword ptr [ESI],EAX
TEST byte ptr [ECX + 0x4],0x2
JNZ 0x0001b738
MOV dword ptr [EAX + 0x18],0x0
JMP 0x0001b725
CALL 0x00019870
JMP 0x0001b750
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe0965]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000132e0
MOV dword ptr [ESP],EAX
CALL 0x00041580
ADD ESP,0x10
JMP 0x0001b767
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001b6f0(void)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  cVar1 = DAT_0007b68c;\n  if (DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c)) {\n    if (DAT_0007b68c == '\0') {\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    DAT_0007b640 = iVar2;\n    *(undefined4 *)(iVar2 + 0x18) = 0;\n  }\n  else {\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;\n  }\n  if (cVar1 == '\0') {\n    FUN_00040500(0);\n    iVar2 = DAT_0007b640;\n  }\nLAB_0001b738:\n  if (((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)) {\n    FUN_00019870();\n  }\n  DAT_0007b605 = 0;\n  DAT_0007b604 = 1;\n  if (DAT_0007b68c != '\0') {\n    DAT_0007b605 = 0;\n    DAT_0007b604 = 1;\n    return;\n  }\n  DAT_0007b064 = 0xdaff;\n  FUN_0001b490();\n  return;\n}\n\n" comment (function_definition "void FUN_0001b6f0(void)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  cVar1 = DAT_0007b68c;\n  if (DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c)) {\n    if (DAT_0007b68c == '\0') {\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    DAT_0007b640 = iVar2;\n    *(undefined4 *)(iVar2 + 0x18) = 0;\n  }\n  else {\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;\n  }\n  if (cVar1 == '\0') {\n    FUN_00040500(0);\n    iVar2 = DAT_0007b640;\n  }\nLAB_0001b738:\n  if (((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)) {\n    FUN_00019870();\n  }\n  DAT_0007b605 = 0;\n  DAT_0007b604 = 1;\n  if (DAT_0007b68c != '\0') {\n    DAT_0007b605 = 0;\n    DAT_0007b604 = 1;\n    return;\n  }\n  DAT_0007b064 = 0xdaff;\n  FUN_0001b490();\n  return;\n}" primitive_type (function_declarator "FUN_0001b6f0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  cVar1 = DAT_0007b68c;\n  if (DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c)) {\n    if (DAT_0007b68c == '\0') {\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    DAT_0007b640 = iVar2;\n    *(undefined4 *)(iVar2 + 0x18) = 0;\n  }\n  else {\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;\n  }\n  if (cVar1 == '\0') {\n    FUN_00040500(0);\n    iVar2 = DAT_0007b640;\n  }\nLAB_0001b738:\n  if (((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)) {\n    FUN_00019870();\n  }\n  DAT_0007b605 = 0;\n  DAT_0007b604 = 1;\n  if (DAT_0007b68c != '\0') {\n    DAT_0007b605 = 0;\n    DAT_0007b604 = 1;\n    return;\n  }\n  DAT_0007b064 = 0xdaff;\n  FUN_0001b490();\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "cVar1 = DAT_0007b68c;" (assignment_expression "cVar1 = DAT_0007b68c" identifier = identifier) ;) (if_statement "if (DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c)) {\n    if (DAT_0007b68c == '\0') {\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    DAT_0007b640 = iVar2;\n    *(undefined4 *)(iVar2 + 0x18) = 0;\n  }\n  else {\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;\n  }" if (parenthesized_expression "(DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c))" ( (binary_expression "DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c)" identifier == (pointer_expression "*(int *)(DAT_0007b640 + 0x5c)" * (cast_expression "(int *)(DAT_0007b640 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x5c)" ( (binary_expression "DAT_0007b640 + 0x5c" identifier + number_literal) ))))) )) (compound_statement "{\n    if (DAT_0007b68c == '\0') {\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    DAT_0007b640 = iVar2;\n    *(undefined4 *)(iVar2 + 0x18) = 0;\n  }" { (if_statement "if (DAT_0007b68c == '\0') {\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }" if (parenthesized_expression "(DAT_0007b68c == '\0')" ( (binary_expression "DAT_0007b68c == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }" { (expression_statement "uVar3 = dcgettext(0,"No more open file buffers",5);" (assignment_expression "uVar3 = 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_00041580(uVar3);" (call_expression "FUN_00041580(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = *(int *)(DAT_0007b640 + 0x60);" (assignment_expression "iVar2 = *(int *)(DAT_0007b640 + 0x60)" identifier = (pointer_expression "*(int *)(DAT_0007b640 + 0x60)" * (cast_expression "(int *)(DAT_0007b640 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x60)" ( (binary_expression "DAT_0007b640 + 0x60" identifier + number_literal) ))))) ;) (expression_statement "DAT_0007b640 = iVar2;" (assignment_expression "DAT_0007b640 = iVar2" identifier = identifier) ;) (if_statement "if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;" if (parenthesized_expression "((DAT_0007b668 & 2) != 0)" ( (binary_expression "(DAT_0007b668 & 2) != 0" (parenthesized_expression "(DAT_0007b668 & 2)" ( (binary_expression "DAT_0007b668 & 2" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_0001b738;" goto statement_identifier ;)) (labeled_statement "LAB_0001b79d:\n    DAT_0007b640 = iVar2;" statement_identifier : (expression_statement "DAT_0007b640 = iVar2;" (assignment_expression "DAT_0007b640 = iVar2" identifier = identifier) ;)) (expression_statement "*(undefined4 *)(iVar2 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x18) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x18)" * (cast_expression "(undefined4 *)(iVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;\n  }" else (compound_statement "{\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;\n  }" { (expression_statement "iVar2 = *(int *)(DAT_0007b640 + 0x60);" (assignment_expression "iVar2 = *(int *)(DAT_0007b640 + 0x60)" identifier = (pointer_expression "*(int *)(DAT_0007b640 + 0x60)" * (cast_expression "(int *)(DAT_0007b640 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x60)" ( (binary_expression "DAT_0007b640 + 0x60" identifier + number_literal) ))))) ;) (expression_statement "DAT_0007b640 = iVar2;" (assignment_expression "DAT_0007b640 = iVar2" identifier = identifier) ;) (if_statement "if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;" if (parenthesized_expression "((DAT_0007b668 & 2) == 0)" ( (binary_expression "(DAT_0007b668 & 2) == 0" (parenthesized_expression "(DAT_0007b668 & 2)" ( (binary_expression "DAT_0007b668 & 2" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_0001b79d;" goto statement_identifier ;)) }))) (if_statement "if (cVar1 == '\0') {\n    FUN_00040500(0);\n    iVar2 = DAT_0007b640;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00040500(0);\n    iVar2 = DAT_0007b640;\n  }" { (expression_statement "FUN_00040500(0);" (call_expression "FUN_00040500(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar2 = DAT_0007b640;" (assignment_expression "iVar2 = DAT_0007b640" identifier = identifier) ;) })) (labeled_statement "LAB_0001b738:\n  if (((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)) {\n    FUN_00019870();\n  }" statement_identifier : (if_statement "if (((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)) {\n    FUN_00019870();\n  }" if (parenthesized_expression "(((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0))" ( (binary_expression "((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)" (parenthesized_expression "((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c)))" ( (binary_expression "(*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))" (parenthesized_expression "(*(int *)(iVar2 + 0x54) != 0)" ( (binary_expression "*(int *)(iVar2 + 0x54) != 0" (pointer_expression "*(int *)(iVar2 + 0x54)" * (cast_expression "(int *)(iVar2 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x54)" ( (binary_expression "iVar2 + 0x54" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))" ( (binary_expression "0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c)" number_literal < (pointer_expression "*(int *)(*(int *)(iVar2 + 0x54) + 0x1c)" * (cast_expression "(int *)(*(int *)(iVar2 + 0x54) + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar2 + 0x54) + 0x1c)" ( (binary_expression "*(int *)(iVar2 + 0x54) + 0x1c" (pointer_expression "*(int *)(iVar2 + 0x54)" * (cast_expression "(int *)(iVar2 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x54)" ( (binary_expression "iVar2 + 0x54" identifier + number_literal) )))) + number_literal) ))))) ))) )) && (parenthesized_expression "(*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)" ( (binary_expression "*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0" (pointer_expression "*(int *)(*(int *)(iVar2 + 4) + 0x10)" * (cast_expression "(int *)(*(int *)(iVar2 + 4) + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar2 + 4) + 0x10)" ( (binary_expression "*(int *)(iVar2 + 4) + 0x10" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    FUN_00019870();\n  }" { (expression_statement "FUN_00019870();" (call_expression "FUN_00019870()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "DAT_0007b605 = 0;" (assignment_expression "DAT_0007b605 = 0" identifier = number_literal) ;) (expression_statement "DAT_0007b604 = 1;" (assignment_expression "DAT_0007b604 = 1" identifier = number_literal) ;) (if_statement "if (DAT_0007b68c != '\0') {\n    DAT_0007b605 = 0;\n    DAT_0007b604 = 1;\n    return;\n  }" if (parenthesized_expression "(DAT_0007b68c != '\0')" ( (binary_expression "DAT_0007b68c != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    DAT_0007b605 = 0;\n    DAT_0007b604 = 1;\n    return;\n  }" { (expression_statement "DAT_0007b605 = 0;" (assignment_expression "DAT_0007b605 = 0" identifier = number_literal) ;) (expression_statement "DAT_0007b604 = 1;" (assignment_expression "DAT_0007b604 = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "DAT_0007b064 = 0xdaff;" (assignment_expression "DAT_0007b064 = 0xdaff" identifier = number_literal) ;) (expression_statement "FUN_0001b490();" (call_expression "FUN_0001b490()" identifier (argument_list "()" ( ))) ;) (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 -- yet parameter storage is locked */\n\nvoid switch_to_prev_buffer(void)\n\n{\n  _Bool _Var1;\n  openfilestruct *poVar2;\n  char *msg;\n  \n  _Var1 = inhelp;\n  if (openfile == openfile->next) {\n    if (!inhelp) {\n      msg = (char *)dcgettext(0,"No more open file buffers",5);\n      statusbar(msg);\n      return;\n    }\n    poVar2 = openfile->prev;\n    openfile = poVar2;\n    if (((byte)flags[1] & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    openfile = poVar2;\n    poVar2->firstcolumn = 0;\n  }\n  else {\n    poVar2 = openfile->prev;\n    openfile = poVar2;\n    if (((byte)flags[1] & 2) == 0) goto LAB_0001b79d;\n  }\n  if (!_Var1) {\n    titlebar((char *)0x0);\n    poVar2 = openfile;\n  }\nLAB_0001b738:\n  if (((poVar2->syntax != (syntaxtype *)0x0) && (0 < poVar2->syntax->nmultis)) &&\n     (poVar2->fileage->multidata == (short *)0x0)) {\n    precalc_multicolorinfo();\n  }\n  have_palette = false;\n  refresh_needed = true;\n  if (inhelp != false) {\n    have_palette = false;\n    refresh_needed = true;\n    return;\n  }\n  currmenu = 0xdaff;\n  mention_name_and_linecount();\n  return;\n}\n\n" comment comment (function_definition "void switch_to_prev_buffer(void)\n\n{\n  _Bool _Var1;\n  openfilestruct *poVar2;\n  char *msg;\n  \n  _Var1 = inhelp;\n  if (openfile == openfile->next) {\n    if (!inhelp) {\n      msg = (char *)dcgettext(0,"No more open file buffers",5);\n      statusbar(msg);\n      return;\n    }\n    poVar2 = openfile->prev;\n    openfile = poVar2;\n    if (((byte)flags[1] & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    openfile = poVar2;\n    poVar2->firstcolumn = 0;\n  }\n  else {\n    poVar2 = openfile->prev;\n    openfile = poVar2;\n    if (((byte)flags[1] & 2) == 0) goto LAB_0001b79d;\n  }\n  if (!_Var1) {\n    titlebar((char *)0x0);\n    poVar2 = openfile;\n  }\nLAB_0001b738:\n  if (((poVar2->syntax != (syntaxtype *)0x0) && (0 < poVar2->syntax->nmultis)) &&\n     (poVar2->fileage->multidata == (short *)0x0)) {\n    precalc_multicolorinfo();\n  }\n  have_palette = false;\n  refresh_needed = true;\n  if (inhelp != false) {\n    have_palette = false;\n    refresh_needed = true;\n    return;\n  }\n  currmenu = 0xdaff;\n  mention_name_and_linecount();\n  return;\n}" primitive_type (function_declarator "switch_to_prev_buffer(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  _Bool _Var1;\n  openfilestruct *poVar2;\n  char *msg;\n  \n  _Var1 = inhelp;\n  if (openfile == openfile->next) {\n    if (!inhelp) {\n      msg = (char *)dcgettext(0,"No more open file buffers",5);\n      statusbar(msg);\n      return;\n    }\n    poVar2 = openfile->prev;\n    openfile = poVar2;\n    if (((byte)flags[1] & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    openfile = poVar2;\n    poVar2->firstcolumn = 0;\n  }\n  else {\n    poVar2 = openfile->prev;\n    openfile = poVar2;\n    if (((byte)flags[1] & 2) == 0) goto LAB_0001b79d;\n  }\n  if (!_Var1) {\n    titlebar((char *)0x0);\n    poVar2 = openfile;\n  }\nLAB_0001b738:\n  if (((poVar2->syntax != (syntaxtype *)0x0) && (0 < poVar2->syntax->nmultis)) &&\n     (poVar2->fileage->multidata == (short *)0x0)) {\n    precalc_multicolorinfo();\n  }\n  have_palette = false;\n  refresh_needed = true;\n  if (inhelp != false) {\n    have_palette = false;\n    refresh_needed = true;\n    return;\n  }\n  currmenu = 0xdaff;\n  mention_name_and_linecount();\n  return;\n}" { (declaration "_Bool _Var1;" type_identifier identifier ;) (declaration "openfilestruct *poVar2;" type_identifier (pointer_declarator "*poVar2" * identifier) ;) (declaration "char *msg;" primitive_type (pointer_declarator "*msg" * identifier) ;) (expression_statement "_Var1 = inhelp;" (assignment_expression "_Var1 = inhelp" identifier = identifier) ;) (if_statement "if (openfile == openfile->next) {\n    if (!inhelp) {\n      msg = (char *)dcgettext(0,"No more open file buffers",5);\n      statusbar(msg);\n      return;\n    }\n    poVar2 = openfile->prev;\n    openfile = poVar2;\n    if (((byte)flags[1] & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    openfile = poVar2;\n    poVar2->firstcolumn = 0;\n  }\n  else {\n    poVar2 = openfile->prev;\n    openfile = poVar2;\n    if (((byte)flags[1] & 2) == 0) goto LAB_0001b79d;\n  }" if (parenthesized_expression "(openfile == openfile->next)" ( (binary_expression "openfile == openfile->next" identifier == (field_expression "openfile->next" identifier -> field_identifier)) )) (compound_statement "{\n    if (!inhelp) {\n      msg = (char *)dcgettext(0,"No more open file buffers",5);\n      statusbar(msg);\n      return;\n    }\n    poVar2 = openfile->prev;\n    openfile = poVar2;\n    if (((byte)flags[1] & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    openfile = poVar2;\n    poVar2->firstcolumn = 0;\n  }" { (if_statement "if (!inhelp) {\n      msg = (char *)dcgettext(0,"No more open file buffers",5);\n      statusbar(msg);\n      return;\n    }" if (parenthesized_expression "(!inhelp)" ( (unary_expression "!inhelp" ! identifier) )) (compound_statement "{\n      msg = (char *)dcgettext(0,"No more open file buffers",5);\n      statusbar(msg);\n      return;\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 ;) })) (expression_statement "poVar2 = openfile->prev;" (assignment_expression "poVar2 = openfile->prev" identifier = (field_expression "openfile->prev" identifier -> field_identifier)) ;) (expression_statement "openfile = poVar2;" (assignment_expression "openfile = poVar2" identifier = identifier) ;) (if_statement "if (((byte)flags[1] & 2) != 0) goto LAB_0001b738;" 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) )) (goto_statement "goto LAB_0001b738;" goto statement_identifier ;)) (labeled_statement "LAB_0001b79d:\n    openfile = poVar2;" statement_identifier : (expression_statement "openfile = poVar2;" (assignment_expression "openfile = poVar2" identifier = identifier) ;)) (expression_statement "poVar2->firstcolumn = 0;" (assignment_expression "poVar2->firstcolumn = 0" (field_expression "poVar2->firstcolumn" identifier -> field_identifier) = number_literal) ;) }) (else_clause "else {\n    poVar2 = openfile->prev;\n    openfile = poVar2;\n    if (((byte)flags[1] & 2) == 0) goto LAB_0001b79d;\n  }" else (compound_statement "{\n    poVar2 = openfile->prev;\n    openfile = poVar2;\n    if (((byte)flags[1] & 2) == 0) goto LAB_0001b79d;\n  }" { (expression_statement "poVar2 = openfile->prev;" (assignment_expression "poVar2 = openfile->prev" identifier = (field_expression "openfile->prev" identifier -> field_identifier)) ;) (expression_statement "openfile = poVar2;" (assignment_expression "openfile = poVar2" identifier = identifier) ;) (if_statement "if (((byte)flags[1] & 2) == 0) goto LAB_0001b79d;" 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) )) (goto_statement "goto LAB_0001b79d;" goto statement_identifier ;)) }))) (if_statement "if (!_Var1) {\n    titlebar((char *)0x0);\n    poVar2 = openfile;\n  }" if (parenthesized_expression "(!_Var1)" ( (unary_expression "!_Var1" ! identifier) )) (compound_statement "{\n    titlebar((char *)0x0);\n    poVar2 = openfile;\n  }" { (expression_statement "titlebar((char *)0x0);" (call_expression "titlebar((char *)0x0)" identifier (argument_list "((char *)0x0)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "poVar2 = openfile;" (assignment_expression "poVar2 = openfile" identifier = identifier) ;) })) (labeled_statement "LAB_0001b738:\n  if (((poVar2->syntax != (syntaxtype *)0x0) && (0 < poVar2->syntax->nmultis)) &&\n     (poVar2->fileage->multidata == (short *)0x0)) {\n    precalc_multicolorinfo();\n  }" statement_identifier : (if_statement "if (((poVar2->syntax != (syntaxtype *)0x0) && (0 < poVar2->syntax->nmultis)) &&\n     (poVar2->fileage->multidata == (short *)0x0)) {\n    precalc_multicolorinfo();\n  }" if (parenthesized_expression "(((poVar2->syntax != (syntaxtype *)0x0) && (0 < poVar2->syntax->nmultis)) &&\n     (poVar2->fileage->multidata == (short *)0x0))" ( (binary_expression "((poVar2->syntax != (syntaxtype *)0x0) && (0 < poVar2->syntax->nmultis)) &&\n     (poVar2->fileage->multidata == (short *)0x0)" (parenthesized_expression "((poVar2->syntax != (syntaxtype *)0x0) && (0 < poVar2->syntax->nmultis))" ( (binary_expression "(poVar2->syntax != (syntaxtype *)0x0) && (0 < poVar2->syntax->nmultis)" (parenthesized_expression "(poVar2->syntax != (syntaxtype *)0x0)" ( (binary_expression "poVar2->syntax != (syntaxtype *)0x0" (field_expression "poVar2->syntax" identifier -> field_identifier) != (cast_expression "(syntaxtype *)0x0" ( (type_descriptor "syntaxtype *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(0 < poVar2->syntax->nmultis)" ( (binary_expression "0 < poVar2->syntax->nmultis" number_literal < (field_expression "poVar2->syntax->nmultis" (field_expression "poVar2->syntax" identifier -> field_identifier) -> field_identifier)) ))) )) && (parenthesized_expression "(poVar2->fileage->multidata == (short *)0x0)" ( (binary_expression "poVar2->fileage->multidata == (short *)0x0" (field_expression "poVar2->fileage->multidata" (field_expression "poVar2->fileage" identifier -> field_identifier) -> field_identifier) == (cast_expression "(short *)0x0" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    precalc_multicolorinfo();\n  }" { (expression_statement "precalc_multicolorinfo();" (call_expression "precalc_multicolorinfo()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "have_palette = false;" (assignment_expression "have_palette = false" identifier = false) ;) (expression_statement "refresh_needed = true;" (assignment_expression "refresh_needed = true" identifier = true) ;) (if_statement "if (inhelp != false) {\n    have_palette = false;\n    refresh_needed = true;\n    return;\n  }" if (parenthesized_expression "(inhelp != false)" ( (binary_expression "inhelp != false" identifier != false) )) (compound_statement "{\n    have_palette = false;\n    refresh_needed = true;\n    return;\n  }" { (expression_statement "have_palette = false;" (assignment_expression "have_palette = false" identifier = false) ;) (expression_statement "refresh_needed = true;" (assignment_expression "refresh_needed = true" identifier = true) ;) (return_statement "return;" return ;) })) (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 ;) })))
(translation_unit "void FUN_0001b6f0(void)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  cVar1 = DAT_0007b68c;\n  if (DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c)) {\n    if (DAT_0007b68c == '\0') {\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    DAT_0007b640 = iVar2;\n    *(undefined4 *)(iVar2 + 0x18) = 0;\n  }\n  else {\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;\n  }\n  if (cVar1 == '\0') {\n    FUN_00040500(0);\n    iVar2 = DAT_0007b640;\n  }\nLAB_0001b738:\n  if (((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)) {\n    FUN_00019870();\n  }\n  DAT_0007b605 = 0;\n  DAT_0007b604 = 1;\n  if (DAT_0007b68c != '\0') {\n    DAT_0007b605 = 0;\n    DAT_0007b604 = 1;\n    return;\n  }\n  DAT_0007b064 = 0xdaff;\n  FUN_0001b490();\n  return;\n}\n\n" (function_definition "void FUN_0001b6f0(void)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  cVar1 = DAT_0007b68c;\n  if (DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c)) {\n    if (DAT_0007b68c == '\0') {\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    DAT_0007b640 = iVar2;\n    *(undefined4 *)(iVar2 + 0x18) = 0;\n  }\n  else {\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;\n  }\n  if (cVar1 == '\0') {\n    FUN_00040500(0);\n    iVar2 = DAT_0007b640;\n  }\nLAB_0001b738:\n  if (((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)) {\n    FUN_00019870();\n  }\n  DAT_0007b605 = 0;\n  DAT_0007b604 = 1;\n  if (DAT_0007b68c != '\0') {\n    DAT_0007b605 = 0;\n    DAT_0007b604 = 1;\n    return;\n  }\n  DAT_0007b064 = 0xdaff;\n  FUN_0001b490();\n  return;\n}" primitive_type (function_declarator "FUN_0001b6f0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  cVar1 = DAT_0007b68c;\n  if (DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c)) {\n    if (DAT_0007b68c == '\0') {\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    DAT_0007b640 = iVar2;\n    *(undefined4 *)(iVar2 + 0x18) = 0;\n  }\n  else {\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;\n  }\n  if (cVar1 == '\0') {\n    FUN_00040500(0);\n    iVar2 = DAT_0007b640;\n  }\nLAB_0001b738:\n  if (((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)) {\n    FUN_00019870();\n  }\n  DAT_0007b605 = 0;\n  DAT_0007b604 = 1;\n  if (DAT_0007b68c != '\0') {\n    DAT_0007b605 = 0;\n    DAT_0007b604 = 1;\n    return;\n  }\n  DAT_0007b064 = 0xdaff;\n  FUN_0001b490();\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "cVar1 = DAT_0007b68c;" (assignment_expression "cVar1 = DAT_0007b68c" identifier = identifier) ;) (if_statement "if (DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c)) {\n    if (DAT_0007b68c == '\0') {\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    DAT_0007b640 = iVar2;\n    *(undefined4 *)(iVar2 + 0x18) = 0;\n  }\n  else {\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;\n  }" if (parenthesized_expression "(DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c))" ( (binary_expression "DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c)" identifier == (pointer_expression "*(int *)(DAT_0007b640 + 0x5c)" * (cast_expression "(int *)(DAT_0007b640 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x5c)" ( (binary_expression "DAT_0007b640 + 0x5c" identifier + number_literal) ))))) )) (compound_statement "{\n    if (DAT_0007b68c == '\0') {\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    DAT_0007b640 = iVar2;\n    *(undefined4 *)(iVar2 + 0x18) = 0;\n  }" { (if_statement "if (DAT_0007b68c == '\0') {\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }" if (parenthesized_expression "(DAT_0007b68c == '\0')" ( (binary_expression "DAT_0007b68c == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }" { (expression_statement "uVar3 = dcgettext(0,"No more open file buffers",5);" (assignment_expression "uVar3 = 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_00041580(uVar3);" (call_expression "FUN_00041580(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = *(int *)(DAT_0007b640 + 0x60);" (assignment_expression "iVar2 = *(int *)(DAT_0007b640 + 0x60)" identifier = (pointer_expression "*(int *)(DAT_0007b640 + 0x60)" * (cast_expression "(int *)(DAT_0007b640 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x60)" ( (binary_expression "DAT_0007b640 + 0x60" identifier + number_literal) ))))) ;) (expression_statement "DAT_0007b640 = iVar2;" (assignment_expression "DAT_0007b640 = iVar2" identifier = identifier) ;) (if_statement "if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;" if (parenthesized_expression "((DAT_0007b668 & 2) != 0)" ( (binary_expression "(DAT_0007b668 & 2) != 0" (parenthesized_expression "(DAT_0007b668 & 2)" ( (binary_expression "DAT_0007b668 & 2" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_0001b738;" goto statement_identifier ;)) (labeled_statement "LAB_0001b79d:\n    DAT_0007b640 = iVar2;" statement_identifier : (expression_statement "DAT_0007b640 = iVar2;" (assignment_expression "DAT_0007b640 = iVar2" identifier = identifier) ;)) (expression_statement "*(undefined4 *)(iVar2 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x18) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x18)" * (cast_expression "(undefined4 *)(iVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;\n  }" else (compound_statement "{\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;\n  }" { (expression_statement "iVar2 = *(int *)(DAT_0007b640 + 0x60);" (assignment_expression "iVar2 = *(int *)(DAT_0007b640 + 0x60)" identifier = (pointer_expression "*(int *)(DAT_0007b640 + 0x60)" * (cast_expression "(int *)(DAT_0007b640 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x60)" ( (binary_expression "DAT_0007b640 + 0x60" identifier + number_literal) ))))) ;) (expression_statement "DAT_0007b640 = iVar2;" (assignment_expression "DAT_0007b640 = iVar2" identifier = identifier) ;) (if_statement "if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;" if (parenthesized_expression "((DAT_0007b668 & 2) == 0)" ( (binary_expression "(DAT_0007b668 & 2) == 0" (parenthesized_expression "(DAT_0007b668 & 2)" ( (binary_expression "DAT_0007b668 & 2" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_0001b79d;" goto statement_identifier ;)) }))) (if_statement "if (cVar1 == '\0') {\n    FUN_00040500(0);\n    iVar2 = DAT_0007b640;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00040500(0);\n    iVar2 = DAT_0007b640;\n  }" { (expression_statement "FUN_00040500(0);" (call_expression "FUN_00040500(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar2 = DAT_0007b640;" (assignment_expression "iVar2 = DAT_0007b640" identifier = identifier) ;) })) (labeled_statement "LAB_0001b738:\n  if (((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)) {\n    FUN_00019870();\n  }" statement_identifier : (if_statement "if (((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)) {\n    FUN_00019870();\n  }" if (parenthesized_expression "(((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0))" ( (binary_expression "((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)" (parenthesized_expression "((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c)))" ( (binary_expression "(*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))" (parenthesized_expression "(*(int *)(iVar2 + 0x54) != 0)" ( (binary_expression "*(int *)(iVar2 + 0x54) != 0" (pointer_expression "*(int *)(iVar2 + 0x54)" * (cast_expression "(int *)(iVar2 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x54)" ( (binary_expression "iVar2 + 0x54" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))" ( (binary_expression "0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c)" number_literal < (pointer_expression "*(int *)(*(int *)(iVar2 + 0x54) + 0x1c)" * (cast_expression "(int *)(*(int *)(iVar2 + 0x54) + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar2 + 0x54) + 0x1c)" ( (binary_expression "*(int *)(iVar2 + 0x54) + 0x1c" (pointer_expression "*(int *)(iVar2 + 0x54)" * (cast_expression "(int *)(iVar2 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x54)" ( (binary_expression "iVar2 + 0x54" identifier + number_literal) )))) + number_literal) ))))) ))) )) && (parenthesized_expression "(*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)" ( (binary_expression "*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0" (pointer_expression "*(int *)(*(int *)(iVar2 + 4) + 0x10)" * (cast_expression "(int *)(*(int *)(iVar2 + 4) + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar2 + 4) + 0x10)" ( (binary_expression "*(int *)(iVar2 + 4) + 0x10" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    FUN_00019870();\n  }" { (expression_statement "FUN_00019870();" (call_expression "FUN_00019870()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "DAT_0007b605 = 0;" (assignment_expression "DAT_0007b605 = 0" identifier = number_literal) ;) (expression_statement "DAT_0007b604 = 1;" (assignment_expression "DAT_0007b604 = 1" identifier = number_literal) ;) (if_statement "if (DAT_0007b68c != '\0') {\n    DAT_0007b605 = 0;\n    DAT_0007b604 = 1;\n    return;\n  }" if (parenthesized_expression "(DAT_0007b68c != '\0')" ( (binary_expression "DAT_0007b68c != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    DAT_0007b605 = 0;\n    DAT_0007b604 = 1;\n    return;\n  }" { (expression_statement "DAT_0007b605 = 0;" (assignment_expression "DAT_0007b605 = 0" identifier = number_literal) ;) (expression_statement "DAT_0007b604 = 1;" (assignment_expression "DAT_0007b604 = 1" identifier = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "DAT_0007b064 = 0xdaff;" (assignment_expression "DAT_0007b064 = 0xdaff" identifier = number_literal) ;) (expression_statement "FUN_0001b490();" (call_expression "FUN_0001b490()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (if_statement if (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 ))) ;) (return_statement return ;) })) (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) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (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) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (goto_statement goto statement_identifier ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) == LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0001b6f0(void)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  cVar1 = DAT_0007b68c;\n  if (DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c)) {\n    if (DAT_0007b68c == '\0') {\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    DAT_0007b640 = iVar2;\n    *(undefined4 *)(iVar2 + 0x18) = 0;\n  }\n  else {\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;\n  }\n  if (cVar1 == '\0') {\n    FUN_00040500(0);\n    iVar2 = DAT_0007b640;\n  }\nLAB_0001b738:\n  if (((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)) {\n    FUN_00019870();\n  }\n  DAT_0007b605 = 0;\n  DAT_0007b604 = 1;\n  if (DAT_0007b68c != '\0') {\n    DAT_0007b605 = 0;\n    DAT_0007b604 = 1;\n    return;\n  }\n  DAT_0007b064 = 0xdaff;\n  FUN_0001b490();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001b6f0(void)" (identifier "FUN_0001b6f0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  cVar1 = DAT_0007b68c;\n  if (DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c)) {\n    if (DAT_0007b68c == '\0') {\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    DAT_0007b640 = iVar2;\n    *(undefined4 *)(iVar2 + 0x18) = 0;\n  }\n  else {\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;\n  }\n  if (cVar1 == '\0') {\n    FUN_00040500(0);\n    iVar2 = DAT_0007b640;\n  }\nLAB_0001b738:\n  if (((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)) {\n    FUN_00019870();\n  }\n  DAT_0007b605 = 0;\n  DAT_0007b604 = 1;\n  if (DAT_0007b68c != '\0') {\n    DAT_0007b605 = 0;\n    DAT_0007b604 = 1;\n    return;\n  }\n  DAT_0007b064 = 0xdaff;\n  FUN_0001b490();\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "cVar1 = DAT_0007b68c;" (assignment_expression "cVar1 = DAT_0007b68c" (identifier "cVar1") (= "=") (identifier "DAT_0007b68c")) (; ";")) (if_statement "if (DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c)) {\n    if (DAT_0007b68c == '\0') {\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    DAT_0007b640 = iVar2;\n    *(undefined4 *)(iVar2 + 0x18) = 0;\n  }\n  else {\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;\n  }" (if "if") (parenthesized_expression "(DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c))" (( "(") (binary_expression "DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c)" (identifier "DAT_0007b640") (== "==") (pointer_expression "*(int *)(DAT_0007b640 + 0x5c)" (* "*") (cast_expression "(int *)(DAT_0007b640 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0007b640 + 0x5c)" (( "(") (binary_expression "DAT_0007b640 + 0x5c" (identifier "DAT_0007b640") (+ "+") (number_literal "0x5c")) () ")"))))) () ")")) (compound_statement "{\n    if (DAT_0007b68c == '\0') {\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;\nLAB_0001b79d:\n    DAT_0007b640 = iVar2;\n    *(undefined4 *)(iVar2 + 0x18) = 0;\n  }" ({ "{") (if_statement "if (DAT_0007b68c == '\0') {\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }" (if "if") (parenthesized_expression "(DAT_0007b68c == '\0')" (( "(") (binary_expression "DAT_0007b68c == '\0'" (identifier "DAT_0007b68c") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      uVar3 = dcgettext(0,"No more open file buffers",5);\n      FUN_00041580(uVar3);\n      return;\n    }" ({ "{") (expression_statement "uVar3 = dcgettext(0,"No more open file buffers",5);" (assignment_expression "uVar3 = dcgettext(0,"No more open file buffers",5)" (identifier "uVar3") (= "=") (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_00041580(uVar3);" (call_expression "FUN_00041580(uVar3)" (identifier "FUN_00041580") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(DAT_0007b640 + 0x60);" (assignment_expression "iVar2 = *(int *)(DAT_0007b640 + 0x60)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(DAT_0007b640 + 0x60)" (* "*") (cast_expression "(int *)(DAT_0007b640 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0007b640 + 0x60)" (( "(") (binary_expression "DAT_0007b640 + 0x60" (identifier "DAT_0007b640") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (expression_statement "DAT_0007b640 = iVar2;" (assignment_expression "DAT_0007b640 = iVar2" (identifier "DAT_0007b640") (= "=") (identifier "iVar2")) (; ";")) (if_statement "if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;" (if "if") (parenthesized_expression "((DAT_0007b668 & 2) != 0)" (( "(") (binary_expression "(DAT_0007b668 & 2) != 0" (parenthesized_expression "(DAT_0007b668 & 2)" (( "(") (binary_expression "DAT_0007b668 & 2" (identifier "DAT_0007b668") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001b738;" (goto "goto") (statement_identifier "LAB_0001b738") (; ";"))) (labeled_statement "LAB_0001b79d:\n    DAT_0007b640 = iVar2;" (statement_identifier "LAB_0001b79d") (: ":") (expression_statement "DAT_0007b640 = iVar2;" (assignment_expression "DAT_0007b640 = iVar2" (identifier "DAT_0007b640") (= "=") (identifier "iVar2")) (; ";"))) (expression_statement "*(undefined4 *)(iVar2 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x18) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x18)" (( "(") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;\n  }" (else "else") (compound_statement "{\n    iVar2 = *(int *)(DAT_0007b640 + 0x60);\n    DAT_0007b640 = iVar2;\n    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(DAT_0007b640 + 0x60);" (assignment_expression "iVar2 = *(int *)(DAT_0007b640 + 0x60)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(DAT_0007b640 + 0x60)" (* "*") (cast_expression "(int *)(DAT_0007b640 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0007b640 + 0x60)" (( "(") (binary_expression "DAT_0007b640 + 0x60" (identifier "DAT_0007b640") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (expression_statement "DAT_0007b640 = iVar2;" (assignment_expression "DAT_0007b640 = iVar2" (identifier "DAT_0007b640") (= "=") (identifier "iVar2")) (; ";")) (if_statement "if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;" (if "if") (parenthesized_expression "((DAT_0007b668 & 2) == 0)" (( "(") (binary_expression "(DAT_0007b668 & 2) == 0" (parenthesized_expression "(DAT_0007b668 & 2)" (( "(") (binary_expression "DAT_0007b668 & 2" (identifier "DAT_0007b668") (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001b79d;" (goto "goto") (statement_identifier "LAB_0001b79d") (; ";"))) (} "}")))) (if_statement "if (cVar1 == '\0') {\n    FUN_00040500(0);\n    iVar2 = DAT_0007b640;\n  }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_00040500(0);\n    iVar2 = DAT_0007b640;\n  }" ({ "{") (expression_statement "FUN_00040500(0);" (call_expression "FUN_00040500(0)" (identifier "FUN_00040500") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar2 = DAT_0007b640;" (assignment_expression "iVar2 = DAT_0007b640" (identifier "iVar2") (= "=") (identifier "DAT_0007b640")) (; ";")) (} "}"))) (labeled_statement "LAB_0001b738:\n  if (((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)) {\n    FUN_00019870();\n  }" (statement_identifier "LAB_0001b738") (: ":") (if_statement "if (((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)) {\n    FUN_00019870();\n  }" (if "if") (parenthesized_expression "(((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0))" (( "(") (binary_expression "((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&\n     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)" (parenthesized_expression "((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c)))" (( "(") (binary_expression "(*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))" (parenthesized_expression "(*(int *)(iVar2 + 0x54) != 0)" (( "(") (binary_expression "*(int *)(iVar2 + 0x54) != 0" (pointer_expression "*(int *)(iVar2 + 0x54)" (* "*") (cast_expression "(int *)(iVar2 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x54)" (( "(") (binary_expression "iVar2 + 0x54" (identifier "iVar2") (+ "+") (number_literal "0x54")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))" (( "(") (binary_expression "0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c)" (number_literal "0") (< "<") (pointer_expression "*(int *)(*(int *)(iVar2 + 0x54) + 0x1c)" (* "*") (cast_expression "(int *)(*(int *)(iVar2 + 0x54) + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar2 + 0x54) + 0x1c)" (( "(") (binary_expression "*(int *)(iVar2 + 0x54) + 0x1c" (pointer_expression "*(int *)(iVar2 + 0x54)" (* "*") (cast_expression "(int *)(iVar2 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x54)" (( "(") (binary_expression "iVar2 + 0x54" (identifier "iVar2") (+ "+") (number_literal "0x54")) () ")")))) (+ "+") (number_literal "0x1c")) () ")"))))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)" (( "(") (binary_expression "*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0" (pointer_expression "*(int *)(*(int *)(iVar2 + 4) + 0x10)" (* "*") (cast_expression "(int *)(*(int *)(iVar2 + 4) + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar2 + 4) + 0x10)" (( "(") (binary_expression "*(int *)(iVar2 + 4) + 0x10" (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x10")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    FUN_00019870();\n  }" ({ "{") (expression_statement "FUN_00019870();" (call_expression "FUN_00019870()" (identifier "FUN_00019870") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (expression_statement "DAT_0007b605 = 0;" (assignment_expression "DAT_0007b605 = 0" (identifier "DAT_0007b605") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_0007b604 = 1;" (assignment_expression "DAT_0007b604 = 1" (identifier "DAT_0007b604") (= "=") (number_literal "1")) (; ";")) (if_statement "if (DAT_0007b68c != '\0') {\n    DAT_0007b605 = 0;\n    DAT_0007b604 = 1;\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_0007b68c != '\0')" (( "(") (binary_expression "DAT_0007b68c != '\0'" (identifier "DAT_0007b68c") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    DAT_0007b605 = 0;\n    DAT_0007b604 = 1;\n    return;\n  }" ({ "{") (expression_statement "DAT_0007b605 = 0;" (assignment_expression "DAT_0007b605 = 0" (identifier "DAT_0007b605") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_0007b604 = 1;" (assignment_expression "DAT_0007b604 = 1" (identifier "DAT_0007b604") (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "DAT_0007b064 = 0xdaff;" (assignment_expression "DAT_0007b064 = 0xdaff" (identifier "DAT_0007b064") (= "=") (number_literal "0xdaff")) (; ";")) (expression_statement "FUN_0001b490();" (call_expression "FUN_0001b490()" (identifier "FUN_0001b490") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  type_1 _Var1;
  type_2 *poVar2;
  char *msg;
  
  _Var1 = var_6;
  if (var_1 == var_1->next) {
    if (!var_6) {
      msg = (char *)var_2(0,"No more open file buffers",5);
      var_3(msg);
      return;
    }
    poVar2 = var_1->prev;
    var_1 = poVar2;
    if (((type_3)flags[1] & 2) != 0) goto LAB_0001b738;
LAB_0001b79d:
    var_1 = poVar2;
    poVar2->firstcolumn = 0;
  }
  else {
    poVar2 = var_1->prev;
    var_1 = poVar2;
    if (((type_3)flags[1] & 2) == 0) goto LAB_0001b79d;
  }
  if (!_Var1) {
    var_4((char *)0x0);
    poVar2 = var_1;
  }
LAB_0001b738:
  if (((poVar2->syntax != (type_4 *)0x0) && (0 < poVar2->syntax->nmultis)) &&
     (poVar2->fileage->multidata == (short *)0x0)) {
    var_5();
  }
  have_palette = false;
  refresh_needed = true;
  if (var_6 != false) {
    have_palette = false;
    refresh_needed = true;
    return;
  }
  currmenu = 0xdaff;
  var_7();
  return;
}


(translation_unit (function_definition type: (primitive_type) 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: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (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))))))) consequence: (compound_statement (if_statement condition: (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)))) (return_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: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (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)))) 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))))))) (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: (goto_statement label: (statement_identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (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: (number_literal))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (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: (number_literal))))))))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (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: (number_literal))))) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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 (assignment_expression left: (identifier) right: (number_literal))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

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

void MASKED(void)

{
  char cVar1;
  int iVar2;
  undefined4 uVar3;
  
  cVar1 = DAT_0007b68c;
  if (DAT_0007b640 == *(int *)(DAT_0007b640 + 0x5c)) {
    if (DAT_0007b68c == '\0') {
      uVar3 = dcgettext(0,"No more open file buffers",5);
      FUN_00041580(uVar3);
      return;
    }
    iVar2 = *(int *)(DAT_0007b640 + 0x60);
    DAT_0007b640 = iVar2;
    if ((DAT_0007b668 & 2) != 0) goto LAB_0001b738;
LAB_0001b79d:
    DAT_0007b640 = iVar2;
    *(undefined4 *)(iVar2 + 0x18) = 0;
  }
  else {
    iVar2 = *(int *)(DAT_0007b640 + 0x60);
    DAT_0007b640 = iVar2;
    if ((DAT_0007b668 & 2) == 0) goto LAB_0001b79d;
  }
  if (cVar1 == '\0') {
    FUN_00040500(0);
    iVar2 = DAT_0007b640;
  }
LAB_0001b738:
  if (((*(int *)(iVar2 + 0x54) != 0) && (0 < *(int *)(*(int *)(iVar2 + 0x54) + 0x1c))) &&
     (*(int *)(*(int *)(iVar2 + 4) + 0x10) == 0)) {
    FUN_00019870();
  }
  DAT_0007b605 = 0;
  DAT_0007b604 = 1;
  if (DAT_0007b68c != '\0') {
    DAT_0007b605 = 0;
    DAT_0007b604 = 1;
    return;
  }
  DAT_0007b064 = 0xdaff;
  FUN_0001b490();
  return;
}

