
/* WARNING: Switch with 1 destination removed at 0x00014320 */

int png_handle_as_unknown(png_const_structrp png_ptr,png_const_bytep chunk_name)

{
  int *piVar1;
  int *piVar2;
  
  if ((png_ptr != (png_const_structrp)0x0) && (chunk_name != (png_const_bytep)0x0)) {
    if (png_ptr->num_chunk_list == 0) {
      return 0;
    }
    piVar2 = (int *)(png_ptr->num_chunk_list * 5 + (int)png_ptr->chunk_list);
    do {
      piVar1 = (int *)((int)piVar2 + -5);
      if (*piVar1 == *(int *)chunk_name) {
        return (uint)*(byte *)((int)piVar2 + -1);
      }
      piVar2 = piVar1;
    } while (png_ptr->chunk_list < piVar1);
  }
  return 0;
}



/* WARNING: Switch with 1 destination removed at 0x00014320 */

undefined1 png_handle_as_unknown(int param_1,int *param_2)

{
  int *piVar1;
  int *piVar2;
  
  if ((param_1 != 0) && (param_2 != (int *)0x0)) {
    if (*(int *)(param_1 + 0x29c) == 0) {
      return 0;
    }
    piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));
    do {
      piVar1 = (int *)((int)piVar2 + -5);
      if (*piVar1 == *param_2) {
        return *(undefined1 *)((int)piVar2 + -1);
      }
      piVar2 = piVar1;
    } while (*(int **)(param_1 + 0x2a0) < piVar1);
  }
  return 0;
}


