
aftype * get_aftype(char *name)

{
  int iVar1;
  char *pcVar2;
  aftype *paVar3;
  undefined4 *puVar4;
  
  pcVar2 = PTR_UINT_0012a18c + 0x21ac;
  puVar4 = (undefined4 *)(PTR_DAT_0012a178 + -0x6e14);
  paVar3 = (aftype *)(PTR_DAT_0012a178 + -0x6dac);
  while( true ) {
    iVar1 = (*(code *)PTR_strcmp_0012b1c8)(pcVar2,name);
    if (iVar1 == 0) {
      return paVar3;
    }
    puVar4 = puVar4 + 1;
    paVar3 = (aftype *)*puVar4;
    if (paVar3 == (aftype *)0x0) break;
    pcVar2 = paVar3->name;
  }
  return (aftype *)0x0;
}



int * FUN_00041630(undefined4 param_1)

{
  int iVar1;
  int *piVar2;
  undefined4 *puVar3;
  int in_t9;
  
  iVar1 = *(int *)(in_t9 + 0xe8b5c) + 0x21ac;
  puVar3 = (undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14);
  piVar2 = (int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac);
  while( true ) {
    iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);
    if (iVar1 == 0) {
      return piVar2;
    }
    puVar3 = puVar3 + 1;
    piVar2 = (int *)*puVar3;
    if (piVar2 == (int *)0x0) break;
    iVar1 = *piVar2;
  }
  return (int *)0x0;
}


