
debug_name *
debug_add_to_namespace
          (debug_handle *info,debug_namespace **nsp,char *name,debug_object_kind kind,
          debug_object_linkage linkage)

{
  debug_name *pdVar1;
  debug_file *pdVar2;
  debug_file *pdVar3;
  
  pdVar1 = (debug_name *)xmalloc(0x28);
  pdVar1->mark = 0;
  pdVar1->kind = DEBUG_OBJECT_TYPE;
  pdVar1->linkage = DEBUG_LINKAGE_AUTOMATIC;
  *(undefined4 *)&pdVar1->field_0x1c = 0;
  pdVar1->next = (debug_name *)0x0;
  pdVar1->name = (char *)0x0;
  (pdVar1->u).type = (debug_type_s *)0x0;
  pdVar1->name = (char *)nsp;
  pdVar1->kind = (debug_object_kind)name;
  pdVar1->linkage = kind;
  pdVar2 = (debug_file *)info->units;
  if (pdVar2 == (debug_file *)0x0) {
    pdVar2 = (debug_file *)xmalloc(0x10);
    pdVar2->next = (debug_file *)0x0;
    pdVar2->filename = (char *)pdVar2;
    info->units = (debug_unit *)pdVar2;
    pdVar3 = pdVar2;
  }
  else {
    pdVar3 = ((debug_unit *)pdVar2)->files;
  }
  pdVar3->next = (debug_file *)pdVar1;
  ((debug_unit *)pdVar2)->files = (debug_file *)pdVar1;
  return pdVar1;
}



undefined1 (*) [16]
FUN_0012b2b0(undefined8 *param_1,undefined8 param_2,undefined4 param_3,undefined4 param_4)

{
  undefined1 (*pauVar1) [16];
  undefined8 *puVar2;
  undefined8 *puVar3;
  
  pauVar1 = (undefined1 (*) [16])xmalloc(0x28);
  pauVar1[1] = (undefined1  [16])0x0;
  *pauVar1 = (undefined1  [16])0x0;
  *(undefined8 *)pauVar1[2] = 0;
  *(undefined8 *)(*pauVar1 + 8) = param_2;
  *(undefined4 *)(pauVar1[1] + 4) = param_3;
  *(undefined4 *)(pauVar1[1] + 8) = param_4;
  puVar2 = (undefined8 *)*param_1;
  if (puVar2 == (undefined8 *)0x0) {
    puVar2 = (undefined8 *)xmalloc(0x10);
    *puVar2 = 0;
    puVar2[1] = puVar2;
    *param_1 = puVar2;
    puVar3 = puVar2;
  }
  else {
    puVar3 = (undefined8 *)puVar2[1];
  }
  *puVar3 = pauVar1;
  puVar2[1] = pauVar1;
  return pauVar1;
}


