
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void __regparm3 check_boundary(Terminal *term,int x,int y)

{
  termchar *ptVar1;
  termchar *ptVar2;
  termline *line;
  int iVar3;
  Terminal *unaff_EBX;
  termline *unaff_ESI;
  int unaff_EDI;
  
  line = lineptr(term,y,0x955,1);
  iVar3 = line->cols;
  if (term->cols != iVar3) {
    resizeline(unaff_EBX,unaff_ESI,unaff_EDI);
    iVar3 = term->cols;
  }
  if (x != iVar3) {
    if (line->chars[x].chr != 0xdfff) {
      return;
    }
    clear_cc(line,x + -1);
    clear_cc(line,x);
    ptVar2 = line->chars;
    ptVar1 = ptVar2 + x + -1;
    ptVar1->chr = 0xd820;
    ptVar2[x].chr = 0xd820;
    ptVar2[x].attr = ptVar1->attr;
    ptVar2[x].cc_next = ptVar1->cc_next;
    return;
  }
  line->lattr = line->lattr & 0xffdf;
  return;
}



void __regparm3 FUN_00074e10(int param_1,int param_2)

{
  undefined4 *puVar1;
  ushort *puVar2;
  int iVar3;
  
  puVar2 = (ushort *)FUN_00074c20(1);
  iVar3 = *(int *)(puVar2 + 2);
  if (*(int *)(param_1 + 300) != iVar3) {
    FUN_00073190();
    iVar3 = *(int *)(param_1 + 300);
  }
  if (param_2 != iVar3) {
    param_2 = param_2 * 0xc;
    if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {
      return;
    }
    FUN_00073110();
    FUN_00073110();
    iVar3 = *(int *)(puVar2 + 10);
    puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);
    *puVar1 = 0xd820;
    *(undefined4 *)(iVar3 + param_2) = 0xd820;
    *(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];
    *(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];
    return;
  }
  *puVar2 = *puVar2 & 0xffdf;
  return;
}


