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

void record_macro(void)

{
  size_t sVar1;
  size_t sVar2;
  char *pcVar3;
  
  recording = !recording;
  if (recording) {
    pcVar3 = "Recording a macro...";
    macro_length = 0;
  }
  else {
    sVar2 = macro_length - 1;
    if ((sVar2 != 0) && (macro_buffer[macro_length - 2] == 0x1b)) {
      sVar1 = macro_length - 2;
      do {
        sVar2 = sVar1;
        if (sVar2 == 0) {
          macro_length = 0;
          sVar2 = macro_length;
          break;
        }
        sVar1 = sVar2 - 1;
      } while (macro_buffer[sVar2 - 1] == 0x1b);
    }
    macro_length = sVar2;
    pcVar3 = "Stopped recording";
  }
  pcVar3 = (char *)dcgettext(0,pcVar3,5);
  statusline(HUSH,pcVar3);
  return;
}



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

void FUN_000415a0(void)

{
  int iVar1;
  int iVar2;
  char *pcVar3;
  undefined4 uVar4;
  
  DAT_0007b8c0 = DAT_0007b8c0 ^ 1;
  if (DAT_0007b8c0 == 0) {
    iVar2 = DAT_0007b8b8 + -1;
    if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {
      iVar1 = DAT_0007b8b8 + -2;
      do {
        iVar2 = iVar1;
        if (iVar2 == 0) {
          DAT_0007b8b8 = 0;
          iVar2 = DAT_0007b8b8;
          break;
        }
        iVar1 = iVar2 + -1;
      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);
    }
    DAT_0007b8b8 = iVar2;
    pcVar3 = "Stopped recording";
  }
  else {
    pcVar3 = "Recording a macro...";
    DAT_0007b8b8 = 0;
  }
  uVar4 = dcgettext(0,pcVar3,5);
  FUN_00040b60(0,uVar4);
  return;
}