PUSH R14
MOV R14,RSI
PUSH R13
MOV R13D,EDX
PUSH R12
MOV R12D,ECX
PUSH RBP
MOV RBP,RDI
MOV EDI,0x28
PUSH RBX
CALL 0x00107350
PXOR XMM0,XMM0
MOVUPS xmmword ptr [RAX + 0x10],XMM0
MOV RBX,RAX
MOVUPS xmmword ptr [RAX],XMM0
MOV qword ptr [RAX + 0x20],0x0
MOV qword ptr [RAX + 0x8],R14
MOV dword ptr [RAX + 0x14],R13D
MOV dword ptr [RAX + 0x18],R12D
MOV RAX,qword ptr [RBP]
TEST RAX,RAX
JZ 0x0012b310
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RDX],RBX
MOV qword ptr [RAX + 0x8],RBX
MOV RAX,RBX
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
MOV EDI,0x10
CALL 0x00107350
MOV qword ptr [RAX],0x0
MOV RDX,RAX
MOV qword ptr [RAX + 0x8],RAX
MOV qword ptr [RBP],RAX
JMP 0x0012b2fd
(translation_unit "undefined1 (*) [16]\nFUN_0012b2b0(undefined8 *param_1,undefined8 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined1 (*pauVar1) [16];\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  pauVar1 = (undefined1 (*) [16])xmalloc(0x28);\n  pauVar1[1] = (undefined1  [16])0x0;\n  *pauVar1 = (undefined1  [16])0x0;\n  *(undefined8 *)pauVar1[2] = 0;\n  *(undefined8 *)(*pauVar1 + 8) = param_2;\n  *(undefined4 *)(pauVar1[1] + 4) = param_3;\n  *(undefined4 *)(pauVar1[1] + 8) = param_4;\n  puVar2 = (undefined8 *)*param_1;\n  if (puVar2 == (undefined8 *)0x0) {\n    puVar2 = (undefined8 *)xmalloc(0x10);\n    *puVar2 = 0;\n    puVar2[1] = puVar2;\n    *param_1 = puVar2;\n    puVar3 = puVar2;\n  }\n  else {\n    puVar3 = (undefined8 *)puVar2[1];\n  }\n  *puVar3 = pauVar1;\n  puVar2[1] = pauVar1;\n  return pauVar1;\n}\n\n" (function_definition "undefined1 (*) [16]\nFUN_0012b2b0(undefined8 *param_1,undefined8 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined1 (*pauVar1) [16];\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  pauVar1 = (undefined1 (*) [16])xmalloc(0x28);\n  pauVar1[1] = (undefined1  [16])0x0;\n  *pauVar1 = (undefined1  [16])0x0;\n  *(undefined8 *)pauVar1[2] = 0;\n  *(undefined8 *)(*pauVar1 + 8) = param_2;\n  *(undefined4 *)(pauVar1[1] + 4) = param_3;\n  *(undefined4 *)(pauVar1[1] + 8) = param_4;\n  puVar2 = (undefined8 *)*param_1;\n  if (puVar2 == (undefined8 *)0x0) {\n    puVar2 = (undefined8 *)xmalloc(0x10);\n    *puVar2 = 0;\n    puVar2[1] = puVar2;\n    *param_1 = puVar2;\n    puVar3 = puVar2;\n  }\n  else {\n    puVar3 = (undefined8 *)puVar2[1];\n  }\n  *puVar3 = pauVar1;\n  puVar2[1] = pauVar1;\n  return pauVar1;\n}" type_identifier (ERROR "(*) [16]" (array_declarator "(*) [16]" (parenthesized_declarator "(*)" ( (pointer_declarator "*" * identifier) )) [ number_literal ])) (function_declarator "FUN_0012b2b0(undefined8 *param_1,undefined8 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined8 *param_1,undefined8 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined1 (*pauVar1) [16];\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  pauVar1 = (undefined1 (*) [16])xmalloc(0x28);\n  pauVar1[1] = (undefined1  [16])0x0;\n  *pauVar1 = (undefined1  [16])0x0;\n  *(undefined8 *)pauVar1[2] = 0;\n  *(undefined8 *)(*pauVar1 + 8) = param_2;\n  *(undefined4 *)(pauVar1[1] + 4) = param_3;\n  *(undefined4 *)(pauVar1[1] + 8) = param_4;\n  puVar2 = (undefined8 *)*param_1;\n  if (puVar2 == (undefined8 *)0x0) {\n    puVar2 = (undefined8 *)xmalloc(0x10);\n    *puVar2 = 0;\n    puVar2[1] = puVar2;\n    *param_1 = puVar2;\n    puVar3 = puVar2;\n  }\n  else {\n    puVar3 = (undefined8 *)puVar2[1];\n  }\n  *puVar3 = pauVar1;\n  puVar2[1] = pauVar1;\n  return pauVar1;\n}" { (expression_statement "undefined1 (*pauVar1) [16];" (subscript_expression "undefined1 (*pauVar1) [16]" (call_expression "undefined1 (*pauVar1)" identifier (argument_list "(*pauVar1)" ( (pointer_expression "*pauVar1" * identifier) ))) [ number_literal ]) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "pauVar1 = (undefined1 (*) [16])xmalloc(0x28);" (assignment_expression "pauVar1 = (undefined1 (*) [16])xmalloc(0x28)" identifier = (cast_expression "(undefined1 (*) [16])xmalloc(0x28)" ( (type_descriptor "undefined1 (*) [16]" type_identifier (abstract_array_declarator "(*) [16]" (abstract_parenthesized_declarator "(*)" ( (abstract_pointer_declarator "*" *) )) [ number_literal ])) ) (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "pauVar1[1] = (undefined1  [16])0x0;" (assignment_expression "pauVar1[1] = (undefined1  [16])0x0" (subscript_expression "pauVar1[1]" identifier [ number_literal ]) = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;) (expression_statement "*pauVar1 = (undefined1  [16])0x0;" (assignment_expression "*pauVar1 = (undefined1  [16])0x0" (pointer_expression "*pauVar1" * identifier) = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;) (expression_statement "*(undefined8 *)pauVar1[2] = 0;" (assignment_expression "*(undefined8 *)pauVar1[2] = 0" (pointer_expression "*(undefined8 *)pauVar1[2]" * (cast_expression "(undefined8 *)pauVar1[2]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "pauVar1[2]" identifier [ number_literal ]))) = number_literal) ;) (expression_statement "*(undefined8 *)(*pauVar1 + 8) = param_2;" (assignment_expression "*(undefined8 *)(*pauVar1 + 8) = param_2" (pointer_expression "*(undefined8 *)(*pauVar1 + 8)" * (cast_expression "(undefined8 *)(*pauVar1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*pauVar1 + 8)" ( (binary_expression "*pauVar1 + 8" (pointer_expression "*pauVar1" * identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pauVar1[1] + 4) = param_3;" (assignment_expression "*(undefined4 *)(pauVar1[1] + 4) = param_3" (pointer_expression "*(undefined4 *)(pauVar1[1] + 4)" * (cast_expression "(undefined4 *)(pauVar1[1] + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pauVar1[1] + 4)" ( (binary_expression "pauVar1[1] + 4" (subscript_expression "pauVar1[1]" identifier [ number_literal ]) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pauVar1[1] + 8) = param_4;" (assignment_expression "*(undefined4 *)(pauVar1[1] + 8) = param_4" (pointer_expression "*(undefined4 *)(pauVar1[1] + 8)" * (cast_expression "(undefined4 *)(pauVar1[1] + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pauVar1[1] + 8)" ( (binary_expression "pauVar1[1] + 8" (subscript_expression "pauVar1[1]" identifier [ number_literal ]) + number_literal) )))) = identifier) ;) (expression_statement "puVar2 = (undefined8 *)*param_1;" (assignment_expression "puVar2 = (undefined8 *)*param_1" identifier = (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (puVar2 == (undefined8 *)0x0) {\n    puVar2 = (undefined8 *)xmalloc(0x10);\n    *puVar2 = 0;\n    puVar2[1] = puVar2;\n    *param_1 = puVar2;\n    puVar3 = puVar2;\n  }\n  else {\n    puVar3 = (undefined8 *)puVar2[1];\n  }" if (parenthesized_expression "(puVar2 == (undefined8 *)0x0)" ( (binary_expression "puVar2 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar2 = (undefined8 *)xmalloc(0x10);\n    *puVar2 = 0;\n    puVar2[1] = puVar2;\n    *param_1 = puVar2;\n    puVar3 = puVar2;\n  }" { (expression_statement "puVar2 = (undefined8 *)xmalloc(0x10);" (assignment_expression "puVar2 = (undefined8 *)xmalloc(0x10)" identifier = (cast_expression "(undefined8 *)xmalloc(0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[1] = puVar2;" (assignment_expression "puVar2[1] = puVar2" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = puVar2;" (assignment_expression "*param_1 = puVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "puVar3 = puVar2;" (assignment_expression "puVar3 = puVar2" identifier = identifier) ;) }) (else_clause "else {\n    puVar3 = (undefined8 *)puVar2[1];\n  }" else (compound_statement "{\n    puVar3 = (undefined8 *)puVar2[1];\n  }" { (expression_statement "puVar3 = (undefined8 *)puVar2[1];" (assignment_expression "puVar3 = (undefined8 *)puVar2[1]" identifier = (cast_expression "(undefined8 *)puVar2[1]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[1]" identifier [ number_literal ]))) ;) }))) (expression_statement "*puVar3 = pauVar1;" (assignment_expression "*puVar3 = pauVar1" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "puVar2[1] = pauVar1;" (assignment_expression "puVar2[1] = pauVar1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return pauVar1;" return identifier ;) })))
(translation_unit "debug_name *\ndebug_add_to_namespace\n          (debug_handle *info,debug_namespace **nsp,char *name,debug_object_kind kind,\n          debug_object_linkage linkage)\n\n{\n  debug_name *pdVar1;\n  debug_file *pdVar2;\n  debug_file *pdVar3;\n  \n  pdVar1 = (debug_name *)xmalloc(0x28);\n  pdVar1->mark = 0;\n  pdVar1->kind = DEBUG_OBJECT_TYPE;\n  pdVar1->linkage = DEBUG_LINKAGE_AUTOMATIC;\n  *(undefined4 *)&pdVar1->field_0x1c = 0;\n  pdVar1->next = (debug_name *)0x0;\n  pdVar1->name = (char *)0x0;\n  (pdVar1->u).type = (debug_type_s *)0x0;\n  pdVar1->name = (char *)nsp;\n  pdVar1->kind = (debug_object_kind)name;\n  pdVar1->linkage = kind;\n  pdVar2 = (debug_file *)info->units;\n  if (pdVar2 == (debug_file *)0x0) {\n    pdVar2 = (debug_file *)xmalloc(0x10);\n    pdVar2->next = (debug_file *)0x0;\n    pdVar2->filename = (char *)pdVar2;\n    info->units = (debug_unit *)pdVar2;\n    pdVar3 = pdVar2;\n  }\n  else {\n    pdVar3 = ((debug_unit *)pdVar2)->files;\n  }\n  pdVar3->next = (debug_file *)pdVar1;\n  ((debug_unit *)pdVar2)->files = (debug_file *)pdVar1;\n  return pdVar1;\n}\n\n" (function_definition "debug_name *\ndebug_add_to_namespace\n          (debug_handle *info,debug_namespace **nsp,char *name,debug_object_kind kind,\n          debug_object_linkage linkage)\n\n{\n  debug_name *pdVar1;\n  debug_file *pdVar2;\n  debug_file *pdVar3;\n  \n  pdVar1 = (debug_name *)xmalloc(0x28);\n  pdVar1->mark = 0;\n  pdVar1->kind = DEBUG_OBJECT_TYPE;\n  pdVar1->linkage = DEBUG_LINKAGE_AUTOMATIC;\n  *(undefined4 *)&pdVar1->field_0x1c = 0;\n  pdVar1->next = (debug_name *)0x0;\n  pdVar1->name = (char *)0x0;\n  (pdVar1->u).type = (debug_type_s *)0x0;\n  pdVar1->name = (char *)nsp;\n  pdVar1->kind = (debug_object_kind)name;\n  pdVar1->linkage = kind;\n  pdVar2 = (debug_file *)info->units;\n  if (pdVar2 == (debug_file *)0x0) {\n    pdVar2 = (debug_file *)xmalloc(0x10);\n    pdVar2->next = (debug_file *)0x0;\n    pdVar2->filename = (char *)pdVar2;\n    info->units = (debug_unit *)pdVar2;\n    pdVar3 = pdVar2;\n  }\n  else {\n    pdVar3 = ((debug_unit *)pdVar2)->files;\n  }\n  pdVar3->next = (debug_file *)pdVar1;\n  ((debug_unit *)pdVar2)->files = (debug_file *)pdVar1;\n  return pdVar1;\n}" type_identifier (pointer_declarator "*\ndebug_add_to_namespace\n          (debug_handle *info,debug_namespace **nsp,char *name,debug_object_kind kind,\n          debug_object_linkage linkage)" * (function_declarator "debug_add_to_namespace\n          (debug_handle *info,debug_namespace **nsp,char *name,debug_object_kind kind,\n          debug_object_linkage linkage)" identifier (parameter_list "(debug_handle *info,debug_namespace **nsp,char *name,debug_object_kind kind,\n          debug_object_linkage linkage)" ( (parameter_declaration "debug_handle *info" type_identifier (pointer_declarator "*info" * identifier)) , (parameter_declaration "debug_namespace **nsp" type_identifier (pointer_declarator "**nsp" * (pointer_declarator "*nsp" * identifier))) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "debug_object_kind kind" type_identifier identifier) , (parameter_declaration "debug_object_linkage linkage" type_identifier identifier) )))) (compound_statement "{\n  debug_name *pdVar1;\n  debug_file *pdVar2;\n  debug_file *pdVar3;\n  \n  pdVar1 = (debug_name *)xmalloc(0x28);\n  pdVar1->mark = 0;\n  pdVar1->kind = DEBUG_OBJECT_TYPE;\n  pdVar1->linkage = DEBUG_LINKAGE_AUTOMATIC;\n  *(undefined4 *)&pdVar1->field_0x1c = 0;\n  pdVar1->next = (debug_name *)0x0;\n  pdVar1->name = (char *)0x0;\n  (pdVar1->u).type = (debug_type_s *)0x0;\n  pdVar1->name = (char *)nsp;\n  pdVar1->kind = (debug_object_kind)name;\n  pdVar1->linkage = kind;\n  pdVar2 = (debug_file *)info->units;\n  if (pdVar2 == (debug_file *)0x0) {\n    pdVar2 = (debug_file *)xmalloc(0x10);\n    pdVar2->next = (debug_file *)0x0;\n    pdVar2->filename = (char *)pdVar2;\n    info->units = (debug_unit *)pdVar2;\n    pdVar3 = pdVar2;\n  }\n  else {\n    pdVar3 = ((debug_unit *)pdVar2)->files;\n  }\n  pdVar3->next = (debug_file *)pdVar1;\n  ((debug_unit *)pdVar2)->files = (debug_file *)pdVar1;\n  return pdVar1;\n}" { (declaration "debug_name *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (declaration "debug_file *pdVar2;" type_identifier (pointer_declarator "*pdVar2" * identifier) ;) (declaration "debug_file *pdVar3;" type_identifier (pointer_declarator "*pdVar3" * identifier) ;) (expression_statement "pdVar1 = (debug_name *)xmalloc(0x28);" (assignment_expression "pdVar1 = (debug_name *)xmalloc(0x28)" identifier = (cast_expression "(debug_name *)xmalloc(0x28)" ( (type_descriptor "debug_name *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "pdVar1->mark = 0;" (assignment_expression "pdVar1->mark = 0" (field_expression "pdVar1->mark" identifier -> field_identifier) = number_literal) ;) (expression_statement "pdVar1->kind = DEBUG_OBJECT_TYPE;" (assignment_expression "pdVar1->kind = DEBUG_OBJECT_TYPE" (field_expression "pdVar1->kind" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar1->linkage = DEBUG_LINKAGE_AUTOMATIC;" (assignment_expression "pdVar1->linkage = DEBUG_LINKAGE_AUTOMATIC" (field_expression "pdVar1->linkage" identifier -> field_identifier) = identifier) ;) (expression_statement "*(undefined4 *)&pdVar1->field_0x1c = 0;" (assignment_expression "*(undefined4 *)&pdVar1->field_0x1c = 0" (pointer_expression "*(undefined4 *)&pdVar1->field_0x1c" * (cast_expression "(undefined4 *)&pdVar1->field_0x1c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pdVar1->field_0x1c" & (field_expression "pdVar1->field_0x1c" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "pdVar1->next = (debug_name *)0x0;" (assignment_expression "pdVar1->next = (debug_name *)0x0" (field_expression "pdVar1->next" identifier -> field_identifier) = (cast_expression "(debug_name *)0x0" ( (type_descriptor "debug_name *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pdVar1->name = (char *)0x0;" (assignment_expression "pdVar1->name = (char *)0x0" (field_expression "pdVar1->name" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(pdVar1->u).type = (debug_type_s *)0x0;" (assignment_expression "(pdVar1->u).type = (debug_type_s *)0x0" (field_expression "(pdVar1->u).type" (parenthesized_expression "(pdVar1->u)" ( (field_expression "pdVar1->u" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(debug_type_s *)0x0" ( (type_descriptor "debug_type_s *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pdVar1->name = (char *)nsp;" (assignment_expression "pdVar1->name = (char *)nsp" (field_expression "pdVar1->name" identifier -> field_identifier) = (cast_expression "(char *)nsp" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pdVar1->kind = (debug_object_kind)name;" (assignment_expression "pdVar1->kind = (debug_object_kind)name" (field_expression "pdVar1->kind" identifier -> field_identifier) = (cast_expression "(debug_object_kind)name" ( (type_descriptor "debug_object_kind" type_identifier) ) identifier)) ;) (expression_statement "pdVar1->linkage = kind;" (assignment_expression "pdVar1->linkage = kind" (field_expression "pdVar1->linkage" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar2 = (debug_file *)info->units;" (assignment_expression "pdVar2 = (debug_file *)info->units" identifier = (cast_expression "(debug_file *)info->units" ( (type_descriptor "debug_file *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "info->units" identifier -> field_identifier))) ;) (if_statement "if (pdVar2 == (debug_file *)0x0) {\n    pdVar2 = (debug_file *)xmalloc(0x10);\n    pdVar2->next = (debug_file *)0x0;\n    pdVar2->filename = (char *)pdVar2;\n    info->units = (debug_unit *)pdVar2;\n    pdVar3 = pdVar2;\n  }\n  else {\n    pdVar3 = ((debug_unit *)pdVar2)->files;\n  }" if (parenthesized_expression "(pdVar2 == (debug_file *)0x0)" ( (binary_expression "pdVar2 == (debug_file *)0x0" identifier == (cast_expression "(debug_file *)0x0" ( (type_descriptor "debug_file *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pdVar2 = (debug_file *)xmalloc(0x10);\n    pdVar2->next = (debug_file *)0x0;\n    pdVar2->filename = (char *)pdVar2;\n    info->units = (debug_unit *)pdVar2;\n    pdVar3 = pdVar2;\n  }" { (expression_statement "pdVar2 = (debug_file *)xmalloc(0x10);" (assignment_expression "pdVar2 = (debug_file *)xmalloc(0x10)" identifier = (cast_expression "(debug_file *)xmalloc(0x10)" ( (type_descriptor "debug_file *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "pdVar2->next = (debug_file *)0x0;" (assignment_expression "pdVar2->next = (debug_file *)0x0" (field_expression "pdVar2->next" identifier -> field_identifier) = (cast_expression "(debug_file *)0x0" ( (type_descriptor "debug_file *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pdVar2->filename = (char *)pdVar2;" (assignment_expression "pdVar2->filename = (char *)pdVar2" (field_expression "pdVar2->filename" identifier -> field_identifier) = (cast_expression "(char *)pdVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "info->units = (debug_unit *)pdVar2;" (assignment_expression "info->units = (debug_unit *)pdVar2" (field_expression "info->units" identifier -> field_identifier) = (cast_expression "(debug_unit *)pdVar2" ( (type_descriptor "debug_unit *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pdVar3 = pdVar2;" (assignment_expression "pdVar3 = pdVar2" identifier = identifier) ;) }) (else_clause "else {\n    pdVar3 = ((debug_unit *)pdVar2)->files;\n  }" else (compound_statement "{\n    pdVar3 = ((debug_unit *)pdVar2)->files;\n  }" { (expression_statement "pdVar3 = ((debug_unit *)pdVar2)->files;" (assignment_expression "pdVar3 = ((debug_unit *)pdVar2)->files" identifier = (field_expression "((debug_unit *)pdVar2)->files" (parenthesized_expression "((debug_unit *)pdVar2)" ( (cast_expression "(debug_unit *)pdVar2" ( (type_descriptor "debug_unit *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier)) ;) }))) (expression_statement "pdVar3->next = (debug_file *)pdVar1;" (assignment_expression "pdVar3->next = (debug_file *)pdVar1" (field_expression "pdVar3->next" identifier -> field_identifier) = (cast_expression "(debug_file *)pdVar1" ( (type_descriptor "debug_file *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "((debug_unit *)pdVar2)->files = (debug_file *)pdVar1;" (assignment_expression "((debug_unit *)pdVar2)->files = (debug_file *)pdVar1" (field_expression "((debug_unit *)pdVar2)->files" (parenthesized_expression "((debug_unit *)pdVar2)" ( (cast_expression "(debug_unit *)pdVar2" ( (type_descriptor "debug_unit *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) = (cast_expression "(debug_file *)pdVar1" ( (type_descriptor "debug_file *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (return_statement "return pdVar1;" return identifier ;) })))
(translation_unit "undefined1 (*) [16]\nFUN_0012b2b0(undefined8 *param_1,undefined8 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined1 (*pauVar1) [16];\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  pauVar1 = (undefined1 (*) [16])xmalloc(0x28);\n  pauVar1[1] = (undefined1  [16])0x0;\n  *pauVar1 = (undefined1  [16])0x0;\n  *(undefined8 *)pauVar1[2] = 0;\n  *(undefined8 *)(*pauVar1 + 8) = param_2;\n  *(undefined4 *)(pauVar1[1] + 4) = param_3;\n  *(undefined4 *)(pauVar1[1] + 8) = param_4;\n  puVar2 = (undefined8 *)*param_1;\n  if (puVar2 == (undefined8 *)0x0) {\n    puVar2 = (undefined8 *)xmalloc(0x10);\n    *puVar2 = 0;\n    puVar2[1] = puVar2;\n    *param_1 = puVar2;\n    puVar3 = puVar2;\n  }\n  else {\n    puVar3 = (undefined8 *)puVar2[1];\n  }\n  *puVar3 = pauVar1;\n  puVar2[1] = pauVar1;\n  return pauVar1;\n}\n\n" (function_definition "undefined1 (*) [16]\nFUN_0012b2b0(undefined8 *param_1,undefined8 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined1 (*pauVar1) [16];\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  pauVar1 = (undefined1 (*) [16])xmalloc(0x28);\n  pauVar1[1] = (undefined1  [16])0x0;\n  *pauVar1 = (undefined1  [16])0x0;\n  *(undefined8 *)pauVar1[2] = 0;\n  *(undefined8 *)(*pauVar1 + 8) = param_2;\n  *(undefined4 *)(pauVar1[1] + 4) = param_3;\n  *(undefined4 *)(pauVar1[1] + 8) = param_4;\n  puVar2 = (undefined8 *)*param_1;\n  if (puVar2 == (undefined8 *)0x0) {\n    puVar2 = (undefined8 *)xmalloc(0x10);\n    *puVar2 = 0;\n    puVar2[1] = puVar2;\n    *param_1 = puVar2;\n    puVar3 = puVar2;\n  }\n  else {\n    puVar3 = (undefined8 *)puVar2[1];\n  }\n  *puVar3 = pauVar1;\n  puVar2[1] = pauVar1;\n  return pauVar1;\n}" type_identifier (ERROR "(*) [16]" (array_declarator "(*) [16]" (parenthesized_declarator "(*)" ( (pointer_declarator "*" * identifier) )) [ number_literal ])) (function_declarator "FUN_0012b2b0(undefined8 *param_1,undefined8 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined8 *param_1,undefined8 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined1 (*pauVar1) [16];\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  pauVar1 = (undefined1 (*) [16])xmalloc(0x28);\n  pauVar1[1] = (undefined1  [16])0x0;\n  *pauVar1 = (undefined1  [16])0x0;\n  *(undefined8 *)pauVar1[2] = 0;\n  *(undefined8 *)(*pauVar1 + 8) = param_2;\n  *(undefined4 *)(pauVar1[1] + 4) = param_3;\n  *(undefined4 *)(pauVar1[1] + 8) = param_4;\n  puVar2 = (undefined8 *)*param_1;\n  if (puVar2 == (undefined8 *)0x0) {\n    puVar2 = (undefined8 *)xmalloc(0x10);\n    *puVar2 = 0;\n    puVar2[1] = puVar2;\n    *param_1 = puVar2;\n    puVar3 = puVar2;\n  }\n  else {\n    puVar3 = (undefined8 *)puVar2[1];\n  }\n  *puVar3 = pauVar1;\n  puVar2[1] = pauVar1;\n  return pauVar1;\n}" { (expression_statement "undefined1 (*pauVar1) [16];" (subscript_expression "undefined1 (*pauVar1) [16]" (call_expression "undefined1 (*pauVar1)" identifier (argument_list "(*pauVar1)" ( (pointer_expression "*pauVar1" * identifier) ))) [ number_literal ]) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "pauVar1 = (undefined1 (*) [16])xmalloc(0x28);" (assignment_expression "pauVar1 = (undefined1 (*) [16])xmalloc(0x28)" identifier = (cast_expression "(undefined1 (*) [16])xmalloc(0x28)" ( (type_descriptor "undefined1 (*) [16]" type_identifier (abstract_array_declarator "(*) [16]" (abstract_parenthesized_declarator "(*)" ( (abstract_pointer_declarator "*" *) )) [ number_literal ])) ) (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "pauVar1[1] = (undefined1  [16])0x0;" (assignment_expression "pauVar1[1] = (undefined1  [16])0x0" (subscript_expression "pauVar1[1]" identifier [ number_literal ]) = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;) (expression_statement "*pauVar1 = (undefined1  [16])0x0;" (assignment_expression "*pauVar1 = (undefined1  [16])0x0" (pointer_expression "*pauVar1" * identifier) = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;) (expression_statement "*(undefined8 *)pauVar1[2] = 0;" (assignment_expression "*(undefined8 *)pauVar1[2] = 0" (pointer_expression "*(undefined8 *)pauVar1[2]" * (cast_expression "(undefined8 *)pauVar1[2]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "pauVar1[2]" identifier [ number_literal ]))) = number_literal) ;) (expression_statement "*(undefined8 *)(*pauVar1 + 8) = param_2;" (assignment_expression "*(undefined8 *)(*pauVar1 + 8) = param_2" (pointer_expression "*(undefined8 *)(*pauVar1 + 8)" * (cast_expression "(undefined8 *)(*pauVar1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*pauVar1 + 8)" ( (binary_expression "*pauVar1 + 8" (pointer_expression "*pauVar1" * identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pauVar1[1] + 4) = param_3;" (assignment_expression "*(undefined4 *)(pauVar1[1] + 4) = param_3" (pointer_expression "*(undefined4 *)(pauVar1[1] + 4)" * (cast_expression "(undefined4 *)(pauVar1[1] + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pauVar1[1] + 4)" ( (binary_expression "pauVar1[1] + 4" (subscript_expression "pauVar1[1]" identifier [ number_literal ]) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(pauVar1[1] + 8) = param_4;" (assignment_expression "*(undefined4 *)(pauVar1[1] + 8) = param_4" (pointer_expression "*(undefined4 *)(pauVar1[1] + 8)" * (cast_expression "(undefined4 *)(pauVar1[1] + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pauVar1[1] + 8)" ( (binary_expression "pauVar1[1] + 8" (subscript_expression "pauVar1[1]" identifier [ number_literal ]) + number_literal) )))) = identifier) ;) (expression_statement "puVar2 = (undefined8 *)*param_1;" (assignment_expression "puVar2 = (undefined8 *)*param_1" identifier = (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (puVar2 == (undefined8 *)0x0) {\n    puVar2 = (undefined8 *)xmalloc(0x10);\n    *puVar2 = 0;\n    puVar2[1] = puVar2;\n    *param_1 = puVar2;\n    puVar3 = puVar2;\n  }\n  else {\n    puVar3 = (undefined8 *)puVar2[1];\n  }" if (parenthesized_expression "(puVar2 == (undefined8 *)0x0)" ( (binary_expression "puVar2 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar2 = (undefined8 *)xmalloc(0x10);\n    *puVar2 = 0;\n    puVar2[1] = puVar2;\n    *param_1 = puVar2;\n    puVar3 = puVar2;\n  }" { (expression_statement "puVar2 = (undefined8 *)xmalloc(0x10);" (assignment_expression "puVar2 = (undefined8 *)xmalloc(0x10)" identifier = (cast_expression "(undefined8 *)xmalloc(0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[1] = puVar2;" (assignment_expression "puVar2[1] = puVar2" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = puVar2;" (assignment_expression "*param_1 = puVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "puVar3 = puVar2;" (assignment_expression "puVar3 = puVar2" identifier = identifier) ;) }) (else_clause "else {\n    puVar3 = (undefined8 *)puVar2[1];\n  }" else (compound_statement "{\n    puVar3 = (undefined8 *)puVar2[1];\n  }" { (expression_statement "puVar3 = (undefined8 *)puVar2[1];" (assignment_expression "puVar3 = (undefined8 *)puVar2[1]" identifier = (cast_expression "(undefined8 *)puVar2[1]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[1]" identifier [ number_literal ]))) ;) }))) (expression_statement "*puVar3 = pauVar1;" (assignment_expression "*puVar3 = pauVar1" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "puVar2[1] = pauVar1;" (assignment_expression "puVar2[1] = pauVar1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return pauVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR (array_declarator (parenthesized_declarator ( (pointer_declarator * IDENT) )) [ LIT ])) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (expression_statement (subscript_expression (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) [ LIT ]) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_array_declarator (abstract_parenthesized_declarator ( (abstract_pointer_declarator *) )) [ LIT ])) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE (abstract_array_declarator [ LIT ])) ) LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE (abstract_array_declarator [ LIT ])) ) LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) = IDENT) ;) (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)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined1 (*) [16]\nFUN_0012b2b0(undefined8 *param_1,undefined8 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined1 (*pauVar1) [16];\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  pauVar1 = (undefined1 (*) [16])xmalloc(0x28);\n  pauVar1[1] = (undefined1  [16])0x0;\n  *pauVar1 = (undefined1  [16])0x0;\n  *(undefined8 *)pauVar1[2] = 0;\n  *(undefined8 *)(*pauVar1 + 8) = param_2;\n  *(undefined4 *)(pauVar1[1] + 4) = param_3;\n  *(undefined4 *)(pauVar1[1] + 8) = param_4;\n  puVar2 = (undefined8 *)*param_1;\n  if (puVar2 == (undefined8 *)0x0) {\n    puVar2 = (undefined8 *)xmalloc(0x10);\n    *puVar2 = 0;\n    puVar2[1] = puVar2;\n    *param_1 = puVar2;\n    puVar3 = puVar2;\n  }\n  else {\n    puVar3 = (undefined8 *)puVar2[1];\n  }\n  *puVar3 = pauVar1;\n  puVar2[1] = pauVar1;\n  return pauVar1;\n}" (type_identifier "undefined1") (ERROR "(*) [16]" (array_declarator "(*) [16]" (parenthesized_declarator "(*)" (( "(") (pointer_declarator "*" (* "*") (identifier "")) () ")")) ([ "[") (number_literal "16") (] "]"))) (function_declarator "FUN_0012b2b0(undefined8 *param_1,undefined8 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_0012b2b0") (parameter_list "(undefined8 *param_1,undefined8 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (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")) () ")"))) (compound_statement "{\n  undefined1 (*pauVar1) [16];\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  pauVar1 = (undefined1 (*) [16])xmalloc(0x28);\n  pauVar1[1] = (undefined1  [16])0x0;\n  *pauVar1 = (undefined1  [16])0x0;\n  *(undefined8 *)pauVar1[2] = 0;\n  *(undefined8 *)(*pauVar1 + 8) = param_2;\n  *(undefined4 *)(pauVar1[1] + 4) = param_3;\n  *(undefined4 *)(pauVar1[1] + 8) = param_4;\n  puVar2 = (undefined8 *)*param_1;\n  if (puVar2 == (undefined8 *)0x0) {\n    puVar2 = (undefined8 *)xmalloc(0x10);\n    *puVar2 = 0;\n    puVar2[1] = puVar2;\n    *param_1 = puVar2;\n    puVar3 = puVar2;\n  }\n  else {\n    puVar3 = (undefined8 *)puVar2[1];\n  }\n  *puVar3 = pauVar1;\n  puVar2[1] = pauVar1;\n  return pauVar1;\n}" ({ "{") (expression_statement "undefined1 (*pauVar1) [16];" (subscript_expression "undefined1 (*pauVar1) [16]" (call_expression "undefined1 (*pauVar1)" (identifier "undefined1") (argument_list "(*pauVar1)" (( "(") (pointer_expression "*pauVar1" (* "*") (identifier "pauVar1")) () ")"))) ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined8 *puVar3;" (type_identifier "undefined8") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "pauVar1 = (undefined1 (*) [16])xmalloc(0x28);" (assignment_expression "pauVar1 = (undefined1 (*) [16])xmalloc(0x28)" (identifier "pauVar1") (= "=") (cast_expression "(undefined1 (*) [16])xmalloc(0x28)" (( "(") (type_descriptor "undefined1 (*) [16]" (type_identifier "undefined1") (abstract_array_declarator "(*) [16]" (abstract_parenthesized_declarator "(*)" (( "(") (abstract_pointer_declarator "*" (* "*")) () ")")) ([ "[") (number_literal "16") (] "]"))) () ")") (call_expression "xmalloc(0x28)" (identifier "xmalloc") (argument_list "(0x28)" (( "(") (number_literal "0x28") () ")"))))) (; ";")) (expression_statement "pauVar1[1] = (undefined1  [16])0x0;" (assignment_expression "pauVar1[1] = (undefined1  [16])0x0" (subscript_expression "pauVar1[1]" (identifier "pauVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(undefined1  [16])0x0" (( "(") (type_descriptor "undefined1  [16]" (type_identifier "undefined1") (abstract_array_declarator "[16]" ([ "[") (number_literal "16") (] "]"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "*pauVar1 = (undefined1  [16])0x0;" (assignment_expression "*pauVar1 = (undefined1  [16])0x0" (pointer_expression "*pauVar1" (* "*") (identifier "pauVar1")) (= "=") (cast_expression "(undefined1  [16])0x0" (( "(") (type_descriptor "undefined1  [16]" (type_identifier "undefined1") (abstract_array_declarator "[16]" ([ "[") (number_literal "16") (] "]"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "*(undefined8 *)pauVar1[2] = 0;" (assignment_expression "*(undefined8 *)pauVar1[2] = 0" (pointer_expression "*(undefined8 *)pauVar1[2]" (* "*") (cast_expression "(undefined8 *)pauVar1[2]" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "pauVar1[2]" (identifier "pauVar1") ([ "[") (number_literal "2") (] "]")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined8 *)(*pauVar1 + 8) = param_2;" (assignment_expression "*(undefined8 *)(*pauVar1 + 8) = param_2" (pointer_expression "*(undefined8 *)(*pauVar1 + 8)" (* "*") (cast_expression "(undefined8 *)(*pauVar1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*pauVar1 + 8)" (( "(") (binary_expression "*pauVar1 + 8" (pointer_expression "*pauVar1" (* "*") (identifier "pauVar1")) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(pauVar1[1] + 4) = param_3;" (assignment_expression "*(undefined4 *)(pauVar1[1] + 4) = param_3" (pointer_expression "*(undefined4 *)(pauVar1[1] + 4)" (* "*") (cast_expression "(undefined4 *)(pauVar1[1] + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pauVar1[1] + 4)" (( "(") (binary_expression "pauVar1[1] + 4" (subscript_expression "pauVar1[1]" (identifier "pauVar1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined4 *)(pauVar1[1] + 8) = param_4;" (assignment_expression "*(undefined4 *)(pauVar1[1] + 8) = param_4" (pointer_expression "*(undefined4 *)(pauVar1[1] + 8)" (* "*") (cast_expression "(undefined4 *)(pauVar1[1] + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pauVar1[1] + 8)" (( "(") (binary_expression "pauVar1[1] + 8" (subscript_expression "pauVar1[1]" (identifier "pauVar1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "puVar2 = (undefined8 *)*param_1;" (assignment_expression "puVar2 = (undefined8 *)*param_1" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)*param_1" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (puVar2 == (undefined8 *)0x0) {\n    puVar2 = (undefined8 *)xmalloc(0x10);\n    *puVar2 = 0;\n    puVar2[1] = puVar2;\n    *param_1 = puVar2;\n    puVar3 = puVar2;\n  }\n  else {\n    puVar3 = (undefined8 *)puVar2[1];\n  }" (if "if") (parenthesized_expression "(puVar2 == (undefined8 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined8 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar2 = (undefined8 *)xmalloc(0x10);\n    *puVar2 = 0;\n    puVar2[1] = puVar2;\n    *param_1 = puVar2;\n    puVar3 = puVar2;\n  }" ({ "{") (expression_statement "puVar2 = (undefined8 *)xmalloc(0x10);" (assignment_expression "puVar2 = (undefined8 *)xmalloc(0x10)" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)xmalloc(0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x10)" (identifier "xmalloc") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")"))))) (; ";")) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[1] = puVar2;" (assignment_expression "puVar2[1] = puVar2" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "*param_1 = puVar2;" (assignment_expression "*param_1 = puVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "puVar3 = puVar2;" (assignment_expression "puVar3 = puVar2" (identifier "puVar3") (= "=") (identifier "puVar2")) (; ";")) (} "}")) (else_clause "else {\n    puVar3 = (undefined8 *)puVar2[1];\n  }" (else "else") (compound_statement "{\n    puVar3 = (undefined8 *)puVar2[1];\n  }" ({ "{") (expression_statement "puVar3 = (undefined8 *)puVar2[1];" (assignment_expression "puVar3 = (undefined8 *)puVar2[1]" (identifier "puVar3") (= "=") (cast_expression "(undefined8 *)puVar2[1]" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (} "}")))) (expression_statement "*puVar3 = pauVar1;" (assignment_expression "*puVar3 = pauVar1" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "pauVar1")) (; ";")) (expression_statement "puVar2[1] = pauVar1;" (assignment_expression "puVar2[1] = pauVar1" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "pauVar1")) (; ";")) (return_statement "return pauVar1;" (return "return") (identifier "pauVar1") (; ";")) (} "}")))

type_1 *
function_1
          (type_2 *info,type_3 **nsp,char *name,type_4 kind,
          type_5 linkage)

{
  type_1 *pdVar1;
  type_6 *var_2;
  type_6 *pdVar3;
  
  pdVar1 = (type_1 *)var_1(0x28);
  pdVar1->mark = 0;
  pdVar1->kind = DEBUG_OBJECT_TYPE;
  pdVar1->linkage = DEBUG_LINKAGE_AUTOMATIC;
  *(type_7 *)&pdVar1->field_0x1c = 0;
  pdVar1->next = (type_1 *)0x0;
  pdVar1->name = (char *)0x0;
  (pdVar1->u).type = (type_8 *)0x0;
  pdVar1->name = (char *)nsp;
  pdVar1->kind = (type_4)name;
  pdVar1->linkage = kind;
  var_2 = (type_6 *)info->units;
  if (var_2 == (type_6 *)0x0) {
    var_2 = (type_6 *)var_1(0x10);
    var_2->next = (type_6 *)0x0;
    var_2->filename = (char *)var_2;
    info->units = (type_9 *)var_2;
    pdVar3 = var_2;
  }
  else {
    pdVar3 = ((type_9 *)var_2)->files;
  }
  pdVar3->next = (type_6 *)pdVar1;
  ((type_9 *)var_2)->files = (type_6 *)pdVar1;
  return pdVar1;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (array_declarator declarator: (parenthesized_declarator (pointer_declarator declarator: (MISSING identifier))) size: (number_literal))) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (expression_statement (subscript_expression argument: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))) index: (number_literal))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_array_declarator declarator: (abstract_parenthesized_declarator (abstract_pointer_declarator)) size: (number_literal))) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_array_declarator size: (number_literal))) value: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_array_declarator size: (number_literal))) value: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (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: (pointer_expression argument: (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: (subscript_expression argument: (identifier) index: (number_literal)) 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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement (identifier)))))

undefined1 (*) [16]
MASKED(undefined8 *param_1,undefined8 param_2,undefined4 param_3,undefined4 param_4)

{
  undefined1 (*pauVar1) [16];
  undefined8 *puVar2;
  undefined8 *puVar3;
  
  pauVar1 = (undefined1 (*) [16])xmalloc(0x28);
  pauVar1[1] = (undefined1  [16])0x0;
  *pauVar1 = (undefined1  [16])0x0;
  *(undefined8 *)pauVar1[2] = 0;
  *(undefined8 *)(*pauVar1 + 8) = param_2;
  *(undefined4 *)(pauVar1[1] + 4) = param_3;
  *(undefined4 *)(pauVar1[1] + 8) = param_4;
  puVar2 = (undefined8 *)*param_1;
  if (puVar2 == (undefined8 *)0x0) {
    puVar2 = (undefined8 *)xmalloc(0x10);
    *puVar2 = 0;
    puVar2[1] = puVar2;
    *param_1 = puVar2;
    puVar3 = puVar2;
  }
  else {
    puVar3 = (undefined8 *)puVar2[1];
  }
  *puVar3 = pauVar1;
  puVar2[1] = pauVar1;
  return pauVar1;
}

