
char * dlang_number(char *mangled,long *ret)

{
  long lVar1;
  byte *pbVar2;
  
  if ((mangled == (char *)0x0) || ((_sch_istable[(byte)*mangled] & 4) == 0)) {
    return (char *)0x0;
  }
  *ret = 0;
  if ((_sch_istable[(byte)*mangled] & 4) == 0) {
    if (*mangled == 0) {
      return (char *)0x0;
    }
  }
  else {
    lVar1 = 0;
    pbVar2 = (byte *)mangled;
    do {
      mangled = (char *)(pbVar2 + 1);
      *ret = lVar1 * 10;
      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;
      *ret = lVar1;
      pbVar2 = (byte *)mangled;
    } while ((_sch_istable[(byte)*mangled] & 4) != 0);
    if (*mangled == 0) {
      return (char *)0x0;
    }
    if (lVar1 < 0) {
      return (char *)0x0;
    }
  }
  return (char *)(byte *)mangled;
}



byte * FUN_00271fe0(byte *param_1,long *param_2)

{
  long lVar1;
  byte *pbVar2;
  
  if ((param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)) {
    return (byte *)0x0;
  }
  *param_2 = 0;
  if (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0) {
    if (*param_1 == 0) {
      return (byte *)0x0;
    }
  }
  else {
    lVar1 = 0;
    pbVar2 = param_1;
    do {
      param_1 = pbVar2 + 1;
      *param_2 = lVar1 * 10;
      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;
      *param_2 = lVar1;
      pbVar2 = param_1;
    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);
    if (*param_1 == 0) {
      return (byte *)0x0;
    }
    if (lVar1 < 0) {
      return (byte *)0x0;
    }
  }
  return param_1;
}