PUSH EDI
MOV EDI,EDX
MOV EDX,ECX
MOV ECX,0x955
PUSH ESI
MOV ESI,EAX
PUSH EBX
SUB ESP,0xc
PUSH 0x1
CALL 0x00074c20
MOV ECX,dword ptr [ESI + 0x12c]
ADD ESP,0x10
MOV EBX,EAX
MOV EAX,dword ptr [EAX + 0x4]
CMP ECX,EAX
JZ 0x00074e49
MOV EAX,ESI
MOV EDX,EBX
CALL 0x00073190
MOV EAX,dword ptr [ESI + 0x12c]
CMP EDI,EAX
JZ 0x00074e68
LEA ESI,[EDI + EDI*0x2]
MOV EAX,dword ptr [EBX + 0x14]
SHL ESI,0x2
CMP dword ptr [EAX + ESI*0x1],0xdfff
JZ 0x00074e70
POP EBX
POP ESI
POP EDI
RET
AND word ptr [EBX],0xffdf
POP EBX
POP ESI
POP EDI
RET
LEA EDX,[EDI + -0x1]
MOV EAX,EBX
CALL 0x00073110
MOV EDX,EDI
MOV EAX,EBX
CALL 0x00073110
MOV EAX,dword ptr [EBX + 0x14]
LEA EDX,[EAX + ESI*0x1 + -0xc]
MOV dword ptr [EDX],0xd820
MOV dword ptr [EAX + ESI*0x1],0xd820
MOV ECX,dword ptr [EDX + 0x4]
MOV dword ptr [EAX + ESI*0x1 + 0x4],ECX
MOV EDX,dword ptr [EDX + 0x8]
MOV dword ptr [EAX + ESI*0x1 + 0x8],EDX
POP EBX
POP ESI
POP EDI
RET
(translation_unit "void __regparm3 FUN_00074e10(int param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  ushort *puVar2;\n  int iVar3;\n  \n  puVar2 = (ushort *)FUN_00074c20(1);\n  iVar3 = *(int *)(puVar2 + 2);\n  if (*(int *)(param_1 + 300) != iVar3) {\n    FUN_00073190();\n    iVar3 = *(int *)(param_1 + 300);\n  }\n  if (param_2 != iVar3) {\n    param_2 = param_2 * 0xc;\n    if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {\n      return;\n    }\n    FUN_00073110();\n    FUN_00073110();\n    iVar3 = *(int *)(puVar2 + 10);\n    puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);\n    *puVar1 = 0xd820;\n    *(undefined4 *)(iVar3 + param_2) = 0xd820;\n    *(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];\n    *(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];\n    return;\n  }\n  *puVar2 = *puVar2 & 0xffdf;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00074e10(int param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  ushort *puVar2;\n  int iVar3;\n  \n  puVar2 = (ushort *)FUN_00074c20(1);\n  iVar3 = *(int *)(puVar2 + 2);\n  if (*(int *)(param_1 + 300) != iVar3) {\n    FUN_00073190();\n    iVar3 = *(int *)(param_1 + 300);\n  }\n  if (param_2 != iVar3) {\n    param_2 = param_2 * 0xc;\n    if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {\n      return;\n    }\n    FUN_00073110();\n    FUN_00073110();\n    iVar3 = *(int *)(puVar2 + 10);\n    puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);\n    *puVar1 = 0xd820;\n    *(undefined4 *)(iVar3 + param_2) = 0xd820;\n    *(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];\n    *(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];\n    return;\n  }\n  *puVar2 = *puVar2 & 0xffdf;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00074e10(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  ushort *puVar2;\n  int iVar3;\n  \n  puVar2 = (ushort *)FUN_00074c20(1);\n  iVar3 = *(int *)(puVar2 + 2);\n  if (*(int *)(param_1 + 300) != iVar3) {\n    FUN_00073190();\n    iVar3 = *(int *)(param_1 + 300);\n  }\n  if (param_2 != iVar3) {\n    param_2 = param_2 * 0xc;\n    if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {\n      return;\n    }\n    FUN_00073110();\n    FUN_00073110();\n    iVar3 = *(int *)(puVar2 + 10);\n    puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);\n    *puVar1 = 0xd820;\n    *(undefined4 *)(iVar3 + param_2) = 0xd820;\n    *(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];\n    *(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];\n    return;\n  }\n  *puVar2 = *puVar2 & 0xffdf;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "ushort *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "puVar2 = (ushort *)FUN_00074c20(1);" (assignment_expression "puVar2 = (ushort *)FUN_00074c20(1)" identifier = (cast_expression "(ushort *)FUN_00074c20(1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00074c20(1)" identifier (argument_list "(1)" ( number_literal ))))) ;) (expression_statement "iVar3 = *(int *)(puVar2 + 2);" (assignment_expression "iVar3 = *(int *)(puVar2 + 2)" identifier = (pointer_expression "*(int *)(puVar2 + 2)" * (cast_expression "(int *)(puVar2 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 2)" ( (binary_expression "puVar2 + 2" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 300) != iVar3) {\n    FUN_00073190();\n    iVar3 = *(int *)(param_1 + 300);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 300) != iVar3)" ( (binary_expression "*(int *)(param_1 + 300) != iVar3" (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n    FUN_00073190();\n    iVar3 = *(int *)(param_1 + 300);\n  }" { (expression_statement "FUN_00073190();" (call_expression "FUN_00073190()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 300);" (assignment_expression "iVar3 = *(int *)(param_1 + 300)" identifier = (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) ))))) ;) })) (if_statement "if (param_2 != iVar3) {\n    param_2 = param_2 * 0xc;\n    if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {\n      return;\n    }\n    FUN_00073110();\n    FUN_00073110();\n    iVar3 = *(int *)(puVar2 + 10);\n    puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);\n    *puVar1 = 0xd820;\n    *(undefined4 *)(iVar3 + param_2) = 0xd820;\n    *(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];\n    *(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];\n    return;\n  }" if (parenthesized_expression "(param_2 != iVar3)" ( (binary_expression "param_2 != iVar3" identifier != identifier) )) (compound_statement "{\n    param_2 = param_2 * 0xc;\n    if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {\n      return;\n    }\n    FUN_00073110();\n    FUN_00073110();\n    iVar3 = *(int *)(puVar2 + 10);\n    puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);\n    *puVar1 = 0xd820;\n    *(undefined4 *)(iVar3 + param_2) = 0xd820;\n    *(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];\n    *(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];\n    return;\n  }" { (expression_statement "param_2 = param_2 * 0xc;" (assignment_expression "param_2 = param_2 * 0xc" identifier = (binary_expression "param_2 * 0xc" identifier * number_literal)) ;) (if_statement "if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {\n      return;\n    }" if (parenthesized_expression "(*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff)" ( (binary_expression "*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff" (pointer_expression "*(int *)(*(int *)(puVar2 + 10) + param_2)" * (cast_expression "(int *)(*(int *)(puVar2 + 10) + param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar2 + 10) + param_2)" ( (binary_expression "*(int *)(puVar2 + 10) + param_2" (pointer_expression "*(int *)(puVar2 + 10)" * (cast_expression "(int *)(puVar2 + 10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 10)" ( (binary_expression "puVar2 + 10" identifier + number_literal) )))) + identifier) )))) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00073110();" (call_expression "FUN_00073110()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00073110();" (call_expression "FUN_00073110()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar3 = *(int *)(puVar2 + 10);" (assignment_expression "iVar3 = *(int *)(puVar2 + 10)" identifier = (pointer_expression "*(int *)(puVar2 + 10)" * (cast_expression "(int *)(puVar2 + 10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 10)" ( (binary_expression "puVar2 + 10" identifier + number_literal) ))))) ;) (expression_statement "puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);" (assignment_expression "puVar1 = (undefined4 *)(iVar3 + -0xc + param_2)" identifier = (cast_expression "(undefined4 *)(iVar3 + -0xc + param_2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -0xc + param_2)" ( (binary_expression "iVar3 + -0xc + param_2" (binary_expression "iVar3 + -0xc" identifier + number_literal) + identifier) )))) ;) (expression_statement "*puVar1 = 0xd820;" (assignment_expression "*puVar1 = 0xd820" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + param_2) = 0xd820;" (assignment_expression "*(undefined4 *)(iVar3 + param_2) = 0xd820" (pointer_expression "*(undefined4 *)(iVar3 + param_2)" * (cast_expression "(undefined4 *)(iVar3 + param_2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + param_2)" ( (binary_expression "iVar3 + param_2" identifier + identifier) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];" (assignment_expression "*(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1]" (pointer_expression "*(undefined4 *)(iVar3 + 4 + param_2)" * (cast_expression "(undefined4 *)(iVar3 + 4 + param_2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4 + param_2)" ( (binary_expression "iVar3 + 4 + param_2" (binary_expression "iVar3 + 4" identifier + number_literal) + identifier) )))) = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];" (assignment_expression "*(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2]" (pointer_expression "*(undefined4 *)(iVar3 + 8 + param_2)" * (cast_expression "(undefined4 *)(iVar3 + 8 + param_2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8 + param_2)" ( (binary_expression "iVar3 + 8 + param_2" (binary_expression "iVar3 + 8" identifier + number_literal) + identifier) )))) = (subscript_expression "puVar1[2]" identifier [ number_literal ])) ;) (return_statement "return;" return ;) })) (expression_statement "*puVar2 = *puVar2 & 0xffdf;" (assignment_expression "*puVar2 = *puVar2 & 0xffdf" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 & 0xffdf" (pointer_expression "*puVar2" * identifier) & number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid __regparm3 check_boundary(Terminal *term,int x,int y)\n\n{\n  termchar *ptVar1;\n  termchar *ptVar2;\n  termline *line;\n  int iVar3;\n  Terminal *unaff_EBX;\n  termline *unaff_ESI;\n  int unaff_EDI;\n  \n  line = lineptr(term,y,0x955,1);\n  iVar3 = line->cols;\n  if (term->cols != iVar3) {\n    resizeline(unaff_EBX,unaff_ESI,unaff_EDI);\n    iVar3 = term->cols;\n  }\n  if (x != iVar3) {\n    if (line->chars[x].chr != 0xdfff) {\n      return;\n    }\n    clear_cc(line,x + -1);\n    clear_cc(line,x);\n    ptVar2 = line->chars;\n    ptVar1 = ptVar2 + x + -1;\n    ptVar1->chr = 0xd820;\n    ptVar2[x].chr = 0xd820;\n    ptVar2[x].attr = ptVar1->attr;\n    ptVar2[x].cc_next = ptVar1->cc_next;\n    return;\n  }\n  line->lattr = line->lattr & 0xffdf;\n  return;\n}\n\n" comment (function_definition "void __regparm3 check_boundary(Terminal *term,int x,int y)\n\n{\n  termchar *ptVar1;\n  termchar *ptVar2;\n  termline *line;\n  int iVar3;\n  Terminal *unaff_EBX;\n  termline *unaff_ESI;\n  int unaff_EDI;\n  \n  line = lineptr(term,y,0x955,1);\n  iVar3 = line->cols;\n  if (term->cols != iVar3) {\n    resizeline(unaff_EBX,unaff_ESI,unaff_EDI);\n    iVar3 = term->cols;\n  }\n  if (x != iVar3) {\n    if (line->chars[x].chr != 0xdfff) {\n      return;\n    }\n    clear_cc(line,x + -1);\n    clear_cc(line,x);\n    ptVar2 = line->chars;\n    ptVar1 = ptVar2 + x + -1;\n    ptVar1->chr = 0xd820;\n    ptVar2[x].chr = 0xd820;\n    ptVar2[x].attr = ptVar1->attr;\n    ptVar2[x].cc_next = ptVar1->cc_next;\n    return;\n  }\n  line->lattr = line->lattr & 0xffdf;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "check_boundary(Terminal *term,int x,int y)" identifier (parameter_list "(Terminal *term,int x,int y)" ( (parameter_declaration "Terminal *term" type_identifier (pointer_declarator "*term" * identifier)) , (parameter_declaration "int x" primitive_type identifier) , (parameter_declaration "int y" primitive_type identifier) ))) (compound_statement "{\n  termchar *ptVar1;\n  termchar *ptVar2;\n  termline *line;\n  int iVar3;\n  Terminal *unaff_EBX;\n  termline *unaff_ESI;\n  int unaff_EDI;\n  \n  line = lineptr(term,y,0x955,1);\n  iVar3 = line->cols;\n  if (term->cols != iVar3) {\n    resizeline(unaff_EBX,unaff_ESI,unaff_EDI);\n    iVar3 = term->cols;\n  }\n  if (x != iVar3) {\n    if (line->chars[x].chr != 0xdfff) {\n      return;\n    }\n    clear_cc(line,x + -1);\n    clear_cc(line,x);\n    ptVar2 = line->chars;\n    ptVar1 = ptVar2 + x + -1;\n    ptVar1->chr = 0xd820;\n    ptVar2[x].chr = 0xd820;\n    ptVar2[x].attr = ptVar1->attr;\n    ptVar2[x].cc_next = ptVar1->cc_next;\n    return;\n  }\n  line->lattr = line->lattr & 0xffdf;\n  return;\n}" { (declaration "termchar *ptVar1;" type_identifier (pointer_declarator "*ptVar1" * identifier) ;) (declaration "termchar *ptVar2;" type_identifier (pointer_declarator "*ptVar2" * identifier) ;) (declaration "termline *line;" type_identifier (pointer_declarator "*line" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "Terminal *unaff_EBX;" type_identifier (pointer_declarator "*unaff_EBX" * identifier) ;) (declaration "termline *unaff_ESI;" type_identifier (pointer_declarator "*unaff_ESI" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "line = lineptr(term,y,0x955,1);" (assignment_expression "line = lineptr(term,y,0x955,1)" identifier = (call_expression "lineptr(term,y,0x955,1)" identifier (argument_list "(term,y,0x955,1)" ( identifier , identifier , number_literal , number_literal )))) ;) (expression_statement "iVar3 = line->cols;" (assignment_expression "iVar3 = line->cols" identifier = (field_expression "line->cols" identifier -> field_identifier)) ;) (if_statement "if (term->cols != iVar3) {\n    resizeline(unaff_EBX,unaff_ESI,unaff_EDI);\n    iVar3 = term->cols;\n  }" if (parenthesized_expression "(term->cols != iVar3)" ( (binary_expression "term->cols != iVar3" (field_expression "term->cols" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    resizeline(unaff_EBX,unaff_ESI,unaff_EDI);\n    iVar3 = term->cols;\n  }" { (expression_statement "resizeline(unaff_EBX,unaff_ESI,unaff_EDI);" (call_expression "resizeline(unaff_EBX,unaff_ESI,unaff_EDI)" identifier (argument_list "(unaff_EBX,unaff_ESI,unaff_EDI)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar3 = term->cols;" (assignment_expression "iVar3 = term->cols" identifier = (field_expression "term->cols" identifier -> field_identifier)) ;) })) (if_statement "if (x != iVar3) {\n    if (line->chars[x].chr != 0xdfff) {\n      return;\n    }\n    clear_cc(line,x + -1);\n    clear_cc(line,x);\n    ptVar2 = line->chars;\n    ptVar1 = ptVar2 + x + -1;\n    ptVar1->chr = 0xd820;\n    ptVar2[x].chr = 0xd820;\n    ptVar2[x].attr = ptVar1->attr;\n    ptVar2[x].cc_next = ptVar1->cc_next;\n    return;\n  }" if (parenthesized_expression "(x != iVar3)" ( (binary_expression "x != iVar3" identifier != identifier) )) (compound_statement "{\n    if (line->chars[x].chr != 0xdfff) {\n      return;\n    }\n    clear_cc(line,x + -1);\n    clear_cc(line,x);\n    ptVar2 = line->chars;\n    ptVar1 = ptVar2 + x + -1;\n    ptVar1->chr = 0xd820;\n    ptVar2[x].chr = 0xd820;\n    ptVar2[x].attr = ptVar1->attr;\n    ptVar2[x].cc_next = ptVar1->cc_next;\n    return;\n  }" { (if_statement "if (line->chars[x].chr != 0xdfff) {\n      return;\n    }" if (parenthesized_expression "(line->chars[x].chr != 0xdfff)" ( (binary_expression "line->chars[x].chr != 0xdfff" (field_expression "line->chars[x].chr" (subscript_expression "line->chars[x]" (field_expression "line->chars" identifier -> field_identifier) [ identifier ]) . field_identifier) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "clear_cc(line,x + -1);" (call_expression "clear_cc(line,x + -1)" identifier (argument_list "(line,x + -1)" ( identifier , (binary_expression "x + -1" identifier + number_literal) ))) ;) (expression_statement "clear_cc(line,x);" (call_expression "clear_cc(line,x)" identifier (argument_list "(line,x)" ( identifier , identifier ))) ;) (expression_statement "ptVar2 = line->chars;" (assignment_expression "ptVar2 = line->chars" identifier = (field_expression "line->chars" identifier -> field_identifier)) ;) (expression_statement "ptVar1 = ptVar2 + x + -1;" (assignment_expression "ptVar1 = ptVar2 + x + -1" identifier = (binary_expression "ptVar2 + x + -1" (binary_expression "ptVar2 + x" identifier + identifier) + number_literal)) ;) (expression_statement "ptVar1->chr = 0xd820;" (assignment_expression "ptVar1->chr = 0xd820" (field_expression "ptVar1->chr" identifier -> field_identifier) = number_literal) ;) (expression_statement "ptVar2[x].chr = 0xd820;" (assignment_expression "ptVar2[x].chr = 0xd820" (field_expression "ptVar2[x].chr" (subscript_expression "ptVar2[x]" identifier [ identifier ]) . field_identifier) = number_literal) ;) (expression_statement "ptVar2[x].attr = ptVar1->attr;" (assignment_expression "ptVar2[x].attr = ptVar1->attr" (field_expression "ptVar2[x].attr" (subscript_expression "ptVar2[x]" identifier [ identifier ]) . field_identifier) = (field_expression "ptVar1->attr" identifier -> field_identifier)) ;) (expression_statement "ptVar2[x].cc_next = ptVar1->cc_next;" (assignment_expression "ptVar2[x].cc_next = ptVar1->cc_next" (field_expression "ptVar2[x].cc_next" (subscript_expression "ptVar2[x]" identifier [ identifier ]) . field_identifier) = (field_expression "ptVar1->cc_next" identifier -> field_identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "line->lattr = line->lattr & 0xffdf;" (assignment_expression "line->lattr = line->lattr & 0xffdf" (field_expression "line->lattr" identifier -> field_identifier) = (binary_expression "line->lattr & 0xffdf" (field_expression "line->lattr" identifier -> field_identifier) & number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00074e10(int param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  ushort *puVar2;\n  int iVar3;\n  \n  puVar2 = (ushort *)FUN_00074c20(1);\n  iVar3 = *(int *)(puVar2 + 2);\n  if (*(int *)(param_1 + 300) != iVar3) {\n    FUN_00073190();\n    iVar3 = *(int *)(param_1 + 300);\n  }\n  if (param_2 != iVar3) {\n    param_2 = param_2 * 0xc;\n    if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {\n      return;\n    }\n    FUN_00073110();\n    FUN_00073110();\n    iVar3 = *(int *)(puVar2 + 10);\n    puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);\n    *puVar1 = 0xd820;\n    *(undefined4 *)(iVar3 + param_2) = 0xd820;\n    *(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];\n    *(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];\n    return;\n  }\n  *puVar2 = *puVar2 & 0xffdf;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00074e10(int param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  ushort *puVar2;\n  int iVar3;\n  \n  puVar2 = (ushort *)FUN_00074c20(1);\n  iVar3 = *(int *)(puVar2 + 2);\n  if (*(int *)(param_1 + 300) != iVar3) {\n    FUN_00073190();\n    iVar3 = *(int *)(param_1 + 300);\n  }\n  if (param_2 != iVar3) {\n    param_2 = param_2 * 0xc;\n    if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {\n      return;\n    }\n    FUN_00073110();\n    FUN_00073110();\n    iVar3 = *(int *)(puVar2 + 10);\n    puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);\n    *puVar1 = 0xd820;\n    *(undefined4 *)(iVar3 + param_2) = 0xd820;\n    *(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];\n    *(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];\n    return;\n  }\n  *puVar2 = *puVar2 & 0xffdf;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00074e10(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  ushort *puVar2;\n  int iVar3;\n  \n  puVar2 = (ushort *)FUN_00074c20(1);\n  iVar3 = *(int *)(puVar2 + 2);\n  if (*(int *)(param_1 + 300) != iVar3) {\n    FUN_00073190();\n    iVar3 = *(int *)(param_1 + 300);\n  }\n  if (param_2 != iVar3) {\n    param_2 = param_2 * 0xc;\n    if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {\n      return;\n    }\n    FUN_00073110();\n    FUN_00073110();\n    iVar3 = *(int *)(puVar2 + 10);\n    puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);\n    *puVar1 = 0xd820;\n    *(undefined4 *)(iVar3 + param_2) = 0xd820;\n    *(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];\n    *(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];\n    return;\n  }\n  *puVar2 = *puVar2 & 0xffdf;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "ushort *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "puVar2 = (ushort *)FUN_00074c20(1);" (assignment_expression "puVar2 = (ushort *)FUN_00074c20(1)" identifier = (cast_expression "(ushort *)FUN_00074c20(1)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00074c20(1)" identifier (argument_list "(1)" ( number_literal ))))) ;) (expression_statement "iVar3 = *(int *)(puVar2 + 2);" (assignment_expression "iVar3 = *(int *)(puVar2 + 2)" identifier = (pointer_expression "*(int *)(puVar2 + 2)" * (cast_expression "(int *)(puVar2 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 2)" ( (binary_expression "puVar2 + 2" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 300) != iVar3) {\n    FUN_00073190();\n    iVar3 = *(int *)(param_1 + 300);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 300) != iVar3)" ( (binary_expression "*(int *)(param_1 + 300) != iVar3" (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n    FUN_00073190();\n    iVar3 = *(int *)(param_1 + 300);\n  }" { (expression_statement "FUN_00073190();" (call_expression "FUN_00073190()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 300);" (assignment_expression "iVar3 = *(int *)(param_1 + 300)" identifier = (pointer_expression "*(int *)(param_1 + 300)" * (cast_expression "(int *)(param_1 + 300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) ))))) ;) })) (if_statement "if (param_2 != iVar3) {\n    param_2 = param_2 * 0xc;\n    if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {\n      return;\n    }\n    FUN_00073110();\n    FUN_00073110();\n    iVar3 = *(int *)(puVar2 + 10);\n    puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);\n    *puVar1 = 0xd820;\n    *(undefined4 *)(iVar3 + param_2) = 0xd820;\n    *(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];\n    *(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];\n    return;\n  }" if (parenthesized_expression "(param_2 != iVar3)" ( (binary_expression "param_2 != iVar3" identifier != identifier) )) (compound_statement "{\n    param_2 = param_2 * 0xc;\n    if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {\n      return;\n    }\n    FUN_00073110();\n    FUN_00073110();\n    iVar3 = *(int *)(puVar2 + 10);\n    puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);\n    *puVar1 = 0xd820;\n    *(undefined4 *)(iVar3 + param_2) = 0xd820;\n    *(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];\n    *(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];\n    return;\n  }" { (expression_statement "param_2 = param_2 * 0xc;" (assignment_expression "param_2 = param_2 * 0xc" identifier = (binary_expression "param_2 * 0xc" identifier * number_literal)) ;) (if_statement "if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {\n      return;\n    }" if (parenthesized_expression "(*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff)" ( (binary_expression "*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff" (pointer_expression "*(int *)(*(int *)(puVar2 + 10) + param_2)" * (cast_expression "(int *)(*(int *)(puVar2 + 10) + param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar2 + 10) + param_2)" ( (binary_expression "*(int *)(puVar2 + 10) + param_2" (pointer_expression "*(int *)(puVar2 + 10)" * (cast_expression "(int *)(puVar2 + 10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 10)" ( (binary_expression "puVar2 + 10" identifier + number_literal) )))) + identifier) )))) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00073110();" (call_expression "FUN_00073110()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00073110();" (call_expression "FUN_00073110()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar3 = *(int *)(puVar2 + 10);" (assignment_expression "iVar3 = *(int *)(puVar2 + 10)" identifier = (pointer_expression "*(int *)(puVar2 + 10)" * (cast_expression "(int *)(puVar2 + 10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 10)" ( (binary_expression "puVar2 + 10" identifier + number_literal) ))))) ;) (expression_statement "puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);" (assignment_expression "puVar1 = (undefined4 *)(iVar3 + -0xc + param_2)" identifier = (cast_expression "(undefined4 *)(iVar3 + -0xc + param_2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -0xc + param_2)" ( (binary_expression "iVar3 + -0xc + param_2" (binary_expression "iVar3 + -0xc" identifier + number_literal) + identifier) )))) ;) (expression_statement "*puVar1 = 0xd820;" (assignment_expression "*puVar1 = 0xd820" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + param_2) = 0xd820;" (assignment_expression "*(undefined4 *)(iVar3 + param_2) = 0xd820" (pointer_expression "*(undefined4 *)(iVar3 + param_2)" * (cast_expression "(undefined4 *)(iVar3 + param_2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + param_2)" ( (binary_expression "iVar3 + param_2" identifier + identifier) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];" (assignment_expression "*(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1]" (pointer_expression "*(undefined4 *)(iVar3 + 4 + param_2)" * (cast_expression "(undefined4 *)(iVar3 + 4 + param_2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4 + param_2)" ( (binary_expression "iVar3 + 4 + param_2" (binary_expression "iVar3 + 4" identifier + number_literal) + identifier) )))) = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];" (assignment_expression "*(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2]" (pointer_expression "*(undefined4 *)(iVar3 + 8 + param_2)" * (cast_expression "(undefined4 *)(iVar3 + 8 + param_2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8 + param_2)" ( (binary_expression "iVar3 + 8 + param_2" (binary_expression "iVar3 + 8" identifier + number_literal) + identifier) )))) = (subscript_expression "puVar1[2]" identifier [ number_literal ])) ;) (return_statement "return;" return ;) })) (expression_statement "*puVar2 = *puVar2 & 0xffdf;" (assignment_expression "*puVar2 = *puVar2 & 0xffdf" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 & 0xffdf" (pointer_expression "*puVar2" * identifier) & number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (if_statement if (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) )))) + IDENT) )))) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) = (subscript_expression IDENT [ LIT ])) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) & LIT)) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00074e10(int param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  ushort *puVar2;\n  int iVar3;\n  \n  puVar2 = (ushort *)FUN_00074c20(1);\n  iVar3 = *(int *)(puVar2 + 2);\n  if (*(int *)(param_1 + 300) != iVar3) {\n    FUN_00073190();\n    iVar3 = *(int *)(param_1 + 300);\n  }\n  if (param_2 != iVar3) {\n    param_2 = param_2 * 0xc;\n    if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {\n      return;\n    }\n    FUN_00073110();\n    FUN_00073110();\n    iVar3 = *(int *)(puVar2 + 10);\n    puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);\n    *puVar1 = 0xd820;\n    *(undefined4 *)(iVar3 + param_2) = 0xd820;\n    *(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];\n    *(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];\n    return;\n  }\n  *puVar2 = *puVar2 & 0xffdf;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00074e10(int param_1,int param_2)" (identifier "FUN_00074e10") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  ushort *puVar2;\n  int iVar3;\n  \n  puVar2 = (ushort *)FUN_00074c20(1);\n  iVar3 = *(int *)(puVar2 + 2);\n  if (*(int *)(param_1 + 300) != iVar3) {\n    FUN_00073190();\n    iVar3 = *(int *)(param_1 + 300);\n  }\n  if (param_2 != iVar3) {\n    param_2 = param_2 * 0xc;\n    if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {\n      return;\n    }\n    FUN_00073110();\n    FUN_00073110();\n    iVar3 = *(int *)(puVar2 + 10);\n    puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);\n    *puVar1 = 0xd820;\n    *(undefined4 *)(iVar3 + param_2) = 0xd820;\n    *(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];\n    *(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];\n    return;\n  }\n  *puVar2 = *puVar2 & 0xffdf;\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "ushort *puVar2;" (type_identifier "ushort") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "puVar2 = (ushort *)FUN_00074c20(1);" (assignment_expression "puVar2 = (ushort *)FUN_00074c20(1)" (identifier "puVar2") (= "=") (cast_expression "(ushort *)FUN_00074c20(1)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00074c20(1)" (identifier "FUN_00074c20") (argument_list "(1)" (( "(") (number_literal "1") () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(puVar2 + 2);" (assignment_expression "iVar3 = *(int *)(puVar2 + 2)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(puVar2 + 2)" (* "*") (cast_expression "(int *)(puVar2 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 2)" (( "(") (binary_expression "puVar2 + 2" (identifier "puVar2") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_1 + 300) != iVar3) {\n    FUN_00073190();\n    iVar3 = *(int *)(param_1 + 300);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 300) != iVar3)" (( "(") (binary_expression "*(int *)(param_1 + 300) != iVar3" (pointer_expression "*(int *)(param_1 + 300)" (* "*") (cast_expression "(int *)(param_1 + 300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")")))) (!= "!=") (identifier "iVar3")) () ")")) (compound_statement "{\n    FUN_00073190();\n    iVar3 = *(int *)(param_1 + 300);\n  }" ({ "{") (expression_statement "FUN_00073190();" (call_expression "FUN_00073190()" (identifier "FUN_00073190") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 300);" (assignment_expression "iVar3 = *(int *)(param_1 + 300)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 300)" (* "*") (cast_expression "(int *)(param_1 + 300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (param_2 != iVar3) {\n    param_2 = param_2 * 0xc;\n    if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {\n      return;\n    }\n    FUN_00073110();\n    FUN_00073110();\n    iVar3 = *(int *)(puVar2 + 10);\n    puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);\n    *puVar1 = 0xd820;\n    *(undefined4 *)(iVar3 + param_2) = 0xd820;\n    *(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];\n    *(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 != iVar3)" (( "(") (binary_expression "param_2 != iVar3" (identifier "param_2") (!= "!=") (identifier "iVar3")) () ")")) (compound_statement "{\n    param_2 = param_2 * 0xc;\n    if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {\n      return;\n    }\n    FUN_00073110();\n    FUN_00073110();\n    iVar3 = *(int *)(puVar2 + 10);\n    puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);\n    *puVar1 = 0xd820;\n    *(undefined4 *)(iVar3 + param_2) = 0xd820;\n    *(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];\n    *(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];\n    return;\n  }" ({ "{") (expression_statement "param_2 = param_2 * 0xc;" (assignment_expression "param_2 = param_2 * 0xc" (identifier "param_2") (= "=") (binary_expression "param_2 * 0xc" (identifier "param_2") (* "*") (number_literal "0xc"))) (; ";")) (if_statement "if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff)" (( "(") (binary_expression "*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff" (pointer_expression "*(int *)(*(int *)(puVar2 + 10) + param_2)" (* "*") (cast_expression "(int *)(*(int *)(puVar2 + 10) + param_2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar2 + 10) + param_2)" (( "(") (binary_expression "*(int *)(puVar2 + 10) + param_2" (pointer_expression "*(int *)(puVar2 + 10)" (* "*") (cast_expression "(int *)(puVar2 + 10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 10)" (( "(") (binary_expression "puVar2 + 10" (identifier "puVar2") (+ "+") (number_literal "10")) () ")")))) (+ "+") (identifier "param_2")) () ")")))) (!= "!=") (number_literal "0xdfff")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00073110();" (call_expression "FUN_00073110()" (identifier "FUN_00073110") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00073110();" (call_expression "FUN_00073110()" (identifier "FUN_00073110") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)(puVar2 + 10);" (assignment_expression "iVar3 = *(int *)(puVar2 + 10)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(puVar2 + 10)" (* "*") (cast_expression "(int *)(puVar2 + 10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 10)" (( "(") (binary_expression "puVar2 + 10" (identifier "puVar2") (+ "+") (number_literal "10")) () ")"))))) (; ";")) (expression_statement "puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);" (assignment_expression "puVar1 = (undefined4 *)(iVar3 + -0xc + param_2)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(iVar3 + -0xc + param_2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + -0xc + param_2)" (( "(") (binary_expression "iVar3 + -0xc + param_2" (binary_expression "iVar3 + -0xc" (identifier "iVar3") (+ "+") (number_literal "-0xc")) (+ "+") (identifier "param_2")) () ")")))) (; ";")) (expression_statement "*puVar1 = 0xd820;" (assignment_expression "*puVar1 = 0xd820" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0xd820")) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + param_2) = 0xd820;" (assignment_expression "*(undefined4 *)(iVar3 + param_2) = 0xd820" (pointer_expression "*(undefined4 *)(iVar3 + param_2)" (* "*") (cast_expression "(undefined4 *)(iVar3 + param_2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + param_2)" (( "(") (binary_expression "iVar3 + param_2" (identifier "iVar3") (+ "+") (identifier "param_2")) () ")")))) (= "=") (number_literal "0xd820")) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];" (assignment_expression "*(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1]" (pointer_expression "*(undefined4 *)(iVar3 + 4 + param_2)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 4 + param_2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4 + param_2)" (( "(") (binary_expression "iVar3 + 4 + param_2" (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) (+ "+") (identifier "param_2")) () ")")))) (= "=") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];" (assignment_expression "*(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2]" (pointer_expression "*(undefined4 *)(iVar3 + 8 + param_2)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 8 + param_2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8 + param_2)" (( "(") (binary_expression "iVar3 + 8 + param_2" (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) (+ "+") (identifier "param_2")) () ")")))) (= "=") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*puVar2 = *puVar2 & 0xffdf;" (assignment_expression "*puVar2 = *puVar2 & 0xffdf" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (binary_expression "*puVar2 & 0xffdf" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (& "&") (number_literal "0xffdf"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void __regparm3 function_1(type_1 *term,int var_4,int y)

{
  type_2 *ptVar1;
  type_2 *var_6;
  type_3 *line;
  int var_2;
  type_1 *unaff_EBX;
  type_3 *unaff_ESI;
  int unaff_EDI;
  
  line = var_1(term,y,0x955,1);
  var_2 = line->cols;
  if (term->cols != var_2) {
    var_3(unaff_EBX,unaff_ESI,unaff_EDI);
    var_2 = term->cols;
  }
  if (var_4 != var_2) {
    if (line->chars[var_4].chr != 0xdfff) {
      return;
    }
    var_5(line,var_4 + -1);
    var_5(line,var_4);
    var_6 = line->chars;
    ptVar1 = var_6 + var_4 + -1;
    ptVar1->chr = 0xd820;
    var_6[var_4].chr = 0xd820;
    var_6[var_4].attr = ptVar1->attr;
    var_6[var_4].cc_next = ptVar1->cc_next;
    return;
  }
  line->lattr = line->lattr & 0xffdf;
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) 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: (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: (identifier))))) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (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: (identifier))))) right: (number_literal))) (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: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (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: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (return_statement))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (return_statement))))

void __regparm3 MASKED(int param_1,int param_2)

{
  undefined4 *puVar1;
  ushort *puVar2;
  int iVar3;
  
  puVar2 = (ushort *)FUN_00074c20(1);
  iVar3 = *(int *)(puVar2 + 2);
  if (*(int *)(param_1 + 300) != iVar3) {
    FUN_00073190();
    iVar3 = *(int *)(param_1 + 300);
  }
  if (param_2 != iVar3) {
    param_2 = param_2 * 0xc;
    if (*(int *)(*(int *)(puVar2 + 10) + param_2) != 0xdfff) {
      return;
    }
    FUN_00073110();
    FUN_00073110();
    iVar3 = *(int *)(puVar2 + 10);
    puVar1 = (undefined4 *)(iVar3 + -0xc + param_2);
    *puVar1 = 0xd820;
    *(undefined4 *)(iVar3 + param_2) = 0xd820;
    *(undefined4 *)(iVar3 + 4 + param_2) = puVar1[1];
    *(undefined4 *)(iVar3 + 8 + param_2) = puVar1[2];
    return;
  }
  *puVar2 = *puVar2 & 0xffdf;
  return;
}