lui gp,0xf
addiu gp,gp,0xb20
addu gp,gp,t9
addiu sp,sp,-0x28
sw s2,0x20(sp)
or s2,a0,zero
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
sw ra,0x24(sp)
lw a0,-0x7fc4(gp)
lw s1,-0x7fd8(gp)
lw s0,-0x7fd8(gp)
addiu a0,a0,0x21ac
addiu s1,s1,-0x6e14
addiu s0,s0,-0x6dac
lw t9,-0x6f88(gp)
jalr t9
_or a1,s2,zero
bne v0,zero,0x000416a0
_lw gp,0x10(sp)
lw ra,0x24(sp)
or v0,s0,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
addiu s1,s1,0x4
lw s0,0x0(s1)
beq s0,zero,0x00041688
_lw ra,0x24(sp)
b 0x00041670
_lw a0,0x0(s0)
(translation_unit "int * FUN_00041630(undefined4 param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int in_t9;\n  \n  iVar1 = *(int *)(in_t9 + 0xe8b5c) + 0x21ac;\n  puVar3 = (undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14);\n  piVar2 = (int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac);\n  while( true ) {\n    iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);\n    if (iVar1 == 0) {\n      return piVar2;\n    }\n    puVar3 = puVar3 + 1;\n    piVar2 = (int *)*puVar3;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = *piVar2;\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * FUN_00041630(undefined4 param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int in_t9;\n  \n  iVar1 = *(int *)(in_t9 + 0xe8b5c) + 0x21ac;\n  puVar3 = (undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14);\n  piVar2 = (int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac);\n  while( true ) {\n    iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);\n    if (iVar1 == 0) {\n      return piVar2;\n    }\n    puVar3 = puVar3 + 1;\n    piVar2 = (int *)*puVar3;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = *piVar2;\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* FUN_00041630(undefined4 param_1)" * (function_declarator "FUN_00041630(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int in_t9;\n  \n  iVar1 = *(int *)(in_t9 + 0xe8b5c) + 0x21ac;\n  puVar3 = (undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14);\n  piVar2 = (int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac);\n  while( true ) {\n    iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);\n    if (iVar1 == 0) {\n      return piVar2;\n    }\n    puVar3 = puVar3 + 1;\n    piVar2 = (int *)*puVar3;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = *piVar2;\n  }\n  return (int *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int in_t9;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_t9 + 0xe8b5c) + 0x21ac;" (assignment_expression "iVar1 = *(int *)(in_t9 + 0xe8b5c) + 0x21ac" identifier = (binary_expression "*(int *)(in_t9 + 0xe8b5c) + 0x21ac" (pointer_expression "*(int *)(in_t9 + 0xe8b5c)" * (cast_expression "(int *)(in_t9 + 0xe8b5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0xe8b5c)" ( (binary_expression "in_t9 + 0xe8b5c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "puVar3 = (undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14);" (assignment_expression "puVar3 = (undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14)" identifier = (cast_expression "(undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(in_t9 + 0xe8b48) + -0x6e14)" ( (binary_expression "*(int *)(in_t9 + 0xe8b48) + -0x6e14" (pointer_expression "*(int *)(in_t9 + 0xe8b48)" * (cast_expression "(int *)(in_t9 + 0xe8b48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0xe8b48)" ( (binary_expression "in_t9 + 0xe8b48" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "piVar2 = (int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac);" (assignment_expression "piVar2 = (int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac)" identifier = (cast_expression "(int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(in_t9 + 0xe8b48) + -0x6dac)" ( (binary_expression "*(int *)(in_t9 + 0xe8b48) + -0x6dac" (pointer_expression "*(int *)(in_t9 + 0xe8b48)" * (cast_expression "(int *)(in_t9 + 0xe8b48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0xe8b48)" ( (binary_expression "in_t9 + 0xe8b48" identifier + number_literal) )))) + number_literal) )))) ;) (while_statement "while( true ) {\n    iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);\n    if (iVar1 == 0) {\n      return piVar2;\n    }\n    puVar3 = puVar3 + 1;\n    piVar2 = (int *)*puVar3;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = *piVar2;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);\n    if (iVar1 == 0) {\n      return piVar2;\n    }\n    puVar3 = puVar3 + 1;\n    piVar2 = (int *)*puVar3;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = *piVar2;\n  }" { (expression_statement "iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);" (assignment_expression "iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1)" identifier = (call_expression "(**(code **)(in_t9 + 0xe9b98))(iVar1,param_1)" (parenthesized_expression "(**(code **)(in_t9 + 0xe9b98))" ( (pointer_expression "**(code **)(in_t9 + 0xe9b98)" * (pointer_expression "*(code **)(in_t9 + 0xe9b98)" * (cast_expression "(code **)(in_t9 + 0xe9b98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0xe9b98)" ( (binary_expression "in_t9 + 0xe9b98" identifier + number_literal) ))))) )) (argument_list "(iVar1,param_1)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      return piVar2;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return piVar2;\n    }" { (return_statement "return piVar2;" return identifier ;) })) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "piVar2 = (int *)*puVar3;" (assignment_expression "piVar2 = (int *)*puVar3" identifier = (cast_expression "(int *)*puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) (if_statement "if (piVar2 == (int *)0x0) break;" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "aftype * get_aftype(char *name)\n\n{\n  int iVar1;\n  char *pcVar2;\n  aftype *paVar3;\n  undefined4 *puVar4;\n  \n  pcVar2 = PTR_UINT_0012a18c + 0x21ac;\n  puVar4 = (undefined4 *)(PTR_DAT_0012a178 + -0x6e14);\n  paVar3 = (aftype *)(PTR_DAT_0012a178 + -0x6dac);\n  while( true ) {\n    iVar1 = (*(code *)PTR_strcmp_0012b1c8)(pcVar2,name);\n    if (iVar1 == 0) {\n      return paVar3;\n    }\n    puVar4 = puVar4 + 1;\n    paVar3 = (aftype *)*puVar4;\n    if (paVar3 == (aftype *)0x0) break;\n    pcVar2 = paVar3->name;\n  }\n  return (aftype *)0x0;\n}\n\n" (function_definition "aftype * get_aftype(char *name)\n\n{\n  int iVar1;\n  char *pcVar2;\n  aftype *paVar3;\n  undefined4 *puVar4;\n  \n  pcVar2 = PTR_UINT_0012a18c + 0x21ac;\n  puVar4 = (undefined4 *)(PTR_DAT_0012a178 + -0x6e14);\n  paVar3 = (aftype *)(PTR_DAT_0012a178 + -0x6dac);\n  while( true ) {\n    iVar1 = (*(code *)PTR_strcmp_0012b1c8)(pcVar2,name);\n    if (iVar1 == 0) {\n      return paVar3;\n    }\n    puVar4 = puVar4 + 1;\n    paVar3 = (aftype *)*puVar4;\n    if (paVar3 == (aftype *)0x0) break;\n    pcVar2 = paVar3->name;\n  }\n  return (aftype *)0x0;\n}" type_identifier (pointer_declarator "* get_aftype(char *name)" * (function_declarator "get_aftype(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  aftype *paVar3;\n  undefined4 *puVar4;\n  \n  pcVar2 = PTR_UINT_0012a18c + 0x21ac;\n  puVar4 = (undefined4 *)(PTR_DAT_0012a178 + -0x6e14);\n  paVar3 = (aftype *)(PTR_DAT_0012a178 + -0x6dac);\n  while( true ) {\n    iVar1 = (*(code *)PTR_strcmp_0012b1c8)(pcVar2,name);\n    if (iVar1 == 0) {\n      return paVar3;\n    }\n    puVar4 = puVar4 + 1;\n    paVar3 = (aftype *)*puVar4;\n    if (paVar3 == (aftype *)0x0) break;\n    pcVar2 = paVar3->name;\n  }\n  return (aftype *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "aftype *paVar3;" type_identifier (pointer_declarator "*paVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "pcVar2 = PTR_UINT_0012a18c + 0x21ac;" (assignment_expression "pcVar2 = PTR_UINT_0012a18c + 0x21ac" identifier = (binary_expression "PTR_UINT_0012a18c + 0x21ac" identifier + number_literal)) ;) (expression_statement "puVar4 = (undefined4 *)(PTR_DAT_0012a178 + -0x6e14);" (assignment_expression "puVar4 = (undefined4 *)(PTR_DAT_0012a178 + -0x6e14)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_0012a178 + -0x6e14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x6e14)" ( (binary_expression "PTR_DAT_0012a178 + -0x6e14" identifier + number_literal) )))) ;) (expression_statement "paVar3 = (aftype *)(PTR_DAT_0012a178 + -0x6dac);" (assignment_expression "paVar3 = (aftype *)(PTR_DAT_0012a178 + -0x6dac)" identifier = (cast_expression "(aftype *)(PTR_DAT_0012a178 + -0x6dac)" ( (type_descriptor "aftype *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x6dac)" ( (binary_expression "PTR_DAT_0012a178 + -0x6dac" identifier + number_literal) )))) ;) (while_statement "while( true ) {\n    iVar1 = (*(code *)PTR_strcmp_0012b1c8)(pcVar2,name);\n    if (iVar1 == 0) {\n      return paVar3;\n    }\n    puVar4 = puVar4 + 1;\n    paVar3 = (aftype *)*puVar4;\n    if (paVar3 == (aftype *)0x0) break;\n    pcVar2 = paVar3->name;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strcmp_0012b1c8)(pcVar2,name);\n    if (iVar1 == 0) {\n      return paVar3;\n    }\n    puVar4 = puVar4 + 1;\n    paVar3 = (aftype *)*puVar4;\n    if (paVar3 == (aftype *)0x0) break;\n    pcVar2 = paVar3->name;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strcmp_0012b1c8)(pcVar2,name);" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_0012b1c8)(pcVar2,name)" identifier = (call_expression "(*(code *)PTR_strcmp_0012b1c8)(pcVar2,name)" (parenthesized_expression "(*(code *)PTR_strcmp_0012b1c8)" ( (pointer_expression "*(code *)PTR_strcmp_0012b1c8" * (cast_expression "(code *)PTR_strcmp_0012b1c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2,name)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      return paVar3;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return paVar3;\n    }" { (return_statement "return paVar3;" return identifier ;) })) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) (expression_statement "paVar3 = (aftype *)*puVar4;" (assignment_expression "paVar3 = (aftype *)*puVar4" identifier = (cast_expression "(aftype *)*puVar4" ( (type_descriptor "aftype *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (if_statement "if (paVar3 == (aftype *)0x0) break;" if (parenthesized_expression "(paVar3 == (aftype *)0x0)" ( (binary_expression "paVar3 == (aftype *)0x0" identifier == (cast_expression "(aftype *)0x0" ( (type_descriptor "aftype *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar2 = paVar3->name;" (assignment_expression "pcVar2 = paVar3->name" identifier = (field_expression "paVar3->name" identifier -> field_identifier)) ;) })) (return_statement "return (aftype *)0x0;" return (cast_expression "(aftype *)0x0" ( (type_descriptor "aftype *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int * FUN_00041630(undefined4 param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int in_t9;\n  \n  iVar1 = *(int *)(in_t9 + 0xe8b5c) + 0x21ac;\n  puVar3 = (undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14);\n  piVar2 = (int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac);\n  while( true ) {\n    iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);\n    if (iVar1 == 0) {\n      return piVar2;\n    }\n    puVar3 = puVar3 + 1;\n    piVar2 = (int *)*puVar3;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = *piVar2;\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * FUN_00041630(undefined4 param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int in_t9;\n  \n  iVar1 = *(int *)(in_t9 + 0xe8b5c) + 0x21ac;\n  puVar3 = (undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14);\n  piVar2 = (int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac);\n  while( true ) {\n    iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);\n    if (iVar1 == 0) {\n      return piVar2;\n    }\n    puVar3 = puVar3 + 1;\n    piVar2 = (int *)*puVar3;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = *piVar2;\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* FUN_00041630(undefined4 param_1)" * (function_declarator "FUN_00041630(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int in_t9;\n  \n  iVar1 = *(int *)(in_t9 + 0xe8b5c) + 0x21ac;\n  puVar3 = (undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14);\n  piVar2 = (int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac);\n  while( true ) {\n    iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);\n    if (iVar1 == 0) {\n      return piVar2;\n    }\n    puVar3 = puVar3 + 1;\n    piVar2 = (int *)*puVar3;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = *piVar2;\n  }\n  return (int *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int in_t9;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_t9 + 0xe8b5c) + 0x21ac;" (assignment_expression "iVar1 = *(int *)(in_t9 + 0xe8b5c) + 0x21ac" identifier = (binary_expression "*(int *)(in_t9 + 0xe8b5c) + 0x21ac" (pointer_expression "*(int *)(in_t9 + 0xe8b5c)" * (cast_expression "(int *)(in_t9 + 0xe8b5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0xe8b5c)" ( (binary_expression "in_t9 + 0xe8b5c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "puVar3 = (undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14);" (assignment_expression "puVar3 = (undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14)" identifier = (cast_expression "(undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(in_t9 + 0xe8b48) + -0x6e14)" ( (binary_expression "*(int *)(in_t9 + 0xe8b48) + -0x6e14" (pointer_expression "*(int *)(in_t9 + 0xe8b48)" * (cast_expression "(int *)(in_t9 + 0xe8b48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0xe8b48)" ( (binary_expression "in_t9 + 0xe8b48" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "piVar2 = (int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac);" (assignment_expression "piVar2 = (int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac)" identifier = (cast_expression "(int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(in_t9 + 0xe8b48) + -0x6dac)" ( (binary_expression "*(int *)(in_t9 + 0xe8b48) + -0x6dac" (pointer_expression "*(int *)(in_t9 + 0xe8b48)" * (cast_expression "(int *)(in_t9 + 0xe8b48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0xe8b48)" ( (binary_expression "in_t9 + 0xe8b48" identifier + number_literal) )))) + number_literal) )))) ;) (while_statement "while( true ) {\n    iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);\n    if (iVar1 == 0) {\n      return piVar2;\n    }\n    puVar3 = puVar3 + 1;\n    piVar2 = (int *)*puVar3;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = *piVar2;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);\n    if (iVar1 == 0) {\n      return piVar2;\n    }\n    puVar3 = puVar3 + 1;\n    piVar2 = (int *)*puVar3;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = *piVar2;\n  }" { (expression_statement "iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);" (assignment_expression "iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1)" identifier = (call_expression "(**(code **)(in_t9 + 0xe9b98))(iVar1,param_1)" (parenthesized_expression "(**(code **)(in_t9 + 0xe9b98))" ( (pointer_expression "**(code **)(in_t9 + 0xe9b98)" * (pointer_expression "*(code **)(in_t9 + 0xe9b98)" * (cast_expression "(code **)(in_t9 + 0xe9b98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0xe9b98)" ( (binary_expression "in_t9 + 0xe9b98" identifier + number_literal) ))))) )) (argument_list "(iVar1,param_1)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      return piVar2;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return piVar2;\n    }" { (return_statement "return piVar2;" return identifier ;) })) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "piVar2 = (int *)*puVar3;" (assignment_expression "piVar2 = (int *)*puVar3" identifier = (cast_expression "(int *)*puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) (if_statement "if (piVar2 == (int *)0x0) break;" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (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) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "int * FUN_00041630(undefined4 param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int in_t9;\n  \n  iVar1 = *(int *)(in_t9 + 0xe8b5c) + 0x21ac;\n  puVar3 = (undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14);\n  piVar2 = (int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac);\n  while( true ) {\n    iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);\n    if (iVar1 == 0) {\n      return piVar2;\n    }\n    puVar3 = puVar3 + 1;\n    piVar2 = (int *)*puVar3;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = *piVar2;\n  }\n  return (int *)0x0;\n}" (primitive_type "int") (pointer_declarator "* FUN_00041630(undefined4 param_1)" (* "*") (function_declarator "FUN_00041630(undefined4 param_1)" (identifier "FUN_00041630") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")")))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int in_t9;\n  \n  iVar1 = *(int *)(in_t9 + 0xe8b5c) + 0x21ac;\n  puVar3 = (undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14);\n  piVar2 = (int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac);\n  while( true ) {\n    iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);\n    if (iVar1 == 0) {\n      return piVar2;\n    }\n    puVar3 = puVar3 + 1;\n    piVar2 = (int *)*puVar3;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = *piVar2;\n  }\n  return (int *)0x0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int in_t9;" (primitive_type "int") (identifier "in_t9") (; ";")) (expression_statement "iVar1 = *(int *)(in_t9 + 0xe8b5c) + 0x21ac;" (assignment_expression "iVar1 = *(int *)(in_t9 + 0xe8b5c) + 0x21ac" (identifier "iVar1") (= "=") (binary_expression "*(int *)(in_t9 + 0xe8b5c) + 0x21ac" (pointer_expression "*(int *)(in_t9 + 0xe8b5c)" (* "*") (cast_expression "(int *)(in_t9 + 0xe8b5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_t9 + 0xe8b5c)" (( "(") (binary_expression "in_t9 + 0xe8b5c" (identifier "in_t9") (+ "+") (number_literal "0xe8b5c")) () ")")))) (+ "+") (number_literal "0x21ac"))) (; ";")) (expression_statement "puVar3 = (undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14);" (assignment_expression "puVar3 = (undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(in_t9 + 0xe8b48) + -0x6e14)" (( "(") (binary_expression "*(int *)(in_t9 + 0xe8b48) + -0x6e14" (pointer_expression "*(int *)(in_t9 + 0xe8b48)" (* "*") (cast_expression "(int *)(in_t9 + 0xe8b48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_t9 + 0xe8b48)" (( "(") (binary_expression "in_t9 + 0xe8b48" (identifier "in_t9") (+ "+") (number_literal "0xe8b48")) () ")")))) (+ "+") (number_literal "-0x6e14")) () ")")))) (; ";")) (expression_statement "piVar2 = (int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac);" (assignment_expression "piVar2 = (int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac)" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(in_t9 + 0xe8b48) + -0x6dac)" (( "(") (binary_expression "*(int *)(in_t9 + 0xe8b48) + -0x6dac" (pointer_expression "*(int *)(in_t9 + 0xe8b48)" (* "*") (cast_expression "(int *)(in_t9 + 0xe8b48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_t9 + 0xe8b48)" (( "(") (binary_expression "in_t9 + 0xe8b48" (identifier "in_t9") (+ "+") (number_literal "0xe8b48")) () ")")))) (+ "+") (number_literal "-0x6dac")) () ")")))) (; ";")) (while_statement "while( true ) {\n    iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);\n    if (iVar1 == 0) {\n      return piVar2;\n    }\n    puVar3 = puVar3 + 1;\n    piVar2 = (int *)*puVar3;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = *piVar2;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);\n    if (iVar1 == 0) {\n      return piVar2;\n    }\n    puVar3 = puVar3 + 1;\n    piVar2 = (int *)*puVar3;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = *piVar2;\n  }" ({ "{") (expression_statement "iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);" (assignment_expression "iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(in_t9 + 0xe9b98))(iVar1,param_1)" (parenthesized_expression "(**(code **)(in_t9 + 0xe9b98))" (( "(") (pointer_expression "**(code **)(in_t9 + 0xe9b98)" (* "*") (pointer_expression "*(code **)(in_t9 + 0xe9b98)" (* "*") (cast_expression "(code **)(in_t9 + 0xe9b98)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(in_t9 + 0xe9b98)" (( "(") (binary_expression "in_t9 + 0xe9b98" (identifier "in_t9") (+ "+") (number_literal "0xe9b98")) () ")"))))) () ")")) (argument_list "(iVar1,param_1)" (( "(") (identifier "iVar1") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      return piVar2;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return piVar2;\n    }" ({ "{") (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}"))) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar2 = (int *)*puVar3;" (assignment_expression "piVar2 = (int *)*puVar3" (identifier "piVar2") (= "=") (cast_expression "(int *)*puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) break;" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (} "}"))) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) 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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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)))) (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: (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)))))) (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: (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)))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier))))) (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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (return_statement (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))

int * MASKED(undefined4 param_1)

{
  int iVar1;
  int *piVar2;
  undefined4 *puVar3;
  int in_t9;
  
  iVar1 = *(int *)(in_t9 + 0xe8b5c) + 0x21ac;
  puVar3 = (undefined4 *)(*(int *)(in_t9 + 0xe8b48) + -0x6e14);
  piVar2 = (int *)(*(int *)(in_t9 + 0xe8b48) + -0x6dac);
  while( true ) {
    iVar1 = (**(code **)(in_t9 + 0xe9b98))(iVar1,param_1);
    if (iVar1 == 0) {
      return piVar2;
    }
    puVar3 = puVar3 + 1;
    piVar2 = (int *)*puVar3;
    if (piVar2 == (int *)0x0) break;
    iVar1 = *piVar2;
  }
  return (int *)0x0;
}

