
hwtype * get_hwtype(char *name)

{
  int iVar1;
  hwtype *phVar2;
  undefined4 *puVar3;
  
  puVar3 = (undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x104);
  phVar2 = (hwtype *)(PTR_OptArray_14__flags_00131178 + 0x1a0);
  do {
    iVar1 = (*(code *)PTR_strcmp_001321e0)(phVar2->name,name);
    puVar3 = puVar3 + 1;
    if (iVar1 == 0) {
      return phVar2;
    }
    phVar2 = (hwtype *)*puVar3;
  } while (phVar2 != (hwtype *)0x0);
  return (hwtype *)0x0;
}



undefined4 * FUN_00043290(undefined4 param_1)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  
  puVar3 = (undefined4 *)(PTR_DAT_00131178 + 0x104);
  puVar2 = (undefined4 *)(PTR_DAT_00131178 + 0x1a0);
  do {
    iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);
    puVar3 = puVar3 + 1;
    if (iVar1 == 0) {
      return puVar2;
    }
    puVar2 = (undefined4 *)*puVar3;
  } while (puVar2 != (undefined4 *)0x0);
  return (undefined4 *)0x0;
}


lui gp,0xf
addiu gp,gp,0x5ec0
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s2,a0,zero
lw s1,-0x7fd8(gp)
addiu s1,s1,0x104
lw s0,-0x7fd8(gp)
addiu s0,s0,0x1a0
or a1,s2,zero
lw a0,0x0(s0)
lw t9,-0x6f70(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x000432f4
_addiu s1,s1,0x4
lw s0,0x0(s1)
bne s0,zero,0x000432cc
_or a1,s2,zero
or v0,s0,zero
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "undefined4 * FUN_00043290(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = (undefined4 *)(PTR_DAT_00131178 + 0x104);\n  puVar2 = (undefined4 *)(PTR_DAT_00131178 + 0x1a0);\n  do {\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n    puVar2 = (undefined4 *)*puVar3;\n  } while (puVar2 != (undefined4 *)0x0);\n  return (undefined4 *)0x0;\n}\n\n" (function_definition "undefined4 * FUN_00043290(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = (undefined4 *)(PTR_DAT_00131178 + 0x104);\n  puVar2 = (undefined4 *)(PTR_DAT_00131178 + 0x1a0);\n  do {\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n    puVar2 = (undefined4 *)*puVar3;\n  } while (puVar2 != (undefined4 *)0x0);\n  return (undefined4 *)0x0;\n}" type_identifier (pointer_declarator "* FUN_00043290(undefined4 param_1)" * (function_declarator "FUN_00043290(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = (undefined4 *)(PTR_DAT_00131178 + 0x104);\n  puVar2 = (undefined4 *)(PTR_DAT_00131178 + 0x1a0);\n  do {\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n    puVar2 = (undefined4 *)*puVar3;\n  } while (puVar2 != (undefined4 *)0x0);\n  return (undefined4 *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar3 = (undefined4 *)(PTR_DAT_00131178 + 0x104);" (assignment_expression "puVar3 = (undefined4 *)(PTR_DAT_00131178 + 0x104)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_00131178 + 0x104)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00131178 + 0x104)" ( (binary_expression "PTR_DAT_00131178 + 0x104" identifier + number_literal) )))) ;) (expression_statement "puVar2 = (undefined4 *)(PTR_DAT_00131178 + 0x1a0);" (assignment_expression "puVar2 = (undefined4 *)(PTR_DAT_00131178 + 0x1a0)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_00131178 + 0x1a0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00131178 + 0x1a0)" ( (binary_expression "PTR_DAT_00131178 + 0x1a0" identifier + number_literal) )))) ;) (do_statement "do {\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n    puVar2 = (undefined4 *)*puVar3;\n  } while (puVar2 != (undefined4 *)0x0);" do (compound_statement "{\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n    puVar2 = (undefined4 *)*puVar3;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1)" identifier = (call_expression "(*(code *)PTR_strcmp_001321e0)(*puVar2,param_1)" (parenthesized_expression "(*(code *)PTR_strcmp_001321e0)" ( (pointer_expression "*(code *)PTR_strcmp_001321e0" * (cast_expression "(code *)PTR_strcmp_001321e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar2,param_1)" ( (pointer_expression "*puVar2" * identifier) , identifier )))) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (if_statement "if (iVar1 == 0) {\n      return puVar2;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return puVar2;\n    }" { (return_statement "return puVar2;" return identifier ;) })) (expression_statement "puVar2 = (undefined4 *)*puVar3;" (assignment_expression "puVar2 = (undefined4 *)*puVar3" identifier = (cast_expression "(undefined4 *)*puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) }) while (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "hwtype * get_hwtype(char *name)\n\n{\n  int iVar1;\n  hwtype *phVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = (undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x104);\n  phVar2 = (hwtype *)(PTR_OptArray_14__flags_00131178 + 0x1a0);\n  do {\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(phVar2->name,name);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return phVar2;\n    }\n    phVar2 = (hwtype *)*puVar3;\n  } while (phVar2 != (hwtype *)0x0);\n  return (hwtype *)0x0;\n}\n\n" (function_definition "hwtype * get_hwtype(char *name)\n\n{\n  int iVar1;\n  hwtype *phVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = (undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x104);\n  phVar2 = (hwtype *)(PTR_OptArray_14__flags_00131178 + 0x1a0);\n  do {\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(phVar2->name,name);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return phVar2;\n    }\n    phVar2 = (hwtype *)*puVar3;\n  } while (phVar2 != (hwtype *)0x0);\n  return (hwtype *)0x0;\n}" type_identifier (pointer_declarator "* get_hwtype(char *name)" * (function_declarator "get_hwtype(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  hwtype *phVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = (undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x104);\n  phVar2 = (hwtype *)(PTR_OptArray_14__flags_00131178 + 0x1a0);\n  do {\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(phVar2->name,name);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return phVar2;\n    }\n    phVar2 = (hwtype *)*puVar3;\n  } while (phVar2 != (hwtype *)0x0);\n  return (hwtype *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "hwtype *phVar2;" type_identifier (pointer_declarator "*phVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar3 = (undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x104);" (assignment_expression "puVar3 = (undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x104)" identifier = (cast_expression "(undefined4 *)(PTR_OptArray_14__flags_00131178 + 0x104)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_OptArray_14__flags_00131178 + 0x104)" ( (binary_expression "PTR_OptArray_14__flags_00131178 + 0x104" identifier + number_literal) )))) ;) (expression_statement "phVar2 = (hwtype *)(PTR_OptArray_14__flags_00131178 + 0x1a0);" (assignment_expression "phVar2 = (hwtype *)(PTR_OptArray_14__flags_00131178 + 0x1a0)" identifier = (cast_expression "(hwtype *)(PTR_OptArray_14__flags_00131178 + 0x1a0)" ( (type_descriptor "hwtype *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_OptArray_14__flags_00131178 + 0x1a0)" ( (binary_expression "PTR_OptArray_14__flags_00131178 + 0x1a0" identifier + number_literal) )))) ;) (do_statement "do {\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(phVar2->name,name);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return phVar2;\n    }\n    phVar2 = (hwtype *)*puVar3;\n  } while (phVar2 != (hwtype *)0x0);" do (compound_statement "{\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(phVar2->name,name);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return phVar2;\n    }\n    phVar2 = (hwtype *)*puVar3;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strcmp_001321e0)(phVar2->name,name);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_001321e0)(phVar2->name,name)" identifier = (call_expression "(*(code *)PTR_strcmp_001321e0)(phVar2->name,name)" (parenthesized_expression "(*(code *)PTR_strcmp_001321e0)" ( (pointer_expression "*(code *)PTR_strcmp_001321e0" * (cast_expression "(code *)PTR_strcmp_001321e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(phVar2->name,name)" ( (field_expression "phVar2->name" identifier -> field_identifier) , identifier )))) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (if_statement "if (iVar1 == 0) {\n      return phVar2;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return phVar2;\n    }" { (return_statement "return phVar2;" return identifier ;) })) (expression_statement "phVar2 = (hwtype *)*puVar3;" (assignment_expression "phVar2 = (hwtype *)*puVar3" identifier = (cast_expression "(hwtype *)*puVar3" ( (type_descriptor "hwtype *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) }) while (parenthesized_expression "(phVar2 != (hwtype *)0x0)" ( (binary_expression "phVar2 != (hwtype *)0x0" identifier != (cast_expression "(hwtype *)0x0" ( (type_descriptor "hwtype *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return (hwtype *)0x0;" return (cast_expression "(hwtype *)0x0" ( (type_descriptor "hwtype *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 * FUN_00043290(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = (undefined4 *)(PTR_DAT_00131178 + 0x104);\n  puVar2 = (undefined4 *)(PTR_DAT_00131178 + 0x1a0);\n  do {\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n    puVar2 = (undefined4 *)*puVar3;\n  } while (puVar2 != (undefined4 *)0x0);\n  return (undefined4 *)0x0;\n}\n\n" (function_definition "undefined4 * FUN_00043290(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = (undefined4 *)(PTR_DAT_00131178 + 0x104);\n  puVar2 = (undefined4 *)(PTR_DAT_00131178 + 0x1a0);\n  do {\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n    puVar2 = (undefined4 *)*puVar3;\n  } while (puVar2 != (undefined4 *)0x0);\n  return (undefined4 *)0x0;\n}" type_identifier (pointer_declarator "* FUN_00043290(undefined4 param_1)" * (function_declarator "FUN_00043290(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = (undefined4 *)(PTR_DAT_00131178 + 0x104);\n  puVar2 = (undefined4 *)(PTR_DAT_00131178 + 0x1a0);\n  do {\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n    puVar2 = (undefined4 *)*puVar3;\n  } while (puVar2 != (undefined4 *)0x0);\n  return (undefined4 *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar3 = (undefined4 *)(PTR_DAT_00131178 + 0x104);" (assignment_expression "puVar3 = (undefined4 *)(PTR_DAT_00131178 + 0x104)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_00131178 + 0x104)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00131178 + 0x104)" ( (binary_expression "PTR_DAT_00131178 + 0x104" identifier + number_literal) )))) ;) (expression_statement "puVar2 = (undefined4 *)(PTR_DAT_00131178 + 0x1a0);" (assignment_expression "puVar2 = (undefined4 *)(PTR_DAT_00131178 + 0x1a0)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_00131178 + 0x1a0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00131178 + 0x1a0)" ( (binary_expression "PTR_DAT_00131178 + 0x1a0" identifier + number_literal) )))) ;) (do_statement "do {\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n    puVar2 = (undefined4 *)*puVar3;\n  } while (puVar2 != (undefined4 *)0x0);" do (compound_statement "{\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n    puVar2 = (undefined4 *)*puVar3;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1)" identifier = (call_expression "(*(code *)PTR_strcmp_001321e0)(*puVar2,param_1)" (parenthesized_expression "(*(code *)PTR_strcmp_001321e0)" ( (pointer_expression "*(code *)PTR_strcmp_001321e0" * (cast_expression "(code *)PTR_strcmp_001321e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar2,param_1)" ( (pointer_expression "*puVar2" * identifier) , identifier )))) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (if_statement "if (iVar1 == 0) {\n      return puVar2;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return puVar2;\n    }" { (return_statement "return puVar2;" return identifier ;) })) (expression_statement "puVar2 = (undefined4 *)*puVar3;" (assignment_expression "puVar2 = (undefined4 *)*puVar3" identifier = (cast_expression "(undefined4 *)*puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) }) while (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return (undefined4 *)0x0;" return (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "undefined4 * FUN_00043290(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = (undefined4 *)(PTR_DAT_00131178 + 0x104);\n  puVar2 = (undefined4 *)(PTR_DAT_00131178 + 0x1a0);\n  do {\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n    puVar2 = (undefined4 *)*puVar3;\n  } while (puVar2 != (undefined4 *)0x0);\n  return (undefined4 *)0x0;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_00043290(undefined4 param_1)" (* "*") (function_declarator "FUN_00043290(undefined4 param_1)" (identifier "FUN_00043290") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")")))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = (undefined4 *)(PTR_DAT_00131178 + 0x104);\n  puVar2 = (undefined4 *)(PTR_DAT_00131178 + 0x1a0);\n  do {\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n    puVar2 = (undefined4 *)*puVar3;\n  } while (puVar2 != (undefined4 *)0x0);\n  return (undefined4 *)0x0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "puVar3 = (undefined4 *)(PTR_DAT_00131178 + 0x104);" (assignment_expression "puVar3 = (undefined4 *)(PTR_DAT_00131178 + 0x104)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(PTR_DAT_00131178 + 0x104)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00131178 + 0x104)" (( "(") (binary_expression "PTR_DAT_00131178 + 0x104" (identifier "PTR_DAT_00131178") (+ "+") (number_literal "0x104")) () ")")))) (; ";")) (expression_statement "puVar2 = (undefined4 *)(PTR_DAT_00131178 + 0x1a0);" (assignment_expression "puVar2 = (undefined4 *)(PTR_DAT_00131178 + 0x1a0)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(PTR_DAT_00131178 + 0x1a0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00131178 + 0x1a0)" (( "(") (binary_expression "PTR_DAT_00131178 + 0x1a0" (identifier "PTR_DAT_00131178") (+ "+") (number_literal "0x1a0")) () ")")))) (; ";")) (do_statement "do {\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n    puVar2 = (undefined4 *)*puVar3;\n  } while (puVar2 != (undefined4 *)0x0);" (do "do") (compound_statement "{\n    iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);\n    puVar3 = puVar3 + 1;\n    if (iVar1 == 0) {\n      return puVar2;\n    }\n    puVar2 = (undefined4 *)*puVar3;\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strcmp_001321e0)(*puVar2,param_1)" (parenthesized_expression "(*(code *)PTR_strcmp_001321e0)" (( "(") (pointer_expression "*(code *)PTR_strcmp_001321e0" (* "*") (cast_expression "(code *)PTR_strcmp_001321e0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_001321e0"))) () ")")) (argument_list "(*puVar2,param_1)" (( "(") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar1 == 0) {\n      return puVar2;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return puVar2;\n    }" ({ "{") (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)*puVar3;" (assignment_expression "puVar2 = (undefined4 *)*puVar3" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)*puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 != (undefined4 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (return_statement "return (undefined4 *)0x0;" (return "return") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

type_1 * function_1(char *name)

{
  int var_3;
  type_1 *var_4;
  type_2 *var_2;
  
  var_2 = (type_2 *)(var_1 + 0x104);
  var_4 = (type_1 *)(var_1 + 0x1a0);
  do {
    var_3 = (*(type_3 *)PTR_strcmp_001321e0)(var_4->name,name);
    var_2 = var_2 + 1;
    if (var_3 == 0) {
      return var_4;
    }
    var_4 = (type_1 *)*var_2;
  } while (var_4 != (type_1 *)0x0);
  return (type_1 *)0x0;
}


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

undefined4 * MASKED(undefined4 param_1)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  
  puVar3 = (undefined4 *)(PTR_DAT_00131178 + 0x104);
  puVar2 = (undefined4 *)(PTR_DAT_00131178 + 0x1a0);
  do {
    iVar1 = (*(code *)PTR_strcmp_001321e0)(*puVar2,param_1);
    puVar3 = puVar3 + 1;
    if (iVar1 == 0) {
      return puVar2;
    }
    puVar2 = (undefined4 *)*puVar3;
  } while (puVar2 != (undefined4 *)0x0);
  return (undefined4 *)0x0;
}