TEST RDI,RDI
JZ 0x00272054
MOVZX EAX,byte ptr [RDI]
LEA R8,[0x328b00]
TEST byte ptr [R8 + RAX*0x2],0x4
JZ 0x00272054
MOV qword ptr [RSI],0x0
MOVZX EDX,byte ptr [RDI]
TEST byte ptr [R8 + RDX*0x2],0x4
JZ 0x00272050
XOR EDX,EDX
NOP dword ptr [RAX]
LEA RDX,[RDX + RDX*0x4]
ADD RDI,0x1
LEA RAX,[RDX + RDX*0x1]
MOV qword ptr [RSI],RAX
MOVSX EDX,byte ptr [RDI + -0x1]
SUB EDX,0x30
MOVSXD RDX,EDX
ADD RDX,RAX
MOV qword ptr [RSI],RDX
MOVZX ECX,byte ptr [RDI]
TEST byte ptr [R8 + RCX*0x2],0x4
JNZ 0x00272010
TEST CL,CL
JZ 0x00272054
TEST RDX,RDX
JS 0x00272054
MOV RAX,RDI
RET
TEST DL,DL
JNZ 0x00272042
XOR EAX,EAX
RET
(translation_unit "byte * FUN_00271fe0(byte *param_1,long *param_2)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  \n  if ((param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)) {\n    return (byte *)0x0;\n  }\n  *param_2 = 0;\n  if (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0) {\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n  }\n  else {\n    lVar1 = 0;\n    pbVar2 = param_1;\n    do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (byte *)0x0;\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "byte * FUN_00271fe0(byte *param_1,long *param_2)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  \n  if ((param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)) {\n    return (byte *)0x0;\n  }\n  *param_2 = 0;\n  if (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0) {\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n  }\n  else {\n    lVar1 = 0;\n    pbVar2 = param_1;\n    do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (byte *)0x0;\n    }\n  }\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_00271fe0(byte *param_1,long *param_2)" * (function_declarator "FUN_00271fe0(byte *param_1,long *param_2)" identifier (parameter_list "(byte *param_1,long *param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  long lVar1;\n  byte *pbVar2;\n  \n  if ((param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)) {\n    return (byte *)0x0;\n  }\n  *param_2 = 0;\n  if (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0) {\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n  }\n  else {\n    lVar1 = 0;\n    pbVar2 = param_1;\n    do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (byte *)0x0;\n    }\n  }\n  return param_1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (if_statement "if ((param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)) {\n    return (byte *)0x0;\n  }" if (parenthesized_expression "((param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0))" ( (binary_expression "(param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)" (parenthesized_expression "(param_1 == (byte *)0x0)" ( (binary_expression "param_1 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)" ( (binary_expression "((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0" (parenthesized_expression "((&DAT_00328b00)[(ulong)*param_1 * 2] & 4)" ( (binary_expression "(&DAT_00328b00)[(ulong)*param_1 * 2] & 4" (subscript_expression "(&DAT_00328b00)[(ulong)*param_1 * 2]" (parenthesized_expression "(&DAT_00328b00)" ( (pointer_expression "&DAT_00328b00" & identifier) )) [ (binary_expression "(ulong)*param_1 * 2" (binary_expression "(ulong)*param_1" (parenthesized_expression "(ulong)" ( identifier )) * identifier) * number_literal) ]) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    return (byte *)0x0;\n  }" { (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (if_statement "if (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0) {\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n  }\n  else {\n    lVar1 = 0;\n    pbVar2 = param_1;\n    do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (byte *)0x0;\n    }\n  }" if (parenthesized_expression "(((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)" ( (binary_expression "((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0" (parenthesized_expression "((&DAT_00328b00)[(ulong)*param_1 * 2] & 4)" ( (binary_expression "(&DAT_00328b00)[(ulong)*param_1 * 2] & 4" (subscript_expression "(&DAT_00328b00)[(ulong)*param_1 * 2]" (parenthesized_expression "(&DAT_00328b00)" ( (pointer_expression "&DAT_00328b00" & identifier) )) [ (binary_expression "(ulong)*param_1 * 2" (binary_expression "(ulong)*param_1" (parenthesized_expression "(ulong)" ( identifier )) * identifier) * number_literal) ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n  }" { (if_statement "if (*param_1 == 0) {\n      return (byte *)0x0;\n    }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n      return (byte *)0x0;\n    }" { (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }) (else_clause "else {\n    lVar1 = 0;\n    pbVar2 = param_1;\n    do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (byte *)0x0;\n    }\n  }" else (compound_statement "{\n    lVar1 = 0;\n    pbVar2 = param_1;\n    do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (byte *)0x0;\n    }\n  }" { (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" identifier = number_literal) ;) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) (do_statement "do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);" do (compound_statement "{\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    }" { (expression_statement "param_1 = pbVar2 + 1;" (assignment_expression "param_1 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "*param_2 = lVar1 * 10;" (assignment_expression "*param_2 = lVar1 * 10" (pointer_expression "*param_2" * identifier) = (binary_expression "lVar1 * 10" identifier * number_literal)) ;) (expression_statement "lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;" (assignment_expression "lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10" identifier = (binary_expression "(long)((char)*pbVar2 + -0x30) + lVar1 * 10" (cast_expression "(long)((char)*pbVar2 + -0x30)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((char)*pbVar2 + -0x30)" ( (binary_expression "(char)*pbVar2 + -0x30" (cast_expression "(char)*pbVar2" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*pbVar2" * identifier)) + number_literal) ))) + (binary_expression "lVar1 * 10" identifier * number_literal))) ;) (expression_statement "*param_2 = lVar1;" (assignment_expression "*param_2 = lVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) }) while (parenthesized_expression "(((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0)" ( (binary_expression "((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0" (parenthesized_expression "((&DAT_00328b00)[(ulong)*param_1 * 2] & 4)" ( (binary_expression "(&DAT_00328b00)[(ulong)*param_1 * 2] & 4" (subscript_expression "(&DAT_00328b00)[(ulong)*param_1 * 2]" (parenthesized_expression "(&DAT_00328b00)" ( (pointer_expression "&DAT_00328b00" & identifier) )) [ (binary_expression "(ulong)*param_1 * 2" (binary_expression "(ulong)*param_1" (parenthesized_expression "(ulong)" ( identifier )) * identifier) * number_literal) ]) & number_literal) )) != number_literal) )) ;) (if_statement "if (*param_1 == 0) {\n      return (byte *)0x0;\n    }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n      return (byte *)0x0;\n    }" { (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (lVar1 < 0) {\n      return (byte *)0x0;\n    }" if (parenthesized_expression "(lVar1 < 0)" ( (binary_expression "lVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      return (byte *)0x0;\n    }" { (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }))) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "char * dlang_number(char *mangled,long *ret)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  \n  if ((mangled == (char *)0x0) || ((_sch_istable[(byte)*mangled] & 4) == 0)) {\n    return (char *)0x0;\n  }\n  *ret = 0;\n  if ((_sch_istable[(byte)*mangled] & 4) == 0) {\n    if (*mangled == 0) {\n      return (char *)0x0;\n    }\n  }\n  else {\n    lVar1 = 0;\n    pbVar2 = (byte *)mangled;\n    do {\n      mangled = (char *)(pbVar2 + 1);\n      *ret = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *ret = lVar1;\n      pbVar2 = (byte *)mangled;\n    } while ((_sch_istable[(byte)*mangled] & 4) != 0);\n    if (*mangled == 0) {\n      return (char *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (char *)0x0;\n    }\n  }\n  return (char *)(byte *)mangled;\n}\n\n" (function_definition "char * dlang_number(char *mangled,long *ret)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  \n  if ((mangled == (char *)0x0) || ((_sch_istable[(byte)*mangled] & 4) == 0)) {\n    return (char *)0x0;\n  }\n  *ret = 0;\n  if ((_sch_istable[(byte)*mangled] & 4) == 0) {\n    if (*mangled == 0) {\n      return (char *)0x0;\n    }\n  }\n  else {\n    lVar1 = 0;\n    pbVar2 = (byte *)mangled;\n    do {\n      mangled = (char *)(pbVar2 + 1);\n      *ret = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *ret = lVar1;\n      pbVar2 = (byte *)mangled;\n    } while ((_sch_istable[(byte)*mangled] & 4) != 0);\n    if (*mangled == 0) {\n      return (char *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (char *)0x0;\n    }\n  }\n  return (char *)(byte *)mangled;\n}" primitive_type (pointer_declarator "* dlang_number(char *mangled,long *ret)" * (function_declarator "dlang_number(char *mangled,long *ret)" identifier (parameter_list "(char *mangled,long *ret)" ( (parameter_declaration "char *mangled" primitive_type (pointer_declarator "*mangled" * identifier)) , (parameter_declaration "long *ret" (sized_type_specifier "long" long) (pointer_declarator "*ret" * identifier)) )))) (compound_statement "{\n  long lVar1;\n  byte *pbVar2;\n  \n  if ((mangled == (char *)0x0) || ((_sch_istable[(byte)*mangled] & 4) == 0)) {\n    return (char *)0x0;\n  }\n  *ret = 0;\n  if ((_sch_istable[(byte)*mangled] & 4) == 0) {\n    if (*mangled == 0) {\n      return (char *)0x0;\n    }\n  }\n  else {\n    lVar1 = 0;\n    pbVar2 = (byte *)mangled;\n    do {\n      mangled = (char *)(pbVar2 + 1);\n      *ret = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *ret = lVar1;\n      pbVar2 = (byte *)mangled;\n    } while ((_sch_istable[(byte)*mangled] & 4) != 0);\n    if (*mangled == 0) {\n      return (char *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (char *)0x0;\n    }\n  }\n  return (char *)(byte *)mangled;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (if_statement "if ((mangled == (char *)0x0) || ((_sch_istable[(byte)*mangled] & 4) == 0)) {\n    return (char *)0x0;\n  }" if (parenthesized_expression "((mangled == (char *)0x0) || ((_sch_istable[(byte)*mangled] & 4) == 0))" ( (binary_expression "(mangled == (char *)0x0) || ((_sch_istable[(byte)*mangled] & 4) == 0)" (parenthesized_expression "(mangled == (char *)0x0)" ( (binary_expression "mangled == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "((_sch_istable[(byte)*mangled] & 4) == 0)" ( (binary_expression "(_sch_istable[(byte)*mangled] & 4) == 0" (parenthesized_expression "(_sch_istable[(byte)*mangled] & 4)" ( (binary_expression "_sch_istable[(byte)*mangled] & 4" (subscript_expression "_sch_istable[(byte)*mangled]" identifier [ (binary_expression "(byte)*mangled" (parenthesized_expression "(byte)" ( identifier )) * identifier) ]) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    return (char *)0x0;\n  }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "*ret = 0;" (assignment_expression "*ret = 0" (pointer_expression "*ret" * identifier) = number_literal) ;) (if_statement "if ((_sch_istable[(byte)*mangled] & 4) == 0) {\n    if (*mangled == 0) {\n      return (char *)0x0;\n    }\n  }\n  else {\n    lVar1 = 0;\n    pbVar2 = (byte *)mangled;\n    do {\n      mangled = (char *)(pbVar2 + 1);\n      *ret = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *ret = lVar1;\n      pbVar2 = (byte *)mangled;\n    } while ((_sch_istable[(byte)*mangled] & 4) != 0);\n    if (*mangled == 0) {\n      return (char *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (char *)0x0;\n    }\n  }" if (parenthesized_expression "((_sch_istable[(byte)*mangled] & 4) == 0)" ( (binary_expression "(_sch_istable[(byte)*mangled] & 4) == 0" (parenthesized_expression "(_sch_istable[(byte)*mangled] & 4)" ( (binary_expression "_sch_istable[(byte)*mangled] & 4" (subscript_expression "_sch_istable[(byte)*mangled]" identifier [ (binary_expression "(byte)*mangled" (parenthesized_expression "(byte)" ( identifier )) * identifier) ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (*mangled == 0) {\n      return (char *)0x0;\n    }\n  }" { (if_statement "if (*mangled == 0) {\n      return (char *)0x0;\n    }" if (parenthesized_expression "(*mangled == 0)" ( (binary_expression "*mangled == 0" (pointer_expression "*mangled" * identifier) == number_literal) )) (compound_statement "{\n      return (char *)0x0;\n    }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }) (else_clause "else {\n    lVar1 = 0;\n    pbVar2 = (byte *)mangled;\n    do {\n      mangled = (char *)(pbVar2 + 1);\n      *ret = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *ret = lVar1;\n      pbVar2 = (byte *)mangled;\n    } while ((_sch_istable[(byte)*mangled] & 4) != 0);\n    if (*mangled == 0) {\n      return (char *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (char *)0x0;\n    }\n  }" else (compound_statement "{\n    lVar1 = 0;\n    pbVar2 = (byte *)mangled;\n    do {\n      mangled = (char *)(pbVar2 + 1);\n      *ret = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *ret = lVar1;\n      pbVar2 = (byte *)mangled;\n    } while ((_sch_istable[(byte)*mangled] & 4) != 0);\n    if (*mangled == 0) {\n      return (char *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (char *)0x0;\n    }\n  }" { (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" identifier = number_literal) ;) (expression_statement "pbVar2 = (byte *)mangled;" (assignment_expression "pbVar2 = (byte *)mangled" identifier = (cast_expression "(byte *)mangled" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n      mangled = (char *)(pbVar2 + 1);\n      *ret = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *ret = lVar1;\n      pbVar2 = (byte *)mangled;\n    } while ((_sch_istable[(byte)*mangled] & 4) != 0);" do (compound_statement "{\n      mangled = (char *)(pbVar2 + 1);\n      *ret = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *ret = lVar1;\n      pbVar2 = (byte *)mangled;\n    }" { (expression_statement "mangled = (char *)(pbVar2 + 1);" (assignment_expression "mangled = (char *)(pbVar2 + 1)" identifier = (cast_expression "(char *)(pbVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 1)" ( (binary_expression "pbVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*ret = lVar1 * 10;" (assignment_expression "*ret = lVar1 * 10" (pointer_expression "*ret" * identifier) = (binary_expression "lVar1 * 10" identifier * number_literal)) ;) (expression_statement "lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;" (assignment_expression "lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10" identifier = (binary_expression "(long)((char)*pbVar2 + -0x30) + lVar1 * 10" (cast_expression "(long)((char)*pbVar2 + -0x30)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((char)*pbVar2 + -0x30)" ( (binary_expression "(char)*pbVar2 + -0x30" (cast_expression "(char)*pbVar2" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*pbVar2" * identifier)) + number_literal) ))) + (binary_expression "lVar1 * 10" identifier * number_literal))) ;) (expression_statement "*ret = lVar1;" (assignment_expression "*ret = lVar1" (pointer_expression "*ret" * identifier) = identifier) ;) (expression_statement "pbVar2 = (byte *)mangled;" (assignment_expression "pbVar2 = (byte *)mangled" identifier = (cast_expression "(byte *)mangled" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) while (parenthesized_expression "((_sch_istable[(byte)*mangled] & 4) != 0)" ( (binary_expression "(_sch_istable[(byte)*mangled] & 4) != 0" (parenthesized_expression "(_sch_istable[(byte)*mangled] & 4)" ( (binary_expression "_sch_istable[(byte)*mangled] & 4" (subscript_expression "_sch_istable[(byte)*mangled]" identifier [ (binary_expression "(byte)*mangled" (parenthesized_expression "(byte)" ( identifier )) * identifier) ]) & number_literal) )) != number_literal) )) ;) (if_statement "if (*mangled == 0) {\n      return (char *)0x0;\n    }" if (parenthesized_expression "(*mangled == 0)" ( (binary_expression "*mangled == 0" (pointer_expression "*mangled" * identifier) == number_literal) )) (compound_statement "{\n      return (char *)0x0;\n    }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (lVar1 < 0) {\n      return (char *)0x0;\n    }" if (parenthesized_expression "(lVar1 < 0)" ( (binary_expression "lVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      return (char *)0x0;\n    }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }))) (return_statement "return (char *)(byte *)mangled;" return (cast_expression "(char *)(byte *)mangled" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (cast_expression "(byte *)mangled" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })))
(translation_unit "byte * FUN_00271fe0(byte *param_1,long *param_2)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  \n  if ((param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)) {\n    return (byte *)0x0;\n  }\n  *param_2 = 0;\n  if (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0) {\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n  }\n  else {\n    lVar1 = 0;\n    pbVar2 = param_1;\n    do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (byte *)0x0;\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "byte * FUN_00271fe0(byte *param_1,long *param_2)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  \n  if ((param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)) {\n    return (byte *)0x0;\n  }\n  *param_2 = 0;\n  if (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0) {\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n  }\n  else {\n    lVar1 = 0;\n    pbVar2 = param_1;\n    do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (byte *)0x0;\n    }\n  }\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_00271fe0(byte *param_1,long *param_2)" * (function_declarator "FUN_00271fe0(byte *param_1,long *param_2)" identifier (parameter_list "(byte *param_1,long *param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  long lVar1;\n  byte *pbVar2;\n  \n  if ((param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)) {\n    return (byte *)0x0;\n  }\n  *param_2 = 0;\n  if (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0) {\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n  }\n  else {\n    lVar1 = 0;\n    pbVar2 = param_1;\n    do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (byte *)0x0;\n    }\n  }\n  return param_1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (if_statement "if ((param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)) {\n    return (byte *)0x0;\n  }" if (parenthesized_expression "((param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0))" ( (binary_expression "(param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)" (parenthesized_expression "(param_1 == (byte *)0x0)" ( (binary_expression "param_1 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)" ( (binary_expression "((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0" (parenthesized_expression "((&DAT_00328b00)[(ulong)*param_1 * 2] & 4)" ( (binary_expression "(&DAT_00328b00)[(ulong)*param_1 * 2] & 4" (subscript_expression "(&DAT_00328b00)[(ulong)*param_1 * 2]" (parenthesized_expression "(&DAT_00328b00)" ( (pointer_expression "&DAT_00328b00" & identifier) )) [ (binary_expression "(ulong)*param_1 * 2" (binary_expression "(ulong)*param_1" (parenthesized_expression "(ulong)" ( identifier )) * identifier) * number_literal) ]) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    return (byte *)0x0;\n  }" { (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (if_statement "if (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0) {\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n  }\n  else {\n    lVar1 = 0;\n    pbVar2 = param_1;\n    do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (byte *)0x0;\n    }\n  }" if (parenthesized_expression "(((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)" ( (binary_expression "((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0" (parenthesized_expression "((&DAT_00328b00)[(ulong)*param_1 * 2] & 4)" ( (binary_expression "(&DAT_00328b00)[(ulong)*param_1 * 2] & 4" (subscript_expression "(&DAT_00328b00)[(ulong)*param_1 * 2]" (parenthesized_expression "(&DAT_00328b00)" ( (pointer_expression "&DAT_00328b00" & identifier) )) [ (binary_expression "(ulong)*param_1 * 2" (binary_expression "(ulong)*param_1" (parenthesized_expression "(ulong)" ( identifier )) * identifier) * number_literal) ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n  }" { (if_statement "if (*param_1 == 0) {\n      return (byte *)0x0;\n    }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n      return (byte *)0x0;\n    }" { (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }) (else_clause "else {\n    lVar1 = 0;\n    pbVar2 = param_1;\n    do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (byte *)0x0;\n    }\n  }" else (compound_statement "{\n    lVar1 = 0;\n    pbVar2 = param_1;\n    do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (byte *)0x0;\n    }\n  }" { (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" identifier = number_literal) ;) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) (do_statement "do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);" do (compound_statement "{\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    }" { (expression_statement "param_1 = pbVar2 + 1;" (assignment_expression "param_1 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "*param_2 = lVar1 * 10;" (assignment_expression "*param_2 = lVar1 * 10" (pointer_expression "*param_2" * identifier) = (binary_expression "lVar1 * 10" identifier * number_literal)) ;) (expression_statement "lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;" (assignment_expression "lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10" identifier = (binary_expression "(long)((char)*pbVar2 + -0x30) + lVar1 * 10" (cast_expression "(long)((char)*pbVar2 + -0x30)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((char)*pbVar2 + -0x30)" ( (binary_expression "(char)*pbVar2 + -0x30" (cast_expression "(char)*pbVar2" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*pbVar2" * identifier)) + number_literal) ))) + (binary_expression "lVar1 * 10" identifier * number_literal))) ;) (expression_statement "*param_2 = lVar1;" (assignment_expression "*param_2 = lVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) }) while (parenthesized_expression "(((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0)" ( (binary_expression "((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0" (parenthesized_expression "((&DAT_00328b00)[(ulong)*param_1 * 2] & 4)" ( (binary_expression "(&DAT_00328b00)[(ulong)*param_1 * 2] & 4" (subscript_expression "(&DAT_00328b00)[(ulong)*param_1 * 2]" (parenthesized_expression "(&DAT_00328b00)" ( (pointer_expression "&DAT_00328b00" & identifier) )) [ (binary_expression "(ulong)*param_1 * 2" (binary_expression "(ulong)*param_1" (parenthesized_expression "(ulong)" ( identifier )) * identifier) * number_literal) ]) & number_literal) )) != number_literal) )) ;) (if_statement "if (*param_1 == 0) {\n      return (byte *)0x0;\n    }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n      return (byte *)0x0;\n    }" { (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (lVar1 < 0) {\n      return (byte *)0x0;\n    }" if (parenthesized_expression "(lVar1 < 0)" ( (binary_expression "lVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      return (byte *)0x0;\n    }" { (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }))) (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)) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) )))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) * LIT) ]) & LIT) )) == LIT) ))) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) * LIT) ]) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) + LIT) ))) + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) * LIT) ]) & LIT) )) != LIT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) }))) (return_statement return IDENT ;) })))
(function_definition "byte * FUN_00271fe0(byte *param_1,long *param_2)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  \n  if ((param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)) {\n    return (byte *)0x0;\n  }\n  *param_2 = 0;\n  if (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0) {\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n  }\n  else {\n    lVar1 = 0;\n    pbVar2 = param_1;\n    do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (byte *)0x0;\n    }\n  }\n  return param_1;\n}" (type_identifier "byte") (pointer_declarator "* FUN_00271fe0(byte *param_1,long *param_2)" (* "*") (function_declarator "FUN_00271fe0(byte *param_1,long *param_2)" (identifier "FUN_00271fe0") (parameter_list "(byte *param_1,long *param_2)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  long lVar1;\n  byte *pbVar2;\n  \n  if ((param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)) {\n    return (byte *)0x0;\n  }\n  *param_2 = 0;\n  if (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0) {\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n  }\n  else {\n    lVar1 = 0;\n    pbVar2 = param_1;\n    do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (byte *)0x0;\n    }\n  }\n  return param_1;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (if_statement "if ((param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)) {\n    return (byte *)0x0;\n  }" (if "if") (parenthesized_expression "((param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0))" (( "(") (binary_expression "(param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)" (parenthesized_expression "(param_1 == (byte *)0x0)" (( "(") (binary_expression "param_1 == (byte *)0x0" (identifier "param_1") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)" (( "(") (binary_expression "((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0" (parenthesized_expression "((&DAT_00328b00)[(ulong)*param_1 * 2] & 4)" (( "(") (binary_expression "(&DAT_00328b00)[(ulong)*param_1 * 2] & 4" (subscript_expression "(&DAT_00328b00)[(ulong)*param_1 * 2]" (parenthesized_expression "(&DAT_00328b00)" (( "(") (pointer_expression "&DAT_00328b00" (& "&") (identifier "DAT_00328b00")) () ")")) ([ "[") (binary_expression "(ulong)*param_1 * 2" (binary_expression "(ulong)*param_1" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (identifier "param_1")) (* "*") (number_literal "2")) (] "]")) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    return (byte *)0x0;\n  }" ({ "{") (return_statement "return (byte *)0x0;" (return "return") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0) {\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n  }\n  else {\n    lVar1 = 0;\n    pbVar2 = param_1;\n    do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (byte *)0x0;\n    }\n  }" (if "if") (parenthesized_expression "(((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)" (( "(") (binary_expression "((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0" (parenthesized_expression "((&DAT_00328b00)[(ulong)*param_1 * 2] & 4)" (( "(") (binary_expression "(&DAT_00328b00)[(ulong)*param_1 * 2] & 4" (subscript_expression "(&DAT_00328b00)[(ulong)*param_1 * 2]" (parenthesized_expression "(&DAT_00328b00)" (( "(") (pointer_expression "&DAT_00328b00" (& "&") (identifier "DAT_00328b00")) () ")")) ([ "[") (binary_expression "(ulong)*param_1 * 2" (binary_expression "(ulong)*param_1" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (identifier "param_1")) (* "*") (number_literal "2")) (] "]")) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n  }" ({ "{") (if_statement "if (*param_1 == 0) {\n      return (byte *)0x0;\n    }" (if "if") (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return (byte *)0x0;\n    }" ({ "{") (return_statement "return (byte *)0x0;" (return "return") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    lVar1 = 0;\n    pbVar2 = param_1;\n    do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (byte *)0x0;\n    }\n  }" (else "else") (compound_statement "{\n    lVar1 = 0;\n    pbVar2 = param_1;\n    do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);\n    if (*param_1 == 0) {\n      return (byte *)0x0;\n    }\n    if (lVar1 < 0) {\n      return (byte *)0x0;\n    }\n  }" ({ "{") (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" (identifier "lVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" (identifier "pbVar2") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);" (do "do") (compound_statement "{\n      param_1 = pbVar2 + 1;\n      *param_2 = lVar1 * 10;\n      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;\n      *param_2 = lVar1;\n      pbVar2 = param_1;\n    }" ({ "{") (expression_statement "param_1 = pbVar2 + 1;" (assignment_expression "param_1 = pbVar2 + 1" (identifier "param_1") (= "=") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_2 = lVar1 * 10;" (assignment_expression "*param_2 = lVar1 * 10" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "lVar1 * 10" (identifier "lVar1") (* "*") (number_literal "10"))) (; ";")) (expression_statement "lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;" (assignment_expression "lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10" (identifier "lVar1") (= "=") (binary_expression "(long)((char)*pbVar2 + -0x30) + lVar1 * 10" (cast_expression "(long)((char)*pbVar2 + -0x30)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "((char)*pbVar2 + -0x30)" (( "(") (binary_expression "(char)*pbVar2 + -0x30" (cast_expression "(char)*pbVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2"))) (+ "+") (number_literal "-0x30")) () ")"))) (+ "+") (binary_expression "lVar1 * 10" (identifier "lVar1") (* "*") (number_literal "10")))) (; ";")) (expression_statement "*param_2 = lVar1;" (assignment_expression "*param_2 = lVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "lVar1")) (; ";")) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" (identifier "pbVar2") (= "=") (identifier "param_1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0)" (( "(") (binary_expression "((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0" (parenthesized_expression "((&DAT_00328b00)[(ulong)*param_1 * 2] & 4)" (( "(") (binary_expression "(&DAT_00328b00)[(ulong)*param_1 * 2] & 4" (subscript_expression "(&DAT_00328b00)[(ulong)*param_1 * 2]" (parenthesized_expression "(&DAT_00328b00)" (( "(") (pointer_expression "&DAT_00328b00" (& "&") (identifier "DAT_00328b00")) () ")")) ([ "[") (binary_expression "(ulong)*param_1 * 2" (binary_expression "(ulong)*param_1" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (identifier "param_1")) (* "*") (number_literal "2")) (] "]")) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (if_statement "if (*param_1 == 0) {\n      return (byte *)0x0;\n    }" (if "if") (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return (byte *)0x0;\n    }" ({ "{") (return_statement "return (byte *)0x0;" (return "return") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (if_statement "if (lVar1 < 0) {\n      return (byte *)0x0;\n    }" (if "if") (parenthesized_expression "(lVar1 < 0)" (( "(") (binary_expression "lVar1 < 0" (identifier "lVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      return (byte *)0x0;\n    }" ({ "{") (return_statement "return (byte *)0x0;" (return "return") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (} "}")))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

char * function_1(char *var_1,long *ret)

{
  long var_3;
  type_1 *var_2;
  
  if ((var_1 == (char *)0x0) || ((_sch_istable[(type_1)*var_1] & 4) == 0)) {
    return (char *)0x0;
  }
  *ret = 0;
  if ((_sch_istable[(type_1)*var_1] & 4) == 0) {
    if (*var_1 == 0) {
      return (char *)0x0;
    }
  }
  else {
    var_3 = 0;
    var_2 = (type_1 *)var_1;
    do {
      var_1 = (char *)(var_2 + 1);
      *ret = var_3 * 10;
      var_3 = (long)((char)*var_2 + -0x30) + var_3 * 10;
      *ret = var_3;
      var_2 = (type_1 *)var_1;
    } while ((_sch_istable[(type_1)*var_1] & 4) != 0);
    if (*var_1 == 0) {
      return (char *)0x0;
    }
    if (var_3 < 0) {
      return (char *)0x0;
    }
  }
  return (char *)(type_1 *)var_1;
}


(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))) (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (number_literal))) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (number_literal))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))) right: (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (number_literal))) right: (number_literal))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))))) (return_statement (identifier)))))

byte * MASKED(byte *param_1,long *param_2)

{
  long lVar1;
  byte *pbVar2;
  
  if ((param_1 == (byte *)0x0) || (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0)) {
    return (byte *)0x0;
  }
  *param_2 = 0;
  if (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) == 0) {
    if (*param_1 == 0) {
      return (byte *)0x0;
    }
  }
  else {
    lVar1 = 0;
    pbVar2 = param_1;
    do {
      param_1 = pbVar2 + 1;
      *param_2 = lVar1 * 10;
      lVar1 = (long)((char)*pbVar2 + -0x30) + lVar1 * 10;
      *param_2 = lVar1;
      pbVar2 = param_1;
    } while (((&DAT_00328b00)[(ulong)*param_1 * 2] & 4) != 0);
    if (*param_1 == 0) {
      return (byte *)0x0;
    }
    if (lVar1 < 0) {
      return (byte *)0x0;
    }
  }
  return param_1;
}

