
/* WARNING: Unknown calling convention */

int get_count(char **type,int *count)

{
  byte *pbVar1;
  int iVar2;
  byte *pbVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int in_t9;
  
  pbVar3 = (byte *)*type;
  iVar6 = *(int *)(in_t9 + 0x1b343c);
  iVar2 = (char)*pbVar3 + -0x30;
  if ((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0) {
    return 0;
  }
  *count = iVar2;
  *type = (char *)(pbVar3 + 1);
  iVar4 = (int)(char)pbVar3[1];
  pbVar1 = pbVar3 + 1;
  if ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0) {
    do {
      pbVar3 = pbVar1;
      iVar5 = iVar4 + -0x30;
      iVar4 = (int)(char)pbVar3[1];
      iVar2 = iVar5 + iVar2 * 10;
      pbVar1 = pbVar3 + 1;
    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);
    if (iVar4 == 0x5f) {
      *type = (char *)(pbVar3 + 2);
      *count = iVar2;
      return 1;
    }
    return 1;
  }
  return 1;
}



undefined4 FUN_003118a0(undefined4 *param_1,int *param_2)

{
  byte *pbVar1;
  int iVar2;
  byte *pbVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int in_t9;
  
  pbVar3 = (byte *)*param_1;
  iVar6 = *(int *)(in_t9 + 0x1b343c);
  iVar2 = (char)*pbVar3 + -0x30;
  if ((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0) {
    return 0;
  }
  *param_2 = iVar2;
  *param_1 = pbVar3 + 1;
  iVar4 = (int)(char)pbVar3[1];
  pbVar1 = pbVar3 + 1;
  if ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0) {
    do {
      pbVar3 = pbVar1;
      iVar5 = iVar4 + -0x30;
      iVar4 = (int)(char)pbVar3[1];
      iVar2 = iVar5 + iVar2 * 10;
      pbVar1 = pbVar3 + 1;
    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);
    if (iVar4 == 0x5f) {
      *param_1 = pbVar3 + 2;
      *param_2 = iVar2;
      return 1;
    }
    return 1;
  }
  return 1;
}


