
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

kexinit_algorithm * ssh2_kexinit_addalg(kexinit_algorithm *list,char *name)

{
  kexinit_algorithm *pkVar1;
  kexinit_algorithm *pkVar2;
  
  if ((list->name != (char *)0x0) && (name != list->name)) {
    pkVar1 = list + 0x10;
    list = list + 1;
    while ((list->name != (char *)0x0 && (pkVar2 = list + 1, list->name != name))) {
      list = pkVar2;
      if (pkVar2 == pkVar1) {
        pkVar1 = (kexinit_algorithm *)
                 (*(code *)PTR___assert_fail_000b8b18)
                           (PTR_PC2_1357_27__000b8348 + -0x7d78,PTR_PC2_1357_27__000b8348 + -0x7d80,
                            0x18bb,PTR_PC2_1357_27__000b8348 + -0x3e3c);
        return pkVar1;
      }
    }
  }
  list->name = name;
  return list;
}



void FUN_00030f2c(int *param_1,int param_2)

{
  int *piVar1;
  int *piVar2;
  
  if ((*param_1 != 0) && (param_2 != *param_1)) {
    piVar2 = param_1 + 0x30;
    param_1 = param_1 + 3;
    while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {
      param_1 = piVar1;
      if (piVar1 == piVar2) {
        (*(code *)PTR___assert_fail_000b8b18)
                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,
                   PTR_DAT_000b8348 + -0x3e3c);
        return;
      }
    }
  }
  *param_1 = param_2;
  return;
}


