
/* WARNING: Unknown calling convention */

int consume_count(char **type)

{
  undefined *puVar1;
  byte *pbVar2;
  int iVar3;
  int iVar4;
  
  puVar1 = PTR__sch_istable_004356e0;
  pbVar2 = (byte *)*type;
  if ((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0) {
    iVar4 = (char)*pbVar2 + -0x30;
    iVar3 = 0;
    do {
      pbVar2 = pbVar2 + 1;
      *type = (char *)pbVar2;
      iVar3 = iVar3 * 10 + iVar4;
      iVar4 = (char)*pbVar2 + -0x30;
      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {
        iVar4 = -1;
        if (-1 < iVar3) {
          iVar4 = iVar3;
        }
        return iVar4;
      }
    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));
    do {
      pbVar2 = pbVar2 + 1;
      *type = (char *)pbVar2;
    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);
  }
  return -1;
}



int FUN_00296e88(undefined4 *param_1)

{
  undefined *puVar1;
  byte *pbVar2;
  int iVar3;
  int iVar4;
  
  puVar1 = PTR__sch_istable_004356e0;
  pbVar2 = (byte *)*param_1;
  if ((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0) {
    iVar4 = (char)*pbVar2 + -0x30;
    iVar3 = 0;
    do {
      pbVar2 = pbVar2 + 1;
      *param_1 = pbVar2;
      iVar3 = iVar3 * 10 + iVar4;
      iVar4 = (char)*pbVar2 + -0x30;
      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {
        iVar4 = -1;
        if (-1 < iVar3) {
          iVar4 = iVar3;
        }
        return iVar4;
      }
    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));
    do {
      pbVar2 = pbVar2 + 1;
      *param_1 = pbVar2;
    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);
  }
  return -1;
}


