
void add_to_sclist(int menus,char *scstring,int keycode,_func_void *func,int toggle)

{
                    /* WARNING: Subroutine does not return */
  nmalloc(0x24);
}



void add_to_sclist(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                  int param_5)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = nmalloc(0x24);
  puVar1 = PTR_DAT_0007754c;
  if (*(int *)PTR_sclist_00077ad4 == 0) {
    *(int *)PTR_sclist_00077ad4 = iVar2;
  }
  else {
    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;
  }
  *(int *)(puVar1 + -0x7c20) = iVar2;
  *(undefined4 *)(iVar2 + 0x20) = 0;
  *(undefined4 *)(iVar2 + 0xc) = param_1;
  *(undefined4 *)(iVar2 + 0x10) = param_4;
  *(int *)(iVar2 + 0x14) = param_5;
  if (param_5 != 0) {
    iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);
    *(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;
    *(int *)(iVar2 + 0x18) = iVar3 + 1;
  }
  assign_keyinfo(iVar2,param_2,param_3);
  return;
}


lui gp,0x6
addiu gp,gp,-0x6144
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x7fbc(gp)
sw s2,0x28(sp)
or s2,a0,zero
li a0,0x24
sw gp,0x10(sp)
sw s1,0x24(sp)
or s1,a3,zero
sw s0,0x20(sp)
sw a1,0x1c(sp)
sw a2,0x18(sp)
sw ra,0x2c(sp)
bal 0x000425a4
_lw s0,0x40(sp)
lw gp,0x10(sp)
lw a2,0x18(sp)
lw a0,-0x7a4c(gp)
lw v1,0x0(a0)
beq v1,zero,0x00025718
_lw a1,0x1c(sp)
lw v1,-0x7fd4(gp)
lw a0,-0x7c20(v1)
sw v0,0x20(a0)
sw v0,-0x7c20(v1)
sw zero,0x20(v0)
sw s2,0xc(v0)
sw s1,0x10(v0)
beq s0,zero,0x000256f8
_sw s0,0x14(v0)
lw a0,-0x7fd4(gp)
lw v1,-0x7c24(a0)
addiu v1,v1,0x1
sw v1,-0x7c24(a0)
sw v1,0x18(v0)
lw ra,0x2c(sp)
or a0,v0,zero
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
lw t9,-0x7a40(gp)
b 0x000255e8
_addiu sp,sp,0x30
lw v1,-0x7fd4(gp)
b 0x000256cc
_sw v0,0x0(a0)
(translation_unit "void add_to_sclist(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  int param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = nmalloc(0x24);\n  puVar1 = PTR_DAT_0007754c;\n  if (*(int *)PTR_sclist_00077ad4 == 0) {\n    *(int *)PTR_sclist_00077ad4 = iVar2;\n  }\n  else {\n    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;\n  }\n  *(int *)(puVar1 + -0x7c20) = iVar2;\n  *(undefined4 *)(iVar2 + 0x20) = 0;\n  *(undefined4 *)(iVar2 + 0xc) = param_1;\n  *(undefined4 *)(iVar2 + 0x10) = param_4;\n  *(int *)(iVar2 + 0x14) = param_5;\n  if (param_5 != 0) {\n    iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);\n    *(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;\n    *(int *)(iVar2 + 0x18) = iVar3 + 1;\n  }\n  assign_keyinfo(iVar2,param_2,param_3);\n  return;\n}\n\n" (function_definition "void add_to_sclist(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  int param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = nmalloc(0x24);\n  puVar1 = PTR_DAT_0007754c;\n  if (*(int *)PTR_sclist_00077ad4 == 0) {\n    *(int *)PTR_sclist_00077ad4 = iVar2;\n  }\n  else {\n    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;\n  }\n  *(int *)(puVar1 + -0x7c20) = iVar2;\n  *(undefined4 *)(iVar2 + 0x20) = 0;\n  *(undefined4 *)(iVar2 + 0xc) = param_1;\n  *(undefined4 *)(iVar2 + 0x10) = param_4;\n  *(int *)(iVar2 + 0x14) = param_5;\n  if (param_5 != 0) {\n    iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);\n    *(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;\n    *(int *)(iVar2 + 0x18) = iVar3 + 1;\n  }\n  assign_keyinfo(iVar2,param_2,param_3);\n  return;\n}" primitive_type (function_declarator "add_to_sclist(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  int param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  int param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = nmalloc(0x24);\n  puVar1 = PTR_DAT_0007754c;\n  if (*(int *)PTR_sclist_00077ad4 == 0) {\n    *(int *)PTR_sclist_00077ad4 = iVar2;\n  }\n  else {\n    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;\n  }\n  *(int *)(puVar1 + -0x7c20) = iVar2;\n  *(undefined4 *)(iVar2 + 0x20) = 0;\n  *(undefined4 *)(iVar2 + 0xc) = param_1;\n  *(undefined4 *)(iVar2 + 0x10) = param_4;\n  *(int *)(iVar2 + 0x14) = param_5;\n  if (param_5 != 0) {\n    iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);\n    *(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;\n    *(int *)(iVar2 + 0x18) = iVar3 + 1;\n  }\n  assign_keyinfo(iVar2,param_2,param_3);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = nmalloc(0x24);" (assignment_expression "iVar2 = nmalloc(0x24)" identifier = (call_expression "nmalloc(0x24)" identifier (argument_list "(0x24)" ( number_literal )))) ;) (expression_statement "puVar1 = PTR_DAT_0007754c;" (assignment_expression "puVar1 = PTR_DAT_0007754c" identifier = identifier) ;) (if_statement "if (*(int *)PTR_sclist_00077ad4 == 0) {\n    *(int *)PTR_sclist_00077ad4 = iVar2;\n  }\n  else {\n    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;\n  }" if (parenthesized_expression "(*(int *)PTR_sclist_00077ad4 == 0)" ( (binary_expression "*(int *)PTR_sclist_00077ad4 == 0" (pointer_expression "*(int *)PTR_sclist_00077ad4" * (cast_expression "(int *)PTR_sclist_00077ad4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n    *(int *)PTR_sclist_00077ad4 = iVar2;\n  }" { (expression_statement "*(int *)PTR_sclist_00077ad4 = iVar2;" (assignment_expression "*(int *)PTR_sclist_00077ad4 = iVar2" (pointer_expression "*(int *)PTR_sclist_00077ad4" * (cast_expression "(int *)PTR_sclist_00077ad4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) }) (else_clause "else {\n    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;\n  }" else (compound_statement "{\n    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;\n  }" { (expression_statement "*(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;" (assignment_expression "*(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2" (pointer_expression "*(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20)" * (cast_expression "(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20)" ( (binary_expression "*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20" (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x7c20)" * (cast_expression "(int *)(PTR_DAT_0007754c + -0x7c20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0007754c + -0x7c20)" ( (binary_expression "PTR_DAT_0007754c + -0x7c20" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) }))) (expression_statement "*(int *)(puVar1 + -0x7c20) = iVar2;" (assignment_expression "*(int *)(puVar1 + -0x7c20) = iVar2" (pointer_expression "*(int *)(puVar1 + -0x7c20)" * (cast_expression "(int *)(puVar1 + -0x7c20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x7c20)" ( (binary_expression "puVar1 + -0x7c20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x20)" * (cast_expression "(undefined4 *)(iVar2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0xc) = param_1;" (assignment_expression "*(undefined4 *)(iVar2 + 0xc) = param_1" (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" * (cast_expression "(undefined4 *)(iVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x10) = param_4;" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = param_4" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar2 + 0x14) = param_5;" (assignment_expression "*(int *)(iVar2 + 0x14) = param_5" (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_5 != 0) {\n    iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);\n    *(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;\n    *(int *)(iVar2 + 0x18) = iVar3 + 1;\n  }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);\n    *(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;\n    *(int *)(iVar2 + 0x18) = iVar3 + 1;\n  }" { (expression_statement "iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24)" identifier = (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x7c24)" * (cast_expression "(int *)(PTR_DAT_0007754c + -0x7c24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0007754c + -0x7c24)" ( (binary_expression "PTR_DAT_0007754c + -0x7c24" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;" (assignment_expression "*(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1" (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x7c24)" * (cast_expression "(int *)(PTR_DAT_0007754c + -0x7c24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0007754c + -0x7c24)" ( (binary_expression "PTR_DAT_0007754c + -0x7c24" identifier + number_literal) )))) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar2 + 0x18) = iVar3 + 1;" (assignment_expression "*(int *)(iVar2 + 0x18) = iVar3 + 1" (pointer_expression "*(int *)(iVar2 + 0x18)" * (cast_expression "(int *)(iVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "assign_keyinfo(iVar2,param_2,param_3);" (call_expression "assign_keyinfo(iVar2,param_2,param_3)" identifier (argument_list "(iVar2,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void add_to_sclist(int menus,char *scstring,int keycode,_func_void *func,int toggle)\n\n{\n                    /* WARNING: Subroutine does not return */\n  nmalloc(0x24);\n}\n\n" (function_definition "void add_to_sclist(int menus,char *scstring,int keycode,_func_void *func,int toggle)\n\n{\n                    /* WARNING: Subroutine does not return */\n  nmalloc(0x24);\n}" primitive_type (function_declarator "add_to_sclist(int menus,char *scstring,int keycode,_func_void *func,int toggle)" identifier (parameter_list "(int menus,char *scstring,int keycode,_func_void *func,int toggle)" ( (parameter_declaration "int menus" primitive_type identifier) , (parameter_declaration "char *scstring" primitive_type (pointer_declarator "*scstring" * identifier)) , (parameter_declaration "int keycode" primitive_type identifier) , (parameter_declaration "_func_void *func" type_identifier (pointer_declarator "*func" * identifier)) , (parameter_declaration "int toggle" primitive_type identifier) ))) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n  nmalloc(0x24);\n}" { comment (expression_statement "nmalloc(0x24);" (call_expression "nmalloc(0x24)" identifier (argument_list "(0x24)" ( number_literal ))) ;) })))
(translation_unit "void add_to_sclist(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  int param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = nmalloc(0x24);\n  puVar1 = PTR_DAT_0007754c;\n  if (*(int *)PTR_sclist_00077ad4 == 0) {\n    *(int *)PTR_sclist_00077ad4 = iVar2;\n  }\n  else {\n    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;\n  }\n  *(int *)(puVar1 + -0x7c20) = iVar2;\n  *(undefined4 *)(iVar2 + 0x20) = 0;\n  *(undefined4 *)(iVar2 + 0xc) = param_1;\n  *(undefined4 *)(iVar2 + 0x10) = param_4;\n  *(int *)(iVar2 + 0x14) = param_5;\n  if (param_5 != 0) {\n    iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);\n    *(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;\n    *(int *)(iVar2 + 0x18) = iVar3 + 1;\n  }\n  assign_keyinfo(iVar2,param_2,param_3);\n  return;\n}\n\n" (function_definition "void add_to_sclist(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  int param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = nmalloc(0x24);\n  puVar1 = PTR_DAT_0007754c;\n  if (*(int *)PTR_sclist_00077ad4 == 0) {\n    *(int *)PTR_sclist_00077ad4 = iVar2;\n  }\n  else {\n    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;\n  }\n  *(int *)(puVar1 + -0x7c20) = iVar2;\n  *(undefined4 *)(iVar2 + 0x20) = 0;\n  *(undefined4 *)(iVar2 + 0xc) = param_1;\n  *(undefined4 *)(iVar2 + 0x10) = param_4;\n  *(int *)(iVar2 + 0x14) = param_5;\n  if (param_5 != 0) {\n    iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);\n    *(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;\n    *(int *)(iVar2 + 0x18) = iVar3 + 1;\n  }\n  assign_keyinfo(iVar2,param_2,param_3);\n  return;\n}" primitive_type (function_declarator "add_to_sclist(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  int param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  int param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = nmalloc(0x24);\n  puVar1 = PTR_DAT_0007754c;\n  if (*(int *)PTR_sclist_00077ad4 == 0) {\n    *(int *)PTR_sclist_00077ad4 = iVar2;\n  }\n  else {\n    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;\n  }\n  *(int *)(puVar1 + -0x7c20) = iVar2;\n  *(undefined4 *)(iVar2 + 0x20) = 0;\n  *(undefined4 *)(iVar2 + 0xc) = param_1;\n  *(undefined4 *)(iVar2 + 0x10) = param_4;\n  *(int *)(iVar2 + 0x14) = param_5;\n  if (param_5 != 0) {\n    iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);\n    *(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;\n    *(int *)(iVar2 + 0x18) = iVar3 + 1;\n  }\n  assign_keyinfo(iVar2,param_2,param_3);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = nmalloc(0x24);" (assignment_expression "iVar2 = nmalloc(0x24)" identifier = (call_expression "nmalloc(0x24)" identifier (argument_list "(0x24)" ( number_literal )))) ;) (expression_statement "puVar1 = PTR_DAT_0007754c;" (assignment_expression "puVar1 = PTR_DAT_0007754c" identifier = identifier) ;) (if_statement "if (*(int *)PTR_sclist_00077ad4 == 0) {\n    *(int *)PTR_sclist_00077ad4 = iVar2;\n  }\n  else {\n    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;\n  }" if (parenthesized_expression "(*(int *)PTR_sclist_00077ad4 == 0)" ( (binary_expression "*(int *)PTR_sclist_00077ad4 == 0" (pointer_expression "*(int *)PTR_sclist_00077ad4" * (cast_expression "(int *)PTR_sclist_00077ad4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n    *(int *)PTR_sclist_00077ad4 = iVar2;\n  }" { (expression_statement "*(int *)PTR_sclist_00077ad4 = iVar2;" (assignment_expression "*(int *)PTR_sclist_00077ad4 = iVar2" (pointer_expression "*(int *)PTR_sclist_00077ad4" * (cast_expression "(int *)PTR_sclist_00077ad4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) }) (else_clause "else {\n    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;\n  }" else (compound_statement "{\n    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;\n  }" { (expression_statement "*(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;" (assignment_expression "*(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2" (pointer_expression "*(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20)" * (cast_expression "(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20)" ( (binary_expression "*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20" (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x7c20)" * (cast_expression "(int *)(PTR_DAT_0007754c + -0x7c20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0007754c + -0x7c20)" ( (binary_expression "PTR_DAT_0007754c + -0x7c20" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) }))) (expression_statement "*(int *)(puVar1 + -0x7c20) = iVar2;" (assignment_expression "*(int *)(puVar1 + -0x7c20) = iVar2" (pointer_expression "*(int *)(puVar1 + -0x7c20)" * (cast_expression "(int *)(puVar1 + -0x7c20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x7c20)" ( (binary_expression "puVar1 + -0x7c20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x20)" * (cast_expression "(undefined4 *)(iVar2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0xc) = param_1;" (assignment_expression "*(undefined4 *)(iVar2 + 0xc) = param_1" (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" * (cast_expression "(undefined4 *)(iVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x10) = param_4;" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = param_4" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar2 + 0x14) = param_5;" (assignment_expression "*(int *)(iVar2 + 0x14) = param_5" (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_5 != 0) {\n    iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);\n    *(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;\n    *(int *)(iVar2 + 0x18) = iVar3 + 1;\n  }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);\n    *(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;\n    *(int *)(iVar2 + 0x18) = iVar3 + 1;\n  }" { (expression_statement "iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24)" identifier = (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x7c24)" * (cast_expression "(int *)(PTR_DAT_0007754c + -0x7c24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0007754c + -0x7c24)" ( (binary_expression "PTR_DAT_0007754c + -0x7c24" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;" (assignment_expression "*(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1" (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x7c24)" * (cast_expression "(int *)(PTR_DAT_0007754c + -0x7c24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0007754c + -0x7c24)" ( (binary_expression "PTR_DAT_0007754c + -0x7c24" identifier + number_literal) )))) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar2 + 0x18) = iVar3 + 1;" (assignment_expression "*(int *)(iVar2 + 0x18) = iVar3 + 1" (pointer_expression "*(int *)(iVar2 + 0x18)" * (cast_expression "(int *)(iVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "assign_keyinfo(iVar2,param_2,param_3);" (call_expression "assign_keyinfo(iVar2,param_2,param_3)" identifier (argument_list "(iVar2,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (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) )))) = IDENT) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void add_to_sclist(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  int param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = nmalloc(0x24);\n  puVar1 = PTR_DAT_0007754c;\n  if (*(int *)PTR_sclist_00077ad4 == 0) {\n    *(int *)PTR_sclist_00077ad4 = iVar2;\n  }\n  else {\n    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;\n  }\n  *(int *)(puVar1 + -0x7c20) = iVar2;\n  *(undefined4 *)(iVar2 + 0x20) = 0;\n  *(undefined4 *)(iVar2 + 0xc) = param_1;\n  *(undefined4 *)(iVar2 + 0x10) = param_4;\n  *(int *)(iVar2 + 0x14) = param_5;\n  if (param_5 != 0) {\n    iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);\n    *(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;\n    *(int *)(iVar2 + 0x18) = iVar3 + 1;\n  }\n  assign_keyinfo(iVar2,param_2,param_3);\n  return;\n}" (primitive_type "void") (function_declarator "add_to_sclist(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  int param_5)" (identifier "add_to_sclist") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                  int param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = nmalloc(0x24);\n  puVar1 = PTR_DAT_0007754c;\n  if (*(int *)PTR_sclist_00077ad4 == 0) {\n    *(int *)PTR_sclist_00077ad4 = iVar2;\n  }\n  else {\n    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;\n  }\n  *(int *)(puVar1 + -0x7c20) = iVar2;\n  *(undefined4 *)(iVar2 + 0x20) = 0;\n  *(undefined4 *)(iVar2 + 0xc) = param_1;\n  *(undefined4 *)(iVar2 + 0x10) = param_4;\n  *(int *)(iVar2 + 0x14) = param_5;\n  if (param_5 != 0) {\n    iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);\n    *(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;\n    *(int *)(iVar2 + 0x18) = iVar3 + 1;\n  }\n  assign_keyinfo(iVar2,param_2,param_3);\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar2 = nmalloc(0x24);" (assignment_expression "iVar2 = nmalloc(0x24)" (identifier "iVar2") (= "=") (call_expression "nmalloc(0x24)" (identifier "nmalloc") (argument_list "(0x24)" (( "(") (number_literal "0x24") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_DAT_0007754c;" (assignment_expression "puVar1 = PTR_DAT_0007754c" (identifier "puVar1") (= "=") (identifier "PTR_DAT_0007754c")) (; ";")) (if_statement "if (*(int *)PTR_sclist_00077ad4 == 0) {\n    *(int *)PTR_sclist_00077ad4 = iVar2;\n  }\n  else {\n    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;\n  }" (if "if") (parenthesized_expression "(*(int *)PTR_sclist_00077ad4 == 0)" (( "(") (binary_expression "*(int *)PTR_sclist_00077ad4 == 0" (pointer_expression "*(int *)PTR_sclist_00077ad4" (* "*") (cast_expression "(int *)PTR_sclist_00077ad4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sclist_00077ad4"))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(int *)PTR_sclist_00077ad4 = iVar2;\n  }" ({ "{") (expression_statement "*(int *)PTR_sclist_00077ad4 = iVar2;" (assignment_expression "*(int *)PTR_sclist_00077ad4 = iVar2" (pointer_expression "*(int *)PTR_sclist_00077ad4" (* "*") (cast_expression "(int *)PTR_sclist_00077ad4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sclist_00077ad4"))) (= "=") (identifier "iVar2")) (; ";")) (} "}")) (else_clause "else {\n    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;\n  }" (else "else") (compound_statement "{\n    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;\n  }" ({ "{") (expression_statement "*(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;" (assignment_expression "*(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2" (pointer_expression "*(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20)" (* "*") (cast_expression "(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20)" (( "(") (binary_expression "*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20" (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x7c20)" (* "*") (cast_expression "(int *)(PTR_DAT_0007754c + -0x7c20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0007754c + -0x7c20)" (( "(") (binary_expression "PTR_DAT_0007754c + -0x7c20" (identifier "PTR_DAT_0007754c") (+ "+") (number_literal "-0x7c20")) () ")")))) (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (} "}")))) (expression_statement "*(int *)(puVar1 + -0x7c20) = iVar2;" (assignment_expression "*(int *)(puVar1 + -0x7c20) = iVar2" (pointer_expression "*(int *)(puVar1 + -0x7c20)" (* "*") (cast_expression "(int *)(puVar1 + -0x7c20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0x7c20)" (( "(") (binary_expression "puVar1 + -0x7c20" (identifier "puVar1") (+ "+") (number_literal "-0x7c20")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x20)" (( "(") (binary_expression "iVar2 + 0x20" (identifier "iVar2") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0xc) = param_1;" (assignment_expression "*(undefined4 *)(iVar2 + 0xc) = param_1" (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x10) = param_4;" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = param_4" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*(int *)(iVar2 + 0x14) = param_5;" (assignment_expression "*(int *)(iVar2 + 0x14) = param_5" (pointer_expression "*(int *)(iVar2 + 0x14)" (* "*") (cast_expression "(int *)(iVar2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "param_5")) (; ";")) (if_statement "if (param_5 != 0) {\n    iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);\n    *(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;\n    *(int *)(iVar2 + 0x18) = iVar3 + 1;\n  }" (if "if") (parenthesized_expression "(param_5 != 0)" (( "(") (binary_expression "param_5 != 0" (identifier "param_5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);\n    *(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;\n    *(int *)(iVar2 + 0x18) = iVar3 + 1;\n  }" ({ "{") (expression_statement "iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x7c24)" (* "*") (cast_expression "(int *)(PTR_DAT_0007754c + -0x7c24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0007754c + -0x7c24)" (( "(") (binary_expression "PTR_DAT_0007754c + -0x7c24" (identifier "PTR_DAT_0007754c") (+ "+") (number_literal "-0x7c24")) () ")"))))) (; ";")) (expression_statement "*(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;" (assignment_expression "*(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1" (pointer_expression "*(int *)(PTR_DAT_0007754c + -0x7c24)" (* "*") (cast_expression "(int *)(PTR_DAT_0007754c + -0x7c24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0007754c + -0x7c24)" (( "(") (binary_expression "PTR_DAT_0007754c + -0x7c24" (identifier "PTR_DAT_0007754c") (+ "+") (number_literal "-0x7c24")) () ")")))) (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(iVar2 + 0x18) = iVar3 + 1;" (assignment_expression "*(int *)(iVar2 + 0x18) = iVar3 + 1" (pointer_expression "*(int *)(iVar2 + 0x18)" (* "*") (cast_expression "(int *)(iVar2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x18)" (( "(") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "assign_keyinfo(iVar2,param_2,param_3);" (call_expression "assign_keyinfo(iVar2,param_2,param_3)" (identifier "assign_keyinfo") (argument_list "(iVar2,param_2,param_3)" (( "(") (identifier "iVar2") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (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))))) right: (identifier)))))) (expression_statement (assignment_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: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_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: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_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: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement))))

void MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                  int param_5)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = nmalloc(0x24);
  puVar1 = PTR_DAT_0007754c;
  if (*(int *)PTR_sclist_00077ad4 == 0) {
    *(int *)PTR_sclist_00077ad4 = iVar2;
  }
  else {
    *(int *)(*(int *)(PTR_DAT_0007754c + -0x7c20) + 0x20) = iVar2;
  }
  *(int *)(puVar1 + -0x7c20) = iVar2;
  *(undefined4 *)(iVar2 + 0x20) = 0;
  *(undefined4 *)(iVar2 + 0xc) = param_1;
  *(undefined4 *)(iVar2 + 0x10) = param_4;
  *(int *)(iVar2 + 0x14) = param_5;
  if (param_5 != 0) {
    iVar3 = *(int *)(PTR_DAT_0007754c + -0x7c24);
    *(int *)(PTR_DAT_0007754c + -0x7c24) = iVar3 + 1;
    *(int *)(iVar2 + 0x18) = iVar3 + 1;
  }
  assign_keyinfo(iVar2,param_2,param_3);
  return;
}