lui gp,0x9
addiu gp,gp,-0xc9c
addu gp,gp,t9
lw v0,0x0(a0)
beq v0,zero,0x00030f9c
_nop
beq a1,v0,0x00030fa8
_addiu v1,a0,0xc
addiu a0,a0,0xc0
lw a2,0x0(v1)
beq a2,zero,0x00030fa0
_or v0,v1,zero
beq a2,a1,0x00030fa0
_addiu v1,v1,0xc
bne v1,a0,0x00030f50
_lw a3,-0x7f48(gp)
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw gp,0x10(sp)
addiu a3,a3,-0x3e3c
li a2,0x18bb
lw a1,-0x7f48(gp)
addiu a1,a1,-0x7d80
lw a0,-0x7f48(gp)
addiu a0,a0,-0x7d78
lw t9,-0x7778(gp)
jalr t9
_nop
or v0,a0,zero
jr ra
_sw a1,0x0(v0)
b 0x00030fa0
_or v0,a0,zero
(translation_unit "void FUN_00030f2c(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((*param_1 != 0) && (param_2 != *param_1)) {\n    piVar2 = param_1 + 0x30;\n    param_1 = param_1 + 3;\n    while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }\n  }\n  *param_1 = param_2;\n  return;\n}\n\n" (function_definition "void FUN_00030f2c(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((*param_1 != 0) && (param_2 != *param_1)) {\n    piVar2 = param_1 + 0x30;\n    param_1 = param_1 + 3;\n    while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }\n  }\n  *param_1 = param_2;\n  return;\n}" primitive_type (function_declarator "FUN_00030f2c(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((*param_1 != 0) && (param_2 != *param_1)) {\n    piVar2 = param_1 + 0x30;\n    param_1 = param_1 + 3;\n    while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }\n  }\n  *param_1 = param_2;\n  return;\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 != *param_1)) {\n    piVar2 = param_1 + 0x30;\n    param_1 = param_1 + 3;\n    while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }\n  }" if (parenthesized_expression "((*param_1 != 0) && (param_2 != *param_1))" ( (binary_expression "(*param_1 != 0) && (param_2 != *param_1)" (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) && (parenthesized_expression "(param_2 != *param_1)" ( (binary_expression "param_2 != *param_1" identifier != (pointer_expression "*param_1" * identifier)) ))) )) (compound_statement "{\n    piVar2 = param_1 + 0x30;\n    param_1 = param_1 + 3;\n    while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }\n  }" { (expression_statement "piVar2 = param_1 + 0x30;" (assignment_expression "piVar2 = param_1 + 0x30" identifier = (binary_expression "param_1 + 0x30" identifier + number_literal)) ;) (expression_statement "param_1 = param_1 + 3;" (assignment_expression "param_1 = param_1 + 3" identifier = (binary_expression "param_1 + 3" identifier + number_literal)) ;) (while_statement "while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }" while (parenthesized_expression "((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2)))" ( (parenthesized_expression "(*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))" ( (binary_expression "*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2)" (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) && (parenthesized_expression "(piVar1 = param_1 + 3, *param_1 != param_2)" ( (comma_expression "piVar1 = param_1 + 3, *param_1 != param_2" (assignment_expression "piVar1 = param_1 + 3" identifier = (binary_expression "param_1 + 3" identifier + number_literal)) , (binary_expression "*param_1 != param_2" (pointer_expression "*param_1" * identifier) != identifier)) ))) )) )) (compound_statement "{\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }" { (expression_statement "param_1 = piVar1;" (assignment_expression "param_1 = piVar1" identifier = identifier) ;) (if_statement "if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }" if (parenthesized_expression "(piVar1 == piVar2)" ( (binary_expression "piVar1 == piVar2" identifier == identifier) )) (compound_statement "{\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }" { (expression_statement "(*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);" (call_expression "(*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b8b18)" ( (pointer_expression "*(code *)PTR___assert_fail_000b8b18" * (cast_expression "(code *)PTR___assert_fail_000b8b18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c)" ( (binary_expression "PTR_DAT_000b8348 + -0x7d78" identifier + number_literal) , (binary_expression "PTR_DAT_000b8348 + -0x7d80" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000b8348 + -0x3e3c" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) })) })) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nkexinit_algorithm * ssh2_kexinit_addalg(kexinit_algorithm *list,char *name)\n\n{\n  kexinit_algorithm *pkVar1;\n  kexinit_algorithm *pkVar2;\n  \n  if ((list->name != (char *)0x0) && (name != list->name)) {\n    pkVar1 = list + 0x10;\n    list = list + 1;\n    while ((list->name != (char *)0x0 && (pkVar2 = list + 1, list->name != name))) {\n      list = pkVar2;\n      if (pkVar2 == pkVar1) {\n        pkVar1 = (kexinit_algorithm *)\n                 (*(code *)PTR___assert_fail_000b8b18)\n                           (PTR_PC2_1357_27__000b8348 + -0x7d78,PTR_PC2_1357_27__000b8348 + -0x7d80,\n                            0x18bb,PTR_PC2_1357_27__000b8348 + -0x3e3c);\n        return pkVar1;\n      }\n    }\n  }\n  list->name = name;\n  return list;\n}\n\n" comment (function_definition "kexinit_algorithm * ssh2_kexinit_addalg(kexinit_algorithm *list,char *name)\n\n{\n  kexinit_algorithm *pkVar1;\n  kexinit_algorithm *pkVar2;\n  \n  if ((list->name != (char *)0x0) && (name != list->name)) {\n    pkVar1 = list + 0x10;\n    list = list + 1;\n    while ((list->name != (char *)0x0 && (pkVar2 = list + 1, list->name != name))) {\n      list = pkVar2;\n      if (pkVar2 == pkVar1) {\n        pkVar1 = (kexinit_algorithm *)\n                 (*(code *)PTR___assert_fail_000b8b18)\n                           (PTR_PC2_1357_27__000b8348 + -0x7d78,PTR_PC2_1357_27__000b8348 + -0x7d80,\n                            0x18bb,PTR_PC2_1357_27__000b8348 + -0x3e3c);\n        return pkVar1;\n      }\n    }\n  }\n  list->name = name;\n  return list;\n}" type_identifier (pointer_declarator "* ssh2_kexinit_addalg(kexinit_algorithm *list,char *name)" * (function_declarator "ssh2_kexinit_addalg(kexinit_algorithm *list,char *name)" identifier (parameter_list "(kexinit_algorithm *list,char *name)" ( (parameter_declaration "kexinit_algorithm *list" type_identifier (pointer_declarator "*list" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) )))) (compound_statement "{\n  kexinit_algorithm *pkVar1;\n  kexinit_algorithm *pkVar2;\n  \n  if ((list->name != (char *)0x0) && (name != list->name)) {\n    pkVar1 = list + 0x10;\n    list = list + 1;\n    while ((list->name != (char *)0x0 && (pkVar2 = list + 1, list->name != name))) {\n      list = pkVar2;\n      if (pkVar2 == pkVar1) {\n        pkVar1 = (kexinit_algorithm *)\n                 (*(code *)PTR___assert_fail_000b8b18)\n                           (PTR_PC2_1357_27__000b8348 + -0x7d78,PTR_PC2_1357_27__000b8348 + -0x7d80,\n                            0x18bb,PTR_PC2_1357_27__000b8348 + -0x3e3c);\n        return pkVar1;\n      }\n    }\n  }\n  list->name = name;\n  return list;\n}" { (declaration "kexinit_algorithm *pkVar1;" type_identifier (pointer_declarator "*pkVar1" * identifier) ;) (declaration "kexinit_algorithm *pkVar2;" type_identifier (pointer_declarator "*pkVar2" * identifier) ;) (if_statement "if ((list->name != (char *)0x0) && (name != list->name)) {\n    pkVar1 = list + 0x10;\n    list = list + 1;\n    while ((list->name != (char *)0x0 && (pkVar2 = list + 1, list->name != name))) {\n      list = pkVar2;\n      if (pkVar2 == pkVar1) {\n        pkVar1 = (kexinit_algorithm *)\n                 (*(code *)PTR___assert_fail_000b8b18)\n                           (PTR_PC2_1357_27__000b8348 + -0x7d78,PTR_PC2_1357_27__000b8348 + -0x7d80,\n                            0x18bb,PTR_PC2_1357_27__000b8348 + -0x3e3c);\n        return pkVar1;\n      }\n    }\n  }" if (parenthesized_expression "((list->name != (char *)0x0) && (name != list->name))" ( (binary_expression "(list->name != (char *)0x0) && (name != list->name)" (parenthesized_expression "(list->name != (char *)0x0)" ( (binary_expression "list->name != (char *)0x0" (field_expression "list->name" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(name != list->name)" ( (binary_expression "name != list->name" identifier != (field_expression "list->name" identifier -> field_identifier)) ))) )) (compound_statement "{\n    pkVar1 = list + 0x10;\n    list = list + 1;\n    while ((list->name != (char *)0x0 && (pkVar2 = list + 1, list->name != name))) {\n      list = pkVar2;\n      if (pkVar2 == pkVar1) {\n        pkVar1 = (kexinit_algorithm *)\n                 (*(code *)PTR___assert_fail_000b8b18)\n                           (PTR_PC2_1357_27__000b8348 + -0x7d78,PTR_PC2_1357_27__000b8348 + -0x7d80,\n                            0x18bb,PTR_PC2_1357_27__000b8348 + -0x3e3c);\n        return pkVar1;\n      }\n    }\n  }" { (expression_statement "pkVar1 = list + 0x10;" (assignment_expression "pkVar1 = list + 0x10" identifier = (binary_expression "list + 0x10" identifier + number_literal)) ;) (expression_statement "list = list + 1;" (assignment_expression "list = list + 1" identifier = (binary_expression "list + 1" identifier + number_literal)) ;) (while_statement "while ((list->name != (char *)0x0 && (pkVar2 = list + 1, list->name != name))) {\n      list = pkVar2;\n      if (pkVar2 == pkVar1) {\n        pkVar1 = (kexinit_algorithm *)\n                 (*(code *)PTR___assert_fail_000b8b18)\n                           (PTR_PC2_1357_27__000b8348 + -0x7d78,PTR_PC2_1357_27__000b8348 + -0x7d80,\n                            0x18bb,PTR_PC2_1357_27__000b8348 + -0x3e3c);\n        return pkVar1;\n      }\n    }" while (parenthesized_expression "((list->name != (char *)0x0 && (pkVar2 = list + 1, list->name != name)))" ( (parenthesized_expression "(list->name != (char *)0x0 && (pkVar2 = list + 1, list->name != name))" ( (binary_expression "list->name != (char *)0x0 && (pkVar2 = list + 1, list->name != name)" (binary_expression "list->name != (char *)0x0" (field_expression "list->name" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && (parenthesized_expression "(pkVar2 = list + 1, list->name != name)" ( (comma_expression "pkVar2 = list + 1, list->name != name" (assignment_expression "pkVar2 = list + 1" identifier = (binary_expression "list + 1" identifier + number_literal)) , (binary_expression "list->name != name" (field_expression "list->name" identifier -> field_identifier) != identifier)) ))) )) )) (compound_statement "{\n      list = pkVar2;\n      if (pkVar2 == pkVar1) {\n        pkVar1 = (kexinit_algorithm *)\n                 (*(code *)PTR___assert_fail_000b8b18)\n                           (PTR_PC2_1357_27__000b8348 + -0x7d78,PTR_PC2_1357_27__000b8348 + -0x7d80,\n                            0x18bb,PTR_PC2_1357_27__000b8348 + -0x3e3c);\n        return pkVar1;\n      }\n    }" { (expression_statement "list = pkVar2;" (assignment_expression "list = pkVar2" identifier = identifier) ;) (if_statement "if (pkVar2 == pkVar1) {\n        pkVar1 = (kexinit_algorithm *)\n                 (*(code *)PTR___assert_fail_000b8b18)\n                           (PTR_PC2_1357_27__000b8348 + -0x7d78,PTR_PC2_1357_27__000b8348 + -0x7d80,\n                            0x18bb,PTR_PC2_1357_27__000b8348 + -0x3e3c);\n        return pkVar1;\n      }" if (parenthesized_expression "(pkVar2 == pkVar1)" ( (binary_expression "pkVar2 == pkVar1" identifier == identifier) )) (compound_statement "{\n        pkVar1 = (kexinit_algorithm *)\n                 (*(code *)PTR___assert_fail_000b8b18)\n                           (PTR_PC2_1357_27__000b8348 + -0x7d78,PTR_PC2_1357_27__000b8348 + -0x7d80,\n                            0x18bb,PTR_PC2_1357_27__000b8348 + -0x3e3c);\n        return pkVar1;\n      }" { (expression_statement "pkVar1 = (kexinit_algorithm *)\n                 (*(code *)PTR___assert_fail_000b8b18)\n                           (PTR_PC2_1357_27__000b8348 + -0x7d78,PTR_PC2_1357_27__000b8348 + -0x7d80,\n                            0x18bb,PTR_PC2_1357_27__000b8348 + -0x3e3c);" (assignment_expression "pkVar1 = (kexinit_algorithm *)\n                 (*(code *)PTR___assert_fail_000b8b18)\n                           (PTR_PC2_1357_27__000b8348 + -0x7d78,PTR_PC2_1357_27__000b8348 + -0x7d80,\n                            0x18bb,PTR_PC2_1357_27__000b8348 + -0x3e3c)" identifier = (cast_expression "(kexinit_algorithm *)\n                 (*(code *)PTR___assert_fail_000b8b18)\n                           (PTR_PC2_1357_27__000b8348 + -0x7d78,PTR_PC2_1357_27__000b8348 + -0x7d80,\n                            0x18bb,PTR_PC2_1357_27__000b8348 + -0x3e3c)" ( (type_descriptor "kexinit_algorithm *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___assert_fail_000b8b18)\n                           (PTR_PC2_1357_27__000b8348 + -0x7d78,PTR_PC2_1357_27__000b8348 + -0x7d80,\n                            0x18bb,PTR_PC2_1357_27__000b8348 + -0x3e3c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b8b18)" ( (pointer_expression "*(code *)PTR___assert_fail_000b8b18" * (cast_expression "(code *)PTR___assert_fail_000b8b18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_PC2_1357_27__000b8348 + -0x7d78,PTR_PC2_1357_27__000b8348 + -0x7d80,\n                            0x18bb,PTR_PC2_1357_27__000b8348 + -0x3e3c)" ( (binary_expression "PTR_PC2_1357_27__000b8348 + -0x7d78" identifier + number_literal) , (binary_expression "PTR_PC2_1357_27__000b8348 + -0x7d80" identifier + number_literal) , number_literal , (binary_expression "PTR_PC2_1357_27__000b8348 + -0x3e3c" identifier + number_literal) ))))) ;) (return_statement "return pkVar1;" return identifier ;) })) })) })) (expression_statement "list->name = name;" (assignment_expression "list->name = name" (field_expression "list->name" identifier -> field_identifier) = identifier) ;) (return_statement "return list;" return identifier ;) })))
(translation_unit "void FUN_00030f2c(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((*param_1 != 0) && (param_2 != *param_1)) {\n    piVar2 = param_1 + 0x30;\n    param_1 = param_1 + 3;\n    while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }\n  }\n  *param_1 = param_2;\n  return;\n}\n\n" (function_definition "void FUN_00030f2c(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((*param_1 != 0) && (param_2 != *param_1)) {\n    piVar2 = param_1 + 0x30;\n    param_1 = param_1 + 3;\n    while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }\n  }\n  *param_1 = param_2;\n  return;\n}" primitive_type (function_declarator "FUN_00030f2c(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((*param_1 != 0) && (param_2 != *param_1)) {\n    piVar2 = param_1 + 0x30;\n    param_1 = param_1 + 3;\n    while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }\n  }\n  *param_1 = param_2;\n  return;\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 != *param_1)) {\n    piVar2 = param_1 + 0x30;\n    param_1 = param_1 + 3;\n    while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }\n  }" if (parenthesized_expression "((*param_1 != 0) && (param_2 != *param_1))" ( (binary_expression "(*param_1 != 0) && (param_2 != *param_1)" (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) && (parenthesized_expression "(param_2 != *param_1)" ( (binary_expression "param_2 != *param_1" identifier != (pointer_expression "*param_1" * identifier)) ))) )) (compound_statement "{\n    piVar2 = param_1 + 0x30;\n    param_1 = param_1 + 3;\n    while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }\n  }" { (expression_statement "piVar2 = param_1 + 0x30;" (assignment_expression "piVar2 = param_1 + 0x30" identifier = (binary_expression "param_1 + 0x30" identifier + number_literal)) ;) (expression_statement "param_1 = param_1 + 3;" (assignment_expression "param_1 = param_1 + 3" identifier = (binary_expression "param_1 + 3" identifier + number_literal)) ;) (while_statement "while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }" while (parenthesized_expression "((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2)))" ( (parenthesized_expression "(*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))" ( (binary_expression "*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2)" (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) && (parenthesized_expression "(piVar1 = param_1 + 3, *param_1 != param_2)" ( (comma_expression "piVar1 = param_1 + 3, *param_1 != param_2" (assignment_expression "piVar1 = param_1 + 3" identifier = (binary_expression "param_1 + 3" identifier + number_literal)) , (binary_expression "*param_1 != param_2" (pointer_expression "*param_1" * identifier) != identifier)) ))) )) )) (compound_statement "{\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }" { (expression_statement "param_1 = piVar1;" (assignment_expression "param_1 = piVar1" identifier = identifier) ;) (if_statement "if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }" if (parenthesized_expression "(piVar1 == piVar2)" ( (binary_expression "piVar1 == piVar2" identifier == identifier) )) (compound_statement "{\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }" { (expression_statement "(*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);" (call_expression "(*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b8b18)" ( (pointer_expression "*(code *)PTR___assert_fail_000b8b18" * (cast_expression "(code *)PTR___assert_fail_000b8b18" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c)" ( (binary_expression "PTR_DAT_000b8348 + -0x7d78" identifier + number_literal) , (binary_expression "PTR_DAT_000b8348 + -0x7d80" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_000b8348 + -0x3e3c" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) })) })) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) != LIT) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression (pointer_expression * IDENT) != IDENT)) ))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })) })) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_00030f2c(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((*param_1 != 0) && (param_2 != *param_1)) {\n    piVar2 = param_1 + 0x30;\n    param_1 = param_1 + 3;\n    while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }\n  }\n  *param_1 = param_2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00030f2c(int *param_1,int param_2)" (identifier "FUN_00030f2c") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  \n  if ((*param_1 != 0) && (param_2 != *param_1)) {\n    piVar2 = param_1 + 0x30;\n    param_1 = param_1 + 3;\n    while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }\n  }\n  *param_1 = param_2;\n  return;\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 != *param_1)) {\n    piVar2 = param_1 + 0x30;\n    param_1 = param_1 + 3;\n    while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((*param_1 != 0) && (param_2 != *param_1))" (( "(") (binary_expression "(*param_1 != 0) && (param_2 != *param_1)" (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 != *param_1)" (( "(") (binary_expression "param_2 != *param_1" (identifier "param_2") (!= "!=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) () ")")) (compound_statement "{\n    piVar2 = param_1 + 0x30;\n    param_1 = param_1 + 3;\n    while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }\n  }" ({ "{") (expression_statement "piVar2 = param_1 + 0x30;" (assignment_expression "piVar2 = param_1 + 0x30" (identifier "piVar2") (= "=") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30"))) (; ";")) (expression_statement "param_1 = param_1 + 3;" (assignment_expression "param_1 = param_1 + 3" (identifier "param_1") (= "=") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3"))) (; ";")) (while_statement "while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }" (while "while") (parenthesized_expression "((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2)))" (( "(") (parenthesized_expression "(*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))" (( "(") (binary_expression "*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2)" (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) (&& "&&") (parenthesized_expression "(piVar1 = param_1 + 3, *param_1 != param_2)" (( "(") (comma_expression "piVar1 = param_1 + 3, *param_1 != param_2" (assignment_expression "piVar1 = param_1 + 3" (identifier "piVar1") (= "=") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3"))) (, ",") (binary_expression "*param_1 != param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (identifier "param_2"))) () ")"))) () ")")) () ")")) (compound_statement "{\n      param_1 = piVar1;\n      if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }\n    }" ({ "{") (expression_statement "param_1 = piVar1;" (assignment_expression "param_1 = piVar1" (identifier "param_1") (= "=") (identifier "piVar1")) (; ";")) (if_statement "if (piVar1 == piVar2) {\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }" (if "if") (parenthesized_expression "(piVar1 == piVar2)" (( "(") (binary_expression "piVar1 == piVar2" (identifier "piVar1") (== "==") (identifier "piVar2")) () ")")) (compound_statement "{\n        (*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);\n        return;\n      }" ({ "{") (expression_statement "(*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c);" (call_expression "(*(code *)PTR___assert_fail_000b8b18)\n                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b8b18)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000b8b18" (* "*") (cast_expression "(code *)PTR___assert_fail_000b8b18" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000b8b18"))) () ")")) (argument_list "(PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,\n                   PTR_DAT_000b8348 + -0x3e3c)" (( "(") (binary_expression "PTR_DAT_000b8348 + -0x7d78" (identifier "PTR_DAT_000b8348") (+ "+") (number_literal "-0x7d78")) (, ",") (binary_expression "PTR_DAT_000b8348 + -0x7d80" (identifier "PTR_DAT_000b8348") (+ "+") (number_literal "-0x7d80")) (, ",") (number_literal "0x18bb") (, ",") (binary_expression "PTR_DAT_000b8348 + -0x3e3c" (identifier "PTR_DAT_000b8348") (+ "+") (number_literal "-0x3e3c")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

type_1 * function_1(type_1 *var_2,char *var_1)

{
  type_1 *var_4;
  type_1 *var_3;
  
  if ((var_2->var_1 != (char *)0x0) && (var_1 != var_2->var_1)) {
    var_4 = var_2 + 0x10;
    var_2 = var_2 + 1;
    while ((var_2->var_1 != (char *)0x0 && (var_3 = var_2 + 1, var_2->var_1 != var_1))) {
      var_2 = var_3;
      if (var_3 == var_4) {
        var_4 = (type_1 *)
                 (*(type_2 *)PTR___assert_fail_000b8b18)
                           (var_5 + -0x7d78,var_5 + -0x7d80,
                            0x18bb,var_5 + -0x3e3c);
        return var_4;
      }
    }
  }
  var_2->var_1 = var_1;
  return var_2;
}


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

void MASKED(int *param_1,int param_2)

{
  int *piVar1;
  int *piVar2;
  
  if ((*param_1 != 0) && (param_2 != *param_1)) {
    piVar2 = param_1 + 0x30;
    param_1 = param_1 + 3;
    while ((*param_1 != 0 && (piVar1 = param_1 + 3, *param_1 != param_2))) {
      param_1 = piVar1;
      if (piVar1 == piVar2) {
        (*(code *)PTR___assert_fail_000b8b18)
                  (PTR_DAT_000b8348 + -0x7d78,PTR_DAT_000b8348 + -0x7d80,0x18bb,
                   PTR_DAT_000b8348 + -0x3e3c);
        return;
      }
    }
  }
  *param_1 = param_2;
  return;
}

