
char * dos_lbasename(char *name)

{
  byte bVar1;
  byte *pbVar2;
  
  bVar1 = *name;
  if (((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) && (name[1] == ':'))
  {
    bVar1 = name[2];
    name = name + 2;
  }
  pbVar2 = (byte *)name;
  if (bVar1 != 0) {
    do {
      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {
        name = (char *)pbVar2;
        bVar1 = *pbVar2;
        if (*pbVar2 == 0) {
          return (char *)pbVar2;
        }
      }
      if (bVar1 == 0x5c) {
        name = (char *)pbVar2;
      }
      bVar1 = *pbVar2;
    } while (*pbVar2 != 0);
    return (char *)(byte *)name;
  }
  return (char *)(byte *)name;
}



byte * FUN_0032d670(byte *param_1)

{
  byte bVar1;
  byte *pbVar2;
  
  bVar1 = *param_1;
  if (((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&
     (param_1[1] == 0x3a)) {
    bVar1 = param_1[2];
    param_1 = param_1 + 2;
  }
  pbVar2 = param_1;
  if (bVar1 != 0) {
    do {
      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {
        param_1 = pbVar2;
        bVar1 = *pbVar2;
        if (*pbVar2 == 0) {
          return pbVar2;
        }
      }
      if (bVar1 == 0x5c) {
        param_1 = pbVar2;
      }
      bVar1 = *pbVar2;
    } while (*pbVar2 != 0);
    return param_1;
  }
  return param_1;
}


lui gp,0x1a
addiu gp,gp,-0x4430
addu gp,gp,t9
lb v1,0x0(a0)
andi v0,v1,0xff
sll a1,v0,0x1
lw v0,-0x4564(gp)
addu v0,v0,a1
lhu v0,0x0(v0)
andi v0,v0,0x88
beq v0,zero,0x0032d6ac
_li v0,0x3a
lb a1,0x1(a0)
beq a1,v0,0x0032d6ec
_nop
beq v1,zero,0x0032d6f8
_nop
li a2,0x2f
b 0x0032d6cc
_or v0,a0,zero
lb v1,0x0(a0)
beq v1,zero,0x0032d6e4
_movz v0,a0,a1
xori a1,v1,0x5c
bne v1,a2,0x0032d6c0
_addiu a0,a0,0x1
lb v1,0x0(a0)
bne v1,zero,0x0032d6cc
_or v0,a0,zero
jr ra
_nop
lb v1,0x2(a0)
bne v1,zero,0x0032d6b4
_addiu a0,a0,0x2
jr ra
_or v0,a0,zero
(translation_unit "byte * FUN_0032d670(byte *param_1)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *param_1;\n  if (((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&\n     (param_1[1] == 0x3a)) {\n    bVar1 = param_1[2];\n    param_1 = param_1 + 2;\n  }\n  pbVar2 = param_1;\n  if (bVar1 != 0) {\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return param_1;\n  }\n  return param_1;\n}\n\n" (function_definition "byte * FUN_0032d670(byte *param_1)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *param_1;\n  if (((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&\n     (param_1[1] == 0x3a)) {\n    bVar1 = param_1[2];\n    param_1 = param_1 + 2;\n  }\n  pbVar2 = param_1;\n  if (bVar1 != 0) {\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return param_1;\n  }\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_0032d670(byte *param_1)" * (function_declarator "FUN_0032d670(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *param_1;\n  if (((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&\n     (param_1[1] == 0x3a)) {\n    bVar1 = param_1[2];\n    param_1 = param_1 + 2;\n  }\n  pbVar2 = param_1;\n  if (bVar1 != 0) {\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return param_1;\n  }\n  return param_1;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&\n     (param_1[1] == 0x3a)) {\n    bVar1 = param_1[2];\n    param_1 = param_1 + 2;\n  }" if (parenthesized_expression "(((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&\n     (param_1[1] == 0x3a))" ( (binary_expression "((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&\n     (param_1[1] == 0x3a)" (parenthesized_expression "((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0)" ( (binary_expression "(*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0" (parenthesized_expression "(*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88)" ( (binary_expression "*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88" (pointer_expression "*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2)" * (cast_expression "(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2)" ( (binary_expression "PTR__sch_istable_004c4cdc + (uint)bVar1 * 2" identifier + (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(param_1[1] == 0x3a)" ( (binary_expression "param_1[1] == 0x3a" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n    bVar1 = param_1[2];\n    param_1 = param_1 + 2;\n  }" { (expression_statement "bVar1 = param_1[2];" (assignment_expression "bVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1 = param_1 + 2;" (assignment_expression "param_1 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) })) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) (if_statement "if (bVar1 != 0) {\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return param_1;\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return param_1;\n  }" { (do_statement "do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);" do (compound_statement "{\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    }" { (while_statement "while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }" while (parenthesized_expression "(pbVar2 = pbVar2 + 1, bVar1 == 0x2f)" ( (comma_expression "pbVar2 = pbVar2 + 1, bVar1 == 0x2f" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) , (binary_expression "bVar1 == 0x2f" identifier == number_literal)) )) (compound_statement "{\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }" { (expression_statement "param_1 = pbVar2;" (assignment_expression "param_1 = pbVar2" identifier = identifier) ;) (expression_statement "bVar1 = *pbVar2;" (assignment_expression "bVar1 = *pbVar2" identifier = (pointer_expression "*pbVar2" * identifier)) ;) (if_statement "if (*pbVar2 == 0) {\n          return pbVar2;\n        }" if (parenthesized_expression "(*pbVar2 == 0)" ( (binary_expression "*pbVar2 == 0" (pointer_expression "*pbVar2" * identifier) == number_literal) )) (compound_statement "{\n          return pbVar2;\n        }" { (return_statement "return pbVar2;" return identifier ;) })) })) (if_statement "if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }" if (parenthesized_expression "(bVar1 == 0x5c)" ( (binary_expression "bVar1 == 0x5c" identifier == number_literal) )) (compound_statement "{\n        param_1 = pbVar2;\n      }" { (expression_statement "param_1 = pbVar2;" (assignment_expression "param_1 = pbVar2" identifier = identifier) ;) })) (expression_statement "bVar1 = *pbVar2;" (assignment_expression "bVar1 = *pbVar2" identifier = (pointer_expression "*pbVar2" * identifier)) ;) }) while (parenthesized_expression "(*pbVar2 != 0)" ( (binary_expression "*pbVar2 != 0" (pointer_expression "*pbVar2" * identifier) != number_literal) )) ;) (return_statement "return param_1;" return identifier ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "char * dos_lbasename(char *name)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *name;\n  if (((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) && (name[1] == ':'))\n  {\n    bVar1 = name[2];\n    name = name + 2;\n  }\n  pbVar2 = (byte *)name;\n  if (bVar1 != 0) {\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        name = (char *)pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return (char *)pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        name = (char *)pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return (char *)(byte *)name;\n  }\n  return (char *)(byte *)name;\n}\n\n" (function_definition "char * dos_lbasename(char *name)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *name;\n  if (((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) && (name[1] == ':'))\n  {\n    bVar1 = name[2];\n    name = name + 2;\n  }\n  pbVar2 = (byte *)name;\n  if (bVar1 != 0) {\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        name = (char *)pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return (char *)pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        name = (char *)pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return (char *)(byte *)name;\n  }\n  return (char *)(byte *)name;\n}" primitive_type (pointer_declarator "* dos_lbasename(char *name)" * (function_declarator "dos_lbasename(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) )))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *name;\n  if (((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) && (name[1] == ':'))\n  {\n    bVar1 = name[2];\n    name = name + 2;\n  }\n  pbVar2 = (byte *)name;\n  if (bVar1 != 0) {\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        name = (char *)pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return (char *)pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        name = (char *)pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return (char *)(byte *)name;\n  }\n  return (char *)(byte *)name;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (expression_statement "bVar1 = *name;" (assignment_expression "bVar1 = *name" identifier = (pointer_expression "*name" * identifier)) ;) (if_statement "if (((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) && (name[1] == ':'))\n  {\n    bVar1 = name[2];\n    name = name + 2;\n  }" if (parenthesized_expression "(((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) && (name[1] == ':'))" ( (binary_expression "((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) && (name[1] == ':')" (parenthesized_expression "((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0)" ( (binary_expression "(*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0" (parenthesized_expression "(*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88)" ( (binary_expression "*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88" (pointer_expression "*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2)" * (cast_expression "(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2)" ( (binary_expression "PTR__sch_istable_004c4cdc + (uint)bVar1 * 2" identifier + (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(name[1] == ':')" ( (binary_expression "name[1] == ':'" (subscript_expression "name[1]" identifier [ number_literal ]) == (char_literal "':'" ' character ')) ))) )) (compound_statement "{\n    bVar1 = name[2];\n    name = name + 2;\n  }" { (expression_statement "bVar1 = name[2];" (assignment_expression "bVar1 = name[2]" identifier = (subscript_expression "name[2]" identifier [ number_literal ])) ;) (expression_statement "name = name + 2;" (assignment_expression "name = name + 2" identifier = (binary_expression "name + 2" identifier + number_literal)) ;) })) (expression_statement "pbVar2 = (byte *)name;" (assignment_expression "pbVar2 = (byte *)name" identifier = (cast_expression "(byte *)name" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (bVar1 != 0) {\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        name = (char *)pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return (char *)pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        name = (char *)pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return (char *)(byte *)name;\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        name = (char *)pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return (char *)pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        name = (char *)pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return (char *)(byte *)name;\n  }" { (do_statement "do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        name = (char *)pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return (char *)pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        name = (char *)pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);" do (compound_statement "{\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        name = (char *)pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return (char *)pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        name = (char *)pbVar2;\n      }\n      bVar1 = *pbVar2;\n    }" { (while_statement "while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        name = (char *)pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return (char *)pbVar2;\n        }\n      }" while (parenthesized_expression "(pbVar2 = pbVar2 + 1, bVar1 == 0x2f)" ( (comma_expression "pbVar2 = pbVar2 + 1, bVar1 == 0x2f" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) , (binary_expression "bVar1 == 0x2f" identifier == number_literal)) )) (compound_statement "{\n        name = (char *)pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return (char *)pbVar2;\n        }\n      }" { (expression_statement "name = (char *)pbVar2;" (assignment_expression "name = (char *)pbVar2" identifier = (cast_expression "(char *)pbVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "bVar1 = *pbVar2;" (assignment_expression "bVar1 = *pbVar2" identifier = (pointer_expression "*pbVar2" * identifier)) ;) (if_statement "if (*pbVar2 == 0) {\n          return (char *)pbVar2;\n        }" if (parenthesized_expression "(*pbVar2 == 0)" ( (binary_expression "*pbVar2 == 0" (pointer_expression "*pbVar2" * identifier) == number_literal) )) (compound_statement "{\n          return (char *)pbVar2;\n        }" { (return_statement "return (char *)pbVar2;" return (cast_expression "(char *)pbVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) })) })) (if_statement "if (bVar1 == 0x5c) {\n        name = (char *)pbVar2;\n      }" if (parenthesized_expression "(bVar1 == 0x5c)" ( (binary_expression "bVar1 == 0x5c" identifier == number_literal) )) (compound_statement "{\n        name = (char *)pbVar2;\n      }" { (expression_statement "name = (char *)pbVar2;" (assignment_expression "name = (char *)pbVar2" identifier = (cast_expression "(char *)pbVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "bVar1 = *pbVar2;" (assignment_expression "bVar1 = *pbVar2" identifier = (pointer_expression "*pbVar2" * identifier)) ;) }) while (parenthesized_expression "(*pbVar2 != 0)" ( (binary_expression "*pbVar2 != 0" (pointer_expression "*pbVar2" * identifier) != number_literal) )) ;) (return_statement "return (char *)(byte *)name;" return (cast_expression "(char *)(byte *)name" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (cast_expression "(byte *)name" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (return_statement "return (char *)(byte *)name;" return (cast_expression "(char *)(byte *)name" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (cast_expression "(byte *)name" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })))
(translation_unit "byte * FUN_0032d670(byte *param_1)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *param_1;\n  if (((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&\n     (param_1[1] == 0x3a)) {\n    bVar1 = param_1[2];\n    param_1 = param_1 + 2;\n  }\n  pbVar2 = param_1;\n  if (bVar1 != 0) {\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return param_1;\n  }\n  return param_1;\n}\n\n" (function_definition "byte * FUN_0032d670(byte *param_1)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *param_1;\n  if (((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&\n     (param_1[1] == 0x3a)) {\n    bVar1 = param_1[2];\n    param_1 = param_1 + 2;\n  }\n  pbVar2 = param_1;\n  if (bVar1 != 0) {\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return param_1;\n  }\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_0032d670(byte *param_1)" * (function_declarator "FUN_0032d670(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *param_1;\n  if (((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&\n     (param_1[1] == 0x3a)) {\n    bVar1 = param_1[2];\n    param_1 = param_1 + 2;\n  }\n  pbVar2 = param_1;\n  if (bVar1 != 0) {\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return param_1;\n  }\n  return param_1;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&\n     (param_1[1] == 0x3a)) {\n    bVar1 = param_1[2];\n    param_1 = param_1 + 2;\n  }" if (parenthesized_expression "(((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&\n     (param_1[1] == 0x3a))" ( (binary_expression "((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&\n     (param_1[1] == 0x3a)" (parenthesized_expression "((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0)" ( (binary_expression "(*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0" (parenthesized_expression "(*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88)" ( (binary_expression "*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88" (pointer_expression "*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2)" * (cast_expression "(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2)" ( (binary_expression "PTR__sch_istable_004c4cdc + (uint)bVar1 * 2" identifier + (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(param_1[1] == 0x3a)" ( (binary_expression "param_1[1] == 0x3a" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n    bVar1 = param_1[2];\n    param_1 = param_1 + 2;\n  }" { (expression_statement "bVar1 = param_1[2];" (assignment_expression "bVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1 = param_1 + 2;" (assignment_expression "param_1 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) })) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) (if_statement "if (bVar1 != 0) {\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return param_1;\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return param_1;\n  }" { (do_statement "do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);" do (compound_statement "{\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    }" { (while_statement "while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }" while (parenthesized_expression "(pbVar2 = pbVar2 + 1, bVar1 == 0x2f)" ( (comma_expression "pbVar2 = pbVar2 + 1, bVar1 == 0x2f" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) , (binary_expression "bVar1 == 0x2f" identifier == number_literal)) )) (compound_statement "{\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }" { (expression_statement "param_1 = pbVar2;" (assignment_expression "param_1 = pbVar2" identifier = identifier) ;) (expression_statement "bVar1 = *pbVar2;" (assignment_expression "bVar1 = *pbVar2" identifier = (pointer_expression "*pbVar2" * identifier)) ;) (if_statement "if (*pbVar2 == 0) {\n          return pbVar2;\n        }" if (parenthesized_expression "(*pbVar2 == 0)" ( (binary_expression "*pbVar2 == 0" (pointer_expression "*pbVar2" * identifier) == number_literal) )) (compound_statement "{\n          return pbVar2;\n        }" { (return_statement "return pbVar2;" return identifier ;) })) })) (if_statement "if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }" if (parenthesized_expression "(bVar1 == 0x5c)" ( (binary_expression "bVar1 == 0x5c" identifier == number_literal) )) (compound_statement "{\n        param_1 = pbVar2;\n      }" { (expression_statement "param_1 = pbVar2;" (assignment_expression "param_1 = pbVar2" identifier = identifier) ;) })) (expression_statement "bVar1 = *pbVar2;" (assignment_expression "bVar1 = *pbVar2" identifier = (pointer_expression "*pbVar2" * identifier)) ;) }) while (parenthesized_expression "(*pbVar2 != 0)" ( (binary_expression "*pbVar2 != 0" (pointer_expression "*pbVar2" * identifier) != number_literal) )) ;) (return_statement "return param_1;" return identifier ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) )))) & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression IDENT == LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (return_statement return IDENT ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) ;) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "byte * FUN_0032d670(byte *param_1)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *param_1;\n  if (((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&\n     (param_1[1] == 0x3a)) {\n    bVar1 = param_1[2];\n    param_1 = param_1 + 2;\n  }\n  pbVar2 = param_1;\n  if (bVar1 != 0) {\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return param_1;\n  }\n  return param_1;\n}" (type_identifier "byte") (pointer_declarator "* FUN_0032d670(byte *param_1)" (* "*") (function_declarator "FUN_0032d670(byte *param_1)" (identifier "FUN_0032d670") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *param_1;\n  if (((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&\n     (param_1[1] == 0x3a)) {\n    bVar1 = param_1[2];\n    param_1 = param_1 + 2;\n  }\n  pbVar2 = param_1;\n  if (bVar1 != 0) {\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return param_1;\n  }\n  return param_1;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&\n     (param_1[1] == 0x3a)) {\n    bVar1 = param_1[2];\n    param_1 = param_1 + 2;\n  }" (if "if") (parenthesized_expression "(((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&\n     (param_1[1] == 0x3a))" (( "(") (binary_expression "((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&\n     (param_1[1] == 0x3a)" (parenthesized_expression "((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0)" (( "(") (binary_expression "(*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0" (parenthesized_expression "(*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88)" (( "(") (binary_expression "*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88" (pointer_expression "*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2)" (* "*") (cast_expression "(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2)" (( "(") (binary_expression "PTR__sch_istable_004c4cdc + (uint)bVar1 * 2" (identifier "PTR__sch_istable_004c4cdc") (+ "+") (binary_expression "(uint)bVar1 * 2" (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "0x88")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_1[1] == 0x3a)" (( "(") (binary_expression "param_1[1] == 0x3a" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0x3a")) () ")"))) () ")")) (compound_statement "{\n    bVar1 = param_1[2];\n    param_1 = param_1 + 2;\n  }" ({ "{") (expression_statement "bVar1 = param_1[2];" (assignment_expression "bVar1 = param_1[2]" (identifier "bVar1") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "param_1 = param_1 + 2;" (assignment_expression "param_1 = param_1 + 2" (identifier "param_1") (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" (identifier "pbVar2") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (bVar1 != 0) {\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return param_1;\n  }" (if "if") (parenthesized_expression "(bVar1 != 0)" (( "(") (binary_expression "bVar1 != 0" (identifier "bVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);\n    return param_1;\n  }" ({ "{") (do_statement "do {\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    } while (*pbVar2 != 0);" (do "do") (compound_statement "{\n      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }\n      if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }\n      bVar1 = *pbVar2;\n    }" ({ "{") (while_statement "while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }" (while "while") (parenthesized_expression "(pbVar2 = pbVar2 + 1, bVar1 == 0x2f)" (( "(") (comma_expression "pbVar2 = pbVar2 + 1, bVar1 == 0x2f" (assignment_expression "pbVar2 = pbVar2 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1"))) (, ",") (binary_expression "bVar1 == 0x2f" (identifier "bVar1") (== "==") (number_literal "0x2f"))) () ")")) (compound_statement "{\n        param_1 = pbVar2;\n        bVar1 = *pbVar2;\n        if (*pbVar2 == 0) {\n          return pbVar2;\n        }\n      }" ({ "{") (expression_statement "param_1 = pbVar2;" (assignment_expression "param_1 = pbVar2" (identifier "param_1") (= "=") (identifier "pbVar2")) (; ";")) (expression_statement "bVar1 = *pbVar2;" (assignment_expression "bVar1 = *pbVar2" (identifier "bVar1") (= "=") (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2"))) (; ";")) (if_statement "if (*pbVar2 == 0) {\n          return pbVar2;\n        }" (if "if") (parenthesized_expression "(*pbVar2 == 0)" (( "(") (binary_expression "*pbVar2 == 0" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return pbVar2;\n        }" ({ "{") (return_statement "return pbVar2;" (return "return") (identifier "pbVar2") (; ";")) (} "}"))) (} "}"))) (if_statement "if (bVar1 == 0x5c) {\n        param_1 = pbVar2;\n      }" (if "if") (parenthesized_expression "(bVar1 == 0x5c)" (( "(") (binary_expression "bVar1 == 0x5c" (identifier "bVar1") (== "==") (number_literal "0x5c")) () ")")) (compound_statement "{\n        param_1 = pbVar2;\n      }" ({ "{") (expression_statement "param_1 = pbVar2;" (assignment_expression "param_1 = pbVar2" (identifier "param_1") (= "=") (identifier "pbVar2")) (; ";")) (} "}"))) (expression_statement "bVar1 = *pbVar2;" (assignment_expression "bVar1 = *pbVar2" (identifier "bVar1") (= "=") (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*pbVar2 != 0)" (( "(") (binary_expression "*pbVar2 != 0" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

char * function_1(char *var_2)

{
  type_1 var_3;
  type_1 *var_4;
  
  var_3 = *var_2;
  if (((*(type_2 *)(var_1 + (type_3)var_3 * 2) & 0x88) != 0) && (var_2[1] == ':'))
  {
    var_3 = var_2[2];
    var_2 = var_2 + 2;
  }
  var_4 = (type_1 *)var_2;
  if (var_3 != 0) {
    do {
      while (var_4 = var_4 + 1, var_3 == 0x2f) {
        var_2 = (char *)var_4;
        var_3 = *var_4;
        if (*var_4 == 0) {
          return (char *)var_4;
        }
      }
      if (var_3 == 0x5c) {
        var_2 = (char *)var_4;
      }
      var_3 = *var_4;
    } while (*var_4 != 0);
    return (char *)(type_1 *)var_2;
  }
  return (char *)(type_1 *)var_2;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator 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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (return_statement (identifier)))) (return_statement (identifier)))))

byte * MASKED(byte *param_1)

{
  byte bVar1;
  byte *pbVar2;
  
  bVar1 = *param_1;
  if (((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)bVar1 * 2) & 0x88) != 0) &&
     (param_1[1] == 0x3a)) {
    bVar1 = param_1[2];
    param_1 = param_1 + 2;
  }
  pbVar2 = param_1;
  if (bVar1 != 0) {
    do {
      while (pbVar2 = pbVar2 + 1, bVar1 == 0x2f) {
        param_1 = pbVar2;
        bVar1 = *pbVar2;
        if (*pbVar2 == 0) {
          return pbVar2;
        }
      }
      if (bVar1 == 0x5c) {
        param_1 = pbVar2;
      }
      bVar1 = *pbVar2;
    } while (*pbVar2 != 0);
    return param_1;
  }
  return param_1;
}

