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

{
  undefined *puVar1;
  int iVar2;
  byte *pbVar3;
  
  puVar1 = PTR__sch_istable_004c4cdc;
  if ((mangled != (char *)0x0) &&
     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)(byte)*mangled * 2) & 4) != 0)) {
    *ret = 0;
    if ((*(ushort *)(puVar1 + (uint)(byte)*mangled * 2) & 4) == 0) {
      if (*mangled != 0) {
        return mangled;
      }
    }
    else {
      iVar2 = 0;
      do {
        pbVar3 = (byte *)mangled + 1;
        *ret = iVar2 * 10;
        iVar2 = *mangled + -0x30 + iVar2 * 10;
        *ret = iVar2;
        mangled = (char *)pbVar3;
      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);
      if ((*pbVar3 != 0) && (-1 < iVar2)) {
        return (char *)pbVar3;
      }
    }
  }
  return (char *)0x0;
}



byte * FUN_00329fc0(byte *param_1,int *param_2)

{
  undefined *puVar1;
  int iVar2;
  byte *pbVar3;
  
  puVar1 = PTR__sch_istable_004c4cdc;
  if ((param_1 != (byte *)0x0) &&
     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0)) {
    *param_2 = 0;
    if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {
      if (*param_1 != 0) {
        return param_1;
      }
    }
    else {
      iVar2 = 0;
      do {
        pbVar3 = param_1 + 1;
        *param_2 = iVar2 * 10;
        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;
        *param_2 = iVar2;
        param_1 = pbVar3;
      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);
      if ((*pbVar3 != 0) && (-1 < iVar2)) {
        return pbVar3;
      }
    }
  }
  return (byte *)0x0;
}


