
/* DWARF original prototype: void copy_symbols_data(Relobj * this, Symbols_data * gc_sd,
   Read_symbols_data * sd, uint section_header_size) */

void __thiscall
gold::Relobj::copy_symbols_data
          (Relobj *this,Symbols_data *gc_sd,Read_symbols_data *sd,uint section_header_size)

{
  File_view *pFVar1;
  section_offset_type sVar2;
  ulong uVar3;
  uchar *puVar4;
  size_t sVar5;
  
  puVar4 = (uchar *)operator_new__((ulong)section_header_size);
  pFVar1 = sd->section_headers;
  gc_sd->section_headers_data = puVar4;
  memcpy(puVar4,pFVar1->data_,(ulong)section_header_size);
  puVar4 = (uchar *)operator_new__(sd->section_names_size);
  pFVar1 = sd->section_names;
  sVar5 = sd->section_names_size;
  gc_sd->section_names_data = puVar4;
  memcpy(puVar4,pFVar1->data_,sVar5);
  pFVar1 = sd->symbols;
  gc_sd->section_names_size = sVar5;
  if (pFVar1 == (File_view *)0x0) {
    gc_sd->symbols_data = (uchar *)0x0;
    sVar5 = sd->symbols_size;
  }
  else {
    puVar4 = (uchar *)operator_new__(sd->symbols_size);
    pFVar1 = sd->symbols;
    sVar5 = sd->symbols_size;
    gc_sd->symbols_data = puVar4;
    memcpy(puVar4,pFVar1->data_,sVar5);
  }
  sVar2 = sd->external_symbols_offset;
  pFVar1 = sd->symbol_names;
  gc_sd->symbols_size = sVar5;
  uVar3 = sd->symbol_names_size;
  gc_sd->external_symbols_offset = sVar2;
  if (pFVar1 != (File_view *)0x0) {
    puVar4 = (uchar *)operator_new__(uVar3);
    pFVar1 = sd->symbol_names;
    sVar5 = sd->symbol_names_size;
    gc_sd->symbol_names_data = puVar4;
    memcpy(puVar4,pFVar1->data_,sVar5);
    gc_sd->symbol_names_size = sVar5;
    return;
  }
  gc_sd->symbol_names_size = uVar3;
  gc_sd->symbol_names_data = (uchar *)0x0;
  return;
}



void FUN_001cfac0(undefined8 param_1,undefined8 *param_2,long *param_3,uint param_4)

{
  long lVar1;
  long lVar2;
  long lVar3;
  void *pvVar4;
  size_t sVar5;
  
  pvVar4 = (void *)thunk_FUN_002ee780((ulong)param_4);
  lVar1 = *param_3;
  *param_2 = pvVar4;
  memcpy(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4);
  pvVar4 = (void *)thunk_FUN_002ee780(param_3[2]);
  lVar1 = param_3[1];
  sVar5 = param_3[2];
  param_2[1] = pvVar4;
  memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);
  lVar1 = param_3[3];
  param_2[2] = sVar5;
  if (lVar1 == 0) {
    param_2[3] = 0;
    sVar5 = param_3[4];
  }
  else {
    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);
    lVar1 = param_3[3];
    sVar5 = param_3[4];
    param_2[3] = pvVar4;
    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);
  }
  lVar1 = param_3[5];
  lVar3 = param_3[6];
  param_2[4] = sVar5;
  lVar2 = param_3[7];
  param_2[5] = lVar1;
  if (lVar3 != 0) {
    pvVar4 = (void *)thunk_FUN_002ee780(lVar2);
    lVar1 = param_3[6];
    sVar5 = param_3[7];
    param_2[6] = pvVar4;
    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);
    param_2[7] = sVar5;
    return;
  }
  param_2[7] = lVar2;
  param_2[6] = 0;
  return;
}