PUSH EBX
CALL 0x00015680
ADD EBX,0x3962a
SUB ESP,0x8
XOR byte ptr [EBX + 0xcf0],0x1
JNZ 0x00041620
MOV EAX,dword ptr [EBX + 0xce8]
LEA EDX,[EAX + -0x1]
MOV dword ptr [EBX + 0xce8],EDX
TEST EDX,EDX
JZ 0x000415f9
MOV ECX,dword ptr [EBX + 0xcec]
CMP dword ptr [ECX + EAX*0x4 + -0x8],0x1b
JNZ 0x000415f9
SUB EAX,0x2
JMP 0x000415eb
LEA EDX,[EAX + -0x1]
CMP dword ptr [ECX + EDX*0x4],0x1b
JNZ 0x00041640
MOV EAX,EDX
TEST EAX,EAX
JNZ 0x000415e0
MOV dword ptr [EBX + 0xce8],0x0
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe62f4]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000132e0
POP EDX
POP ECX
PUSH EAX
PUSH 0x0
CALL 0x00040b60
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe62df]
MOV dword ptr [EBX + 0xce8],0x0
PUSH 0x5
JMP 0x00041604
MOV dword ptr [EBX + 0xce8],EAX
JMP 0x000415f9
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000415a0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  DAT_0007b8c0 = DAT_0007b8c0 ^ 1;\n  if (DAT_0007b8c0 == 0) {\n    iVar2 = DAT_0007b8b8 + -1;\n    if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }\n    DAT_0007b8b8 = iVar2;\n    pcVar3 = "Stopped recording";\n  }\n  else {\n    pcVar3 = "Recording a macro...";\n    DAT_0007b8b8 = 0;\n  }\n  uVar4 = dcgettext(0,pcVar3,5);\n  FUN_00040b60(0,uVar4);\n  return;\n}\n\n" comment (function_definition "void FUN_000415a0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  DAT_0007b8c0 = DAT_0007b8c0 ^ 1;\n  if (DAT_0007b8c0 == 0) {\n    iVar2 = DAT_0007b8b8 + -1;\n    if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }\n    DAT_0007b8b8 = iVar2;\n    pcVar3 = "Stopped recording";\n  }\n  else {\n    pcVar3 = "Recording a macro...";\n    DAT_0007b8b8 = 0;\n  }\n  uVar4 = dcgettext(0,pcVar3,5);\n  FUN_00040b60(0,uVar4);\n  return;\n}" primitive_type (function_declarator "FUN_000415a0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  DAT_0007b8c0 = DAT_0007b8c0 ^ 1;\n  if (DAT_0007b8c0 == 0) {\n    iVar2 = DAT_0007b8b8 + -1;\n    if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }\n    DAT_0007b8b8 = iVar2;\n    pcVar3 = "Stopped recording";\n  }\n  else {\n    pcVar3 = "Recording a macro...";\n    DAT_0007b8b8 = 0;\n  }\n  uVar4 = dcgettext(0,pcVar3,5);\n  FUN_00040b60(0,uVar4);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "DAT_0007b8c0 = DAT_0007b8c0 ^ 1;" (assignment_expression "DAT_0007b8c0 = DAT_0007b8c0 ^ 1" identifier = (binary_expression "DAT_0007b8c0 ^ 1" identifier ^ number_literal)) ;) (if_statement "if (DAT_0007b8c0 == 0) {\n    iVar2 = DAT_0007b8b8 + -1;\n    if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }\n    DAT_0007b8b8 = iVar2;\n    pcVar3 = "Stopped recording";\n  }\n  else {\n    pcVar3 = "Recording a macro...";\n    DAT_0007b8b8 = 0;\n  }" if (parenthesized_expression "(DAT_0007b8c0 == 0)" ( (binary_expression "DAT_0007b8c0 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = DAT_0007b8b8 + -1;\n    if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }\n    DAT_0007b8b8 = iVar2;\n    pcVar3 = "Stopped recording";\n  }" { (expression_statement "iVar2 = DAT_0007b8b8 + -1;" (assignment_expression "iVar2 = DAT_0007b8b8 + -1" identifier = (binary_expression "DAT_0007b8b8 + -1" identifier + number_literal)) ;) (if_statement "if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }" if (parenthesized_expression "((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b))" ( (binary_expression "(iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)" ( (binary_expression "*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b" (pointer_expression "*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4)" * (cast_expression "(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4)" ( (binary_expression "DAT_0007b8bc + -8 + DAT_0007b8b8 * 4" (binary_expression "DAT_0007b8bc + -8" identifier + number_literal) + (binary_expression "DAT_0007b8b8 * 4" identifier * number_literal)) )))) == number_literal) ))) )) (compound_statement "{\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }" { (expression_statement "iVar1 = DAT_0007b8b8 + -2;" (assignment_expression "iVar1 = DAT_0007b8b8 + -2" identifier = (binary_expression "DAT_0007b8b8 + -2" identifier + number_literal)) ;) (do_statement "do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);" do (compound_statement "{\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      }" { (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) (if_statement "if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }" { (expression_statement "DAT_0007b8b8 = 0;" (assignment_expression "DAT_0007b8b8 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = DAT_0007b8b8;" (assignment_expression "iVar2 = DAT_0007b8b8" identifier = identifier) ;) (break_statement "break;" break ;) })) (expression_statement "iVar1 = iVar2 + -1;" (assignment_expression "iVar1 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b)" ( (binary_expression "*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b" (pointer_expression "*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4)" * (cast_expression "(int *)(DAT_0007b8bc + (iVar2 + -1) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b8bc + (iVar2 + -1) * 4)" ( (binary_expression "DAT_0007b8bc + (iVar2 + -1) * 4" identifier + (binary_expression "(iVar2 + -1) * 4" (parenthesized_expression "(iVar2 + -1)" ( (binary_expression "iVar2 + -1" identifier + number_literal) )) * number_literal)) )))) == number_literal) )) ;) })) (expression_statement "DAT_0007b8b8 = iVar2;" (assignment_expression "DAT_0007b8b8 = iVar2" identifier = identifier) ;) (expression_statement "pcVar3 = "Stopped recording";" (assignment_expression "pcVar3 = "Stopped recording"" identifier = (string_literal ""Stopped recording"" " string_content ")) ;) }) (else_clause "else {\n    pcVar3 = "Recording a macro...";\n    DAT_0007b8b8 = 0;\n  }" else (compound_statement "{\n    pcVar3 = "Recording a macro...";\n    DAT_0007b8b8 = 0;\n  }" { (expression_statement "pcVar3 = "Recording a macro...";" (assignment_expression "pcVar3 = "Recording a macro..."" identifier = (string_literal ""Recording a macro..."" " string_content ")) ;) (expression_statement "DAT_0007b8b8 = 0;" (assignment_expression "DAT_0007b8b8 = 0" identifier = number_literal) ;) }))) (expression_statement "uVar4 = dcgettext(0,pcVar3,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar3,5)" identifier = (call_expression "dcgettext(0,pcVar3,5)" identifier (argument_list "(0,pcVar3,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "FUN_00040b60(0,uVar4);" (call_expression "FUN_00040b60(0,uVar4)" identifier (argument_list "(0,uVar4)" ( number_literal , identifier ))) ;) (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 record_macro(void)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *pcVar3;\n  \n  recording = !recording;\n  if (recording) {\n    pcVar3 = "Recording a macro...";\n    macro_length = 0;\n  }\n  else {\n    sVar2 = macro_length - 1;\n    if ((sVar2 != 0) && (macro_buffer[macro_length - 2] == 0x1b)) {\n      sVar1 = macro_length - 2;\n      do {\n        sVar2 = sVar1;\n        if (sVar2 == 0) {\n          macro_length = 0;\n          sVar2 = macro_length;\n          break;\n        }\n        sVar1 = sVar2 - 1;\n      } while (macro_buffer[sVar2 - 1] == 0x1b);\n    }\n    macro_length = sVar2;\n    pcVar3 = "Stopped recording";\n  }\n  pcVar3 = (char *)dcgettext(0,pcVar3,5);\n  statusline(HUSH,pcVar3);\n  return;\n}\n\n" comment comment (function_definition "void record_macro(void)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *pcVar3;\n  \n  recording = !recording;\n  if (recording) {\n    pcVar3 = "Recording a macro...";\n    macro_length = 0;\n  }\n  else {\n    sVar2 = macro_length - 1;\n    if ((sVar2 != 0) && (macro_buffer[macro_length - 2] == 0x1b)) {\n      sVar1 = macro_length - 2;\n      do {\n        sVar2 = sVar1;\n        if (sVar2 == 0) {\n          macro_length = 0;\n          sVar2 = macro_length;\n          break;\n        }\n        sVar1 = sVar2 - 1;\n      } while (macro_buffer[sVar2 - 1] == 0x1b);\n    }\n    macro_length = sVar2;\n    pcVar3 = "Stopped recording";\n  }\n  pcVar3 = (char *)dcgettext(0,pcVar3,5);\n  statusline(HUSH,pcVar3);\n  return;\n}" primitive_type (function_declarator "record_macro(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  char *pcVar3;\n  \n  recording = !recording;\n  if (recording) {\n    pcVar3 = "Recording a macro...";\n    macro_length = 0;\n  }\n  else {\n    sVar2 = macro_length - 1;\n    if ((sVar2 != 0) && (macro_buffer[macro_length - 2] == 0x1b)) {\n      sVar1 = macro_length - 2;\n      do {\n        sVar2 = sVar1;\n        if (sVar2 == 0) {\n          macro_length = 0;\n          sVar2 = macro_length;\n          break;\n        }\n        sVar1 = sVar2 - 1;\n      } while (macro_buffer[sVar2 - 1] == 0x1b);\n    }\n    macro_length = sVar2;\n    pcVar3 = "Stopped recording";\n  }\n  pcVar3 = (char *)dcgettext(0,pcVar3,5);\n  statusline(HUSH,pcVar3);\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "recording = !recording;" (assignment_expression "recording = !recording" identifier = (unary_expression "!recording" ! identifier)) ;) (if_statement "if (recording) {\n    pcVar3 = "Recording a macro...";\n    macro_length = 0;\n  }\n  else {\n    sVar2 = macro_length - 1;\n    if ((sVar2 != 0) && (macro_buffer[macro_length - 2] == 0x1b)) {\n      sVar1 = macro_length - 2;\n      do {\n        sVar2 = sVar1;\n        if (sVar2 == 0) {\n          macro_length = 0;\n          sVar2 = macro_length;\n          break;\n        }\n        sVar1 = sVar2 - 1;\n      } while (macro_buffer[sVar2 - 1] == 0x1b);\n    }\n    macro_length = sVar2;\n    pcVar3 = "Stopped recording";\n  }" if (parenthesized_expression "(recording)" ( identifier )) (compound_statement "{\n    pcVar3 = "Recording a macro...";\n    macro_length = 0;\n  }" { (expression_statement "pcVar3 = "Recording a macro...";" (assignment_expression "pcVar3 = "Recording a macro..."" identifier = (string_literal ""Recording a macro..."" " string_content ")) ;) (expression_statement "macro_length = 0;" (assignment_expression "macro_length = 0" identifier = number_literal) ;) }) (else_clause "else {\n    sVar2 = macro_length - 1;\n    if ((sVar2 != 0) && (macro_buffer[macro_length - 2] == 0x1b)) {\n      sVar1 = macro_length - 2;\n      do {\n        sVar2 = sVar1;\n        if (sVar2 == 0) {\n          macro_length = 0;\n          sVar2 = macro_length;\n          break;\n        }\n        sVar1 = sVar2 - 1;\n      } while (macro_buffer[sVar2 - 1] == 0x1b);\n    }\n    macro_length = sVar2;\n    pcVar3 = "Stopped recording";\n  }" else (compound_statement "{\n    sVar2 = macro_length - 1;\n    if ((sVar2 != 0) && (macro_buffer[macro_length - 2] == 0x1b)) {\n      sVar1 = macro_length - 2;\n      do {\n        sVar2 = sVar1;\n        if (sVar2 == 0) {\n          macro_length = 0;\n          sVar2 = macro_length;\n          break;\n        }\n        sVar1 = sVar2 - 1;\n      } while (macro_buffer[sVar2 - 1] == 0x1b);\n    }\n    macro_length = sVar2;\n    pcVar3 = "Stopped recording";\n  }" { (expression_statement "sVar2 = macro_length - 1;" (assignment_expression "sVar2 = macro_length - 1" identifier = (binary_expression "macro_length - 1" identifier - number_literal)) ;) (if_statement "if ((sVar2 != 0) && (macro_buffer[macro_length - 2] == 0x1b)) {\n      sVar1 = macro_length - 2;\n      do {\n        sVar2 = sVar1;\n        if (sVar2 == 0) {\n          macro_length = 0;\n          sVar2 = macro_length;\n          break;\n        }\n        sVar1 = sVar2 - 1;\n      } while (macro_buffer[sVar2 - 1] == 0x1b);\n    }" if (parenthesized_expression "((sVar2 != 0) && (macro_buffer[macro_length - 2] == 0x1b))" ( (binary_expression "(sVar2 != 0) && (macro_buffer[macro_length - 2] == 0x1b)" (parenthesized_expression "(sVar2 != 0)" ( (binary_expression "sVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(macro_buffer[macro_length - 2] == 0x1b)" ( (binary_expression "macro_buffer[macro_length - 2] == 0x1b" (subscript_expression "macro_buffer[macro_length - 2]" identifier [ (binary_expression "macro_length - 2" identifier - number_literal) ]) == number_literal) ))) )) (compound_statement "{\n      sVar1 = macro_length - 2;\n      do {\n        sVar2 = sVar1;\n        if (sVar2 == 0) {\n          macro_length = 0;\n          sVar2 = macro_length;\n          break;\n        }\n        sVar1 = sVar2 - 1;\n      } while (macro_buffer[sVar2 - 1] == 0x1b);\n    }" { (expression_statement "sVar1 = macro_length - 2;" (assignment_expression "sVar1 = macro_length - 2" identifier = (binary_expression "macro_length - 2" identifier - number_literal)) ;) (do_statement "do {\n        sVar2 = sVar1;\n        if (sVar2 == 0) {\n          macro_length = 0;\n          sVar2 = macro_length;\n          break;\n        }\n        sVar1 = sVar2 - 1;\n      } while (macro_buffer[sVar2 - 1] == 0x1b);" do (compound_statement "{\n        sVar2 = sVar1;\n        if (sVar2 == 0) {\n          macro_length = 0;\n          sVar2 = macro_length;\n          break;\n        }\n        sVar1 = sVar2 - 1;\n      }" { (expression_statement "sVar2 = sVar1;" (assignment_expression "sVar2 = sVar1" identifier = identifier) ;) (if_statement "if (sVar2 == 0) {\n          macro_length = 0;\n          sVar2 = macro_length;\n          break;\n        }" if (parenthesized_expression "(sVar2 == 0)" ( (binary_expression "sVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          macro_length = 0;\n          sVar2 = macro_length;\n          break;\n        }" { (expression_statement "macro_length = 0;" (assignment_expression "macro_length = 0" identifier = number_literal) ;) (expression_statement "sVar2 = macro_length;" (assignment_expression "sVar2 = macro_length" identifier = identifier) ;) (break_statement "break;" break ;) })) (expression_statement "sVar1 = sVar2 - 1;" (assignment_expression "sVar1 = sVar2 - 1" identifier = (binary_expression "sVar2 - 1" identifier - number_literal)) ;) }) while (parenthesized_expression "(macro_buffer[sVar2 - 1] == 0x1b)" ( (binary_expression "macro_buffer[sVar2 - 1] == 0x1b" (subscript_expression "macro_buffer[sVar2 - 1]" identifier [ (binary_expression "sVar2 - 1" identifier - number_literal) ]) == number_literal) )) ;) })) (expression_statement "macro_length = sVar2;" (assignment_expression "macro_length = sVar2" identifier = identifier) ;) (expression_statement "pcVar3 = "Stopped recording";" (assignment_expression "pcVar3 = "Stopped recording"" identifier = (string_literal ""Stopped recording"" " string_content ")) ;) }))) (expression_statement "pcVar3 = (char *)dcgettext(0,pcVar3,5);" (assignment_expression "pcVar3 = (char *)dcgettext(0,pcVar3,5)" identifier = (cast_expression "(char *)dcgettext(0,pcVar3,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,pcVar3,5)" identifier (argument_list "(0,pcVar3,5)" ( number_literal , identifier , number_literal ))))) ;) (expression_statement "statusline(HUSH,pcVar3);" (call_expression "statusline(HUSH,pcVar3)" identifier (argument_list "(HUSH,pcVar3)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000415a0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  DAT_0007b8c0 = DAT_0007b8c0 ^ 1;\n  if (DAT_0007b8c0 == 0) {\n    iVar2 = DAT_0007b8b8 + -1;\n    if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }\n    DAT_0007b8b8 = iVar2;\n    pcVar3 = "Stopped recording";\n  }\n  else {\n    pcVar3 = "Recording a macro...";\n    DAT_0007b8b8 = 0;\n  }\n  uVar4 = dcgettext(0,pcVar3,5);\n  FUN_00040b60(0,uVar4);\n  return;\n}\n\n" (function_definition "void FUN_000415a0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  DAT_0007b8c0 = DAT_0007b8c0 ^ 1;\n  if (DAT_0007b8c0 == 0) {\n    iVar2 = DAT_0007b8b8 + -1;\n    if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }\n    DAT_0007b8b8 = iVar2;\n    pcVar3 = "Stopped recording";\n  }\n  else {\n    pcVar3 = "Recording a macro...";\n    DAT_0007b8b8 = 0;\n  }\n  uVar4 = dcgettext(0,pcVar3,5);\n  FUN_00040b60(0,uVar4);\n  return;\n}" primitive_type (function_declarator "FUN_000415a0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  DAT_0007b8c0 = DAT_0007b8c0 ^ 1;\n  if (DAT_0007b8c0 == 0) {\n    iVar2 = DAT_0007b8b8 + -1;\n    if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }\n    DAT_0007b8b8 = iVar2;\n    pcVar3 = "Stopped recording";\n  }\n  else {\n    pcVar3 = "Recording a macro...";\n    DAT_0007b8b8 = 0;\n  }\n  uVar4 = dcgettext(0,pcVar3,5);\n  FUN_00040b60(0,uVar4);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "DAT_0007b8c0 = DAT_0007b8c0 ^ 1;" (assignment_expression "DAT_0007b8c0 = DAT_0007b8c0 ^ 1" identifier = (binary_expression "DAT_0007b8c0 ^ 1" identifier ^ number_literal)) ;) (if_statement "if (DAT_0007b8c0 == 0) {\n    iVar2 = DAT_0007b8b8 + -1;\n    if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }\n    DAT_0007b8b8 = iVar2;\n    pcVar3 = "Stopped recording";\n  }\n  else {\n    pcVar3 = "Recording a macro...";\n    DAT_0007b8b8 = 0;\n  }" if (parenthesized_expression "(DAT_0007b8c0 == 0)" ( (binary_expression "DAT_0007b8c0 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = DAT_0007b8b8 + -1;\n    if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }\n    DAT_0007b8b8 = iVar2;\n    pcVar3 = "Stopped recording";\n  }" { (expression_statement "iVar2 = DAT_0007b8b8 + -1;" (assignment_expression "iVar2 = DAT_0007b8b8 + -1" identifier = (binary_expression "DAT_0007b8b8 + -1" identifier + number_literal)) ;) (if_statement "if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }" if (parenthesized_expression "((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b))" ( (binary_expression "(iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)" ( (binary_expression "*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b" (pointer_expression "*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4)" * (cast_expression "(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4)" ( (binary_expression "DAT_0007b8bc + -8 + DAT_0007b8b8 * 4" (binary_expression "DAT_0007b8bc + -8" identifier + number_literal) + (binary_expression "DAT_0007b8b8 * 4" identifier * number_literal)) )))) == number_literal) ))) )) (compound_statement "{\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }" { (expression_statement "iVar1 = DAT_0007b8b8 + -2;" (assignment_expression "iVar1 = DAT_0007b8b8 + -2" identifier = (binary_expression "DAT_0007b8b8 + -2" identifier + number_literal)) ;) (do_statement "do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);" do (compound_statement "{\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      }" { (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) (if_statement "if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }" { (expression_statement "DAT_0007b8b8 = 0;" (assignment_expression "DAT_0007b8b8 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = DAT_0007b8b8;" (assignment_expression "iVar2 = DAT_0007b8b8" identifier = identifier) ;) (break_statement "break;" break ;) })) (expression_statement "iVar1 = iVar2 + -1;" (assignment_expression "iVar1 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b)" ( (binary_expression "*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b" (pointer_expression "*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4)" * (cast_expression "(int *)(DAT_0007b8bc + (iVar2 + -1) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b8bc + (iVar2 + -1) * 4)" ( (binary_expression "DAT_0007b8bc + (iVar2 + -1) * 4" identifier + (binary_expression "(iVar2 + -1) * 4" (parenthesized_expression "(iVar2 + -1)" ( (binary_expression "iVar2 + -1" identifier + number_literal) )) * number_literal)) )))) == number_literal) )) ;) })) (expression_statement "DAT_0007b8b8 = iVar2;" (assignment_expression "DAT_0007b8b8 = iVar2" identifier = identifier) ;) (expression_statement "pcVar3 = "Stopped recording";" (assignment_expression "pcVar3 = "Stopped recording"" identifier = (string_literal ""Stopped recording"" " string_content ")) ;) }) (else_clause "else {\n    pcVar3 = "Recording a macro...";\n    DAT_0007b8b8 = 0;\n  }" else (compound_statement "{\n    pcVar3 = "Recording a macro...";\n    DAT_0007b8b8 = 0;\n  }" { (expression_statement "pcVar3 = "Recording a macro...";" (assignment_expression "pcVar3 = "Recording a macro..."" identifier = (string_literal ""Recording a macro..."" " string_content ")) ;) (expression_statement "DAT_0007b8b8 = 0;" (assignment_expression "DAT_0007b8b8 = 0" identifier = number_literal) ;) }))) (expression_statement "uVar4 = dcgettext(0,pcVar3,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar3,5)" identifier = (call_expression "dcgettext(0,pcVar3,5)" identifier (argument_list "(0,pcVar3,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "FUN_00040b60(0,uVar4);" (call_expression "FUN_00040b60(0,uVar4)" identifier (argument_list "(0,uVar4)" ( number_literal , identifier ))) ;) (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT)) )))) == LIT) )) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000415a0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  DAT_0007b8c0 = DAT_0007b8c0 ^ 1;\n  if (DAT_0007b8c0 == 0) {\n    iVar2 = DAT_0007b8b8 + -1;\n    if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }\n    DAT_0007b8b8 = iVar2;\n    pcVar3 = "Stopped recording";\n  }\n  else {\n    pcVar3 = "Recording a macro...";\n    DAT_0007b8b8 = 0;\n  }\n  uVar4 = dcgettext(0,pcVar3,5);\n  FUN_00040b60(0,uVar4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000415a0(void)" (identifier "FUN_000415a0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  \n  DAT_0007b8c0 = DAT_0007b8c0 ^ 1;\n  if (DAT_0007b8c0 == 0) {\n    iVar2 = DAT_0007b8b8 + -1;\n    if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }\n    DAT_0007b8b8 = iVar2;\n    pcVar3 = "Stopped recording";\n  }\n  else {\n    pcVar3 = "Recording a macro...";\n    DAT_0007b8b8 = 0;\n  }\n  uVar4 = dcgettext(0,pcVar3,5);\n  FUN_00040b60(0,uVar4);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "DAT_0007b8c0 = DAT_0007b8c0 ^ 1;" (assignment_expression "DAT_0007b8c0 = DAT_0007b8c0 ^ 1" (identifier "DAT_0007b8c0") (= "=") (binary_expression "DAT_0007b8c0 ^ 1" (identifier "DAT_0007b8c0") (^ "^") (number_literal "1"))) (; ";")) (if_statement "if (DAT_0007b8c0 == 0) {\n    iVar2 = DAT_0007b8b8 + -1;\n    if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }\n    DAT_0007b8b8 = iVar2;\n    pcVar3 = "Stopped recording";\n  }\n  else {\n    pcVar3 = "Recording a macro...";\n    DAT_0007b8b8 = 0;\n  }" (if "if") (parenthesized_expression "(DAT_0007b8c0 == 0)" (( "(") (binary_expression "DAT_0007b8c0 == 0" (identifier "DAT_0007b8c0") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = DAT_0007b8b8 + -1;\n    if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }\n    DAT_0007b8b8 = iVar2;\n    pcVar3 = "Stopped recording";\n  }" ({ "{") (expression_statement "iVar2 = DAT_0007b8b8 + -1;" (assignment_expression "iVar2 = DAT_0007b8b8 + -1" (identifier "iVar2") (= "=") (binary_expression "DAT_0007b8b8 + -1" (identifier "DAT_0007b8b8") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }" (if "if") (parenthesized_expression "((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b))" (( "(") (binary_expression "(iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)" (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)" (( "(") (binary_expression "*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b" (pointer_expression "*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4)" (* "*") (cast_expression "(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4)" (( "(") (binary_expression "DAT_0007b8bc + -8 + DAT_0007b8b8 * 4" (binary_expression "DAT_0007b8bc + -8" (identifier "DAT_0007b8bc") (+ "+") (number_literal "-8")) (+ "+") (binary_expression "DAT_0007b8b8 * 4" (identifier "DAT_0007b8b8") (* "*") (number_literal "4"))) () ")")))) (== "==") (number_literal "0x1b")) () ")"))) () ")")) (compound_statement "{\n      iVar1 = DAT_0007b8b8 + -2;\n      do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);\n    }" ({ "{") (expression_statement "iVar1 = DAT_0007b8b8 + -2;" (assignment_expression "iVar1 = DAT_0007b8b8 + -2" (identifier "iVar1") (= "=") (binary_expression "DAT_0007b8b8 + -2" (identifier "DAT_0007b8b8") (+ "+") (number_literal "-2"))) (; ";")) (do_statement "do {\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);" (do "do") (compound_statement "{\n        iVar2 = iVar1;\n        if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }\n        iVar1 = iVar2 + -1;\n      }" ({ "{") (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" (identifier "iVar2") (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar2 == 0) {\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          DAT_0007b8b8 = 0;\n          iVar2 = DAT_0007b8b8;\n          break;\n        }" ({ "{") (expression_statement "DAT_0007b8b8 = 0;" (assignment_expression "DAT_0007b8b8 = 0" (identifier "DAT_0007b8b8") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = DAT_0007b8b8;" (assignment_expression "iVar2 = DAT_0007b8b8" (identifier "iVar2") (= "=") (identifier "DAT_0007b8b8")) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "iVar1 = iVar2 + -1;" (assignment_expression "iVar1 = iVar2 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b)" (( "(") (binary_expression "*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b" (pointer_expression "*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4)" (* "*") (cast_expression "(int *)(DAT_0007b8bc + (iVar2 + -1) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0007b8bc + (iVar2 + -1) * 4)" (( "(") (binary_expression "DAT_0007b8bc + (iVar2 + -1) * 4" (identifier "DAT_0007b8bc") (+ "+") (binary_expression "(iVar2 + -1) * 4" (parenthesized_expression "(iVar2 + -1)" (( "(") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1")) () ")")) (* "*") (number_literal "4"))) () ")")))) (== "==") (number_literal "0x1b")) () ")")) (; ";")) (} "}"))) (expression_statement "DAT_0007b8b8 = iVar2;" (assignment_expression "DAT_0007b8b8 = iVar2" (identifier "DAT_0007b8b8") (= "=") (identifier "iVar2")) (; ";")) (expression_statement "pcVar3 = "Stopped recording";" (assignment_expression "pcVar3 = "Stopped recording"" (identifier "pcVar3") (= "=") (string_literal ""Stopped recording"" (" """) (string_content "Stopped recording") (" """))) (; ";")) (} "}")) (else_clause "else {\n    pcVar3 = "Recording a macro...";\n    DAT_0007b8b8 = 0;\n  }" (else "else") (compound_statement "{\n    pcVar3 = "Recording a macro...";\n    DAT_0007b8b8 = 0;\n  }" ({ "{") (expression_statement "pcVar3 = "Recording a macro...";" (assignment_expression "pcVar3 = "Recording a macro..."" (identifier "pcVar3") (= "=") (string_literal ""Recording a macro..."" (" """) (string_content "Recording a macro...") (" """))) (; ";")) (expression_statement "DAT_0007b8b8 = 0;" (assignment_expression "DAT_0007b8b8 = 0" (identifier "DAT_0007b8b8") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "uVar4 = dcgettext(0,pcVar3,5);" (assignment_expression "uVar4 = dcgettext(0,pcVar3,5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,pcVar3,5)" (identifier "dcgettext") (argument_list "(0,pcVar3,5)" (( "(") (number_literal "0") (, ",") (identifier "pcVar3") (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00040b60(0,uVar4);" (call_expression "FUN_00040b60(0,uVar4)" (identifier "FUN_00040b60") (argument_list "(0,uVar4)" (( "(") (number_literal "0") (, ",") (identifier "uVar4") () ")"))) (; ";")) (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)

{
  size_t sVar1;
  size_t var_2;
  char *pcVar3;
  
  recording = !recording;
  if (recording) {
    pcVar3 = "Recording a macro...";
    var_1 = 0;
  }
  else {
    var_2 = var_1 - 1;
    if ((var_2 != 0) && (macro_buffer[var_1 - 2] == 0x1b)) {
      sVar1 = var_1 - 2;
      do {
        var_2 = sVar1;
        if (var_2 == 0) {
          var_1 = 0;
          var_2 = var_1;
          break;
        }
        sVar1 = var_2 - 1;
      } while (macro_buffer[var_2 - 1] == 0x1b);
    }
    var_1 = var_2;
    pcVar3 = "Stopped recording";
  }
  pcVar3 = (char *)var_3(0,pcVar3,5);
  var_4(HUSH,pcVar3);
  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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) 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: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (break_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (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: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier)))) (return_statement))))

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

void MASKED(void)

{
  int iVar1;
  int iVar2;
  char *pcVar3;
  undefined4 uVar4;
  
  DAT_0007b8c0 = DAT_0007b8c0 ^ 1;
  if (DAT_0007b8c0 == 0) {
    iVar2 = DAT_0007b8b8 + -1;
    if ((iVar2 != 0) && (*(int *)(DAT_0007b8bc + -8 + DAT_0007b8b8 * 4) == 0x1b)) {
      iVar1 = DAT_0007b8b8 + -2;
      do {
        iVar2 = iVar1;
        if (iVar2 == 0) {
          DAT_0007b8b8 = 0;
          iVar2 = DAT_0007b8b8;
          break;
        }
        iVar1 = iVar2 + -1;
      } while (*(int *)(DAT_0007b8bc + (iVar2 + -1) * 4) == 0x1b);
    }
    DAT_0007b8b8 = iVar2;
    pcVar3 = "Stopped recording";
  }
  else {
    pcVar3 = "Recording a macro...";
    DAT_0007b8b8 = 0;
  }
  uVar4 = dcgettext(0,pcVar3,5);
  FUN_00040b60(0,uVar4);
  return;
}