lui gp,0x1a
addiu gp,gp,-0xd80
addu gp,gp,t9
beq a0,zero,0x0032a074
_lw t0,-0x4564(gp)
lbu v0,0x0(a0)
sll v0,v0,0x1
addu v0,t0,v0
lhu v0,0x0(v0)
andi v0,v0,0x4
beq v0,zero,0x0032a074
_nop
sw zero,0x0(a1)
lb v1,0x0(a0)
andi v0,v1,0xff
sll v0,v0,0x1
addu v0,t0,v0
lhu v0,0x0(v0)
andi v0,v0,0x4
beq v0,zero,0x0032a07c
_nop
or v1,zero,zero
sll a2,v1,0x2
addiu a0,a0,0x1
addu v1,a2,v1
sll a2,v1,0x1
sw a2,0x0(a1)
lb v1,-0x1(a0)
addiu v1,v1,-0x30
addu v1,v1,a2
sw v1,0x0(a1)
lb a3,0x0(a0)
andi a2,a3,0xff
sll a2,a2,0x1
addu a2,t0,a2
lhu v0,0x0(a2)
andi v0,v0,0x4
bne v0,zero,0x0032a018
_nop
beq a3,zero,0x0032a074
_nop
bltz v1,0x0032a074
_nop
jr ra
_or v0,a0,zero
jr ra
_or v0,zero,zero
beq v1,zero,0x0032a074
_nop
jr ra
_or v0,a0,zero
(translation_unit "byte * FUN_00329fc0(byte *param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  puVar1 = PTR__sch_istable_004c4cdc;\n  if ((param_1 != (byte *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0)) {\n    *param_2 = 0;\n    if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }\n  }\n  return (byte *)0x0;\n}\n\n" (function_definition "byte * FUN_00329fc0(byte *param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  puVar1 = PTR__sch_istable_004c4cdc;\n  if ((param_1 != (byte *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0)) {\n    *param_2 = 0;\n    if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }\n  }\n  return (byte *)0x0;\n}" type_identifier (pointer_declarator "* FUN_00329fc0(byte *param_1,int *param_2)" * (function_declarator "FUN_00329fc0(byte *param_1,int *param_2)" identifier (parameter_list "(byte *param_1,int *param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  puVar1 = PTR__sch_istable_004c4cdc;\n  if ((param_1 != (byte *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0)) {\n    *param_2 = 0;\n    if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }\n  }\n  return (byte *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (expression_statement "puVar1 = PTR__sch_istable_004c4cdc;" (assignment_expression "puVar1 = PTR__sch_istable_004c4cdc" identifier = identifier) ;) (if_statement "if ((param_1 != (byte *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0)) {\n    *param_2 = 0;\n    if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }\n  }" if (parenthesized_expression "((param_1 != (byte *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0))" ( (binary_expression "(param_1 != (byte *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*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 "((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0)" ( (binary_expression "(*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4)" ( (binary_expression "*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4" (pointer_expression "*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2)" * (cast_expression "(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2)" ( (binary_expression "PTR__sch_istable_004c4cdc + (uint)*param_1 * 2" identifier + (binary_expression "(uint)*param_1 * 2" (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    *param_2 = 0;\n    if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }\n  }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (if_statement "if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }" if (parenthesized_expression "((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0)" ( (binary_expression "(*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0" (parenthesized_expression "(*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4)" ( (binary_expression "*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4" (pointer_expression "*(ushort *)(puVar1 + (uint)*param_1 * 2)" * (cast_expression "(ushort *)(puVar1 + (uint)*param_1 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (uint)*param_1 * 2)" ( (binary_expression "puVar1 + (uint)*param_1 * 2" identifier + (binary_expression "(uint)*param_1 * 2" (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }" { (if_statement "if (*param_1 != 0) {\n        return param_1;\n      }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) }) (else_clause "else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }" else (compound_statement "{\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);" do (compound_statement "{\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      }" { (expression_statement "pbVar3 = param_1 + 1;" (assignment_expression "pbVar3 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "*param_2 = iVar2 * 10;" (assignment_expression "*param_2 = iVar2 * 10" (pointer_expression "*param_2" * identifier) = (binary_expression "iVar2 * 10" identifier * number_literal)) ;) (expression_statement "iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;" (assignment_expression "iVar2 = (char)*param_1 + -0x30 + iVar2 * 10" identifier = (binary_expression "(char)*param_1 + -0x30 + iVar2 * 10" (binary_expression "(char)*param_1 + -0x30" (cast_expression "(char)*param_1" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*param_1" * identifier)) + number_literal) + (binary_expression "iVar2 * 10" identifier * number_literal))) ;) (expression_statement "*param_2 = iVar2;" (assignment_expression "*param_2 = iVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_1 = pbVar3;" (assignment_expression "param_1 = pbVar3" identifier = identifier) ;) }) while (parenthesized_expression "((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0)" ( (binary_expression "(*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4)" ( (binary_expression "*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4" (pointer_expression "*(ushort *)(puVar1 + (uint)*pbVar3 * 2)" * (cast_expression "(ushort *)(puVar1 + (uint)*pbVar3 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (uint)*pbVar3 * 2)" ( (binary_expression "puVar1 + (uint)*pbVar3 * 2" identifier + (binary_expression "(uint)*pbVar3 * 2" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) != number_literal) )) ;) (if_statement "if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }" if (parenthesized_expression "((*pbVar3 != 0) && (-1 < iVar2))" ( (binary_expression "(*pbVar3 != 0) && (-1 < iVar2)" (parenthesized_expression "(*pbVar3 != 0)" ( (binary_expression "*pbVar3 != 0" (pointer_expression "*pbVar3" * identifier) != number_literal) )) && (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) ))) )) (compound_statement "{\n        return pbVar3;\n      }" { (return_statement "return pbVar3;" return identifier ;) })) }))) })) (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "char * dlang_number(char *mangled,long *ret)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  puVar1 = PTR__sch_istable_004c4cdc;\n  if ((mangled != (char *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)(byte)*mangled * 2) & 4) != 0)) {\n    *ret = 0;\n    if ((*(ushort *)(puVar1 + (uint)(byte)*mangled * 2) & 4) == 0) {\n      if (*mangled != 0) {\n        return mangled;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = (byte *)mangled + 1;\n        *ret = iVar2 * 10;\n        iVar2 = *mangled + -0x30 + iVar2 * 10;\n        *ret = iVar2;\n        mangled = (char *)pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return (char *)pbVar3;\n      }\n    }\n  }\n  return (char *)0x0;\n}\n\n" (function_definition "char * dlang_number(char *mangled,long *ret)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  puVar1 = PTR__sch_istable_004c4cdc;\n  if ((mangled != (char *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)(byte)*mangled * 2) & 4) != 0)) {\n    *ret = 0;\n    if ((*(ushort *)(puVar1 + (uint)(byte)*mangled * 2) & 4) == 0) {\n      if (*mangled != 0) {\n        return mangled;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = (byte *)mangled + 1;\n        *ret = iVar2 * 10;\n        iVar2 = *mangled + -0x30 + iVar2 * 10;\n        *ret = iVar2;\n        mangled = (char *)pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return (char *)pbVar3;\n      }\n    }\n  }\n  return (char *)0x0;\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  undefined *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  puVar1 = PTR__sch_istable_004c4cdc;\n  if ((mangled != (char *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)(byte)*mangled * 2) & 4) != 0)) {\n    *ret = 0;\n    if ((*(ushort *)(puVar1 + (uint)(byte)*mangled * 2) & 4) == 0) {\n      if (*mangled != 0) {\n        return mangled;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = (byte *)mangled + 1;\n        *ret = iVar2 * 10;\n        iVar2 = *mangled + -0x30 + iVar2 * 10;\n        *ret = iVar2;\n        mangled = (char *)pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return (char *)pbVar3;\n      }\n    }\n  }\n  return (char *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (expression_statement "puVar1 = PTR__sch_istable_004c4cdc;" (assignment_expression "puVar1 = PTR__sch_istable_004c4cdc" identifier = identifier) ;) (if_statement "if ((mangled != (char *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)(byte)*mangled * 2) & 4) != 0)) {\n    *ret = 0;\n    if ((*(ushort *)(puVar1 + (uint)(byte)*mangled * 2) & 4) == 0) {\n      if (*mangled != 0) {\n        return mangled;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = (byte *)mangled + 1;\n        *ret = iVar2 * 10;\n        iVar2 = *mangled + -0x30 + iVar2 * 10;\n        *ret = iVar2;\n        mangled = (char *)pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return (char *)pbVar3;\n      }\n    }\n  }" if (parenthesized_expression "((mangled != (char *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)(byte)*mangled * 2) & 4) != 0))" ( (binary_expression "(mangled != (char *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)(byte)*mangled * 2) & 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 "((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)(byte)*mangled * 2) & 4) != 0)" ( (binary_expression "(*(ushort *)(PTR__sch_istable_004c4cdc + (uint)(byte)*mangled * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(PTR__sch_istable_004c4cdc + (uint)(byte)*mangled * 2) & 4)" ( (binary_expression "*(ushort *)(PTR__sch_istable_004c4cdc + (uint)(byte)*mangled * 2) & 4" (pointer_expression "*(ushort *)(PTR__sch_istable_004c4cdc + (uint)(byte)*mangled * 2)" * (cast_expression "(ushort *)(PTR__sch_istable_004c4cdc + (uint)(byte)*mangled * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__sch_istable_004c4cdc + (uint)(byte)*mangled * 2)" ( (binary_expression "PTR__sch_istable_004c4cdc + (uint)(byte)*mangled * 2" identifier + (binary_expression "(uint)(byte)*mangled * 2" (binary_expression "(uint)(byte)*mangled" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier) * number_literal)) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    *ret = 0;\n    if ((*(ushort *)(puVar1 + (uint)(byte)*mangled * 2) & 4) == 0) {\n      if (*mangled != 0) {\n        return mangled;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = (byte *)mangled + 1;\n        *ret = iVar2 * 10;\n        iVar2 = *mangled + -0x30 + iVar2 * 10;\n        *ret = iVar2;\n        mangled = (char *)pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return (char *)pbVar3;\n      }\n    }\n  }" { (expression_statement "*ret = 0;" (assignment_expression "*ret = 0" (pointer_expression "*ret" * identifier) = number_literal) ;) (if_statement "if ((*(ushort *)(puVar1 + (uint)(byte)*mangled * 2) & 4) == 0) {\n      if (*mangled != 0) {\n        return mangled;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = (byte *)mangled + 1;\n        *ret = iVar2 * 10;\n        iVar2 = *mangled + -0x30 + iVar2 * 10;\n        *ret = iVar2;\n        mangled = (char *)pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return (char *)pbVar3;\n      }\n    }" if (parenthesized_expression "((*(ushort *)(puVar1 + (uint)(byte)*mangled * 2) & 4) == 0)" ( (binary_expression "(*(ushort *)(puVar1 + (uint)(byte)*mangled * 2) & 4) == 0" (parenthesized_expression "(*(ushort *)(puVar1 + (uint)(byte)*mangled * 2) & 4)" ( (binary_expression "*(ushort *)(puVar1 + (uint)(byte)*mangled * 2) & 4" (pointer_expression "*(ushort *)(puVar1 + (uint)(byte)*mangled * 2)" * (cast_expression "(ushort *)(puVar1 + (uint)(byte)*mangled * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (uint)(byte)*mangled * 2)" ( (binary_expression "puVar1 + (uint)(byte)*mangled * 2" identifier + (binary_expression "(uint)(byte)*mangled * 2" (binary_expression "(uint)(byte)*mangled" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (*mangled != 0) {\n        return mangled;\n      }\n    }" { (if_statement "if (*mangled != 0) {\n        return mangled;\n      }" if (parenthesized_expression "(*mangled != 0)" ( (binary_expression "*mangled != 0" (pointer_expression "*mangled" * identifier) != number_literal) )) (compound_statement "{\n        return mangled;\n      }" { (return_statement "return mangled;" return identifier ;) })) }) (else_clause "else {\n      iVar2 = 0;\n      do {\n        pbVar3 = (byte *)mangled + 1;\n        *ret = iVar2 * 10;\n        iVar2 = *mangled + -0x30 + iVar2 * 10;\n        *ret = iVar2;\n        mangled = (char *)pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return (char *)pbVar3;\n      }\n    }" else (compound_statement "{\n      iVar2 = 0;\n      do {\n        pbVar3 = (byte *)mangled + 1;\n        *ret = iVar2 * 10;\n        iVar2 = *mangled + -0x30 + iVar2 * 10;\n        *ret = iVar2;\n        mangled = (char *)pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return (char *)pbVar3;\n      }\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n        pbVar3 = (byte *)mangled + 1;\n        *ret = iVar2 * 10;\n        iVar2 = *mangled + -0x30 + iVar2 * 10;\n        *ret = iVar2;\n        mangled = (char *)pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);" do (compound_statement "{\n        pbVar3 = (byte *)mangled + 1;\n        *ret = iVar2 * 10;\n        iVar2 = *mangled + -0x30 + iVar2 * 10;\n        *ret = iVar2;\n        mangled = (char *)pbVar3;\n      }" { (expression_statement "pbVar3 = (byte *)mangled + 1;" (assignment_expression "pbVar3 = (byte *)mangled + 1" identifier = (binary_expression "(byte *)mangled + 1" (cast_expression "(byte *)mangled" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal)) ;) (expression_statement "*ret = iVar2 * 10;" (assignment_expression "*ret = iVar2 * 10" (pointer_expression "*ret" * identifier) = (binary_expression "iVar2 * 10" identifier * number_literal)) ;) (expression_statement "iVar2 = *mangled + -0x30 + iVar2 * 10;" (assignment_expression "iVar2 = *mangled + -0x30 + iVar2 * 10" identifier = (binary_expression "*mangled + -0x30 + iVar2 * 10" (binary_expression "*mangled + -0x30" (pointer_expression "*mangled" * identifier) + number_literal) + (binary_expression "iVar2 * 10" identifier * number_literal))) ;) (expression_statement "*ret = iVar2;" (assignment_expression "*ret = iVar2" (pointer_expression "*ret" * identifier) = identifier) ;) (expression_statement "mangled = (char *)pbVar3;" (assignment_expression "mangled = (char *)pbVar3" identifier = (cast_expression "(char *)pbVar3" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) while (parenthesized_expression "((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0)" ( (binary_expression "(*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4)" ( (binary_expression "*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4" (pointer_expression "*(ushort *)(puVar1 + (uint)*pbVar3 * 2)" * (cast_expression "(ushort *)(puVar1 + (uint)*pbVar3 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (uint)*pbVar3 * 2)" ( (binary_expression "puVar1 + (uint)*pbVar3 * 2" identifier + (binary_expression "(uint)*pbVar3 * 2" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) != number_literal) )) ;) (if_statement "if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return (char *)pbVar3;\n      }" if (parenthesized_expression "((*pbVar3 != 0) && (-1 < iVar2))" ( (binary_expression "(*pbVar3 != 0) && (-1 < iVar2)" (parenthesized_expression "(*pbVar3 != 0)" ( (binary_expression "*pbVar3 != 0" (pointer_expression "*pbVar3" * identifier) != number_literal) )) && (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) ))) )) (compound_statement "{\n        return (char *)pbVar3;\n      }" { (return_statement "return (char *)pbVar3;" return (cast_expression "(char *)pbVar3" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) })) }))) })) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "byte * FUN_00329fc0(byte *param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  puVar1 = PTR__sch_istable_004c4cdc;\n  if ((param_1 != (byte *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0)) {\n    *param_2 = 0;\n    if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }\n  }\n  return (byte *)0x0;\n}\n\n" (function_definition "byte * FUN_00329fc0(byte *param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  puVar1 = PTR__sch_istable_004c4cdc;\n  if ((param_1 != (byte *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0)) {\n    *param_2 = 0;\n    if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }\n  }\n  return (byte *)0x0;\n}" type_identifier (pointer_declarator "* FUN_00329fc0(byte *param_1,int *param_2)" * (function_declarator "FUN_00329fc0(byte *param_1,int *param_2)" identifier (parameter_list "(byte *param_1,int *param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  puVar1 = PTR__sch_istable_004c4cdc;\n  if ((param_1 != (byte *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0)) {\n    *param_2 = 0;\n    if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }\n  }\n  return (byte *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (expression_statement "puVar1 = PTR__sch_istable_004c4cdc;" (assignment_expression "puVar1 = PTR__sch_istable_004c4cdc" identifier = identifier) ;) (if_statement "if ((param_1 != (byte *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0)) {\n    *param_2 = 0;\n    if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }\n  }" if (parenthesized_expression "((param_1 != (byte *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0))" ( (binary_expression "(param_1 != (byte *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*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 "((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0)" ( (binary_expression "(*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4)" ( (binary_expression "*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4" (pointer_expression "*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2)" * (cast_expression "(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2)" ( (binary_expression "PTR__sch_istable_004c4cdc + (uint)*param_1 * 2" identifier + (binary_expression "(uint)*param_1 * 2" (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    *param_2 = 0;\n    if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }\n  }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (if_statement "if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }" if (parenthesized_expression "((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0)" ( (binary_expression "(*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0" (parenthesized_expression "(*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4)" ( (binary_expression "*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4" (pointer_expression "*(ushort *)(puVar1 + (uint)*param_1 * 2)" * (cast_expression "(ushort *)(puVar1 + (uint)*param_1 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (uint)*param_1 * 2)" ( (binary_expression "puVar1 + (uint)*param_1 * 2" identifier + (binary_expression "(uint)*param_1 * 2" (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }" { (if_statement "if (*param_1 != 0) {\n        return param_1;\n      }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) }) (else_clause "else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }" else (compound_statement "{\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);" do (compound_statement "{\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      }" { (expression_statement "pbVar3 = param_1 + 1;" (assignment_expression "pbVar3 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "*param_2 = iVar2 * 10;" (assignment_expression "*param_2 = iVar2 * 10" (pointer_expression "*param_2" * identifier) = (binary_expression "iVar2 * 10" identifier * number_literal)) ;) (expression_statement "iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;" (assignment_expression "iVar2 = (char)*param_1 + -0x30 + iVar2 * 10" identifier = (binary_expression "(char)*param_1 + -0x30 + iVar2 * 10" (binary_expression "(char)*param_1 + -0x30" (cast_expression "(char)*param_1" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*param_1" * identifier)) + number_literal) + (binary_expression "iVar2 * 10" identifier * number_literal))) ;) (expression_statement "*param_2 = iVar2;" (assignment_expression "*param_2 = iVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_1 = pbVar3;" (assignment_expression "param_1 = pbVar3" identifier = identifier) ;) }) while (parenthesized_expression "((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0)" ( (binary_expression "(*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4)" ( (binary_expression "*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4" (pointer_expression "*(ushort *)(puVar1 + (uint)*pbVar3 * 2)" * (cast_expression "(ushort *)(puVar1 + (uint)*pbVar3 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (uint)*pbVar3 * 2)" ( (binary_expression "puVar1 + (uint)*pbVar3 * 2" identifier + (binary_expression "(uint)*pbVar3 * 2" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) != number_literal) )) ;) (if_statement "if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }" if (parenthesized_expression "((*pbVar3 != 0) && (-1 < iVar2))" ( (binary_expression "(*pbVar3 != 0) && (-1 < iVar2)" (parenthesized_expression "(*pbVar3 != 0)" ( (binary_expression "*pbVar3 != 0" (pointer_expression "*pbVar3" * identifier) != number_literal) )) && (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) ))) )) (compound_statement "{\n        return pbVar3;\n      }" { (return_statement "return pbVar3;" return identifier ;) })) }))) })) (return_statement "return (byte *)0x0;" return (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) * LIT)) )))) & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression 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 IDENT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (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 (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) * LIT)) )))) & LIT) )) != LIT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (return_statement return IDENT ;) })) }))) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "byte * FUN_00329fc0(byte *param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  puVar1 = PTR__sch_istable_004c4cdc;\n  if ((param_1 != (byte *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0)) {\n    *param_2 = 0;\n    if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }\n  }\n  return (byte *)0x0;\n}" (type_identifier "byte") (pointer_declarator "* FUN_00329fc0(byte *param_1,int *param_2)" (* "*") (function_declarator "FUN_00329fc0(byte *param_1,int *param_2)" (identifier "FUN_00329fc0") (parameter_list "(byte *param_1,int *param_2)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  puVar1 = PTR__sch_istable_004c4cdc;\n  if ((param_1 != (byte *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0)) {\n    *param_2 = 0;\n    if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }\n  }\n  return (byte *)0x0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (expression_statement "puVar1 = PTR__sch_istable_004c4cdc;" (assignment_expression "puVar1 = PTR__sch_istable_004c4cdc" (identifier "puVar1") (= "=") (identifier "PTR__sch_istable_004c4cdc")) (; ";")) (if_statement "if ((param_1 != (byte *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0)) {\n    *param_2 = 0;\n    if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((param_1 != (byte *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0))" (( "(") (binary_expression "(param_1 != (byte *)0x0) &&\n     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*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 "((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0)" (( "(") (binary_expression "(*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4)" (( "(") (binary_expression "*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4" (pointer_expression "*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2)" (* "*") (cast_expression "(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2)" (( "(") (binary_expression "PTR__sch_istable_004c4cdc + (uint)*param_1 * 2" (identifier "PTR__sch_istable_004c4cdc") (+ "+") (binary_expression "(uint)*param_1 * 2" (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_1")) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    *param_2 = 0;\n    if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }\n  }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }\n    else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }" (if "if") (parenthesized_expression "((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0)" (( "(") (binary_expression "(*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0" (parenthesized_expression "(*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4)" (( "(") (binary_expression "*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4" (pointer_expression "*(ushort *)(puVar1 + (uint)*param_1 * 2)" (* "*") (cast_expression "(ushort *)(puVar1 + (uint)*param_1 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + (uint)*param_1 * 2)" (( "(") (binary_expression "puVar1 + (uint)*param_1 * 2" (identifier "puVar1") (+ "+") (binary_expression "(uint)*param_1 * 2" (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_1")) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (*param_1 != 0) {\n        return param_1;\n      }\n    }" ({ "{") (if_statement "if (*param_1 != 0) {\n        return param_1;\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 param_1;\n      }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }" (else "else") (compound_statement "{\n      iVar2 = 0;\n      do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);\n      if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }\n    }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);" (do "do") (compound_statement "{\n        pbVar3 = param_1 + 1;\n        *param_2 = iVar2 * 10;\n        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;\n        *param_2 = iVar2;\n        param_1 = pbVar3;\n      }" ({ "{") (expression_statement "pbVar3 = param_1 + 1;" (assignment_expression "pbVar3 = param_1 + 1" (identifier "pbVar3") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_2 = iVar2 * 10;" (assignment_expression "*param_2 = iVar2 * 10" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "iVar2 * 10" (identifier "iVar2") (* "*") (number_literal "10"))) (; ";")) (expression_statement "iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;" (assignment_expression "iVar2 = (char)*param_1 + -0x30 + iVar2 * 10" (identifier "iVar2") (= "=") (binary_expression "(char)*param_1 + -0x30 + iVar2 * 10" (binary_expression "(char)*param_1 + -0x30" (cast_expression "(char)*param_1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (+ "+") (number_literal "-0x30")) (+ "+") (binary_expression "iVar2 * 10" (identifier "iVar2") (* "*") (number_literal "10")))) (; ";")) (expression_statement "*param_2 = iVar2;" (assignment_expression "*param_2 = iVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "param_1 = pbVar3;" (assignment_expression "param_1 = pbVar3" (identifier "param_1") (= "=") (identifier "pbVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0)" (( "(") (binary_expression "(*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4)" (( "(") (binary_expression "*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4" (pointer_expression "*(ushort *)(puVar1 + (uint)*pbVar3 * 2)" (* "*") (cast_expression "(ushort *)(puVar1 + (uint)*pbVar3 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + (uint)*pbVar3 * 2)" (( "(") (binary_expression "puVar1 + (uint)*pbVar3 * 2" (identifier "puVar1") (+ "+") (binary_expression "(uint)*pbVar3 * 2" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar3")) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (if_statement "if ((*pbVar3 != 0) && (-1 < iVar2)) {\n        return pbVar3;\n      }" (if "if") (parenthesized_expression "((*pbVar3 != 0) && (-1 < iVar2))" (( "(") (binary_expression "(*pbVar3 != 0) && (-1 < iVar2)" (parenthesized_expression "(*pbVar3 != 0)" (( "(") (binary_expression "*pbVar3 != 0" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")"))) () ")")) (compound_statement "{\n        return pbVar3;\n      }" ({ "{") (return_statement "return pbVar3;" (return "return") (identifier "pbVar3") (; ";")) (} "}"))) (} "}")))) (} "}"))) (return_statement "return (byte *)0x0;" (return "return") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))
(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: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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: (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: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (number_literal)))))) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (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: (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: (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 (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (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: (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: (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: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))))) consequence: (compound_statement (return_statement (identifier))))))))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))

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

{
  undefined *puVar1;
  int iVar2;
  byte *pbVar3;
  
  puVar1 = PTR__sch_istable_004c4cdc;
  if ((param_1 != (byte *)0x0) &&
     ((*(ushort *)(PTR__sch_istable_004c4cdc + (uint)*param_1 * 2) & 4) != 0)) {
    *param_2 = 0;
    if ((*(ushort *)(puVar1 + (uint)*param_1 * 2) & 4) == 0) {
      if (*param_1 != 0) {
        return param_1;
      }
    }
    else {
      iVar2 = 0;
      do {
        pbVar3 = param_1 + 1;
        *param_2 = iVar2 * 10;
        iVar2 = (char)*param_1 + -0x30 + iVar2 * 10;
        *param_2 = iVar2;
        param_1 = pbVar3;
      } while ((*(ushort *)(puVar1 + (uint)*pbVar3 * 2) & 4) != 0);
      if ((*pbVar3 != 0) && (-1 < iVar2)) {
        return pbVar3;
      }
    }
  }
  return (byte *)0x0;
}