PUSH R12
MOV R12D,ECX
PUSH RBP
MOV RDI,R12
MOV RBP,RSI
PUSH RBX
MOV RBX,RDX
CALL 0x002ee720
MOV RDX,qword ptr [RBX]
MOV qword ptr [RBP],RAX
MOV RDI,RAX
MOV RSI,qword ptr [RDX + 0x10]
MOV RDX,R12
CALL 0x00149a90
MOV RDI,qword ptr [RBX + 0x10]
CALL 0x002ee720
MOV RDX,qword ptr [RBX + 0x8]
MOV R12,qword ptr [RBX + 0x10]
MOV qword ptr [RBP + 0x8],RAX
MOV RDI,RAX
MOV RSI,qword ptr [RDX + 0x10]
MOV RDX,R12
CALL 0x00149a90
CMP qword ptr [RBX + 0x18],0x0
MOV qword ptr [RBP + 0x10],R12
JZ 0x001cfb88
MOV RDI,qword ptr [RBX + 0x20]
CALL 0x002ee720
MOV RDX,qword ptr [RBX + 0x18]
MOV R12,qword ptr [RBX + 0x20]
MOV qword ptr [RBP + 0x18],RAX
MOV RDI,RAX
MOV RSI,qword ptr [RDX + 0x10]
MOV RDX,R12
CALL 0x00149a90
MOV RAX,qword ptr [RBX + 0x28]
CMP qword ptr [RBX + 0x30],0x0
MOV qword ptr [RBP + 0x20],R12
MOV R12,qword ptr [RBX + 0x38]
MOV qword ptr [RBP + 0x28],RAX
JZ 0x001cfba0
MOV RDI,R12
CALL 0x002ee720
MOV RDX,qword ptr [RBX + 0x30]
MOV R12,qword ptr [RBX + 0x38]
MOV qword ptr [RBP + 0x30],RAX
MOV RDI,RAX
MOV RSI,qword ptr [RDX + 0x10]
MOV RDX,R12
CALL 0x00149a90
MOV qword ptr [RBP + 0x38],R12
POP RBX
POP RBP
POP R12
RET
MOV qword ptr [RBP + 0x18],0x0
MOV R12,qword ptr [RBX + 0x20]
JMP 0x001cfb3e
MOV qword ptr [RBP + 0x38],R12
POP RBX
MOV qword ptr [RBP + 0x30],0x0
POP RBP
POP R12
RET
(translation_unit "void FUN_001cfac0(undefined8 param_1,undefined8 *param_2,long *param_3,uint param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  void *pvVar4;\n  size_t sVar5;\n  \n  pvVar4 = (void *)thunk_FUN_002ee780((ulong)param_4);\n  lVar1 = *param_3;\n  *param_2 = pvVar4;\n  memcpy(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4);\n  pvVar4 = (void *)thunk_FUN_002ee780(param_3[2]);\n  lVar1 = param_3[1];\n  sVar5 = param_3[2];\n  param_2[1] = pvVar4;\n  memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  lVar1 = param_3[3];\n  param_2[2] = sVar5;\n  if (lVar1 == 0) {\n    param_2[3] = 0;\n    sVar5 = param_3[4];\n  }\n  else {\n    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);\n    lVar1 = param_3[3];\n    sVar5 = param_3[4];\n    param_2[3] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  }\n  lVar1 = param_3[5];\n  lVar3 = param_3[6];\n  param_2[4] = sVar5;\n  lVar2 = param_3[7];\n  param_2[5] = lVar1;\n  if (lVar3 != 0) {\n    pvVar4 = (void *)thunk_FUN_002ee780(lVar2);\n    lVar1 = param_3[6];\n    sVar5 = param_3[7];\n    param_2[6] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n    param_2[7] = sVar5;\n    return;\n  }\n  param_2[7] = lVar2;\n  param_2[6] = 0;\n  return;\n}\n\n" (function_definition "void FUN_001cfac0(undefined8 param_1,undefined8 *param_2,long *param_3,uint param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  void *pvVar4;\n  size_t sVar5;\n  \n  pvVar4 = (void *)thunk_FUN_002ee780((ulong)param_4);\n  lVar1 = *param_3;\n  *param_2 = pvVar4;\n  memcpy(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4);\n  pvVar4 = (void *)thunk_FUN_002ee780(param_3[2]);\n  lVar1 = param_3[1];\n  sVar5 = param_3[2];\n  param_2[1] = pvVar4;\n  memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  lVar1 = param_3[3];\n  param_2[2] = sVar5;\n  if (lVar1 == 0) {\n    param_2[3] = 0;\n    sVar5 = param_3[4];\n  }\n  else {\n    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);\n    lVar1 = param_3[3];\n    sVar5 = param_3[4];\n    param_2[3] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  }\n  lVar1 = param_3[5];\n  lVar3 = param_3[6];\n  param_2[4] = sVar5;\n  lVar2 = param_3[7];\n  param_2[5] = lVar1;\n  if (lVar3 != 0) {\n    pvVar4 = (void *)thunk_FUN_002ee780(lVar2);\n    lVar1 = param_3[6];\n    sVar5 = param_3[7];\n    param_2[6] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n    param_2[7] = sVar5;\n    return;\n  }\n  param_2[7] = lVar2;\n  param_2[6] = 0;\n  return;\n}" primitive_type (function_declarator "FUN_001cfac0(undefined8 param_1,undefined8 *param_2,long *param_3,uint param_4)" identifier (parameter_list "(undefined8 param_1,undefined8 *param_2,long *param_3,uint param_4)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long *param_3" (sized_type_specifier "long" long) (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  void *pvVar4;\n  size_t sVar5;\n  \n  pvVar4 = (void *)thunk_FUN_002ee780((ulong)param_4);\n  lVar1 = *param_3;\n  *param_2 = pvVar4;\n  memcpy(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4);\n  pvVar4 = (void *)thunk_FUN_002ee780(param_3[2]);\n  lVar1 = param_3[1];\n  sVar5 = param_3[2];\n  param_2[1] = pvVar4;\n  memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  lVar1 = param_3[3];\n  param_2[2] = sVar5;\n  if (lVar1 == 0) {\n    param_2[3] = 0;\n    sVar5 = param_3[4];\n  }\n  else {\n    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);\n    lVar1 = param_3[3];\n    sVar5 = param_3[4];\n    param_2[3] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  }\n  lVar1 = param_3[5];\n  lVar3 = param_3[6];\n  param_2[4] = sVar5;\n  lVar2 = param_3[7];\n  param_2[5] = lVar1;\n  if (lVar3 != 0) {\n    pvVar4 = (void *)thunk_FUN_002ee780(lVar2);\n    lVar1 = param_3[6];\n    sVar5 = param_3[7];\n    param_2[6] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n    param_2[7] = sVar5;\n    return;\n  }\n  param_2[7] = lVar2;\n  param_2[6] = 0;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (expression_statement "pvVar4 = (void *)thunk_FUN_002ee780((ulong)param_4);" (assignment_expression "pvVar4 = (void *)thunk_FUN_002ee780((ulong)param_4)" identifier = (cast_expression "(void *)thunk_FUN_002ee780((ulong)param_4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "thunk_FUN_002ee780((ulong)param_4)" identifier (argument_list "((ulong)param_4)" ( (cast_expression "(ulong)param_4" ( (type_descriptor "ulong" type_identifier) ) identifier) ))))) ;) (expression_statement "lVar1 = *param_3;" (assignment_expression "lVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "*param_2 = pvVar4;" (assignment_expression "*param_2 = pvVar4" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "memcpy(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4);" (call_expression "memcpy(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4)" identifier (argument_list "(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4)" ( identifier , (pointer_expression "*(void **)(lVar1 + 0x10)" * (cast_expression "(void **)(lVar1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) , (cast_expression "(ulong)param_4" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;) (expression_statement "pvVar4 = (void *)thunk_FUN_002ee780(param_3[2]);" (assignment_expression "pvVar4 = (void *)thunk_FUN_002ee780(param_3[2])" identifier = (cast_expression "(void *)thunk_FUN_002ee780(param_3[2])" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "thunk_FUN_002ee780(param_3[2])" identifier (argument_list "(param_3[2])" ( (subscript_expression "param_3[2]" identifier [ number_literal ]) ))))) ;) (expression_statement "lVar1 = param_3[1];" (assignment_expression "lVar1 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "sVar5 = param_3[2];" (assignment_expression "sVar5 = param_3[2]" identifier = (subscript_expression "param_3[2]" identifier [ number_literal ])) ;) (expression_statement "param_2[1] = pvVar4;" (assignment_expression "param_2[1] = pvVar4" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);" (call_expression "memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5)" identifier (argument_list "(pvVar4,*(void **)(lVar1 + 0x10),sVar5)" ( identifier , (pointer_expression "*(void **)(lVar1 + 0x10)" * (cast_expression "(void **)(lVar1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "lVar1 = param_3[3];" (assignment_expression "lVar1 = param_3[3]" identifier = (subscript_expression "param_3[3]" identifier [ number_literal ])) ;) (expression_statement "param_2[2] = sVar5;" (assignment_expression "param_2[2] = sVar5" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (lVar1 == 0) {\n    param_2[3] = 0;\n    sVar5 = param_3[4];\n  }\n  else {\n    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);\n    lVar1 = param_3[3];\n    sVar5 = param_3[4];\n    param_2[3] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  }" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2[3] = 0;\n    sVar5 = param_3[4];\n  }" { (expression_statement "param_2[3] = 0;" (assignment_expression "param_2[3] = 0" (subscript_expression "param_2[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "sVar5 = param_3[4];" (assignment_expression "sVar5 = param_3[4]" identifier = (subscript_expression "param_3[4]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);\n    lVar1 = param_3[3];\n    sVar5 = param_3[4];\n    param_2[3] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  }" else (compound_statement "{\n    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);\n    lVar1 = param_3[3];\n    sVar5 = param_3[4];\n    param_2[3] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  }" { (expression_statement "pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);" (assignment_expression "pvVar4 = (void *)thunk_FUN_002ee780(param_3[4])" identifier = (cast_expression "(void *)thunk_FUN_002ee780(param_3[4])" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "thunk_FUN_002ee780(param_3[4])" identifier (argument_list "(param_3[4])" ( (subscript_expression "param_3[4]" identifier [ number_literal ]) ))))) ;) (expression_statement "lVar1 = param_3[3];" (assignment_expression "lVar1 = param_3[3]" identifier = (subscript_expression "param_3[3]" identifier [ number_literal ])) ;) (expression_statement "sVar5 = param_3[4];" (assignment_expression "sVar5 = param_3[4]" identifier = (subscript_expression "param_3[4]" identifier [ number_literal ])) ;) (expression_statement "param_2[3] = pvVar4;" (assignment_expression "param_2[3] = pvVar4" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);" (call_expression "memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5)" identifier (argument_list "(pvVar4,*(void **)(lVar1 + 0x10),sVar5)" ( identifier , (pointer_expression "*(void **)(lVar1 + 0x10)" * (cast_expression "(void **)(lVar1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) , identifier ))) ;) }))) (expression_statement "lVar1 = param_3[5];" (assignment_expression "lVar1 = param_3[5]" identifier = (subscript_expression "param_3[5]" identifier [ number_literal ])) ;) (expression_statement "lVar3 = param_3[6];" (assignment_expression "lVar3 = param_3[6]" identifier = (subscript_expression "param_3[6]" identifier [ number_literal ])) ;) (expression_statement "param_2[4] = sVar5;" (assignment_expression "param_2[4] = sVar5" (subscript_expression "param_2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "lVar2 = param_3[7];" (assignment_expression "lVar2 = param_3[7]" identifier = (subscript_expression "param_3[7]" identifier [ number_literal ])) ;) (expression_statement "param_2[5] = lVar1;" (assignment_expression "param_2[5] = lVar1" (subscript_expression "param_2[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (lVar3 != 0) {\n    pvVar4 = (void *)thunk_FUN_002ee780(lVar2);\n    lVar1 = param_3[6];\n    sVar5 = param_3[7];\n    param_2[6] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n    param_2[7] = sVar5;\n    return;\n  }" if (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    pvVar4 = (void *)thunk_FUN_002ee780(lVar2);\n    lVar1 = param_3[6];\n    sVar5 = param_3[7];\n    param_2[6] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n    param_2[7] = sVar5;\n    return;\n  }" { (expression_statement "pvVar4 = (void *)thunk_FUN_002ee780(lVar2);" (assignment_expression "pvVar4 = (void *)thunk_FUN_002ee780(lVar2)" identifier = (cast_expression "(void *)thunk_FUN_002ee780(lVar2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "thunk_FUN_002ee780(lVar2)" identifier (argument_list "(lVar2)" ( identifier ))))) ;) (expression_statement "lVar1 = param_3[6];" (assignment_expression "lVar1 = param_3[6]" identifier = (subscript_expression "param_3[6]" identifier [ number_literal ])) ;) (expression_statement "sVar5 = param_3[7];" (assignment_expression "sVar5 = param_3[7]" identifier = (subscript_expression "param_3[7]" identifier [ number_literal ])) ;) (expression_statement "param_2[6] = pvVar4;" (assignment_expression "param_2[6] = pvVar4" (subscript_expression "param_2[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);" (call_expression "memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5)" identifier (argument_list "(pvVar4,*(void **)(lVar1 + 0x10),sVar5)" ( identifier , (pointer_expression "*(void **)(lVar1 + 0x10)" * (cast_expression "(void **)(lVar1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "param_2[7] = sVar5;" (assignment_expression "param_2[7] = sVar5" (subscript_expression "param_2[7]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "param_2[7] = lVar2;" (assignment_expression "param_2[7] = lVar2" (subscript_expression "param_2[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[6] = 0;" (assignment_expression "param_2[6] = 0" (subscript_expression "param_2[6]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void copy_symbols_data(Relobj * this, Symbols_data * gc_sd,\n   Read_symbols_data * sd, uint section_header_size) */\n\nvoid __thiscall\ngold::Relobj::copy_symbols_data\n          (Relobj *this,Symbols_data *gc_sd,Read_symbols_data *sd,uint section_header_size)\n\n{\n  File_view *pFVar1;\n  section_offset_type sVar2;\n  ulong uVar3;\n  uchar *puVar4;\n  size_t sVar5;\n  \n  puVar4 = (uchar *)operator_new__((ulong)section_header_size);\n  pFVar1 = sd->section_headers;\n  gc_sd->section_headers_data = puVar4;\n  memcpy(puVar4,pFVar1->data_,(ulong)section_header_size);\n  puVar4 = (uchar *)operator_new__(sd->section_names_size);\n  pFVar1 = sd->section_names;\n  sVar5 = sd->section_names_size;\n  gc_sd->section_names_data = puVar4;\n  memcpy(puVar4,pFVar1->data_,sVar5);\n  pFVar1 = sd->symbols;\n  gc_sd->section_names_size = sVar5;\n  if (pFVar1 == (File_view *)0x0) {\n    gc_sd->symbols_data = (uchar *)0x0;\n    sVar5 = sd->symbols_size;\n  }\n  else {\n    puVar4 = (uchar *)operator_new__(sd->symbols_size);\n    pFVar1 = sd->symbols;\n    sVar5 = sd->symbols_size;\n    gc_sd->symbols_data = puVar4;\n    memcpy(puVar4,pFVar1->data_,sVar5);\n  }\n  sVar2 = sd->external_symbols_offset;\n  pFVar1 = sd->symbol_names;\n  gc_sd->symbols_size = sVar5;\n  uVar3 = sd->symbol_names_size;\n  gc_sd->external_symbols_offset = sVar2;\n  if (pFVar1 != (File_view *)0x0) {\n    puVar4 = (uchar *)operator_new__(uVar3);\n    pFVar1 = sd->symbol_names;\n    sVar5 = sd->symbol_names_size;\n    gc_sd->symbol_names_data = puVar4;\n    memcpy(puVar4,pFVar1->data_,sVar5);\n    gc_sd->symbol_names_size = sVar5;\n    return;\n  }\n  gc_sd->symbol_names_size = uVar3;\n  gc_sd->symbol_names_data = (uchar *)0x0;\n  return;\n}\n\n" comment (function_definition "void __thiscall\ngold::Relobj::copy_symbols_data\n          (Relobj *this,Symbols_data *gc_sd,Read_symbols_data *sd,uint section_header_size)\n\n{\n  File_view *pFVar1;\n  section_offset_type sVar2;\n  ulong uVar3;\n  uchar *puVar4;\n  size_t sVar5;\n  \n  puVar4 = (uchar *)operator_new__((ulong)section_header_size);\n  pFVar1 = sd->section_headers;\n  gc_sd->section_headers_data = puVar4;\n  memcpy(puVar4,pFVar1->data_,(ulong)section_header_size);\n  puVar4 = (uchar *)operator_new__(sd->section_names_size);\n  pFVar1 = sd->section_names;\n  sVar5 = sd->section_names_size;\n  gc_sd->section_names_data = puVar4;\n  memcpy(puVar4,pFVar1->data_,sVar5);\n  pFVar1 = sd->symbols;\n  gc_sd->section_names_size = sVar5;\n  if (pFVar1 == (File_view *)0x0) {\n    gc_sd->symbols_data = (uchar *)0x0;\n    sVar5 = sd->symbols_size;\n  }\n  else {\n    puVar4 = (uchar *)operator_new__(sd->symbols_size);\n    pFVar1 = sd->symbols;\n    sVar5 = sd->symbols_size;\n    gc_sd->symbols_data = puVar4;\n    memcpy(puVar4,pFVar1->data_,sVar5);\n  }\n  sVar2 = sd->external_symbols_offset;\n  pFVar1 = sd->symbol_names;\n  gc_sd->symbols_size = sVar5;\n  uVar3 = sd->symbol_names_size;\n  gc_sd->external_symbols_offset = sVar2;\n  if (pFVar1 != (File_view *)0x0) {\n    puVar4 = (uchar *)operator_new__(uVar3);\n    pFVar1 = sd->symbol_names;\n    sVar5 = sd->symbol_names_size;\n    gc_sd->symbol_names_data = puVar4;\n    memcpy(puVar4,pFVar1->data_,sVar5);\n    gc_sd->symbol_names_size = sVar5;\n    return;\n  }\n  gc_sd->symbol_names_size = uVar3;\n  gc_sd->symbol_names_data = (uchar *)0x0;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Relobj::" identifier : : identifier : :) (function_declarator "copy_symbols_data\n          (Relobj *this,Symbols_data *gc_sd,Read_symbols_data *sd,uint section_header_size)" identifier (parameter_list "(Relobj *this,Symbols_data *gc_sd,Read_symbols_data *sd,uint section_header_size)" ( (parameter_declaration "Relobj *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Symbols_data *gc_sd" type_identifier (pointer_declarator "*gc_sd" * identifier)) , (parameter_declaration "Read_symbols_data *sd" type_identifier (pointer_declarator "*sd" * identifier)) , (parameter_declaration "uint section_header_size" type_identifier identifier) ))) (compound_statement "{\n  File_view *pFVar1;\n  section_offset_type sVar2;\n  ulong uVar3;\n  uchar *puVar4;\n  size_t sVar5;\n  \n  puVar4 = (uchar *)operator_new__((ulong)section_header_size);\n  pFVar1 = sd->section_headers;\n  gc_sd->section_headers_data = puVar4;\n  memcpy(puVar4,pFVar1->data_,(ulong)section_header_size);\n  puVar4 = (uchar *)operator_new__(sd->section_names_size);\n  pFVar1 = sd->section_names;\n  sVar5 = sd->section_names_size;\n  gc_sd->section_names_data = puVar4;\n  memcpy(puVar4,pFVar1->data_,sVar5);\n  pFVar1 = sd->symbols;\n  gc_sd->section_names_size = sVar5;\n  if (pFVar1 == (File_view *)0x0) {\n    gc_sd->symbols_data = (uchar *)0x0;\n    sVar5 = sd->symbols_size;\n  }\n  else {\n    puVar4 = (uchar *)operator_new__(sd->symbols_size);\n    pFVar1 = sd->symbols;\n    sVar5 = sd->symbols_size;\n    gc_sd->symbols_data = puVar4;\n    memcpy(puVar4,pFVar1->data_,sVar5);\n  }\n  sVar2 = sd->external_symbols_offset;\n  pFVar1 = sd->symbol_names;\n  gc_sd->symbols_size = sVar5;\n  uVar3 = sd->symbol_names_size;\n  gc_sd->external_symbols_offset = sVar2;\n  if (pFVar1 != (File_view *)0x0) {\n    puVar4 = (uchar *)operator_new__(uVar3);\n    pFVar1 = sd->symbol_names;\n    sVar5 = sd->symbol_names_size;\n    gc_sd->symbol_names_data = puVar4;\n    memcpy(puVar4,pFVar1->data_,sVar5);\n    gc_sd->symbol_names_size = sVar5;\n    return;\n  }\n  gc_sd->symbol_names_size = uVar3;\n  gc_sd->symbol_names_data = (uchar *)0x0;\n  return;\n}" { (declaration "File_view *pFVar1;" type_identifier (pointer_declarator "*pFVar1" * identifier) ;) (declaration "section_offset_type sVar2;" type_identifier identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "uchar *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (expression_statement "puVar4 = (uchar *)operator_new__((ulong)section_header_size);" (assignment_expression "puVar4 = (uchar *)operator_new__((ulong)section_header_size)" identifier = (cast_expression "(uchar *)operator_new__((ulong)section_header_size)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__((ulong)section_header_size)" identifier (argument_list "((ulong)section_header_size)" ( (cast_expression "(ulong)section_header_size" ( (type_descriptor "ulong" type_identifier) ) identifier) ))))) ;) (expression_statement "pFVar1 = sd->section_headers;" (assignment_expression "pFVar1 = sd->section_headers" identifier = (field_expression "sd->section_headers" identifier -> field_identifier)) ;) (expression_statement "gc_sd->section_headers_data = puVar4;" (assignment_expression "gc_sd->section_headers_data = puVar4" (field_expression "gc_sd->section_headers_data" identifier -> field_identifier) = identifier) ;) (expression_statement "memcpy(puVar4,pFVar1->data_,(ulong)section_header_size);" (call_expression "memcpy(puVar4,pFVar1->data_,(ulong)section_header_size)" identifier (argument_list "(puVar4,pFVar1->data_,(ulong)section_header_size)" ( identifier , (field_expression "pFVar1->data_" identifier -> field_identifier) , (cast_expression "(ulong)section_header_size" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;) (expression_statement "puVar4 = (uchar *)operator_new__(sd->section_names_size);" (assignment_expression "puVar4 = (uchar *)operator_new__(sd->section_names_size)" identifier = (cast_expression "(uchar *)operator_new__(sd->section_names_size)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(sd->section_names_size)" identifier (argument_list "(sd->section_names_size)" ( (field_expression "sd->section_names_size" identifier -> field_identifier) ))))) ;) (expression_statement "pFVar1 = sd->section_names;" (assignment_expression "pFVar1 = sd->section_names" identifier = (field_expression "sd->section_names" identifier -> field_identifier)) ;) (expression_statement "sVar5 = sd->section_names_size;" (assignment_expression "sVar5 = sd->section_names_size" identifier = (field_expression "sd->section_names_size" identifier -> field_identifier)) ;) (expression_statement "gc_sd->section_names_data = puVar4;" (assignment_expression "gc_sd->section_names_data = puVar4" (field_expression "gc_sd->section_names_data" identifier -> field_identifier) = identifier) ;) (expression_statement "memcpy(puVar4,pFVar1->data_,sVar5);" (call_expression "memcpy(puVar4,pFVar1->data_,sVar5)" identifier (argument_list "(puVar4,pFVar1->data_,sVar5)" ( identifier , (field_expression "pFVar1->data_" identifier -> field_identifier) , identifier ))) ;) (expression_statement "pFVar1 = sd->symbols;" (assignment_expression "pFVar1 = sd->symbols" identifier = (field_expression "sd->symbols" identifier -> field_identifier)) ;) (expression_statement "gc_sd->section_names_size = sVar5;" (assignment_expression "gc_sd->section_names_size = sVar5" (field_expression "gc_sd->section_names_size" identifier -> field_identifier) = identifier) ;) (if_statement "if (pFVar1 == (File_view *)0x0) {\n    gc_sd->symbols_data = (uchar *)0x0;\n    sVar5 = sd->symbols_size;\n  }\n  else {\n    puVar4 = (uchar *)operator_new__(sd->symbols_size);\n    pFVar1 = sd->symbols;\n    sVar5 = sd->symbols_size;\n    gc_sd->symbols_data = puVar4;\n    memcpy(puVar4,pFVar1->data_,sVar5);\n  }" if (parenthesized_expression "(pFVar1 == (File_view *)0x0)" ( (binary_expression "pFVar1 == (File_view *)0x0" identifier == (cast_expression "(File_view *)0x0" ( (type_descriptor "File_view *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    gc_sd->symbols_data = (uchar *)0x0;\n    sVar5 = sd->symbols_size;\n  }" { (expression_statement "gc_sd->symbols_data = (uchar *)0x0;" (assignment_expression "gc_sd->symbols_data = (uchar *)0x0" (field_expression "gc_sd->symbols_data" identifier -> field_identifier) = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sVar5 = sd->symbols_size;" (assignment_expression "sVar5 = sd->symbols_size" identifier = (field_expression "sd->symbols_size" identifier -> field_identifier)) ;) }) (else_clause "else {\n    puVar4 = (uchar *)operator_new__(sd->symbols_size);\n    pFVar1 = sd->symbols;\n    sVar5 = sd->symbols_size;\n    gc_sd->symbols_data = puVar4;\n    memcpy(puVar4,pFVar1->data_,sVar5);\n  }" else (compound_statement "{\n    puVar4 = (uchar *)operator_new__(sd->symbols_size);\n    pFVar1 = sd->symbols;\n    sVar5 = sd->symbols_size;\n    gc_sd->symbols_data = puVar4;\n    memcpy(puVar4,pFVar1->data_,sVar5);\n  }" { (expression_statement "puVar4 = (uchar *)operator_new__(sd->symbols_size);" (assignment_expression "puVar4 = (uchar *)operator_new__(sd->symbols_size)" identifier = (cast_expression "(uchar *)operator_new__(sd->symbols_size)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(sd->symbols_size)" identifier (argument_list "(sd->symbols_size)" ( (field_expression "sd->symbols_size" identifier -> field_identifier) ))))) ;) (expression_statement "pFVar1 = sd->symbols;" (assignment_expression "pFVar1 = sd->symbols" identifier = (field_expression "sd->symbols" identifier -> field_identifier)) ;) (expression_statement "sVar5 = sd->symbols_size;" (assignment_expression "sVar5 = sd->symbols_size" identifier = (field_expression "sd->symbols_size" identifier -> field_identifier)) ;) (expression_statement "gc_sd->symbols_data = puVar4;" (assignment_expression "gc_sd->symbols_data = puVar4" (field_expression "gc_sd->symbols_data" identifier -> field_identifier) = identifier) ;) (expression_statement "memcpy(puVar4,pFVar1->data_,sVar5);" (call_expression "memcpy(puVar4,pFVar1->data_,sVar5)" identifier (argument_list "(puVar4,pFVar1->data_,sVar5)" ( identifier , (field_expression "pFVar1->data_" identifier -> field_identifier) , identifier ))) ;) }))) (expression_statement "sVar2 = sd->external_symbols_offset;" (assignment_expression "sVar2 = sd->external_symbols_offset" identifier = (field_expression "sd->external_symbols_offset" identifier -> field_identifier)) ;) (expression_statement "pFVar1 = sd->symbol_names;" (assignment_expression "pFVar1 = sd->symbol_names" identifier = (field_expression "sd->symbol_names" identifier -> field_identifier)) ;) (expression_statement "gc_sd->symbols_size = sVar5;" (assignment_expression "gc_sd->symbols_size = sVar5" (field_expression "gc_sd->symbols_size" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar3 = sd->symbol_names_size;" (assignment_expression "uVar3 = sd->symbol_names_size" identifier = (field_expression "sd->symbol_names_size" identifier -> field_identifier)) ;) (expression_statement "gc_sd->external_symbols_offset = sVar2;" (assignment_expression "gc_sd->external_symbols_offset = sVar2" (field_expression "gc_sd->external_symbols_offset" identifier -> field_identifier) = identifier) ;) (if_statement "if (pFVar1 != (File_view *)0x0) {\n    puVar4 = (uchar *)operator_new__(uVar3);\n    pFVar1 = sd->symbol_names;\n    sVar5 = sd->symbol_names_size;\n    gc_sd->symbol_names_data = puVar4;\n    memcpy(puVar4,pFVar1->data_,sVar5);\n    gc_sd->symbol_names_size = sVar5;\n    return;\n  }" if (parenthesized_expression "(pFVar1 != (File_view *)0x0)" ( (binary_expression "pFVar1 != (File_view *)0x0" identifier != (cast_expression "(File_view *)0x0" ( (type_descriptor "File_view *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar4 = (uchar *)operator_new__(uVar3);\n    pFVar1 = sd->symbol_names;\n    sVar5 = sd->symbol_names_size;\n    gc_sd->symbol_names_data = puVar4;\n    memcpy(puVar4,pFVar1->data_,sVar5);\n    gc_sd->symbol_names_size = sVar5;\n    return;\n  }" { (expression_statement "puVar4 = (uchar *)operator_new__(uVar3);" (assignment_expression "puVar4 = (uchar *)operator_new__(uVar3)" identifier = (cast_expression "(uchar *)operator_new__(uVar3)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))))) ;) (expression_statement "pFVar1 = sd->symbol_names;" (assignment_expression "pFVar1 = sd->symbol_names" identifier = (field_expression "sd->symbol_names" identifier -> field_identifier)) ;) (expression_statement "sVar5 = sd->symbol_names_size;" (assignment_expression "sVar5 = sd->symbol_names_size" identifier = (field_expression "sd->symbol_names_size" identifier -> field_identifier)) ;) (expression_statement "gc_sd->symbol_names_data = puVar4;" (assignment_expression "gc_sd->symbol_names_data = puVar4" (field_expression "gc_sd->symbol_names_data" identifier -> field_identifier) = identifier) ;) (expression_statement "memcpy(puVar4,pFVar1->data_,sVar5);" (call_expression "memcpy(puVar4,pFVar1->data_,sVar5)" identifier (argument_list "(puVar4,pFVar1->data_,sVar5)" ( identifier , (field_expression "pFVar1->data_" identifier -> field_identifier) , identifier ))) ;) (expression_statement "gc_sd->symbol_names_size = sVar5;" (assignment_expression "gc_sd->symbol_names_size = sVar5" (field_expression "gc_sd->symbol_names_size" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "gc_sd->symbol_names_size = uVar3;" (assignment_expression "gc_sd->symbol_names_size = uVar3" (field_expression "gc_sd->symbol_names_size" identifier -> field_identifier) = identifier) ;) (expression_statement "gc_sd->symbol_names_data = (uchar *)0x0;" (assignment_expression "gc_sd->symbol_names_data = (uchar *)0x0" (field_expression "gc_sd->symbol_names_data" identifier -> field_identifier) = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001cfac0(undefined8 param_1,undefined8 *param_2,long *param_3,uint param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  void *pvVar4;\n  size_t sVar5;\n  \n  pvVar4 = (void *)thunk_FUN_002ee780((ulong)param_4);\n  lVar1 = *param_3;\n  *param_2 = pvVar4;\n  memcpy(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4);\n  pvVar4 = (void *)thunk_FUN_002ee780(param_3[2]);\n  lVar1 = param_3[1];\n  sVar5 = param_3[2];\n  param_2[1] = pvVar4;\n  memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  lVar1 = param_3[3];\n  param_2[2] = sVar5;\n  if (lVar1 == 0) {\n    param_2[3] = 0;\n    sVar5 = param_3[4];\n  }\n  else {\n    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);\n    lVar1 = param_3[3];\n    sVar5 = param_3[4];\n    param_2[3] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  }\n  lVar1 = param_3[5];\n  lVar3 = param_3[6];\n  param_2[4] = sVar5;\n  lVar2 = param_3[7];\n  param_2[5] = lVar1;\n  if (lVar3 != 0) {\n    pvVar4 = (void *)thunk_FUN_002ee780(lVar2);\n    lVar1 = param_3[6];\n    sVar5 = param_3[7];\n    param_2[6] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n    param_2[7] = sVar5;\n    return;\n  }\n  param_2[7] = lVar2;\n  param_2[6] = 0;\n  return;\n}\n\n" (function_definition "void FUN_001cfac0(undefined8 param_1,undefined8 *param_2,long *param_3,uint param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  void *pvVar4;\n  size_t sVar5;\n  \n  pvVar4 = (void *)thunk_FUN_002ee780((ulong)param_4);\n  lVar1 = *param_3;\n  *param_2 = pvVar4;\n  memcpy(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4);\n  pvVar4 = (void *)thunk_FUN_002ee780(param_3[2]);\n  lVar1 = param_3[1];\n  sVar5 = param_3[2];\n  param_2[1] = pvVar4;\n  memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  lVar1 = param_3[3];\n  param_2[2] = sVar5;\n  if (lVar1 == 0) {\n    param_2[3] = 0;\n    sVar5 = param_3[4];\n  }\n  else {\n    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);\n    lVar1 = param_3[3];\n    sVar5 = param_3[4];\n    param_2[3] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  }\n  lVar1 = param_3[5];\n  lVar3 = param_3[6];\n  param_2[4] = sVar5;\n  lVar2 = param_3[7];\n  param_2[5] = lVar1;\n  if (lVar3 != 0) {\n    pvVar4 = (void *)thunk_FUN_002ee780(lVar2);\n    lVar1 = param_3[6];\n    sVar5 = param_3[7];\n    param_2[6] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n    param_2[7] = sVar5;\n    return;\n  }\n  param_2[7] = lVar2;\n  param_2[6] = 0;\n  return;\n}" primitive_type (function_declarator "FUN_001cfac0(undefined8 param_1,undefined8 *param_2,long *param_3,uint param_4)" identifier (parameter_list "(undefined8 param_1,undefined8 *param_2,long *param_3,uint param_4)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long *param_3" (sized_type_specifier "long" long) (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  void *pvVar4;\n  size_t sVar5;\n  \n  pvVar4 = (void *)thunk_FUN_002ee780((ulong)param_4);\n  lVar1 = *param_3;\n  *param_2 = pvVar4;\n  memcpy(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4);\n  pvVar4 = (void *)thunk_FUN_002ee780(param_3[2]);\n  lVar1 = param_3[1];\n  sVar5 = param_3[2];\n  param_2[1] = pvVar4;\n  memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  lVar1 = param_3[3];\n  param_2[2] = sVar5;\n  if (lVar1 == 0) {\n    param_2[3] = 0;\n    sVar5 = param_3[4];\n  }\n  else {\n    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);\n    lVar1 = param_3[3];\n    sVar5 = param_3[4];\n    param_2[3] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  }\n  lVar1 = param_3[5];\n  lVar3 = param_3[6];\n  param_2[4] = sVar5;\n  lVar2 = param_3[7];\n  param_2[5] = lVar1;\n  if (lVar3 != 0) {\n    pvVar4 = (void *)thunk_FUN_002ee780(lVar2);\n    lVar1 = param_3[6];\n    sVar5 = param_3[7];\n    param_2[6] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n    param_2[7] = sVar5;\n    return;\n  }\n  param_2[7] = lVar2;\n  param_2[6] = 0;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (expression_statement "pvVar4 = (void *)thunk_FUN_002ee780((ulong)param_4);" (assignment_expression "pvVar4 = (void *)thunk_FUN_002ee780((ulong)param_4)" identifier = (cast_expression "(void *)thunk_FUN_002ee780((ulong)param_4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "thunk_FUN_002ee780((ulong)param_4)" identifier (argument_list "((ulong)param_4)" ( (cast_expression "(ulong)param_4" ( (type_descriptor "ulong" type_identifier) ) identifier) ))))) ;) (expression_statement "lVar1 = *param_3;" (assignment_expression "lVar1 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "*param_2 = pvVar4;" (assignment_expression "*param_2 = pvVar4" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "memcpy(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4);" (call_expression "memcpy(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4)" identifier (argument_list "(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4)" ( identifier , (pointer_expression "*(void **)(lVar1 + 0x10)" * (cast_expression "(void **)(lVar1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) , (cast_expression "(ulong)param_4" ( (type_descriptor "ulong" type_identifier) ) identifier) ))) ;) (expression_statement "pvVar4 = (void *)thunk_FUN_002ee780(param_3[2]);" (assignment_expression "pvVar4 = (void *)thunk_FUN_002ee780(param_3[2])" identifier = (cast_expression "(void *)thunk_FUN_002ee780(param_3[2])" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "thunk_FUN_002ee780(param_3[2])" identifier (argument_list "(param_3[2])" ( (subscript_expression "param_3[2]" identifier [ number_literal ]) ))))) ;) (expression_statement "lVar1 = param_3[1];" (assignment_expression "lVar1 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "sVar5 = param_3[2];" (assignment_expression "sVar5 = param_3[2]" identifier = (subscript_expression "param_3[2]" identifier [ number_literal ])) ;) (expression_statement "param_2[1] = pvVar4;" (assignment_expression "param_2[1] = pvVar4" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);" (call_expression "memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5)" identifier (argument_list "(pvVar4,*(void **)(lVar1 + 0x10),sVar5)" ( identifier , (pointer_expression "*(void **)(lVar1 + 0x10)" * (cast_expression "(void **)(lVar1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "lVar1 = param_3[3];" (assignment_expression "lVar1 = param_3[3]" identifier = (subscript_expression "param_3[3]" identifier [ number_literal ])) ;) (expression_statement "param_2[2] = sVar5;" (assignment_expression "param_2[2] = sVar5" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (lVar1 == 0) {\n    param_2[3] = 0;\n    sVar5 = param_3[4];\n  }\n  else {\n    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);\n    lVar1 = param_3[3];\n    sVar5 = param_3[4];\n    param_2[3] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  }" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2[3] = 0;\n    sVar5 = param_3[4];\n  }" { (expression_statement "param_2[3] = 0;" (assignment_expression "param_2[3] = 0" (subscript_expression "param_2[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "sVar5 = param_3[4];" (assignment_expression "sVar5 = param_3[4]" identifier = (subscript_expression "param_3[4]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);\n    lVar1 = param_3[3];\n    sVar5 = param_3[4];\n    param_2[3] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  }" else (compound_statement "{\n    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);\n    lVar1 = param_3[3];\n    sVar5 = param_3[4];\n    param_2[3] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  }" { (expression_statement "pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);" (assignment_expression "pvVar4 = (void *)thunk_FUN_002ee780(param_3[4])" identifier = (cast_expression "(void *)thunk_FUN_002ee780(param_3[4])" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "thunk_FUN_002ee780(param_3[4])" identifier (argument_list "(param_3[4])" ( (subscript_expression "param_3[4]" identifier [ number_literal ]) ))))) ;) (expression_statement "lVar1 = param_3[3];" (assignment_expression "lVar1 = param_3[3]" identifier = (subscript_expression "param_3[3]" identifier [ number_literal ])) ;) (expression_statement "sVar5 = param_3[4];" (assignment_expression "sVar5 = param_3[4]" identifier = (subscript_expression "param_3[4]" identifier [ number_literal ])) ;) (expression_statement "param_2[3] = pvVar4;" (assignment_expression "param_2[3] = pvVar4" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);" (call_expression "memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5)" identifier (argument_list "(pvVar4,*(void **)(lVar1 + 0x10),sVar5)" ( identifier , (pointer_expression "*(void **)(lVar1 + 0x10)" * (cast_expression "(void **)(lVar1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) , identifier ))) ;) }))) (expression_statement "lVar1 = param_3[5];" (assignment_expression "lVar1 = param_3[5]" identifier = (subscript_expression "param_3[5]" identifier [ number_literal ])) ;) (expression_statement "lVar3 = param_3[6];" (assignment_expression "lVar3 = param_3[6]" identifier = (subscript_expression "param_3[6]" identifier [ number_literal ])) ;) (expression_statement "param_2[4] = sVar5;" (assignment_expression "param_2[4] = sVar5" (subscript_expression "param_2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "lVar2 = param_3[7];" (assignment_expression "lVar2 = param_3[7]" identifier = (subscript_expression "param_3[7]" identifier [ number_literal ])) ;) (expression_statement "param_2[5] = lVar1;" (assignment_expression "param_2[5] = lVar1" (subscript_expression "param_2[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (lVar3 != 0) {\n    pvVar4 = (void *)thunk_FUN_002ee780(lVar2);\n    lVar1 = param_3[6];\n    sVar5 = param_3[7];\n    param_2[6] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n    param_2[7] = sVar5;\n    return;\n  }" if (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    pvVar4 = (void *)thunk_FUN_002ee780(lVar2);\n    lVar1 = param_3[6];\n    sVar5 = param_3[7];\n    param_2[6] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n    param_2[7] = sVar5;\n    return;\n  }" { (expression_statement "pvVar4 = (void *)thunk_FUN_002ee780(lVar2);" (assignment_expression "pvVar4 = (void *)thunk_FUN_002ee780(lVar2)" identifier = (cast_expression "(void *)thunk_FUN_002ee780(lVar2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "thunk_FUN_002ee780(lVar2)" identifier (argument_list "(lVar2)" ( identifier ))))) ;) (expression_statement "lVar1 = param_3[6];" (assignment_expression "lVar1 = param_3[6]" identifier = (subscript_expression "param_3[6]" identifier [ number_literal ])) ;) (expression_statement "sVar5 = param_3[7];" (assignment_expression "sVar5 = param_3[7]" identifier = (subscript_expression "param_3[7]" identifier [ number_literal ])) ;) (expression_statement "param_2[6] = pvVar4;" (assignment_expression "param_2[6] = pvVar4" (subscript_expression "param_2[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);" (call_expression "memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5)" identifier (argument_list "(pvVar4,*(void **)(lVar1 + 0x10),sVar5)" ( identifier , (pointer_expression "*(void **)(lVar1 + 0x10)" * (cast_expression "(void **)(lVar1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "param_2[7] = sVar5;" (assignment_expression "param_2[7] = sVar5" (subscript_expression "param_2[7]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "param_2[7] = lVar2;" (assignment_expression "param_2[7] = lVar2" (subscript_expression "param_2[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[6] = 0;" (assignment_expression "param_2[6] = 0" (subscript_expression "param_2[6]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_001cfac0(undefined8 param_1,undefined8 *param_2,long *param_3,uint param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  void *pvVar4;\n  size_t sVar5;\n  \n  pvVar4 = (void *)thunk_FUN_002ee780((ulong)param_4);\n  lVar1 = *param_3;\n  *param_2 = pvVar4;\n  memcpy(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4);\n  pvVar4 = (void *)thunk_FUN_002ee780(param_3[2]);\n  lVar1 = param_3[1];\n  sVar5 = param_3[2];\n  param_2[1] = pvVar4;\n  memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  lVar1 = param_3[3];\n  param_2[2] = sVar5;\n  if (lVar1 == 0) {\n    param_2[3] = 0;\n    sVar5 = param_3[4];\n  }\n  else {\n    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);\n    lVar1 = param_3[3];\n    sVar5 = param_3[4];\n    param_2[3] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  }\n  lVar1 = param_3[5];\n  lVar3 = param_3[6];\n  param_2[4] = sVar5;\n  lVar2 = param_3[7];\n  param_2[5] = lVar1;\n  if (lVar3 != 0) {\n    pvVar4 = (void *)thunk_FUN_002ee780(lVar2);\n    lVar1 = param_3[6];\n    sVar5 = param_3[7];\n    param_2[6] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n    param_2[7] = sVar5;\n    return;\n  }\n  param_2[7] = lVar2;\n  param_2[6] = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001cfac0(undefined8 param_1,undefined8 *param_2,long *param_3,uint param_4)" (identifier "FUN_001cfac0") (parameter_list "(undefined8 param_1,undefined8 *param_2,long *param_3,uint param_4)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "long *param_3" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")"))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  void *pvVar4;\n  size_t sVar5;\n  \n  pvVar4 = (void *)thunk_FUN_002ee780((ulong)param_4);\n  lVar1 = *param_3;\n  *param_2 = pvVar4;\n  memcpy(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4);\n  pvVar4 = (void *)thunk_FUN_002ee780(param_3[2]);\n  lVar1 = param_3[1];\n  sVar5 = param_3[2];\n  param_2[1] = pvVar4;\n  memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  lVar1 = param_3[3];\n  param_2[2] = sVar5;\n  if (lVar1 == 0) {\n    param_2[3] = 0;\n    sVar5 = param_3[4];\n  }\n  else {\n    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);\n    lVar1 = param_3[3];\n    sVar5 = param_3[4];\n    param_2[3] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  }\n  lVar1 = param_3[5];\n  lVar3 = param_3[6];\n  param_2[4] = sVar5;\n  lVar2 = param_3[7];\n  param_2[5] = lVar1;\n  if (lVar3 != 0) {\n    pvVar4 = (void *)thunk_FUN_002ee780(lVar2);\n    lVar1 = param_3[6];\n    sVar5 = param_3[7];\n    param_2[6] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n    param_2[7] = sVar5;\n    return;\n  }\n  param_2[7] = lVar2;\n  param_2[6] = 0;\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "void *pvVar4;" (primitive_type "void") (pointer_declarator "*pvVar4" (* "*") (identifier "pvVar4")) (; ";")) (declaration "size_t sVar5;" (primitive_type "size_t") (identifier "sVar5") (; ";")) (expression_statement "pvVar4 = (void *)thunk_FUN_002ee780((ulong)param_4);" (assignment_expression "pvVar4 = (void *)thunk_FUN_002ee780((ulong)param_4)" (identifier "pvVar4") (= "=") (cast_expression "(void *)thunk_FUN_002ee780((ulong)param_4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "thunk_FUN_002ee780((ulong)param_4)" (identifier "thunk_FUN_002ee780") (argument_list "((ulong)param_4)" (( "(") (cast_expression "(ulong)param_4" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "param_4")) () ")"))))) (; ";")) (expression_statement "lVar1 = *param_3;" (assignment_expression "lVar1 = *param_3" (identifier "lVar1") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "*param_2 = pvVar4;" (assignment_expression "*param_2 = pvVar4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "pvVar4")) (; ";")) (expression_statement "memcpy(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4);" (call_expression "memcpy(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4)" (identifier "memcpy") (argument_list "(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4)" (( "(") (identifier "pvVar4") (, ",") (pointer_expression "*(void **)(lVar1 + 0x10)" (* "*") (cast_expression "(void **)(lVar1 + 0x10)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (cast_expression "(ulong)param_4" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "param_4")) () ")"))) (; ";")) (expression_statement "pvVar4 = (void *)thunk_FUN_002ee780(param_3[2]);" (assignment_expression "pvVar4 = (void *)thunk_FUN_002ee780(param_3[2])" (identifier "pvVar4") (= "=") (cast_expression "(void *)thunk_FUN_002ee780(param_3[2])" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "thunk_FUN_002ee780(param_3[2])" (identifier "thunk_FUN_002ee780") (argument_list "(param_3[2])" (( "(") (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) () ")"))))) (; ";")) (expression_statement "lVar1 = param_3[1];" (assignment_expression "lVar1 = param_3[1]" (identifier "lVar1") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "sVar5 = param_3[2];" (assignment_expression "sVar5 = param_3[2]" (identifier "sVar5") (= "=") (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "param_2[1] = pvVar4;" (assignment_expression "param_2[1] = pvVar4" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "pvVar4")) (; ";")) (expression_statement "memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);" (call_expression "memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5)" (identifier "memcpy") (argument_list "(pvVar4,*(void **)(lVar1 + 0x10),sVar5)" (( "(") (identifier "pvVar4") (, ",") (pointer_expression "*(void **)(lVar1 + 0x10)" (* "*") (cast_expression "(void **)(lVar1 + 0x10)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (identifier "sVar5") () ")"))) (; ";")) (expression_statement "lVar1 = param_3[3];" (assignment_expression "lVar1 = param_3[3]" (identifier "lVar1") (= "=") (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "param_2[2] = sVar5;" (assignment_expression "param_2[2] = sVar5" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "sVar5")) (; ";")) (if_statement "if (lVar1 == 0) {\n    param_2[3] = 0;\n    sVar5 = param_3[4];\n  }\n  else {\n    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);\n    lVar1 = param_3[3];\n    sVar5 = param_3[4];\n    param_2[3] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  }" (if "if") (parenthesized_expression "(lVar1 == 0)" (( "(") (binary_expression "lVar1 == 0" (identifier "lVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2[3] = 0;\n    sVar5 = param_3[4];\n  }" ({ "{") (expression_statement "param_2[3] = 0;" (assignment_expression "param_2[3] = 0" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "sVar5 = param_3[4];" (assignment_expression "sVar5 = param_3[4]" (identifier "sVar5") (= "=") (subscript_expression "param_3[4]" (identifier "param_3") ([ "[") (number_literal "4") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);\n    lVar1 = param_3[3];\n    sVar5 = param_3[4];\n    param_2[3] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  }" (else "else") (compound_statement "{\n    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);\n    lVar1 = param_3[3];\n    sVar5 = param_3[4];\n    param_2[3] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n  }" ({ "{") (expression_statement "pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);" (assignment_expression "pvVar4 = (void *)thunk_FUN_002ee780(param_3[4])" (identifier "pvVar4") (= "=") (cast_expression "(void *)thunk_FUN_002ee780(param_3[4])" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "thunk_FUN_002ee780(param_3[4])" (identifier "thunk_FUN_002ee780") (argument_list "(param_3[4])" (( "(") (subscript_expression "param_3[4]" (identifier "param_3") ([ "[") (number_literal "4") (] "]")) () ")"))))) (; ";")) (expression_statement "lVar1 = param_3[3];" (assignment_expression "lVar1 = param_3[3]" (identifier "lVar1") (= "=") (subscript_expression "param_3[3]" (identifier "param_3") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "sVar5 = param_3[4];" (assignment_expression "sVar5 = param_3[4]" (identifier "sVar5") (= "=") (subscript_expression "param_3[4]" (identifier "param_3") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "param_2[3] = pvVar4;" (assignment_expression "param_2[3] = pvVar4" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "pvVar4")) (; ";")) (expression_statement "memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);" (call_expression "memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5)" (identifier "memcpy") (argument_list "(pvVar4,*(void **)(lVar1 + 0x10),sVar5)" (( "(") (identifier "pvVar4") (, ",") (pointer_expression "*(void **)(lVar1 + 0x10)" (* "*") (cast_expression "(void **)(lVar1 + 0x10)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (identifier "sVar5") () ")"))) (; ";")) (} "}")))) (expression_statement "lVar1 = param_3[5];" (assignment_expression "lVar1 = param_3[5]" (identifier "lVar1") (= "=") (subscript_expression "param_3[5]" (identifier "param_3") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "lVar3 = param_3[6];" (assignment_expression "lVar3 = param_3[6]" (identifier "lVar3") (= "=") (subscript_expression "param_3[6]" (identifier "param_3") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "param_2[4] = sVar5;" (assignment_expression "param_2[4] = sVar5" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "sVar5")) (; ";")) (expression_statement "lVar2 = param_3[7];" (assignment_expression "lVar2 = param_3[7]" (identifier "lVar2") (= "=") (subscript_expression "param_3[7]" (identifier "param_3") ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "param_2[5] = lVar1;" (assignment_expression "param_2[5] = lVar1" (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "lVar1")) (; ";")) (if_statement "if (lVar3 != 0) {\n    pvVar4 = (void *)thunk_FUN_002ee780(lVar2);\n    lVar1 = param_3[6];\n    sVar5 = param_3[7];\n    param_2[6] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n    param_2[7] = sVar5;\n    return;\n  }" (if "if") (parenthesized_expression "(lVar3 != 0)" (( "(") (binary_expression "lVar3 != 0" (identifier "lVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    pvVar4 = (void *)thunk_FUN_002ee780(lVar2);\n    lVar1 = param_3[6];\n    sVar5 = param_3[7];\n    param_2[6] = pvVar4;\n    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);\n    param_2[7] = sVar5;\n    return;\n  }" ({ "{") (expression_statement "pvVar4 = (void *)thunk_FUN_002ee780(lVar2);" (assignment_expression "pvVar4 = (void *)thunk_FUN_002ee780(lVar2)" (identifier "pvVar4") (= "=") (cast_expression "(void *)thunk_FUN_002ee780(lVar2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "thunk_FUN_002ee780(lVar2)" (identifier "thunk_FUN_002ee780") (argument_list "(lVar2)" (( "(") (identifier "lVar2") () ")"))))) (; ";")) (expression_statement "lVar1 = param_3[6];" (assignment_expression "lVar1 = param_3[6]" (identifier "lVar1") (= "=") (subscript_expression "param_3[6]" (identifier "param_3") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "sVar5 = param_3[7];" (assignment_expression "sVar5 = param_3[7]" (identifier "sVar5") (= "=") (subscript_expression "param_3[7]" (identifier "param_3") ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "param_2[6] = pvVar4;" (assignment_expression "param_2[6] = pvVar4" (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "pvVar4")) (; ";")) (expression_statement "memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);" (call_expression "memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5)" (identifier "memcpy") (argument_list "(pvVar4,*(void **)(lVar1 + 0x10),sVar5)" (( "(") (identifier "pvVar4") (, ",") (pointer_expression "*(void **)(lVar1 + 0x10)" (* "*") (cast_expression "(void **)(lVar1 + 0x10)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (identifier "sVar5") () ")"))) (; ";")) (expression_statement "param_2[7] = sVar5;" (assignment_expression "param_2[7] = sVar5" (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "sVar5")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "param_2[7] = lVar2;" (assignment_expression "param_2[7] = lVar2" (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "lVar2")) (; ";")) (expression_statement "param_2[6] = 0;" (assignment_expression "param_2[6] = 0" (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void copy_symbols_data(Relobj * this, Symbols_data * gc_sd,
   Read_symbols_data * sd, uint section_header_size) */

void __thiscall
gold::type_1::function_1
          (type_1 *this,type_2 *gc_sd,type_3 *sd,type_4 section_header_size)

{
  type_5 *var_3;
  type_6 sVar2;
  type_7 uVar3;
  type_8 *puVar4;
  size_t sVar5;
  
  puVar4 = (type_8 *)var_1((type_7)section_header_size);
  var_3 = sd->section_headers;
  gc_sd->section_headers_data = puVar4;
  var_2(puVar4,var_3->data_,(type_7)section_header_size);
  puVar4 = (type_8 *)var_1(sd->section_names_size);
  var_3 = sd->section_names;
  sVar5 = sd->section_names_size;
  gc_sd->section_names_data = puVar4;
  var_2(puVar4,var_3->data_,sVar5);
  var_3 = sd->symbols;
  gc_sd->section_names_size = sVar5;
  if (var_3 == (type_5 *)0x0) {
    gc_sd->symbols_data = (type_8 *)0x0;
    sVar5 = sd->symbols_size;
  }
  else {
    puVar4 = (type_8 *)var_1(sd->symbols_size);
    var_3 = sd->symbols;
    sVar5 = sd->symbols_size;
    gc_sd->symbols_data = puVar4;
    var_2(puVar4,var_3->data_,sVar5);
  }
  sVar2 = sd->external_symbols_offset;
  var_3 = sd->symbol_names;
  gc_sd->symbols_size = sVar5;
  uVar3 = sd->symbol_names_size;
  gc_sd->external_symbols_offset = sVar2;
  if (var_3 != (type_5 *)0x0) {
    puVar4 = (type_8 *)var_1(uVar3);
    var_3 = sd->symbol_names;
    sVar5 = sd->symbol_names_size;
    gc_sd->symbol_names_data = puVar4;
    var_2(puVar4,var_3->data_,sVar5);
    gc_sd->symbol_names_size = sVar5;
    return;
  }
  gc_sd->symbol_names_size = uVar3;
  gc_sd->symbol_names_data = (type_8 *)0x0;
  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: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement))))

void MASKED(undefined8 param_1,undefined8 *param_2,long *param_3,uint param_4)

{
  long lVar1;
  long lVar2;
  long lVar3;
  void *pvVar4;
  size_t sVar5;
  
  pvVar4 = (void *)thunk_FUN_002ee780((ulong)param_4);
  lVar1 = *param_3;
  *param_2 = pvVar4;
  memcpy(pvVar4,*(void **)(lVar1 + 0x10),(ulong)param_4);
  pvVar4 = (void *)thunk_FUN_002ee780(param_3[2]);
  lVar1 = param_3[1];
  sVar5 = param_3[2];
  param_2[1] = pvVar4;
  memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);
  lVar1 = param_3[3];
  param_2[2] = sVar5;
  if (lVar1 == 0) {
    param_2[3] = 0;
    sVar5 = param_3[4];
  }
  else {
    pvVar4 = (void *)thunk_FUN_002ee780(param_3[4]);
    lVar1 = param_3[3];
    sVar5 = param_3[4];
    param_2[3] = pvVar4;
    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);
  }
  lVar1 = param_3[5];
  lVar3 = param_3[6];
  param_2[4] = sVar5;
  lVar2 = param_3[7];
  param_2[5] = lVar1;
  if (lVar3 != 0) {
    pvVar4 = (void *)thunk_FUN_002ee780(lVar2);
    lVar1 = param_3[6];
    sVar5 = param_3[7];
    param_2[6] = pvVar4;
    memcpy(pvVar4,*(void **)(lVar1 + 0x10),sVar5);
    param_2[7] = sVar5;
    return;
  }
  param_2[7] = lVar2;
  param_2[6] = 0;
  return;
}