JMP dword ptr [EBX + 0xc4]
(translation_unit "/* WARNING: Switch with 1 destination removed at 0x00014320 */\n\nundefined1 png_handle_as_unknown(int param_1,int *param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    if (*(int *)(param_1 + 0x29c) == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (*(int **)(param_1 + 0x2a0) < piVar1);\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined1 png_handle_as_unknown(int param_1,int *param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    if (*(int *)(param_1 + 0x29c) == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (*(int **)(param_1 + 0x2a0) < piVar1);\n  }\n  return 0;\n}" type_identifier (function_declarator "png_handle_as_unknown(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    if (*(int *)(param_1 + 0x29c) == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (*(int **)(param_1 + 0x2a0) < piVar1);\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    if (*(int *)(param_1 + 0x29c) == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (*(int **)(param_1 + 0x2a0) < piVar1);\n  }" if (parenthesized_expression "((param_1 != 0) && (param_2 != (int *)0x0))" ( (binary_expression "(param_1 != 0) && (param_2 != (int *)0x0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x29c) == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (*(int **)(param_1 + 0x2a0) < piVar1);\n  }" { (if_statement "if (*(int *)(param_1 + 0x29c) == 0) {\n      return 0;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x29c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x29c) == 0" (pointer_expression "*(int *)(param_1 + 0x29c)" * (cast_expression "(int *)(param_1 + 0x29c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x29c)" ( (binary_expression "param_1 + 0x29c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));" (assignment_expression "piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0))" identifier = (cast_expression "(int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0))" ( (binary_expression "*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0)" (binary_expression "*(int *)(param_1 + 0x29c) * 5" (pointer_expression "*(int *)(param_1 + 0x29c)" * (cast_expression "(int *)(param_1 + 0x29c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x29c)" ( (binary_expression "param_1 + 0x29c" identifier + number_literal) )))) * number_literal) + (cast_expression "(int)*(int **)(param_1 + 0x2a0)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(int **)(param_1 + 0x2a0)" * (cast_expression "(int **)(param_1 + 0x2a0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x2a0)" ( (binary_expression "param_1 + 0x2a0" identifier + number_literal) )))))) )))) ;) (do_statement "do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (*(int **)(param_1 + 0x2a0) < piVar1);" do (compound_statement "{\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    }" { (expression_statement "piVar1 = (int *)((int)piVar2 + -5);" (assignment_expression "piVar1 = (int *)((int)piVar2 + -5)" identifier = (cast_expression "(int *)((int)piVar2 + -5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + -5)" ( (binary_expression "(int)piVar2 + -5" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }" if (parenthesized_expression "(*piVar1 == *param_2)" ( (binary_expression "*piVar1 == *param_2" (pointer_expression "*piVar1" * identifier) == (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n        return *(undefined1 *)((int)piVar2 + -1);\n      }" { (return_statement "return *(undefined1 *)((int)piVar2 + -1);" return (pointer_expression "*(undefined1 *)((int)piVar2 + -1)" * (cast_expression "(undefined1 *)((int)piVar2 + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + -1)" ( (binary_expression "(int)piVar2 + -1" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "piVar2 = piVar1;" (assignment_expression "piVar2 = piVar1" identifier = identifier) ;) }) while (parenthesized_expression "(*(int **)(param_1 + 0x2a0) < piVar1)" ( (binary_expression "*(int **)(param_1 + 0x2a0) < piVar1" (pointer_expression "*(int **)(param_1 + 0x2a0)" * (cast_expression "(int **)(param_1 + 0x2a0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x2a0)" ( (binary_expression "param_1 + 0x2a0" identifier + number_literal) )))) < identifier) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Switch with 1 destination removed at 0x00014320 */\n\nint png_handle_as_unknown(png_const_structrp png_ptr,png_const_bytep chunk_name)\n\n{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((png_ptr != (png_const_structrp)0x0) && (chunk_name != (png_const_bytep)0x0)) {\n    if (png_ptr->num_chunk_list == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(png_ptr->num_chunk_list * 5 + (int)png_ptr->chunk_list);\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *(int *)chunk_name) {\n        return (uint)*(byte *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (png_ptr->chunk_list < piVar1);\n  }\n  return 0;\n}\n\n" comment (function_definition "int png_handle_as_unknown(png_const_structrp png_ptr,png_const_bytep chunk_name)\n\n{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((png_ptr != (png_const_structrp)0x0) && (chunk_name != (png_const_bytep)0x0)) {\n    if (png_ptr->num_chunk_list == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(png_ptr->num_chunk_list * 5 + (int)png_ptr->chunk_list);\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *(int *)chunk_name) {\n        return (uint)*(byte *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (png_ptr->chunk_list < piVar1);\n  }\n  return 0;\n}" primitive_type (function_declarator "png_handle_as_unknown(png_const_structrp png_ptr,png_const_bytep chunk_name)" identifier (parameter_list "(png_const_structrp png_ptr,png_const_bytep chunk_name)" ( (parameter_declaration "png_const_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_const_bytep chunk_name" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((png_ptr != (png_const_structrp)0x0) && (chunk_name != (png_const_bytep)0x0)) {\n    if (png_ptr->num_chunk_list == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(png_ptr->num_chunk_list * 5 + (int)png_ptr->chunk_list);\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *(int *)chunk_name) {\n        return (uint)*(byte *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (png_ptr->chunk_list < piVar1);\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if ((png_ptr != (png_const_structrp)0x0) && (chunk_name != (png_const_bytep)0x0)) {\n    if (png_ptr->num_chunk_list == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(png_ptr->num_chunk_list * 5 + (int)png_ptr->chunk_list);\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *(int *)chunk_name) {\n        return (uint)*(byte *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (png_ptr->chunk_list < piVar1);\n  }" if (parenthesized_expression "((png_ptr != (png_const_structrp)0x0) && (chunk_name != (png_const_bytep)0x0))" ( (binary_expression "(png_ptr != (png_const_structrp)0x0) && (chunk_name != (png_const_bytep)0x0)" (parenthesized_expression "(png_ptr != (png_const_structrp)0x0)" ( (binary_expression "png_ptr != (png_const_structrp)0x0" identifier != (cast_expression "(png_const_structrp)0x0" ( (type_descriptor "png_const_structrp" type_identifier) ) number_literal)) )) && (parenthesized_expression "(chunk_name != (png_const_bytep)0x0)" ( (binary_expression "chunk_name != (png_const_bytep)0x0" identifier != (cast_expression "(png_const_bytep)0x0" ( (type_descriptor "png_const_bytep" type_identifier) ) number_literal)) ))) )) (compound_statement "{\n    if (png_ptr->num_chunk_list == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(png_ptr->num_chunk_list * 5 + (int)png_ptr->chunk_list);\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *(int *)chunk_name) {\n        return (uint)*(byte *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (png_ptr->chunk_list < piVar1);\n  }" { (if_statement "if (png_ptr->num_chunk_list == 0) {\n      return 0;\n    }" if (parenthesized_expression "(png_ptr->num_chunk_list == 0)" ( (binary_expression "png_ptr->num_chunk_list == 0" (field_expression "png_ptr->num_chunk_list" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar2 = (int *)(png_ptr->num_chunk_list * 5 + (int)png_ptr->chunk_list);" (assignment_expression "piVar2 = (int *)(png_ptr->num_chunk_list * 5 + (int)png_ptr->chunk_list)" identifier = (cast_expression "(int *)(png_ptr->num_chunk_list * 5 + (int)png_ptr->chunk_list)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(png_ptr->num_chunk_list * 5 + (int)png_ptr->chunk_list)" ( (binary_expression "png_ptr->num_chunk_list * 5 + (int)png_ptr->chunk_list" (binary_expression "png_ptr->num_chunk_list * 5" (field_expression "png_ptr->num_chunk_list" identifier -> field_identifier) * number_literal) + (cast_expression "(int)png_ptr->chunk_list" ( (type_descriptor "int" primitive_type) ) (field_expression "png_ptr->chunk_list" identifier -> field_identifier))) )))) ;) (do_statement "do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *(int *)chunk_name) {\n        return (uint)*(byte *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (png_ptr->chunk_list < piVar1);" do (compound_statement "{\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *(int *)chunk_name) {\n        return (uint)*(byte *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    }" { (expression_statement "piVar1 = (int *)((int)piVar2 + -5);" (assignment_expression "piVar1 = (int *)((int)piVar2 + -5)" identifier = (cast_expression "(int *)((int)piVar2 + -5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + -5)" ( (binary_expression "(int)piVar2 + -5" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (*piVar1 == *(int *)chunk_name) {\n        return (uint)*(byte *)((int)piVar2 + -1);\n      }" if (parenthesized_expression "(*piVar1 == *(int *)chunk_name)" ( (binary_expression "*piVar1 == *(int *)chunk_name" (pointer_expression "*piVar1" * identifier) == (pointer_expression "*(int *)chunk_name" * (cast_expression "(int *)chunk_name" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n        return (uint)*(byte *)((int)piVar2 + -1);\n      }" { (return_statement "return (uint)*(byte *)((int)piVar2 + -1);" return (binary_expression "(uint)*(byte *)((int)piVar2 + -1)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)piVar2 + -1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + -1)" ( (binary_expression "(int)piVar2 + -1" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "piVar2 = piVar1;" (assignment_expression "piVar2 = piVar1" identifier = identifier) ;) }) while (parenthesized_expression "(png_ptr->chunk_list < piVar1)" ( (binary_expression "png_ptr->chunk_list < piVar1" (field_expression "png_ptr->chunk_list" identifier -> field_identifier) < identifier) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined1 png_handle_as_unknown(int param_1,int *param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    if (*(int *)(param_1 + 0x29c) == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (*(int **)(param_1 + 0x2a0) < piVar1);\n  }\n  return 0;\n}\n\n" (function_definition "undefined1 png_handle_as_unknown(int param_1,int *param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    if (*(int *)(param_1 + 0x29c) == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (*(int **)(param_1 + 0x2a0) < piVar1);\n  }\n  return 0;\n}" type_identifier (function_declarator "png_handle_as_unknown(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    if (*(int *)(param_1 + 0x29c) == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (*(int **)(param_1 + 0x2a0) < piVar1);\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    if (*(int *)(param_1 + 0x29c) == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (*(int **)(param_1 + 0x2a0) < piVar1);\n  }" if (parenthesized_expression "((param_1 != 0) && (param_2 != (int *)0x0))" ( (binary_expression "(param_1 != 0) && (param_2 != (int *)0x0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x29c) == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (*(int **)(param_1 + 0x2a0) < piVar1);\n  }" { (if_statement "if (*(int *)(param_1 + 0x29c) == 0) {\n      return 0;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x29c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x29c) == 0" (pointer_expression "*(int *)(param_1 + 0x29c)" * (cast_expression "(int *)(param_1 + 0x29c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x29c)" ( (binary_expression "param_1 + 0x29c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));" (assignment_expression "piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0))" identifier = (cast_expression "(int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0))" ( (binary_expression "*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0)" (binary_expression "*(int *)(param_1 + 0x29c) * 5" (pointer_expression "*(int *)(param_1 + 0x29c)" * (cast_expression "(int *)(param_1 + 0x29c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x29c)" ( (binary_expression "param_1 + 0x29c" identifier + number_literal) )))) * number_literal) + (cast_expression "(int)*(int **)(param_1 + 0x2a0)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(int **)(param_1 + 0x2a0)" * (cast_expression "(int **)(param_1 + 0x2a0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x2a0)" ( (binary_expression "param_1 + 0x2a0" identifier + number_literal) )))))) )))) ;) (do_statement "do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (*(int **)(param_1 + 0x2a0) < piVar1);" do (compound_statement "{\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    }" { (expression_statement "piVar1 = (int *)((int)piVar2 + -5);" (assignment_expression "piVar1 = (int *)((int)piVar2 + -5)" identifier = (cast_expression "(int *)((int)piVar2 + -5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + -5)" ( (binary_expression "(int)piVar2 + -5" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }" if (parenthesized_expression "(*piVar1 == *param_2)" ( (binary_expression "*piVar1 == *param_2" (pointer_expression "*piVar1" * identifier) == (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n        return *(undefined1 *)((int)piVar2 + -1);\n      }" { (return_statement "return *(undefined1 *)((int)piVar2 + -1);" return (pointer_expression "*(undefined1 *)((int)piVar2 + -1)" * (cast_expression "(undefined1 *)((int)piVar2 + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + -1)" ( (binary_expression "(int)piVar2 + -1" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (expression_statement "piVar2 = piVar1;" (assignment_expression "piVar2 = piVar1" identifier = identifier) ;) }) while (parenthesized_expression "(*(int **)(param_1 + 0x2a0) < piVar1)" ( (binary_expression "*(int **)(param_1 + 0x2a0) < piVar1" (pointer_expression "*(int **)(param_1 + 0x2a0)" * (cast_expression "(int **)(param_1 + 0x2a0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x2a0)" ( (binary_expression "param_1 + 0x2a0" identifier + number_literal) )))) < identifier) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT) + (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT)) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < IDENT) )) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined1 png_handle_as_unknown(int param_1,int *param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    if (*(int *)(param_1 + 0x29c) == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (*(int **)(param_1 + 0x2a0) < piVar1);\n  }\n  return 0;\n}" (type_identifier "undefined1") (function_declarator "png_handle_as_unknown(int param_1,int *param_2)" (identifier "png_handle_as_unknown") (parameter_list "(int param_1,int *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    if (*(int *)(param_1 + 0x29c) == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (*(int **)(param_1 + 0x2a0) < piVar1);\n  }\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (if_statement "if ((param_1 != 0) && (param_2 != (int *)0x0)) {\n    if (*(int *)(param_1 + 0x29c) == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (*(int **)(param_1 + 0x2a0) < piVar1);\n  }" (if "if") (parenthesized_expression "((param_1 != 0) && (param_2 != (int *)0x0))" (( "(") (binary_expression "(param_1 != 0) && (param_2 != (int *)0x0)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 != (int *)0x0)" (( "(") (binary_expression "param_2 != (int *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x29c) == 0) {\n      return 0;\n    }\n    piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));\n    do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (*(int **)(param_1 + 0x2a0) < piVar1);\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x29c) == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x29c) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x29c) == 0" (pointer_expression "*(int *)(param_1 + 0x29c)" (* "*") (cast_expression "(int *)(param_1 + 0x29c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x29c)" (( "(") (binary_expression "param_1 + 0x29c" (identifier "param_1") (+ "+") (number_literal "0x29c")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));" (assignment_expression "piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0))" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0))" (( "(") (binary_expression "*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0)" (binary_expression "*(int *)(param_1 + 0x29c) * 5" (pointer_expression "*(int *)(param_1 + 0x29c)" (* "*") (cast_expression "(int *)(param_1 + 0x29c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x29c)" (( "(") (binary_expression "param_1 + 0x29c" (identifier "param_1") (+ "+") (number_literal "0x29c")) () ")")))) (* "*") (number_literal "5")) (+ "+") (cast_expression "(int)*(int **)(param_1 + 0x2a0)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(int **)(param_1 + 0x2a0)" (* "*") (cast_expression "(int **)(param_1 + 0x2a0)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x2a0)" (( "(") (binary_expression "param_1 + 0x2a0" (identifier "param_1") (+ "+") (number_literal "0x2a0")) () ")")))))) () ")")))) (; ";")) (do_statement "do {\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    } while (*(int **)(param_1 + 0x2a0) < piVar1);" (do "do") (compound_statement "{\n      piVar1 = (int *)((int)piVar2 + -5);\n      if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }\n      piVar2 = piVar1;\n    }" ({ "{") (expression_statement "piVar1 = (int *)((int)piVar2 + -5);" (assignment_expression "piVar1 = (int *)((int)piVar2 + -5)" (identifier "piVar1") (= "=") (cast_expression "(int *)((int)piVar2 + -5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar2 + -5)" (( "(") (binary_expression "(int)piVar2 + -5" (cast_expression "(int)piVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar2")) (+ "+") (number_literal "-5")) () ")")))) (; ";")) (if_statement "if (*piVar1 == *param_2) {\n        return *(undefined1 *)((int)piVar2 + -1);\n      }" (if "if") (parenthesized_expression "(*piVar1 == *param_2)" (( "(") (binary_expression "*piVar1 == *param_2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")) (compound_statement "{\n        return *(undefined1 *)((int)piVar2 + -1);\n      }" ({ "{") (return_statement "return *(undefined1 *)((int)piVar2 + -1);" (return "return") (pointer_expression "*(undefined1 *)((int)piVar2 + -1)" (* "*") (cast_expression "(undefined1 *)((int)piVar2 + -1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar2 + -1)" (( "(") (binary_expression "(int)piVar2 + -1" (cast_expression "(int)piVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar2")) (+ "+") (number_literal "-1")) () ")")))) (; ";")) (} "}"))) (expression_statement "piVar2 = piVar1;" (assignment_expression "piVar2 = piVar1" (identifier "piVar2") (= "=") (identifier "piVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(int **)(param_1 + 0x2a0) < piVar1)" (( "(") (binary_expression "*(int **)(param_1 + 0x2a0) < piVar1" (pointer_expression "*(int **)(param_1 + 0x2a0)" (* "*") (cast_expression "(int **)(param_1 + 0x2a0)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x2a0)" (( "(") (binary_expression "param_1 + 0x2a0" (identifier "param_1") (+ "+") (number_literal "0x2a0")) () ")")))) (< "<") (identifier "piVar1")) () ")")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Switch with 1 destination removed at 0x00014320 */

int function_1(type_1 var_1,type_2 var_2)

{
  int *var_3;
  int *piVar2;
  
  if ((var_1 != (type_1)0x0) && (var_2 != (type_2)0x0)) {
    if (var_1->num_chunk_list == 0) {
      return 0;
    }
    piVar2 = (int *)(var_1->num_chunk_list * 5 + (int)var_1->chunk_list);
    do {
      var_3 = (int *)((int)piVar2 + -5);
      if (*var_3 == *(int *)var_2) {
        return (uint)*(type_3 *)((int)piVar2 + -1);
      }
      piVar2 = var_3;
    } while (var_1->chunk_list < var_3);
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (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))))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (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))))) right: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))))) (return_statement (number_literal)))))

/* WARNING: Switch with 1 destination removed at 0x00014320 */

undefined1 MASKED(int param_1,int *param_2)

{
  int *piVar1;
  int *piVar2;
  
  if ((param_1 != 0) && (param_2 != (int *)0x0)) {
    if (*(int *)(param_1 + 0x29c) == 0) {
      return 0;
    }
    piVar2 = (int *)(*(int *)(param_1 + 0x29c) * 5 + (int)*(int **)(param_1 + 0x2a0));
    do {
      piVar1 = (int *)((int)piVar2 + -5);
      if (*piVar1 == *param_2) {
        return *(undefined1 *)((int)piVar2 + -1);
      }
      piVar2 = piVar1;
    } while (*(int **)(param_1 + 0x2a0) < piVar1);
  }
  return 0;
}