lui gp,0x1b
addiu gp,gp,0x79a0
addu gp,gp,t9
lw a3,0x0(a0)
lw t3,-0x4564(gp)
lb v0,0x0(a3)
andi v1,v0,0xff
sll v1,v1,0x1
addu v1,t3,v1
lhu v1,0x0(v1)
andi v1,v1,0x4
beq v1,zero,0x00311954
_addiu a2,v0,-0x30
addiu t0,a3,0x1
sw a2,0x0(a1)
sw t0,0x0(a0)
lb a3,0x1(a3)
andi v0,a3,0xff
sll v0,v0,0x1
addu v0,t3,v0
lhu v0,0x0(v0)
andi v0,v0,0x4
bne v0,zero,0x00311910
_addiu t1,a3,-0x30
jr ra
_li v0,0x1
or t0,t2,zero
addiu t1,a3,-0x30
lb a3,0x1(t0)
sll v0,a2,0x2
andi v1,a3,0xff
sll v1,v1,0x1
addu v0,v0,a2
addu v1,t3,v1
sll v0,v0,0x1
lhu v1,0x0(v1)
addu a2,t1,v0
andi v0,v1,0x4
bne v0,zero,0x00311908
_addiu t2,t0,0x1
li v0,0x5f
beq a3,v0,0x0031195c
_addiu t0,t0,0x2
jr ra
_li v0,0x1
jr ra
_or v0,zero,zero
li v0,0x1
sw t0,0x0(a0)
jr ra
_sw a2,0x0(a1)
(translation_unit "undefined4 FUN_003118a0(undefined4 *param_1,int *param_2)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_t9;\n  \n  pbVar3 = (byte *)*param_1;\n  iVar6 = *(int *)(in_t9 + 0x1b343c);\n  iVar2 = (char)*pbVar3 + -0x30;\n  if ((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0) {\n    return 0;\n  }\n  *param_2 = iVar2;\n  *param_1 = pbVar3 + 1;\n  iVar4 = (int)(char)pbVar3[1];\n  pbVar1 = pbVar3 + 1;\n  if ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0) {\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }\n    return 1;\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_003118a0(undefined4 *param_1,int *param_2)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_t9;\n  \n  pbVar3 = (byte *)*param_1;\n  iVar6 = *(int *)(in_t9 + 0x1b343c);\n  iVar2 = (char)*pbVar3 + -0x30;\n  if ((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0) {\n    return 0;\n  }\n  *param_2 = iVar2;\n  *param_1 = pbVar3 + 1;\n  iVar4 = (int)(char)pbVar3[1];\n  pbVar1 = pbVar3 + 1;\n  if ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0) {\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }\n    return 1;\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_003118a0(undefined4 *param_1,int *param_2)" identifier (parameter_list "(undefined4 *param_1,int *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_t9;\n  \n  pbVar3 = (byte *)*param_1;\n  iVar6 = *(int *)(in_t9 + 0x1b343c);\n  iVar2 = (char)*pbVar3 + -0x30;\n  if ((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0) {\n    return 0;\n  }\n  *param_2 = iVar2;\n  *param_1 = pbVar3 + 1;\n  iVar4 = (int)(char)pbVar3[1];\n  pbVar1 = pbVar3 + 1;\n  if ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0) {\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }\n    return 1;\n  }\n  return 1;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (expression_statement "pbVar3 = (byte *)*param_1;" (assignment_expression "pbVar3 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "iVar6 = *(int *)(in_t9 + 0x1b343c);" (assignment_expression "iVar6 = *(int *)(in_t9 + 0x1b343c)" identifier = (pointer_expression "*(int *)(in_t9 + 0x1b343c)" * (cast_expression "(int *)(in_t9 + 0x1b343c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x1b343c)" ( (binary_expression "in_t9 + 0x1b343c" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = (char)*pbVar3 + -0x30;" (assignment_expression "iVar2 = (char)*pbVar3 + -0x30" identifier = (binary_expression "(char)*pbVar3 + -0x30" (cast_expression "(char)*pbVar3" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*pbVar3" * identifier)) + number_literal)) ;) (if_statement "if ((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0) {\n    return 0;\n  }" if (parenthesized_expression "((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0)" ( (binary_expression "(*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0" (parenthesized_expression "(*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4)" ( (binary_expression "*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4" (pointer_expression "*(ushort *)(iVar6 + (uint)*pbVar3 * 2)" * (cast_expression "(ushort *)(iVar6 + (uint)*pbVar3 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + (uint)*pbVar3 * 2)" ( (binary_expression "iVar6 + (uint)*pbVar3 * 2" identifier + (binary_expression "(uint)*pbVar3 * 2" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_2 = iVar2;" (assignment_expression "*param_2 = iVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*param_1 = pbVar3 + 1;" (assignment_expression "*param_1 = pbVar3 + 1" (pointer_expression "*param_1" * identifier) = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = (int)(char)pbVar3[1];" (assignment_expression "iVar4 = (int)(char)pbVar3[1]" identifier = (cast_expression "(int)(char)pbVar3[1]" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)pbVar3[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])))) ;) (expression_statement "pbVar1 = pbVar3 + 1;" (assignment_expression "pbVar1 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (if_statement "if ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0) {\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }\n    return 1;\n  }" if (parenthesized_expression "((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0)" ( (binary_expression "(*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4)" ( (binary_expression "*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4" (pointer_expression "*(ushort *)(iVar6 + (uint)pbVar3[1] * 2)" * (cast_expression "(ushort *)(iVar6 + (uint)pbVar3[1] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + (uint)pbVar3[1] * 2)" ( (binary_expression "iVar6 + (uint)pbVar3[1] * 2" identifier + (binary_expression "(uint)pbVar3[1] * 2" (cast_expression "(uint)pbVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])) * number_literal)) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }\n    return 1;\n  }" { (do_statement "do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);" do (compound_statement "{\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    }" { (expression_statement "pbVar3 = pbVar1;" (assignment_expression "pbVar3 = pbVar1" identifier = identifier) ;) (expression_statement "iVar5 = iVar4 + -0x30;" (assignment_expression "iVar5 = iVar4 + -0x30" identifier = (binary_expression "iVar4 + -0x30" identifier + number_literal)) ;) (expression_statement "iVar4 = (int)(char)pbVar3[1];" (assignment_expression "iVar4 = (int)(char)pbVar3[1]" identifier = (cast_expression "(int)(char)pbVar3[1]" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)pbVar3[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])))) ;) (expression_statement "iVar2 = iVar5 + iVar2 * 10;" (assignment_expression "iVar2 = iVar5 + iVar2 * 10" identifier = (binary_expression "iVar5 + iVar2 * 10" identifier + (binary_expression "iVar2 * 10" identifier * number_literal))) ;) (expression_statement "pbVar1 = pbVar3 + 1;" (assignment_expression "pbVar1 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0)" ( (binary_expression "(*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4)" ( (binary_expression "*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4" (pointer_expression "*(ushort *)(iVar6 + (uint)pbVar3[1] * 2)" * (cast_expression "(ushort *)(iVar6 + (uint)pbVar3[1] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + (uint)pbVar3[1] * 2)" ( (binary_expression "iVar6 + (uint)pbVar3[1] * 2" identifier + (binary_expression "(uint)pbVar3[1] * 2" (cast_expression "(uint)pbVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])) * number_literal)) )))) & number_literal) )) != number_literal) )) ;) (if_statement "if (iVar4 == 0x5f) {\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }" if (parenthesized_expression "(iVar4 == 0x5f)" ( (binary_expression "iVar4 == 0x5f" identifier == number_literal) )) (compound_statement "{\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }" { (expression_statement "*param_1 = pbVar3 + 2;" (assignment_expression "*param_1 = pbVar3 + 2" (pointer_expression "*param_1" * identifier) = (binary_expression "pbVar3 + 2" identifier + number_literal)) ;) (expression_statement "*param_2 = iVar2;" (assignment_expression "*param_2 = iVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint get_count(char **type,int *count)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_t9;\n  \n  pbVar3 = (byte *)*type;\n  iVar6 = *(int *)(in_t9 + 0x1b343c);\n  iVar2 = (char)*pbVar3 + -0x30;\n  if ((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0) {\n    return 0;\n  }\n  *count = iVar2;\n  *type = (char *)(pbVar3 + 1);\n  iVar4 = (int)(char)pbVar3[1];\n  pbVar1 = pbVar3 + 1;\n  if ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0) {\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *type = (char *)(pbVar3 + 2);\n      *count = iVar2;\n      return 1;\n    }\n    return 1;\n  }\n  return 1;\n}\n\n" comment (function_definition "int get_count(char **type,int *count)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_t9;\n  \n  pbVar3 = (byte *)*type;\n  iVar6 = *(int *)(in_t9 + 0x1b343c);\n  iVar2 = (char)*pbVar3 + -0x30;\n  if ((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0) {\n    return 0;\n  }\n  *count = iVar2;\n  *type = (char *)(pbVar3 + 1);\n  iVar4 = (int)(char)pbVar3[1];\n  pbVar1 = pbVar3 + 1;\n  if ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0) {\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *type = (char *)(pbVar3 + 2);\n      *count = iVar2;\n      return 1;\n    }\n    return 1;\n  }\n  return 1;\n}" primitive_type (function_declarator "get_count(char **type,int *count)" identifier (parameter_list "(char **type,int *count)" ( (parameter_declaration "char **type" primitive_type (pointer_declarator "**type" * (pointer_declarator "*type" * identifier))) , (parameter_declaration "int *count" primitive_type (pointer_declarator "*count" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_t9;\n  \n  pbVar3 = (byte *)*type;\n  iVar6 = *(int *)(in_t9 + 0x1b343c);\n  iVar2 = (char)*pbVar3 + -0x30;\n  if ((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0) {\n    return 0;\n  }\n  *count = iVar2;\n  *type = (char *)(pbVar3 + 1);\n  iVar4 = (int)(char)pbVar3[1];\n  pbVar1 = pbVar3 + 1;\n  if ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0) {\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *type = (char *)(pbVar3 + 2);\n      *count = iVar2;\n      return 1;\n    }\n    return 1;\n  }\n  return 1;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (expression_statement "pbVar3 = (byte *)*type;" (assignment_expression "pbVar3 = (byte *)*type" identifier = (cast_expression "(byte *)*type" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*type" * identifier))) ;) (expression_statement "iVar6 = *(int *)(in_t9 + 0x1b343c);" (assignment_expression "iVar6 = *(int *)(in_t9 + 0x1b343c)" identifier = (pointer_expression "*(int *)(in_t9 + 0x1b343c)" * (cast_expression "(int *)(in_t9 + 0x1b343c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x1b343c)" ( (binary_expression "in_t9 + 0x1b343c" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = (char)*pbVar3 + -0x30;" (assignment_expression "iVar2 = (char)*pbVar3 + -0x30" identifier = (binary_expression "(char)*pbVar3 + -0x30" (cast_expression "(char)*pbVar3" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*pbVar3" * identifier)) + number_literal)) ;) (if_statement "if ((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0) {\n    return 0;\n  }" if (parenthesized_expression "((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0)" ( (binary_expression "(*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0" (parenthesized_expression "(*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4)" ( (binary_expression "*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4" (pointer_expression "*(ushort *)(iVar6 + (uint)*pbVar3 * 2)" * (cast_expression "(ushort *)(iVar6 + (uint)*pbVar3 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + (uint)*pbVar3 * 2)" ( (binary_expression "iVar6 + (uint)*pbVar3 * 2" identifier + (binary_expression "(uint)*pbVar3 * 2" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*count = iVar2;" (assignment_expression "*count = iVar2" (pointer_expression "*count" * identifier) = identifier) ;) (expression_statement "*type = (char *)(pbVar3 + 1);" (assignment_expression "*type = (char *)(pbVar3 + 1)" (pointer_expression "*type" * identifier) = (cast_expression "(char *)(pbVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 1)" ( (binary_expression "pbVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "iVar4 = (int)(char)pbVar3[1];" (assignment_expression "iVar4 = (int)(char)pbVar3[1]" identifier = (cast_expression "(int)(char)pbVar3[1]" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)pbVar3[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])))) ;) (expression_statement "pbVar1 = pbVar3 + 1;" (assignment_expression "pbVar1 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (if_statement "if ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0) {\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *type = (char *)(pbVar3 + 2);\n      *count = iVar2;\n      return 1;\n    }\n    return 1;\n  }" if (parenthesized_expression "((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0)" ( (binary_expression "(*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4)" ( (binary_expression "*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4" (pointer_expression "*(ushort *)(iVar6 + (uint)pbVar3[1] * 2)" * (cast_expression "(ushort *)(iVar6 + (uint)pbVar3[1] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + (uint)pbVar3[1] * 2)" ( (binary_expression "iVar6 + (uint)pbVar3[1] * 2" identifier + (binary_expression "(uint)pbVar3[1] * 2" (cast_expression "(uint)pbVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])) * number_literal)) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *type = (char *)(pbVar3 + 2);\n      *count = iVar2;\n      return 1;\n    }\n    return 1;\n  }" { (do_statement "do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);" do (compound_statement "{\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    }" { (expression_statement "pbVar3 = pbVar1;" (assignment_expression "pbVar3 = pbVar1" identifier = identifier) ;) (expression_statement "iVar5 = iVar4 + -0x30;" (assignment_expression "iVar5 = iVar4 + -0x30" identifier = (binary_expression "iVar4 + -0x30" identifier + number_literal)) ;) (expression_statement "iVar4 = (int)(char)pbVar3[1];" (assignment_expression "iVar4 = (int)(char)pbVar3[1]" identifier = (cast_expression "(int)(char)pbVar3[1]" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)pbVar3[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])))) ;) (expression_statement "iVar2 = iVar5 + iVar2 * 10;" (assignment_expression "iVar2 = iVar5 + iVar2 * 10" identifier = (binary_expression "iVar5 + iVar2 * 10" identifier + (binary_expression "iVar2 * 10" identifier * number_literal))) ;) (expression_statement "pbVar1 = pbVar3 + 1;" (assignment_expression "pbVar1 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0)" ( (binary_expression "(*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4)" ( (binary_expression "*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4" (pointer_expression "*(ushort *)(iVar6 + (uint)pbVar3[1] * 2)" * (cast_expression "(ushort *)(iVar6 + (uint)pbVar3[1] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + (uint)pbVar3[1] * 2)" ( (binary_expression "iVar6 + (uint)pbVar3[1] * 2" identifier + (binary_expression "(uint)pbVar3[1] * 2" (cast_expression "(uint)pbVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])) * number_literal)) )))) & number_literal) )) != number_literal) )) ;) (if_statement "if (iVar4 == 0x5f) {\n      *type = (char *)(pbVar3 + 2);\n      *count = iVar2;\n      return 1;\n    }" if (parenthesized_expression "(iVar4 == 0x5f)" ( (binary_expression "iVar4 == 0x5f" identifier == number_literal) )) (compound_statement "{\n      *type = (char *)(pbVar3 + 2);\n      *count = iVar2;\n      return 1;\n    }" { (expression_statement "*type = (char *)(pbVar3 + 2);" (assignment_expression "*type = (char *)(pbVar3 + 2)" (pointer_expression "*type" * identifier) = (cast_expression "(char *)(pbVar3 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar3 + 2)" ( (binary_expression "pbVar3 + 2" identifier + number_literal) )))) ;) (expression_statement "*count = iVar2;" (assignment_expression "*count = iVar2" (pointer_expression "*count" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_003118a0(undefined4 *param_1,int *param_2)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_t9;\n  \n  pbVar3 = (byte *)*param_1;\n  iVar6 = *(int *)(in_t9 + 0x1b343c);\n  iVar2 = (char)*pbVar3 + -0x30;\n  if ((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0) {\n    return 0;\n  }\n  *param_2 = iVar2;\n  *param_1 = pbVar3 + 1;\n  iVar4 = (int)(char)pbVar3[1];\n  pbVar1 = pbVar3 + 1;\n  if ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0) {\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }\n    return 1;\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_003118a0(undefined4 *param_1,int *param_2)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_t9;\n  \n  pbVar3 = (byte *)*param_1;\n  iVar6 = *(int *)(in_t9 + 0x1b343c);\n  iVar2 = (char)*pbVar3 + -0x30;\n  if ((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0) {\n    return 0;\n  }\n  *param_2 = iVar2;\n  *param_1 = pbVar3 + 1;\n  iVar4 = (int)(char)pbVar3[1];\n  pbVar1 = pbVar3 + 1;\n  if ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0) {\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }\n    return 1;\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_003118a0(undefined4 *param_1,int *param_2)" identifier (parameter_list "(undefined4 *param_1,int *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_t9;\n  \n  pbVar3 = (byte *)*param_1;\n  iVar6 = *(int *)(in_t9 + 0x1b343c);\n  iVar2 = (char)*pbVar3 + -0x30;\n  if ((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0) {\n    return 0;\n  }\n  *param_2 = iVar2;\n  *param_1 = pbVar3 + 1;\n  iVar4 = (int)(char)pbVar3[1];\n  pbVar1 = pbVar3 + 1;\n  if ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0) {\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }\n    return 1;\n  }\n  return 1;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (expression_statement "pbVar3 = (byte *)*param_1;" (assignment_expression "pbVar3 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "iVar6 = *(int *)(in_t9 + 0x1b343c);" (assignment_expression "iVar6 = *(int *)(in_t9 + 0x1b343c)" identifier = (pointer_expression "*(int *)(in_t9 + 0x1b343c)" * (cast_expression "(int *)(in_t9 + 0x1b343c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x1b343c)" ( (binary_expression "in_t9 + 0x1b343c" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = (char)*pbVar3 + -0x30;" (assignment_expression "iVar2 = (char)*pbVar3 + -0x30" identifier = (binary_expression "(char)*pbVar3 + -0x30" (cast_expression "(char)*pbVar3" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*pbVar3" * identifier)) + number_literal)) ;) (if_statement "if ((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0) {\n    return 0;\n  }" if (parenthesized_expression "((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0)" ( (binary_expression "(*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0" (parenthesized_expression "(*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4)" ( (binary_expression "*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4" (pointer_expression "*(ushort *)(iVar6 + (uint)*pbVar3 * 2)" * (cast_expression "(ushort *)(iVar6 + (uint)*pbVar3 * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + (uint)*pbVar3 * 2)" ( (binary_expression "iVar6 + (uint)*pbVar3 * 2" identifier + (binary_expression "(uint)*pbVar3 * 2" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_2 = iVar2;" (assignment_expression "*param_2 = iVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*param_1 = pbVar3 + 1;" (assignment_expression "*param_1 = pbVar3 + 1" (pointer_expression "*param_1" * identifier) = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = (int)(char)pbVar3[1];" (assignment_expression "iVar4 = (int)(char)pbVar3[1]" identifier = (cast_expression "(int)(char)pbVar3[1]" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)pbVar3[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])))) ;) (expression_statement "pbVar1 = pbVar3 + 1;" (assignment_expression "pbVar1 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (if_statement "if ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0) {\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }\n    return 1;\n  }" if (parenthesized_expression "((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0)" ( (binary_expression "(*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4)" ( (binary_expression "*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4" (pointer_expression "*(ushort *)(iVar6 + (uint)pbVar3[1] * 2)" * (cast_expression "(ushort *)(iVar6 + (uint)pbVar3[1] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + (uint)pbVar3[1] * 2)" ( (binary_expression "iVar6 + (uint)pbVar3[1] * 2" identifier + (binary_expression "(uint)pbVar3[1] * 2" (cast_expression "(uint)pbVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])) * number_literal)) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }\n    return 1;\n  }" { (do_statement "do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);" do (compound_statement "{\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    }" { (expression_statement "pbVar3 = pbVar1;" (assignment_expression "pbVar3 = pbVar1" identifier = identifier) ;) (expression_statement "iVar5 = iVar4 + -0x30;" (assignment_expression "iVar5 = iVar4 + -0x30" identifier = (binary_expression "iVar4 + -0x30" identifier + number_literal)) ;) (expression_statement "iVar4 = (int)(char)pbVar3[1];" (assignment_expression "iVar4 = (int)(char)pbVar3[1]" identifier = (cast_expression "(int)(char)pbVar3[1]" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)pbVar3[1]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])))) ;) (expression_statement "iVar2 = iVar5 + iVar2 * 10;" (assignment_expression "iVar2 = iVar5 + iVar2 * 10" identifier = (binary_expression "iVar5 + iVar2 * 10" identifier + (binary_expression "iVar2 * 10" identifier * number_literal))) ;) (expression_statement "pbVar1 = pbVar3 + 1;" (assignment_expression "pbVar1 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0)" ( (binary_expression "(*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4)" ( (binary_expression "*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4" (pointer_expression "*(ushort *)(iVar6 + (uint)pbVar3[1] * 2)" * (cast_expression "(ushort *)(iVar6 + (uint)pbVar3[1] * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + (uint)pbVar3[1] * 2)" ( (binary_expression "iVar6 + (uint)pbVar3[1] * 2" identifier + (binary_expression "(uint)pbVar3[1] * 2" (cast_expression "(uint)pbVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])) * number_literal)) )))) & number_literal) )) != number_literal) )) ;) (if_statement "if (iVar4 == 0x5f) {\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }" if (parenthesized_expression "(iVar4 == 0x5f)" ( (binary_expression "iVar4 == 0x5f" identifier == number_literal) )) (compound_statement "{\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }" { (expression_statement "*param_1 = pbVar3 + 2;" (assignment_expression "*param_1 = pbVar3 + 2" (pointer_expression "*param_1" * identifier) = (binary_expression "pbVar3 + 2" identifier + number_literal)) ;) (expression_statement "*param_2 = iVar2;" (assignment_expression "*param_2 = iVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 1;" return 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)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])))) ;) (expression_statement (assignment_expression IDENT = (binary_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 (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT)) )))) & LIT) )) != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) 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 (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT)) )))) & LIT) )) != LIT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_003118a0(undefined4 *param_1,int *param_2)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_t9;\n  \n  pbVar3 = (byte *)*param_1;\n  iVar6 = *(int *)(in_t9 + 0x1b343c);\n  iVar2 = (char)*pbVar3 + -0x30;\n  if ((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0) {\n    return 0;\n  }\n  *param_2 = iVar2;\n  *param_1 = pbVar3 + 1;\n  iVar4 = (int)(char)pbVar3[1];\n  pbVar1 = pbVar3 + 1;\n  if ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0) {\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }\n    return 1;\n  }\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_003118a0(undefined4 *param_1,int *param_2)" (identifier "FUN_003118a0") (parameter_list "(undefined4 *param_1,int *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (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  byte *pbVar1;\n  int iVar2;\n  byte *pbVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int in_t9;\n  \n  pbVar3 = (byte *)*param_1;\n  iVar6 = *(int *)(in_t9 + 0x1b343c);\n  iVar2 = (char)*pbVar3 + -0x30;\n  if ((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0) {\n    return 0;\n  }\n  *param_2 = iVar2;\n  *param_1 = pbVar3 + 1;\n  iVar4 = (int)(char)pbVar3[1];\n  pbVar1 = pbVar3 + 1;\n  if ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0) {\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }\n    return 1;\n  }\n  return 1;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int in_t9;" (primitive_type "int") (identifier "in_t9") (; ";")) (expression_statement "pbVar3 = (byte *)*param_1;" (assignment_expression "pbVar3 = (byte *)*param_1" (identifier "pbVar3") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "iVar6 = *(int *)(in_t9 + 0x1b343c);" (assignment_expression "iVar6 = *(int *)(in_t9 + 0x1b343c)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(in_t9 + 0x1b343c)" (* "*") (cast_expression "(int *)(in_t9 + 0x1b343c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_t9 + 0x1b343c)" (( "(") (binary_expression "in_t9 + 0x1b343c" (identifier "in_t9") (+ "+") (number_literal "0x1b343c")) () ")"))))) (; ";")) (expression_statement "iVar2 = (char)*pbVar3 + -0x30;" (assignment_expression "iVar2 = (char)*pbVar3 + -0x30" (identifier "iVar2") (= "=") (binary_expression "(char)*pbVar3 + -0x30" (cast_expression "(char)*pbVar3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3"))) (+ "+") (number_literal "-0x30"))) (; ";")) (if_statement "if ((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0)" (( "(") (binary_expression "(*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0" (parenthesized_expression "(*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4)" (( "(") (binary_expression "*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4" (pointer_expression "*(ushort *)(iVar6 + (uint)*pbVar3 * 2)" (* "*") (cast_expression "(ushort *)(iVar6 + (uint)*pbVar3 * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + (uint)*pbVar3 * 2)" (( "(") (binary_expression "iVar6 + (uint)*pbVar3 * 2" (identifier "iVar6") (+ "+") (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")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*param_2 = iVar2;" (assignment_expression "*param_2 = iVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*param_1 = pbVar3 + 1;" (assignment_expression "*param_1 = pbVar3 + 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar4 = (int)(char)pbVar3[1];" (assignment_expression "iVar4 = (int)(char)pbVar3[1]" (identifier "iVar4") (= "=") (cast_expression "(int)(char)pbVar3[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(char)pbVar3[1]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "pbVar3[1]" (identifier "pbVar3") ([ "[") (number_literal "1") (] "]"))))) (; ";")) (expression_statement "pbVar1 = pbVar3 + 1;" (assignment_expression "pbVar1 = pbVar3 + 1" (identifier "pbVar1") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0) {\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }\n    return 1;\n  }" (if "if") (parenthesized_expression "((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0)" (( "(") (binary_expression "(*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4)" (( "(") (binary_expression "*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4" (pointer_expression "*(ushort *)(iVar6 + (uint)pbVar3[1] * 2)" (* "*") (cast_expression "(ushort *)(iVar6 + (uint)pbVar3[1] * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + (uint)pbVar3[1] * 2)" (( "(") (binary_expression "iVar6 + (uint)pbVar3[1] * 2" (identifier "iVar6") (+ "+") (binary_expression "(uint)pbVar3[1] * 2" (cast_expression "(uint)pbVar3[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar3[1]" (identifier "pbVar3") ([ "[") (number_literal "1") (] "]"))) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);\n    if (iVar4 == 0x5f) {\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }\n    return 1;\n  }" ({ "{") (do_statement "do {\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);" (do "do") (compound_statement "{\n      pbVar3 = pbVar1;\n      iVar5 = iVar4 + -0x30;\n      iVar4 = (int)(char)pbVar3[1];\n      iVar2 = iVar5 + iVar2 * 10;\n      pbVar1 = pbVar3 + 1;\n    }" ({ "{") (expression_statement "pbVar3 = pbVar1;" (assignment_expression "pbVar3 = pbVar1" (identifier "pbVar3") (= "=") (identifier "pbVar1")) (; ";")) (expression_statement "iVar5 = iVar4 + -0x30;" (assignment_expression "iVar5 = iVar4 + -0x30" (identifier "iVar5") (= "=") (binary_expression "iVar4 + -0x30" (identifier "iVar4") (+ "+") (number_literal "-0x30"))) (; ";")) (expression_statement "iVar4 = (int)(char)pbVar3[1];" (assignment_expression "iVar4 = (int)(char)pbVar3[1]" (identifier "iVar4") (= "=") (cast_expression "(int)(char)pbVar3[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(char)pbVar3[1]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "pbVar3[1]" (identifier "pbVar3") ([ "[") (number_literal "1") (] "]"))))) (; ";")) (expression_statement "iVar2 = iVar5 + iVar2 * 10;" (assignment_expression "iVar2 = iVar5 + iVar2 * 10" (identifier "iVar2") (= "=") (binary_expression "iVar5 + iVar2 * 10" (identifier "iVar5") (+ "+") (binary_expression "iVar2 * 10" (identifier "iVar2") (* "*") (number_literal "10")))) (; ";")) (expression_statement "pbVar1 = pbVar3 + 1;" (assignment_expression "pbVar1 = pbVar3 + 1" (identifier "pbVar1") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0)" (( "(") (binary_expression "(*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0" (parenthesized_expression "(*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4)" (( "(") (binary_expression "*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4" (pointer_expression "*(ushort *)(iVar6 + (uint)pbVar3[1] * 2)" (* "*") (cast_expression "(ushort *)(iVar6 + (uint)pbVar3[1] * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + (uint)pbVar3[1] * 2)" (( "(") (binary_expression "iVar6 + (uint)pbVar3[1] * 2" (identifier "iVar6") (+ "+") (binary_expression "(uint)pbVar3[1] * 2" (cast_expression "(uint)pbVar3[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar3[1]" (identifier "pbVar3") ([ "[") (number_literal "1") (] "]"))) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (if_statement "if (iVar4 == 0x5f) {\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0x5f)" (( "(") (binary_expression "iVar4 == 0x5f" (identifier "iVar4") (== "==") (number_literal "0x5f")) () ")")) (compound_statement "{\n      *param_1 = pbVar3 + 2;\n      *param_2 = iVar2;\n      return 1;\n    }" ({ "{") (expression_statement "*param_1 = pbVar3 + 2;" (assignment_expression "*param_1 = pbVar3 + 2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "pbVar3 + 2" (identifier "pbVar3") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "*param_2 = iVar2;" (assignment_expression "*param_2 = iVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar2")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) 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))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (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))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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 (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (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: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) 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: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)))))) right: (number_literal))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (number_literal)))) (return_statement (number_literal)))) (return_statement (number_literal)))))

undefined4 MASKED(undefined4 *param_1,int *param_2)

{
  byte *pbVar1;
  int iVar2;
  byte *pbVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int in_t9;
  
  pbVar3 = (byte *)*param_1;
  iVar6 = *(int *)(in_t9 + 0x1b343c);
  iVar2 = (char)*pbVar3 + -0x30;
  if ((*(ushort *)(iVar6 + (uint)*pbVar3 * 2) & 4) == 0) {
    return 0;
  }
  *param_2 = iVar2;
  *param_1 = pbVar3 + 1;
  iVar4 = (int)(char)pbVar3[1];
  pbVar1 = pbVar3 + 1;
  if ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0) {
    do {
      pbVar3 = pbVar1;
      iVar5 = iVar4 + -0x30;
      iVar4 = (int)(char)pbVar3[1];
      iVar2 = iVar5 + iVar2 * 10;
      pbVar1 = pbVar3 + 1;
    } while ((*(ushort *)(iVar6 + (uint)pbVar3[1] * 2) & 4) != 0);
    if (iVar4 == 0x5f) {
      *param_1 = pbVar3 + 2;
      *param_2 = iVar2;
      return 1;
    }
    return 1;
  }
  return 1;
}

