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

int __regparm3 plen(Ldisc ldisc,uchar c)

{
  Terminal *pTVar1;
  uint uVar2;
  int iVar3;
  
  if ((byte)(c - 0x20) < 0x5f) {
    return 1;
  }
  if (c < 0xa0) {
    iVar3 = 2;
    if ((-1 < (char)c) ||
       ((ldisc->term->utf == 0 && (iVar3 = 4, ldisc->term->ucsdata->line_codepage != 0x37)))) {
      return iVar3;
    }
  }
  else {
    pTVar1 = ldisc->term;
    if (pTVar1->utf == 0) {
      uVar2 = 1;
      if ((pTVar1->ucsdata->line_codepage == 0x37) &&
         (uVar2 = 4, pTVar1->ucsdata->line_codepage == 0x37)) {
        uVar2 = (uint)(0xbf < c);
      }
      return uVar2;
    }
  }
  return (uint)(0xbf < c);
}



undefined1 __regparm3 FUN_00029d60(int *param_1,byte param_2)

{
  int iVar1;
  undefined1 uVar2;
  
  if ((byte)(param_2 - 0x20) < 0x5f) {
    return true;
  }
  if (param_2 < 0xa0) {
    uVar2 = 2;
    if ((-1 < (char)param_2) ||
       ((*(int *)(*param_1 + 0xdc) == 0 &&
        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {
      return uVar2;
    }
  }
  else {
    iVar1 = *param_1;
    if (*(int *)(iVar1 + 0xdc) == 0) {
      uVar2 = 1;
      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&
         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {
        uVar2 = 0xbf < param_2;
      }
      return uVar2;
    }
  }
  return 0xbf < param_2;
}


LEA ECX,[EDX + -0x20]
CMP CL,0x5e
JBE 0x00029df0
CMP DL,0x9f
JBE 0x00029db0
MOV EAX,dword ptr [EAX]
MOV ECX,dword ptr [EAX + 0xdc]
TEST ECX,ECX
JNZ 0x00029de0
PUSH EBX
MOV EBX,dword ptr [EAX + 0x1090]
MOV ECX,0x1
CMP dword ptr [EBX + 0xc],0x37
JNZ 0x00029da8
MOV EAX,dword ptr [EAX + 0x1090]
MOV ECX,0x4
CMP dword ptr [EAX + 0xc],0x37
JNZ 0x00029da8
XOR ECX,ECX
CMP DL,0xbf
SETA CL
MOV EAX,ECX
POP EBX
RET
MOV ECX,0x2
TEST DL,DL
JNS 0x00029dd6
MOV EAX,dword ptr [EAX]
MOV ECX,dword ptr [EAX + 0xdc]
TEST ECX,ECX
JNZ 0x00029de0
MOV EAX,dword ptr [EAX + 0x1090]
MOV ECX,0x4
CMP dword ptr [EAX + 0xc],0x37
JZ 0x00029de0
MOV EAX,ECX
RET
XOR ECX,ECX
CMP DL,0xbf
SETA CL
MOV EAX,ECX
RET
MOV ECX,0x1
MOV EAX,ECX
RET
(translation_unit "undefined1 __regparm3 FUN_00029d60(int *param_1,byte param_2)\n\n{\n  int iVar1;\n  undefined1 uVar2;\n  \n  if ((byte)(param_2 - 0x20) < 0x5f) {\n    return true;\n  }\n  if (param_2 < 0xa0) {\n    uVar2 = 2;\n    if ((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {\n      return uVar2;\n    }\n  }\n  else {\n    iVar1 = *param_1;\n    if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }\n  }\n  return 0xbf < param_2;\n}\n\n" (function_definition "undefined1 __regparm3 FUN_00029d60(int *param_1,byte param_2)\n\n{\n  int iVar1;\n  undefined1 uVar2;\n  \n  if ((byte)(param_2 - 0x20) < 0x5f) {\n    return true;\n  }\n  if (param_2 < 0xa0) {\n    uVar2 = 2;\n    if ((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {\n      return uVar2;\n    }\n  }\n  else {\n    iVar1 = *param_1;\n    if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }\n  }\n  return 0xbf < param_2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00029d60(int *param_1,byte param_2)" identifier (parameter_list "(int *param_1,byte param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined1 uVar2;\n  \n  if ((byte)(param_2 - 0x20) < 0x5f) {\n    return true;\n  }\n  if (param_2 < 0xa0) {\n    uVar2 = 2;\n    if ((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {\n      return uVar2;\n    }\n  }\n  else {\n    iVar1 = *param_1;\n    if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }\n  }\n  return 0xbf < param_2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (if_statement "if ((byte)(param_2 - 0x20) < 0x5f) {\n    return true;\n  }" if (parenthesized_expression "((byte)(param_2 - 0x20) < 0x5f)" ( (binary_expression "(byte)(param_2 - 0x20) < 0x5f" (call_expression "(byte)(param_2 - 0x20)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 - 0x20)" ( (binary_expression "param_2 - 0x20" identifier - number_literal) ))) < number_literal) )) (compound_statement "{\n    return true;\n  }" { (return_statement "return true;" return true ;) })) (if_statement "if (param_2 < 0xa0) {\n    uVar2 = 2;\n    if ((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {\n      return uVar2;\n    }\n  }\n  else {\n    iVar1 = *param_1;\n    if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }\n  }" if (parenthesized_expression "(param_2 < 0xa0)" ( (binary_expression "param_2 < 0xa0" identifier < number_literal) )) (compound_statement "{\n    uVar2 = 2;\n    if ((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {\n      return uVar2;\n    }\n  }" { (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" identifier = number_literal) ;) (if_statement "if ((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {\n      return uVar2;\n    }" if (parenthesized_expression "((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37))))" ( (binary_expression "(-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))" (parenthesized_expression "(-1 < (char)param_2)" ( (binary_expression "-1 < (char)param_2" number_literal < (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) )) || (parenthesized_expression "((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))" ( (parenthesized_expression "(*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37))" ( (binary_expression "*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)" (binary_expression "*(int *)(*param_1 + 0xdc) == 0" (pointer_expression "*(int *)(*param_1 + 0xdc)" * (cast_expression "(int *)(*param_1 + 0xdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xdc)" ( (binary_expression "*param_1 + 0xdc" (pointer_expression "*param_1" * identifier) + number_literal) )))) == number_literal) && (parenthesized_expression "(uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)" ( (comma_expression "uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37" (assignment_expression "uVar2 = 4" identifier = number_literal) , (binary_expression "*(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37" (pointer_expression "*(int *)(*(int *)(*param_1 + 0x1090) + 0xc)" * (cast_expression "(int *)(*(int *)(*param_1 + 0x1090) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*param_1 + 0x1090) + 0xc)" ( (binary_expression "*(int *)(*param_1 + 0x1090) + 0xc" (pointer_expression "*(int *)(*param_1 + 0x1090)" * (cast_expression "(int *)(*param_1 + 0x1090)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x1090)" ( (binary_expression "*param_1 + 0x1090" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal) )))) != number_literal)) ))) )) ))) )) (compound_statement "{\n      return uVar2;\n    }" { (return_statement "return uVar2;" return identifier ;) })) }) (else_clause "else {\n    iVar1 = *param_1;\n    if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }\n  }" else (compound_statement "{\n    iVar1 = *param_1;\n    if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }\n  }" { (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0xdc) == 0)" ( (binary_expression "*(int *)(iVar1 + 0xdc) == 0" (pointer_expression "*(int *)(iVar1 + 0xdc)" * (cast_expression "(int *)(iVar1 + 0xdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xdc)" ( (binary_expression "iVar1 + 0xdc" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }" if (parenthesized_expression "((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37))" ( (binary_expression "(*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)" (parenthesized_expression "(*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)" ( (binary_expression "*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37" (pointer_expression "*(int *)(*(int *)(iVar1 + 0x1090) + 0xc)" * (cast_expression "(int *)(*(int *)(iVar1 + 0x1090) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0x1090) + 0xc)" ( (binary_expression "*(int *)(iVar1 + 0x1090) + 0xc" (pointer_expression "*(int *)(iVar1 + 0x1090)" * (cast_expression "(int *)(iVar1 + 0x1090)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1090)" ( (binary_expression "iVar1 + 0x1090" identifier + number_literal) )))) + number_literal) )))) == number_literal) )) && (parenthesized_expression "(uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)" ( (comma_expression "uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37" (assignment_expression "uVar2 = 4" identifier = number_literal) , (binary_expression "*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37" (pointer_expression "*(int *)(*(int *)(iVar1 + 0x1090) + 0xc)" * (cast_expression "(int *)(*(int *)(iVar1 + 0x1090) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0x1090) + 0xc)" ( (binary_expression "*(int *)(iVar1 + 0x1090) + 0xc" (pointer_expression "*(int *)(iVar1 + 0x1090)" * (cast_expression "(int *)(iVar1 + 0x1090)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1090)" ( (binary_expression "iVar1 + 0x1090" identifier + number_literal) )))) + number_literal) )))) == number_literal)) ))) )) (compound_statement "{\n        uVar2 = 0xbf < param_2;\n      }" { (expression_statement "uVar2 = 0xbf < param_2;" (assignment_expression "uVar2 = 0xbf < param_2" identifier = (binary_expression "0xbf < param_2" number_literal < identifier)) ;) })) (return_statement "return uVar2;" return identifier ;) })) }))) (return_statement "return 0xbf < param_2;" return (binary_expression "0xbf < param_2" number_literal < identifier) ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint __regparm3 plen(Ldisc ldisc,uchar c)\n\n{\n  Terminal *pTVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if ((byte)(c - 0x20) < 0x5f) {\n    return 1;\n  }\n  if (c < 0xa0) {\n    iVar3 = 2;\n    if ((-1 < (char)c) ||\n       ((ldisc->term->utf == 0 && (iVar3 = 4, ldisc->term->ucsdata->line_codepage != 0x37)))) {\n      return iVar3;\n    }\n  }\n  else {\n    pTVar1 = ldisc->term;\n    if (pTVar1->utf == 0) {\n      uVar2 = 1;\n      if ((pTVar1->ucsdata->line_codepage == 0x37) &&\n         (uVar2 = 4, pTVar1->ucsdata->line_codepage == 0x37)) {\n        uVar2 = (uint)(0xbf < c);\n      }\n      return uVar2;\n    }\n  }\n  return (uint)(0xbf < c);\n}\n\n" comment (function_definition "int __regparm3 plen(Ldisc ldisc,uchar c)\n\n{\n  Terminal *pTVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if ((byte)(c - 0x20) < 0x5f) {\n    return 1;\n  }\n  if (c < 0xa0) {\n    iVar3 = 2;\n    if ((-1 < (char)c) ||\n       ((ldisc->term->utf == 0 && (iVar3 = 4, ldisc->term->ucsdata->line_codepage != 0x37)))) {\n      return iVar3;\n    }\n  }\n  else {\n    pTVar1 = ldisc->term;\n    if (pTVar1->utf == 0) {\n      uVar2 = 1;\n      if ((pTVar1->ucsdata->line_codepage == 0x37) &&\n         (uVar2 = 4, pTVar1->ucsdata->line_codepage == 0x37)) {\n        uVar2 = (uint)(0xbf < c);\n      }\n      return uVar2;\n    }\n  }\n  return (uint)(0xbf < c);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "plen(Ldisc ldisc,uchar c)" identifier (parameter_list "(Ldisc ldisc,uchar c)" ( (parameter_declaration "Ldisc ldisc" type_identifier identifier) , (parameter_declaration "uchar c" type_identifier identifier) ))) (compound_statement "{\n  Terminal *pTVar1;\n  uint uVar2;\n  int iVar3;\n  \n  if ((byte)(c - 0x20) < 0x5f) {\n    return 1;\n  }\n  if (c < 0xa0) {\n    iVar3 = 2;\n    if ((-1 < (char)c) ||\n       ((ldisc->term->utf == 0 && (iVar3 = 4, ldisc->term->ucsdata->line_codepage != 0x37)))) {\n      return iVar3;\n    }\n  }\n  else {\n    pTVar1 = ldisc->term;\n    if (pTVar1->utf == 0) {\n      uVar2 = 1;\n      if ((pTVar1->ucsdata->line_codepage == 0x37) &&\n         (uVar2 = 4, pTVar1->ucsdata->line_codepage == 0x37)) {\n        uVar2 = (uint)(0xbf < c);\n      }\n      return uVar2;\n    }\n  }\n  return (uint)(0xbf < c);\n}" { (declaration "Terminal *pTVar1;" type_identifier (pointer_declarator "*pTVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if ((byte)(c - 0x20) < 0x5f) {\n    return 1;\n  }" if (parenthesized_expression "((byte)(c - 0x20) < 0x5f)" ( (binary_expression "(byte)(c - 0x20) < 0x5f" (call_expression "(byte)(c - 0x20)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(c - 0x20)" ( (binary_expression "c - 0x20" identifier - number_literal) ))) < number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (c < 0xa0) {\n    iVar3 = 2;\n    if ((-1 < (char)c) ||\n       ((ldisc->term->utf == 0 && (iVar3 = 4, ldisc->term->ucsdata->line_codepage != 0x37)))) {\n      return iVar3;\n    }\n  }\n  else {\n    pTVar1 = ldisc->term;\n    if (pTVar1->utf == 0) {\n      uVar2 = 1;\n      if ((pTVar1->ucsdata->line_codepage == 0x37) &&\n         (uVar2 = 4, pTVar1->ucsdata->line_codepage == 0x37)) {\n        uVar2 = (uint)(0xbf < c);\n      }\n      return uVar2;\n    }\n  }" if (parenthesized_expression "(c < 0xa0)" ( (binary_expression "c < 0xa0" identifier < number_literal) )) (compound_statement "{\n    iVar3 = 2;\n    if ((-1 < (char)c) ||\n       ((ldisc->term->utf == 0 && (iVar3 = 4, ldisc->term->ucsdata->line_codepage != 0x37)))) {\n      return iVar3;\n    }\n  }" { (expression_statement "iVar3 = 2;" (assignment_expression "iVar3 = 2" identifier = number_literal) ;) (if_statement "if ((-1 < (char)c) ||\n       ((ldisc->term->utf == 0 && (iVar3 = 4, ldisc->term->ucsdata->line_codepage != 0x37)))) {\n      return iVar3;\n    }" if (parenthesized_expression "((-1 < (char)c) ||\n       ((ldisc->term->utf == 0 && (iVar3 = 4, ldisc->term->ucsdata->line_codepage != 0x37))))" ( (binary_expression "(-1 < (char)c) ||\n       ((ldisc->term->utf == 0 && (iVar3 = 4, ldisc->term->ucsdata->line_codepage != 0x37)))" (parenthesized_expression "(-1 < (char)c)" ( (binary_expression "-1 < (char)c" number_literal < (cast_expression "(char)c" ( (type_descriptor "char" primitive_type) ) identifier)) )) || (parenthesized_expression "((ldisc->term->utf == 0 && (iVar3 = 4, ldisc->term->ucsdata->line_codepage != 0x37)))" ( (parenthesized_expression "(ldisc->term->utf == 0 && (iVar3 = 4, ldisc->term->ucsdata->line_codepage != 0x37))" ( (binary_expression "ldisc->term->utf == 0 && (iVar3 = 4, ldisc->term->ucsdata->line_codepage != 0x37)" (binary_expression "ldisc->term->utf == 0" (field_expression "ldisc->term->utf" (field_expression "ldisc->term" identifier -> field_identifier) -> field_identifier) == number_literal) && (parenthesized_expression "(iVar3 = 4, ldisc->term->ucsdata->line_codepage != 0x37)" ( (comma_expression "iVar3 = 4, ldisc->term->ucsdata->line_codepage != 0x37" (assignment_expression "iVar3 = 4" identifier = number_literal) , (binary_expression "ldisc->term->ucsdata->line_codepage != 0x37" (field_expression "ldisc->term->ucsdata->line_codepage" (field_expression "ldisc->term->ucsdata" (field_expression "ldisc->term" identifier -> field_identifier) -> field_identifier) -> field_identifier) != number_literal)) ))) )) ))) )) (compound_statement "{\n      return iVar3;\n    }" { (return_statement "return iVar3;" return identifier ;) })) }) (else_clause "else {\n    pTVar1 = ldisc->term;\n    if (pTVar1->utf == 0) {\n      uVar2 = 1;\n      if ((pTVar1->ucsdata->line_codepage == 0x37) &&\n         (uVar2 = 4, pTVar1->ucsdata->line_codepage == 0x37)) {\n        uVar2 = (uint)(0xbf < c);\n      }\n      return uVar2;\n    }\n  }" else (compound_statement "{\n    pTVar1 = ldisc->term;\n    if (pTVar1->utf == 0) {\n      uVar2 = 1;\n      if ((pTVar1->ucsdata->line_codepage == 0x37) &&\n         (uVar2 = 4, pTVar1->ucsdata->line_codepage == 0x37)) {\n        uVar2 = (uint)(0xbf < c);\n      }\n      return uVar2;\n    }\n  }" { (expression_statement "pTVar1 = ldisc->term;" (assignment_expression "pTVar1 = ldisc->term" identifier = (field_expression "ldisc->term" identifier -> field_identifier)) ;) (if_statement "if (pTVar1->utf == 0) {\n      uVar2 = 1;\n      if ((pTVar1->ucsdata->line_codepage == 0x37) &&\n         (uVar2 = 4, pTVar1->ucsdata->line_codepage == 0x37)) {\n        uVar2 = (uint)(0xbf < c);\n      }\n      return uVar2;\n    }" if (parenthesized_expression "(pTVar1->utf == 0)" ( (binary_expression "pTVar1->utf == 0" (field_expression "pTVar1->utf" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      uVar2 = 1;\n      if ((pTVar1->ucsdata->line_codepage == 0x37) &&\n         (uVar2 = 4, pTVar1->ucsdata->line_codepage == 0x37)) {\n        uVar2 = (uint)(0xbf < c);\n      }\n      return uVar2;\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if ((pTVar1->ucsdata->line_codepage == 0x37) &&\n         (uVar2 = 4, pTVar1->ucsdata->line_codepage == 0x37)) {\n        uVar2 = (uint)(0xbf < c);\n      }" if (parenthesized_expression "((pTVar1->ucsdata->line_codepage == 0x37) &&\n         (uVar2 = 4, pTVar1->ucsdata->line_codepage == 0x37))" ( (binary_expression "(pTVar1->ucsdata->line_codepage == 0x37) &&\n         (uVar2 = 4, pTVar1->ucsdata->line_codepage == 0x37)" (parenthesized_expression "(pTVar1->ucsdata->line_codepage == 0x37)" ( (binary_expression "pTVar1->ucsdata->line_codepage == 0x37" (field_expression "pTVar1->ucsdata->line_codepage" (field_expression "pTVar1->ucsdata" identifier -> field_identifier) -> field_identifier) == number_literal) )) && (parenthesized_expression "(uVar2 = 4, pTVar1->ucsdata->line_codepage == 0x37)" ( (comma_expression "uVar2 = 4, pTVar1->ucsdata->line_codepage == 0x37" (assignment_expression "uVar2 = 4" identifier = number_literal) , (binary_expression "pTVar1->ucsdata->line_codepage == 0x37" (field_expression "pTVar1->ucsdata->line_codepage" (field_expression "pTVar1->ucsdata" identifier -> field_identifier) -> field_identifier) == number_literal)) ))) )) (compound_statement "{\n        uVar2 = (uint)(0xbf < c);\n      }" { (expression_statement "uVar2 = (uint)(0xbf < c);" (assignment_expression "uVar2 = (uint)(0xbf < c)" identifier = (call_expression "(uint)(0xbf < c)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xbf < c)" ( (binary_expression "0xbf < c" number_literal < identifier) )))) ;) })) (return_statement "return uVar2;" return identifier ;) })) }))) (return_statement "return (uint)(0xbf < c);" return (call_expression "(uint)(0xbf < c)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xbf < c)" ( (binary_expression "0xbf < c" number_literal < identifier) ))) ;) })))
(translation_unit "undefined1 __regparm3 FUN_00029d60(int *param_1,byte param_2)\n\n{\n  int iVar1;\n  undefined1 uVar2;\n  \n  if ((byte)(param_2 - 0x20) < 0x5f) {\n    return true;\n  }\n  if (param_2 < 0xa0) {\n    uVar2 = 2;\n    if ((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {\n      return uVar2;\n    }\n  }\n  else {\n    iVar1 = *param_1;\n    if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }\n  }\n  return 0xbf < param_2;\n}\n\n" (function_definition "undefined1 __regparm3 FUN_00029d60(int *param_1,byte param_2)\n\n{\n  int iVar1;\n  undefined1 uVar2;\n  \n  if ((byte)(param_2 - 0x20) < 0x5f) {\n    return true;\n  }\n  if (param_2 < 0xa0) {\n    uVar2 = 2;\n    if ((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {\n      return uVar2;\n    }\n  }\n  else {\n    iVar1 = *param_1;\n    if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }\n  }\n  return 0xbf < param_2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00029d60(int *param_1,byte param_2)" identifier (parameter_list "(int *param_1,byte param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined1 uVar2;\n  \n  if ((byte)(param_2 - 0x20) < 0x5f) {\n    return true;\n  }\n  if (param_2 < 0xa0) {\n    uVar2 = 2;\n    if ((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {\n      return uVar2;\n    }\n  }\n  else {\n    iVar1 = *param_1;\n    if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }\n  }\n  return 0xbf < param_2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (if_statement "if ((byte)(param_2 - 0x20) < 0x5f) {\n    return true;\n  }" if (parenthesized_expression "((byte)(param_2 - 0x20) < 0x5f)" ( (binary_expression "(byte)(param_2 - 0x20) < 0x5f" (call_expression "(byte)(param_2 - 0x20)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 - 0x20)" ( (binary_expression "param_2 - 0x20" identifier - number_literal) ))) < number_literal) )) (compound_statement "{\n    return true;\n  }" { (return_statement "return true;" return true ;) })) (if_statement "if (param_2 < 0xa0) {\n    uVar2 = 2;\n    if ((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {\n      return uVar2;\n    }\n  }\n  else {\n    iVar1 = *param_1;\n    if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }\n  }" if (parenthesized_expression "(param_2 < 0xa0)" ( (binary_expression "param_2 < 0xa0" identifier < number_literal) )) (compound_statement "{\n    uVar2 = 2;\n    if ((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {\n      return uVar2;\n    }\n  }" { (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" identifier = number_literal) ;) (if_statement "if ((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {\n      return uVar2;\n    }" if (parenthesized_expression "((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37))))" ( (binary_expression "(-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))" (parenthesized_expression "(-1 < (char)param_2)" ( (binary_expression "-1 < (char)param_2" number_literal < (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) )) || (parenthesized_expression "((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))" ( (parenthesized_expression "(*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37))" ( (binary_expression "*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)" (binary_expression "*(int *)(*param_1 + 0xdc) == 0" (pointer_expression "*(int *)(*param_1 + 0xdc)" * (cast_expression "(int *)(*param_1 + 0xdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xdc)" ( (binary_expression "*param_1 + 0xdc" (pointer_expression "*param_1" * identifier) + number_literal) )))) == number_literal) && (parenthesized_expression "(uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)" ( (comma_expression "uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37" (assignment_expression "uVar2 = 4" identifier = number_literal) , (binary_expression "*(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37" (pointer_expression "*(int *)(*(int *)(*param_1 + 0x1090) + 0xc)" * (cast_expression "(int *)(*(int *)(*param_1 + 0x1090) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*param_1 + 0x1090) + 0xc)" ( (binary_expression "*(int *)(*param_1 + 0x1090) + 0xc" (pointer_expression "*(int *)(*param_1 + 0x1090)" * (cast_expression "(int *)(*param_1 + 0x1090)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x1090)" ( (binary_expression "*param_1 + 0x1090" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal) )))) != number_literal)) ))) )) ))) )) (compound_statement "{\n      return uVar2;\n    }" { (return_statement "return uVar2;" return identifier ;) })) }) (else_clause "else {\n    iVar1 = *param_1;\n    if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }\n  }" else (compound_statement "{\n    iVar1 = *param_1;\n    if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }\n  }" { (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0xdc) == 0)" ( (binary_expression "*(int *)(iVar1 + 0xdc) == 0" (pointer_expression "*(int *)(iVar1 + 0xdc)" * (cast_expression "(int *)(iVar1 + 0xdc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xdc)" ( (binary_expression "iVar1 + 0xdc" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }" if (parenthesized_expression "((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37))" ( (binary_expression "(*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)" (parenthesized_expression "(*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)" ( (binary_expression "*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37" (pointer_expression "*(int *)(*(int *)(iVar1 + 0x1090) + 0xc)" * (cast_expression "(int *)(*(int *)(iVar1 + 0x1090) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0x1090) + 0xc)" ( (binary_expression "*(int *)(iVar1 + 0x1090) + 0xc" (pointer_expression "*(int *)(iVar1 + 0x1090)" * (cast_expression "(int *)(iVar1 + 0x1090)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1090)" ( (binary_expression "iVar1 + 0x1090" identifier + number_literal) )))) + number_literal) )))) == number_literal) )) && (parenthesized_expression "(uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)" ( (comma_expression "uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37" (assignment_expression "uVar2 = 4" identifier = number_literal) , (binary_expression "*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37" (pointer_expression "*(int *)(*(int *)(iVar1 + 0x1090) + 0xc)" * (cast_expression "(int *)(*(int *)(iVar1 + 0x1090) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar1 + 0x1090) + 0xc)" ( (binary_expression "*(int *)(iVar1 + 0x1090) + 0xc" (pointer_expression "*(int *)(iVar1 + 0x1090)" * (cast_expression "(int *)(iVar1 + 0x1090)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1090)" ( (binary_expression "iVar1 + 0x1090" identifier + number_literal) )))) + number_literal) )))) == number_literal)) ))) )) (compound_statement "{\n        uVar2 = 0xbf < param_2;\n      }" { (expression_statement "uVar2 = 0xbf < param_2;" (assignment_expression "uVar2 = 0xbf < param_2" identifier = (binary_expression "0xbf < param_2" number_literal < identifier)) ;) })) (return_statement "return uVar2;" return identifier ;) })) }))) (return_statement "return 0xbf < param_2;" return (binary_expression "0xbf < param_2" number_literal < identifier) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) ))) < LIT) )) (compound_statement { (return_statement return BOOL ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) == LIT) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (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 (pointer_expression * IDENT) + LIT) )))) + LIT) )))) != LIT)) ))) )) ))) )) (compound_statement { (return_statement return IDENT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT < IDENT)) ;) })) (return_statement return IDENT ;) })) }))) (return_statement return (binary_expression LIT < IDENT) ;) })))
(function_definition "undefined1 __regparm3 FUN_00029d60(int *param_1,byte param_2)\n\n{\n  int iVar1;\n  undefined1 uVar2;\n  \n  if ((byte)(param_2 - 0x20) < 0x5f) {\n    return true;\n  }\n  if (param_2 < 0xa0) {\n    uVar2 = 2;\n    if ((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {\n      return uVar2;\n    }\n  }\n  else {\n    iVar1 = *param_1;\n    if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }\n  }\n  return 0xbf < param_2;\n}" (type_identifier "undefined1") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00029d60(int *param_1,byte param_2)" (identifier "FUN_00029d60") (parameter_list "(int *param_1,byte param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "byte param_2" (type_identifier "byte") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined1 uVar2;\n  \n  if ((byte)(param_2 - 0x20) < 0x5f) {\n    return true;\n  }\n  if (param_2 < 0xa0) {\n    uVar2 = 2;\n    if ((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {\n      return uVar2;\n    }\n  }\n  else {\n    iVar1 = *param_1;\n    if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }\n  }\n  return 0xbf < param_2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined1 uVar2;" (type_identifier "undefined1") (identifier "uVar2") (; ";")) (if_statement "if ((byte)(param_2 - 0x20) < 0x5f) {\n    return true;\n  }" (if "if") (parenthesized_expression "((byte)(param_2 - 0x20) < 0x5f)" (( "(") (binary_expression "(byte)(param_2 - 0x20) < 0x5f" (call_expression "(byte)(param_2 - 0x20)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(param_2 - 0x20)" (( "(") (binary_expression "param_2 - 0x20" (identifier "param_2") (- "-") (number_literal "0x20")) () ")"))) (< "<") (number_literal "0x5f")) () ")")) (compound_statement "{\n    return true;\n  }" ({ "{") (return_statement "return true;" (return "return") (true "true") (; ";")) (} "}"))) (if_statement "if (param_2 < 0xa0) {\n    uVar2 = 2;\n    if ((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {\n      return uVar2;\n    }\n  }\n  else {\n    iVar1 = *param_1;\n    if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 < 0xa0)" (( "(") (binary_expression "param_2 < 0xa0" (identifier "param_2") (< "<") (number_literal "0xa0")) () ")")) (compound_statement "{\n    uVar2 = 2;\n    if ((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {\n      return uVar2;\n    }\n  }" ({ "{") (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" (identifier "uVar2") (= "=") (number_literal "2")) (; ";")) (if_statement "if ((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {\n      return uVar2;\n    }" (if "if") (parenthesized_expression "((-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37))))" (( "(") (binary_expression "(-1 < (char)param_2) ||\n       ((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))" (parenthesized_expression "(-1 < (char)param_2)" (( "(") (binary_expression "-1 < (char)param_2" (number_literal "-1") (< "<") (cast_expression "(char)param_2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_2"))) () ")")) (|| "||") (parenthesized_expression "((*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))" (( "(") (parenthesized_expression "(*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37))" (( "(") (binary_expression "*(int *)(*param_1 + 0xdc) == 0 &&\n        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)" (binary_expression "*(int *)(*param_1 + 0xdc) == 0" (pointer_expression "*(int *)(*param_1 + 0xdc)" (* "*") (cast_expression "(int *)(*param_1 + 0xdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xdc)" (( "(") (binary_expression "*param_1 + 0xdc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xdc")) () ")")))) (== "==") (number_literal "0")) (&& "&&") (parenthesized_expression "(uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)" (( "(") (comma_expression "uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37" (assignment_expression "uVar2 = 4" (identifier "uVar2") (= "=") (number_literal "4")) (, ",") (binary_expression "*(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37" (pointer_expression "*(int *)(*(int *)(*param_1 + 0x1090) + 0xc)" (* "*") (cast_expression "(int *)(*(int *)(*param_1 + 0x1090) + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*param_1 + 0x1090) + 0xc)" (( "(") (binary_expression "*(int *)(*param_1 + 0x1090) + 0xc" (pointer_expression "*(int *)(*param_1 + 0x1090)" (* "*") (cast_expression "(int *)(*param_1 + 0x1090)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x1090)" (( "(") (binary_expression "*param_1 + 0x1090" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x1090")) () ")")))) (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0x37"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n      return uVar2;\n    }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar1 = *param_1;\n    if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = *param_1;\n    if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }\n  }" ({ "{") (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (*(int *)(iVar1 + 0xdc) == 0) {\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0xdc) == 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0xdc) == 0" (pointer_expression "*(int *)(iVar1 + 0xdc)" (* "*") (cast_expression "(int *)(iVar1 + 0xdc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xdc)" (( "(") (binary_expression "iVar1 + 0xdc" (identifier "iVar1") (+ "+") (number_literal "0xdc")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = 1;\n      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }\n      return uVar2;\n    }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (if_statement "if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {\n        uVar2 = 0xbf < param_2;\n      }" (if "if") (parenthesized_expression "((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37))" (( "(") (binary_expression "(*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&\n         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)" (parenthesized_expression "(*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)" (( "(") (binary_expression "*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37" (pointer_expression "*(int *)(*(int *)(iVar1 + 0x1090) + 0xc)" (* "*") (cast_expression "(int *)(*(int *)(iVar1 + 0x1090) + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar1 + 0x1090) + 0xc)" (( "(") (binary_expression "*(int *)(iVar1 + 0x1090) + 0xc" (pointer_expression "*(int *)(iVar1 + 0x1090)" (* "*") (cast_expression "(int *)(iVar1 + 0x1090)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1090)" (( "(") (binary_expression "iVar1 + 0x1090" (identifier "iVar1") (+ "+") (number_literal "0x1090")) () ")")))) (+ "+") (number_literal "0xc")) () ")")))) (== "==") (number_literal "0x37")) () ")")) (&& "&&") (parenthesized_expression "(uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)" (( "(") (comma_expression "uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37" (assignment_expression "uVar2 = 4" (identifier "uVar2") (= "=") (number_literal "4")) (, ",") (binary_expression "*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37" (pointer_expression "*(int *)(*(int *)(iVar1 + 0x1090) + 0xc)" (* "*") (cast_expression "(int *)(*(int *)(iVar1 + 0x1090) + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar1 + 0x1090) + 0xc)" (( "(") (binary_expression "*(int *)(iVar1 + 0x1090) + 0xc" (pointer_expression "*(int *)(iVar1 + 0x1090)" (* "*") (cast_expression "(int *)(iVar1 + 0x1090)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1090)" (( "(") (binary_expression "iVar1 + 0x1090" (identifier "iVar1") (+ "+") (number_literal "0x1090")) () ")")))) (+ "+") (number_literal "0xc")) () ")")))) (== "==") (number_literal "0x37"))) () ")"))) () ")")) (compound_statement "{\n        uVar2 = 0xbf < param_2;\n      }" ({ "{") (expression_statement "uVar2 = 0xbf < param_2;" (assignment_expression "uVar2 = 0xbf < param_2" (identifier "uVar2") (= "=") (binary_expression "0xbf < param_2" (number_literal "0xbf") (< "<") (identifier "param_2"))) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (} "}")))) (return_statement "return 0xbf < param_2;" (return "return") (binary_expression "0xbf < param_2" (number_literal "0xbf") (< "<") (identifier "param_2")) (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 ldisc,type_2 var_1)

{
  type_3 *pTVar1;
  type_4 uVar2;
  int iVar3;
  
  if ((byte)(var_1 - 0x20) < 0x5f) {
    return 1;
  }
  if (var_1 < 0xa0) {
    iVar3 = 2;
    if ((-1 < (char)var_1) ||
       ((ldisc->term->utf == 0 && (iVar3 = 4, ldisc->term->ucsdata->line_codepage != 0x37)))) {
      return iVar3;
    }
  }
  else {
    pTVar1 = ldisc->term;
    if (pTVar1->utf == 0) {
      uVar2 = 1;
      if ((pTVar1->ucsdata->line_codepage == 0x37) &&
         (uVar2 = 4, pTVar1->ucsdata->line_codepage == 0x37)) {
        uVar2 = (type_4)(0xbf < var_1);
      }
      return uVar2;
    }
  }
  return (type_4)(0xbf < var_1);
}


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

undefined1 __regparm3 MASKED(int *param_1,byte param_2)

{
  int iVar1;
  undefined1 uVar2;
  
  if ((byte)(param_2 - 0x20) < 0x5f) {
    return true;
  }
  if (param_2 < 0xa0) {
    uVar2 = 2;
    if ((-1 < (char)param_2) ||
       ((*(int *)(*param_1 + 0xdc) == 0 &&
        (uVar2 = 4, *(int *)(*(int *)(*param_1 + 0x1090) + 0xc) != 0x37)))) {
      return uVar2;
    }
  }
  else {
    iVar1 = *param_1;
    if (*(int *)(iVar1 + 0xdc) == 0) {
      uVar2 = 1;
      if ((*(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37) &&
         (uVar2 = 4, *(int *)(*(int *)(iVar1 + 0x1090) + 0xc) == 0x37)) {
        uVar2 = 0xbf < param_2;
      }
      return uVar2;
    }
  }
  return 0xbf < param_2;
}