lui gp,0x1a
addiu gp,gp,0x3348
addu gp,gp,t9
lw a1,0x0(a0)
lw t2,-0x4af0(gp)
lb a3,0x0(a1)
andi v0,a3,0xff
sll v0,v0,0x1
addu v0,t2,v0
lhu v0,0x0(v0)
andi v0,v0,0x4
beq v0,zero,0x00296f68
_lui t4,0x7fff
lui t3,0xcccc
addiu a3,a3,-0x30
addiu a1,a1,0x1
or a2,zero,zero
ori t4,t4,0xffff
b 0x00296ee8
_ori t3,t3,0xcccd
srl v1,v1,0x3
slt v1,v1,a2
bne v1,zero,0x00296f44
_addiu v0,t1,0x1
sw a1,0x0(a0)
sll v0,a2,0x2
lb t0,0x0(a1)
or t1,a1,zero
addu v0,v0,a2
addiu a1,a1,0x1
andi v1,t0,0xff
sll v1,v1,0x1
sll v0,v0,0x1
addu v1,t2,v1
addu a2,v0,a3
addiu a3,t0,-0x30
lhu v0,0x0(v1)
subu v1,t4,a3
multu v1,t3
andi v0,v0,0x4
bne v0,zero,0x00296ed8
_mfhi v1
li v1,-0x1
slti v0,a2,0x0
movz v1,a2,v0
jr ra
_or v0,v1,zero
sw v0,0x0(a0)
addiu v0,v0,0x1
lbu v1,-0x1(v0)
sll v1,v1,0x1
addu v1,t2,v1
lhu v1,0x0(v1)
andi v1,v1,0x4
bne v1,zero,0x00296f44
_nop
jr ra
_li v0,-0x1
(translation_unit "int FUN_00296e88(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar1 = PTR__sch_istable_004356e0;\n  pbVar2 = (byte *)*param_1;\n  if ((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0) {\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }\n  return -1;\n}\n\n" (function_definition "int FUN_00296e88(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar1 = PTR__sch_istable_004356e0;\n  pbVar2 = (byte *)*param_1;\n  if ((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0) {\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }\n  return -1;\n}" primitive_type (function_declarator "FUN_00296e88(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar1 = PTR__sch_istable_004356e0;\n  pbVar2 = (byte *)*param_1;\n  if ((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0) {\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }\n  return -1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "puVar1 = PTR__sch_istable_004356e0;" (assignment_expression "puVar1 = PTR__sch_istable_004356e0" identifier = identifier) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0) {\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }" if (parenthesized_expression "((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0)" ( (binary_expression "(*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4)" ( (binary_expression "*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4" (pointer_expression "*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2)" * (cast_expression "(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2)" ( (binary_expression "PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2" identifier + (binary_expression "(uint)*pbVar2 * 2" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }" { (expression_statement "iVar4 = (char)*pbVar2 + -0x30;" (assignment_expression "iVar4 = (char)*pbVar2 + -0x30" identifier = (binary_expression "(char)*pbVar2 + -0x30" (cast_expression "(char)*pbVar2" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*pbVar2" * identifier)) + number_literal)) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));" do (compound_statement "{\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    }" { (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "*param_1 = pbVar2;" (assignment_expression "*param_1 = pbVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "iVar3 = iVar3 * 10 + iVar4;" (assignment_expression "iVar3 = iVar3 * 10 + iVar4" identifier = (binary_expression "iVar3 * 10 + iVar4" (binary_expression "iVar3 * 10" identifier * number_literal) + identifier)) ;) (expression_statement "iVar4 = (char)*pbVar2 + -0x30;" (assignment_expression "iVar4 = (char)*pbVar2 + -0x30" identifier = (binary_expression "(char)*pbVar2 + -0x30" (cast_expression "(char)*pbVar2" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*pbVar2" * identifier)) + number_literal)) ;) (if_statement "if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }" if (parenthesized_expression "((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0)" ( (binary_expression "(*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0" (parenthesized_expression "(*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4)" ( (binary_expression "*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4" (pointer_expression "*(ushort *)(puVar1 + (uint)*pbVar2 * 2)" * (cast_expression "(ushort *)(puVar1 + (uint)*pbVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (uint)*pbVar2 * 2)" ( (binary_expression "puVar1 + (uint)*pbVar2 * 2" identifier + (binary_expression "(uint)*pbVar2 * 2" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (if_statement "if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n          iVar4 = iVar3;\n        }" { (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) })) (return_statement "return iVar4;" return identifier ;) })) }) while (parenthesized_expression "(iVar3 <= (int)((0x7fffffffU - iVar4) / 10))" ( (binary_expression "iVar3 <= (int)((0x7fffffffU - iVar4) / 10)" identifier <= (cast_expression "(int)((0x7fffffffU - iVar4) / 10)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((0x7fffffffU - iVar4) / 10)" ( (binary_expression "(0x7fffffffU - iVar4) / 10" (parenthesized_expression "(0x7fffffffU - iVar4)" ( (binary_expression "0x7fffffffU - iVar4" number_literal - identifier) )) / number_literal) )))) )) ;) (do_statement "do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);" do (compound_statement "{\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    }" { (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "*param_1 = pbVar2;" (assignment_expression "*param_1 = pbVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) }) while (parenthesized_expression "((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0)" ( (binary_expression "(*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4)" ( (binary_expression "*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4" (pointer_expression "*(ushort *)(puVar1 + (uint)*pbVar2 * 2)" * (cast_expression "(ushort *)(puVar1 + (uint)*pbVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (uint)*pbVar2 * 2)" ( (binary_expression "puVar1 + (uint)*pbVar2 * 2" identifier + (binary_expression "(uint)*pbVar2 * 2" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) != number_literal) )) ;) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint consume_count(char **type)\n\n{\n  undefined *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar1 = PTR__sch_istable_004356e0;\n  pbVar2 = (byte *)*type;\n  if ((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0) {\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *type = (char *)pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *type = (char *)pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }\n  return -1;\n}\n\n" comment (function_definition "int consume_count(char **type)\n\n{\n  undefined *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar1 = PTR__sch_istable_004356e0;\n  pbVar2 = (byte *)*type;\n  if ((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0) {\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *type = (char *)pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *type = (char *)pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }\n  return -1;\n}" primitive_type (function_declarator "consume_count(char **type)" identifier (parameter_list "(char **type)" ( (parameter_declaration "char **type" primitive_type (pointer_declarator "**type" * (pointer_declarator "*type" * identifier))) ))) (compound_statement "{\n  undefined *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar1 = PTR__sch_istable_004356e0;\n  pbVar2 = (byte *)*type;\n  if ((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0) {\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *type = (char *)pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *type = (char *)pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }\n  return -1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "puVar1 = PTR__sch_istable_004356e0;" (assignment_expression "puVar1 = PTR__sch_istable_004356e0" identifier = identifier) ;) (expression_statement "pbVar2 = (byte *)*type;" (assignment_expression "pbVar2 = (byte *)*type" identifier = (cast_expression "(byte *)*type" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*type" * identifier))) ;) (if_statement "if ((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0) {\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *type = (char *)pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *type = (char *)pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }" if (parenthesized_expression "((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0)" ( (binary_expression "(*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4)" ( (binary_expression "*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4" (pointer_expression "*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2)" * (cast_expression "(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2)" ( (binary_expression "PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2" identifier + (binary_expression "(uint)*pbVar2 * 2" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *type = (char *)pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *type = (char *)pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }" { (expression_statement "iVar4 = (char)*pbVar2 + -0x30;" (assignment_expression "iVar4 = (char)*pbVar2 + -0x30" identifier = (binary_expression "(char)*pbVar2 + -0x30" (cast_expression "(char)*pbVar2" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*pbVar2" * identifier)) + number_literal)) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      pbVar2 = pbVar2 + 1;\n      *type = (char *)pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));" do (compound_statement "{\n      pbVar2 = pbVar2 + 1;\n      *type = (char *)pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    }" { (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "*type = (char *)pbVar2;" (assignment_expression "*type = (char *)pbVar2" (pointer_expression "*type" * identifier) = (cast_expression "(char *)pbVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "iVar3 = iVar3 * 10 + iVar4;" (assignment_expression "iVar3 = iVar3 * 10 + iVar4" identifier = (binary_expression "iVar3 * 10 + iVar4" (binary_expression "iVar3 * 10" identifier * number_literal) + identifier)) ;) (expression_statement "iVar4 = (char)*pbVar2 + -0x30;" (assignment_expression "iVar4 = (char)*pbVar2 + -0x30" identifier = (binary_expression "(char)*pbVar2 + -0x30" (cast_expression "(char)*pbVar2" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*pbVar2" * identifier)) + number_literal)) ;) (if_statement "if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }" if (parenthesized_expression "((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0)" ( (binary_expression "(*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0" (parenthesized_expression "(*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4)" ( (binary_expression "*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4" (pointer_expression "*(ushort *)(puVar1 + (uint)*pbVar2 * 2)" * (cast_expression "(ushort *)(puVar1 + (uint)*pbVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (uint)*pbVar2 * 2)" ( (binary_expression "puVar1 + (uint)*pbVar2 * 2" identifier + (binary_expression "(uint)*pbVar2 * 2" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (if_statement "if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n          iVar4 = iVar3;\n        }" { (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) })) (return_statement "return iVar4;" return identifier ;) })) }) while (parenthesized_expression "(iVar3 <= (int)((0x7fffffffU - iVar4) / 10))" ( (binary_expression "iVar3 <= (int)((0x7fffffffU - iVar4) / 10)" identifier <= (cast_expression "(int)((0x7fffffffU - iVar4) / 10)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((0x7fffffffU - iVar4) / 10)" ( (binary_expression "(0x7fffffffU - iVar4) / 10" (parenthesized_expression "(0x7fffffffU - iVar4)" ( (binary_expression "0x7fffffffU - iVar4" number_literal - identifier) )) / number_literal) )))) )) ;) (do_statement "do {\n      pbVar2 = pbVar2 + 1;\n      *type = (char *)pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);" do (compound_statement "{\n      pbVar2 = pbVar2 + 1;\n      *type = (char *)pbVar2;\n    }" { (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "*type = (char *)pbVar2;" (assignment_expression "*type = (char *)pbVar2" (pointer_expression "*type" * identifier) = (cast_expression "(char *)pbVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) while (parenthesized_expression "((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0)" ( (binary_expression "(*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4)" ( (binary_expression "*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4" (pointer_expression "*(ushort *)(puVar1 + (uint)*pbVar2 * 2)" * (cast_expression "(ushort *)(puVar1 + (uint)*pbVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (uint)*pbVar2 * 2)" ( (binary_expression "puVar1 + (uint)*pbVar2 * 2" identifier + (binary_expression "(uint)*pbVar2 * 2" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) != number_literal) )) ;) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "int FUN_00296e88(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar1 = PTR__sch_istable_004356e0;\n  pbVar2 = (byte *)*param_1;\n  if ((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0) {\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }\n  return -1;\n}\n\n" (function_definition "int FUN_00296e88(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar1 = PTR__sch_istable_004356e0;\n  pbVar2 = (byte *)*param_1;\n  if ((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0) {\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }\n  return -1;\n}" primitive_type (function_declarator "FUN_00296e88(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar1 = PTR__sch_istable_004356e0;\n  pbVar2 = (byte *)*param_1;\n  if ((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0) {\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }\n  return -1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "puVar1 = PTR__sch_istable_004356e0;" (assignment_expression "puVar1 = PTR__sch_istable_004356e0" identifier = identifier) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0) {\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }" if (parenthesized_expression "((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0)" ( (binary_expression "(*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4)" ( (binary_expression "*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4" (pointer_expression "*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2)" * (cast_expression "(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2)" ( (binary_expression "PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2" identifier + (binary_expression "(uint)*pbVar2 * 2" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }" { (expression_statement "iVar4 = (char)*pbVar2 + -0x30;" (assignment_expression "iVar4 = (char)*pbVar2 + -0x30" identifier = (binary_expression "(char)*pbVar2 + -0x30" (cast_expression "(char)*pbVar2" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*pbVar2" * identifier)) + number_literal)) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));" do (compound_statement "{\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    }" { (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "*param_1 = pbVar2;" (assignment_expression "*param_1 = pbVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "iVar3 = iVar3 * 10 + iVar4;" (assignment_expression "iVar3 = iVar3 * 10 + iVar4" identifier = (binary_expression "iVar3 * 10 + iVar4" (binary_expression "iVar3 * 10" identifier * number_literal) + identifier)) ;) (expression_statement "iVar4 = (char)*pbVar2 + -0x30;" (assignment_expression "iVar4 = (char)*pbVar2 + -0x30" identifier = (binary_expression "(char)*pbVar2 + -0x30" (cast_expression "(char)*pbVar2" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*pbVar2" * identifier)) + number_literal)) ;) (if_statement "if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }" if (parenthesized_expression "((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0)" ( (binary_expression "(*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0" (parenthesized_expression "(*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4)" ( (binary_expression "*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4" (pointer_expression "*(ushort *)(puVar1 + (uint)*pbVar2 * 2)" * (cast_expression "(ushort *)(puVar1 + (uint)*pbVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (uint)*pbVar2 * 2)" ( (binary_expression "puVar1 + (uint)*pbVar2 * 2" identifier + (binary_expression "(uint)*pbVar2 * 2" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (if_statement "if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n          iVar4 = iVar3;\n        }" { (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) })) (return_statement "return iVar4;" return identifier ;) })) }) while (parenthesized_expression "(iVar3 <= (int)((0x7fffffffU - iVar4) / 10))" ( (binary_expression "iVar3 <= (int)((0x7fffffffU - iVar4) / 10)" identifier <= (cast_expression "(int)((0x7fffffffU - iVar4) / 10)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((0x7fffffffU - iVar4) / 10)" ( (binary_expression "(0x7fffffffU - iVar4) / 10" (parenthesized_expression "(0x7fffffffU - iVar4)" ( (binary_expression "0x7fffffffU - iVar4" number_literal - identifier) )) / number_literal) )))) )) ;) (do_statement "do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);" do (compound_statement "{\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    }" { (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "*param_1 = pbVar2;" (assignment_expression "*param_1 = pbVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) }) while (parenthesized_expression "((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0)" ( (binary_expression "(*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4)" ( (binary_expression "*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4" (pointer_expression "*(ushort *)(puVar1 + (uint)*pbVar2 * 2)" * (cast_expression "(ushort *)(puVar1 + (uint)*pbVar2 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (uint)*pbVar2 * 2)" ( (binary_expression "puVar1 + (uint)*pbVar2 * 2" identifier + (binary_expression "(uint)*pbVar2 * 2" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) != number_literal) )) ;) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (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 { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) + LIT)) ;) (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) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (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 { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (return_statement return IDENT ;) })) }) while (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT - IDENT) )) / LIT) )))) )) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_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) )) ;) })) (return_statement return LIT ;) })))
(function_definition "int FUN_00296e88(undefined4 *param_1)\n\n{\n  undefined *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar1 = PTR__sch_istable_004356e0;\n  pbVar2 = (byte *)*param_1;\n  if ((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0) {\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }\n  return -1;\n}" (primitive_type "int") (function_declarator "FUN_00296e88(undefined4 *param_1)" (identifier "FUN_00296e88") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  byte *pbVar2;\n  int iVar3;\n  int iVar4;\n  \n  puVar1 = PTR__sch_istable_004356e0;\n  pbVar2 = (byte *)*param_1;\n  if ((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0) {\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }\n  return -1;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "puVar1 = PTR__sch_istable_004356e0;" (assignment_expression "puVar1 = PTR__sch_istable_004356e0" (identifier "puVar1") (= "=") (identifier "PTR__sch_istable_004356e0")) (; ";")) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if ((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0) {\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }" (if "if") (parenthesized_expression "((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0)" (( "(") (binary_expression "(*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4)" (( "(") (binary_expression "*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4" (pointer_expression "*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2)" (* "*") (cast_expression "(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2)" (( "(") (binary_expression "PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2" (identifier "PTR__sch_istable_004356e0") (+ "+") (binary_expression "(uint)*pbVar2 * 2" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar2")) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = (char)*pbVar2 + -0x30;\n    iVar3 = 0;\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));\n    do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);\n  }" ({ "{") (expression_statement "iVar4 = (char)*pbVar2 + -0x30;" (assignment_expression "iVar4 = (char)*pbVar2 + -0x30" (identifier "iVar4") (= "=") (binary_expression "(char)*pbVar2 + -0x30" (cast_expression "(char)*pbVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2"))) (+ "+") (number_literal "-0x30"))) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));" (do "do") (compound_statement "{\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n      iVar3 = iVar3 * 10 + iVar4;\n      iVar4 = (char)*pbVar2 + -0x30;\n      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }\n    }" ({ "{") (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_1 = pbVar2;" (assignment_expression "*param_1 = pbVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "pbVar2")) (; ";")) (expression_statement "iVar3 = iVar3 * 10 + iVar4;" (assignment_expression "iVar3 = iVar3 * 10 + iVar4" (identifier "iVar3") (= "=") (binary_expression "iVar3 * 10 + iVar4" (binary_expression "iVar3 * 10" (identifier "iVar3") (* "*") (number_literal "10")) (+ "+") (identifier "iVar4"))) (; ";")) (expression_statement "iVar4 = (char)*pbVar2 + -0x30;" (assignment_expression "iVar4 = (char)*pbVar2 + -0x30" (identifier "iVar4") (= "=") (binary_expression "(char)*pbVar2 + -0x30" (cast_expression "(char)*pbVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2"))) (+ "+") (number_literal "-0x30"))) (; ";")) (if_statement "if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }" (if "if") (parenthesized_expression "((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0)" (( "(") (binary_expression "(*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0" (parenthesized_expression "(*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4)" (( "(") (binary_expression "*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4" (pointer_expression "*(ushort *)(puVar1 + (uint)*pbVar2 * 2)" (* "*") (cast_expression "(ushort *)(puVar1 + (uint)*pbVar2 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + (uint)*pbVar2 * 2)" (( "(") (binary_expression "puVar1 + (uint)*pbVar2 * 2" (identifier "puVar1") (+ "+") (binary_expression "(uint)*pbVar2 * 2" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar2")) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar4 = -1;\n        if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }\n        return iVar4;\n      }" ({ "{") (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" (identifier "iVar4") (= "=") (number_literal "-1")) (; ";")) (if_statement "if (-1 < iVar3) {\n          iVar4 = iVar3;\n        }" (if "if") (parenthesized_expression "(-1 < iVar3)" (( "(") (binary_expression "-1 < iVar3" (number_literal "-1") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n          iVar4 = iVar3;\n        }" ({ "{") (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" (identifier "iVar4") (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(iVar3 <= (int)((0x7fffffffU - iVar4) / 10))" (( "(") (binary_expression "iVar3 <= (int)((0x7fffffffU - iVar4) / 10)" (identifier "iVar3") (<= "<=") (cast_expression "(int)((0x7fffffffU - iVar4) / 10)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((0x7fffffffU - iVar4) / 10)" (( "(") (binary_expression "(0x7fffffffU - iVar4) / 10" (parenthesized_expression "(0x7fffffffU - iVar4)" (( "(") (binary_expression "0x7fffffffU - iVar4" (number_literal "0x7fffffffU") (- "-") (identifier "iVar4")) () ")")) (/ "/") (number_literal "10")) () ")")))) () ")")) (; ";")) (do_statement "do {\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);" (do "do") (compound_statement "{\n      pbVar2 = pbVar2 + 1;\n      *param_1 = pbVar2;\n    }" ({ "{") (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_1 = pbVar2;" (assignment_expression "*param_1 = pbVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "pbVar2")) (; ";")) (} "}")) (while "while") (parenthesized_expression "((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0)" (( "(") (binary_expression "(*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4)" (( "(") (binary_expression "*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4" (pointer_expression "*(ushort *)(puVar1 + (uint)*pbVar2 * 2)" (* "*") (cast_expression "(ushort *)(puVar1 + (uint)*pbVar2 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + (uint)*pbVar2 * 2)" (( "(") (binary_expression "puVar1 + (uint)*pbVar2 * 2" (identifier "puVar1") (+ "+") (binary_expression "(uint)*pbVar2 * 2" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar2")) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (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 (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))) right: (number_literal)))) (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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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 (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (return_statement (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (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: (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)))))) (return_statement (number_literal)))))

int MASKED(undefined4 *param_1)

{
  undefined *puVar1;
  byte *pbVar2;
  int iVar3;
  int iVar4;
  
  puVar1 = PTR__sch_istable_004356e0;
  pbVar2 = (byte *)*param_1;
  if ((*(ushort *)(PTR__sch_istable_004356e0 + (uint)*pbVar2 * 2) & 4) != 0) {
    iVar4 = (char)*pbVar2 + -0x30;
    iVar3 = 0;
    do {
      pbVar2 = pbVar2 + 1;
      *param_1 = pbVar2;
      iVar3 = iVar3 * 10 + iVar4;
      iVar4 = (char)*pbVar2 + -0x30;
      if ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) == 0) {
        iVar4 = -1;
        if (-1 < iVar3) {
          iVar4 = iVar3;
        }
        return iVar4;
      }
    } while (iVar3 <= (int)((0x7fffffffU - iVar4) / 10));
    do {
      pbVar2 = pbVar2 + 1;
      *param_1 = pbVar2;
    } while ((*(ushort *)(puVar1 + (uint)*pbVar2 * 2) & 4) != 0);
  }
  return -1;
}

