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

int __regparm3 reg_name_search(char *name)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = strcasecmp(name,"lit");
  iVar3 = 0xd;
  if (iVar2 != 0) {
    iVar2 = strcasecmp(name,"sp");
    iVar3 = 0xf;
    if (iVar2 != 0) {
      iVar3 = -1;
      uVar1 = (byte)*name - 0x61;
      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&
         ((PTR__sch_istable_00067f6c[(uint)(byte)name[1] * 2] & 4) != 0)) {
        iVar3 = name[1] + -0x30;
        if ((PTR__sch_istable_00067f6c[(uint)(byte)name[2] * 2] & 4) != 0) {
          iVar3 = name[2] + -0x30 + iVar3 * 10;
        }
        if (*name == 0x76) {
          if (0x1f < iVar3) {
            iVar3 = -1;
          }
          return iVar3;
        }
        if (0xf < iVar3) {
          iVar3 = -1;
        }
      }
    }
  }
  return iVar3;
}



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

int __regparm3 FUN_000418d0(byte *param_1)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = strcasecmp((char *)param_1,"lit");
  iVar3 = 0xd;
  if (iVar2 != 0) {
    iVar2 = strcasecmp((char *)param_1,"sp");
    iVar3 = 0xf;
    if (iVar2 != 0) {
      iVar3 = -1;
      uVar1 = *param_1 - 0x61;
      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&
         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {
        iVar3 = (char)param_1[1] + -0x30;
        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {
          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;
        }
        if (*param_1 == 0x76) {
          if (0x1f < iVar3) {
            iVar3 = -1;
          }
          return iVar3;
        }
        if (0xf < iVar3) {
          iVar3 = -1;
        }
      }
    }
  }
  return iVar3;
}


PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00015020
ADD EBX,0x26726
SUB ESP,0x8
LEA EAX,[EBX + 0xfffe93f7]
PUSH EAX
PUSH ESI
CALL 0x00013470
ADD ESP,0x10
MOV EDX,0xd
TEST EAX,EAX
JZ 0x00041966
SUB ESP,0x8
LEA EAX,[EBX + 0xfffe8a4a]
PUSH EAX
PUSH ESI
CALL 0x00013470
ADD ESP,0x10
MOV EDX,0xf
TEST EAX,EAX
JZ 0x00041966
MOVZX ECX,byte ptr [ESI]
MOV EDX,0xffffffff
LEA EAX,[ECX + -0x61]
CMP AL,0x15
JA 0x00041966
MOV EDI,0x220025
BT EDI,EAX
JNC 0x00041966
MOVSX EDI,byte ptr [ESI + 0x1]
MOV EAX,dword ptr [EBX + 0xffffff6c]
MOV EBX,EDI
MOVZX EBX,BL
TEST byte ptr [EAX + EBX*0x2],0x4
JZ 0x00041966
MOVSX EBX,byte ptr [ESI + 0x2]
LEA EDX,[EDI + -0x30]
MOVZX ESI,BL
TEST byte ptr [EAX + ESI*0x2],0x4
JNZ 0x00041970
CMP CL,0x76
JZ 0x0004197c
CMP EDX,0x10
MOV EAX,0xffffffff
CMOVGE EDX,EAX
POP EBX
MOV EAX,EDX
POP ESI
POP EDI
RET
LEA EAX,[EDX + EDX*0x4]
LEA EDX,[EBX + EAX*0x2 + -0x30]
CMP CL,0x76
JNZ 0x0004195b
MOV EAX,0xffffffff
CMP EDX,0x20
POP EBX
POP ESI
CMOVGE EDX,EAX
POP EDI
MOV EAX,EDX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_000418d0(byte *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = strcasecmp((char *)param_1,"lit");\n  iVar3 = 0xd;\n  if (iVar2 != 0) {\n    iVar2 = strcasecmp((char *)param_1,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }\n  return iVar3;\n}\n\n" comment (function_definition "int __regparm3 FUN_000418d0(byte *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = strcasecmp((char *)param_1,"lit");\n  iVar3 = 0xd;\n  if (iVar2 != 0) {\n    iVar2 = strcasecmp((char *)param_1,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }\n  return iVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000418d0(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = strcasecmp((char *)param_1,"lit");\n  iVar3 = 0xd;\n  if (iVar2 != 0) {\n    iVar2 = strcasecmp((char *)param_1,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }\n  return iVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = strcasecmp((char *)param_1,"lit");" (assignment_expression "iVar2 = strcasecmp((char *)param_1,"lit")" identifier = (call_expression "strcasecmp((char *)param_1,"lit")" identifier (argument_list "((char *)param_1,"lit")" ( (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""lit"" " string_content ") )))) ;) (expression_statement "iVar3 = 0xd;" (assignment_expression "iVar3 = 0xd" identifier = number_literal) ;) (if_statement "if (iVar2 != 0) {\n    iVar2 = strcasecmp((char *)param_1,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = strcasecmp((char *)param_1,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }" { (expression_statement "iVar2 = strcasecmp((char *)param_1,"sp");" (assignment_expression "iVar2 = strcasecmp((char *)param_1,"sp")" identifier = (call_expression "strcasecmp((char *)param_1,"sp")" identifier (argument_list "((char *)param_1,"sp")" ( (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""sp"" " string_content ") )))) ;) (expression_statement "iVar3 = 0xf;" (assignment_expression "iVar3 = 0xf" identifier = number_literal) ;) (if_statement "if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (expression_statement "uVar1 = *param_1 - 0x61;" (assignment_expression "uVar1 = *param_1 - 0x61" identifier = (binary_expression "*param_1 - 0x61" (pointer_expression "*param_1" * identifier) - number_literal)) ;) (if_statement "if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }" if (parenthesized_expression "((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0))" ( (binary_expression "(((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)" (parenthesized_expression "(((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0))" ( (binary_expression "((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)" (parenthesized_expression "((byte)uVar1 < 0x16)" ( (binary_expression "(byte)uVar1 < 0x16" (cast_expression "(byte)uVar1" ( (type_descriptor "byte" type_identifier) ) identifier) < number_literal) )) && (parenthesized_expression "((0x220025U >> (uVar1 & 0x1f) & 1) != 0)" ( (binary_expression "(0x220025U >> (uVar1 & 0x1f) & 1) != 0" (parenthesized_expression "(0x220025U >> (uVar1 & 0x1f) & 1)" ( (binary_expression "0x220025U >> (uVar1 & 0x1f) & 1" (binary_expression "0x220025U >> (uVar1 & 0x1f)" number_literal >> (parenthesized_expression "(uVar1 & 0x1f)" ( (binary_expression "uVar1 & 0x1f" identifier & number_literal) ))) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)" ( (binary_expression "(PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0" (parenthesized_expression "(PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4)" ( (binary_expression "PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4" (subscript_expression "PTR__sch_istable_00067f6c[(uint)param_1[1] * 2]" identifier [ (binary_expression "(uint)param_1[1] * 2" (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) * number_literal) ]) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }" { (expression_statement "iVar3 = (char)param_1[1] + -0x30;" (assignment_expression "iVar3 = (char)param_1[1] + -0x30" identifier = (binary_expression "(char)param_1[1] + -0x30" (cast_expression "(char)param_1[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) + number_literal)) ;) (if_statement "if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }" if (parenthesized_expression "((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0)" ( (binary_expression "(PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0" (parenthesized_expression "(PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4)" ( (binary_expression "PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4" (subscript_expression "PTR__sch_istable_00067f6c[(uint)param_1[2] * 2]" identifier [ (binary_expression "(uint)param_1[2] * 2" (cast_expression "(uint)param_1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) * number_literal) ]) & number_literal) )) != number_literal) )) (compound_statement "{\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }" { (expression_statement "iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;" (assignment_expression "iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10" identifier = (binary_expression "(char)param_1[2] + -0x30 + iVar3 * 10" (binary_expression "(char)param_1[2] + -0x30" (cast_expression "(char)param_1[2]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) + number_literal) + (binary_expression "iVar3 * 10" identifier * number_literal))) ;) })) (if_statement "if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }" if (parenthesized_expression "(*param_1 == 0x76)" ( (binary_expression "*param_1 == 0x76" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }" { (if_statement "if (0x1f < iVar3) {\n            iVar3 = -1;\n          }" if (parenthesized_expression "(0x1f < iVar3)" ( (binary_expression "0x1f < iVar3" number_literal < identifier) )) (compound_statement "{\n            iVar3 = -1;\n          }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) })) (return_statement "return iVar3;" return identifier ;) })) (if_statement "if (0xf < iVar3) {\n          iVar3 = -1;\n        }" if (parenthesized_expression "(0xf < iVar3)" ( (binary_expression "0xf < iVar3" number_literal < identifier) )) (compound_statement "{\n          iVar3 = -1;\n        }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) })) })) })) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 reg_name_search(char *name)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = strcasecmp(name,"lit");\n  iVar3 = 0xd;\n  if (iVar2 != 0) {\n    iVar2 = strcasecmp(name,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = (byte)*name - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)(byte)name[1] * 2] & 4) != 0)) {\n        iVar3 = name[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)(byte)name[2] * 2] & 4) != 0) {\n          iVar3 = name[2] + -0x30 + iVar3 * 10;\n        }\n        if (*name == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }\n  return iVar3;\n}\n\n" comment (function_definition "int __regparm3 reg_name_search(char *name)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = strcasecmp(name,"lit");\n  iVar3 = 0xd;\n  if (iVar2 != 0) {\n    iVar2 = strcasecmp(name,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = (byte)*name - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)(byte)name[1] * 2] & 4) != 0)) {\n        iVar3 = name[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)(byte)name[2] * 2] & 4) != 0) {\n          iVar3 = name[2] + -0x30 + iVar3 * 10;\n        }\n        if (*name == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }\n  return iVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "reg_name_search(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = strcasecmp(name,"lit");\n  iVar3 = 0xd;\n  if (iVar2 != 0) {\n    iVar2 = strcasecmp(name,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = (byte)*name - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)(byte)name[1] * 2] & 4) != 0)) {\n        iVar3 = name[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)(byte)name[2] * 2] & 4) != 0) {\n          iVar3 = name[2] + -0x30 + iVar3 * 10;\n        }\n        if (*name == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }\n  return iVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = strcasecmp(name,"lit");" (assignment_expression "iVar2 = strcasecmp(name,"lit")" identifier = (call_expression "strcasecmp(name,"lit")" identifier (argument_list "(name,"lit")" ( identifier , (string_literal ""lit"" " string_content ") )))) ;) (expression_statement "iVar3 = 0xd;" (assignment_expression "iVar3 = 0xd" identifier = number_literal) ;) (if_statement "if (iVar2 != 0) {\n    iVar2 = strcasecmp(name,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = (byte)*name - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)(byte)name[1] * 2] & 4) != 0)) {\n        iVar3 = name[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)(byte)name[2] * 2] & 4) != 0) {\n          iVar3 = name[2] + -0x30 + iVar3 * 10;\n        }\n        if (*name == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = strcasecmp(name,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = (byte)*name - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)(byte)name[1] * 2] & 4) != 0)) {\n        iVar3 = name[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)(byte)name[2] * 2] & 4) != 0) {\n          iVar3 = name[2] + -0x30 + iVar3 * 10;\n        }\n        if (*name == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }" { (expression_statement "iVar2 = strcasecmp(name,"sp");" (assignment_expression "iVar2 = strcasecmp(name,"sp")" identifier = (call_expression "strcasecmp(name,"sp")" identifier (argument_list "(name,"sp")" ( identifier , (string_literal ""sp"" " string_content ") )))) ;) (expression_statement "iVar3 = 0xf;" (assignment_expression "iVar3 = 0xf" identifier = number_literal) ;) (if_statement "if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = (byte)*name - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)(byte)name[1] * 2] & 4) != 0)) {\n        iVar3 = name[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)(byte)name[2] * 2] & 4) != 0) {\n          iVar3 = name[2] + -0x30 + iVar3 * 10;\n        }\n        if (*name == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar3 = -1;\n      uVar1 = (byte)*name - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)(byte)name[1] * 2] & 4) != 0)) {\n        iVar3 = name[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)(byte)name[2] * 2] & 4) != 0) {\n          iVar3 = name[2] + -0x30 + iVar3 * 10;\n        }\n        if (*name == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (expression_statement "uVar1 = (byte)*name - 0x61;" (assignment_expression "uVar1 = (byte)*name - 0x61" identifier = (binary_expression "(byte)*name - 0x61" (binary_expression "(byte)*name" (parenthesized_expression "(byte)" ( identifier )) * identifier) - number_literal)) ;) (if_statement "if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)(byte)name[1] * 2] & 4) != 0)) {\n        iVar3 = name[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)(byte)name[2] * 2] & 4) != 0) {\n          iVar3 = name[2] + -0x30 + iVar3 * 10;\n        }\n        if (*name == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }" if (parenthesized_expression "((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)(byte)name[1] * 2] & 4) != 0))" ( (binary_expression "(((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)(byte)name[1] * 2] & 4) != 0)" (parenthesized_expression "(((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0))" ( (binary_expression "((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)" (parenthesized_expression "((byte)uVar1 < 0x16)" ( (binary_expression "(byte)uVar1 < 0x16" (cast_expression "(byte)uVar1" ( (type_descriptor "byte" type_identifier) ) identifier) < number_literal) )) && (parenthesized_expression "((0x220025U >> (uVar1 & 0x1f) & 1) != 0)" ( (binary_expression "(0x220025U >> (uVar1 & 0x1f) & 1) != 0" (parenthesized_expression "(0x220025U >> (uVar1 & 0x1f) & 1)" ( (binary_expression "0x220025U >> (uVar1 & 0x1f) & 1" (binary_expression "0x220025U >> (uVar1 & 0x1f)" number_literal >> (parenthesized_expression "(uVar1 & 0x1f)" ( (binary_expression "uVar1 & 0x1f" identifier & number_literal) ))) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "((PTR__sch_istable_00067f6c[(uint)(byte)name[1] * 2] & 4) != 0)" ( (binary_expression "(PTR__sch_istable_00067f6c[(uint)(byte)name[1] * 2] & 4) != 0" (parenthesized_expression "(PTR__sch_istable_00067f6c[(uint)(byte)name[1] * 2] & 4)" ( (binary_expression "PTR__sch_istable_00067f6c[(uint)(byte)name[1] * 2] & 4" (subscript_expression "PTR__sch_istable_00067f6c[(uint)(byte)name[1] * 2]" identifier [ (binary_expression "(uint)(byte)name[1] * 2" (cast_expression "(uint)(byte)name[1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)name[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "name[1]" identifier [ number_literal ]))) * number_literal) ]) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        iVar3 = name[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)(byte)name[2] * 2] & 4) != 0) {\n          iVar3 = name[2] + -0x30 + iVar3 * 10;\n        }\n        if (*name == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }" { (expression_statement "iVar3 = name[1] + -0x30;" (assignment_expression "iVar3 = name[1] + -0x30" identifier = (binary_expression "name[1] + -0x30" (subscript_expression "name[1]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if ((PTR__sch_istable_00067f6c[(uint)(byte)name[2] * 2] & 4) != 0) {\n          iVar3 = name[2] + -0x30 + iVar3 * 10;\n        }" if (parenthesized_expression "((PTR__sch_istable_00067f6c[(uint)(byte)name[2] * 2] & 4) != 0)" ( (binary_expression "(PTR__sch_istable_00067f6c[(uint)(byte)name[2] * 2] & 4) != 0" (parenthesized_expression "(PTR__sch_istable_00067f6c[(uint)(byte)name[2] * 2] & 4)" ( (binary_expression "PTR__sch_istable_00067f6c[(uint)(byte)name[2] * 2] & 4" (subscript_expression "PTR__sch_istable_00067f6c[(uint)(byte)name[2] * 2]" identifier [ (binary_expression "(uint)(byte)name[2] * 2" (cast_expression "(uint)(byte)name[2]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)name[2]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "name[2]" identifier [ number_literal ]))) * number_literal) ]) & number_literal) )) != number_literal) )) (compound_statement "{\n          iVar3 = name[2] + -0x30 + iVar3 * 10;\n        }" { (expression_statement "iVar3 = name[2] + -0x30 + iVar3 * 10;" (assignment_expression "iVar3 = name[2] + -0x30 + iVar3 * 10" identifier = (binary_expression "name[2] + -0x30 + iVar3 * 10" (binary_expression "name[2] + -0x30" (subscript_expression "name[2]" identifier [ number_literal ]) + number_literal) + (binary_expression "iVar3 * 10" identifier * number_literal))) ;) })) (if_statement "if (*name == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }" if (parenthesized_expression "(*name == 0x76)" ( (binary_expression "*name == 0x76" (pointer_expression "*name" * identifier) == number_literal) )) (compound_statement "{\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }" { (if_statement "if (0x1f < iVar3) {\n            iVar3 = -1;\n          }" if (parenthesized_expression "(0x1f < iVar3)" ( (binary_expression "0x1f < iVar3" number_literal < identifier) )) (compound_statement "{\n            iVar3 = -1;\n          }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) })) (return_statement "return iVar3;" return identifier ;) })) (if_statement "if (0xf < iVar3) {\n          iVar3 = -1;\n        }" if (parenthesized_expression "(0xf < iVar3)" ( (binary_expression "0xf < iVar3" number_literal < identifier) )) (compound_statement "{\n          iVar3 = -1;\n        }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) })) })) })) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_000418d0(byte *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = strcasecmp((char *)param_1,"lit");\n  iVar3 = 0xd;\n  if (iVar2 != 0) {\n    iVar2 = strcasecmp((char *)param_1,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }\n  return iVar3;\n}\n\n" (function_definition "int __regparm3 FUN_000418d0(byte *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = strcasecmp((char *)param_1,"lit");\n  iVar3 = 0xd;\n  if (iVar2 != 0) {\n    iVar2 = strcasecmp((char *)param_1,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }\n  return iVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000418d0(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = strcasecmp((char *)param_1,"lit");\n  iVar3 = 0xd;\n  if (iVar2 != 0) {\n    iVar2 = strcasecmp((char *)param_1,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }\n  return iVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = strcasecmp((char *)param_1,"lit");" (assignment_expression "iVar2 = strcasecmp((char *)param_1,"lit")" identifier = (call_expression "strcasecmp((char *)param_1,"lit")" identifier (argument_list "((char *)param_1,"lit")" ( (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""lit"" " string_content ") )))) ;) (expression_statement "iVar3 = 0xd;" (assignment_expression "iVar3 = 0xd" identifier = number_literal) ;) (if_statement "if (iVar2 != 0) {\n    iVar2 = strcasecmp((char *)param_1,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = strcasecmp((char *)param_1,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }" { (expression_statement "iVar2 = strcasecmp((char *)param_1,"sp");" (assignment_expression "iVar2 = strcasecmp((char *)param_1,"sp")" identifier = (call_expression "strcasecmp((char *)param_1,"sp")" identifier (argument_list "((char *)param_1,"sp")" ( (cast_expression "(char *)param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""sp"" " string_content ") )))) ;) (expression_statement "iVar3 = 0xf;" (assignment_expression "iVar3 = 0xf" identifier = number_literal) ;) (if_statement "if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) (expression_statement "uVar1 = *param_1 - 0x61;" (assignment_expression "uVar1 = *param_1 - 0x61" identifier = (binary_expression "*param_1 - 0x61" (pointer_expression "*param_1" * identifier) - number_literal)) ;) (if_statement "if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }" if (parenthesized_expression "((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0))" ( (binary_expression "(((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)" (parenthesized_expression "(((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0))" ( (binary_expression "((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)" (parenthesized_expression "((byte)uVar1 < 0x16)" ( (binary_expression "(byte)uVar1 < 0x16" (cast_expression "(byte)uVar1" ( (type_descriptor "byte" type_identifier) ) identifier) < number_literal) )) && (parenthesized_expression "((0x220025U >> (uVar1 & 0x1f) & 1) != 0)" ( (binary_expression "(0x220025U >> (uVar1 & 0x1f) & 1) != 0" (parenthesized_expression "(0x220025U >> (uVar1 & 0x1f) & 1)" ( (binary_expression "0x220025U >> (uVar1 & 0x1f) & 1" (binary_expression "0x220025U >> (uVar1 & 0x1f)" number_literal >> (parenthesized_expression "(uVar1 & 0x1f)" ( (binary_expression "uVar1 & 0x1f" identifier & number_literal) ))) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)" ( (binary_expression "(PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0" (parenthesized_expression "(PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4)" ( (binary_expression "PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4" (subscript_expression "PTR__sch_istable_00067f6c[(uint)param_1[1] * 2]" identifier [ (binary_expression "(uint)param_1[1] * 2" (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) * number_literal) ]) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }" { (expression_statement "iVar3 = (char)param_1[1] + -0x30;" (assignment_expression "iVar3 = (char)param_1[1] + -0x30" identifier = (binary_expression "(char)param_1[1] + -0x30" (cast_expression "(char)param_1[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) + number_literal)) ;) (if_statement "if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }" if (parenthesized_expression "((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0)" ( (binary_expression "(PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0" (parenthesized_expression "(PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4)" ( (binary_expression "PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4" (subscript_expression "PTR__sch_istable_00067f6c[(uint)param_1[2] * 2]" identifier [ (binary_expression "(uint)param_1[2] * 2" (cast_expression "(uint)param_1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) * number_literal) ]) & number_literal) )) != number_literal) )) (compound_statement "{\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }" { (expression_statement "iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;" (assignment_expression "iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10" identifier = (binary_expression "(char)param_1[2] + -0x30 + iVar3 * 10" (binary_expression "(char)param_1[2] + -0x30" (cast_expression "(char)param_1[2]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) + number_literal) + (binary_expression "iVar3 * 10" identifier * number_literal))) ;) })) (if_statement "if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }" if (parenthesized_expression "(*param_1 == 0x76)" ( (binary_expression "*param_1 == 0x76" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }" { (if_statement "if (0x1f < iVar3) {\n            iVar3 = -1;\n          }" if (parenthesized_expression "(0x1f < iVar3)" ( (binary_expression "0x1f < iVar3" number_literal < identifier) )) (compound_statement "{\n            iVar3 = -1;\n          }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) })) (return_statement "return iVar3;" return identifier ;) })) (if_statement "if (0xf < iVar3) {\n          iVar3 = -1;\n        }" if (parenthesized_expression "(0xf < iVar3)" ( (binary_expression "0xf < iVar3" number_literal < identifier) )) (compound_statement "{\n          iVar3 = -1;\n        }" { (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" identifier = number_literal) ;) })) })) })) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression LIT >> (parenthesized_expression ( (binary_expression IDENT & LIT) ))) & LIT) )) != LIT) ))) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT) ]) & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT) ]) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) + LIT) + (binary_expression IDENT * LIT))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) })) })) })) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_000418d0(byte *param_1)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = strcasecmp((char *)param_1,"lit");\n  iVar3 = 0xd;\n  if (iVar2 != 0) {\n    iVar2 = strcasecmp((char *)param_1,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }\n  return iVar3;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000418d0(byte *param_1)" (identifier "FUN_000418d0") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = strcasecmp((char *)param_1,"lit");\n  iVar3 = 0xd;\n  if (iVar2 != 0) {\n    iVar2 = strcasecmp((char *)param_1,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }\n  return iVar3;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar2 = strcasecmp((char *)param_1,"lit");" (assignment_expression "iVar2 = strcasecmp((char *)param_1,"lit")" (identifier "iVar2") (= "=") (call_expression "strcasecmp((char *)param_1,"lit")" (identifier "strcasecmp") (argument_list "((char *)param_1,"lit")" (( "(") (cast_expression "(char *)param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1")) (, ",") (string_literal ""lit"" (" """) (string_content "lit") (" """)) () ")")))) (; ";")) (expression_statement "iVar3 = 0xd;" (assignment_expression "iVar3 = 0xd" (identifier "iVar3") (= "=") (number_literal "0xd")) (; ";")) (if_statement "if (iVar2 != 0) {\n    iVar2 = strcasecmp((char *)param_1,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = strcasecmp((char *)param_1,"sp");\n    iVar3 = 0xf;\n    if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "iVar2 = strcasecmp((char *)param_1,"sp");" (assignment_expression "iVar2 = strcasecmp((char *)param_1,"sp")" (identifier "iVar2") (= "=") (call_expression "strcasecmp((char *)param_1,"sp")" (identifier "strcasecmp") (argument_list "((char *)param_1,"sp")" (( "(") (cast_expression "(char *)param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1")) (, ",") (string_literal ""sp"" (" """) (string_content "sp") (" """)) () ")")))) (; ";")) (expression_statement "iVar3 = 0xf;" (assignment_expression "iVar3 = 0xf" (identifier "iVar3") (= "=") (number_literal "0xf")) (; ";")) (if_statement "if (iVar2 != 0) {\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = -1;\n      uVar1 = *param_1 - 0x61;\n      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }\n    }" ({ "{") (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" (identifier "iVar3") (= "=") (number_literal "-1")) (; ";")) (expression_statement "uVar1 = *param_1 - 0x61;" (assignment_expression "uVar1 = *param_1 - 0x61" (identifier "uVar1") (= "=") (binary_expression "*param_1 - 0x61" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (- "-") (number_literal "0x61"))) (; ";")) (if_statement "if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }" (if "if") (parenthesized_expression "((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0))" (( "(") (binary_expression "(((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&\n         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)" (parenthesized_expression "(((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0))" (( "(") (binary_expression "((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)" (parenthesized_expression "((byte)uVar1 < 0x16)" (( "(") (binary_expression "(byte)uVar1 < 0x16" (cast_expression "(byte)uVar1" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar1")) (< "<") (number_literal "0x16")) () ")")) (&& "&&") (parenthesized_expression "((0x220025U >> (uVar1 & 0x1f) & 1) != 0)" (( "(") (binary_expression "(0x220025U >> (uVar1 & 0x1f) & 1) != 0" (parenthesized_expression "(0x220025U >> (uVar1 & 0x1f) & 1)" (( "(") (binary_expression "0x220025U >> (uVar1 & 0x1f) & 1" (binary_expression "0x220025U >> (uVar1 & 0x1f)" (number_literal "0x220025U") (>> ">>") (parenthesized_expression "(uVar1 & 0x1f)" (( "(") (binary_expression "uVar1 & 0x1f" (identifier "uVar1") (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)" (( "(") (binary_expression "(PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0" (parenthesized_expression "(PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4)" (( "(") (binary_expression "PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4" (subscript_expression "PTR__sch_istable_00067f6c[(uint)param_1[1] * 2]" (identifier "PTR__sch_istable_00067f6c") ([ "[") (binary_expression "(uint)param_1[1] * 2" (cast_expression "(uint)param_1[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (* "*") (number_literal "2")) (] "]")) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        iVar3 = (char)param_1[1] + -0x30;\n        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }\n        if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }\n        if (0xf < iVar3) {\n          iVar3 = -1;\n        }\n      }" ({ "{") (expression_statement "iVar3 = (char)param_1[1] + -0x30;" (assignment_expression "iVar3 = (char)param_1[1] + -0x30" (identifier "iVar3") (= "=") (binary_expression "(char)param_1[1] + -0x30" (cast_expression "(char)param_1[1]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (+ "+") (number_literal "-0x30"))) (; ";")) (if_statement "if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }" (if "if") (parenthesized_expression "((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0)" (( "(") (binary_expression "(PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0" (parenthesized_expression "(PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4)" (( "(") (binary_expression "PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4" (subscript_expression "PTR__sch_istable_00067f6c[(uint)param_1[2] * 2]" (identifier "PTR__sch_istable_00067f6c") ([ "[") (binary_expression "(uint)param_1[2] * 2" (cast_expression "(uint)param_1[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (* "*") (number_literal "2")) (] "]")) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;\n        }" ({ "{") (expression_statement "iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;" (assignment_expression "iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10" (identifier "iVar3") (= "=") (binary_expression "(char)param_1[2] + -0x30 + iVar3 * 10" (binary_expression "(char)param_1[2] + -0x30" (cast_expression "(char)param_1[2]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (+ "+") (number_literal "-0x30")) (+ "+") (binary_expression "iVar3 * 10" (identifier "iVar3") (* "*") (number_literal "10")))) (; ";")) (} "}"))) (if_statement "if (*param_1 == 0x76) {\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }" (if "if") (parenthesized_expression "(*param_1 == 0x76)" (( "(") (binary_expression "*param_1 == 0x76" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0x76")) () ")")) (compound_statement "{\n          if (0x1f < iVar3) {\n            iVar3 = -1;\n          }\n          return iVar3;\n        }" ({ "{") (if_statement "if (0x1f < iVar3) {\n            iVar3 = -1;\n          }" (if "if") (parenthesized_expression "(0x1f < iVar3)" (( "(") (binary_expression "0x1f < iVar3" (number_literal "0x1f") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n            iVar3 = -1;\n          }" ({ "{") (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" (identifier "iVar3") (= "=") (number_literal "-1")) (; ";")) (} "}"))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (if_statement "if (0xf < iVar3) {\n          iVar3 = -1;\n        }" (if "if") (parenthesized_expression "(0xf < iVar3)" (( "(") (binary_expression "0xf < iVar3" (number_literal "0xf") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n          iVar3 = -1;\n        }" ({ "{") (expression_statement "iVar3 = -1;" (assignment_expression "iVar3 = -1" (identifier "iVar3") (= "=") (number_literal "-1")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (} "}"))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

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

int __regparm3 function_1(char *var_3)

{
  type_1 var_4;
  int var_2;
  int var_5;
  
  var_2 = var_1(var_3,"lit");
  var_5 = 0xd;
  if (var_2 != 0) {
    var_2 = var_1(var_3,"sp");
    var_5 = 0xf;
    if (var_2 != 0) {
      var_5 = -1;
      var_4 = (type_2)*var_3 - 0x61;
      if ((((type_2)var_4 < 0x16) && ((0x220025U >> (var_4 & 0x1f) & 1) != 0)) &&
         ((PTR__sch_istable_00067f6c[(type_1)(type_2)var_3[1] * 2] & 4) != 0)) {
        var_5 = var_3[1] + -0x30;
        if ((PTR__sch_istable_00067f6c[(type_1)(type_2)var_3[2] * 2] & 4) != 0) {
          var_5 = var_3[2] + -0x30 + var_5 * 10;
        }
        if (*var_3 == 0x76) {
          if (0x1f < var_5) {
            var_5 = -1;
          }
          return var_5;
        }
        if (0xf < var_5) {
          var_5 = -1;
        }
      }
    }
  }
  return var_5;
}


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

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

int __regparm3 MASKED(byte *param_1)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = strcasecmp((char *)param_1,"lit");
  iVar3 = 0xd;
  if (iVar2 != 0) {
    iVar2 = strcasecmp((char *)param_1,"sp");
    iVar3 = 0xf;
    if (iVar2 != 0) {
      iVar3 = -1;
      uVar1 = *param_1 - 0x61;
      if ((((byte)uVar1 < 0x16) && ((0x220025U >> (uVar1 & 0x1f) & 1) != 0)) &&
         ((PTR__sch_istable_00067f6c[(uint)param_1[1] * 2] & 4) != 0)) {
        iVar3 = (char)param_1[1] + -0x30;
        if ((PTR__sch_istable_00067f6c[(uint)param_1[2] * 2] & 4) != 0) {
          iVar3 = (char)param_1[2] + -0x30 + iVar3 * 10;
        }
        if (*param_1 == 0x76) {
          if (0x1f < iVar3) {
            iVar3 = -1;
          }
          return iVar3;
        }
        if (0xf < iVar3) {
          iVar3 = -1;
        }
      }
    }
  }
  return iVar3;
}

